/* 分析师持仓排行页面样式 */

.content-wrapper {
    margin-top: 72px;
    padding: 0 16px 14px;
}

/* 图表时间快捷按钮（与 analyst_activity.css 保持一致） */
.chart-time-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
}
.chart-time-tab {
    padding: 4px 14px;
    border-radius: 14px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.chart-time-tab:hover,
.chart-time-tab.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* 筛选工具栏 */
.filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 12px;
}

/* 日期筛选行：标签 + 12个交易日按钮 + 指定交易日跳转（同一行） */
.date-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0;
    white-space: nowrap;
}

/* 日期按钮组（最多12个） */
.date-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.date-btn {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 0.85rem;
    line-height: 1.5;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.date-btn:hover {
    border-color: #667eea;
    color: #667eea;
    text-decoration: none;
}
.date-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

/* 指定交易日跳转（与日期按钮同一行） */
.date-jump-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
}
.date-jump-form .form-control {
    width: 150px;
}

/* 可点击行样式 */
.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}
.clickable-row:hover {
    background-color: #e9f5ff !important;
}

/* 表格容器 - 页面正常滚动，表头sticky固定 */
.stock-table-container {
    position: relative;
    width: 100%;
}
.stock-table-container table {
    width: 100%;
    border-collapse: collapse;
}
.stock-table-container thead th {
    position: sticky;
    top: 60px; /* 导航栏高度 */
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 12px 8px;
    white-space: nowrap;
    z-index: 100;
}
.stock-table-container tbody td {
    padding: 10px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

/* 板块排序表头链接 */
.sector-sort-link {
    color: #212529;
    transition: color 0.15s;
}
.sector-sort-link:hover {
    color: #667eea;
}

/* 分页区域 */
.pagination-wrapper {
    padding: 10px 0;
    background-color: #fff;
}

/* 卡片内部间距收紧（本页专用） */
.card .card-header {
    padding: 8px 14px;
}
.card .card-body {
    padding: 12px 14px;
}
