:root {
    --blue-950: #051530;
    --blue-900: #071D41;
    --blue-800: #0C326F;
    --blue-700: #1351B4;
    --blue-600: #1D63D2;
    --blue-500: #2670E8;
    --blue-400: #5593F7;
    --blue-200: #C5DCFA;
    --blue-100: #E6F0FF;
    --blue-50: #F2F7FF;

    --bg-canvas: #EEF4FB;
    --surface: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #475569;
    --border: #D5E3F7;

    --emerald: #0D9488;
    --green: #15803D;
    --amber: #D97706;
    --red: #DC2626;
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(7, 29, 65, 0.06);
    --shadow-md: 0 8px 24px rgba(7, 29, 65, 0.10);
}

* {
    box-sizing: border-box;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    display: none !important;
    background: transparent !important;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-canvas);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
}

/* Layout Principal & Menu Lateral Retrátil */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 74px;
    background: linear-gradient(180deg, var(--blue-900) 0%, var(--blue-950) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    box-shadow: 4px 0 22px rgba(5, 21, 48, 0.25);
    z-index: 9999 !important;
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.26s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.26s ease;
}

/* Abre ao iniciar (.sidebar-initial-open), ao passar o mouse (:hover) ou quando fixado (.sidebar-pinned) */
.sidebar.sidebar-initial-open,
.sidebar:hover,
.app-shell.sidebar-pinned .sidebar {
    width: 330px;
    box-shadow: 10px 0 32px rgba(5, 21, 48, 0.38);
}

.brand-box {
    padding: 13px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue-500), #38BDF8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(38, 112, 232, 0.45);
}

.brand-text-wrap {
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: opacity 0.18s ease;
    flex: 1;
    min-width: 0;
}

.sidebar.sidebar-initial-open .brand-text-wrap,
.sidebar:hover .brand-text-wrap,
.app-shell.sidebar-pinned .sidebar .brand-text-wrap {
    opacity: 1;
    visibility: visible;
}

.sidebar-pin-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #93C5FD;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.sidebar.sidebar-initial-open .sidebar-pin-btn,
.sidebar:hover .sidebar-pin-btn,
.app-shell.sidebar-pinned .sidebar .sidebar-pin-btn {
    opacity: 1;
    pointer-events: auto;
}

.app-shell.sidebar-pinned .sidebar-pin-btn {
    background: var(--blue-500);
    color: #FFFFFF;
    border-color: #60A5FA;
}

.brand-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.brand-sub {
    font-size: 11px;
    color: #93C5FD;
    margin-top: 2px;
}

.nav-menu {
    padding: 14px 11px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #93C5FD;
    opacity: 0;
    height: 0;
    padding: 0 12px;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 700;
    transition: opacity 0.18s ease, height 0.18s ease, padding 0.18s ease;
}

.sidebar.sidebar-initial-open .nav-section-label,
.sidebar:hover .nav-section-label,
.app-shell.sidebar-pinned .sidebar .nav-section-label {
    opacity: 0.78;
    height: auto;
    padding: 8px 12px 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 14px;
    border-radius: 9px;
    color: #DBEAFE;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.18s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    min-height: 42px;
}

.nav-link:hover {
    background: rgba(38, 112, 232, 0.22);
    color: #fff;
}

.nav-link.active {
    background: linear-gradient(90deg, var(--blue-700), var(--blue-500));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(19, 81, 180, 0.45);
    border-color: rgba(255, 255, 255, 0.18);
}

.nav-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.nav-link-left i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.nav-link-text {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease;
}

.sidebar.sidebar-initial-open .nav-link-text,
.sidebar:hover .nav-link-text,
.app-shell.sidebar-pinned .sidebar .nav-link-text {
    opacity: 1;
    visibility: visible;
}

.nav-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease;
}

.sidebar.sidebar-initial-open .nav-badge,
.sidebar:hover .nav-badge,
.app-shell.sidebar-pinned .sidebar .nav-badge {
    opacity: 1;
    visibility: visible;
}

.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11.5px;
    color: #BFDBFE;
    background: rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}

.sidebar-footer-icon-only {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #93C5FD;
}

.sidebar-footer-full {
    display: none;
}

.sidebar.sidebar-initial-open .sidebar-footer-icon-only,
.sidebar:hover .sidebar-footer-icon-only,
.app-shell.sidebar-pinned .sidebar .sidebar-footer-icon-only {
    display: none;
}

.sidebar.sidebar-initial-open .sidebar-footer-full,
.sidebar:hover .sidebar-footer-full,
.app-shell.sidebar-pinned .sidebar .sidebar-footer-full {
    display: block;
}

/* Main Content */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-left: 74px;
    transition: margin-left 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-shell.sidebar-pinned .main-area {
    margin-left: 330px;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap !important;
    position: sticky;
    top: 0;
    z-index: 15;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.ente-selector-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap !important;
    flex: 1 1 auto;
    min-width: 220px;
    max-width: 460px;
}

.ente-selector-label {
    font-weight: 700;
    color: var(--blue-900);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.ente-select {
    padding: 7px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--blue-400);
    background: var(--blue-50);
    color: var(--blue-900);
    font-weight: 600;
    font-size: 13px;
    min-width: 180px;
    width: 100%;
    cursor: pointer;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap !important;
    flex-shrink: 0;
    margin-left: auto !important;
}

.topbar-actions .btn {
    padding: 7px 12px;
    font-size: 12px;
    height: 35px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.content-container {
    padding: 14px 18px 48px;
    max-width: 100% !important;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.16s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
    color: #fff;
    box-shadow: 0 3px 10px rgba(19, 81, 180, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    transform: translateY(-1px);
}

.btn-whatsapp-topbar {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-whatsapp-topbar i {
    font-size: 16px;
}

.btn-whatsapp-topbar:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45);
}

.btn-outline {
    background: #fff;
    color: var(--blue-700);
    border-color: var(--blue-400);
}

.btn-outline:hover {
    background: var(--blue-50);
}

.btn-soft {
    background: var(--blue-100);
    color: var(--blue-800);
}

.btn-soft:hover {
    background: var(--blue-200);
}

.btn-danger-soft {
    background: #FEE2E2;
    color: #B91C1C;
}

.btn-danger-soft:hover {
    background: #FECACA;
}

.btn-sm {
    padding: 6px 11px;
    font-size: 12px;
    border-radius: 6px;
}

/* Banner Institucional do Ente - Límpido e Vibrante */
.ente-hero {
    background: linear-gradient(125deg, #1D4ED8 0%, #2563EB 55%, #0284C7 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
}

.ente-hero h1 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
}

.ente-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: #DBEAFE;
}

/* Grid de KPIs — Alinhamento Horizontal Reto em Todas as Abas */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
    align-items: stretch;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue-600);
    border-radius: var(--radius);
    padding: 14px 15px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-width: 0;
    text-align: left;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-clickable {
    cursor: pointer;
}

.kpi-card.kpi-ativo {
    border-left-color: #0284C7;
}

.kpi-card.kpi-concluido {
    border-left-color: var(--emerald);
}

.kpi-card.kpi-analise {
    border-left-color: #6366F1;
}

.kpi-card.kpi-alerta {
    border-left-color: var(--amber);
}

.kpi-card.kpi-valores {
    border-left-color: var(--blue-900);
    background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FF 100%);
}

/* Slot 1 Fixo (32px): Título em 1 ou 2 linhas nunca empurra os valores para baixo */
.kpi-label,
.kpi-top {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    line-height: 1.3;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    overflow: hidden;
}

.kpi-label>span,
.kpi-top>.kpi-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    height: auto;
    min-height: 0;
    margin: 0;
}

.kpi-label>i,
.kpi-top>.kpi-icon {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 13.5px;
}

/* Slot 2 Fixo (34px): Valor principal sempre na mesma linha horizontal */
.kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue-900);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.kpi-card>.kpi-value {
    height: 34px;
    min-height: 34px;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-card>.kpi-value.money {
    font-size: 18px;
    letter-spacing: -0.3px;
}

.kpi-card>.kpi-value.kpi-value-text {
    font-size: 15.5px;
    letter-spacing: -0.2px;
}

/* Slot Rodapé Alinhado pela Base Superior */
.kpi-foot,
.kpi-sub {
    border-top: 1px dashed #E2ECF9;
    padding-top: 6px;
    min-height: 30px;
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.card-header-only {
    margin-bottom: 16px;
}

.card-header-only .card-header {
    border-bottom: none;
}

/* Gráficos e Painéis — Cabeçalhos Sempre na Mesma Altura Horizontal */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.3fr;
    gap: 16px;
    margin-bottom: 20px;
    align-items: stretch;
}

.charts-grid>.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.charts-grid>.card>.card-header {
    height: 56px;
    min-height: 56px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.charts-grid>.card>.card-header .card-title {
    min-width: 0;
    font-size: 14px;
    line-height: 1.3;
}

.charts-grid>.card>.card-header .badge,
.charts-grid>.card>.card-header .chart-click-hint {
    flex-shrink: 0;
}

.capag-indicadores-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 14px 20px;
    background: linear-gradient(90deg, var(--blue-50), #FFFFFF);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 18px 20px;
}

.chart-box {
    position: relative;
    height: 235px;
}

/* Barra de Filtros Alinhada em Grid */
.filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 16px;
    background: var(--blue-50);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--blue-200);
    margin-bottom: 16px;
}

@media (max-width: 1200px) {
    .filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .filter-bar {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.form-group label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--blue-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.form-control {
    height: 38px;
    padding: 8px 11px;
    border: 1px solid #BBD2F2;
    border-radius: 7px;
    font-size: 13px;
    background: #fff;
    color: var(--text-main);
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(38, 112, 232, 0.16);
}

/* Tabela de Dados */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.table-responsive::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

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

.data-table thead th {
    background: var(--blue-900);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 11px 12px;
    font-size: 12px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.data-table tbody tr {
    border-bottom: 1px solid #E2ECF9;
    transition: background 0.12s ease;
}

.data-table tbody tr:hover {
    background: var(--blue-50);
}

.data-table td {
    padding: 12px;
    vertical-align: top;
}

/* Sinalizações na Linha */
.row-flag-vermelho {
    border-left: 4px solid var(--red);
    background: #FEF2F2 !important;
}

.row-flag-amarelo {
    border-left: 4px solid var(--amber);
    background: #FFFBEB !important;
}

.row-flag-azul {
    border-left: 4px solid var(--blue-600);
    background: #EFF6FF !important;
}

.row-flag-verde {
    border-left: 4px solid var(--green);
    background: #F0FDF4 !important;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-ativo {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #93C5FD;
}

.badge-concluido {
    background: #CCFBF1;
    color: #115E59;
    border: 1px solid #5EEAD4;
}

.badge-analise {
    background: #E0E7FF;
    color: #3730A3;
    border: 1px solid #A5B4FC;
}

.badge-impedido {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.badge-pix {
    background: #0C326F;
    color: #FFFFFF;
}

.badge-disc {
    background: #E0F2FE;
    color: #0369A1;
}

.note-preview {
    margin-top: 6px;
    padding: 6px 9px;
    background: #EFF6FF;
    border-left: 3px solid var(--blue-600);
    border-radius: 5px;
    font-size: 11.5px;
    color: var(--blue-900);
}

.tag-chip {
    display: inline-block;
    background: var(--blue-100);
    color: var(--blue-800);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    margin-right: 4px;
    margin-top: 4px;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 17px;
    color: #CBD5E1;
    padding: 2px;
    transition: transform 0.15s;
}

.star-btn.active {
    color: #F59E0B;
}

.star-btn:hover {
    transform: scale(1.2);
}

.flag-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 4px;
}

.flag-dot.vermelho {
    background: var(--red);
}

.flag-dot.amarelo {
    background: var(--amber);
}

.flag-dot.azul {
    background: var(--blue-600);
}

.flag-dot.verde {
    background: var(--green);
}

/* Abas de Conteúdo */
.tab-pane {
    display: none;
}

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

/* Modal Ficha 360° e Cadastro */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 21, 48, 0.65);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}

.modal-backdrop.open {
    display: flex;
}

.modal-dialog {
    background: var(--surface);
    width: 100%;
    max-width: 1080px;
    max-height: 92vh;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(5, 21, 48, 0.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--blue-200);
}

.modal-dialog.modal-md {
    max-width: 680px;
}

.modal-header {
    background: linear-gradient(90deg, var(--blue-900), var(--blue-700));
    color: #fff;
    padding: 16px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.16);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}

.subtabs-nav {
    display: flex;
    gap: 4px;
    background: var(--blue-50);
    padding: 10px 20px 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.subtab-btn {
    padding: 9px 15px;
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    white-space: nowrap;
}

.subtab-btn.active {
    background: #fff;
    color: var(--blue-700);
    border-color: var(--border);
}

.modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
}

.subtab-content {
    display: none;
}

.subtab-content.active {
    display: block;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.info-item {
    background: var(--blue-50);
    border: 1px solid var(--border);
    padding: 10px 13px;
    border-radius: 8px;
}

.info-item small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.info-item strong {
    font-size: 13.5px;
    color: var(--blue-900);
}

/* Loading Overlay Sincronização */
.sync-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 29, 65, 0.82);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    color: #fff;
    text-align: center;
}

.sync-overlay.open {
    display: flex;
}

.spinner {
    width: 52px;
    height: 52px;
    border: 5px solid rgba(255, 255, 255, 0.25);
    border-top-color: #60A5FA;
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--blue-900);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid #38BDF8;
    font-weight: 500;
    max-width: 420px;
}

/* Ranking Parlamentares */
.parl-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.parl-item {
    background: var(--blue-50);
    border: 1px solid var(--blue-200);
    border-radius: 9px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.15s;
}

.parl-item:hover {
    background: var(--blue-100);
}

/* ==========================================================================
   ABA CAPAG — CAPACIDADE DE PAGAMENTO (TESOURO TRANSPARENTE)
   ========================================================================== */
.capag-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.capag-rating-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(7, 29, 65, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.65);
}

.capag-rating-lbl {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0.9;
}

.capag-rating-val {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.05;
}

.capag-grade-a {
    background: linear-gradient(135deg, #0D9488, #15803D);
}

.capag-grade-b {
    background: linear-gradient(135deg, #1351B4, #2670E8);
}

.capag-grade-c {
    background: linear-gradient(135deg, #D97706, #F59E0B);
}

.capag-grade-d {
    background: linear-gradient(135deg, #991B1B, #DC2626);
}

.capag-grade-nd {
    background: linear-gradient(135deg, #475569, #64748B);
}

.capag-mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 3px 10px;
    border-radius: 99px;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
}

.capag-elig-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12.5px;
}

.capag-elig-box i {
    font-size: 22px;
    margin-top: 2px;
}

.capag-elig-box strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.capag-elig-box.elig-yes {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #166534;
}

.capag-elig-box.elig-no {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}

.capag-bar-track {
    width: 100%;
    height: 9px;
    background: #E2ECF9;
    border-radius: 99px;
    overflow: hidden;
}

.capag-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.siconfi-check-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.siconfi-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--blue-50);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 6px 10px;
    font-size: 12px;
}

/* ==========================================================================
   ABA CAUC ("CALC") — LAYOUT OFICIAL DO EXTRATO TESOURO NACIONAL
   ========================================================================== */
.cauc-official-sheet {
    border: 1px solid #BFD4F2;
    overflow: hidden;
}

.cauc-sheet-top {
    background: linear-gradient(120deg, #071D41 0%, #0C326F 60%, #1351B4 100%);
    color: #FFFFFF;
    padding: 20px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cauc-sheet-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #93C5FD;
    text-transform: uppercase;
}

.cauc-sheet-ente {
    margin: 4px 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.cauc-sheet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: #DBEAFE;
}

.cauc-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.cauc-pill {
    background: var(--blue-50);
    border: 1px solid var(--border);
    color: var(--blue-900);
    padding: 7px 14px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.cauc-pill:hover {
    background: var(--blue-100);
}

.cauc-pill.active {
    background: var(--blue-700);
    color: #FFFFFF;
    border-color: var(--blue-700);
}

.cauc-pill.active span {
    color: #FFFFFF !important;
}

/* Legenda oficial CAUC */
.cauc-legenda-block {
    padding: 10px 0 18px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 18px;
}

.cauc-legenda-title {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 12px;
    letter-spacing: 0.4px;
}

.cauc-legenda-items {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}

.cauc-legenda-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
}

.cauc-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.cauc-circle-legal {
    background: #1351B4;
    font-size: 11.5px;
    letter-spacing: -0.3px;
}

.cauc-circle-ok {
    background: #789D32;
    font-size: 15px;
}

.cauc-circle-warn {
    background: #CEA028;
    font-size: 18px;
    font-weight: 800;
}

.cauc-circle-off {
    background: #828282;
    font-size: 15px;
}

.cauc-main-heading {
    font-size: 19px;
    font-weight: 500;
    color: #1E293B;
    margin: 6px 0 16px;
}

.cauc-group-container {
    margin-bottom: 18px;
}

.cauc-group-banner {
    background: linear-gradient(90deg, #DCE7F7 0%, #EEF4FC 65%, #FFFFFF 100%);
    color: #1E293B;
    font-weight: 700;
    font-size: 13.5px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-left: 4px solid #1351B4;
}

.cauc-item-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #F8F9FA;
    padding: 14px 18px;
    margin-bottom: 6px;
    border-radius: 4px;
    border: 1px solid #EDF2F7;
    transition: background 0.12s;
}

.cauc-item-row:hover {
    background: #F1F6FD;
    border-color: #CBD5E1;
}

.cauc-item-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cauc-item-body {
    flex: 1;
    min-width: 0;
}

.cauc-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 8px;
}

.cauc-item-subrow {
    display: grid;
    grid-template-columns: minmax(210px, 1.2fr) minmax(190px, 1fr) auto;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #334155;
}

.cauc-meta-validity,
.cauc-meta-source {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cauc-meta-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #828282;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.cauc-meta-source a,
.cauc-meta-more a {
    color: #334155;
    text-decoration: underline;
    font-weight: 500;
}

.cauc-meta-source a:hover,
.cauc-meta-more a:hover {
    color: #1351B4;
}

/* ==========================================================================
   KPIS FINANCEIROS POR STATUS & GRIDS SIMÉTRICOS (TODAS AS ABAS)
   ========================================================================== */
.kpi-grid-rich {
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.kpi-grid-rich .kpi-card {
    padding: 13px 13px;
}

.kpi-split-row {
    height: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 0 0 5px;
}

.kpi-split-row .kpi-value {
    margin: 0;
    font-size: 22px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.kpi-pill-pct {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
    background: var(--blue-100);
    color: var(--blue-800);
    white-space: nowrap;
    line-height: 1.3;
    flex-shrink: 0;
}

.kpi-money-main {
    height: 22px;
    min-height: 22px;
    display: flex;
    align-items: center;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--blue-900);
    margin: 0 0 7px;
    letter-spacing: -0.25px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-foot-lines {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    min-height: 35px;
    font-size: 10.8px;
    line-height: 1.35;
    color: var(--text-muted);
    border-top: 1px dashed #E2ECF9;
    padding-top: 5px;
    font-variant-numeric: tabular-nums;
}

.kpi-foot-lines>span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1120px) {
    .kpi-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .kpi-grid-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .kpi-grid-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1380px) {
    .kpi-grid-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .kpi-grid-rich {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

.kpi-impedido-card {
    border-left: 4px solid #DC2626;
}

.kpi-cancelado-card {
    border-left: 4px solid #64748B;
}

.kpi-selected {
    box-shadow: 0 0 0 2px var(--blue-600), var(--shadow-md);
    background: #F8FBFF;
}

/* Termômetro de Limites LRF (Aba Despesa de Pessoal e Encargos Sociais) */
.lrf-gauge-card {
    border-left: 4px solid var(--blue-700);
}

.lrf-gauge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.lrf-limits-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: var(--text-muted);
}

.lrf-leg-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lrf-leg-item i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.lrf-gauge-track {
    position: relative;
    height: 14px;
    background: #E2ECF9;
    border-radius: 99px;
    overflow: visible;
}

.lrf-gauge-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.35s ease, background-color 0.25s ease;
}

.lrf-marker {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 3px;
    border-radius: 2px;
    transform: translateX(-50%);
}

.lrf-marker-alerta {
    background: #F59E0B;
}

.lrf-marker-prud {
    background: #EA580C;
}

.lrf-marker-max {
    background: #DC2626;
    width: 3.5px;
}

/* Faixa Executiva de Vigências */
.vigencia-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.vigencia-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.vigencia-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.vigencia-chip.active {
    box-shadow: 0 0 0 2px var(--blue-600);
    background: #F0F7FF;
}

.vig-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.vig-ok .vig-icon {
    background: #DCFCE7;
    color: #15803D;
}

.vig-warn .vig-icon {
    background: #FEF3C7;
    color: #B45309;
}

.vig-expired .vig-icon {
    background: #FEE2E2;
    color: #B91C1C;
}

.vig-none .vig-icon {
    background: #E0E7FF;
    color: #3730A3;
}

.vig-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.vig-stats {
    font-size: 12.5px;
    color: var(--blue-900);
}

.vig-stats span {
    font-weight: 700;
    color: var(--blue-700);
}

.charts-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.chart-card-span-2 {
    grid-column: span 2;
}

@media (max-width: 1280px) {
    .charts-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chart-card-span-2 {
        grid-column: span 2;
    }
}

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

    .chart-card-span-2 {
        grid-column: span 1;
    }
}

.tipo-fonte-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 10.5px;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.badge-pac {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.badge-ogu {
    background: #F0FDF4;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.badge-financ {
    background: #FDF4FF;
    color: #86198F;
    border: 1px solid #F5D0FE;
}

details>summary::-webkit-details-marker {
    display: none;
}

/* ==========================================================================
   INTERATIVIDADE BI (CROSS-FILTERING, AUTO-FILTROS & BOTÃO FLUTUANTE REDONDO)
   ========================================================================== */
a.kpi-card {
    cursor: pointer;
}

.chart-interactive-card canvas {
    cursor: pointer;
}

.chart-click-hint {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--blue-600);
    background: var(--blue-50);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.parl-item {
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.parl-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.parl-item.active {
    background: #E8F1FE;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 2px var(--blue-600);
}

.auto-check-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--blue-900);
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    height: 36px;
}

.auto-check-pill:hover {
    border-color: var(--blue-500);
    background: var(--blue-50);
}

.content-container.is-filtering {
    opacity: 0.68;
    transition: opacity 0.15s ease;
}

/* Botão Redondo Flutuante de Limpar Seleções / Filtros */
.fab-clear-filters {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    cursor: pointer;
    z-index: 950;
    box-shadow: 0 12px 28px rgba(153, 27, 27, 0.42), 0 4px 10px rgba(7, 29, 65, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.55) translateY(24px);
    transition: opacity 0.24s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1),
        visibility 0.24s ease,
        box-shadow 0.18s ease;
}

.fab-clear-filters.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.fab-clear-filters:hover {
    transform: scale(1.09) translateY(-2px);
    box-shadow: 0 16px 34px rgba(185, 28, 28, 0.55), 0 6px 14px rgba(7, 29, 65, 0.28);
}

.fab-clear-filters:active {
    transform: scale(0.96);
}

.fab-clear-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border-radius: 99px;
    background: #071D41;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    font-size: 11.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.fab-clear-label {
    position: absolute;
    right: 68px;
    background: #071D41;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(7, 29, 65, 0.28);
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.fab-clear-filters:hover .fab-clear-label {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Aba Transferências Constitucionais (Tesouro Transparente / COINT / ARIA)
   ========================================================================== */
.tc-identity-strip {
    background: linear-gradient(125deg, #071D41 0%, #0C326F 55%, #1351B4 100%);
    border-radius: 12px;
    padding: 16px 22px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 8px 20px rgba(7, 29, 65, 0.16);
}

.tc-active-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tc-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    padding: 5px 11px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.tc-filter-chip:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(255, 255, 255, 0.6);
}

.charts-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tc-matrix-table th,
.tc-matrix-table td {
    padding: 9px 10px;
    font-size: 11.5px;
}

.tc-matrix-table td.tc-num-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tc-matrix-table tr.tc-row-selected td {
    background: #EFF6FF;
}

/* Painel Unificado e Retrátil de Filtros para Telas Limpas */
.unified-filter-drawer {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-left: 4px solid var(--blue-600);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.unified-filter-drawer[open] {
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.unified-filter-summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: linear-gradient(90deg, #EFF6FF 0%, #F8FAFC 100%);
    user-select: none;
}

.unified-filter-summary::-webkit-details-marker {
    display: none;
}

.unified-filter-summary-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-900);
}

.unified-filter-summary-title i {
    color: var(--blue-600);
}

.unified-filter-summary-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--blue-700);
}

.unified-filter-drawer[open] .unified-filter-summary {
    border-bottom: 1px solid #E2E8F0;
}

.unified-filter-body {
    padding: 14px 16px;
    background: #FFFFFF;
}

@media (max-width: 1240px) {
    .charts-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100% !important;
        height: auto;
        position: relative;
        box-shadow: none !important;
    }

    .sidebar .brand-text-wrap,
    .sidebar .nav-link-text,
    .sidebar .nav-badge,
    .sidebar .nav-section-label,
    .sidebar .sidebar-footer-full {
        opacity: 1 !important;
        max-width: none !important;
        display: block !important;
    }

    .sidebar .sidebar-footer-icon-only,
    .sidebar .sidebar-pin-btn {
        display: none !important;
    }

    .main-area,
    .app-shell.sidebar-pinned .main-area {
        margin-left: 0 !important;
    }

    .ente-select {
        min-width: 220px;
    }

    .capag-hero-grid {
        grid-template-columns: 1fr;
    }

    .cauc-item-subrow {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .fab-clear-filters {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
        font-size: 19px;
    }
}

/* ==========================================================================
   ATLAS FULL-SCREEN 360° — MAPA INTERATIVO DE ESTADOS E MUNICÍPIOS
   (Inspirado e aprimorado a partir de meumunicipio.org.br & IBGE Atlas)
   Tema Claro, Moderno e Límpido
   ========================================================================== */
.fs-map-experience {
    position: relative;
    width: 100%;
    height: calc(100vh - 96px);
    min-height: 760px;
    border-radius: 16px;
    overflow: hidden;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fs-map-experience.is-fullscreen-mode {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    border-radius: 0 !important;
    z-index: 9998 !important;
    border: none !important;
}

.fs-leaflet-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #E2E8F0;
}

/* Topbar Flutuante Glassmorphism Claro - Barra Única Alinhada */
.fs-topbar-glass {
    position: relative;
    z-index: 10;
    margin: 8px 10px 0;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(203, 213, 225, 0.85);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: visible;
    color: #0F172A;
}

.fs-brand-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding-right: 8px;
    flex-shrink: 0;
}

.fs-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, #0284C7, #0D9488);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}

.fs-brand-title {
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: 0.3px;
    color: #0F172A;
    white-space: nowrap;
}

.fs-brand-sub {
    font-size: 10px;
    color: #0284C7;
    font-weight: 700;
    white-space: nowrap;
}

.fs-selectors-group {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
}

.fs-select-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 140px;
}

.fs-selectors-group .fs-select-box:nth-child(1) {
    flex: 0 0 170px;
}

.fs-select-box-wide {
    flex: 1 1 300px;
    min-width: 220px;
}

.fs-select-box-search {
    flex: 1 1 260px;
    min-width: 180px;
    max-width: none;
}

.fs-select-box select {
    width: 100%;
}

.fs-select-box label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #0369A1;
    white-space: nowrap;
}

.fs-select-box select {
    background: #FFFFFF;
    color: #0F172A;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 0 10px;
    height: 33px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.fs-select-box select:focus {
    border-color: #0284C7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.fs-search-box {
    position: relative;
    width: 100%;
    margin-top: 0;
}

.fs-search-box>i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #0284C7;
    font-size: 12px;
    pointer-events: none;
}

.fs-search-box input {
    width: 100%;
    height: 33px;
    background: #FFFFFF;
    color: #0F172A;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 0 10px 0 30px;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.fs-search-box input::placeholder {
    color: #64748B;
}

.fs-autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    z-index: 50;
}

.fs-autocomplete-item {
    padding: 8px 12px;
    font-size: 12px;
    color: #1E293B;
    cursor: pointer;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fs-autocomplete-item:hover {
    background: #E0F2FE;
    color: #0284C7;
}

.fs-actions-group {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    padding-right: 6px;
}

.fs-map-style-pills {
    display: flex;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 2px;
    margin-top: 0;
    height: 33px;
    align-items: center;
    box-sizing: border-box;
}

.fs-style-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.fs-style-btn.active {
    background: #0284C7;
    color: #FFFFFF;
}

.fs-btn-fullscreen {
    margin-top: 0;
    background: linear-gradient(135deg, #0284C7, #0369A1);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 12px;
    height: 33px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
    box-sizing: border-box;
    white-space: nowrap;
}

/* Painéis Laterais Flutuantes (Esquerdo e Direito) - Tema Claro */
.fs-side-panel {
    position: absolute;
    top: 78px;
    bottom: 54px;
    width: 420px;
    z-index: 8;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(2, 132, 199, 0.4) transparent;
}

.fs-panel-left {
    left: 14px;
    width: 420px;
}

.fs-panel-right {
    right: 14px;
    width: 420px;
}

.fs-glass-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 13px;
    padding: 13px 15px;
    color: #0F172A;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.fs-identity-card {
    background: linear-gradient(145deg, #FFFFFF, #F0F9FF);
    border: 1px solid #BAE6FD;
}

.fs-identity-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.fs-scope-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0284C7;
    background: #E0F2FE;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #BAE6FD;
}

.fs-locality-name {
    margin: 5px 0 0;
    font-size: 19px;
    font-weight: 900;
    color: #0C4A6E;
    line-height: 1.2;
}

.fs-uf-pill {
    display: inline-block;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 6px;
    background: #0284C7;
    color: #fff;
    vertical-align: middle;
    margin-left: 4px;
}

.fs-mini-link {
    background: #E0F2FE;
    color: #0284C7;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 7px;
    border: 1px solid #BAE6FD;
    white-space: nowrap;
}

.fs-meta-badges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.fs-meta-item {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 9px;
    padding: 7px 10px;
}

.fs-meta-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.fs-meta-label {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748B;
    letter-spacing: 0.3px;
}

.fs-meta-val {
    font-size: 12px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
}

.fs-meta-val small {
    color: #0284C7;
    font-weight: 600;
}

.fs-section-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #0F172A;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #E2E8F0;
}

.fs-card-source {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9.5px;
    color: #64748B;
    font-weight: 600;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(203, 213, 225, 0.7);
}

.fs-card-source i {
    color: #0284C7;
    margin-right: 4px;
}

.card-source-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    color: #64748B;
    font-weight: 600;
    padding: 6px 12px;
    border-top: 1px dashed #E2E8F0;
    background: #F8FAFC;
    border-radius: 0 0 8px 8px;
}

.card-source-caption i {
    color: #0284C7;
    margin-right: 4px;
}

.chart-source-tag {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    background: #F1F5F9;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #E2E8F0;
}

.fs-tag-pill {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: none;
}

.fs-tag-green {
    background: #DCFCE7;
    color: #15803D;
}

.fs-tag-amber {
    background: #FEF3C7;
    color: #B45309;
}

.fs-tag-blue {
    background: #E0F2FE;
    color: #0369A1;
}

.fs-tag-teal {
    background: #CCFBF1;
    color: #0F766E;
}

.fs-censo-trio {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.fs-censo-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 9px;
    padding: 6px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
}

.fs-censo-highlight {
    background: #E0F2FE;
    border-color: #38BDF8;
}

.fs-censo-yr {
    font-size: 8.5px;
    font-weight: 800;
    color: #0369A1;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-censo-num {
    font-size: 13px;
    font-weight: 900;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-censo-box small {
    font-size: 8.5px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-mini-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 9px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 7px;
    font-size: 11px;
    color: #334155;
}

.fs-two-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.fs-metric-tile {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 9px;
    padding: 9px 11px;
}

.fs-metric-lbl {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748B;
}

.fs-metric-big {
    font-size: 17px;
    font-weight: 900;
    color: #0F172A;
    margin: 3px 0;
    font-variant-numeric: tabular-nums;
}

.fs-metric-big small {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
}

.fs-metric-sub {
    font-size: 10.5px;
    color: #475569;
}

/* Sub-navegação do Painel Direito - Tema Claro */
.fs-right-nav {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 4px;
    position: sticky;
    top: 0;
    z-index: 5;
    overflow-x: auto;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.fs-rnav-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 10.5px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
}

.fs-rnav-btn.active,
.fs-rnav-btn:hover {
    background: #0284C7;
    color: #FFFFFF;
}

.fs-bars-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.fs-bar-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fs-bar-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #1E293B;
}

.fs-bar-track {
    height: 6px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
}

.fs-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.fs-stacked-bar {
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    background: #E2E8F0;
}

.fs-idhm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.fs-idhm-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 7px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fs-idhm-box span {
    font-size: 9.5px;
    color: #64748B;
    font-weight: 700;
    text-transform: uppercase;
}

.fs-idhm-box strong {
    font-size: 14px;
    font-weight: 900;
    color: #0F172A;
}

/* Lista Rolável de Municípios no Painel Direito - Tema Claro */
.fs-mun-scroll-list {
    max-height: 290px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 3px;
}

.fs-mun-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fs-mun-row:hover {
    background: #F0F9FF;
    border-color: #38BDF8;
}

.fs-mun-row.active {
    background: #FFF7ED;
    border-color: #EA580C;
}

.fs-mun-rank {
    font-size: 10.5px;
    font-weight: 800;
    color: #0284C7;
    min-width: 26px;
}

.fs-mun-main {
    flex: 1;
    min-width: 0;
}

.fs-mun-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #0F172A;
}

.fs-mun-title code {
    font-size: 10px;
    color: #0369A1;
    background: #E0F2FE;
    padding: 1px 5px;
    border-radius: 4px;
}

.fs-mun-sub {
    font-size: 10px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-mun-metrics {
    text-align: right;
    flex-shrink: 0;
}

.fs-mun-pop {
    font-size: 12px;
    font-weight: 800;
    color: #059669;
}

.fs-mun-idhm {
    font-size: 9.5px;
    color: #475569;
}

/* Barra Inferior de Legenda Coroplética e Atalhos - Tema Claro */
.fs-bottom-legend-bar {
    position: relative;
    z-index: 9;
    margin: 0 14px 10px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #1E293B;
    font-size: 11px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.fs-legend-left,
.fs-legend-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fs-legend-title {
    font-weight: 800;
    color: #0369A1;
}

.fs-legend-scale {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: #475569;
}

.fs-legend-scale i {
    display: inline-block;
    width: 18px;
    height: 10px;
    border-radius: 3px;
}

.fs-quick-btn {
    background: #FFFFFF;
    color: #1E293B;
    border: 1px solid #CBD5E1;
    border-radius: 7px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fs-quick-btn:hover {
    background: #0284C7;
    color: #fff;
    border-color: #0284C7;
}

.fs-quick-btn-accent {
    background: linear-gradient(135deg, #0284C7, #0D9488);
    color: #fff;
    border: none;
}

@media (max-width: 1200px) {
    .fs-map-experience {
        height: auto;
        min-height: 100vh;
    }

    .fs-leaflet-canvas {
        position: relative;
        height: 440px;
    }

    .fs-side-panel {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        width: calc(100% - 28px);
        margin: 10px auto;
        max-height: none;
    }
}

/* Botões Globais de Exportação CSV por Card / Tabela */
.btn-card-csv {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #047857;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.btn-card-csv:hover {
    background: #10B981;
    color: #FFFFFF;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   TOPBAR FIXA NA ROLAGEM COM EFEITO DE VIDRO TRANSPARENTE ESFUMAÇADO (GLASS)
   PADRÃO OFICIAL UNIFICADO PARA AS 5 ABAS
   ========================================================================== */
.topbar,
.topbar.topbar-glass,
#appTopbar,
#appTopbarPortal {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 9px 20px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(14px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
    border-bottom: 1.5px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.topbar-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.topbar-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0284C7, #0A3A82);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.28);
    flex-shrink: 0;
}

.topbar-text-group {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.topbar-title-text {
    font-size: 13.5px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.topbar-desc-text {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-scope-badge {
    background: linear-gradient(135deg, #0284C7, #0D9488);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.25);
    white-space: nowrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto !important;
}

.btn-topbar-sincronizar {
    background: #0284C7 !important;
    background: linear-gradient(135deg, #0284C7 0%, #0D9488 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.btn-topbar-sincronizar:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.35) !important;
}

.btn-topbar-csv {
    background: #ffffff !important;
    color: #065F46 !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    border: 1.5px solid #10B981 !important;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.btn-topbar-csv:hover {
    background: #ECFDF5 !important;
    color: #047857 !important;
    transform: translateY(-1px) !important;
}

.btn-topbar-fullscreen {
    background: linear-gradient(135deg, #0284C7, #0369A1) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.28) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
}

.btn-topbar-fullscreen:hover {
    background: linear-gradient(135deg, #0369A1, #075985) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.4) !important;
}

.topbar-scope-badge {
    display: none !important;
}