/* --- CONFIGURAÇÃO GLOBAL --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta institucional LABCLIM */
    --labclim-navy: #003180;
    --labclim-blue: #0047e0;
    --labclim-blue-soft: #eaf1ff;
    --labclim-ink: #0f172a;

    /* Paleta semântica — alinhada com KPI_CORES em theming.py */
    --labclim-success: #00b894;
    --labclim-warning: #f59e0b;
    --labclim-danger:  #dc2626;
    --labclim-orange:  #f97316;
    --labclim-neutral: #64748b;

    /* Frescor meteorológico — alinhado com classes .meteoro-freshness-* */
    --labclim-fresh:       #16a34a;
    --labclim-stale-amber: #f59e0b;
    --labclim-stale-red:   #dc2626;

    /* Escala de font-size — mínimo 0.75rem (12px) para qualquer label visível */
    --fs-2xs: 0.75rem;   /* 12px — mínimo absoluto: labels, badges, pills */
    --fs-xs:  0.8125rem; /* 13px — secondary labels */
    --fs-sm:  0.875rem;  /* 14px — body texto compacto */
    --fs-md:  1rem;      /* 16px — body padrão */
    --fs-lg:  1.25rem;   /* 20px — headings de card */
    --fs-xl:  1.5rem;    /* 24px — títulos de painel */
    --fs-display: 2.5rem;/* 40px — valores de KPI/display */

    /* Escala de font-weight — hierarquia semântica */
    --fw-regular:   400; /* reservado — uso futuro */
    --fw-medium:    500; /* reservado — migração futura de font-weight: 500 */
    --fw-semibold:  600; /* labels, toolbar, captions */
    --fw-bold:      700; /* badges, pills, secondary headings */
    --fw-extrabold: 800; /* reservado — KPI values e headings principais */

    /* Espaçamento — escala de 4/8/16 */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);

    /* Raios */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 71, 224, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(0, 49, 128, 0.08), transparent 24%),
        #f8fafc;
    color: #334155;
    margin: 0;
}

.page-eyebrow {
    color: var(--labclim-blue);
    font-size: var(--fs-2xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-title {
    color: var(--labclim-ink);
    font-weight: 800;
}

.page-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- FOOTER INSTITUCIONAL --- */
.app-footer {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, #eef4ff 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    padding: 1.6rem 0;
}

.footer-brand-title {
    color: var(--labclim-ink);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-brand-subtitle,
.footer-author {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
}

.footer-partner-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.footer-partner-label {
    color: var(--labclim-blue);
    font-size: var(--fs-2xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-partner-logos {
    color: var(--labclim-navy);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.footer-sources {
    display: block;
    color: #64748b;
    font-size: var(--fs-2xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.06em;
    opacity: 0.85;
}

/* --- NAVBAR PREMIUM --- */
.navbar {
    background:
        linear-gradient(135deg, rgba(0, 21, 64, 0.98) 0%, rgba(0, 49, 128, 0.97) 52%, rgba(0, 71, 224, 0.9) 100%),
        radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 35%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.7rem 1rem !important;
}

.navbar .container-fluid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.navbar-brand-block {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: min(340px, 100%);
    border-radius: 22px;
    padding: 0.25rem 0.35rem 0.25rem 0.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Marca é um link para a home — sem visual de link, mas clicável. */
a.navbar-brand-block,
a.navbar-brand-block:hover,
a.navbar-brand-block:focus {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.navbar-brand-block:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.18);
}

.navbar-brand-logo-shell {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.95));
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.navbar-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    border-radius: 16px;
    padding: 6px;
}

.navbar-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.navbar-brand-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.navbar-brand-eyebrow-main {
    color: rgba(219, 234, 254, 0.92);
    font-size: var(--fs-2xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.navbar-brand-eyebrow-tag {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(239, 246, 255, 0.82);
    font-size: var(--fs-2xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.16rem 0.42rem;
}

.navbar-brand-title {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.navbar-brand-title-main {
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.navbar-brand-title-sub {
    color: rgba(241, 245, 249, 0.72);
    font-size: 0.72rem;
    font-weight: 500;
    margin-top: 0.16rem;
}

.navbar-toolbar {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: flex-end;
    align-items: end;
}

.navbar-section-switch {
    border-radius: 18px;
    padding: 0.28rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.navbar-section-button {
    border: 0 !important;
    background: transparent !important;
    color: rgba(219, 234, 254, 0.82) !important;
    border-radius: 14px !important;
    padding: 0.62rem 1rem !important;
    font-size: var(--fs-2xs) !important;
    font-weight: var(--fw-bold) !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.navbar-section-button-active {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
    color: var(--labclim-navy) !important;
    box-shadow:
        0 2px 6px rgba(2, 6, 23, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hydrology-toolbar-shell {
    background:
        linear-gradient(135deg, #ffffff 0%, #eff6ff 100%),
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.10), transparent 40%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    padding: 0.9rem 1rem 1rem;
}

.hydrology-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: end;
    justify-content: flex-start;
}

.hydrology-toolbar-label {
    color: var(--labclim-blue) !important;
    font-size: var(--fs-2xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
}

.hydrology-toolbar-label .navbar-filter-label-icon {
    color: var(--labclim-blue);
    font-size: var(--fs-xs);
}

.hydrology-toolbar-dropdown .Select-control,
.hydrology-toolbar-search {
    border: 1px solid rgba(226, 232, 240, 0.98) !important;
}

.navbar-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.navbar-filter-group--basin {
    width: min(180px, 100%);
}

.navbar-filter-group--station {
    width: min(260px, 100%);
}

.navbar-filter-group--search {
    width: min(200px, 100%);
}

.navbar-filter-group--status {
    width: min(170px, 100%);
}

.navbar-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(219, 234, 254, 0.82);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.navbar-filter-label-icon {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.navbar-action-button {
    min-width: 118px;
    border-radius: 14px !important;
    padding-inline: 1rem !important;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.22) !important;
}

.navbar-dropdown .Select-control {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow:
        0 2px 6px rgba(2, 6, 23, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.navbar-dropdown .Select-control:hover {
    transform: translateY(-1px);
    border-color: rgba(191, 219, 254, 0.9) !important;
    box-shadow:
        0 6px 16px rgba(2, 6, 23, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.navbar-search-input {
    width: 100%;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 2px 6px rgba(2, 6, 23, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 0 0.9rem;
    color: var(--labclim-ink);
    font-size: 0.84rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.navbar-search-input:hover {
    transform: translateY(-1px);
    border-color: rgba(191, 219, 254, 0.9);
    box-shadow:
        0 6px 16px rgba(2, 6, 23, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.navbar-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.navbar-search-input:focus-visible {
    border-color: rgba(96, 165, 250, 0.9);
    box-shadow:
        0 0 0 3px rgba(96, 165, 250, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.navbar-export-group {
    flex-wrap: nowrap;
    border-radius: 14px;
    overflow: hidden;
}

.navbar-export-button {
    font-weight: 700 !important;
    padding-inline: 0.95rem !important;
}

/* --- CARDS DE KPI (DETALHES) --- */
.card-kpi-moderno {
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-left: 5px solid var(--labclim-blue);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.07) !important;
}

.card-kpi-moderno:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 18px 38px rgba(15, 23, 42, 0.10) !important;
}

.kpi-group-panel {
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 34px rgba(15, 23, 42, 0.07) !important;
    height: 100%;
}

.kpi-group-panel > .card-body {
    padding: 0.78rem !important;
}

.kpi-group-panel-trends > .card-body {
    display: flex;
    flex-direction: column;
}

.kpi-group-panel-trends > .card-body > .row {
    flex: 1;
    align-content: stretch;
}

.kpi-group-panel-trends .kpi-trend-card {
    display: flex;
    margin-bottom: 0 !important;
}

.kpi-group-panel-trends .kpi-trend-card > div,
.kpi-group-panel-trends .card-kpi-moderno {
    width: 100%;
}

.kpi-group-panel-trends .card-kpi-moderno {
    min-height: 118px;
}

/* --- METEOROLOGIA --- */
.overview-tabs-container {
    padding-inline: 0.75rem;
}

.overview-tabs {
    border-bottom: 0;
    margin-bottom: 1rem;
}

.overview-tabs-hidden > .nav {
    display: none !important;
}

.overview-tabs .nav-item {
    margin-right: 0.55rem;
}

.overview-tab-shell {
    border: 0 !important;
}

.overview-tab-label {
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 1.35rem !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.overview-tab-label-active {
    background: linear-gradient(135deg, var(--labclim-navy) 0%, var(--labclim-blue) 100%) !important;
    color: #ffffff !important;
    border-color: rgba(0, 71, 224, 0.25) !important;
    box-shadow: 0 18px 34px rgba(0, 49, 128, 0.22);
}

.meteoro-summary-strip,
.meteoro-source-counters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.meteoro-source-counter {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.meteoro-source-counter-labclim {
    background: #eaf1ff;
    color: var(--labclim-navy);
    border-color: #dbeafe;
}

.meteoro-source-counter-inmet {
    background: #ecfeff;
    color: #0e7490;
    border-color: #cffafe;
}

.meteoro-panel-card {
    border-radius: 24px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.meteoro-card-body {
    padding: 1rem !important;
}

.meteoro-filters-shell {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 0.8rem;
}

.meteoro-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: min(260px, 100%);
    flex: 1;
}

.meteoro-filter-group-source {
    min-width: min(230px, 100%);
    flex: 0 1 auto;
}

.meteoro-filter-label {
    display: inline-flex;
    align-items: center;
    color: var(--labclim-blue);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.meteoro-filter-dropdown .Select-control {
    min-height: 40px;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
}

.meteoro-filter-dropdown .Select-value,
.meteoro-filter-dropdown .Select-placeholder {
    line-height: 38px !important;
}

.meteoro-source-toggle {
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.meteoro-source-btn {
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    color: #475569 !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.52rem 0.9rem !important;
}

.meteoro-source-btn.active {
    background: linear-gradient(135deg, var(--labclim-navy) 0%, var(--labclim-blue) 100%) !important;
    border-color: rgba(0, 71, 224, 0.25) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(0, 49, 128, 0.18) !important;
}

.meteoro-city-groups {
    max-height: 560px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.meteoro-city-section + .meteoro-city-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.meteoro-city-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}

.meteoro-city-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--labclim-blue);
    background: linear-gradient(135deg, var(--labclim-blue-soft), #ffffff);
    box-shadow: 0 10px 24px rgba(0, 71, 224, 0.10);
}

.meteoro-city-title {
    color: var(--labclim-ink);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.meteoro-city-count {
    margin-left: auto;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1d4ed8;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
}

.meteoro-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.meteoro-station-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 32px rgba(15, 23, 42, 0.07);
    cursor: pointer;
    outline: none;
    padding: 0.9rem;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.meteoro-station-card:hover {
    transform: translateY(-2px);
    border-color: rgba(191, 219, 254, 0.95);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.10);
    background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}

.meteoro-station-card:focus-visible {
    box-shadow:
        0 0 0 4px rgba(0, 71, 224, 0.16),
        0 16px 30px rgba(15, 23, 42, 0.10);
}

.meteoro-station-card-active {
    border-color: rgba(0, 71, 224, 0.32);
    background: linear-gradient(180deg, #ffffff 0%, #eaf1ff 100%);
    box-shadow:
        0 0 0 4px rgba(0, 71, 224, 0.08),
        0 18px 34px rgba(0, 49, 128, 0.14);
    transform: translateY(-1px);
}

.meteoro-card-top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.meteoro-source-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    background: var(--labclim-blue-soft);
    color: var(--labclim-navy);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
}

.meteoro-source-pill .bi {
    display: none;
}

.meteoro-card-title {
    color: var(--labclim-ink);
    font-size: 0.88rem;
    font-weight: 800;
    margin-top: 0.45rem;
}

.meteoro-card-location,
.meteoro-card-footer {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
}

.meteoro-card-footer {
    display: flex;
    justify-content: flex-end;
}

.meteoro-icon-shell {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.meteoro-metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0.85rem 0 0.6rem;
}

.meteoro-metric-block {
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    padding: 0.75rem;
}

.meteoro-metric-value {
    color: var(--labclim-blue);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.meteoro-metric-humidity {
    color: #0284c7;
}

.meteoro-metric-unit {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 800;
    margin-left: 0.2rem;
}

.meteoro-metric-label {
    display: block;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.meteoro-secondary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.meteoro-secondary-metric {
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.5rem 0.65rem;
    text-align: center;
}

.meteoro-wind-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.meteoro-wind-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    padding: 0.45rem 0.65rem;
}

.meteoro-wind-label {
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meteoro-wind-value {
    color: var(--labclim-ink);
    font-size: 0.78rem;
    font-weight: 800;
}

.meteoro-wind-direction-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.meteoro-wind-arrow {
    display: inline-block;
    color: var(--labclim-blue);
    font-size: 0.95rem;
    line-height: 1;
}

.meteoro-update-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: var(--fs-2xs);
    font-weight: var(--fw-bold);
    padding: 0.28rem 0.6rem;
}

.meteoro-freshness-green {
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
    padding: 3px 10px;
    font-weight: var(--fw-bold);
}

.meteoro-freshness-amber {
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    padding: 3px 10px;
    font-weight: var(--fw-bold);
}

.meteoro-freshness-red {
    color: #991b1b;
    background: #fee2e2;
    border-radius: 999px;
    padding: 3px 10px;
    font-weight: var(--fw-bold);
}

.meteoro-freshness-unknown {
    color: #475569;
    font-weight: var(--fw-semibold);
}

.meteoro-summary-chip-temp {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.meteoro-summary-chip-humidity {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.meteoro-map-card .meteoro-map-frame {
    height: 440px;
}

.meteoro-selected-panel-shell {
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.meteoro-selected-panel {
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(0, 71, 224, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 36px rgba(15, 23, 42, 0.07);
    padding: 1.1rem 1.25rem;
}

.meteoro-selected-header,
.meteoro-selected-highlight {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.meteoro-selected-title {
    color: var(--labclim-ink);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.meteoro-selected-location {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.meteoro-selected-source,
.meteoro-selected-update {
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.meteoro-selected-source {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    padding: 0.3rem 0.6rem;
}

.meteoro-selected-highlight {
    align-items: center;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-top: 0.8rem;
    padding: 0.75rem;
}

.meteoro-selected-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meteoro-selected-metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.meteoro-selected-label {
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meteoro-selected-value {
    color: var(--labclim-ink);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-top: 0.2rem;
}

.meteoro-selected-update {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.34rem 0.65rem;
}

.meteoro-selected-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.meteoro-selected-chart-shell {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eef2f7;
}

/* --- Painel de detalhe: linha de KPIs --- */
.meteoro-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.meteoro-kpi-tile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.7rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.meteoro-kpi-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
}

.meteoro-kpi-tile i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: color-mix(in srgb, currentColor 14%, transparent);
}

.meteoro-kpi-label {
    display: block;
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.1;
}

.meteoro-kpi-value {
    font-weight: 800;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.2;
}

/* --- Painel de detalhe: chips de variável + toggle de janela --- */
.meteoro-detalhe-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.meteoro-chip-row {
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.meteoro-chip,
.meteoro-janela-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: var(--fs-2xs);
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.meteoro-chip:hover,
.meteoro-janela-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.meteoro-chip-active,
.meteoro-chip-active:hover {
    background: #0047e0;
    border-color: #0047e0;
    color: #ffffff;
}

.meteoro-janela-toggle {
    display: inline-flex;
    gap: 0.25rem;
}

.meteoro-janela-btn-active,
.meteoro-janela-btn-active:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

/* --- Layout do detalhe: header com ações + grade de small multiples --- */
.meteoro-selected-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.meteoro-selected-sep {
    color: #cbd5e1;
}

.meteoro-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.meteoro-mini-cell {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    padding: 0.6rem 0.7rem 0.35rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: box-shadow 0.15s ease;
}

.meteoro-mini-cell:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.meteoro-mini-label {
    display: flex;
    align-items: center;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.meteoro-mini-label i {
    color: #94a3b8;
}

.meteoro-mini-chart {
    width: 100%;
}

.meteoro-mini-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: #94a3b8;
    font-size: var(--fs-xs);
}

/* --- Cartões de contexto (vento / chuva / temp do dia) --- */
.meteoro-ctx-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.meteoro-ctx-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 0.7rem 0.85rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.meteoro-ctx-label {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.35rem;
}

.meteoro-ctx-value {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.15;
}

.meteoro-ctx-sub {
    display: block;
    color: #64748b;
    font-size: var(--fs-2xs);
    margin-top: 0.1rem;
}

.meteoro-wind-body {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.meteoro-wind-compass {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 50%, #ffffff 55%, #f1f5f9 100%);
    box-shadow:
        inset 0 0 0 1.5px rgba(124, 58, 237, 0.25),
        0 2px 6px rgba(15, 23, 42, 0.08);
    position: relative;
}

/* Marcações N/S sutis na bússola. */
.meteoro-wind-compass::before {
    content: "N";
    position: absolute;
    top: 1px;
    font-size: 0.5rem;
    font-weight: 800;
    color: #cbd5e1;
    line-height: 1;
}

.meteoro-wind-arrow {
    color: #7c3aed;
    font-size: 1.15rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 1px 1px rgba(124, 58, 237, 0.3));
}

/* --- Overview do topo: status da rede + insights + ranking (premium) --- */
.meteoro-overview {
    display: grid;
    grid-template-columns: 0.9fr 1.15fr 1fr;
    gap: 1.4rem;
    align-items: stretch;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(0, 71, 224, 0.05), transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 1.05rem 1.4rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 14px 34px rgba(15, 23, 42, 0.07);
}

@media (max-width: 900px) {
    .meteoro-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.meteoro-ov-rede,
.meteoro-ov-insights,
.meteoro-ov-ranking {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
}

.meteoro-ov-insights,
.meteoro-ov-ranking {
    position: relative;
    padding-left: 1.4rem;
}

/* Divisórias como hairline em gradiente (mais refinado que border sólida). */
.meteoro-ov-insights::before,
.meteoro-ov-ranking::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8%;
    bottom: 8%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.35), transparent);
}

@media (max-width: 900px) {
    .meteoro-ov-insights,
    .meteoro-ov-ranking {
        padding-left: 0;
        padding-top: 0.75rem;
    }
    .meteoro-ov-insights::before,
    .meteoro-ov-ranking::before {
        left: 8%;
        right: 8%;
        top: 0;
        bottom: auto;
        width: auto;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35), transparent);
    }
}

.meteoro-ov-title,
.meteoro-ov-rk-label {
    display: block;
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.meteoro-ov-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.meteoro-ov-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    white-space: nowrap;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

/* Ponto de status antes do texto do pill. */
.meteoro-ov-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.85;
}

.meteoro-ov-pill.pill-green { background: rgba(21, 128, 61, 0.10); color: #15803d; border-color: rgba(21, 128, 61, 0.20); }
.meteoro-ov-pill.pill-amber { background: rgba(245, 158, 11, 0.12); color: #b45309; border-color: rgba(245, 158, 11, 0.22); }
.meteoro-ov-pill.pill-red   { background: rgba(220, 38, 38, 0.10); color: #dc2626; border-color: rgba(220, 38, 38, 0.20); }

.meteoro-ov-insights > span {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    color: #334155;
    font-weight: 600;
}

.meteoro-ov-insights > span i {
    color: #f59e0b;
    margin-right: 0.4rem;
}

.meteoro-ov-empty {
    color: #94a3b8;
    font-style: italic;
}

.meteoro-ov-rk-tile {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

/* Ícone em círculo tintado — motivo premium reaproveitado no painel. */
.meteoro-ov-rk-tile i {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: color-mix(in srgb, currentColor 14%, transparent);
}

.meteoro-ov-rk-value {
    font-weight: 800;
    color: #0f172a;
}

.meteoro-ov-rk-name {
    color: #64748b;
    font-size: 0.72rem;
}

.meteoro-selected-chart-label {
    display: block;
    color: #64748b;
    font-size: var(--fs-2xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.meteoro-selected-chart .js-plotly-plot {
    background: transparent !important;
}

.meteoro-selected-hint {
    margin-top: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
}

.meteoro-selected-kpi {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.5rem 0.7rem;
}

.meteoro-selected-kpi i {
    color: var(--labclim-blue);
}

.meteoro-selected-kpi-label {
    margin-right: auto;
}

.meteoro-selected-kpi-value {
    color: var(--labclim-ink);
    font-size: 0.76rem;
    font-weight: 800;
}

.meteoro-map-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.meteoro-variable-toggle,
.meteoro-heatmap-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0;
}

.meteoro-variable-btn,
.meteoro-heatmap-btn {
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    color: #475569 !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.52rem 0.9rem !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease;
}

.meteoro-variable-btn:hover,
.meteoro-heatmap-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10) !important;
}

.meteoro-heatmap-btn {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    font-size: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.meteoro-heatmap-btn::before {
    content: "\F3E8";
    font-family: "bootstrap-icons";
    font-size: 1rem;
    line-height: 1;
}

.meteoro-variable-btn.active,
.meteoro-heatmap-btn.active {
    background: linear-gradient(135deg, var(--labclim-navy) 0%, var(--labclim-blue) 100%) !important;
    border-color: rgba(0, 71, 224, 0.25) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 32px rgba(0, 49, 128, 0.22) !important;
}

.meteoro-variable-label {
    display: inline-flex;
    align-items: center;
}

.meteoro-variable-label-temp {
    color: #ea580c;
}

.meteoro-variable-label-humidity {
    color: #0284c7;
}

.meteoro-variable-label-rain {
    color: #2563eb;
}

.meteoro-variable-label-wind {
    color: #7c3aed;
}

.meteoro-variable-btn.active .meteoro-variable-label {
    color: #ffffff;
}

@media (max-width: 768px) {
    .meteoro-card-grid {
        grid-template-columns: 1fr;
    }

    .meteoro-city-groups {
        max-height: none;
    }

    .meteoro-map-card .meteoro-map-frame {
        height: 380px;
    }

    .meteoro-map-controls,
    .meteoro-variable-toggle {
        width: 100%;
    }

    .meteoro-filters-shell,
    .meteoro-filter-group,
    .meteoro-filter-group-source,
    .meteoro-source-toggle {
        width: 100%;
    }

    .meteoro-source-toggle {
        justify-content: flex-start;
    }

    .meteoro-variable-toggle {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.15rem;
    }

    .meteoro-variable-btn {
        white-space: nowrap;
    }

    .meteoro-city-header {
        align-items: flex-start;
    }

    .meteoro-selected-grid {
        grid-template-columns: 1fr;
    }

    .meteoro-selected-highlight {
        flex-direction: column;
        align-items: flex-start;
    }
}

.kpi-group-panel-trends .kpi-sparkline {
    height: 34px;
}

.kpi-group-panel-trends .kpi-sparkline-placeholder {
    height: 18px;
}

.kpi-group-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.kpi-group-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--labclim-blue-soft), #ffffff);
    color: var(--labclim-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(0, 71, 224, 0.10);
}

.kpi-group-eyebrow {
    display: block;
    color: var(--labclim-blue);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kpi-group-title {
    color: var(--labclim-ink);
    font-size: 0.88rem;
    font-weight: 800;
}

.kpi-card-body {
    padding: 0.6rem 0.72rem 0.65rem !important;
}

.kpi-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
}

.kpi-main-info {
    min-width: 0;
}

.kpi-title {
    color: #64748b;
    font-size: var(--fs-2xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kpi-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.28rem;
    margin-top: 0.25rem;
}

.kpi-value {
    color: var(--labclim-ink);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.kpi-unit {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.kpi-icon-shell {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent);
}

.kpi-icon {
    font-size: 1rem;
    line-height: 1;
}

.kpi-sparkline-wrap {
    margin-top: 0.25rem;
}

.kpi-sparkline {
    height: 56px;
}

.kpi-sparkline-placeholder {
    height: 12px;
}

.kpi-footer-row {
    margin-top: 0.25rem;
}

.card-kpi-moderno:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10) !important;
}

.card-kpi-moderno:active,
.card-hover:active {
    transform: translateY(-1px) scale(0.99);
}

/* Efeito de Vidro nos Badges */
.badge-kpi {
    display: inline-flex;
    align-items: center;
    font-size: var(--fs-2xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.05em;
    padding: 4px 9px !important;
    border-radius: 30px !important;
    text-transform: uppercase;
}

/* --- CARDS DE OVERVIEW (LISTA) --- */
.card-hover {
    cursor: pointer;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.station-card-heading {
    min-width: 0;
    max-width: 72%;
}

.station-card-title {
    max-width: 100%;
}

.station-card-basin {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.station-summary-card {
    position: relative;
    overflow: hidden;
}

.station-summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    border-radius: 18px 0 0 18px;
}

.station-summary-card::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.55;
    pointer-events: none;
}

.station-summary-card-rising {
    background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 50%, #eaf1ff 100%) !important;
    border-color: rgba(0, 71, 224, 0.22) !important;
}

.station-summary-card-rising::before {
    background: linear-gradient(180deg, #0047e0, #1d4ed8);
}

.station-summary-card-rising::after {
    background: radial-gradient(circle at top right, rgba(0, 71, 224, 0.10), transparent 35%);
}

.station-summary-card-stable {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 50%, #fef3c7 100%) !important;
    border-color: rgba(245, 158, 11, 0.24) !important;
}

.station-summary-card-stable::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.station-summary-card-stable::after {
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 35%);
}

.station-summary-card-falling {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 50%, #fee2e2 100%) !important;
    border-color: rgba(220, 38, 38, 0.22) !important;
}

.station-summary-card-falling::before {
    background: linear-gradient(180deg, #dc2626, #b91c1c);
}

.station-summary-card-falling::after {
    background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.10), transparent 35%);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    border-radius: 999px;
    font-size: var(--fs-2xs);
    font-weight: 800;
    padding: 0.34rem 0.72rem;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.status-pill-success {
    background-color: rgba(0, 71, 224, 0.10);
    color: var(--labclim-blue);
}

.status-pill-danger {
    background-color: rgba(214, 48, 49, 0.10);
    color: #b91c1c;
}

.status-pill-secondary {
    background-color: rgba(0, 49, 128, 0.10);
    color: var(--labclim-navy);
}

.status-pill-warning {
    background-color: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10) !important;
}

.card-clickable {
    border-radius: 18px;
    outline: none;
}

.card-clickable:focus-visible {
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.22);
}

/* --- DROPDOWNS CUSTOMIZADOS --- */
.Select-control {
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
}

.Select-menu-outer {
    border-radius: 16px !important;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14) !important;
    border: none !important;
    margin-top: 8px !important;
}

.navbar-dropdown .Select-control {
    min-height: 38px;
}

.navbar-dropdown .Select-value,
.navbar-dropdown .Select-placeholder {
    line-height: 36px !important;
}

/* --- MAPA --- */
.js-plotly-plot .plotly .main-svg {
    border-radius: 20px !important;
}

.map-card,
.detail-panel-card {
    border-radius: 20px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08) !important;
    animation: panelFadeUp 0.45s ease both;
}

.overview-map-header-shell {
    background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
    padding: 1rem 1.1rem !important;
}

.overview-map-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.overview-map-copy {
    max-width: 520px;
}

.overview-map-title {
    color: var(--labclim-ink);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.overview-map-subtitle {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

.overview-map-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.overview-map-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
}

.overview-map-chip-primary {
    color: var(--labclim-blue);
    background: rgba(234, 241, 255, 0.92);
    border-color: rgba(0, 71, 224, 0.14);
}

.overview-map-chip-up {
    color: var(--labclim-blue);
    background: rgba(0, 71, 224, 0.08);
    border-color: rgba(0, 71, 224, 0.14);
}

.overview-map-chip-stable {
    color: #b45309;
    background: rgba(255, 251, 235, 0.95);
    border-color: rgba(245, 158, 11, 0.18);
}

.overview-map-chip-down {
    color: #475569;
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(100, 116, 139, 0.18);
}

.folium-map-frame {
    width: 100%;
    height: 85vh;
    min-height: 460px;
    border: 0;
    display: block;
}

.detail-map-wrapper .folium-map-frame {
    height: 500px;
    min-height: 500px;
}

.detail-map-wrapper-compact .folium-map-frame {
    height: 460px;
    min-height: 460px;
}

.btn-info {
    background: linear-gradient(135deg, var(--labclim-blue), var(--labclim-navy)) !important;
    border: none !important;
}

.btn-success {
    background: linear-gradient(135deg, #005cff, var(--labclim-navy)) !important;
    border: none !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    border: none !important;
}

.btn-info:hover,
.btn-success:hover,
.btn-secondary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn:focus,
.Select-control:focus,
.Select-control.is-focused {
    box-shadow: 0 0 0 0.2rem rgba(0, 71, 224, 0.2) !important;
}

.btn {
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.overview-scroll-list {
    height: 82vh;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.overview-ranking-panel {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    padding: 1rem;
    animation: panelFadeUp 0.45s ease both;
}

.overview-ranking-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.overview-ranking-title {
    color: var(--labclim-ink);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.overview-ranking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.overview-ranking-column {
    border-radius: 16px;
    background: #f8fafc;
    padding: 0.75rem;
}

.overview-ranking-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.32rem 0.65rem;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.overview-ranking-label-up {
    color: var(--labclim-blue);
    background: rgba(0, 71, 224, 0.08);
}

.overview-ranking-label-down {
    color: #b91c1c;
    background: rgba(220, 38, 38, 0.10);
}

.overview-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.overview-ranking-empty {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
}

.ranking-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    padding: 0.6rem 0.7rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ranking-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 71, 224, 0.16);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.ranking-chip-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ranking-chip-name {
    color: var(--labclim-ink);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-chip-basin {
    color: #94a3b8;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ranking-chip-delta {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 0.28rem 0.58rem;
    font-size: 0.68rem;
    font-weight: 800;
}

.ranking-chip-up {
    color: var(--labclim-blue);
    background: rgba(0, 71, 224, 0.08);
}

.ranking-chip-down {
    color: #475569;
    background: rgba(100, 116, 139, 0.12);
}

.ranking-chip-stable {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
}

.overview-scroll-list::-webkit-scrollbar {
    width: 8px;
}

.overview-scroll-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.basin-accordion .accordion-item {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px !important;
    overflow: hidden;
    margin-bottom: 0.9rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.basin-accordion .accordion-button {
    background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%);
    color: var(--labclim-navy);
    font-weight: 800;
    border-radius: 18px !important;
    box-shadow: none !important;
    padding: 0.95rem 1.1rem;
}

.basin-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--labclim-blue-soft) 0%, #ffffff 100%);
    color: var(--labclim-blue);
}

.basin-accordion .accordion-body {
    background: #ffffff;
    padding: 0.75rem 1rem 1rem;
}

/* Cabeçalho do grupo de rio: título + resumo (contagem e badges de status) */
.basin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    flex-wrap: wrap;
}

.basin-header-title {
    font-weight: 800;
}

.basin-header-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.basin-header-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: rgba(100, 116, 139, 0.12);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.basin-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
}

.basin-header-badge.badge-subindo {
    color: #0047e0;
    background: rgba(0, 71, 224, 0.12);
}

.basin-header-badge.badge-descendo {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.12);
}

.basin-header-badge.badge-critica {
    color: #b45309;
    background: rgba(245, 158, 11, 0.18);
}

.basin-header-badge.badge-labclim {
    color: #003180;
    background: #eaf1ff;
}

.basin-header-badge.badge-inmet {
    color: #0e7490;
    background: #ecfeff;
}

.basin-header-badge.badge-frescor {
    color: #15803d;
    background: rgba(21, 128, 61, 0.12);
}

.detail-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.detail-hero-card {
    border-radius: 28px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.10) !important;
    overflow: hidden;
    animation: panelFadeUp 0.45s ease both;
}

.detail-hero-card-success {
    background:
        radial-gradient(circle at top right, rgba(0, 71, 224, 0.16), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f3f7ff 60%, #eaf1ff 100%);
}

.detail-hero-card-warning {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fffbeb 60%, #fef3c7 100%);
}

.detail-hero-card-danger {
    background:
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.14), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fff5f5 60%, #fee2e2 100%);
}

.detail-hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.detail-hero-copy {
    min-width: min(340px, 100%);
}

.detail-hero-title {
    color: var(--labclim-ink);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.detail-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.detail-hero-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.detail-hero-chip-primary,
.detail-hero-chip-success {
    color: var(--labclim-blue);
    border-color: rgba(0, 71, 224, 0.14);
    background: rgba(234, 241, 255, 0.92);
}

.detail-hero-chip-warning {
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.18);
    background: rgba(255, 251, 235, 0.92);
}

.detail-hero-chip-danger,
.detail-hero-chip-dark {
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.16);
    background: rgba(254, 242, 242, 0.92);
}

.detail-hero-status-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 180px;
}

.detail-back-button {
    margin-top: 0.85rem;
    border-radius: 999px !important;
    padding-inline: 1rem !important;
    font-weight: 800 !important;
    box-shadow: 0 14px 28px rgba(0, 71, 224, 0.14);
}

.detail-hero-level {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.detail-hero-level-value {
    color: var(--labclim-ink);
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.detail-hero-level-unit {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-hero-variation {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 0.4rem;
}

.detail-status-badge {
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 0.65rem 1rem;
}

.detail-status-success {
    background: rgba(0, 71, 224, 0.10);
    color: var(--labclim-blue);
}

.detail-status-danger {
    background: rgba(214, 48, 49, 0.10);
    color: #b91c1c;
}

.detail-status-warning {
    background: rgba(253, 203, 110, 0.25);
    color: #92400e;
}

.chart-card-header-content {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.detail-chart-body {
    padding: 1rem 1rem 0.25rem !important;
}

.insight-mini-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 0.75rem 0.85rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.insight-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.insight-icon-primary,
.insight-icon-success {
    color: var(--labclim-blue);
    background: rgba(0, 71, 224, 0.10);
}

.insight-icon-warning {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
}

.insight-icon-danger,
.insight-icon-dark {
    color: #b91c1c;
    background: rgba(220, 38, 38, 0.10);
}

.insight-icon-secondary {
    color: #475569;
    background: rgba(100, 116, 139, 0.12);
}

.insight-copy {
    min-width: 0;
}

.insight-title {
    display: block;
    color: #64748b;
    font-size: var(--fs-2xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.insight-value {
    color: var(--labclim-ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.04em;
    margin-top: 0.15rem;
}

.insight-description {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-legend-chipbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.chart-legend-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    padding: 0.4rem 0.75rem;
    font-size: var(--fs-2xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #ffffff;
    color: #475569;
}

.chart-legend-chip-primary {
    color: var(--labclim-blue);
    background: rgba(234, 241, 255, 0.9);
}

.chart-legend-chip-warning {
    color: #b45309;
    background: rgba(255, 251, 235, 0.92);
}

.chart-legend-chip-secondary {
    color: #475569;
    background: rgba(248, 250, 252, 0.95);
}

.chart-filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.chart-filter-dropdown {
    width: 220px;
    font-size: 0.85rem;
}

.detail-chart-graph {
    height: 540px;
}

.detail-map-graph {
    height: 500px;
}

/* Garante que os ícones do Bootstrap fiquem nítidos */
.bi {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    vertical-align: middle;
}

/* Se quiser um efeito de "brilho" sutil nos ícones de alerta */
.card-kpi-moderno i.bi-exclamation-triangle-fill {
    filter: drop-shadow(0 0 5px rgba(214, 48, 49, 0.2));
}

.feedback-state-alert {
    border: 1px dashed #d9e2ec;
    border-radius: 18px;
    color: #334155;
    background-color: #f8fafc;
    font-weight: 600;
}

.feedback-state-content {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.feedback-state-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.10);
    color: #0284c7;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feedback-state-title {
    color: #0f172a;
    font-weight: 800;
}

.feedback-state-text {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-section-title {
    display: flex;
    align-items: center;
    color: var(--labclim-ink);
    font-size: 0.96rem;
    font-weight: 800;
}

.detail-section-subtitle {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 500;
    margin-top: 0.2rem;
}

.detail-table-card-body {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.recent-data-table-wrap {
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    min-height: 540px;
}

@keyframes panelFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .navbar .container-fluid {
        align-items: flex-start;
    }

    .navbar-toolbar {
        justify-content: flex-start;
        width: 100%;
    }

    .hydrology-toolbar-inner {
        width: 100%;
    }

    .navbar-filter-group--basin,
    .navbar-filter-group--station,
    .navbar-filter-group--search,
    .navbar-filter-group--status {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .hydrology-toolbar-inner {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: stretch;
    }

    .navbar-dropdown,
    .navbar-search-input {
        width: 100%;
    }

    .navbar-actions,
    .navbar-export-group {
        width: 100%;
    }

    .detail-chart-graph {
        height: 440px;
    }

    .detail-map-graph {
        height: 420px;
    }

    .folium-map-frame {
        height: 420px;
        min-height: 420px;
    }

    .overview-map-header {
        align-items: flex-start;
    }

    .overview-map-stats {
        justify-content: flex-start;
    }

    .detail-map-wrapper .folium-map-frame {
        height: 420px;
        min-height: 420px;
    }

    .detail-map-wrapper-compact .folium-map-frame {
        height: 420px;
        min-height: 420px;
    }

    .recent-data-table-wrap {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .navbar {
        padding: 0.75rem 0.65rem !important;
    }

    .navbar-brand-block,
    .navbar-section-switch,
    .navbar-filter-group--basin,
    .navbar-filter-group--station,
    .navbar-filter-group--search,
    .navbar-filter-group--status,
    .navbar-actions,
    .navbar-action-button,
    .navbar-export-group {
        width: 100%;
    }

    .navbar-section-switch .btn {
        flex: 1;
    }

    .navbar-export-group .btn {
        flex: 1;
    }

    .card-kpi-moderno:hover,
    .card-hover:hover {
        transform: none;
    }

    .kpi-group-panel .card-body {
        padding: 1rem !important;
    }

    .overview-scroll-list {
        height: auto;
        max-height: none;
    }

    .overview-ranking-grid {
        grid-template-columns: 1fr;
    }

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

    .chart-filter-bar,
    .chart-filter-dropdown {
        width: 100%;
    }

    .detail-page-header {
        margin-bottom: 1rem !important;
    }

    .detail-hero-layout {
        align-items: flex-start;
    }

    .detail-hero-status-panel {
        width: 100%;
        align-items: flex-start;
        min-width: 0;
    }

    .detail-back-button {
        width: 100%;
    }

    .detail-status-badge {
        width: 100%;
        text-align: center;
    }

    .detail-chart-graph {
        height: 360px;
    }

    .detail-map-graph {
        height: 340px;
    }

    .folium-map-frame,
    .detail-map-wrapper .folium-map-frame {
        height: 340px;
        min-height: 340px;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .page-subtitle {
        font-size: 0.84rem;
    }
}

/* --- ACESSIBILIDADE: SKIP LINK --- */
.skip-link {
    position: absolute;
    top: -48px;
    left: 1rem;
    background: var(--labclim-navy);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    z-index: 9999;
    border-radius: 0 0 10px 10px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: top 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #0047e0;
    outline-offset: 2px;
}

/* --- ACESSIBILIDADE: prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
    .card-hover,
    .card-kpi-moderno,
    .meteoro-source-btn,
    .skip-link {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .card-hover:hover,
    .card-kpi-moderno:hover {
        transform: none !important;
    }

    .card-hover:active,
    .card-kpi-moderno:active {
        transform: none !important;
    }
}
