/* Ajuste para botões/links do navbar ficarem menores e centralizados na altura de 2rem */
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.pl-3 { padding-left: 1rem !important; }
.pr-3 { padding-right: 1rem !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.badge-warning { background-color: #ffc107 !important; color: #212529 !important; }

/* Compatibilidade Bootstrap 4 -> 5 (layout de formulários legados) */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -5px;
    margin-left: -5px;
}

.form-row > .col,
.form-row > [class*="col-"] {
    padding-right: 5px;
    padding-left: 5px;
}

.navbar .nav-link,
.navbar .navbar-brand,
.navbar .dropdown-toggle {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.2;
    height: 1.7rem;
    display: flex;
    align-items: center;
}
/* Layout base com footer fixado ao final da viewport */
html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Centraliza o container principal */
.container-fluid {
    padding: 0;
    background-color: transparent;
    margin: 0 auto;
    max-width: 1600px;
}

main.container-fluid {
    display: block;
    flex: 1 0 auto;
    width: 100%;
    height: auto;
    padding: 20px;
}

footer {
    background-color: #2c313d;
    color: #fff;
    margin-top: auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    padding: auto 20px;
    display: flex;
    align-items: center;
}

.navbar-app {
    background-color: #2c313d;
    background-image: linear-gradient(90deg, rgba(44, 49, 61, 0.95) 0%, rgba(44, 49, 61, 0.85) 55%, rgba(44, 49, 61, 0.55) 100%);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
    display: flex;
    align-items: center;
}

.navbar-main-row {
    height: 100%;
}

.navbar-brand-app {
    height: 100%;
}

.navbar-main-links {
    gap: 1.2rem;
}

.navbar-accessibility-group {
    gap: 0.45rem;
    margin-right: 0.8rem;
    padding-right: 0.8rem;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-accessibility {
    min-width: 2.4rem;
    border: 2px solid #ffd24d;
    border-radius: 999px;
    background-color: transparent !important;
    color: #fff2bf;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.8rem;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-accessibility:hover {
    border-color: #ffe58a;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.08);
}

.btn-accessibility:focus-visible {
    outline: none;
    border-color: #ffe58a;
    color: #ffffff;
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.08);
}

.btn-accessibility.active {
    border-color: #fff3a1;
    color: #ffffff;
    box-shadow: 0 0 0 0.15rem rgba(255, 210, 77, 0.18);
}

.btn-accessibility:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.menu-link-admin,
.menu-link-publico,
.navbar-auth-link {
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    font-family: inherit;
    border: 2px solid transparent;
    border-radius: 999px;
    background-color: transparent !important;
    padding: 0.25rem 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 250px;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-link-admin {
    border-color: #2f5fd0;
    color: #dbe7ff;
}

.menu-link-publico,
.navbar-auth-link {
    border-color: #329542;
    color: #d6ffe0;
}

.menu-link-admin:hover,
.menu-link-publico:hover,
.navbar-auth-link:hover {
    background-color: transparent !important;
    text-decoration: none;
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.08);
}

.menu-link-admin:hover,
.menu-link-admin:focus,
.menu-link-admin[aria-expanded="true"] {
    color: #ffffff;
    border-color: #5f86e3;
}

.menu-link-publico:hover,
.menu-link-publico:focus,
.navbar-auth-link:hover,
.navbar-auth-link:focus,
.menu-link-publico[aria-expanded="true"] {
    color: #ffffff;
    border-color: #68ff7e;
}

body.high-contrast {
    background-color: #111;
    color: #f7f7f7;
}

body.high-contrast .navbar-app {
    background-color: #000;
    background-image: none;
}

body.high-contrast .menu-link-admin,
body.high-contrast .menu-link-publico,
body.high-contrast .navbar-auth-link,
body.high-contrast .btn-accessibility {
    color: #fff6a3;
    border-color: #fff6a3;
}

body.high-contrast a {
    color: #8bd4ff;
}

body.high-contrast .card,
body.high-contrast .table,
body.high-contrast .dropdown-menu,
body.high-contrast .list-group-item,
body.high-contrast .form-control,
body.high-contrast .form-select,
body.high-contrast .modal-content,
body.high-contrast .alert {
    background-color: #1a1a1a !important;
    color: #f7f7f7 !important;
    border-color: #f7f7f7 !important;
}

.dropdown-menu-cliente-switch {
    min-width: 280px;
    max-width: min(420px, 92vw);
}

.cliente-switch-form {
    margin: 0;
}

.cliente-switch-item {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    white-space: normal;
    line-height: 1.25;
}

.cliente-switch-item.active,
.cliente-switch-item:active {
    background-color: #2f5fd0;
    color: #fff;
}

.menu-dot {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    margin-right: 0.4rem;
    flex: 0 0 auto;
}

.menu-dot-admin {
    background: #2f5fd0;
}

.menu-dot-publico {
    background: #00ff22;
}

.login-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 1.25rem;
    gap: 0.9rem;
}

.login-header-logo {
    height: 56px;
    margin-bottom: 0;
}

.login-header-title {
    margin: 0;
    line-height: 1.2;
}

.icon-dashboard.list-group-item {
    border-radius: 10px !important;
    border: 1px solid #2f5fd0 !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(47, 95, 208, 0.12);
}

@media (max-width: 575.98px) {
    .login-header {
        flex-direction: column;
        gap: 0.6rem;
    }

    .login-header-logo {
        height: 48px;
    }
}

.navbar-cliente-form {
    margin-bottom: 0;
    white-space: nowrap;
}

.navbar-cliente-form label {
    font-size: 0.85rem;
}

.navbar-cliente-select {
    width: clamp(280px, 30vw, 420px);
    max-width: 100%;
    font-size: 0.85rem;
    height: 2rem;
    min-height: 2rem;
    line-height: 1.2;
}

@media (max-width: 991.98px) {
    .navbar-main-links {
        gap: 0.8rem;
    }

    .navbar-cliente-form {
        width: 100%;
        margin-top: 0.35rem;
    }

    .navbar-cliente-select {
        width: 100%;
        min-width: 180px;
    }
}

.card {
    padding: 0;
    margin: 0;
}

.card-body {
    padding: 0;
    margin: 0;
}

/* Título (uso geral, não agressivo) */
.titulo-secao {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 5px;
    font-weight: bold;
    background-color: #011249;
    color: white;
    text-align: center;
}

/* Estilos de tabelas */
.table {
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.table th {
    background-color: #011249;
    color: #fff;
    text-align: center;
    vertical-align: middle;
}

.table td {
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
}

/* Alternância de linhas */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

/* Ajuste para credor (texto longo) */
.table td:last-child {
    text-align: left;
    max-width: 300px;
    word-wrap: break-word;
}

/* Botão padrão */
.btn-primary {
    padding: 8px 20px;
    font-weight: bold;
    background-color: #011249;
    border-color: #011249;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: #02205f;
    border-color: #02205f;
}

.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus {
    box-shadow: 0 0 0 0.2rem rgba(1, 18, 73, 0.25);
}

/* Summary cards (index) */
.summary-card {
    border: 1px solid #e3e7f0;
    border-left-width: 6px;
    box-shadow: 0 8px 20px rgba(1, 18, 73, 0.08);
    border-radius: 10px;
    text-align: center;
}

.summary-card .card-body {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.summary-card .summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
}

.summary-card.municipios {
    border-left-color: #1f7a5f;
}

.summary-card.municipios .summary-icon {
    background-color: #d9f2e7;
    color: #1f7a5f;
}

.summary-card.emendas {
    border-left-color: #2f5fd0;
}

.summary-card.emendas .summary-icon {
    background-color: #dbe7ff;
    color: #2f5fd0;
}

.summary-card.maior {
    border-left-color: #c85123;
}

.summary-card.maior .summary-icon {
    background-color: #ffe3d6;
    color: #c85123;
}

.summary-card.media {
    border-left-color: #5a2ea6;
}

.summary-card.media .summary-icon {
    background-color: #e6dafd;
    color: #5a2ea6;
}

.summary-card.parlamentares {
    border-left-color: #2c3e50;
}

.summary-card.parlamentares .summary-icon {
    background-color: #e5ecf3;
    color: #2c3e50;
}

.summary-card.municipal {
    border-left-color: #148f77;
}

.summary-card.municipal .summary-icon {
    background-color: #d6f3ee;
    color: #148f77;
}

.summary-card.estadual {
    border-left-color: #8e44ad;
}

.summary-card.estadual .summary-icon {
    background-color: #efe0f5;
    color: #8e44ad;
}

.summary-card.federal {
    border-left-color: #c0392b;
}

.summary-card.federal .summary-icon {
    background-color: #f6d9d4;
    color: #c0392b;
}

/* Home (index): estrutura, cards e responsividade */
.index-main {
    flex: 1 0 auto;
    width: 100%;
    padding: 0 20px 20px;
}

.index-hero-logo-wrap {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #0b1325;
    padding: 16px 0;
    box-sizing: border-box;
    text-align: center;
}

.index-hero-logo {
    display: block;
    width: min(100%, 420px);
    max-width: none;
    height: auto;
    margin: 0 auto;
}

.index-dashboard-shell {
    min-height: 70vh;
    margin-top: 0;
    padding-top: 0;
}

.index-kpi-card-body {
    padding: 1rem 1.1rem !important;
}

.index-kpi-label {
    font-size: 0.76rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.index-kpi-value {
    font-size: 1.05rem;
    line-height: 1.2;
}

@keyframes indexCardReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.index-dashboard-shell .summary-card {
    opacity: 0;
    animation: indexCardReveal 0.46s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.index-dashboard-shell .row.mt-4 .summary-card { animation-delay: 0.02s; }
.index-dashboard-shell .row.mt-4 > [class*="col-"]:nth-child(2) .summary-card { animation-delay: 0.08s; }
.index-dashboard-shell .row.mt-4 > [class*="col-"]:nth-child(3) .summary-card { animation-delay: 0.14s; }
.index-dashboard-shell .row.mt-4 > [class*="col-"]:nth-child(4) .summary-card { animation-delay: 0.20s; }

.index-dashboard-shell .row.mt-3 .summary-card { animation-delay: 0.26s; }
.index-dashboard-shell .row.mt-3 > [class*="col-"]:nth-child(2) .summary-card { animation-delay: 0.32s; }
.index-dashboard-shell .row.mt-3 > [class*="col-"]:nth-child(3) .summary-card { animation-delay: 0.38s; }
.index-dashboard-shell .row.mt-3 > [class*="col-"]:nth-child(4) .summary-card { animation-delay: 0.44s; }

@media (prefers-reduced-motion: reduce) {
    .index-dashboard-shell .summary-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ------------------------------------------------------------------ */
/* Estilos escopados: apenas aplicados ao formulário de edição (#emenda-form)
   Isso evita afetar outros formulários e mantém o layout consistente. */
/* ------------------------------------------------------------------ */

#emenda-form {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: none;
}

#emenda-form .titulo-secao {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 8px 12px;
    font-weight: bold;
    background-color: #011249;
    color: #fff;
    text-align: left;
    border-radius: 4px;
}

#emenda-form .row {
    margin-bottom: 15px;
}

#emenda-form .form-group {
    margin-bottom: 0.75rem;
}

#emenda-form .form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;

}

#emenda-form .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;

}

#emenda-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.15);
}

#emenda-form .form-text {
    color: #6c757d;
    font-size: 12px;
}

#emenda-form .form-check {
    padding-left: 0;
}

#emenda-form .form-check-input {
    margin-top: 0.3rem;
}

#emenda-form .btn {
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 4px;
}

/* About card details button */
.about-content details>summary {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: #011249;
    color: #fff;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

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

.about-content details[open]>summary {
    background-color: #02205f;
}

/* Breadcrumb - Migalha de Pão */
nav[aria-label="breadcrumb"] {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 0.75rem 0 !important;
}

nav[aria-label="breadcrumb"] .breadcrumb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
    min-width: 0;
}

nav[aria-label="breadcrumb"] .breadcrumb-left {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

nav[aria-label="breadcrumb"] .breadcrumb-trail {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

nav[aria-label="breadcrumb"] .breadcrumb-active-client {
    margin-left: auto;
    white-space: nowrap;
    color: #495057;
    font-size: 0.85rem;
    text-align: right;
}

nav[aria-label="breadcrumb"] .breadcrumb-trail > a {
    color: #011249;
    transition: color 0.2s;
}

nav[aria-label="breadcrumb"] .breadcrumb-trail > a:hover {
    color: #02205f;
    text-decoration: underline !important;
}

nav[aria-label="breadcrumb"] .breadcrumb-trail strong {
    color: #011249;
    font-weight: 600;
}

nav[aria-label="breadcrumb"] a[href*="history.back"] {
    color: #011249;
    font-weight: 500;
    transition: color 0.2s;
}

nav[aria-label="breadcrumb"] a[href*="history.back"]:hover {
    color: #02205f;
}

@media (max-width: 767.98px) {
    nav[aria-label="breadcrumb"] .breadcrumb-row {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }

    nav[aria-label="breadcrumb"] .breadcrumb-left {
        width: 100%;
    }

    nav[aria-label="breadcrumb"] .breadcrumb-active-client {
        width: 100%;
        margin-left: 0;
        text-align: right;
    }

    .index-main {
        padding: 0 12px 16px;
    }

    .index-hero-logo-wrap {
        padding: 12px 0;
    }

    .index-hero-logo {
        width: min(100%, 260px);
    }

    .index-dashboard-shell {
        min-height: auto;
    }

    .index-kpi-card-body {
        padding: 0.85rem 0.8rem !important;
    }

    .index-kpi-label {
        font-size: 0.72rem;
    }

    .index-kpi-value {
        font-size: 0.95rem;
    }
}

@media (max-width: 767.98px) {
    .logo-resumo:not(.index-hero-logo) {
        max-width: 240px;
    }

    .summary-card {
        margin-bottom: 16px;
    }
}

/* Pequenos ajustes responsivos: em telas pequenas, colunas empilham naturalmente (Bootstrap)
   Se quiser, podemos ajustar espaçamentos específicos para sm/xs. */

/* Fim do arquivo */

/* ================================================================== */
/* RESPONSIVIDADE MOBILE GLOBAL                                        */
/* ================================================================== */

/* Logo do navbar com altura controlada via CSS */
.navbar-logo {
    height: 32px;
}

/* Botão hamburguer para mobile */
.navbar-toggler-app {
    display: none;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    color: #fff;
    padding: 0.25rem 0.55rem;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s;
}

.navbar-toggler-app:hover,
.navbar-toggler-app:focus {
    border-color: rgba(255, 255, 255, 0.85);
    outline: none;
}

/* ── Collapse em telas < lg (992 px) ── */
@media (max-width: 991.98px) {
    .navbar-toggler-app {
        display: inline-flex;
        align-items: center;
    }

    /* O bloco colapsável ocupa linha inteira abaixo do brand+toggler */
    .navbar-collapse {
        width: 100%;
        flex-basis: 100%;
    }

    .navbar-collapse.collapse:not(.show) {
        display: none;
    }

    .navbar-collapse.show {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        gap: 0.3rem;
    }

    /* Links empilham verticalmente */
    .navbar-main-links,
    .navbar-auth-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 0.3rem !important;
        margin-left: 0 !important;
    }

    .menu-link-admin,
    .menu-link-publico,
    .navbar-auth-link {
        width: 100%;
        padding: 0.4rem 0.9rem;
    }

    .navbar-accessibility-group {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.35rem;
        padding-right: 0;
        padding-bottom: 0.35rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    /* Dropdowns se abrem estáticos (sem posicionamento absoluto) */
    .navbar-main-links .dropdown,
    .navbar-auth-group .dropdown {
        width: 100%;
    }

    .navbar-main-links .dropdown-menu,
    .navbar-auth-group .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 0;
    }
}

/* ── Fonte, ícones e imagens em telas < md (768 px) ── */
@media (max-width: 767.98px) {
    body {
        font-size: 0.88rem;
    }

    .navbar-logo {
        height: 26px;
    }

    h1 { font-size: 1.35rem; }
    h2 { font-size: 1.15rem; }
    h3 { font-size: 1.05rem; }
    h4 { font-size: 0.95rem; }
    h5 { font-size: 0.9rem; }
    h6 { font-size: 0.85rem; }

    .titulo-secao {
        font-size: 0.88rem;
    }

    /* Tabelas mais compactas */
    .table th,
    .table td {
        font-size: 0.78rem;
        padding: 0.3rem 0.4rem;
    }

    /* Botões menores */
    .btn {
        font-size: 0.82rem;
        padding: 0.3rem 0.65rem;
    }

    /* Font Awesome: ícones levemente menores */
    .fas, .far, .fab, .fa {
        font-size: 0.9em;
    }

    /* Imagens genéricas não explodem a tela */
    img:not(.navbar-logo):not([class*="flag"]) {
        max-width: 100%;
        height: auto;
    }
}

/* ------------------------- */
/* Ajustes responsivos (sm e xs)
   - botões em largura cheia
   - reduzir padding do form
   - centralizar títulos menores
*/
@media (max-width: 767.98px) {
    #emenda-form {
        padding: 12px;
    }

    #emenda-form .titulo-secao {
        font-size: 16px;
        padding: 6px 10px;
        text-align: center;
    }

    #emenda-form .form-group label {
        font-size: 13px;
    }

    /* Botões empilhados e largura total */
    #emenda-form .btn {
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }

    /* Reduz espaçamento entre linhas para telas pequenas */
    #emenda-form .row {
        margin-bottom: 10px;
    }
}

/* Seletor de clientes na navbar */
.form-select-sm {
    background-color: #fff;
    border: 1px solid #ced4da;
    color: #011249;
    padding: 0.25rem 0.5rem;
}

.form-select-sm:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(1, 18, 73, 0.25);
}

/* Ajustes para Select2 ter mesma altura dos inputs form-control */
.select2-container--default .select2-selection--single {
    height: 38px !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    padding-left: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}

/* Report list: layout do card de município */
.report-municipio-card .card-body {
    padding: 0.9rem 1rem !important;
}

.report-municipio-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2d3d;
}

.report-municipio-media-row {
    align-items: flex-start;
}

.report-municipio-flag-col {
    width: 160px;
    min-width: 160px;
    flex: 0 0 160px;
}

.report-municipio-flag-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: block;
}

.report-municipio-flag-placeholder {
    width: 100%;
    height: 80px;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
}

.report-municipio-descricao-col {
    flex: 1 1 0;
    min-width: 0;
}

.report-municipio-descricao {
    max-height: 80px;
    overflow: hidden;
    color: #556274;
    font-size: 0.87rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.report-clientes-wrap {
    padding: 0;
    background: transparent;
    border: 0;
}

.report-clientes-list {
    list-style: none;
}

.report-clientes-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #dfe3ea;
}

.report-clientes-item:last-child {
    border-bottom: 0;
}

.report-cliente-nome {
    font-weight: 500;
    color: #1f2d3d;
}

.report-cliente-acoes {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.report-btn-geral,
.report-btn-ano {
    border-radius: 999px;
    text-decoration: none !important;
    padding: 0.12rem 0.58rem;
    font-size: 0.78rem;
    line-height: 1.2;
}

.report-btn-geral {
    border-color: #1c5fd4;
    color: #1c5fd4;
    background-color: #eef4ff;
}

.report-btn-geral:hover,
.report-btn-geral:focus {
    background-color: #dfeaff;
    color: #154aa8;
    border-color: #154aa8;
}

.report-btn-ano {
    border-color: #6eb08f;
    color: #1f6a45;
    background-color: #edf8f2;
}

.report-btn-ano:hover,
.report-btn-ano:focus {
    background-color: #ddf2e6;
    color: #165238;
    border-color: #4f946f;
}

/* Report detalhado: cards KPI de resumo financeiro */
.report-kpi-card-body {
    padding: 1rem 1.1rem !important;
}

.report-kpi-row {
    margin-right: 0;
    margin-left: 0;
}

.report-kpi-text .small {
    font-size: 0.76rem;
}

.report-kpi-text .h5 {
    font-size: 1.05rem;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .report-municipio-card .card-body {
        padding: 0.7rem 0.75rem !important;
    }

    .report-municipio-flag-col {
        width: 110px;
        min-width: 110px;
        flex-basis: 110px;
    }

    .report-municipio-flag-img,
    .report-municipio-flag-placeholder {
        height: 80px;
    }

    .report-municipio-descricao {
        max-height: 80px;
        line-clamp: 4;
        -webkit-line-clamp: 4;
    }

    .report-clientes-item {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .report-kpi-card-body {
        padding: 0.85rem 0.8rem !important;
    }

    .report-kpi-text .small {
        font-size: 0.72rem;
    }

    .report-kpi-text .h5 {
        font-size: 0.95rem;
    }
}

/* ── COOKIE CONSENT BANNER ───────────────────────────────────────────────── */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1c29 0%, #242837 100%);
    border-top: 3px solid #007bff;
    color: #e8eaed;
    z-index: 9999;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,.3);
    animation: slideInUp 0.4s ease-out forwards;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.cookie-consent-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-consent-icon {
    font-size: 1.8rem;
    color: #ffc107;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.cookie-consent-text h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #b9bcc3;
}

.cookie-link {
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: #ffed4e;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent-actions .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.cookie-consent-actions .btn-outline-secondary {
    background: transparent;
    color: #b9bcc3;
    border-color: #515964;
}

.cookie-consent-actions .btn-outline-secondary:hover {
    background: rgba(255,255,255,.08);
    border-color: #7b8390;
    color: #e8eaed;
}

.cookie-consent-actions .btn-primary {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.cookie-consent-actions .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Responsivo */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem;
    }

    .cookie-consent-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-icon {
        font-size: 1.5rem;
        text-align: center;
    }

    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-consent-actions .btn {
        width: 100%;
    }
}