.tabulator-header .tabulator-col {
    text-align: center;
}

.tabulator .tabulator-header .tabulator-col {
    font-size: 0.9em;
    font-weight: 600;
}

.tabulator .tabulator-cell {
    font-size: 0.88em;
}

.metric-section {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.metric-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.metric-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.metric-header-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-header-title i {
    font-size: 0.9rem;
}

.metric-header .toggle-icon {
    font-size: 0.85rem;
    color: #666;
    transition: transform 0.3s ease;
}

.metric-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.metric-content {
    padding: 15px;
    background: #fff;
}

.metric-content.collapsed {
    display: none;
}

.metric-header.sr-header .metric-header-title {
    color: #2563eb;
}

.metric-header.gc-header .metric-header-title {
    color: #16a34a;
}

.sub-tab-container {
    margin-bottom: 12px;
}

.nav-tabs-sub {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    padding: 0;
    list-style: none;
    margin: 0 0 12px 0;
    gap: 5px;
}

.nav-tabs-sub .nav-item {
    margin-bottom: -2px;
}

.nav-tabs-sub .nav-link {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid #e5e7eb; 
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 4px 4px 0 0;
}

.nav-tabs-sub .nav-link.tab-proprietary {
    color: #7c3aed;
    background-color: rgba(124, 58, 237, 0.08);
}
.nav-tabs-sub .nav-link.tab-proprietary:hover {
    background-color: rgba(124, 58, 237, 0.15);
}
.nav-tabs-sub .nav-link.tab-proprietary.active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
    background-color: rgba(124, 58, 237, 0.18);
}

.nav-tabs-sub .nav-link.tab-gpt35 {
    color: #ea580c;
    background-color: rgba(234, 88, 12, 0.08);
}
.nav-tabs-sub .nav-link.tab-gpt35:hover {
    background-color: rgba(234, 88, 12, 0.15);
}
.nav-tabs-sub .nav-link.tab-gpt35.active {
    color: #ea580c;
    border-bottom-color: #ea580c;
    background-color: rgba(234, 88, 12, 0.18);
}

.nav-tabs-sub .nav-link.tab-gpt41 {
    color: #0891b2;
    background-color: rgba(8, 145, 178, 0.08);
}
.nav-tabs-sub .nav-link.tab-gpt41:hover {
    background-color: rgba(8, 145, 178, 0.15);
}
.nav-tabs-sub .nav-link.tab-gpt41.active {
    color: #0891b2;
    border-bottom-color: #0891b2;
    background-color: rgba(8, 145, 178, 0.18);
}

.tab-content-sub {
    padding-top: 8px;
}

.tab-pane-sub {
    display: none;
}

.tab-pane-sub.active {
    display: block;
}

.tabulator .tabulator-tableHolder .tabulator-table .tabulator-group {
    background: #f1f3f4 !important;
    border-bottom: 1px solid #ddd !important;
    border-top: 1px solid #ddd !important;
    padding: 8px 12px !important;
}

.tabulator .tabulator-tableHolder .tabulator-table .tabulator-group .tabulator-group-toggle {
    display: none;
}

.ablation-section {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.ablation-header {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.ablation-header.gpt35 {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.1) 0%, rgba(234, 88, 12, 0.05) 100%);
}

.ablation-header.gpt41 {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(8, 145, 178, 0.05) 100%);
}

.ablation-header-title {
    font-weight: 700;
    font-size: 1rem;
}

.ablation-header.gpt35 .ablation-header-title {
    color: #ea580c;
}

.ablation-header.gpt41 .ablation-header-title {
    color: #0891b2;
}

.ablation-content {
    padding: 15px;
    background: #fff;
}

@media (max-width: 768px) {
    .nav-tabs-sub .nav-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .metric-header {
        padding: 10px 14px;
    }
    
    .metric-header-title {
        font-size: 0.95rem;
    }
}
