* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    padding: 20px;
    overflow-x: hidden;
}

.page-header {
    max-width: 1800px;
    margin: 0 auto 20px;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

.main-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.filters-sidebar {
    width: 350px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #f1f5f9;
}

.subtitle {
    color: #94a3b8;
    margin-bottom: 30px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-link {
    color: #4299e1;
    cursor: pointer;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: #2c5282;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #2d3748;
    font-weight: 600;
}

.breadcrumb-separator {
    color: #cbd5e0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
}

.stat-card {
    background: #1e293b;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border: 1px solid #334155;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #f1f5f9;
}

.stat-value.currency::before {
    content: '$';
    font-size: 20px;
    color: #94a3b8;
}

.projection-card {
    background: linear-gradient(135deg, #1e293b 0%, #1a2332 100%);
    border: 1px solid #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.projection-card .stat-label {
    color: #60a5fa;
}

.projection-card .stat-value {
    color: #93c5fd;
}

.projection-note {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
}

.chart-container {
    background: #1e293b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border: 1px solid #334155;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
}

.chart-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 2px;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: #edf2f7;
    padding: 3px;
    border-radius: 6px;
}

.view-toggle button {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle button.active {
    background: white;
    color: #2d3748;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.stacked-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 300px;
    padding: 50px 0 20px 0;
    border-bottom: 2px solid #475569;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 40px;
    max-width: 80px;
    height: 100%;
    justify-content: flex-end;
}

.bar-stack {
    width: 100%;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    background: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.bar-stack:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
    z-index: 10;
}

.bar-segment {
    width: 100%;
    transition: opacity 0.2s;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.bar-segment:hover {
    opacity: 0.85;
    z-index: 3000;
}

.bar-segment.snapshot-data {
    border: 2px dashed rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
}

.bar-segment.snapshot-data::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(255, 255, 255, 0.08) 8px,
        rgba(255, 255, 255, 0.08) 16px
    );
    pointer-events: none;
}

.segment-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    border: 1px solid #475569;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0s, visibility 0s;
    z-index: 4000;
    margin-bottom: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.bar-segment:hover .segment-tooltip {
    visibility: visible;
    opacity: 1;
}

.bar-label {
    margin-top: 8px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    text-align: center;
    word-wrap: break-word;
    max-width: 100%;
}

.bar-value {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    margin-bottom: 12px;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .bar-value {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .bar-value {
        font-size: 10px;
        transform: translateX(-50%) rotate(-45deg);
        transform-origin: center bottom;
        margin-bottom: 35px;
        white-space: nowrap;
    }

    .stacked-chart {
        padding-top: 80px;
        overflow: visible;
    }

    .chart-bar-group {
        overflow: visible;
    }

    .stats-grid {
        margin-bottom: 25px;
    }

    .chart-container {
        margin-top: 30px;
    }

    .chart-header {
        margin-bottom: 50px;
    }
}

@media (max-width: 600px) {
    .bar-value {
        font-size: 9px;
        margin-bottom: 30px;
    }

    .stacked-chart {
        padding-top: 150px;
    }

    .chart-header {
        margin-bottom: 80px;
    }
}


.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #475569;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-label {
    color: #94a3b8;
}

.legend-value {
    font-weight: 600;
    color: #e2e8f0;
}


.table-wrapper {
    overflow-x: auto;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

table {
    min-width: 1600px;
    background: #1e293b;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border: 1px solid #334155;
    table-layout: fixed;
}

thead {
    background: #0f172a;
}

th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #475569;
}

th.col-id {
    padding: 12px 8px;
}

.th-content {
    overflow: hidden;
    min-width: 0;
}

th.col-amount {
    position: sticky;
    right: 0;
    background: #0f172a;
    z-index: 10;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.4);
    border-left: 2px solid #334155;
}

td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid #334155;
    color: #cbd5e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

td.col-id {
    padding: 12px 8px;
    font-size: 12px;
    font-family: monospace;
}

th.col-id,
td.col-id {
    width: 130px;
    max-width: 130px;
}

th.col-description,
td.col-description {
    width: 180px;
    max-width: 180px;
}

th.col-env,
td.col-env {
    width: 130px;
    max-width: 130px;
    text-align: center;
}

th.col-period,
td.col-period {
    width: 110px;
    max-width: 110px;
    text-align: center;
}

th.col-service-type,
td.col-service-type {
    width: 140px;
    max-width: 140px;
    text-align: center;
}

th.col-resource-category,
td.col-resource-category {
    width: 200px;
    max-width: 200px;
    text-align: center;
}

th.col-resource-type,
td.col-resource-type {
    width: 140px;
    max-width: 140px;
    text-align: center;
}

th.col-region,
td.col-region {
    width: 110px;
    max-width: 110px;
    text-align: center;
}

th.col-qty,
td.col-qty {
    width: 80px;
    max-width: 80px;
    text-align: center;
}

th.col-amount,
td.col-amount {
    width: 110px;
    min-width: 110px;
    text-align: right;
}

th {
    position: relative;
    user-select: none;
}

th.resizable {
    border-right: 2px solid transparent;
}

th.resizable:hover {
    border-right-color: #3b82f6;
}

.column-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    cursor: col-resize;
    z-index: 1;
}

.column-resizer:hover,
.column-resizer.resizing {
    background: #3b82f6;
}

th.sorted {
    color: #3b82f6;
}

th.sorted:not(.col-amount) {
    background: rgba(59, 130, 246, 0.1);
}

th.col-amount.sorted {
    background: #0f172a;
}

.sort-indicator {
    display: inline-flex;
    align-items: center;
    opacity: 0.8;
}

td.col-amount {
    position: sticky;
    right: 0;
    background: #1e293b;
    z-index: 5;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.4);
    border-left: 2px solid #334155;
    font-weight: 600;
}

tbody tr:hover td.col-amount {
    background: #334155;
    border-left: 2px solid #475569;
}

tbody tr:hover {
    background: #334155;
}

tbody tr:last-child td {
    border-bottom: none;
}

td {
    position: relative;
    cursor: pointer;
}

td:hover {
    background: #475569;
}

.copy-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    opacity: 0;
    padding: 2px;
    background: transparent;
    color: #e2e8f0;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn svg {
    width: 18px;
    height: 18px;
}

td:hover .copy-btn {
    opacity: 0.7;
}

.copy-btn:hover {
    opacity: 1;
    color: #f1f5f9;
}

.copy-btn:active {
    color: #10b981;
}

@media (hover: none) {
    .copy-btn {
        display: none !important;
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.color-account-us { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.color-account-ca { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.color-environment-main { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.color-environment-dev { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.color-environment-staging { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.color-environment-unknown { background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%); }
.color-service-dedicated { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.color-service-public-cloud { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.color-service-undefined { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); }
.color-category-compute { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.color-category-storage { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.color-category-network { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.color-category-databases-analytics { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.color-category-other { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.color-subcategory-dedicated-server { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.color-subcategory-instance { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.color-subcategory-memory { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.color-subcategory-databases { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.color-subcategory-block-storage { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.color-subcategory-object-storage { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.color-subcategory-bandwidth { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }
.color-subcategory-gateway { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.color-subcategory-ip-address { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.color-subcategory-load-balancer { background: linear-gradient(135deg, #ff9a56 0%, #ff6a00 100%); }
.color-subcategory-vrack { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.color-subcategory-project-fee { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.color-subcategory-miscellaneous { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }

.drill-down-info {
    background: #edf7ed;
    border-left: 4px solid #48bb78;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    color: #2d3748;
}

.drill-down-info strong {
    color: #276749;
}

.filter-panel {
    background: #1e293b;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border: 1px solid #334155;
}

.filter-panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #475569;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-dimension-label {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.filter-search {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #475569;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s;
    background: #0f172a;
    color: #e2e8f0;
}

.filter-search:focus {
    outline: none;
    border-color: #3b82f6;
}

.filter-search::placeholder {
    color: #64748b;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    padding: 2px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.filter-chip.include {
    background: #c6f6d5;
    color: #22543d;
    border: 2px solid #48bb78;
}

.filter-chip.exclude {
    background: #fed7d7;
    color: #742a2a;
    border: 2px solid #f56565;
}

.filter-chip.pending-include {
    background: #d1fae5;
    color: #065f46;
    border: 2px dashed #10b981;
    font-weight: 600;
    animation: pendingPulse 2s ease-in-out infinite;
    position: relative;
}

.filter-chip.pending-include::before {
    content: '→✓ ';
    font-weight: bold;
    margin-right: 2px;
}

.filter-chip.pending-exclude {
    background: #fee2e2;
    color: #991b1b;
    border: 2px dashed #ef4444;
    font-weight: 600;
    animation: pendingPulse 2s ease-in-out infinite;
    position: relative;
}

.filter-chip.pending-exclude::before {
    content: '→✗ ';
    font-weight: bold;
    margin-right: 2px;
}

.filter-chip.transition-include-to-exclude {
    background: #fef3c7;
    color: #92400e;
    border: 2px dashed #f59e0b;
    font-weight: 600;
    animation: pendingPulse 2s ease-in-out infinite;
    position: relative;
}

.filter-chip.transition-include-to-exclude::before {
    content: '✓→✗ ';
    font-weight: bold;
    margin-right: 2px;
}

.filter-chip.transition-exclude-to-include {
    background: #fef3c7;
    color: #92400e;
    border: 2px dashed #f59e0b;
    font-weight: 600;
    animation: pendingPulse 2s ease-in-out infinite;
    position: relative;
}

.filter-chip.transition-exclude-to-include::before {
    content: '✗→✓ ';
    font-weight: bold;
    margin-right: 2px;
}

@keyframes pendingPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.filter-chip.inactive {
    background: #334155;
    color: #94a3b8;
    border: 2px solid #475569;
}

.filter-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-chip .remove-chip {
    margin-left: 4px;
    cursor: pointer;
    font-weight: bold;
}

.group-by-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: #1e293b;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border: 1px solid #334155;
    margin-bottom: 20px;
}

.apply-filters-btn {
    padding: 10px 15px;
    background: #48bb78;
    color: white;
    border: 2px solid #38a169;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-filters-btn:hover {
    background: #38a169;
}

.apply-filters-btn:active {
    transform: scale(0.98);
}

.clear-filters-btn {
    padding: 10px 15px;
    background: #fed7d7;
    color: #742a2a;
    border: 2px solid #fc8181;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    background: #fc8181;
    color: white;
}

.clear-filters-btn:active {
    transform: scale(0.98);
}

.clear-pending-btn {
    padding: 10px 15px;
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-pending-btn:hover:not(:disabled) {
    background: #fbbf24;
    color: white;
}

.clear-pending-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.clear-pending-btn:disabled {
    cursor: not-allowed;
}

.preset-btn {
    padding: 6px 12px;
    background: #334155;
    color: #e2e8f0;
    border: 2px solid #475569;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: #475569;
    border-color: #64748b;
}

.preset-btn:active {
    transform: scale(0.95);
}

.preset-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
}

.group-by-label {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.group-by-select {
    padding: 8px 12px;
    border: 2px solid #475569;
    border-radius: 6px;
    font-size: 14px;
    color: #e2e8f0;
    background: #0f172a;
    cursor: pointer;
    transition: border-color 0.2s;
}

.group-by-select:hover {
    border-color: #3b82f6;
}

.group-by-select:focus {
    outline: none;
    border-color: #3b82f6;
}

@media (max-width: 1400px) {
    .container {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        order: -1;
    }

    .filter-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }

    .filter-chips {
        max-height: 150px;
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-value.currency::before {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 22px;
    }

    .subtitle {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 35px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-value.currency::before {
        font-size: 16px;
    }

    .chart-container {
        padding: 15px;
    }

    .chart-title {
        font-size: 16px;
    }

    .chart-subtitle {
        font-size: 12px;
    }

    .stacked-chart {
        height: 250px;
        padding: 40px 0 15px 0;
        gap: 4px;
    }

    .chart-bar-group {
        min-width: 30px;
        max-width: 60px;
    }

    .bar-label {
        font-size: 10px;
    }

    .legend {
        gap: 10px;
    }

    .legend-item {
        font-size: 12px;
    }

    .filter-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .preset-btn {
        font-size: 11px;
        padding: 8px 10px;
    }

    table {
        min-width: 800px;
        font-size: 13px;
    }

    th, td {
        padding: 10px 12px;
        font-size: 13px;
    }

    td.col-id {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .subtitle {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-value {
        font-size: 20px;
    }

    .chart-container {
        padding: 12px;
        margin-bottom: 15px;
    }

    .chart-title {
        font-size: 15px;
    }

    .chart-subtitle {
        font-size: 11px;
    }

    .stacked-chart {
        height: 200px;
        padding: 30px 0 10px 0;
        gap: 3px;
    }

    .chart-bar-group {
        min-width: 20px;
        max-width: 40px;
    }

    .bar-label {
        font-size: 9px;
    }

    .bar-value {
        font-size: 10px;
    }

    .legend {
        flex-direction: column;
        gap: 8px;
    }

    .legend-item {
        font-size: 11px;
    }

    .legend-color {
        width: 14px;
        height: 14px;
    }

    .filter-panel {
        padding: 15px;
    }

    .filter-panel-title {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .filter-dimension-label {
        font-size: 12px;
    }

    .filter-search {
        font-size: 14px;
        padding: 10px 12px;
    }

    .filter-chips {
        max-height: 180px;
    }

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

    .group-by-selector {
        padding: 12px;
    }

    .group-by-label {
        font-size: 13px;
    }

    .group-by-select {
        font-size: 14px;
        padding: 10px 12px;
    }

    .preset-btn {
        font-size: 12px;
        padding: 10px 12px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .apply-filters-btn,
    .clear-pending-btn,
    .clear-filters-btn {
        font-size: 14px;
        padding: 12px 15px;
    }

    table {
        min-width: 700px;
    }

    th, td {
        padding: 8px 10px;
        font-size: 12px;
    }

    th.col-id, td.col-id {
        padding: 8px 6px;
        font-size: 10px;
    }

    .copy-btn svg {
        width: 20px;
        height: 20px;
    }
}
