:root {
    --bg: #F6F5FB;
    --surface: #FFFFFF;
    --primary: #180C30;
    --primary-soft: #2B1B54;
    --accent: #6D5AE6;
    --accent-soft: #EEEBFC;
    --success: #14B8A6;
    --success-soft: #E1F7F3;
    --warning: #F0A93E;
    --warning-soft: #FCF0DD;
    --danger: #E5484D;
    --danger-soft: #FBE6E6;
    --text: #180C30;
    --text-muted: #6E6B85;
    --border: #E8E5F3;

    --font-display: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --sidebar-w: 260px;
    --topbar-h: 60px;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

.hide-mobile {
    display: none;
}

/* =====================================================================
   MOBILE FIRST: layout base é empilhado (topbar fixa + main full-width).
   A sidebar vira um drawer que desliza por cima, escondida por padrão.
   ===================================================================== */

.app {
    min-height: 100vh;
    padding-top: var(--topbar-h);
}

/* ---------- TOPBAR (sempre visível, fixa no topo) ---------- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    z-index: 30;
}

.menu-toggle {
    display: flex;
}

.topbar-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--text-muted);
    min-width: 0;
}

.topbar-search input {
    border: none;
    background: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 13.5px;
    width: 100%;
    color: var(--text);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.provedor-switch {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    padding: 7px 11px;
    border-radius: 999px;
}

.provedor-switch .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: var(--bg);
}



.sair-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

/* .sair-btn:hover {
    background: rgba(255, 255, 255, 0.1);
} */

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12.5px;
    flex-shrink: 0;
}

/* ---------- SIDEBAR (drawer no mobile) ---------- */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(78vw, 280px);
    background: var(--primary);
    color: #C9C4E0;
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 50;
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 20, 0.45);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 22px 8px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), #9B8CFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    color: white;
    font-size: 16px;
    line-height: 1.1;
}

.brand-sub {
    font-size: 11px;
    color: #8B85AD;
    letter-spacing: 0.03em;
}

.nav-section-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6E6890;
    padding: 16px 12px 8px 12px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: #C9C4E0;
    text-decoration: none;
    position: relative;
    margin-bottom: 2px;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.85;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.nav-item.active {
    background: rgba(109, 90, 230, 0.22);
    color: white;
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
}

.sidebar-footer {
    margin-top: auto;
    padding: 14px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-footer-text {
    font-size: 11.5px;
    color: #8B85AD;
}

.sidebar-footer-text b {
    color: #C9C4E0;
    display: block;
    font-size: 12.5px;
}

/* ---------- MAIN ---------- */
.main {
    padding: 18px 14px 48px 14px;
}

.page-eyebrow {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.page-header {
    margin-bottom: 18px;
}

.page-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* ---------- CARD / FORM PRIMITIVES ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.card.pad {
    padding: 16px;
}

/* corpo do card com respiro lateral (o .card em si não tem padding; a tabela precisa ir de ponta a ponta) */
.card-body {
    padding: 16px;
}

/* abas da página */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin: 4px 0 16px;
    overflow-x: auto;
}

.tab {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    font: inherit;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-painel[hidden] {
    display: none;
}

/* linha de chips clicáveis usados como filtro */
.chip-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.chip-filtros button.chip {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 13.5px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
}

.input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

.field-action {
    display: flex;
    align-items: flex-end;
}

.switch-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.switch-field {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
}

.switch-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.subcard {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-top: 16px;
}

.subcard-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.form-actions {
    margin-top: 22px;
}

.form-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    padding: 11px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

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

.btn-outline {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

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

.btn-ghost {
    background: none;
    color: var(--accent);
    padding: 8px 4px;
}

.btn-sm {
    font-size: 12.5px;
    padding: 7px 4px;
}

/* ---------- CLIENT SEARCH RESULTS ---------- */
.result-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.result-item {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    cursor: pointer;
}

.result-item:hover {
    border-color: var(--accent);
}

.result-item .muted {
    color: var(--text-muted);
}

.cliente-header {
    margin-bottom: 6px;
}

.cliente-header h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}

.cliente-header .muted {
    color: var(--text-muted);
    font-size: 12.5px;
}

/* ---------- CHIPS ---------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}

.chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.chip.success {
    background: var(--success-soft);
    color: #0D8E7E;
}

.chip.success .dot {
    background: var(--success);
}

.chip.warning {
    background: var(--warning-soft);
    color: #A5720C;
}

.chip.warning .dot {
    background: var(--warning);
}

.chip.danger {
    background: var(--danger-soft);
    color: #C13337;
}

.chip.danger .dot {
    background: var(--danger);
}

.chip.neutral {
    background: #F0EFF6;
    color: var(--text-muted);
}

.chip.neutral .dot {
    background: #A9A5C4;
}

/* ---------- ALERTS ---------- */
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-top: 18px;
}

.alert-success {
    background: var(--success-soft);
    color: #0D8E7E;
}

.alert-danger {
    background: var(--danger-soft);
    color: #C13337;
}

.alert pre {
    white-space: pre-wrap;
    font-family: var(--font-mono);
    font-size: 11px;
}

/* ---------- CONSULTA / DIFF TABLE ---------- */
.consulta-resultado {
    margin: 10px 0 4px 0;
}

.diff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.diff-table th,
.diff-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}

.diff-table th {
    font-size: 10.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg);
}

/* ---------- KPI CARDS ---------- */
.kpi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
}

.kpi-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
}

.kpi-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ---------- PROGRESS BAR (cota) ---------- */
.progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--bg);
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
}

.progress-fill.over {
    background: var(--danger);
}

/* ---------- VISÃO GERAL: grid + gráfico + vencimentos ---------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.dashboard-grid>.card {
    min-width: 0;
}

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

.chart-header .card-title {
    margin-bottom: 0;
}

#graficoContainer {
    width: 100%;
    min-width: 0;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 160px;
    padding-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    width: 100%;
}

.bar-chart-col {
    flex: 1 1 0;
    min-width: 30px;
    max-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 6px;
}

.bar-chart-value {
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.bar-chart-bar {
    width: 100%;
    max-width: 34px;
    background: var(--accent);
    border-radius: 6px 6px 0 0;
    min-height: 3px;
}

.bar-chart-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.vencimentos-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vencimento-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.vencimento-item:last-child {
    border-bottom: none;
}

.vencimento-nome {
    font-weight: 600;
    font-size: 13px;
}

.vencimento-data {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.vencimento-valor {
    font-weight: 600;
    font-size: 13px;
    font-family: var(--font-mono);
}

/* ---------- MODAL ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 20, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--surface);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    transform: translateY(12px);
    transition: transform 0.2s ease;
}

.modal-backdrop.open .modal {
    transform: translateY(0);
}

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

.modal-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.modal-footer .btn {
    flex: 1;
    justify-content: center;
}

.modal-summary {
    background: var(--bg);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 13px;
}

.modal-summary .row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

.modal-summary .row span:first-child {
    color: var(--text-muted);
}

@media (min-width: 640px) {
    .modal-backdrop {
        align-items: center;
    }

    .modal {
        width: 440px;
        border-radius: 16px;
    }
}

/* ---------- DATA TABLE (clientes) ---------- */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14.5px;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

thead th {
    text-align: left;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: #FBFAFE;
    white-space: nowrap;
}

tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    vertical-align: middle;
}

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

tbody tr {
    cursor: pointer;
}

tbody tr:hover {
    background: #FBFAFE;
}

.client-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
}

.client-name {
    font-weight: 600;
}

.client-cnpj {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.row-actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

/* ---------- PAGINAÇÃO ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 16px;
}

.pagination button {
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 12.5px;
    cursor: pointer;
}

.pagination button:hover {
    background: var(--bg);
}

.pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.35;
    cursor: default;
}

.pagination .pagination-info {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 0 8px;
}

.icon-link {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.icon-link:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-soft);
}

.icon-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* =====================================================================
   TABLET+ (>= 640px): grids de formulário ganham colunas
   ===================================================================== */
@media (min-width: 640px) {
    .field-grid.cols-2 {
        grid-template-columns: 1fr 1fr;
    }

    .field-grid.cols-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .field-grid.cols-4 {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .switch-row {
        flex-direction: row;
        gap: 24px;
    }

    .form-actions .btn {
        width: auto;
    }

    .hide-mobile {
        display: inline;
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =====================================================================
   DESKTOP (>= 1024px): sidebar fixa e visível, main ganha margem lateral,
   topbar não precisa mais do botão hamburger.
   ===================================================================== */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }

    .sidebar {
        transform: none;
        width: var(--sidebar-w);
    }

    .sidebar-backdrop {
        display: none;
    }

    .topbar {
        left: var(--sidebar-w);
        padding: 0 28px;
    }

    .main {
        padding: 26px 32px 48px 32px;
        margin-left: var(--sidebar-w);
    }

    .page-title {
        font-size: 24px;
    }

    .card.pad {
        padding: 22px;
    }

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

    .dashboard-grid {
        grid-template-columns: 1.4fr 1fr;
    }
}

/* =========================================================
   Scrollbars
   ========================================================= */
/* Largura da barra */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Fundo da barra */
::-webkit-scrollbar-track {
    background: var(--accent);
    border-radius: 10px;
}

/* Parte que desliza */
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    border: 2px solid var(--accent);
}

/* Hover */
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Canto quando há scroll horizontal e vertical */
::-webkit-scrollbar-corner {
    background: var(--accent);
}



/* =========================================================
   Scrollbars Firefox
   ========================================================= */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg);
}

/* abas simples dentro de uma página (ex.: Sincronizar Fiscal) */
.page-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 16px 0 18px; overflow-x: auto; }
.page-tab {
    appearance: none; background: none; border: 0; padding: 10px 16px; font: inherit; font-weight: 600; font-size: 13.5px;
    color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
}
.page-tab:hover { color: var(--text); }
.page-tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- SELECT2 (mesmo visual do .input) ---------- */
.select2-container {
    font-family: var(--font-body);
    font-size: 13.5px;
}

.select2-container--default .select2-selection--single {
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 12px;
    padding-right: 30px;
    color: var(--text);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 6px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.select2-dropdown {
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(20, 16, 50, .14);
}

.select2-container--default .select2-search--dropdown {
    padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 8px 10px;
    font-family: var(--font-body);
    font-size: 13.5px;
    background: var(--surface);
    color: var(--text);
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: 2px solid var(--accent);
    outline-offset: 0;
}

.select2-container--default .select2-results__option {
    padding: 9px 12px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--accent-soft);
    color: var(--text);
}

.select2-container--default .select2-results__option--selected,
.select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--accent-soft);
    font-weight: 600;
}

/* acima da barra lateral e dos cards no mobile */
.select2-container--open {
    z-index: 1060;
}
