/* =========================================================
   Velaria — painel de estoque de velas artesanais
   ========================================================= */
:root {
    --bg: #f7f3ee;
    --surface: #ffffff;
    --surface-2: #fbf8f4;
    --border: #ebe3d9;
    --border-strong: #d9cdbf;
    --text: #2a211c;
    --text-2: #6b5d53;
    --text-3: #9a8b7f;
    --primary: #c96f22;
    --primary-600: #b05f19;
    --primary-50: #fdf1e5;
    --primary-100: #f9dfc4;
    --sidebar: #241b16;
    --sidebar-2: #2f241e;
    --sidebar-text: #cbbcb0;
    --success: #2f8a5b;   --success-50: #e7f5ed;
    --warning: #b7791f;   --warning-50: #fdf3e1;
    --danger:  #c2413b;   --danger-50:  #fbe9e8;
    --info:    #3b6fb6;   --info-50:    #e8f0fb;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(42, 33, 28, .06);
    --shadow: 0 4px 16px rgba(42, 33, 28, .07), 0 1px 3px rgba(42, 33, 28, .05);
    --shadow-lg: 0 18px 50px rgba(42, 33, 28, .18);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.ico { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.inline { display: inline; }
.mt-0 { margin-top: 0 !important; }
.mt { margin-top: 20px; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px; flex-shrink: 0; background: var(--sidebar); color: var(--sidebar-text);
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; color: #fff; text-decoration: none !important; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #ffd9a8; background: linear-gradient(145deg, #e0832f, #9c4e12); box-shadow: 0 6px 16px rgba(224, 131, 47, .35); }
.brand-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: .2px; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name small { font-family: var(--font); font-size: 11px; font-weight: 500; color: var(--sidebar-text); letter-spacing: .6px; text-transform: uppercase; margin-top: 3px; opacity: .75; }
.nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: #8a7a6e; padding: 16px 10px 6px; font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: var(--sidebar-text); font-weight: 500; transition: background .15s, color .15s; text-decoration: none !important; }
.nav-link:hover { background: var(--sidebar-2); color: #fff; }
.nav-link.active { background: linear-gradient(90deg, rgba(224, 131, 47, .22), rgba(224, 131, 47, .06)); color: #ffd3a1; box-shadow: inset 3px 0 0 #e0832f; }
.sidebar-user { display: flex; align-items: center; gap: 6px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
.user-chip { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: #fff; min-width: 0; text-decoration: none !important; }
.user-chip:hover, .user-chip.active { background: var(--sidebar-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #4a382d; color: #ffd3a1; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-meta b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { color: var(--sidebar-text); font-size: 11.5px; }
.sidebar .icon-btn { color: var(--sidebar-text); }
.sidebar .icon-btn:hover { background: var(--sidebar-2); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 22px 32px 6px; flex-wrap: wrap; }
.topbar-title { flex: 1; min-width: 200px; }
.topbar h1 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.2px; }
.topbar p { margin: 3px 0 0; color: var(--text-2); }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.content { padding: 18px 32px 32px; flex: 1; }
.footer { padding: 16px 32px 24px; color: var(--text-3); font-size: 12px; }
.overlay { display: none; }
.only-mobile { display: none !important; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .icon-btn:focus-visible { outline: 3px solid var(--primary-100); outline-offset: 1px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(201, 111, 34, .28); }
.btn-primary:hover { background: var(--primary-600); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a8352f; }
.btn-danger-ghost { background: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-50); }
.btn-success-ghost { background: transparent; color: var(--success); }
.btn-success-ghost:hover { background: var(--success-50); }
.btn-sm { height: 32px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-sm span { display: none; }
.btn-sm.with-label span, .btn-label span { display: inline; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.actions { display: flex; gap: 2px; justify-content: flex-end; align-items: center; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 20px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-header h2 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat-label { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.stat-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.stat-ico.green { background: var(--success-50); color: var(--success); }
.stat-ico.red { background: var(--danger-50); color: var(--danger); }
.stat-ico.blue { background: var(--info-50); color: var(--info); }
.stat-value { font-size: 24px; font-weight: 700; margin-top: 10px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.stat-value.pos { color: var(--success); }
.stat-value.neg { color: var(--danger); }
.stat-sub { color: var(--text-3); font-size: 12px; margin-top: 2px; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fdfbf8; }
.table th.right, .table td.right { text-align: right; }
.table tfoot td { font-weight: 600; background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 0; }
.table .cell-title { font-weight: 600; color: var(--text); }
.table td.mono { white-space: nowrap; }
.table .cell-sub { display: block; color: var(--text-3); font-size: 12px; font-weight: 400; }
tr.is-cancelled td { color: var(--text-3); }
tr.is-cancelled .cell-title { text-decoration: line-through; color: var(--text-3); }
.empty { text-align: center; padding: 48px 20px !important; color: var(--text-3); }
.empty .ico { color: var(--border-strong); margin-bottom: 8px; }
.empty p { margin: 4px 0 14px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-success { background: var(--success-50); color: var(--success); }
.badge-warning { background: var(--warning-50); color: var(--warning); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-info { background: var(--info-50); color: var(--info); }
.badge-neutral { background: #f1ece6; color: var(--text-2); }
.badge-primary { background: var(--primary-50); color: var(--primary-600); }

/* ---------- Filtros ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.toolbar .search { position: relative; flex: 1; min-width: 220px; }
.toolbar .search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.toolbar .search input { padding-left: 36px; }
.toolbar .input, .toolbar select { width: auto; }

/* ---------- Formulários ---------- */
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 18px; }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; }
.field label, .label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 6px; color: var(--text); }
.field label .req { color: var(--danger); margin-left: 2px; }
.field .hint { color: var(--text-3); font-size: 12px; margin-top: 5px; }
.input, select.input, textarea.input {
    width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 9px;
    background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
select.input { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b5d53' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.input:disabled, .input[readonly] { background: var(--surface-2); color: var(--text-2); }
.input-group { display: flex; }
.input-group .input { border-radius: 9px 0 0 9px; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 9px 9px 0; background: var(--surface-2); color: var(--text-2); font-size: 13px; }
.input-group .addon.left { border-left: 1px solid var(--border-strong); border-right: 0; border-radius: 9px 0 0 9px; }
.input-group .addon.left + .input { border-radius: 0 9px 9px 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; user-select: none; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked { background: var(--success); }
.switch input:checked::after { transform: translateX(16px); }
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 3px; }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--text-2); cursor: pointer; }
.segmented input:checked + span { background: var(--surface); color: var(--primary-600); box-shadow: var(--shadow-sm); }
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); margin: 6px 0 -4px; grid-column: span 12; display: flex; align-items: center; gap: 8px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Itens dinâmicos */
.items-table td { padding: 8px 10px; }
.items-table .input { height: 38px; }
.items-table .col-qtd { width: 120px; }
.items-table .col-preco { width: 150px; }
.items-table .col-sub { width: 130px; text-align: right; font-weight: 600; white-space: nowrap; }
.items-table .col-act { width: 48px; }
.items-table tr.row-alert td { background: var(--danger-50) !important; }
.items-table tr.row-alert .input[data-qtd] { border-color: var(--danger); }
.totals { display: grid; gap: 8px; min-width: 260px; margin-left: auto; padding: 16px 20px; }
.totals .row { display: flex; justify-content: space-between; gap: 30px; color: var(--text-2); }
.totals .row.total { color: var(--text); font-size: 18px; font-weight: 700; border-top: 1px dashed var(--border-strong); padding-top: 10px; }
.select-search { margin-bottom: 6px; }

/* Lista de definição */
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; }
.dl dt { color: var(--text-3); font-size: 12.5px; }
.dl dd { margin: 0; font-weight: 500; }

/* Alertas inline */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 13px; align-items: flex-start; }
.alert-warning { background: var(--warning-50); color: #7a5014; }
.alert-danger { background: var(--danger-50); color: #8a2a25; }
.alert-info { background: var(--info-50); color: #234a80; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--border); }
.list-plain li:last-child { border-bottom: 0; }

/* Abas */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--text-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a.active { color: var(--primary-600); border-bottom-color: var(--primary); }

/* Paginação */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pagination-info { color: var(--text-3); font-size: 12.5px; }
.pagination-info b { color: var(--text-2); font-weight: 600; }
.pagination-links { display: flex; gap: 4px; }
.pagination-links a, .pagination-links span { min-width: 32px; height: 32px; padding: 0 8px; display: grid; place-items: center; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--text-2); text-decoration: none; }
.pagination-links a:hover { background: var(--surface-2); color: var(--text); }
.pagination-links .current { background: var(--primary); color: #fff; }
.pagination-links .disabled { color: var(--border-strong); }
.pagination-links .gap { min-width: 20px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 36px)); pointer-events: none; }
.toast {
    pointer-events: auto; position: relative; overflow: hidden; display: flex; gap: 12px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 16px; box-shadow: var(--shadow-lg);
    animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.out { animation: toast-out .25s ease forwards; }
.toast-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.toast-msg { flex: 1; padding-top: 3px; white-space: pre-line; font-weight: 500; }
.toast-x { border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--text-3); cursor: pointer; padding: 0 2px; }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; animation: toast-bar linear forwards; }
.toast-success .toast-ico, .toast-success .toast-bar { background: var(--success); }
.toast-error .toast-ico, .toast-error .toast-bar { background: var(--danger); }
.toast-warning .toast-ico, .toast-warning .toast-bar { background: var(--warning); }
.toast-info .toast-ico, .toast-info .toast-bar { background: var(--info); }
.toast:hover .toast-bar { animation-play-state: paused; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(36, 27, 22, .45); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 900; padding: 20px; animation: fade .2s; }
.modal { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); width: min(420px, 100%); padding: 24px; animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
.modal-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--warning-50); color: var(--warning); display: grid; place-items: center; margin-bottom: 14px; }
.modal h3 { font-size: 17px; margin-bottom: 6px; }
.modal p { margin: 0 0 20px; color: var(--text-2); white-space: pre-line; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

/* ---------- Login / erro ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
    radial-gradient(1000px 500px at 85% -10%, rgba(224, 131, 47, .22), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(156, 78, 18, .18), transparent 60%), var(--bg); }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 36px 32px; }
.auth-card .brand { padding: 0; color: var(--text); margin-bottom: 26px; }
.auth-card .brand-name small { color: var(--text-3); }
.auth-card h1 { font-family: var(--font-display); font-size: 24px; margin-bottom: 4px; }
.auth-card form { display: grid; gap: 16px; margin-top: 22px; }
.auth-card .btn { height: 44px; width: 100%; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--text-3); display: flex; align-items: center; justify-content: center; gap: 6px; }
.error-card { text-align: center; }
.error-code { font-family: var(--font-display); font-size: 72px; font-weight: 600; line-height: 1; background: linear-gradient(145deg, #e0832f, #9c4e12); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.error-card p { margin: 8px 0 24px; }
.error-card .btn { width: auto; }

/* Gráfico */
.chart-box { position: relative; height: 280px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
    .grid-main-side, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .only-mobile { display: inline-grid !important; }
    .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s ease; }
    body.sidebar-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
    body.sidebar-open .overlay { display: block; position: fixed; inset: 0; background: rgba(36, 27, 22, .45); z-index: 30; }
    .topbar { padding: 16px 16px 4px; }
    .content { padding: 14px 16px 24px; }
    .footer { padding: 12px 16px 20px; }
    .grid-2 { grid-template-columns: 1fr; }
    .col-8, .col-6, .col-4, .col-3, .col-2 { grid-column: span 12; }
    .form-grid .col-3.keep, .form-grid .col-4.keep { grid-column: span 6; }
    .dl { grid-template-columns: 1fr; gap: 2px; }
    .dl dd { margin-bottom: 10px; }
    .topbar h1 { font-size: 22px; }
}

/* ---------- Relatórios ---------- */
.rel-group-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--text-3); margin: 26px 0 12px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.report-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.report-card:hover { border-color: var(--primary-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.report-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.report-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.report-txt b { font-size: 14.5px; font-weight: 600; }
.report-txt span { color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.report-go { font-size: 22px; color: var(--border-strong); line-height: 1; align-self: center; transition: color .15s, transform .15s; }
.report-card:hover .report-go { color: var(--primary); transform: translateX(3px); }
.rel-quick { display: flex; align-items: center; gap: 14px; padding: 16px 18px; flex-wrap: wrap; }
.rel-quick-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--info-50); color: var(--info); display: grid; place-items: center; }
.rel-quick-txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
tr.row-neg td { color: var(--danger); }
