/* Provider Page Styles - Matching Main Page Design */

/* Page Load Animations */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.provider-page > * {
    animation: slideDownFade 0.5s ease-out forwards;
    opacity: 0;
}

/* Stagger animations for different sections */
.provider-page > *:nth-child(1) { animation-delay: 0.1s; }
.provider-page > *:nth-child(2) { animation-delay: 0.2s; }
.provider-page > *:nth-child(3) { animation-delay: 0.3s; }
.provider-page > *:nth-child(4) { animation-delay: 0.4s; }
.provider-page > *:nth-child(5) { animation-delay: 0.5s; }
.provider-page > *:nth-child(6) { animation-delay: 0.6s; }

/* Narrow Container */
.container-narrow {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Provider Header Section */
.provider-header-section {
    padding: 48px 0 32px;
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
}

.provider-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.provider-icon-wrapper {
    flex-shrink: 0;
}

.provider-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.provider-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.provider-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.provider-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Quick Filters */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.quick-filters.llm-only {
    display: none;
}

.quick-filters.llm-only.visible,
.quick-filters.llm-only:not(.llm-only) {
    display: flex;
}

.quick-filters-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.quick-filters .filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-filters .filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.quick-filters .filter-btn.active {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

.quick-filters .filter-btn svg {
    flex-shrink: 0;
}

/* Organization Filter Buttons */
.org-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.org-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.org-filter:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.org-filter.active {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

.org-filter .org-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

.org-icon-small {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 6px;
    vertical-align: middle;
}

/* Filter Dropdowns */
.provider-filters-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.filters-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.provider-filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Modern Filter Bar */
.provider-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* Type Tabs */
.provider-type-tabs {
    display: flex;
    gap: 4px;
}

.provider-type-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-type-tab:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.provider-type-tab.active {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

/* Filter Controls */
.provider-filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Quick Filters */
.provider-quick-filters {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.provider-quick-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-quick-filter:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.provider-quick-filter.active {
    color: white;
    background: var(--primary);
}

.provider-quick-filter svg {
    width: 18px;
    height: 18px;
}

/* Filter Buttons */
.provider-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.provider-filter-btn.active {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

.provider-filter-btn svg {
    flex-shrink: 0;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border-radius: 9px;
}

/* Reset Button */
.provider-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-reset-btn:hover {
    color: var(--error);
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

/* Selected Orgs Display */
.provider-selected-orgs {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.selected-orgs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-org-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
}

.selected-org-tag img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.selected-org-tag .remove-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
}

.selected-org-tag .remove-tag:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.provider-dropdown-wrapper {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.provider-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-dropdown-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.provider-dropdown-btn.active {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

.provider-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 220px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    list-style: none;
}

/* Alternating positioning for adjacent dropdowns to prevent overlap */
.provider-dropdown-wrapper:nth-child(odd) .provider-dropdown-menu {
    left: 0;
    right: auto;
}

.provider-dropdown-wrapper:nth-child(even) .provider-dropdown-menu {
    left: auto;
    right: 0;
}

/* For the first dropdown, ensure it doesn't go off left edge */
.provider-dropdown-wrapper:first-child .provider-dropdown-menu {
    left: 0;
    right: auto;
}

/* For the last dropdown, ensure it doesn't go off right edge */
.provider-dropdown-wrapper:last-child .provider-dropdown-menu {
    left: auto;
    right: 0;
}

.provider-dropdown-menu.hidden {
    display: none;
}

.provider-dropdown-menu li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: var(--text-secondary);
    font-size: 13px;
}

.provider-dropdown-menu li:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.provider-dropdown-menu li .checkmark {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.25;
    color: var(--success);
}

.provider-dropdown-menu li .checkmark svg {
    width: 16px;
    height: 16px;
}

.provider-dropdown-menu li img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.provider-dropdown-menu li .search-item {
    padding: 4px 8px;
}

.provider-dropdown-menu li input[type="text"] {
    width: 100%;
    padding: 6px 8px;
    border-radius: 4px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 13px;
}

.provider-dropdown-menu li input[type="text"]::placeholder {
    color: var(--text-muted);
}

.provider-dropdown-menu li input[type="text"]:focus {
    outline: none;
    border: 1px solid var(--primary);
}

/* Context Dropdown */
.context-dropdown li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.context-dropdown li .checkmark {
    opacity: 0.25;
}

.context-dropdown li:hover .checkmark {
    opacity: 1;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.filter-tab.active {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

/* Table Container */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.table-container.hidden {
    display: none;
}

/* Price Disclaimer */
.price-disclaimer {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    background: var(--bg-tertiary);
    /* border-bottom: 1px solid var(--border); */
    /* margin: 0 0 12px 0; */
    font-style: italic;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table thead {
    background: var(--bg-tertiary);
}

.data-table th {
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s ease;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.data-table td {
    padding: 10px 12px;
    color: var(--text-secondary);
    vertical-align: middle;
}

/* Table Columns */
.col-model { width: 25%; }
.col-id { width: 15%; }
.col-input { width: 10%; }
.col-output { width: 10%; }
.col-context { width: 8%; }
.col-latency { width: 8%; }
.col-throughput { width: 10%; }
.col-quant { width: 8%; }
.col-func { width: 6%; white-space: normal; }

/* Sortable columns */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover .sortable-wrapper {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.sortable:hover .sort-icon,
.sortable.active .sort-icon {
    opacity: 1;
    color: var(--primary);
}

.sortable-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
}

.sortable-content {
    font: inherit;
    color: inherit;
    transition: color 0.2s ease;
    flex: 1;
}

.sortable .sort-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Active sort states */
.sortable.active .sortable-wrapper {
    background: rgba(0, 100, 250, 0.08);
}

.sortable.active .sort-icon svg {
    opacity: 1 !important;
    color: var(--primary) !important;
}
.col-context { width: 10%; }
.col-latency { width: 10%; }
.col-throughput { width: 10%; }
.col-quant { width: 5%; }
.col-func { width: 5%; text-align: center; }

/* Model Cell */
.cell-provider-model {
    display: flex;
    align-items: center;
    gap: 12px;
}

.provider-model-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.provider-model-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.provider-model-name {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.provider-model-name:hover {
    color: var(--primary);
}

.sla-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    cursor: help;
}

.cell-id {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.cell-price {
    font-weight: 500;
    color: var(--text-primary);
}

.cell-context,
.cell-latency,
.cell-throughput,
.cell-quant {
    color: var(--text-secondary);
}

.cell-func {
    text-align: center;
}

.check-icon {
    color: var(--success);
}

.cross-icon {
    color: var(--error);
    opacity: 0.4;
}

/* Compact Table */
.data-table.compact td {
    padding: 12px 16px;
}

.cell-org {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cell-model-compact {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 12px;
}

.model-alias {
    color: var(--text-muted);
}

/* Charts Section */
.charts-section {
    padding: 40px 0;
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.charts-section.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.charts-section.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.charts-section.animate-on-scroll .container-narrow {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.charts-section.animate-on-scroll.visible .container-narrow {
    opacity: 1;
    transform: translateY(0);
}

.charts-section.animate-on-scroll .chart-card {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
}

.charts-section.animate-on-scroll.visible .chart-card {
    opacity: 1;
    transform: translateY(0);
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-title svg {
    color: var(--primary);
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.chart-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.3);
    border: 1px solid rgba(52, 211, 153, 0.5);
}

.chart-wrapper {
    position: relative;
    height: 350px;
}

.chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Definitions Section */
.definitions-section {
    padding: 40px 0;
}

.definitions-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.definitions-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.definitions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.definition-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.definition-term {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.definition-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Back Section */
.back-section {
    padding: 32px 0 64px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary);
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .container-narrow {
        max-width: 100%;
        padding: 0 20px;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }

    .col-model { width: 25%; }
    .col-id { width: 20%; }

    .provider-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .provider-type-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .provider-filter-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .provider-header-section {
        padding: 40px 0 32px;
    }

    .provider-header {
        flex-direction: column;
        text-align: center;
    }

    .provider-icon {
        width: 64px;
        height: 64px;
    }

    .provider-title {
        font-size: 1.75rem;
    }

    .provider-type-tabs {
        justify-content: flex-start;
    }

    .provider-type-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .provider-filter-btn span:not(.filter-count) {
        display: none;
    }

    .provider-filter-btn {
        padding: 8px;
        position: relative;
        z-index: 10;
        flex-shrink: 0;
    }

    .provider-quick-filters {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
        padding: 4px;
        background: var(--bg-tertiary);
        border-radius: var(--radius);
    }

    .provider-filter-controls {
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 8px;
        flex-wrap: wrap;
    }

    .provider-filter-bar {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin: -8px -16px 20px -16px;
        padding: 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        background: var(--bg-card);
        position: relative;
        z-index: 100;
    }

    .provider-dropdown-menu {
        position: fixed;
        left: 16px !important;
        right: 16px !important;
        min-width: auto;
        width: auto;
        max-width: none;
        max-height: 60vh;
        z-index: 10000;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Scrollable table for mobile */
    .table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 900px;
    }
}

@media (max-width: 480px) {
    .provider-header {
        gap: 16px;
    }

    .provider-title {
        font-size: 1.5rem;
    }

    .provider-subtitle {
        font-size: 0.875rem;
    }

    .filter-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .chart-card {
        padding: 16px;
    }

    .definitions-card {
        padding: 16px;
    }
}

/* Mobile Filter Overflow Fix */
@media (max-width: 768px) {
    .quick-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 12px;
        margin: -12px -16px 16px -16px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .quick-filters::-webkit-scrollbar {
        display: none;
    }

    .quick-filters .filter-btn {
        flex-shrink: 0;
    }

    .org-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin-bottom: 16px;
    }

    .org-filters::-webkit-scrollbar {
        display: none;
    }

    .org-filter {
        flex-shrink: 0;
    }

    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin: -8px -16px 20px -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-tab {
        flex-shrink: 0;
    }

    .provider-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin: -8px -16px 20px -16px;
        padding: 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .provider-type-tabs {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .provider-type-tabs::-webkit-scrollbar {
        display: none;
    }

    .provider-type-tab {
        flex-shrink: 0;
    }

    .provider-filter-controls {
        justify-content: space-between;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    }
}

@media (max-width: 480px) {
    .provider-header {
        gap: 16px;
    }

    .provider-title {
        font-size: 1.5rem;
    }

    .provider-subtitle {
        font-size: 0.875rem;
    }

    .filter-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .chart-card {
        padding: 16px;
    }

    .definitions-card {
        padding: 16px;
    }
}
