﻿.text-muted {
    opacity: 0.7;
}

.text-center {
    text-align: center;
}

/* Default alignments for xs and sm screens */
.text-left-sm {
    text-align: left !important;
}

.text-right-sm {
    text-align: right !important;
}

.text-center-sm {
    text-align: center !important;
}

.text-left-md {
    text-align: left !important;
}

.text-center-md {
    text-align: center !important;
}

.text-right-md {
    text-align: right !important;
}

.no-wrap {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-footer {
    /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
    border-top: 1px solid;
    opacity: 0.7;
    margin-top: 10rem;
}


.align-header-end {
    display: flex;
    justify-content: flex-end;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
}

.toggle-custom-striped {
    background: repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);
    color: white !important;
}

.chart-with-mud-background .apexcharts-canvas {
    background: var(--mud-palette-surface);
}

/* Comparison chart sections - theme aware */
.comparison-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--mud-palette-divider);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.comparison-chart {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    padding: 8px;
}

.comparison-chart.clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.comparison-chart.clickable:hover {
    transform: scale(1.02);
    box-shadow: var(--mud-elevation-4);
}

/* Legends - theme aware */
.year-legend,
.region-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding: 12px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    border-radius: 2px;
}

.year-legend .legend-color {
    width: 24px;
    height: 3px;
}

.region-legend .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-label {
    font-size: 12px;
    color: var(--mud-palette-text-primary);
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.apexcharts-legend.apx-legend-position-right {
    top: 80px !important;
    margin-top: 0 !important;
}

.suppress-datagrid-header {
    display: none!important;
}

/* Responsive improvements for small screens */
@media (max-width: 599px) {
    .data-footer .pa-4 {
        padding: 1rem !important;
    }

    /* Stack items more compactly on xs screens */
    .data-footer .mud-grid .mud-grid-item {
        padding-bottom: 0.75rem;
    }
}



/* Small screens and up - ensure left/right alignment works */
@media (max-width: 959px) {
    .text-left-sm {
        text-align: left !important;
    }

    .text-right-sm {
        text-align: right !important;
    }

    .text-center-sm {
        text-align: center !important;
    }
}

/* Medium and larger screens - proper left/center/right alignment */
@media (min-width: 960px) {
    .data-footer .mud-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .data-footer .mud-grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .data-footer .mud-grid-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .text-left-md {
        text-align: left !important;
    }

    .text-center-md {
        text-align: center !important;
    }

    .text-right-md {
        text-align: right !important;
    }
}