/* ==========================================================
   FaturaPro — tema novo (carrega depois de style.css e pro.css)
   Navegação no topo, coluna central, livro-razão em vez de cartões.
   Cores de Cabo Verde: Cobalto (azul), Brasa (vermelho), Sol (amarelo).
   ========================================================== */

:root {
    --sal: #f4f6f5;
    --papel: #ffffff;
    --basalto: #16181b;
    --cobalto: #0b3d91;
    --cobalto-hover: #092f70;
    --brasa: #c8202f;
    --sol: #f2c230;
    --mata: #1e7b4f;
    --nevoa: #dde3e0;
    --nevoa-forte: #c4ccc8;
    --cinza: #5f6c68;

    /* tokens usados pelo resto da aplicação */
    --primary: var(--cobalto);
    --primary-light: #2a5fc0;
    --primary-dark: var(--cobalto-hover);
    --bg-main: var(--sal);
    --bg-card: var(--papel);
    --bg-sidebar: var(--papel);
    --white: var(--papel);
    --text-main: var(--basalto);
    --text-muted: var(--cinza);
    --text-on-dark: var(--basalto);
    --border: var(--nevoa);
    --border-hover: var(--nevoa-forte);
    --success: var(--mata);
    --warning: #9a6f00;
    --danger: var(--brasa);
    --surface-2: #eef2f0;
    --row-hover: #eef3f1;
    --glass-bg: var(--papel);
    --shadow-sm: none;
    --shadow: 0 1px 0 rgba(22, 24, 27, .04);
    --shadow-md: 0 10px 30px -12px rgba(22, 24, 27, .25);
    --shadow-lg: 0 24px 60px -20px rgba(22, 24, 27, .35);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

html.dark {
    --sal: #0e1113;
    --papel: #161a1d;
    --basalto: #e8ecea;
    --cobalto: #86a8ff;
    --cobalto-hover: #a6c0ff;
    --brasa: #ff7b86;
    --sol: #f2c230;
    --mata: #4fc58a;
    --nevoa: #262c30;
    --nevoa-forte: #363e44;
    --cinza: #9aa7a3;
    --surface-2: #1b2024;
    --row-hover: #1c2226;
    --warning: #e5b94a;
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .7);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
}

html { color-scheme: light; }
html.dark { color-scheme: dark; }
body { font-family: var(--font); background: var(--sal); color: var(--basalto); font-size: 15px; line-height: 1.5;
    font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { font-family: var(--font) !important; font-weight: 600; letter-spacing: -.015em; color: var(--basalto); }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--cobalto); outline-offset: 2px; border-radius: 4px; }

/* ---------- Estrutura: barra no topo, conteúdo ao centro ---------- */
#app { display: block; min-height: 100vh; overflow: visible; }
.main-viewport { width: 100%; display: block; overflow: visible; }
.content { max-width: 1240px; margin: 0 auto; padding: 2rem 2rem 4rem; overflow: visible; }

.sidebar, .topbar, .topnav { overflow: visible !important; }
.sidebar { position: sticky; top: 0; z-index: 30; width: 100%; height: auto; display: block; padding: 0 !important;
    background: var(--papel); border: 0; border-bottom: 1px solid var(--nevoa); color: var(--basalto); }
.flagline { height: 8px; background: linear-gradient(#0b3d91 0 3px, #fff 3px 4px, #c8202f 4px 5px, #fff 5px 6px, #0b3d91 6px 8px); }
html.dark .flagline { background: linear-gradient(#3d6fd8 0 3px, #e8ecea 3px 4px, #e04353 4px 5px, #e8ecea 5px 6px, #3d6fd8 6px 8px); }
.topbar { max-width: 1240px; margin: 0 auto; padding: 0 2rem; height: 56px; display: flex; align-items: center; gap: 2rem; }

.nav-item.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; color: var(--basalto); padding: 0; margin: 0;
    border: 0; border-radius: 0; background: none; display: inline-block; flex: none; }
.nav-item.brand span { color: var(--cobalto); display: inline !important; }
.nav-item.brand:hover { background: none; color: var(--basalto); }

.topnav { flex: 1; min-width: 0; align-self: stretch; }
.topnav .nav-menu { display: flex; flex-direction: row; align-items: stretch; height: 100%; gap: .25rem; padding: 0; margin: 0; list-style: none; }
.topnav .nav-menu > li { position: relative; display: flex; }
.topnav .nav-menu > li > a.nav-item, .nav-drop-btn {
    display: flex; align-items: center; height: 100%; padding: 0 .85rem; font: 500 .9rem var(--font); color: var(--cinza);
    background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin: 0; cursor: pointer;
    text-decoration: none; transition: color .15s, border-color .15s; white-space: nowrap; }
.topnav .nav-menu > li > a.nav-item:hover, .nav-drop-btn:hover, .nav-drop:focus-within .nav-drop-btn { color: var(--basalto); background: none; transform: none; }
.topnav .nav-menu > li > a.nav-item.active, .nav-drop-btn.active { color: var(--basalto); border-bottom-color: var(--cobalto); font-weight: 600; background: none; box-shadow: none; }
.nav-drop-btn::after { content: ''; width: 6px; height: 6px; margin: 0 0 3px .5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) scale(.9); opacity: .6; }
.nav-drop-menu { display: none; position: absolute; top: calc(100% - 1px); left: 0; min-width: 250px; padding: .4rem; margin: 0; list-style: none;
    background: var(--papel); border: 1px solid var(--nevoa-forte); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); z-index: 40; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu .nav-item { display: flex; align-items: center; justify-content: space-between; padding: .55rem .75rem; border-radius: 5px; border: 0;
    font: 500 .9rem var(--font); color: var(--basalto); background: none; transform: none; }
.nav-drop-menu .nav-item small { font: 500 .75rem var(--mono); color: var(--cinza); }
.nav-drop-menu .nav-item:hover { background: var(--row-hover); color: var(--basalto); }
.nav-drop-menu .nav-item.active { background: color-mix(in srgb, var(--cobalto) 10%, transparent); color: var(--cobalto); font-weight: 600; }
.nav-item::before, .nav-item.active::before { display: none; }
.topnav .nav-item i { display: none; }

/* ---------- Ferramentas (direita da barra) ---------- */
.top-tools { display: flex; align-items: center; gap: .6rem; flex: none; }
.mw-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 500; color: var(--cinza); padding: 0 .25rem; white-space: nowrap; }
.mw-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--brasa); }
.mw-status.on i { background: var(--mata); }
.user-chip { display: inline-flex; align-items: center; gap: .55rem; padding-left: .6rem; margin-left: .2rem; border-left: 1px solid var(--nevoa); }
.user-chip .avatar { width: 28px; height: 28px; border-radius: 6px; background: var(--basalto); color: var(--papel); display: grid; place-items: center;
    font-size: .7rem; font-weight: 700; }
.user-chip .who { display: flex; flex-direction: column; line-height: 1.15; }
.user-chip .who b { font-size: .8rem; font-weight: 600; }
.user-chip .who small { font-size: .7rem; color: var(--cinza); }
.icon-btn, .theme-toggle { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; border-radius: 6px; cursor: pointer;
    border: 1px solid transparent !important; background: none !important; color: var(--cinza); box-shadow: none !important; animation: none !important; transition: background .15s, color .15s; }
.icon-btn:hover, .theme-toggle:hover { background: var(--row-hover) !important; color: var(--basalto); }
.icon-btn svg, .theme-toggle svg { width: 17px; height: 17px; }

/* ---------- Títulos de página ---------- */
.animate-in > div:first-child :is(h2, h3) > svg:first-child, .animate-in > div:first-child :is(h2, h3) > i[data-lucide]:first-child { display: none; }
.animate-in > div:first-child { margin-bottom: 1.75rem !important; }
.animate-in > div:first-child :is(h2, h3) { font-size: 1.75rem !important; font-weight: 600 !important; letter-spacing: -.025em; margin: 0; }
.animate-in > div:first-child p { color: var(--cinza); font-size: .9rem !important; max-width: 70ch; }

/* ---------- Painel: o total em destaque, o resto em linha ---------- */
.stats-grid .stat-card { background: none !important; border: 0 !important; border-left: 1px solid var(--nevoa) !important; border-radius: 0 !important;
    box-shadow: none !important; padding: .25rem 1.75rem !important; }
.stats-grid .stat-card:first-child { border-left: 0 !important; padding-left: 0 !important; }
.stats-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 0; margin: 0 0 2.25rem; padding: 1.5rem 0;
    border-top: 1px solid var(--nevoa-forte); border-bottom: 1px solid var(--nevoa); }
.stat-card { background: none; border: 0 !important; border-left: 1px solid var(--nevoa) !important; border-radius: 0; box-shadow: none; padding: .25rem 1.75rem; }
.stat-card:first-child { border-left: 0 !important; padding-left: 0; }
.stat-card::before, .stat-card::after { display: none !important; }
.stat-label { font-size: .85rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--cinza); margin-bottom: .3rem; }
.stat-value { font-family: var(--font); font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.stat-card:first-child .stat-value { font-size: 2.9rem; font-weight: 600; letter-spacing: -.035em; }

/* ---------- Cartões / secções ---------- */
.card { background: var(--papel); border: 1px solid var(--nevoa); border-radius: var(--radius-lg); box-shadow: none; padding: 1.25rem 1.5rem; }

/* ---------- Tabelas (livro-razão) ---------- */
.table-container, .card > .table-container { border: 0 !important; border-radius: 0 !important; background: none !important; margin-top: .5rem; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { background: none !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .8rem; font-weight: 600;
    color: var(--cinza); text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--nevoa-forte); white-space: nowrap; }
.data-table td { padding: .8rem .75rem; border-bottom: 1px solid var(--nevoa); vertical-align: middle; white-space: nowrap; color: var(--basalto); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--row-hover); }
.data-table td:first-child, .data-table th:first-child { padding-left: .25rem; }
.data-table td:last-child, .data-table th:last-child { padding-right: .25rem; }
.data-table td.ref b, .data-table td code { font-family: var(--mono); font-size: .82rem; font-weight: 600; letter-spacing: 0; }
.data-table td:last-child .btn, .data-table td:last-child button { vertical-align: middle; margin-left: .25rem; }

/* ---------- Estados ---------- */
.badge, .badge-status, .badge-role { display: inline-flex; align-items: center; gap: .3rem; font: 600 .74rem var(--font); letter-spacing: 0; text-transform: none;
    padding: .2rem .55rem; border-radius: 4px; border: 1px solid transparent; white-space: nowrap; }
.badge.pago, .badge.paid, .badge-validated, .badge-role-admin { background: color-mix(in srgb, var(--mata) 13%, transparent); color: var(--mata); border-color: color-mix(in srgb, var(--mata) 28%, transparent); }
.badge.pendente, .badge.pending, .badge-pending { background: color-mix(in srgb, var(--sol) 28%, transparent); color: var(--warning); border-color: color-mix(in srgb, var(--sol) 55%, transparent); }
.badge.atrasado, .badge.overdue, .badge.offline, .badge.anulado, .badge-rejected { background: color-mix(in srgb, var(--brasa) 11%, transparent); color: var(--brasa); border-color: color-mix(in srgb, var(--brasa) 28%, transparent); }
.badge-role-user { background: var(--surface-2); color: var(--cinza); border-color: var(--nevoa); }
.badge-tax { border-radius: 4px; font-weight: 600; }

/* ---------- Botões ---------- */
.btn { font: 600 .875rem var(--font); border-radius: var(--radius-md); padding: .55rem 1rem; transition: background .15s, border-color .15s, color .15s; box-shadow: none; transform: none; }
.btn-primary { background: var(--cobalto); border: 1px solid var(--cobalto); color: #fff; }
.btn-primary:hover { background: var(--cobalto-hover); border-color: var(--cobalto-hover); transform: none; box-shadow: none; filter: none; }
html.dark .btn-primary { background: #2f5fd0; border-color: #2f5fd0; color: #fff; }
html.dark .btn-primary:hover { background: #3f70e6; border-color: #3f70e6; }
.btn-outline { background: var(--papel); border: 1px solid var(--nevoa-forte); color: var(--basalto); }
.btn-outline:hover { background: var(--row-hover); border-color: var(--cinza); color: var(--basalto); }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; }
.new-doc-btn { padding: .45rem .95rem; }

/* ---------- Formulários ---------- */
.form-label { font-size: .82rem; font-weight: 600; color: var(--basalto); text-transform: none; letter-spacing: 0; }
.form-input, .form-select, input[type=text], input[type=number], input[type=email], input[type=password], input[type=date], input[type=tel], select, textarea {
    font-family: var(--font); border: 1px solid var(--nevoa-forte); border-radius: var(--radius-md); background: var(--papel); color: var(--basalto); }
.form-input:focus, .form-select:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--cobalto); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalto) 20%, transparent); outline: 0; }
::placeholder { color: color-mix(in srgb, var(--cinza) 75%, transparent); }

/* ---------- Início de sessão ---------- */
.login-screen { width: 100%; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; padding: 1.5rem;
    background: var(--sal); position: relative; }
.login-screen::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 8px;
    background: linear-gradient(#0b3d91 0 3px, #fff 3px 4px, #c8202f 4px 5px, #fff 5px 6px, #0b3d91 6px 8px); }
.login-brand { display: flex; align-items: center; gap: .5rem; font-size: 1.6rem; font-weight: 700; letter-spacing: -.025em; color: var(--basalto); }
.login-brand svg { display: none; }
.login-brand span { color: var(--basalto); } .login-brand b { color: var(--cobalto); font-weight: 700; }
#login-form { width: 100%; max-width: 400px; padding: 2rem; margin: 0; border: 1px solid var(--nevoa); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--papel); }
#login-form h2 { margin: 0 0 .25rem; font-size: 1.35rem; }
.login-sub { color: var(--cinza); margin: 0 0 1.4rem; font-size: .9rem; }

/* ---------- Tablet / telemóvel ---------- */
@media (max-width: 1100px) {
    .topbar { gap: 1rem; padding: 0 1.25rem; }
    .user-chip .who { display: none; }
    .mw-status { display: none; }
    .content { padding: 1.5rem 1.25rem 3rem; }
}
@media (max-width: 860px) {
    .topbar { height: auto; flex-wrap: wrap; gap: 0 .75rem; padding: 0 .9rem; }
    .nav-item.brand { order: 1; padding: .7rem 0; }
    .top-tools { order: 2; margin-left: auto; }
    .topnav { order: 3; flex: 0 0 100%; overflow-x: auto !important; margin: 0 -.9rem; padding: 0 .9rem; border-top: 1px solid var(--nevoa); scrollbar-width: none; }
    .topnav .nav-menu { height: 44px; width: max-content; }
    .nav-drop-btn { display: none; }
    .nav-drop-menu { display: flex !important; position: static; padding: 0; border: 0; box-shadow: none; background: none; min-width: 0; gap: .25rem; }
    .nav-drop-menu li { display: flex; }
    .nav-drop-menu .nav-item { height: 100%; padding: 0 .85rem; border-radius: 0; border-bottom: 2px solid transparent; color: var(--cinza); white-space: nowrap; }
    .nav-drop-menu .nav-item.active { background: none; color: var(--basalto); border-bottom-color: var(--cobalto); }
    .nav-drop-menu .nav-item small { margin-left: .4rem; }
    .new-doc-btn { padding: .4rem .7rem; }
    .content { padding: 1.1rem .85rem 2.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; padding: 1rem 0; row-gap: 1rem; }
    .stats-grid .stat-card { padding: .25rem 0 .25rem 1rem !important; }
    .stats-grid .stat-card:first-child { grid-column: 1 / -1; padding-left: 0 !important; border-left: 0 !important; }
    .stat-card:first-child .stat-value { font-size: 2.2rem; }
    .stat-value { font-size: 1.3rem; }
    .animate-in > div:first-child { flex-direction: column; align-items: stretch !important; }
    .animate-in > div:first-child > div { flex-wrap: wrap; }
    .animate-in > div:first-child .btn { flex: 1 1 auto; justify-content: center; }
    .animate-in > div:first-child :is(h2, h3) { font-size: 1.4rem !important; }
    .card { padding: 1rem; }
    .data-table { min-width: 640px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Documento oficial: botão Fechar legível sobre a barra escura */
.toolbar-actions .btn-outline { background: transparent; }
.toolbar-actions .btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Seletor de ligação e-Fatura */
.ef-switch { display: inline-flex; align-items: center; gap: .15rem; background: var(--bg-soft, rgba(0,0,0,.05)); border-radius: 999px; padding: 3px; }
.ef-switch button { border: 0; background: transparent; font: inherit; font-size: .74rem; font-weight: 600; padding: .22rem .65rem; border-radius: 999px; cursor: pointer; color: var(--cinza); }
.ef-switch button.on { background: var(--cobalto); color: #fff; }
.ef-switch .mw-status { margin-left: .2rem; padding-right: .5rem; }
.ef-switch.big button { font-size: .85rem; padding: .4rem 1rem; }
@media (max-width: 900px) { .ef-switch .mw-status { display: inline-flex; } }

.mw-status.mode-btn { border: 1px solid var(--linha, rgba(0,0,0,.15)); background: transparent; border-radius: 999px; padding: .25rem .65rem; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 600; color: inherit; }
.mw-status.mode-btn:hover { background: rgba(0,0,0,.05); }
@media (max-width: 900px) { .mw-status.mode-btn { display: inline-flex; } }

/* ---------- Telemóvel: tabelas em cartões, modais a ecrã inteiro, alvos tácteis ---------- */
@media (max-width: 700px) {
    .data-table { min-width: 0 !important; width: 100%; }
    .table-container { overflow-x: visible !important; }
    .data-table thead { display: block; }
    .data-table thead tr { display: block; }
    .data-table thead tr:not(.dash-col-filters) { display: none; }
    .data-table thead tr.dash-col-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: .5rem 0 .75rem; background: none; }
    .data-table thead tr.dash-col-filters th { min-width: 0; }
    .card .table-container { margin: 0; }
    .data-table thead tr.dash-col-filters th { display: block; padding: 0 !important; border: 0 !important; }
    .data-table thead tr.dash-col-filters th:empty { display: none; }
    .data-table thead tr.dash-col-filters input, .data-table thead tr.dash-col-filters select { width: 100%; min-width: 0 !important; font-size: 16px !important; }
    .data-table tbody, .data-table tbody tr, .data-table tbody td { display: block; width: 100% !important; box-sizing: border-box; }
    .data-table tbody tr { border: 1px solid var(--nevoa, #e2e8f0); border-radius: 10px; margin: 0 0 .75rem; padding: .35rem .85rem; background: var(--papel, #fff); }
    .data-table tbody td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0 !important; border: 0 !important; border-bottom: 1px dashed var(--nevoa, #e2e8f0) !important; text-align: right !important; min-height: 0; }
    .data-table tbody td:last-child { border-bottom: 0 !important; }
    .data-table tbody td[data-label]::before { content: attr(data-label); flex: 0 0 34%; text-align: left; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--cinza, #64748b); }
    .data-table tbody td[colspan] { display: block; text-align: center !important; }
    .data-table tbody td:last-child[data-label] { justify-content: flex-end; flex-wrap: wrap; padding-top: .6rem !important; }
    .data-table tbody td:last-child[data-label]::before { flex: 1 0 100%; margin-bottom: .2rem; }
    /* botões de ação com tamanho tátil */
    .data-table .btn-icon { width: 40px !important; height: 40px !important; min-width: 40px !important; }
    .data-table .btn-icon svg, .data-table .btn-icon i { width: 18px !important; height: 18px !important; }
    /* modais a ecrã inteiro, grelhas numa só coluna */
    .modal-overlay { padding: 0 !important; align-items: stretch !important; }
    .modal { width: 100% !important; max-width: 100% !important; max-height: 100dvh !important; height: 100dvh; border-radius: 0 !important; margin: 0 !important; }
    .modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1rem .85rem !important; }
    .modal [style*="grid-template-columns: 1fr 1fr"], .modal [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .modal [style*="text-align: right"] { text-align: left; }
    .modal .ef-status-banner { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .modal .btn, .doc-frame .btn { min-height: 42px; }
    input, select, textarea, .form-input, .form-select { font-size: 16px; }   /* evita o zoom automático no iPhone */
    .toast-container { top: auto; bottom: 1rem; left: .75rem; right: .75rem; }
    .doc-frame { border-radius: 0 !important; }
}

@media (max-width: 700px) {
    html, body, #app, .content, .animate-in, .card { max-width: 100vw; min-width: 0; }
    .content { overflow-x: hidden; }
    .data-table tbody td { overflow-wrap: break-word; word-break: normal; white-space: normal !important; }
    .data-table tbody td > * { min-width: 0; max-width: 100%; white-space: normal !important; }
    .data-table tbody td small { display: block; }
}

/* Impressão dos mapas de Finanças (DPR / Modelo 107) */
@media print {
    .fiscal-print, .fiscal-print * { visibility: visible !important; }
    .fiscal-print { position: absolute !important; left: 0; top: 0; width: 100% !important; padding: 10mm !important; background: #fff !important; color: #000 !important; }
    .fiscal-print .card { box-shadow: none !important; border: 1px solid #999 !important; break-inside: avoid; }
    .no-print { display: none !important; }
}

/* ---------- Menu hambúrguer (telemóvel / ecrãs estreitos) ---------- */
.nav-burger { display: none; }
@media (max-width: 860px) {
    .nav-burger { display: inline-flex; align-items: center; gap: .4rem; order: 2; margin-left: auto; height: 36px; padding: 0 .75rem; border: 1px solid var(--nevoa); border-radius: 8px; background: var(--papel); color: var(--basalto); font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; align-self: center; }
    .nav-burger i, .nav-burger svg { width: 18px; height: 18px; }
    .top-tools { margin-left: 0; }
    .topnav { display: none; overflow: visible !important; margin: 0 -.9rem; padding: .35rem .9rem .6rem; }
    .topbar.nav-open .topnav { display: block; }
    .topnav .nav-menu { height: auto; width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
    .topnav .nav-menu > li { display: block; width: 100%; }
    .topnav .nav-menu > li > a.nav-item { display: flex; height: 46px; align-items: center; border-bottom: 1px solid var(--nevoa); }
    .nav-drop-btn { display: block; width: 100%; text-align: left; height: auto; padding: .7rem 0 .25rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cinza); pointer-events: none; border: 0; background: none; }
    .nav-drop-menu { flex-direction: column !important; gap: 0; }
    .nav-drop-menu li { display: block; width: 100%; }
    .nav-drop-menu .nav-item { height: 46px; padding: 0 .25rem; justify-content: space-between; border-bottom: 1px solid var(--nevoa); }
}
@media (max-width: 860px) {
    .topnav .nav-menu > li > a.nav-item { justify-content: flex-start; text-align: left; padding: 0 .25rem; }
    .nav-drop-btn::after, .nav-drop-btn::before { display: none !important; content: none !important; }
    .topnav .nav-menu > li > a.nav-item.active { border-bottom-color: var(--nevoa); color: var(--cobalto); }
}
