:root {
  --navy: #0e2338;
  --navy-2: #163452;
  --bg: #edf2f8;
  --card: #fff;
  --text: #4a5562;
  --muted: #8a96a3;
  --title: #1d5c87;
  --line: #e3e8ee;
  --line-2: #d2d9e0;
  --blue: #3d9fd8;
  --blue-d: #2b88c0;
  --green: #6cb43f;
  --green-d: #5a9e31;
  --lime: #b4d334;
  --red: #e04b4b;
  --yellow: #f2c500;
  --gray-dot: #b9bec4;
  --radius: 3px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 Roboto, "Segoe UI", Arial, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue-d); }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1030px; margin: 0 auto; padding: 0 16px; flex: 1; }
.hidden { display: none !important; }

/* ── Top bar ───────────────────────────────────────── */
.topbar { background: var(--navy); height: 60px; position: sticky; top: 0; z-index: 50; }
.topbar .inner { max-width: 1030px; margin: 0 auto; height: 100%; display: flex; align-items: center; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; margin-right: 18px; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; }
.brand b { color: var(--lime); font-weight: 700; }
.menu { display: flex; height: 100%; flex: 1; }
.menu > .mi { position: relative; height: 100%; display: flex; align-items: center; }
.menu > .mi > a { color: #fff; text-decoration: none; font-weight: 700; font-size: 13.5px; padding: 0 13px; height: 100%; display: flex; align-items: center; white-space: nowrap; }
.menu > .mi > a .plus { color: var(--lime); margin-right: 4px; }
.menu > .mi:hover > a, .menu > .mi.open > a { background: var(--navy-2); }
.mega { display: none; position: absolute; top: 60px; left: 0; background: #fff; border-radius: 0 0 4px 4px; box-shadow: 0 8px 24px rgba(14,35,56,.18); padding: 18px 8px; z-index: 60; }
.menu > .mi:hover .mega, .menu > .mi.open .mega { display: flex; }
.mega .col { min-width: 190px; padding: 0 14px; border-left: 1px solid var(--line); }
.mega .col:first-child { border-left: 0; }
.mega h6 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.mega a { display: block; padding: 6px 0; color: #2b4a66; text-decoration: none; font-size: 13.5px; white-space: nowrap; }
.mega a:hover { color: var(--blue-d); }
.top-icons { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.top-icons a { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; border-radius: 50%; text-decoration: none; position: relative; }
.top-icons a:hover { background: var(--navy-2); }
.top-icons svg { width: 18px; height: 18px; fill: currentColor; }
.top-icons .sep { width: 1px; height: 28px; background: #2f6a9a; margin: 0 6px; }
.top-icons .badge { position: absolute; top: 2px; right: 2px; background: var(--red); color: #fff; font-size: 9px; min-width: 14px; height: 14px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; }
.avatar { border: 2px solid #2fae86; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

/* ── Page ───────────────────────────────────────── */
.crumbs { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; min-height: 34px; font-size: 12.5px; color: var(--muted); }
.crumbs a { color: var(--blue-d); }
.crumbs .sep { margin: 0 6px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(20,40,70,.12); padding: 28px 36px 32px; margin-bottom: 24px; }
.page-title { display: flex; align-items: center; justify-content: space-between; color: var(--title); font-size: 22px; font-weight: 500; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.page-title small { font-size: 13px; color: var(--muted); font-weight: 400; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 18px 0 26px; border-top: 1px solid #d9e1ea; max-width: 1000px; margin: 10px auto 0; width: calc(100% - 32px); }
.footer b { color: var(--navy); }

/* ── Buttons ───────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; background: #f5f7f9; border: 1px solid var(--line-2); color: #2d4458; font-weight: 700; font-size: 12.5px; padding: 7px 14px; border-radius: var(--radius); cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.3; }
.btn:hover { background: #eaeef2; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-green { background: var(--green); border-color: var(--green); border-bottom-color: var(--green-d); color: #fff; padding: 8px 22px; }
.btn-green:hover { background: var(--green-d); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; padding: 8px 22px; }
.btn-blue:hover { background: var(--blue-d); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-link { background: none; border: 0; color: var(--blue-d); padding: 4px 6px; font-weight: 500; }
.btn-link:hover { background: none; text-decoration: underline; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.icon-btn { background: none; border: 0; cursor: pointer; padding: 4px; color: var(--blue); display: inline-grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }

/* ── Toolbar / search ───────────────────────────────────────── */
.toolbar { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.search { display: flex; }
.search input { width: 190px; height: 34px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); padding: 0 10px; outline: none; }
.search button { width: 40px; height: 34px; border: 0; background: var(--blue); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; display: grid; place-items: center; }
.search button svg { width: 18px; height: 18px; fill: #fff; }
.adv-toggle { color: #2d4458; font-size: 12.5px; cursor: pointer; margin-left: 12px; user-select: none; white-space: nowrap; }
.adv-toggle::before { content: '▾ '; color: var(--blue); }
.adv-toggle.open::before { content: '▴ '; }
.adv-panel { background: #f1f4f7; border-bottom: 2px solid var(--blue); padding: 18px 36px 16px; margin: 0 0 18px; }

/* ── Summary cards ───────────────────────────────────────── */
.summary-toggle { color: var(--title); font-weight: 700; font-size: 13px; cursor: pointer; margin-bottom: 10px; display: inline-block; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 6px; }
.scard { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px; text-align: center; cursor: default; }
.scard.clickable { cursor: pointer; }
.scard.clickable:hover { border-color: var(--blue); }
.scard .l { color: var(--muted); font-size: 13px; }
.scard .v { font-size: 17px; font-weight: 500; margin-top: 2px; color: var(--title); }
.scard .v.pos { color: var(--green-d); }
.scard .v.neg { color: var(--red); }
.scard .sub { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.summary-note { font-size: 11px; color: var(--muted); margin: 0 0 18px 4px; }

/* ── Table ───────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.tbl th { background: #f1f3f5; color: var(--muted); font-weight: 400; font-size: 12.5px; text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid #edf0f3; color: #5a6672; font-size: 13px; vertical-align: middle; }
.tbl tr.row { cursor: pointer; }
.tbl tr.row:hover td { background: #f7fafd; }
.tbl tr.sel td { background: #eef6fc; }
.tbl .chk { width: 36px; text-align: center; }
.tbl .num, .tbl .r { text-align: right; }
.tbl .c { text-align: center; }
.tbl .act { width: 70px; text-align: right; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; background: #fafbfc; }
.tbl .sub { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.tbl .neg { color: var(--red); }
.tbl .pos { color: var(--green-d); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .big { font-size: 20px; color: #4b6c88; margin-bottom: 6px; }
.empty .big b { color: var(--blue); font-weight: 500; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.pager .count { background: #f1f3f5; padding: 6px 14px; border-radius: 2px; }
.pager button { min-width: 30px; height: 28px; border: 1px solid var(--line-2); background: #fff; border-radius: 2px; cursor: pointer; }
.pager button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--gray-dot); vertical-align: middle; }
.dot.yellow { background: var(--yellow); } .dot.green { background: #5cb82e; } .dot.red { background: var(--red); } .dot.blue { background: var(--blue); } .dot.purple { background: #8e6bd6; } .dot.orange { background: #f08c2b; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 2px; background: #5cb82e; color: #fff; margin-left: 6px; vertical-align: 1px; }
.tag.gray { background: #9aa5b1; } .tag.blue { background: var(--blue); } .tag.red { background: var(--red); } .tag.yellow { background: var(--yellow); color: #4a3b00; }
.chev { width: 20px; height: 20px; border: 1.5px solid var(--blue); border-radius: 50%; display: inline-grid; place-items: center; color: var(--blue); cursor: pointer; background: #fff; }
.chev::after { content: ''; border: 4px solid transparent; border-top: 5px solid var(--blue); margin-top: 5px; }

/* ── Dropdown menus ───────────────────────────────────────── */
.dd { position: absolute; z-index: 200; background: #fff; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 6px 18px rgba(20,40,70,.16); padding: 4px 0; min-width: 190px; }
.dd a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: #3d4b58; text-decoration: none; font-size: 13px; cursor: pointer; white-space: nowrap; }
.dd a:hover { background: #f1f6fb; color: var(--blue-d); }
.dd a .ic { width: 16px; color: var(--blue); text-align: center; font-size: 13px; }
.dd hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.dd.dark { background: #2b88c0; border: 0; min-width: 150px; }
.dd.dark a { color: #fff; } .dd.dark a:hover { background: #2279ad; color: #fff; }

/* ── Forms ───────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 18px; }
.f { display: flex; flex-direction: column; min-width: 0; }
.f > label { font-size: 12.5px; color: #6b7884; margin-bottom: 5px; display: flex; align-items: center; gap: 4px; }
.f > label .req { color: var(--red); }
.f .help { font-size: 11px; color: #405a71; margin-top: 4px; font-weight: 500; }
.f .help-q { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 10px; font-weight: 700; cursor: help; }
.in, .f input:not([type=checkbox]):not([type=radio]), .f select, .f textarea { height: 34px; border: 1px solid var(--line-2); border-radius: 2px; padding: 0 10px; background: #fff; outline: none; width: 100%; min-width: 0; }
.f textarea { height: auto; min-height: 80px; padding: 8px 10px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus, .in:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(61,159,216,.15); }
.f input[readonly], .f input:disabled, .f select:disabled { background: #f1f3f5; color: #7a8692; }
.f .inline { display: flex; align-items: center; gap: 8px; min-height: 34px; flex-wrap: wrap; }
.f .inline label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text); cursor: pointer; }
.with-btn { display: flex; }
.with-btn input { border-radius: 2px 0 0 2px !important; }
.with-btn > input:not([type=hidden]) { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--line-2); padding: 0 10px; outline: none; }
.pdv .bigsearch > input { height: 46px; font-size: 16px; }
.pdv .bigsearch > button { width: 52px; }
.with-btn button { border: 0; background: var(--blue); color: #fff; width: 40px; border-radius: 0 2px 2px 0; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.with-btn button svg { width: 17px; height: 17px; fill: #fff; }
.f .link-under { font-size: 11px; color: #2b4a66; font-weight: 700; margin-top: 5px; text-decoration: none; }
.f .link-under:hover { text-decoration: underline; }
.span-1{grid-column:span 1}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.span-4{grid-column:span 4}.span-5{grid-column:span 5}.span-6{grid-column:span 6}.span-7{grid-column:span 7}.span-8{grid-column:span 8}.span-9{grid-column:span 9}.span-10{grid-column:span 10}.span-11{grid-column:span 11}.span-12{grid-column:span 12}
.sec { margin-top: 30px; }
.sec:first-child { margin-top: 0; }
.sec > h3 { color: var(--title); font-size: 18px; font-weight: 500; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px dashed #cfd8e1; }
.sec.coll > h3 { cursor: pointer; user-select: none; font-weight: 700; font-size: 16.5px; margin-bottom: 0; padding: 16px 0; border-bottom: 1px dashed #cfd8e1; }
.sec.coll > h3::before { content: '▴'; font-size: 12px; margin-right: 10px; display: inline-block; }
.sec.coll.closed > h3::before { content: '▾'; }
.sec.coll > .body { padding-top: 18px; }
.sec.coll.closed > .body { display: none; }
.sec.coll { margin-top: 0; }
.form-actions { display: flex; gap: 8px; margin-top: 30px; align-items: center; }
.form-actions .spacer { flex: 1; }
.badge-info { background: #fff8e1; border: 1px solid #f3e1a1; color: #8a6d0b; padding: 12px 16px; border-radius: 3px; font-size: 13px; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; }
.badge-info.blue { background: #eaf5fc; border-color: #bfe0f4; color: #1d5c87; }
.lock-num { position: relative; }
.lock-num input { padding-right: 32px; }

/* Lookup / autocomplete */
.lookup { position: relative; }
.lookup .sugg { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line-2); border-top: 0; max-height: 260px; overflow: auto; z-index: 120; box-shadow: 0 6px 14px rgba(20,40,70,.12); }
.lookup .sugg div { padding: 8px 10px; cursor: pointer; font-size: 13px; border-bottom: 1px solid #f1f3f5; }
.lookup .sugg div small { color: var(--muted); margin-left: 6px; }
.lookup .sugg div.on, .lookup .sugg div:hover { background: #eef6fc; }

/* Items grid (documentos) */
.items { width: 100%; }
.items .ih, .items .ir { display: grid; gap: 6px; align-items: center; }
.items .ih { font-size: 12.5px; color: #6b7884; margin-bottom: 5px; padding-left: 42px; }
.items .ir { margin-bottom: 8px; }
.items .ir .n { width: 34px; height: 34px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 11px; border-radius: 2px; }
.items .ir input, .items .ir select { height: 34px; border: 1px solid var(--line-2); border-radius: 2px; padding: 0 8px; width: 100%; min-width: 0; outline: none; background: #fff; }
.items .ir input:focus { border-color: var(--blue); }
.items .ir input[readonly] { background: #f6f7f9; }
.items .ir .ops { display: flex; gap: 2px; }
.items .add { font-size: 12.5px; color: #2b4a66; font-weight: 700; text-decoration: underline; cursor: pointer; display: inline-block; margin-top: 4px; }
.totals { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 18px; }
.total-big input { font-weight: 700; color: var(--title) !important; }

/* ── Modal ───────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; background: rgba(14,35,56,.45); z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; overflow: auto; }
.modal { background: #fff; border-radius: 4px; width: 100%; max-width: 560px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.modal .mh { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal .mh h4 { margin: 0; color: var(--title); font-size: 18px; font-weight: 500; }
.modal .mh .x { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); }
.modal .mb { padding: 20px 24px; }
.modal .mf { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

/* ── Toast ───────────────────────────────────────── */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 400; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #2f9e44; color: #fff; padding: 12px 18px; border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.18); font-size: 13.5px; max-width: 380px; animation: tin .2s ease-out; }
.toast.err { background: var(--red); }
.toast.info { background: var(--navy-2); }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }

/* ── Dashboard ───────────────────────────────────────── */
.hello { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 14px; font-size: 16px; }
.dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.kpi { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(20,40,70,.12); padding: 16px 18px; }
.kpi .l { font-size: 12.5px; color: var(--muted); }
.kpi .v { font-size: 22px; font-weight: 500; color: var(--title); margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12px; margin-top: 4px; color: var(--muted); }
.kpi .d .up { color: var(--green-d); } .kpi .d .down { color: var(--red); }
.kpi a { text-decoration: none; color: inherit; }
.panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 24px; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(20,40,70,.12); padding: 18px 20px; min-width: 0; }
.panel h4 { margin: 0 0 14px; color: var(--title); font-weight: 500; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.panel h4 a { font-size: 12px; font-weight: 400; }
.mini { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini td { padding: 7px 4px; border-bottom: 1px solid #f0f2f5; }
.mini td.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Bank carousel (extrato) ───────────────────────────────────────── */
.banks { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; }
.bank { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; min-width: 170px; cursor: pointer; background: #fff; }
.bank.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.bank .bn { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bank .bv { font-weight: 500; font-variant-numeric: tabular-nums; }

/* ── Report tables (DRE, fluxo) ───────────────────────────────────────── */
.rep { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rep th { background: #f1f3f5; color: var(--muted); font-weight: 500; padding: 9px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.rep th:first-child { text-align: left; position: sticky; left: 0; background: #f1f3f5; }
.rep td { padding: 8px; text-align: right; border-bottom: 1px solid #eef1f4; white-space: nowrap; }
.rep td:first-child { text-align: left; position: sticky; left: 0; background: #fff; min-width: 230px; }
.rep tr.grupo td { font-weight: 500; color: #33475b; cursor: pointer; }
.rep tr.cat td { color: var(--muted); }
.rep tr.cat td:first-child { padding-left: 26px; }
.rep tr.total td { background: #f6f9fc; font-weight: 700; color: var(--title); }
.rep tr.total td:first-child { background: #f6f9fc; }
.rep tr.resultado td { background: #e9f3fb; font-weight: 700; color: var(--navy); }
.rep tr.resultado td:first-child { background: #e9f3fb; }
.rep .neg { color: var(--red); }

/* ── PDV ───────────────────────────────────────── */
.pdv { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin: 18px 0 24px; }
.pdv .panel { padding: 20px; }
.pdv .bigsearch input { height: 46px; font-size: 16px; }
.pdv .cart { max-height: 420px; overflow: auto; }
.pdv .total-box { background: var(--navy); color: #fff; border-radius: 4px; padding: 18px; text-align: right; margin-bottom: 14px; }
.pdv .total-box .l { font-size: 13px; opacity: .8; }
.pdv .total-box .v { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pdv .pays { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.pdv .pays button { padding: 12px; border: 1px solid var(--line-2); background: #fff; border-radius: 3px; cursor: pointer; font-weight: 700; color: #2d4458; }
.pdv .pays button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.pdv .finish { width: 100%; justify-content: center; font-size: 16px; padding: 14px; }
.kbd { font-size: 11px; color: var(--muted); }

/* ── Print ───────────────────────────────────────── */
.print-doc { background: #fff; padding: 30px; max-width: 800px; margin: 20px auto; font-size: 12.5px; color: #222; }
.print-doc h2 { margin: 0 0 4px; font-size: 18px; }
.print-doc table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.print-doc th, .print-doc td { border: 1px solid #ccc; padding: 6px; text-align: left; }
.print-doc td.r, .print-doc th.r { text-align: right; }
.print-doc .hdr { display: flex; justify-content: space-between; border-bottom: 2px solid #222; padding-bottom: 10px; margin-bottom: 12px; }
.print-doc .box { border: 1px solid #ccc; padding: 8px 10px; margin-bottom: 10px; }
.print-doc .sign { margin-top: 60px; display: flex; justify-content: space-around; }
.print-doc .sign div { border-top: 1px solid #222; width: 40%; text-align: center; padding-top: 4px; }
@media print {
  .topbar, .footer, .no-print, .toolbar, .crumbs, .adv-panel, .pager, .tbl .chk, .tbl .act, #toasts { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; padding: 0; }
  .print-doc { margin: 0; padding: 0; max-width: none; }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--navy); flex-direction: column; height: auto; max-height: calc(100vh - 60px); overflow: auto; }
  .menu.show { display: flex; }
  .menu > .mi { height: auto; flex-direction: column; align-items: stretch; }
  .menu > .mi > a { padding: 14px 18px; }
  .mega { position: static; flex-direction: column; box-shadow: none; border-radius: 0; }
  .mega .col { border-left: 0; padding: 6px 18px; }
  .card { padding: 20px 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid > .f { grid-column: span 2 !important; }
  .dash { grid-template-columns: 1fr 1fr; }
  .panels, .pdv { grid-template-columns: 1fr; }
  .totals { grid-template-columns: 1fr 1fr; }
  .search input { width: 130px; }
  .items .ih { display: none; }
}
