/* MN & Sons Billing — black & gold design system */
:root {
  --gold: #c9a227; --gold-600: #b08a1a; --gold-700: #8f6f12; --gold-100: #f7efd6; --gold-50: #fbf7ea;
  --ink: #17150f; --ink-2: #3b372d; --muted: #6f6a5e; --faint: #9a9486;
  --bg: #f5f3ee; --card: #ffffff; --line: #e7e2d6; --line-2: #f0ece3;
  --side: #0d0d0e; --side-2: #18181a; --side-text: #bdb7a8; --side-hover: #232326;
  --green: #1f8a4c; --green-bg: #e6f4ec; --red: #c0392b; --red-bg: #fbeae8; --amber: #b7791f; --amber-bg: #fdf3e1;
  --blue: #2563a8; --blue-bg: #e7f0fa; --purple: #6d4bb5; --purple-bg: #efe9fa; --teal: #0f7c7a; --teal-bg: #e2f4f3;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(23, 21, 15, .05), 0 4px 16px rgba(23, 21, 15, .04);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--bg); line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-700); text-decoration: none; }
a:hover { color: var(--gold-600); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
.ic { display: inline-block; vertical-align: -3px; flex: none; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; } .nowrap { white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; } .strong { font-weight: 600; }
.text-red { color: var(--red); } .text-green { color: var(--green); } .text-amber { color: var(--amber); }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mb-0 { margin-bottom: 0 } .mb-2 { margin-bottom: 16px }
.hidden { display: none !important; }

/* ---------- shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; background: var(--side); color: var(--side-text); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 40; transition: transform .2s; }
.brand { padding: 18px 18px 14px; border-bottom: 1px solid #222; display: flex; align-items: center; gap: 10px; }
.brand img { width: 64px; height: auto; }
.brand-text { line-height: 1.15; }
.brand-text b { display: block; color: #f3e3a8; font-size: 14px; letter-spacing: .04em; }
.brand-text span { font-size: 11px; color: #8d877a; }
.nav { overflow-y: auto; padding: 10px 10px 24px; flex: 1; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #6c675c; padding: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--side-text); font-size: 13.5px; text-decoration: none; }
.nav a:hover { background: var(--side-hover); color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(201, 162, 39, .22), rgba(201, 162, 39, .06)); color: #f3e3a8; box-shadow: inset 2px 0 0 var(--gold); }
.nav a .count { margin-left: auto; background: var(--gold); color: #000; border-radius: 10px; font-size: 11px; padding: 0 7px; font-weight: 600; }
.side-foot { padding: 12px 16px; border-top: 1px solid #222; font-size: 11.5px; color: #6c675c; }
.main { flex: 1; margin-left: 252px; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 0; z-index: 30; }
.topbar .menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); }
.gsearch { flex: 1; max-width: 460px; position: relative; }
.gsearch input { width: 100%; padding: 9px 12px 9px 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font: inherit; }
.gsearch input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(201, 162, 39, .15); }
.gsearch .ic { position: absolute; left: 11px; top: 10px; color: var(--faint); }
.gsearch .ac-list { top: 42px; }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.usermenu { position: relative; }
.usermenu > button { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 22px; padding: 4px 12px 4px 4px; cursor: pointer; font: inherit; color: var(--ink); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #f3e3a8; display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.dropdown { position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .1); min-width: 210px; padding: 6px; display: none; z-index: 50; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; color: var(--ink); width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg); text-decoration: none; }
.content { padding: 24px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.crumb a { color: var(--muted); }

/* ---------- cards & grid */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line-2); gap: 10px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-body { padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 22px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi.dark { background: linear-gradient(135deg, #141414, #232019); color: #fff; border-color: #2a261c; }
.kpi.dark .label, .kpi.dark .meta { color: #b9b19c; }
.kpi.dark .value { color: #f3e3a8; }
.kpi .kpi-ic { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-700); }
.kpi.dark .kpi-ic { background: rgba(201, 162, 39, .18); color: #f3e3a8; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none !important; line-height: 1.3; }
.btn:hover { border-color: #cfc7b4; background: var(--gold-50); color: var(--ink); }
.btn-primary { background: linear-gradient(180deg, #d4ae36, #c19a20); border-color: #b08a1a; color: #1a1406; font-weight: 600; }
.btn-primary:hover { background: linear-gradient(180deg, #dbb740, #c9a227); color: #000; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #f3e3a8; }
.btn-dark:hover { background: #2a261c; color: #fff; }
.btn-danger { color: var(--red); border-color: #efc9c4; }
.btn-danger:hover { background: var(--red-bg); color: var(--red); }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: #18733f; color: #fff; }
.btn-ghost { background: none; border-color: transparent; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn-xs { padding: 3px 7px; font-size: 12px; border-radius: 6px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--muted); border-radius: 6px; }
.icon-btn:hover { background: var(--bg); color: var(--red); }

/* ---------- forms */
.form-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.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 } .col-9 { grid-column: span 9 }
label.lbl, .lbl { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; }
.req::after { content: " *"; color: var(--red); }
.input, select.input, textarea.input { width: 100%; padding: 8px 11px; border: 1px solid #ddd6c6; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); min-height: 37px; }
textarea.input { min-height: 70px; resize: vertical; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .16); }
.input[readonly] { background: var(--bg); }
.input.num { text-align: right; }
.help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--gold-600); }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .fld { min-width: 140px; }
.fieldset { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.seg label { padding: 7px 12px; cursor: pointer; font-size: 13px; border-right: 1px solid var(--line); }
.seg label:last-child { border-right: 0; }
.seg input { display: none; }
.seg input:checked + span { color: var(--gold-700); font-weight: 600; }
.seg label:has(input:checked) { background: var(--gold-50); }

/* ---------- tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfaf7; white-space: nowrap; position: sticky; top: 0; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:hover td { background: #fcfaf4; }
.table tr.clickable { cursor: pointer; }
.table tfoot td { font-weight: 700; background: #faf8f2; border-top: 1px solid var(--line); }
.table .sub-row td { background: #fcfbf8; font-size: 12.5px; }
.table td.actions { white-space: nowrap; text-align: right; }
.table.compact td, .table.compact th { padding: 7px 10px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .ic { color: var(--gold); margin-bottom: 8px; }

/* ---------- badges, alerts */
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge-gray { background: #eeece6; color: #5f5a4e; } .badge-green { background: var(--green-bg); color: var(--green); } .badge-red { background: var(--red-bg); color: var(--red); }
.badge-amber { background: var(--amber-bg); color: var(--amber); } .badge-blue { background: var(--blue-bg); color: var(--blue); } .badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-teal { background: var(--teal-bg); color: var(--teal); } .badge-gold { background: var(--gold-100); color: var(--gold-700); }
.alert { padding: 12px 14px; border-radius: 10px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; white-space: pre-line; }
.alert-success { background: var(--green-bg); border-color: #bfe3cd; color: #155f35; }
.alert-error { background: var(--red-bg); border-color: #f0c6c0; color: #8e2a20; }
.alert-warning { background: var(--amber-bg); border-color: #f1d9ad; color: #7a5212; }
.alert-info { background: var(--blue-bg); border-color: #c5dbf2; color: #1d4b80; }
.flash-stack { position: fixed; right: 20px; top: 72px; z-index: 60; width: min(420px, calc(100vw - 32px)); }
.flash-stack .alert { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }

/* ---------- tabs, lists */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; text-decoration: none; }
.tabs a.active { color: var(--ink); border-color: var(--gold); }
.tabs a .count { background: var(--bg); border-radius: 10px; padding: 0 7px; font-size: 11px; margin-left: 4px; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0; }
.dl dt { color: var(--muted); font-size: 12.5px; } .dl dd { margin: 0; font-weight: 500; }
.stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.stat-row:last-child { border-bottom: 0; }
.totals { width: 100%; }
.totals td { padding: 6px 0; }
.totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.totals tr.grand td { font-size: 18px; font-weight: 700; border-top: 2px solid var(--ink); padding-top: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.timeline li:last-child { border-color: transparent; }

/* ---------- filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 14px 16px; }
.filters .fld { display: flex; flex-direction: column; min-width: 130px; }
.filters .fld .lbl { margin-bottom: 4px; }
.filters .input { min-height: 35px; padding: 6px 10px; }

/* ---------- autocomplete */
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); z-index: 45; max-height: 340px; overflow-y: auto; display: none; min-width: 320px; }
.ac-list.open { display: block; }
.ac-item { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 12px; }
.ac-item:last-child { border-bottom: 0; }
.ac-item.active, .ac-item:hover { background: var(--gold-50); }
.ac-item .t { font-weight: 500; } .ac-item .s { font-size: 12px; color: var(--muted); }
.ac-item .r { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- document editor */
.doc-lines { width: 100%; border-collapse: collapse; }
.doc-lines th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.doc-lines td { padding: 6px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.doc-lines .input { min-height: 34px; padding: 6px 8px; }
.doc-lines td.ln { color: var(--faint); width: 28px; padding-top: 14px; text-align: center; }
.doc-lines .amt { padding-top: 14px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-lines .meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.doc-lines .meta .warn { color: var(--red); }
.scanbar { display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: var(--gold-50); border-bottom: 1px solid var(--line); }
.scanbar .ac { flex: 1; }
.scanbar .input { background: #fff; }
.kbd { font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: #fff; color: var(--muted); }
.party-card { background: var(--bg); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.party-card .row { display: flex; justify-content: space-between; padding: 3px 0; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(245, 243, 238, .95); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 16px; display: flex; gap: 10px; justify-content: flex-end; z-index: 20; }

/* ---------- modal */
dialog.modal { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
dialog.modal::backdrop { background: rgba(13, 13, 14, .45); }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 18px 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 8px; background: #fbfaf7; border-radius: 0 0 14px 14px; }

/* ---------- document preview */
.doc-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.doc-sheet .sheet-head { background: #000; color: #e8e2d0; padding: 22px 26px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.doc-sheet .sheet-head img { height: 64px; }
.doc-sheet .sheet-head .co { text-align: right; font-size: 12px; color: #b9b19c; }
.doc-sheet .sheet-head .co b { color: #f3e3a8; font-size: 15px; display: block; }
.doc-sheet .sheet-title { display: flex; justify-content: space-between; padding: 18px 26px; border-bottom: 1px solid var(--line-2); gap: 20px; flex-wrap: wrap; }
.doc-sheet .sheet-title h2 { font-size: 22px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); margin: 0; }
.doc-sheet .sheet-body { padding: 18px 26px; }

/* ---------- charts */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.bars .bar { flex: 1; background: linear-gradient(180deg, #d4ae36, #b08a1a); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars .bar:hover { filter: brightness(1.1); }
.bars .bar:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; margin-bottom: 6px; z-index: 5; }
.bar-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 6px; }

/* ---------- auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: radial-gradient(circle at 30% 30%, #1d1a12, #0b0b0c 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; color: #b9b19c; text-align: center; }
.auth-art img { width: min(420px, 80%); }
.auth-art p { max-width: 380px; margin-top: 18px; font-size: 13.5px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { font-size: 24px; }

/* ---------- misc */
.pager { display: flex; gap: 4px; align-items: center; padding: 12px 16px; flex-wrap: wrap; }
.pager .muted { margin-right: auto; font-size: 12.5px; }
.pager a { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line); color: var(--ink); font-size: 13px; text-decoration: none; }
.pager a.active { background: var(--ink); color: #f3e3a8; border-color: var(--ink); }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; font-size: 12px; }
.divider { height: 1px; background: var(--line-2); margin: 14px 0; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 9px 0; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 10px; }
.list-plain li:last-child { border-bottom: 0; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; }
.report-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.report-tile { display: flex; gap: 12px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none !important; }
.report-tile:hover { border-color: var(--gold); box-shadow: 0 6px 20px rgba(201, 162, 39, .12); color: var(--ink); }
.report-tile .ri { width: 38px; height: 38px; border-radius: 10px; background: var(--gold-100); color: var(--gold-700); display: grid; place-items: center; }
.overlay { display: none; }

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .overlay { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 35; }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .topbar .menu-btn { display: block; }
  .content { padding: 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .form-grid > [class*="col-"] { grid-column: span 12; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { padding: 28px; }
  .auth-art img { width: 200px; }
  .auth-art p { display: none; }
  .hide-sm { display: none; }
  .usermenu .uname { display: none; }
  .dl { grid-template-columns: 110px 1fr !important; }
  .doc-sheet .sheet-head { flex-direction: column; align-items: flex-start; padding: 16px; }
  .doc-sheet .sheet-head .co { text-align: left; }
  .doc-sheet .sheet-title, .doc-sheet .sheet-body { padding: 14px 16px; }
  .doc-sheet .totals { width: 100% !important; }
  .page-actions .btn { padding: 7px 11px; }
  .kpi .value { font-size: 19px; }
  .card-pad, .card-body { padding: 14px; }
  .scanbar { padding: 10px; }
  .scanbar > .ic, .scanbar > .small { display: none; }
}
@media print {
  .sidebar, .topbar, .page-actions, .filters, .no-print, .pager, .sticky-actions, .flash-stack { display: none !important; }
  .main { margin: 0; } .content { padding: 0; max-width: none; }
  body { background: #fff; font-size: 11.5px; }
  .card { box-shadow: none; border: 0; }
  .table th { position: static; }
  .print-head { display: block !important; }
}
.print-head { display: none; margin-bottom: 12px; }
