/* ── The Uptake Books — styles ────────────────────────────────────────── */
:root {
  --navy: #0a293b; --navy-light: #0f3a55; --navy-soft: #e8eef2;
  --green: #4e8a4d; --green-dark: #3a6b39; --green-soft: #e7f1e6;
  --orange: #e67e22; --orange-dark: #c96a12; --orange-soft: #fdf0e3;
  --red: #c0392b; --red-soft: #fbe9e7;
  --grey: #e6e6e6; --grey-dark: #c8c8c8; --grey-bg: #f4f6f7; --white: #fff;
  --text: #1a1a1a; --muted: #5a5a5a; --faint: #8a8a8a;
  --font-display: 'Comfortaa', 'Trebuchet MS', sans-serif;
  --font-body: 'Mulish', 'Helvetica Neue', Arial, sans-serif;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(10,41,59,.08), 0 4px 16px rgba(10,41,59,.06);
  --nav-h: 60px; --top-h: 56px; --sidebar-w: 230px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; color: var(--text); background: var(--grey-bg); line-height: 1.45; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
a { color: var(--green-dark); }
p { margin: 0 0 .75em; }
button, input, select, textarea { font: inherit; }
input, select, textarea { font-size: 16px; } /* prevents iOS zoom on focus */
.material-icons { vertical-align: middle; font-size: 22px; }
.hidden { display: none !important; }

/* Layout — the shell is a fixed full-height frame; only <main> scrolls.
   This keeps the top bar and bottom nav in place on mobile browsers whose
   own toolbars collapse and expand while scrolling. */
html, body { height: 100%; }
body { overflow: hidden; }
#shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top" "main" "nav"; height: 100vh; height: 100dvh; }
.topbar { grid-area: top; height: var(--top-h); background: var(--navy); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 16px; padding-top: env(safe-area-inset-top, 0px); box-sizing: content-box; z-index: 30; }
.topbar .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; text-decoration: none; }
.topbar .brand img { height: 34px; }
.topbar .spacer { flex: 1; }
.topbar .iconbtn { color: #fff; }
.iconbtn { background: none; border: 0; padding: 8px; border-radius: 50%; cursor: pointer; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.iconbtn:hover { background: rgba(255,255,255,.12); }
main { grid-area: main; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 16px; padding-bottom: 96px; }
main > .inner { max-width: 1100px; margin: 0 auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Bottom nav (mobile) / sidebar (desktop) */
nav.bottomnav { grid-area: nav; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: #fff; border-top: 1px solid var(--grey); display: flex; z-index: 30; }
nav.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--faint); font-size: 11px; font-weight: 600; position: relative; }
nav.bottomnav a.active { color: var(--green-dark); }
nav.bottomnav a .badge { position: absolute; top: 6px; left: calc(50% + 6px); }
.badge { background: var(--orange); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 6px; min-width: 18px; text-align: center; line-height: 16px; }
@media (min-width: 900px) {
  #shell { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "top top" "nav main"; }
  nav.bottomnav { height: auto; flex-direction: column; border-top: 0; border-right: 1px solid var(--grey); padding: 12px 10px; gap: 4px; justify-content: flex-start; overflow-y: auto; }
  nav.bottomnav a { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; }
  nav.bottomnav a.active { background: var(--green-soft); }
  nav.bottomnav a .badge { position: static; margin-left: auto; }
  main { padding: 24px 32px 48px; }
}

/* Cards, lists */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card h2, .card h3 { margin-top: 0; }
.list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.list .row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--grey); text-decoration: none; color: inherit; cursor: pointer; min-height: 56px; }
.list .row:last-child { border-bottom: 0; }
.list .row:hover { background: var(--grey-bg); }
.list .row .main { flex: 1; min-width: 0; }
.list .row .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .row .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .row .amt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.list .row .amt small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.list .empty, .empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--grey-bg); border: 1px solid var(--grey); flex: none; display: flex; align-items: center; justify-content: center; color: var(--faint); }

/* Pills / status */
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.pill.draft { background: var(--grey); color: var(--muted); }
.pill.sent { background: var(--navy-soft); color: var(--navy); }
.pill.paid { background: var(--green-soft); color: var(--green-dark); }
.pill.overdue { background: var(--red-soft); color: var(--red); }
.pill.cancelled { background: #f0f0f0; color: var(--faint); text-decoration: line-through; }
.pill.inbox { background: var(--orange-soft); color: var(--orange-dark); }
.pill.done { background: var(--green-soft); color: var(--green-dark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; cursor: pointer; background: var(--green); color: #fff; min-height: 44px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--green-dark); }
.btn.secondary { background: var(--navy-soft); color: var(--navy); }
.btn.secondary:hover { background: #d9e3ea; }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--grey-dark); }
.btn.ghost:hover { background: var(--grey-bg); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.orange { background: var(--orange); }
.btn.orange:hover { background: var(--orange-dark); }
.btn.sm { padding: 6px 12px; min-height: 36px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn .material-icons { font-size: 18px; }
.fab { position: fixed; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 25; width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fab:hover { background: var(--orange-dark); }
.fab .material-icons { font-size: 28px; }
@media (min-width: 900px) { .fab { bottom: 32px; right: 32px; } }

/* Forms */
.form { display: grid; gap: 12px; }
.form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form .grid3 { grid-template-columns: 1fr 1fr; } }
label.field { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
label.field > input, label.field > select, label.field > textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1.5px solid var(--grey-dark); border-radius: var(--radius-sm); background: #fff; color: var(--text); font-weight: 500; text-transform: none; letter-spacing: 0; min-height: 44px; }
label.field > textarea { min-height: 80px; resize: vertical; }
label.field > input:focus, label.field > select:focus, label.field > textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
label.field .hint { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; margin-top: 4px; color: var(--faint); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-top: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters select, .filters input { padding: 8px 10px; border: 1.5px solid var(--grey-dark); border-radius: var(--radius-sm); background: #fff; min-height: 40px; }
.filters input[type=search] { flex: 1; min-width: 140px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--grey-dark); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); min-height: 36px; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg { display: inline-flex; border: 1.5px solid var(--grey-dark); border-radius: 999px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 8px 14px; font-weight: 600; color: var(--muted); cursor: pointer; min-height: 40px; }
.seg button.active { background: var(--navy); color: #fff; }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.tile .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tile .value { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .value.pos { color: var(--green-dark); } .tile .value.neg { color: var(--red); } .tile .value.warn { color: var(--orange-dark); }
.tile .sub { font-size: 12px; color: var(--faint); margin-top: 2px; }

/* Tables */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--grey); text-align: left; white-space: nowrap; }
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--grey-bg); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.total td { font-weight: 700; border-top: 2px solid var(--navy); }
table.data td.sticky, table.data th.sticky { position: sticky; left: 0; background: #fff; z-index: 1; }
table.data th.sticky { background: var(--grey-bg); }
.bar { height: 8px; background: var(--grey); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--green); }

/* Invoice editor line items */
.items .item { display: grid; grid-template-columns: 1fr 70px 90px 90px 36px; gap: 6px; align-items: center; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--grey); }
.items .item .sub { min-height: 34px !important; padding: 5px 8px !important; font-size: 13px; border-style: dashed !important; }
.items .item .detail { grid-column: 1 / 3; } .items .item .unit { grid-column: 3 / 4; } .items .item .group { grid-column: 4 / 6; }
.items .item input { width: 100%; padding: 8px 8px; border: 1.5px solid var(--grey-dark); border-radius: var(--radius-sm); min-height: 40px; }
.items .item .amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.items .head { display: grid; grid-template-columns: 1fr 70px 90px 90px 36px; gap: 6px; font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
@media (max-width: 560px) {
  .items .head { display: none; }
  .items .item { grid-template-columns: 1fr 1fr 1fr 36px; grid-template-areas: "desc desc desc del" "qty price amt del2" "detail detail detail detail" "unit group group group"; }
  .items .item .desc { grid-area: desc; } .items .item .qty { grid-area: qty; } .items .item .price { grid-area: price; } .items .item .amt { grid-area: amt; } .items .item .del { grid-area: del; }
  .items .item .detail { grid-area: detail; } .items .item .unit { grid-area: unit; } .items .item .group { grid-area: group; }
}
.totals { display: flex; justify-content: flex-end; }
.totals table td { padding: 4px 10px; font-variant-numeric: tabular-nums; }
.totals .grand { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); font-weight: 700; }

/* Receipt / expense detail */
.receipt-view { background: var(--grey-bg); border-radius: var(--radius); overflow: hidden; text-align: center; }
.receipt-view img { max-width: 100%; max-height: 60vh; display: block; margin: 0 auto; }
.receipt-view iframe { width: 100%; height: 60vh; border: 0; }
.ai-note { display: flex; gap: 10px; align-items: flex-start; background: var(--orange-soft); color: var(--orange-dark); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; }
.ai-note.ok { background: var(--green-soft); color: var(--green-dark); }
.ai-note.err { background: var(--red-soft); color: var(--red); }

/* Toasts, modals, loading */
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 20px); z-index: 60; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; }
#toast.err { background: var(--red); }
.modal-bg { position: fixed; inset: 0; background: rgba(10,41,59,.5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .modal-bg { align-items: center; } }
.modal { background: #fff; width: 100%; max-width: 520px; border-radius: var(--radius) var(--radius) 0 0; padding: 20px 16px calc(16px + var(--safe-b)); max-height: 90vh; overflow: auto; }
@media (min-width: 700px) { .modal { border-radius: var(--radius); } }
.loading { text-align: center; padding: 40px; color: var(--faint); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--grey); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); } .small { font-size: 13px; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: 8px; }
.split { display: grid; gap: 14px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-left { grid-template-columns: 3fr 2fr; } }

/* Login */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--navy); }
.auth .card { width: 100%; max-width: 380px; padding: 28px 24px; }
.auth img { height: 44px; display: block; margin: 0 auto 16px; }

/* ── Invoice document (screen + print) — from the Uptake invoice design ── */
.invoice-doc { background: #fff; color: #1a1a1a; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 820px; margin: 0 auto 14px; font-size: 14px; line-height: 1.6; overflow: hidden; font-family: var(--font-body); }
.invoice-doc .eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.invoice-doc .doc-head { background: var(--navy); color: #fff; padding: 32px 44px 26px; display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; }
.invoice-doc .doc-from img { height: 64px; width: auto; display: block; margin-bottom: 14px; }
.invoice-doc .doc-from .who { font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,.78); }
.invoice-doc .doc-title { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.invoice-doc .doc-title .eyebrow { margin: 0; }
.invoice-doc .doc-title .num { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: #fff; }
.invoice-doc .doc-title .due { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(78,138,77,.35); font-size: 11.5px; color: #fff; }
.invoice-doc .doc-rule { height: 4px; background: var(--orange); }
.invoice-doc .doc-body { padding: 30px 44px 36px; }
.invoice-doc .doc-meta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--grey); }
.invoice-doc .doc-meta .client { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.invoice-doc .doc-meta .who { color: var(--muted); font-size: 13px; line-height: 1.7; }
.invoice-doc .dates { display: grid; grid-template-columns: auto auto; gap: 8px 18px; font-size: 13px; justify-content: start; align-content: start; }
.invoice-doc .dates span { color: var(--muted); } .invoice-doc .dates b { color: var(--navy); font-weight: 600; text-align: right; }
.invoice-doc .doc-summary { margin-top: 22px; padding: 16px 18px; background: #f4f6f7; border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; }
.invoice-doc .doc-summary .text { font-size: 13.5px; line-height: 1.7; color: var(--text); }
.invoice-doc table.lines { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 13.5px; }
.invoice-doc table.lines th { text-align: left; padding: 0 10px 10px 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--grey-dark); }
.invoice-doc table.lines th.num { text-align: right; padding: 0 10px 10px; } .invoice-doc table.lines th.num:last-child { padding-right: 0; width: 110px; }
.invoice-doc table.lines td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--grey); vertical-align: top; }
.invoice-doc table.lines td.num { text-align: right; padding: 9px 10px; font-variant-numeric: tabular-nums; white-space: nowrap; } .invoice-doc table.lines td.num:last-child { padding-right: 0; }
.invoice-doc table.lines .detail { color: var(--muted); font-size: 12px; margin-top: 2px; }
.invoice-doc table.lines tr.grp td { padding: 18px 0 8px; border-bottom: 0; }
.invoice-doc table.lines .grp-name { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--navy); }
.invoice-doc table.lines .grp-name i { width: 10px; height: 10px; border-radius: 2px; background: var(--green); display: inline-block; } .invoice-doc table.lines .grp-name i.orange { background: var(--orange); }
.invoice-doc table.lines tr.grp-sub td { border-bottom: 0; color: var(--muted); font-size: 12.5px; text-align: right; } .invoice-doc table.lines tr.grp-sub td.num { font-weight: 700; color: var(--navy); }
.invoice-doc .doc-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 32px; margin-top: 28px; align-items: start; }
.invoice-doc .paylines { font-size: 13px; line-height: 1.8; }
.invoice-doc .note { margin-top: 14px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.invoice-doc .totals-card { border: 1px solid var(--grey); border-top: 4px solid var(--green); border-radius: 16px; box-shadow: 0 1px 3px rgba(10,41,59,.08); padding: 18px 20px; }
.invoice-doc .tgrid { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; font-size: 13.5px; align-items: baseline; }
.invoice-doc .tgrid span { color: var(--muted); } .invoice-doc .tgrid span.strong { color: var(--navy); font-weight: 700; }
.invoice-doc .tgrid b { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); } .invoice-doc .tgrid b.light { font-weight: 400; color: var(--text); }
.invoice-doc .tgrid .hr { grid-column: 1 / -1; height: 1px; background: var(--grey); }
.invoice-doc .total-bar { margin-top: 16px; background: var(--navy); border-radius: 8px; padding: 13px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: #fff; font-family: var(--font-display); font-weight: 700; }
.invoice-doc .total-bar .amount { font-size: 21px; font-variant-numeric: tabular-nums; }
.invoice-doc .doc-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--grey); display: flex; justify-content: space-between; gap: 20px; font-size: 11.5px; color: var(--muted); }
.invoice-doc .stamp { display: inline-block; border: 3px solid #fff; color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: .15em; padding: 3px 12px; transform: rotate(-6deg); border-radius: 6px; margin-top: 6px; font-size: 13px; }
.invoice-doc .stamp.cancelled { border-color: var(--orange); color: var(--orange); }
@media (max-width: 600px) {
  .invoice-doc .doc-head { padding: 22px 18px 18px; flex-direction: column; }
  .invoice-doc .doc-title { align-items: flex-start; text-align: left; }
  .invoice-doc .doc-body { padding: 20px 18px 24px; }
  .invoice-doc .doc-meta, .invoice-doc .doc-bottom { grid-template-columns: 1fr; gap: 18px; }
  .invoice-doc table.lines { font-size: 12.5px; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 12.5px; }
  .topbar, nav.bottomnav, .fab, #toast, .no-print, .page-head { display: none !important; }
  html, body { height: auto; overflow: visible; }
  #shell { display: block; height: auto; }
  main { overflow: visible; margin: 0 !important; padding: 0 !important; max-width: none; }
  .invoice-doc { box-shadow: none; border-radius: 0; max-width: none; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .invoice-doc .doc-head { padding: 26px 34px 22px; }
  .invoice-doc .doc-body { padding: 24px 34px 28px; }
  .invoice-doc .doc-bottom, .invoice-doc .doc-foot, .invoice-doc .doc-meta { break-inside: avoid; }
  a { text-decoration: none; color: inherit; }
}
