/* Tagihin — stylesheet tanpa build step */
:root {
  --ink: #13203a;
  --ink-2: #44506a;
  --muted: #6b7772;
  --line: #e6e1d6;
  --paper: #faf7f1;
  --card: #ffffff;
  --brand: #165dde;
  --brand-2: #0e47b0;
  --brand-soft: #e7effc;
  --accent: #f0a92b;
  --accent-soft: #fdf1da;
  --danger: #c2412d;
  --danger-soft: #fbe6e1;
  --warning: #a8670a;
  --warning-soft: #fcefd6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 32, 27, .06), 0 8px 24px -12px rgba(19, 32, 27, .18);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.55; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .7em 1.15em; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #e39a17; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: #cfc8b9; }
.btn-danger { background: transparent; color: var(--danger); border-color: #efc9c0; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: .45em .8em; font-size: .88rem; border-radius: 8px; }
.btn-lg { padding: .95em 1.5em; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35em; }
.field { margin-bottom: 1rem; }
.input, select.input, textarea.input { width: 100%; padding: .7em .85em; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 110, 79, .15); }
textarea.input { resize: vertical; min-height: 80px; }
.help { color: var(--muted); font-size: .82rem; margin-top: .3em; }
.error { color: var(--danger); font-size: .84rem; margin-top: .3em; }
.checkbox { display: flex; gap: .55em; align-items: flex-start; font-weight: 500; }
.checkbox input { margin-top: .3em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Cards, badges, alerts ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 1.4rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.05rem; }

.badge { display: inline-flex; align-items: center; gap: .35em; padding: .2em .65em; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--brand-soft); color: var(--brand); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: #eeebe4; color: var(--muted); }

.alert { padding: .85rem 1.1rem; border-radius: 10px; margin-bottom: 1.2rem; font-weight: 500; border: 1px solid; }
.alert-success { background: var(--brand-soft); border-color: #bfe0cf; color: var(--brand-2); }
.alert-error { background: var(--danger-soft); border-color: #f0c5bb; color: #8f2c1d; }
.alert-info { background: var(--accent-soft); border-color: #f3d9a4; color: #7a4d06; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: .75rem 1.4rem; border-bottom: 1px solid var(--line); background: #fcfbf8; white-space: nowrap; }
.table td { padding: .85rem 1.4rem; border-bottom: 1px solid #f0ece3; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfbf7; }
.table .row-link { color: var(--ink); font-weight: 600; }
.empty { padding: 3rem 1.4rem; text-align: center; color: var(--muted); }

/* =========================================================
   LANDING / SITE
   ========================================================= */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 241, .88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.03em; text-decoration: none !important; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .02em; position: relative; }
.logo-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper); }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a:not(.btn) { color: var(--ink-2); font-weight: 500; }
@media (max-width: 860px) { .nav-links .nav-anchor { display: none; } }

.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; padding: .35em .85em; border-radius: 999px; background: var(--brand-soft); color: var(--brand-2); font-weight: 700; font-size: .82rem; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1rem; color: var(--muted); font-size: .88rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--brand); font-weight: 800; }

/* Ilustrasi invoice di hero */
.mock { position: relative; padding-bottom: 44px; }
.mock-invoice { background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(19, 32, 27, .35); padding: 26px; transform: rotate(-1.2deg); }
.mock-row { display: flex; justify-content: space-between; align-items: center; }
.mock-line { height: 9px; border-radius: 5px; background: #efebe3; }
.mock-items { margin: 20px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 14px 0; display: grid; gap: 12px; }
.mock-total { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.mock-pay { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-pay span { border: 1px solid var(--line); border-radius: 8px; padding: 8px 4px; text-align: center; font-size: .72rem; font-weight: 700; color: var(--ink-2); }
.mock-toast { position: absolute; right: -14px; bottom: 0; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); font-size: .88rem; transform: rotate(1.5deg); }
.mock-toast b { color: #8fe0bd; }
.mock-toast .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 800; }
@media (max-width: 960px) { .mock-toast { right: 8px; } }

.logos { padding: 20px 0 8px; color: var(--muted); font-size: .85rem; text-align: center; }
.channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.channels span { padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .8rem; color: var(--ink-2); }

.section { padding: 84px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--ink-2); font-size: 1.07rem; }
.kicker { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: .8rem; display: block; }

.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain .card { padding: 24px; }
.pain .stat { font-size: 2.2rem; font-weight: 800; color: var(--danger); letter-spacing: -.03em; }
@media (max-width: 860px) { .pain { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; margin-bottom: 16px; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--ink-2); margin: 0; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan.featured .tag { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.plan .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; margin: .3rem 0; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .6rem; flex: 1; }
.plan li { padding-left: 1.6em; position: relative; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; } }

.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-2); }

.cta-band { background: var(--ink); color: #fff; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: #c7d2cc; margin: 0; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(240,169,43,.35), transparent 70%); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 36px; } }

.site-footer { padding: 48px 0 36px; color: var(--muted); font-size: .9rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(460px, 100%); padding: 32px; }
.auth-card h1 { font-size: 1.6rem; }

/* =========================================================
   APP (dashboard)
   ========================================================= */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: #cfd8d3; padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sidebar .logo { color: #fff; padding: 0 8px 22px; }
.sidebar .logo-mark::after { border-color: var(--ink); }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 9px; color: #cfd8d3; font-weight: 500; text-decoration: none; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: rgba(143, 224, 189, .14); color: #fff; }
.side-nav svg { width: 18px; height: 18px; opacity: .85; }
.side-foot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.side-foot .biz { color: #fff; font-weight: 700; }
.side-foot button { background: none; border: 0; color: #9fb0a8; padding: 0; font: inherit; cursor: pointer; margin-top: 6px; }
.side-foot button:hover { color: #fff; }

.main { padding: 28px 36px 60px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.65rem; margin: 0; }
.page-head .sub { color: var(--muted); margin-top: .25rem; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 18px 20px; }
.stat-card .label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.stat-card .value { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; margin-top: .2rem; }
.stat-card .meta { font-size: .8rem; color: var(--muted); }
.stat-card.danger .value { color: var(--danger); }
.stat-card.good .value { color: var(--brand); }
@media (max-width: 1100px) { .stats { grid-template-columns: 1fr 1fr; } }

.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding: 10px 6px 0; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 46px; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.bar.current i { background: var(--accent); }
.bar span { font-size: .78rem; color: var(--muted); }

.filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.filters a { padding: .4em .85em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: .85rem; text-decoration: none; }
.filters a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { display: flex; gap: .5rem; }
.search .input { width: 240px; }

.toolbar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }

/* Invoice form items */
.items-table td { padding: .45rem .35rem; border-bottom: 0; }
.items-table th { padding: .5rem .35rem; background: none; }
.items-table .input { padding: .55em .7em; }
.items-table .col-qty { width: 90px; }
.items-table .col-unit { width: 90px; }
.items-table .col-price { width: 170px; }
.items-table .col-amount { width: 150px; text-align: right; font-weight: 600; }
.items-table .col-del { width: 40px; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 6px; font-size: 1.1rem; line-height: 1; }
.icon-btn:hover { background: var(--danger-soft); color: var(--danger); }
.totals { margin-left: auto; width: min(360px, 100%); }
.totals .row { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; gap: 1rem; }
.totals .row.grand { border-top: 2px solid var(--ink); margin-top: .4rem; padding-top: .7rem; font-size: 1.2rem; font-weight: 800; }
.totals .input { width: 150px; text-align: right; padding: .45em .6em; }

.show-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .show-grid { grid-template-columns: 1fr; } }
.side-stack { display: grid; gap: 16px; }
.paylink { display: flex; gap: .5rem; }
.paylink .input { font-family: var(--mono); font-size: .8rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; font-size: .9rem; }
.timeline li { padding-left: 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.timeline li.done::before { background: var(--brand); }

/* Mobile app nav */
.mobile-top { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; z-index: 50; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--ink); }
  .mobile-top .logo { color: #fff; }
  .mobile-top button { background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 8px; padding: 6px 10px; font: inherit; }
  .main { padding: 20px 16px 50px; }
}

/* =========================================================
   INVOICE DOCUMENT (publik & cetak)
   ========================================================= */
.doc-wrap { padding: 36px 16px 60px; }
.doc { width: min(820px, 100%); margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.doc-head { padding: 34px 40px; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.doc-head .biz-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.doc-title { text-align: right; }
.doc-title .label { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--muted); }
.doc-title .no { font-family: var(--mono); font-size: 1.05rem; font-weight: 700; }
.doc-body { padding: 30px 40px; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 28px; }
.doc-parties .label, .doc-meta .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted); margin-bottom: .35rem; }
.doc-meta { display: flex; gap: 2.4rem; flex-wrap: wrap; margin-bottom: 26px; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .7rem .5rem; border-bottom: 2px solid var(--ink); }
.doc td { padding: .8rem .5rem; border-bottom: 1px solid #efebe3; }
.doc .totals { margin-top: 18px; }
.doc-pay { margin: 28px 40px 34px; padding: 24px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.doc-pay .amount { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.doc-paid { margin: 28px 40px 34px; padding: 22px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-2); display: flex; gap: 14px; align-items: center; font-weight: 600; }
.doc-paid .check { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.doc-foot { padding: 18px 40px 30px; color: var(--muted); font-size: .85rem; }
.stamp { display: inline-block; border: 3px solid var(--brand); color: var(--brand); font-weight: 900; letter-spacing: .15em; padding: 4px 14px; border-radius: 8px; transform: rotate(-8deg); font-size: 1.2rem; }
.powered { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 18px; }
@media (max-width: 640px) {
  .doc-head, .doc-body { padding: 24px 20px; }
  .doc-parties { grid-template-columns: 1fr; gap: 1rem; }
  .doc-title { text-align: left; }
  .doc-pay, .doc-paid { margin: 20px; }
  .doc-foot { padding: 14px 20px 24px; }
}

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .doc-wrap { padding: 0; }
  .doc { border: 0; box-shadow: none; border-radius: 0; width: 100%; }
  .doc-pay { break-inside: avoid; }
}
