/* Filezy GST Billing — interface.
 *
 * Two layouts live in this file: the app on screen, and the invoice on paper.
 * The paper one starts at the @media print block near the bottom and is the
 * part that must not be broken casually — it is the legal document.
 */

:root {
  --ink: #16202e;
  --ink-2: #4a5768;
  --ink-3: #78869a;
  --line: #e2e7ee;
  --line-2: #eef1f6;
  --bg: #f5f7fa;
  --card: #ffffff;
  --navy: #0f172a;
  --navy-2: #1b2639;
  --accent: #1559d6;
  --accent-ink: #0d47b0;
  --good: #0a7c4a;
  --good-bg: #e7f7ef;
  --warn: #9a5b00;
  --warn-bg: #fff6e6;
  --bad: #b42318;
  --bad-bg: #fdeceb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

h1 { font-size: 22px; margin: 0 0 16px; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 4px; letter-spacing: -.005em; }
a { color: var(--accent); }

/* Tabular figures everywhere money appears, so columns of rupees line up. */
.num, .lines input, .totals, .list .num, .money, kbd {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ------------------------------------------------------------------ bar -- */

.appbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 14px;
  background: var(--navy); color: #fff;
}
.appbar .brand { color: #fff; text-decoration: none; font-size: 16px; }
.appbar .brand strong { font-weight: 700; }
.appbar .brand span { color: #9fb0ca; font-weight: 500; }
.appbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.shop-name {
  color: #cfdaeb; font-size: 13px; max-width: 34vw;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sync-chip {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: #22304a; color: #a8bcd8; white-space: nowrap;
}
.sync-chip.on { background: var(--good-bg); color: var(--good); }
.menu-btn {
  display: none; background: none; border: 0; color: #fff;
  font-size: 20px; line-height: 1; padding: 6px 8px; cursor: pointer; border-radius: 6px;
}
.menu-btn:focus-visible { outline: 2px solid #7aa7ff; }

/* ---------------------------------------------------------------- shell -- */

.shell { display: flex; align-items: flex-start; }

.side {
  position: sticky; top: 52px;
  width: 214px; flex: 0 0 214px;
  height: calc(100vh - 52px);
  background: var(--navy-2);
  padding: 10px 8px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.side a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; margin-bottom: 1px;
  color: #c3d1e5; text-decoration: none;
  border-radius: 7px; font-size: 14px;
}
.side a:hover { background: #25324a; color: #fff; }
.side a.active { background: var(--accent); color: #fff; font-weight: 600; }
.side a .ico { opacity: .75; width: 16px; text-align: center; }
.side a kbd { margin-left: auto; }
.side-foot { margin-top: auto; padding: 14px 10px 4px; }
.side-foot p { font-size: 11px; line-height: 1.5; color: #7d8ca5; margin: 0 0 8px; }
.side-foot .credit a { color: #9fb0ca; }

kbd {
  font: inherit; font-size: 10px;
  background: rgba(255,255,255,.12); color: inherit;
  border-radius: 4px; padding: 1px 5px;
}
.btn kbd { background: rgba(255,255,255,.22); }
.btn.ghost kbd, .btn:not(.primary) kbd { background: #e8ecf3; color: var(--ink-3); }

main { flex: 1 1 auto; min-width: 0; padding: 18px 20px 120px; }

.view { display: none; }
.view.active { display: block; }
.view-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.view-head h1 { margin: 0; }
.view-head .btn { margin-left: auto; }

/* ---------------------------------------------------------------- cards -- */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 14px;
}
.card.tight { padding: 0; overflow: hidden; }
.card.narrow { max-width: 620px; margin-inline: auto; }
.card > h2 + .hint { margin-top: 0; }

.lead { color: var(--ink-2); margin: 0 0 18px; }
.hint { color: var(--ink-3); font-size: 13px; margin: 2px 0 14px; }
.fine { color: var(--ink-3); font-size: 12px; margin: 10px 0 0; line-height: 1.5; }
.empty { color: var(--ink-3); text-align: center; padding: 30px 16px; margin: 0; font-size: 14px; }

/* ---------------------------------------------------------------- forms -- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.span2 { grid-column: 1 / -1; }

.fld { display: block; }
.fld > span {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 5px;
}
.fld > span i { color: var(--bad); font-style: normal; }
.fld > span em { font-weight: 400; color: var(--ink-3); font-style: normal; }
.fld input, .fld select, .fld textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 8px 10px; border: 1px solid #ccd4e0; border-radius: 8px;
  background: #fff;
}
.fld textarea { resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 89, 214, .14);
}
.fld input[aria-invalid="true"] { border-color: var(--bad); }
.fld-note { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.45; font-style: normal; }
.fld-note.ok { color: var(--good); }
.fld-note.err { color: var(--bad); }
.fld.inline { display: flex; align-items: center; gap: 8px; }
.fld.inline > span { margin: 0; white-space: nowrap; }
.fld.inline input, .fld.inline select { width: auto; min-width: 118px; }
.check-fld { border-top: 1px solid var(--line-2); padding-top: 10px; }

.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { margin: 2px 0 0; flex: 0 0 auto; width: auto; }

.filters { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filters .btn { margin-left: auto; }

.row-actions { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.row-actions.wrap { flex-wrap: wrap; }

/* -------------------------------------------------------------- buttons -- */

.btn {
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 9px 15px; border-radius: 8px;
  border: 1px solid #ccd4e0; background: #fff; color: var(--ink);
  cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn:hover { background: #f7f9fc; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.ghost { border-color: transparent; background: #eef2f8; color: var(--accent-ink); }
.btn.ghost:hover { background: #e3eaf6; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.small { font-size: 13px; padding: 6px 11px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 2px 4px; }
.btn-link.danger-text { color: var(--bad); }

.danger-zone { border-color: #f3c9c5; }
.danger-zone h2 { color: var(--bad); }

/* --------------------------------------------------------------- tables -- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.list, table.lines { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th, table.lines th {
  text-align: left; font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-3);
  padding: 9px 10px; background: #fafbfd;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.list td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.list tbody tr:hover { background: #fafbfd; }
th.num, td.num { text-align: right; }
table.list tfoot td { font-weight: 700; border-top: 2px solid var(--line); background: #fafbfd; }

.pill {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.pill.paid { background: var(--good-bg); color: var(--good); }
.pill.partial { background: var(--warn-bg); color: var(--warn); }
.pill.unpaid { background: #eef2f8; color: var(--ink-2); }
.pill.cancelled { background: var(--bad-bg); color: var(--bad); text-decoration: line-through; }
.pill.inter { background: #ece9fb; color: #5b3fd6; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; }

/* ------------------------------------------------------------ bill lines -- */

.bill-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.bill-head h1 { margin: 0; }
.bill-meta { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; }

.party { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 18px; }
.party-pick { position: relative; }
.party-pick .btn { margin-top: 8px; }

.suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16,24,40,.14);
  max-height: 260px; overflow-y: auto; margin-top: 3px;
}
.suggest div {
  padding: 8px 11px; cursor: pointer; font-size: 13.5px;
  border-bottom: 1px solid var(--line-2);
}
.suggest div:last-child { border-bottom: 0; }
.suggest div:hover, .suggest div.sel { background: #eef4ff; }
.suggest div small { display: block; color: var(--ink-3); font-size: 11.5px; }
.suggest .new-row { color: var(--accent); font-weight: 600; }

table.lines td { padding: 4px 5px; border-bottom: 1px solid var(--line-2); }
table.lines input, table.lines select {
  width: 100%; font: inherit; font-size: 13.5px;
  border: 1px solid transparent; background: transparent;
  padding: 6px 7px; border-radius: 6px; color: var(--ink);
}
table.lines input:hover, table.lines select:hover { border-color: #dfe5ee; background: #fff; }
table.lines input:focus, table.lines select:focus {
  outline: 0; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 2px rgba(21,89,214,.13);
}
table.lines .c-no { width: 30px; color: var(--ink-3); text-align: center; font-size: 12px; }
table.lines .c-desc { min-width: 180px; }
table.lines .c-hsn { width: 86px; }
table.lines .c-qty { width: 74px; }
table.lines .c-uqc { width: 84px; }
table.lines .c-rate { width: 96px; }
table.lines .c-disc { width: 84px; }
table.lines .c-gst { width: 84px; }
table.lines .c-amt, table.lines .c-tax, table.lines .c-tot { width: 100px; text-align: right; padding-right: 10px; }
table.lines .c-del { width: 34px; }
table.lines td.c-amt, table.lines td.c-tax, table.lines td.c-tot { color: var(--ink-2); font-size: 13px; }
table.lines td.c-tot { font-weight: 600; color: var(--ink); }
table.lines input.qty, table.lines input.rate, table.lines input.disc { text-align: right; }
.line-row { position: relative; }
.line-row .suggest { left: 36px; right: auto; width: min(360px, 60vw); }
.del-line {
  background: none; border: 0; color: var(--ink-3); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 4px 6px; border-radius: 6px;
}
.del-line:hover { color: var(--bad); background: var(--bad-bg); }

.lines-foot {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 12px; border-top: 1px solid var(--line); background: #fafbfd;
}
.lines-foot .check { margin-left: auto; }

/* --------------------------------------------------------------- totals -- */

.bill-bottom { display: grid; grid-template-columns: 1fr minmax(280px, 360px); gap: 14px; align-items: start; }
.notes .check { margin-top: 12px; }

.totals { padding: 14px 16px; }
.totals .tr { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13.5px; }
.totals .tr span { color: var(--ink-2); }
.totals .tr b { font-weight: 600; }
.totals .tr.sub { border-top: 1px solid var(--line-2); margin-top: 5px; padding-top: 9px; }
.totals .tr.grand {
  border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 10px;
  font-size: 17px;
}
.totals .tr.grand b { font-weight: 700; }
.totals .words { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; line-height: 1.5; }
.totals .supply-tag { margin-bottom: 10px; }

.compliance { margin-top: 14px; display: grid; gap: 7px; }
.cmsg { font-size: 12.5px; line-height: 1.5; padding: 8px 11px; border-radius: 7px; }
.cmsg.block { background: var(--bad-bg); color: #7a1c15; border: 1px solid #f5cdc9; }
.cmsg.warn { background: var(--warn-bg); color: #6b4300; border: 1px solid #f6dfb4; }

/* -------------------------------------------------------- sticky footer -- */

.sticky-actions {
  position: fixed; left: 214px; right: 0; bottom: 0; z-index: 35;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.sticky-sum { display: flex; align-items: baseline; gap: 10px; }
.sticky-sum .lbl { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.sticky-sum strong { font-size: 22px; }
.sticky-btns { margin-left: auto; display: flex; gap: 10px; }
#view-bill:not(.active) ~ * .sticky-actions { display: none; }

/* ----------------------------------------------------------- stat tiles -- */

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 13px 15px;
}
.stat .k { font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-size: 21px; font-weight: 700; margin-top: 3px; letter-spacing: -.01em; }
.stat .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.stat.bad .v { color: var(--bad); }
.stat.good .v { color: var(--good); }

.recon { margin-bottom: 12px; display: grid; gap: 7px; }
.recon .ok, .recon .no {
  font-size: 13px; padding: 9px 12px; border-radius: 7px; line-height: 1.5;
}
.recon .ok { background: var(--good-bg); color: #075c36; border: 1px solid #bfe7d3; }
.recon .no { background: var(--bad-bg); color: #7a1c15; border: 1px solid #f5cdc9; }

/* --------------------------------------------------------------- modals -- */

/* `display` must default to none here. The dialog is hidden with the HTML
 * `hidden` attribute, and any `display` value in this rule beats it — which
 * leaves a full-screen transparent overlay sitting on top of the app,
 * swallowing every click. Keep the :not([hidden]) form. */
.modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(16,24,40,.5);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal:not([hidden]) { display: flex; }
/* Same trap, same fix, for anything else hidden by attribute. */
[hidden] { display: none !important; }
.modal-box {
  background: #fff; border-radius: 12px; width: min(640px, 100%);
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(16,24,40,.3);
}
.modal-box > header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.modal-box > header h2 { margin: 0; font-size: 17px; }
.modal-box > header .x {
  margin-left: auto; background: none; border: 0; font-size: 24px;
  line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 4px;
}
.modal-body { padding: 18px; overflow-y: auto; }
.modal-box > footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 13px 18px; border-top: 1px solid var(--line); background: #fafbfd;
  border-radius: 0 0 12px 12px;
}

.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  z-index: 70; max-width: min(520px, 92vw);
  background: var(--navy); color: #fff; font-size: 13.5px; line-height: 1.5;
  padding: 11px 16px; border-radius: 9px;
  box-shadow: 0 10px 30px rgba(16,24,40,.25);
}
.toast.bad { background: var(--bad); }
.toast.good { background: var(--good); }

.inv-view dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 0 0 16px; font-size: 13.5px; }
.inv-view dt { color: var(--ink-3); }
.inv-view dd { margin: 0; }

/* -------------------------------------------------------------- mobile -- */

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .side {
    position: fixed; top: 52px; left: 0; bottom: 0; z-index: 45;
    transform: translateX(-100%); transition: transform .18s ease;
    box-shadow: 4px 0 24px rgba(16,24,40,.2);
  }
  .side.open { transform: none; }
  main { padding: 14px 16px 150px; }
  .sticky-actions { left: 0; flex-wrap: wrap; gap: 10px 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .party { grid-template-columns: 1fr; }
  .bill-bottom { grid-template-columns: 1fr; }
  .bill-meta { margin-left: 0; width: 100%; }
  .side a kbd { display: none; }
  .filters .btn { margin-left: 0; }
}

@media (max-width: 560px) {
  .sticky-sum strong { font-size: 19px; }
  .sticky-btns { width: 100%; }
  .sticky-btns .btn { flex: 1 1 auto; justify-content: center; }
  .btn kbd { display: none; }
  h1 { font-size: 20px; }
}

/* ============================================================== PRINTING ==
 *
 * The invoice is printed from a window of its own, with the rules below
 * inlined into it (see buildPrintDocument in app.js). Printing that way
 * rather than from a hidden div in this page means the app's own layout can
 * never bleed onto the document, and A4 and 80 mm can each set their own
 * @page size — which a single stylesheet cannot do.
 *
 * The invoice is a legal document: every Rule 46 particular has a place here
 * and the tax columns are kept separate. Change it carefully.
 */

.print-root { display: none; }

/* Should anyone print the app itself, give them the screen without furniture
 * rather than a broken page. */
@media print {
  html, body { background: #fff; }
  .appbar, .side, .sticky-actions, .modal, .toast { display: none !important; }
  .card { box-shadow: none; break-inside: avoid; }
  main { padding: 0; }
}

.inv-sheet {
  font: 11px/1.45 "Helvetica Neue", Arial, sans-serif;
  color: #000; width: 190mm; margin: 0 auto;
}
.inv-sheet * { box-sizing: border-box; }
.inv-sheet .frame { border: 1px solid #000; }
.inv-sheet .tt {
  text-align: center; font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px; border-bottom: 1px solid #000;
}
.inv-sheet .sup { display: flex; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #000; }
.inv-sheet .sup img { max-height: 52px; max-width: 120px; object-fit: contain; }
.inv-sheet .sup .who { flex: 1; }
.inv-sheet .sup .who h2 { font-size: 16px; margin: 0 0 2px; }
.inv-sheet .sup .who p { margin: 0; font-size: 10.5px; line-height: 1.4; }
.inv-sheet .sup .who .gst { font-weight: 700; margin-top: 3px; }

.inv-sheet .meta { display: flex; border-bottom: 1px solid #000; }
.inv-sheet .meta > div { flex: 1; padding: 6px 10px; }
.inv-sheet .meta > div + div { border-left: 1px solid #000; }
.inv-sheet .meta b { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: #333; }

.inv-sheet .parties { display: flex; border-bottom: 1px solid #000; }
.inv-sheet .parties > div { flex: 1; padding: 7px 10px; min-height: 76px; }
.inv-sheet .parties > div + div { border-left: 1px solid #000; }
.inv-sheet .parties h3 { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px; color: #333; }
.inv-sheet .parties p { margin: 0; font-size: 10.5px; line-height: 1.45; }

.inv-sheet table { width: 100%; border-collapse: collapse; }
.inv-sheet table th, .inv-sheet table td {
  border: 1px solid #000; padding: 4px 5px; font-size: 10px; vertical-align: top;
}
.inv-sheet table th { background: #f0f0f0; font-size: 9px; text-transform: uppercase; letter-spacing: .03em; }
.inv-sheet table td.n { text-align: right; font-variant-numeric: tabular-nums; }
.inv-sheet table td.c { text-align: center; }
.inv-sheet .items { border-top: 0; }
.inv-sheet .items th:first-child, .inv-sheet .items td:first-child { width: 22px; text-align: center; }

.inv-sheet .foot { display: flex; }
.inv-sheet .foot .left { flex: 1.35; border-right: 1px solid #000; }
.inv-sheet .foot .right { flex: 1; }
.inv-sheet .words {
  padding: 6px 10px; border-bottom: 1px solid #000; font-size: 10.5px;
}
.inv-sheet .words b { font-size: 9px; display: block; text-transform: uppercase; letter-spacing: .05em; color: #333; }
.inv-sheet .bank { padding: 6px 10px; font-size: 10px; line-height: 1.5; border-bottom: 1px solid #000; }
.inv-sheet .terms { padding: 6px 10px; font-size: 9.5px; line-height: 1.45; white-space: pre-line; }
.inv-sheet .sums { width: 100%; }
.inv-sheet .sums tr td { border: 0; border-bottom: 1px solid #ddd; padding: 4px 10px; font-size: 10.5px; }
.inv-sheet .sums tr.g td { border-top: 1px solid #000; border-bottom: 1px solid #000; font-weight: 700; font-size: 12px; background: #f0f0f0; }
.inv-sheet .sign { padding: 8px 10px; text-align: right; height: 68px; display: flex; flex-direction: column; justify-content: flex-end; }
.inv-sheet .sign .for { font-size: 10px; font-weight: 700; }
.inv-sheet .sign .line { font-size: 9px; color: #333; margin-top: 30px; }

.inv-sheet .decl {
  padding: 5px 10px; border-top: 1px solid #000;
  font-size: 9.5px; font-style: italic;
}
.inv-sheet .rcm { font-weight: 700; }
.inv-sheet .tailer {
  margin-top: 5px; text-align: center; font-size: 8.5px; color: #555;
}
.inv-sheet .tailer a { color: #555; text-decoration: none; }

/* --- 80 mm thermal receipt ------------------------------------------- */

.rcpt {
  width: 72mm; margin: 0 auto; color: #000;
  font: 11px/1.4 ui-monospace, "Courier New", monospace;
}
.rcpt h2 { font-size: 13px; text-align: center; margin: 0 0 2px; }
.rcpt .c { text-align: center; }
.rcpt .hr { border-top: 1px dashed #000; margin: 5px 0; }
.rcpt table { width: 100%; border-collapse: collapse; }
.rcpt td { padding: 1px 0; font-size: 10.5px; vertical-align: top; }
.rcpt td.n { text-align: right; font-variant-numeric: tabular-nums; }
.rcpt .tot td { font-weight: 700; font-size: 12px; padding-top: 3px; }
.rcpt .small { font-size: 9px; line-height: 1.4; }

/* ------------------------------------------------------- prose on setup -- */
/* The explanatory block under the setup form. It is the only substantial
 * text a search engine sees on this page, so it is real markup in the HTML
 * rather than something the script writes. */

.prose { margin-top: 18px; }
.prose h2 { font-size: 18px; margin: 0 0 10px; }
.prose h3 { font-size: 14px; margin: 20px 0 6px; color: var(--ink); }
.prose p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.prose ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.prose li { margin-bottom: 7px; }
.prose li b { color: var(--ink); }

/* ------------------------------------------------------ list pagination -- */
/* Long lists are drawn a page at a time; this is the bar that says so. */

.list-more {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px; border-top: 1px solid var(--line); background: #fafbfd;
}
.list-count { font-size: 12.5px; color: var(--ink-3); margin-right: auto; }
@media (max-width: 560px) {
  .list-count { margin-right: 0; width: 100%; }
}
