/* Vidilyte Accounting — change --brand to re-theme for another company */
:root {
  --brand: #1f5f3f;
  --brand-dark: #154530;
  --brand-soft: #e7f1ec;
  --accent: #c58b2a;
  --bg: #f4f6f5;
  --panel: #ffffff;
  --text: #1c2622;
  --muted: #64716b;
  --line: #e1e7e4;
  --line-strong: #cbd5d0;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --warn: #9a6700;
  --warn-soft: #fff6e0;
  --ok: #157347;
  --ok-soft: #e6f4ec;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 2px 8px rgba(16, 24, 20, .04);
  --sidebar: 248px;
  font-size: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.45; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.pre { white-space: pre-line; }
.text-bad { color: var(--bad); font-weight: 600; }
.text-ok { color: var(--ok); font-weight: 600; }

/* Layout */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex-shrink: 0; background: #12241b; color: #d8e4de; position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column; z-index: 30; transition: transform .2s;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 16px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.brand-mark.big { width: 56px; height: 56px; font-size: 26px; border-radius: 14px; margin: 0 auto; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; }
.brand-text { min-width: 0; }
.brand-name { font-weight: 700; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 11px; color: #8fa89b; }
.sidebar nav { overflow-y: auto; flex: 1; padding: 6px 8px 16px; }
.nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #7d978a; padding: 14px 10px 4px; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 7px; color: #cfdcd5; font-size: 13px; }
.nav-item:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.nav-item.active { background: var(--brand); color: #fff; }
.nav-sub { padding-left: 28px; font-size: 12.5px; color: #a9bdb3; }
.nav-icon { width: 16px; text-align: center; opacity: .85; font-size: 12px; }
.sidebar-foot { padding: 10px 16px; font-size: 11px; color: #6b8378; border-top: 1px solid rgba(255,255,255,.08); }
.main { flex: 1; margin-left: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 24px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); min-height: 58px;
}
.page-title { font-size: 18px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.content { padding: 20px 24px 48px; max-width: 1500px; width: 100%; }
.menu-btn { display: none; }
.scrim { display: none; }
.user { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 4px; border-radius: 8px; color: var(--text); }
.user-btn:hover { background: var(--bg); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.user-menu { position: absolute; right: 0; top: 42px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 10px; width: 210px; display: flex; flex-direction: column; gap: 6px; }
.user-menu a, .user-menu button { text-align: left; background: none; border: 0; padding: 6px 4px; font: inherit; color: var(--text); cursor: pointer; border-radius: 6px; }
.user-menu a:hover, .user-menu button:hover { background: var(--bg); text-decoration: none; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .menu-open .sidebar { transform: none; }
  .menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 25; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 8px 12px; flex-wrap: wrap; }
  .content { padding: 14px 12px 40px; }
  .user-name { display: none; }
  .top-actions { order: 5; width: 100%; justify-content: flex-start; }
}

/* Cards, grids */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.card.narrow { max-width: 900px; }
.card-title { font-size: 14px; margin: 0 0 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 > .card { margin-bottom: 0; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats.compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 21px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat-warn { border-left: 3px solid var(--accent); }
.stat-bad { border-left: 3px solid var(--bad); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick-link { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px; font-size: 13px; color: var(--text); }
.quick-link:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* Chart */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding: 8px 0 0; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.bar { width: 42%; max-width: 16px; border-radius: 3px 3px 0 0; min-height: 1px; }
.bar-a { background: var(--brand); }
.bar-b { background: #9db8aa; }
.bar-label { font-size: 10.5px; color: var(--muted); padding-top: 4px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.dot-a { background: var(--brand); } .dot-b { background: #9db8aa; }

/* Buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--text); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; line-height: 1.3;
}
.btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover { color: #fff; opacity: .9; }
.btn-danger-ghost { color: var(--bad); border-color: #f1c4bf; }
.btn-danger-ghost:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--brand); padding-left: 6px; }
.btn-ghost:hover { background: var(--brand-soft); border-color: transparent; }
.btn-sm { padding: 4px 9px; font-size: 12.5px; }
.btn-lg { padding: 11px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.btn-row.right { justify-content: flex-end; }
.icon-btn { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.icon-btn:hover { background: var(--bg); color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; margin: 6px 0; }
.input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; color: var(--text); background: #fff; min-width: 0;
}
.input:focus { outline: 2px solid rgba(31, 95, 63, .25); border-color: var(--brand); }
.input:disabled { background: #f3f5f4; color: var(--muted); }
textarea.input { resize: vertical; }
.input-sm { padding: 5px 7px; font-size: 13px; }
.num, input.num { text-align: right; font-variant-numeric: tabular-nums; }
.input-group { display: flex; gap: 6px; }
.input-group > * { flex: 1 1 0; min-width: 0; }
.input-group > .input:first-child { flex: 1.3 1 0; }
.input-group > .btn { flex: 0 0 auto; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; min-width: 0; }
.field-label { font-size: 12px; font-weight: 600; color: #3b4a43; }
.req { color: var(--bad); margin-left: 2px; }
.hint { color: var(--muted); font-size: 11.5px; }
.check { display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; padding: 6px 0; }
.pill { background: var(--brand-soft); color: var(--brand-dark); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2, .form-grid .span-3 { grid-column: auto; } }
.thumb { max-height: 60px; max-width: 160px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: #fff; }

/* Alerts, badges */
.alert { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13.5px; }
.alert-error { background: var(--bad-soft); color: var(--bad); border: 1px solid #f5c7c1; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #bfe3cd; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #f0dca6; }
.alert-x { background: none; border: 0; font-size: 18px; cursor: pointer; color: inherit; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; text-transform: capitalize; margin-left: 6px; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-muted { background: #eef1f0; color: var(--muted); }
.chip { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1px 8px; margin: 0 4px; font-size: 12px; }

/* Tables */
.table-wrap { width: 100%; }
.table-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.search { max-width: 320px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; width: 100%; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); background: #fafbfa; white-space: nowrap; cursor: pointer; user-select: none; }
.table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table.dense td { padding: 6px 10px; white-space: nowrap; }
.table td .wrap { white-space: normal; }
.scan-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.scan-row .input { max-width: 340px; }
.scan-msg { font-size: 13px; }
.line-prod { display: flex; gap: 4px; align-items: center; }
.top-actions .input { width: auto; }
.table th.num, .table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #f6faf8; }
.table tr.bold td { font-weight: 650; }
.table tr.cancelled td { color: #9aa5a0; text-decoration: line-through; }
.table tr.cancelled td:last-child { text-decoration: none; }
.table tfoot td { font-weight: 700; border-top: 2px solid var(--line-strong); background: #fafbfa; }
.empty-cell, .empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.items-table td { padding: 6px 6px; vertical-align: middle; }
.items-table th { cursor: default; }

/* Combo */
.combo { position: relative; }
.combo-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 3px); background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 280px; overflow-y: auto; min-width: 260px; }
.combo-item { padding: 7px 10px; cursor: pointer; }
.combo-item small { color: var(--muted); }
.combo-item.hi, .combo-item:hover { background: var(--brand-soft); }
.combo-empty { padding: 10px; color: var(--muted); }
.combo-create { padding: 9px 10px; border-top: 1px solid var(--line); color: var(--brand); font-weight: 600; cursor: pointer; }
.combo-create:hover { background: var(--brand-soft); }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 25, 20, .45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px; overflow-y: auto; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 520px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 16px 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fafbfa; border-radius: 0 0 12px 12px; }

/* Tabs, filters */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab { background: none; border: 0; padding: 9px 14px; font: inherit; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 12px 16px; }
.filters label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: #3b4a43; }
.filters label.grow { flex: 1; min-width: 240px; }
.filters .input { min-width: 140px; }
.filter-sum { margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: 13px; flex-wrap: wrap; }

/* Document form */
.charge-row { display: grid; grid-template-columns: 1.3fr 1fr auto auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.totals-card { position: sticky; top: 74px; align-self: start; }
.tot-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-variant-numeric: tabular-nums; }
.tot-row.grand { font-size: 19px; font-weight: 750; border-top: 2px solid var(--text); margin-top: 6px; padding-top: 10px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 13px; }

.reset-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.reset-opt.on { border-color: var(--bad); background: var(--bad-soft); }
.reset-opt input { margin-top: 4px; }

/* BOM */
.bom { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.bom h4 { margin: 0 0 8px; font-size: 14px; }

/* Reports */
.report-group h2 { font-size: 15px; margin: 8px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 22px; }
.report-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.report-card:hover { border-color: var(--brand); text-decoration: none; box-shadow: var(--shadow); }
.report-head { margin: 4px 0 14px; }
.report-head h2 { font-size: 20px; margin: 2px 0; }
.report-section .card-title { color: var(--brand-dark); }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #e7f1ec 0%, #f4f6f5 55%); }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 30px 28px; box-shadow: 0 10px 40px rgba(20, 50, 35, .12); display: flex; flex-direction: column; gap: 12px; }
.login-brand { text-align: center; margin-bottom: 6px; }
.login-brand img { max-height: 70px; max-width: 200px; }
.login-brand h1 { font-size: 20px; margin: 10px 0 2px; }
.login-foot { text-align: center; margin: 4px 0 0; }
.page-loading { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Printable invoice */
.invoice { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; position: relative; max-width: 1000px; margin: 0 auto; font-size: 12.5px; }
.invoice .small { font-size: 11.5px; }
.invoice.is-cancelled { opacity: .85; }
.watermark { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-25deg); font-size: 90px; font-weight: 800; color: rgba(180, 35, 24, .13); pointer-events: none; }
.inv-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--brand); padding-bottom: 6px; margin-bottom: 12px; }
.inv-title { font-size: 17px; font-weight: 800; letter-spacing: .06em; color: var(--brand); }
.inv-copy { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--line-strong); padding: 2px 8px; border-radius: 4px; }
.inv-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.inv-company { display: flex; gap: 12px; align-items: flex-start; }
.inv-logo { max-height: 64px; max-width: 120px; object-fit: contain; }
.inv-cname { font-size: 18px; font-weight: 800; color: var(--text); }
.inv-info { border-collapse: collapse; font-size: 12px; align-self: flex-start; }
.inv-info td { padding: 2px 8px; border: 1px solid var(--line); }
.inv-info td:first-child { color: var(--muted); white-space: nowrap; }
.inv-info.wide { width: 100%; margin: 12px 0; }
.inv-info.wide td { padding: 6px 10px; }
.inv-irn { background: #f7f9f8; padding: 4px 8px; border-radius: 4px; margin-bottom: 8px; word-break: break-all; }
.inv-parties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; }
.inv-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.inv-pname { font-weight: 700; font-size: 14px; }
.inv-items { width: 100%; border-collapse: collapse; font-size: 12px; }
.inv-items th { background: var(--brand); color: #fff; font-weight: 600; padding: 6px 6px; text-align: center; font-size: 11px; }
.inv-items td { border-bottom: 1px solid var(--line); padding: 5px 6px; text-align: center; }
.inv-items .left { text-align: left; }
.inv-items .num { text-align: right; font-variant-numeric: tabular-nums; }
.inv-items tr.charge td { color: #3b4a43; font-style: italic; }
.inv-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 12px; }
.inv-left { display: flex; flex-direction: column; gap: 10px; }
.inv-hsn { border-collapse: collapse; font-size: 11px; width: 100%; }
.inv-hsn th, .inv-hsn td { border: 1px solid var(--line); padding: 3px 6px; }
.inv-hsn th { background: #f5f7f6; }
.inv-hsn .num { text-align: right; }
.inv-words { border: 1px dashed var(--line-strong); padding: 6px 8px; border-radius: 4px; }
.inv-bank { border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; }
.inv-totals { width: 100%; border-collapse: collapse; }
.inv-totals td { padding: 4px 6px; border-bottom: 1px solid var(--line); }
.inv-totals .num { text-align: right; font-variant-numeric: tabular-nums; }
.inv-totals tr.grand td { font-size: 15px; font-weight: 800; background: var(--brand-soft); border-bottom: 2px solid var(--brand); }
.inv-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.inv-foot .terms { max-width: 60%; }
.inv-sign { text-align: center; min-width: 200px; }
.inv-sign img { max-height: 56px; max-width: 180px; display: block; margin: 4px auto; }
.inv-gen { text-align: center; margin-top: 10px; }
.voucher h4 { margin: 14px 0 6px; font-size: 13px; }

@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; font-size: 12px; }
  .no-print, .sidebar, .topbar, .alert, .filters, .tabs, .scrim { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; max-width: none; }
  .card { box-shadow: none; border: 0; padding: 0; margin-bottom: 10px; }
  .invoice { border: 0; padding: 0; max-width: none; }
  .inv-items th { background: #e9efec !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .inv-totals tr.grand td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .table th { background: #fff; }
  .table tr { page-break-inside: avoid; }
  a { color: inherit; }
  .stat { box-shadow: none; }
}
