/* ==========================================================================
   Intellyx CRM – stylesheet
   Same Intellyx palette as the accounting system, but a different look:
   light top bar with tabs (accounting uses a dark side bar), Plus Jakarta Sans
   + Inter fonts, rounded cards, bottom tab bar on phones.
   Plain CSS – no build step needed.
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../vendor/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../vendor/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../vendor/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(../vendor/fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 600; font-display: swap; src: url(../vendor/fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 700; font-display: swap; src: url(../vendor/fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 800; font-display: swap; src: url(../vendor/fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); }

:root {
  /* Intellyx brand palette */
  --navy: #1F4591;
  --royal: #2B6AD0;
  --sky: #68A4F1;
  --deep: #061E47;
  /* Neutrals */
  --ink: #16202E;
  --muted: #5B6676;
  --faint: #8A94A6;
  --line: #DCE4F2;
  --line-soft: #EAF0F8;
  --tint: #EEF4FC;
  --bg: #F6F8FC;
  --card: #FFFFFF;
  /* Status colors */
  --good: #1E7B4F;  --good-bg: #E3F4EA;
  --warn: #8A5300;  --warn-bg: #FDF1DC;
  --bad: #B42318;   --bad-bg: #FDE7E5;
  --info: #1F4591;  --info-bg: #E6F0FC;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(6, 30, 71, .06), 0 4px 14px rgba(6, 30, 71, .05);
  --font: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --display: "Jakarta", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--royal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); color: var(--deep); line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.topbar::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--deep), var(--royal) 45%, var(--sky)); }
.topbar-in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: 0 1rem; height: 60px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--deep); font-family: var(--display); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { color: var(--royal); font-weight: 700; }
.tabs { display: flex; gap: .15rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: .45rem .8rem; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.tabs a:hover { background: var(--tint); color: var(--deep); text-decoration: none; }
.tabs a.on { background: var(--tint); color: var(--royal); box-shadow: inset 0 0 0 1px #cfe0f8; }
.top-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--navy); }
.bell:hover { background: var(--tint); text-decoration: none; }
.bell .dot { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--royal), var(--sky)); color: #fff; font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 230px; padding: .4rem; z-index: 50; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--tint); text-decoration: none; }
.menu-panel .who { padding: .5rem .7rem .6rem; border-bottom: 1px solid var(--line-soft); margin-bottom: .3rem; }

/* ---------- Page ---------- */
.page { max-width: 1280px; margin: 0 auto; padding: 1.4rem 1rem 6rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.page-head h1 { margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.stack > * + * { margin-top: 1rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flush .card-head { padding: .9rem 1.2rem 0; }
.empty { color: var(--muted); padding: 1rem 0; text-align: center; font-size: .92rem; }

/* Hero band on Home */
.hero { background: radial-gradient(1200px 300px at 90% -40%, rgba(104,164,241,.55), transparent 60%), linear-gradient(120deg, var(--deep), var(--navy) 55%, var(--royal)); color: #fff; border-radius: 18px; padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; position: relative; overflow: hidden; }
.hero h1 { color: #fff; margin-bottom: .2rem; }
.hero p { color: #cfe0fb; margin: 0; }
.hero .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: 1.1rem; }
.hero .stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: .7rem .85rem; }
.hero .stat b { display: block; font-family: var(--display); font-size: 1.35rem; color: #fff; }
.hero .stat span { color: #cfe0fb; font-size: .82rem; }

.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); }
.tile b { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--deep); }
.tile span { color: var(--muted); font-size: .85rem; }
a.tile:hover { border-color: var(--sky); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; height: 40px; padding: 0 1rem; border-radius: 10px; border: 1px solid var(--royal); background: var(--royal); color: #fff; font: 600 .92rem var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--navy); border-color: var(--navy); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { background: var(--tint); border-color: #cfe0f8; }
.btn.good { background: var(--good); border-color: var(--good); }
.btn.danger { background: #fff; color: var(--bad); border-color: #f3c3be; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { height: 32px; padding: 0 .7rem; font-size: .85rem; border-radius: 8px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--royal); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

/* ---------- Chips (status labels) ---------- */
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--tint); color: var(--navy); white-space: nowrap; }
.chip.good, .chip.won, .chip.approved { background: var(--good-bg); color: var(--good); }
.chip.bad, .chip.loss, .chip.rejected, .chip.blocked { background: var(--bad-bg); color: var(--bad); }
.chip.warn, .chip.needed, .chip.requested, .chip.needs_approval { background: var(--warn-bg); color: var(--warn); }
.chip.pending, .chip.draft { background: #EEF0F4; color: #475164; }
.chip.quote_sent, .chip.sent, .chip.live { background: var(--info-bg); color: var(--royal); }
.chip.type { background: #F2F0FF; color: #4B3FB5; }

/* ---------- Banners ---------- */
.banner { border-radius: 12px; padding: .75rem 1rem; margin-bottom: 1rem; border: 1px solid; font-size: .93rem; }
.banner.info { background: var(--info-bg); border-color: #cddff8; color: var(--navy); }
.banner.good { background: var(--good-bg); border-color: #bfe3cd; color: var(--good); }
.banner.warn { background: var(--warn-bg); border-color: #f3d9a8; color: var(--warn); }
.banner.bad { background: var(--bad-bg); border-color: #f3c3be; color: var(--bad); }
.banner ul { margin: .3rem 0 0 1.1rem; padding: 0; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: .65rem .75rem; border-bottom: 1px solid var(--line); background: #FAFCFF; white-space: nowrap; }
.tbl td { padding: .7rem .75rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #FAFCFF; }
.tbl .title { font-weight: 600; color: var(--deep); }
.tbl tfoot td { font-weight: 700; background: #FAFCFF; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.filters input, .filters select { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 .7rem; background: #fff; font: inherit; color: var(--ink); }
.filters input[type=search] { min-width: 240px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a { padding: .35rem .75rem; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: .88rem; }
.seg a.on { background: var(--royal); color: #fff; }
.seg a:hover { text-decoration: none; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .85rem; color: var(--deep); margin-bottom: .3rem; }
.field .help { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.field .err { font-size: .82rem; color: var(--bad); margin-top: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; font: inherit; color: var(--ink); background: #fff; min-height: 40px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(43, 106, 208, .15); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--bad); }
.check { display: flex; align-items: flex-start; gap: .5rem; font-weight: 500; }
.check input[type=checkbox], .check input[type=radio] { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--royal); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }

/* ---------- Kanban ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: .9rem; overflow-x: auto; padding-bottom: .5rem; }
.col { background: #EDF2FA; border-radius: var(--radius); padding: .7rem; min-height: 200px; }
.col-head { display: flex; flex-direction: column; padding: .1rem .2rem .6rem; }
.col-head b { font-family: var(--display); color: var(--deep); font-size: .92rem; }
.col-head span { font-size: .8rem; color: var(--muted); }
.col.won { background: #E7F4EC; } .col.loss { background: #FBECEA; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; margin-bottom: .6rem; box-shadow: 0 1px 2px rgba(6,30,71,.05); }
.kcard .t { font-weight: 600; color: var(--deep); display: block; }
.kcard .a { font-size: .85rem; color: var(--muted); }
.kcard .m { display: flex; justify-content: space-between; align-items: center; margin-top: .45rem; font-size: .84rem; }
.kcard select { height: 30px; min-height: 30px; padding: 0 .4rem; font-size: .8rem; border-radius: 8px; width: 100%; color: var(--muted); }
.due { color: var(--bad); font-weight: 600; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--line-soft); }
.list li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: .35rem .75rem; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- Quote builder ---------- */
.lines td { padding: .45rem .4rem; }
.lines input, .lines select, .lines textarea { min-height: 36px; padding: .35rem .5rem; font-size: .9rem; }
.lines textarea { min-height: 36px; }
.lines .w-qty { width: 80px; } .lines .w-price { width: 130px; } .lines .w-disc { width: 120px; } .lines .w-unit { width: 90px; }
.line-flags { font-size: .75rem; color: var(--muted); margin-top: .2rem; }
.totals { width: 100%; max-width: 380px; margin-left: auto; font-size: .95rem; }
.totals td { padding: .3rem 0; }
.totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand td { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--deep); border-top: 2px solid var(--deep); padding-top: .5rem; }
.margin-box { border-radius: 12px; padding: .8rem 1rem; border: 1px dashed var(--line); background: #FAFCFF; }
.margin-box b { font-family: var(--display); font-size: 1.3rem; }
.term-row { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; margin-bottom: .5rem; background: #fff; }
.term-row.off { background: #FAFBFD; opacity: .75; }
.term-row textarea { margin-top: .4rem; }
.term-row .check { align-items: center; }
.term-row .check input[type=text] { flex: 1; }
.builder-foot { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1rem; padding: 0 1.2rem 1.2rem; align-items: start; }
@media (max-width: 820px) { .builder-foot { grid-template-columns: 1fr; } }
.sticky-bar { position: sticky; bottom: 0; background: rgba(246,248,252,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: .7rem 0; margin-top: 1rem; z-index: 20; }
.linkbox { display: flex; gap: .5rem; }
.linkbox input { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: radial-gradient(800px 400px at 0% 100%, rgba(104,164,241,.45), transparent 60%), linear-gradient(150deg, var(--deep), var(--navy) 60%, var(--royal)); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art h2 { color: #fff; font-size: 2rem; font-weight: 800; max-width: 420px; }
.auth-art p { color: #cfe0fb; max-width: 420px; }
.auth-art img { width: 210px; background: #fff; border-radius: 14px; padding: .6rem 1rem; }
.auth-form { display: grid; place-items: center; padding: 2rem 1.2rem; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { margin-bottom: .3rem; }

/* ---------- Bottom tab bar (phones) ---------- */
.bottombar { display: none; }

/* ---------- Customer quote page ---------- */
.doc { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 2rem 2.2rem; }
.doc-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--deep); padding-bottom: 1rem; margin-bottom: 1.2rem; }
.doc h1 { font-size: 1.5rem; }
.doc .tbl th { background: var(--deep); color: #fff; }
.public-bar { max-width: 900px; margin: 1rem auto; display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: 0 .2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .hero .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .hero .stat b { font-size: 1.05rem; } }
@media (max-width: 820px) {
  .tabs, .top-actions .hide-sm { display: none; }
  .topbar-in { height: 54px; }
  .page { padding: 1rem .8rem 6.5rem; }
  .form { grid-template-columns: 1fr; }
  .g2, .g3 { grid-template-columns: 1fr; }
  h1 { font-size: 1.35rem; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .kv { grid-template-columns: 1fr; gap: 0 0; }
  .kv dt { margin-top: .5rem; font-size: .8rem; }
  .filters input[type=search] { min-width: 0; flex: 1 1 100%; }
  .doc { padding: 1.2rem 1rem; border-radius: 0; border-left: 0; border-right: 0; }
  .bottombar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom)); }
  .bottombar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--muted); padding: .3rem 0; border-radius: 10px; }
  .bottombar a.on { color: var(--royal); background: var(--tint); }
  .bottombar a:hover { text-decoration: none; }
  .bottombar svg { width: 22px; height: 22px; }
  .bottombar .plus { margin-top: -22px; }
  .bottombar .plus span.circle { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--royal), var(--sky)); color: #fff; box-shadow: 0 6px 16px rgba(43,106,208,.35); border: 4px solid #fff; }
  .hide-mobile { display: none !important; }
  .tbl.stackable thead { display: none; }
  .tbl.stackable tr { display: block; border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .tbl.stackable td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .25rem .75rem; text-align: right; }
  .tbl.stackable td::before { content: attr(data-l); color: var(--muted); font-size: .8rem; text-align: left; }
  .tbl.stackable td.title { display: block; text-align: left; }
  .tbl.stackable td.title::before { content: none; }
}
@media print {
  .topbar, .bottombar, .no-print, .public-bar { display: none !important; }
  body { background: #fff; }
  .doc { border: 0; box-shadow: none; }
}

/* Menu items that copy the top tabs are only needed on phones. */
.menu-panel .hide-desktop-menu { display: none; }
@media (max-width: 820px) { .menu-panel .hide-desktop-menu { display: block; } }

/* ---------- Customer quote body (web) – the PDF has its own copy in quotes/pdf.html ---------- */
.q-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; border-bottom: 2px solid var(--deep); padding-bottom: 1rem; margin-bottom: 1rem; }
.q-title { font: 800 1.6rem var(--display); color: var(--deep); letter-spacing: .04em; }
.q-meta td { padding: 1px 12px 1px 0; font-size: .92rem; } .q-meta td:first-child { color: var(--muted); }
.q-to { max-width: 420px; font-size: .93rem; }
.q-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.q-items { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .93rem; }
.q-items th { background: var(--deep); color: #fff; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: .55rem .6rem; }
.q-items th.r, .q-items td.r { text-align: right; }
.q-items td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.q-desc { color: var(--muted); font-size: .86rem; }
.q-totals { margin-left: auto; min-width: 320px; border-collapse: collapse; }
.q-totals td { padding: .3rem .6rem; } .q-totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.q-totals .grand td { font: 800 1.1rem var(--display); color: var(--deep); border-top: 2px solid var(--deep); padding-top: .5rem; }
.q-totals .sub td { color: var(--muted); font-size: .86rem; }
.q-note { font-size: .82rem; color: var(--muted); }
.q-terms h3 { margin-top: 1.4rem; } .q-terms ol { padding-left: 1.2rem; } .q-terms li { margin-bottom: .35rem; font-size: .92rem; }
.q-sign { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2rem; font-size: .92rem; }
.q-sign > div { flex: 1 1 220px; } .q-line { border-bottom: 1px solid var(--ink); height: 40px; margin-bottom: .3rem; }
@media (max-width: 820px) { .q-items thead { display: none; } .q-items tr { display: block; border-bottom: 1px solid var(--line); padding: .4rem 0; } .q-items td { display: block; border: 0; padding: .15rem .2rem; } .q-items td.r { text-align: left; } .q-totals { min-width: 0; width: 100%; } }
