/* Airvana Quote: field tool. Warm paper, charcoal, one orange accent. Big targets for gloved, hurried thumbs. */
:root {
  --bg: #f5f1ec; --paper: #fbf9f6; --card: #ffffff; --ink: #191c21; --ink-2: #3b3f47; --muted: #737884; --line: #ebe5de; --line-2: #ddd5cb;
  --brand: #f0783d; --brand-2: #e2662a; --brand-ink: #ffffff; --brand-soft: #fff1e8; --brand-line: #f7c3a6;
  --good: #16794a; --good-soft: #e6f4ec; --warn: #a65a07; --warn-soft: #fdf2df; --bad: #b42323; --bad-soft: #fde9e7; --info: #285e8a; --info-soft: #e8f1f9;
  --r: 18px; --r-sm: 12px; --tap: 52px;
  --shadow: 0 1px 2px rgba(25, 28, 33, .04), 0 4px 14px rgba(25, 28, 33, .05);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.45 Mulish, system-ui, sans-serif; -webkit-text-size-adjust: 100%; font-feature-settings: "tnum" 1, "lnum" 1; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ico { flex: none; display: block; }
.boot { padding: 60px 16px; text-align: center; color: var(--muted); }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.mt { margin-top: 12px; }
.pad { padding: 10px 2px; }
.meta { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.opt-l { font-weight: 600; color: var(--muted); font-size: 12px; text-transform: none; letter-spacing: 0; margin-left: 4px; }

header.top { position: sticky; top: 0; z-index: 7; background: var(--ink); color: #fff; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; display: flex; align-items: center; gap: 10px; }
header.top img { width: 30px; height: 30px; border-radius: 8px; background: #fff; padding: 3px; }
header.top .brand { display: flex; flex-direction: column; line-height: 1.05; }
header.top .brand b { font-weight: 800; font-size: 16px; }
header.top .brand span { font-size: 12px; color: var(--brand); font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
header.top .sp { flex: 1; }
.me { display: flex; align-items: center; gap: 8px; background: #262a31; border: 0; border-radius: 999px; padding: 4px 12px 4px 4px; color: #e6e8eb; }
.me .av { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.me .nm { font-weight: 700; font-size: 14px; }
.me .lo { font-size: 12px; color: #9aa0aa; border-left: 1px solid #3a3f48; padding-left: 8px; }
nav.tabs { position: sticky; top: calc(env(safe-area-inset-top) + 50px); z-index: 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0; padding: 8px 16px 10px; background: var(--ink); }
nav.tabs button { border: 0; border-radius: 12px; background: #262a31; color: #aeb3bc; font-weight: 800; font-size: 15px; min-height: 46px; line-height: 1.1; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background .2s, color .2s; }
nav.tabs button small { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; opacity: .7; }
nav.tabs button.on { background: var(--brand); color: #fff; }

main { padding: 16px 16px 200px; max-width: 620px; margin: 0 auto; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .4px; color: var(--ink-2); margin: 0 0 12px; }
.eyebrow.out { margin: 22px 4px 10px; }
.num { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; flex: none; }
.num.sm { width: 22px; height: 22px; font-size: 11px; background: var(--brand); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card h3 { font-size: 17px; margin: 0; font-weight: 800; line-height: 1.25; }

.btn { min-height: var(--tap); border: 0; border-radius: 14px; padding: 0 18px; font-weight: 800; font-size: 16px; background: var(--brand); color: var(--brand-ink); width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .08s, background .2s, opacity .2s; }
.btn:active { transform: scale(.985); }
.btn.big { min-height: 56px; font-size: 17px; box-shadow: 0 6px 16px rgba(240, 120, 61, .28); }
.btn.add { background: var(--ink); color: #fff; min-height: 58px; font-size: 17px; border-radius: var(--r); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: none; }
.btn.sm { min-height: 42px; width: auto; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn:disabled { opacity: .4; box-shadow: none; }
.link { background: none; border: 0; color: var(--brand-2); font-weight: 800; padding: 8px 2px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.link.danger { color: var(--muted); }
.link.center { display: flex; margin: 8px auto 0; color: var(--muted); }
.x { background: none; border: 0; color: var(--muted); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; flex: none; }

label.f { display: block; font-size: 13px; font-weight: 800; color: var(--ink-2); margin: 14px 0 6px; }
label.f:first-child { margin-top: 0; }
input.i, select.i, textarea.i { width: 100%; min-height: var(--tap); border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 0 14px; background: var(--paper); color: var(--ink); font-size: 16px; transition: border-color .15s, background .15s; }
textarea.i { padding: 12px 14px; min-height: 84px; resize: vertical; }
select.i { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; text-overflow: ellipsis; }
input.i:focus, select.i:focus, textarea.i:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
input.i::placeholder, textarea.i::placeholder { color: #a7abb3; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two label.f { margin-top: 0; }

.switch { display: flex; align-items: center; gap: 12px; font-weight: 700; cursor: pointer; min-height: 44px; position: relative; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .sw { width: 50px; height: 30px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .2s; order: 2; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .sw { background: var(--brand); }
.switch input:checked + .sw::after { transform: translateX(20px); }
.switch input:focus-visible + .sw { box-shadow: 0 0 0 4px var(--brand-soft); }
.switch .grow { order: 1; }

.cust.picked { display: flex; align-items: center; gap: 12px; border-color: var(--brand-line); background: linear-gradient(180deg, #fff, var(--brand-soft)); }
.cust.picked .eyebrow { margin: 0 0 2px; color: var(--brand-2); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; }
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.av.big { width: 46px; height: 46px; background: var(--brand); }
.searchbox { position: relative; }
.searchbox .ico { position: absolute; left: 14px; top: 16px; color: var(--muted); }
.searchbox input.i { padding-left: 44px; }
.results { margin-top: 6px; }
.result { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 12px 2px; }
.result:first-child { border-top: 0; }
.result b { display: block; font-weight: 800; }
.result .muted { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result:active { background: var(--paper); }

.sys { padding: 0; overflow: hidden; }
.sys-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.tile { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.sys-tot { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sys-tot b { font-size: 17px; }
.mchip { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.mchip.good { background: var(--good-soft); color: var(--good); } .mchip.warn { background: var(--warn-soft); color: var(--warn); } .mchip.bad { background: var(--bad-soft); color: var(--bad); }
.tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.lines { padding: 2px 16px; }
.line { padding: 12px 0; border-top: 1px solid var(--line); }
.lines > .line:first-child { border-top: 0; }
.line .l1 { display: flex; gap: 12px; align-items: baseline; }
.line .nm { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; line-height: 1.3; }
.line .amt { font-weight: 800; white-space: nowrap; font-size: 15px; }
.line .l2 { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.line .l2 .meta { font-size: 12.5px; line-height: 1.3; }
.vatb { height: 36px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; font-size: 12.5px; font-weight: 800; color: var(--muted); padding: 0 9px; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.vatb .ico { width: 14px; height: 14px; }
.vatb.on { background: var(--good-soft); border-color: #b9dfc9; color: var(--good); }
.priceb { height: 36px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; font-size: 12.5px; font-weight: 800; color: var(--ink, inherit); padding: 0 9px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; margin-left: auto; }
.priceb .ico { width: 13px; height: 13px; color: var(--muted); }
.priceb s { color: var(--muted); font-weight: 600; margin-left: 2px; }
.priceb.on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-2); }
.priceb.on .ico { color: var(--brand-2); }
.line .l2 { flex-wrap: wrap; }
@media (max-width: 560px) { .line .l2 .meta { flex: 1 1 100%; } .line .l2 .meta:empty { display: none; } }
.metres.money input.i { width: 140px; text-align: left; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 11px; overflow: hidden; background: #fff; }
.stepper button { width: 38px; height: 36px; border: 0; background: none; font-size: 20px; font-weight: 700; display: grid; place-items: center; color: var(--ink); }
.stepper button:active { background: var(--paper); }
.stepper .tr { color: var(--muted); display: grid; }
.stepper > span { min-width: 26px; text-align: center; font-weight: 800; }
.pipes { border-top: 1px solid var(--line); }
.pipes summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; font-weight: 800; font-size: 15px; }
.pipes summary::-webkit-details-marker { display: none; }
.pipes summary .ico { color: var(--muted); }
.pipes[open] summary { color: var(--brand-2); }
.pipes .line { padding-left: 28px; }
.pipes > .line:first-of-type { border-top: 1px dashed var(--line); }
.sys-acts { display: flex; justify-content: space-between; padding: 4px 12px 8px; border-top: 1px solid var(--line); }

.wiz { scroll-margin-top: 130px; border: 2px solid var(--ink); padding: 0; overflow: hidden; animation: rise .25s ease-out; }
.wiz-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--ink); color: #fff; }
.wiz-h .link { color: #c9cdd3; }
.wiz > .btn { margin: 0 16px 16px; width: calc(100% - 32px); }
.srow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
.srow .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; flex: none; }
.srow .slbl { display: block; font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .8px; text-transform: uppercase; }
.srow b { font-weight: 800; font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; }
.srow .chg { color: var(--brand-2); font-weight: 800; font-size: 14px; }
.sopen { padding: 16px; border-bottom: 1px solid var(--line); animation: rise .22s ease-out; }
.sopen .q { font-size: 19px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.2px; }
.sub-q { font-size: 13px; font-weight: 800; color: var(--ink-2); margin: 16px 0 8px; }
.sopen .sub-q:first-of-type { margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.grid, .chips.yn { display: grid; grid-template-columns: 1fr 1fr; }
.chip { min-height: 52px; padding: 8px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 800; font-size: 15px; text-align: left; display: inline-flex; align-items: center; gap: 10px; transition: border-color .15s, background .15s; }
.chip small { display: block; font-weight: 700; color: var(--muted); font-size: 12.5px; }
.chip.withico { flex-direction: column; align-items: flex-start; justify-content: center; min-height: 86px; padding: 12px 14px; }
.chip.withico .ico { color: var(--ink-2); }
.chip.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.chip.on .ico { color: var(--brand-2); }
.chips.yn .chip { justify-content: center; }
.opts { display: grid; gap: 8px; }
.optcard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; min-height: 60px; }
.optcard b { display: block; font-weight: 800; font-size: 15px; line-height: 1.3; }
.optcard .price { font-weight: 800; white-space: nowrap; }
.optcard .tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: #fff; }
.optcard.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.optcard.on .tick { background: var(--brand); border-color: var(--brand); }
.room { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-top: 10px; display: grid; gap: 8px; }
.room-h { display: flex; align-items: center; gap: 8px; }
.room-h input.i { min-height: 46px; background: #fff; }
.room select.i { background-color: #fff; }
.metres { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 14px; }
.room .metres span:first-child { flex: 1; }
.metres input.i { width: 92px; text-align: center; min-height: 46px; background: #fff; font-weight: 800; }
.cap { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cap-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 6px; }
.cap-bar i { display: block; height: 100%; background: var(--good); border-radius: 999px; transition: width .3s; }
.cap-bar i.over { background: var(--warn); }
.extras .xrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.extras .q + .xrow { border-top: 0; padding-top: 0; }
.extras .xrow b { font-weight: 800; }
.sysum { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-top: 18px; padding: 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.sysum > div { display: flex; flex-direction: column; }
.sysum span { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.sysum b { font-size: 17px; }
.sysum small { font-size: 12px; font-weight: 700; color: var(--muted); }
.sysum.good > div:last-child b { color: var(--good); } .sysum.warn > div:last-child b { color: var(--warn); } .sysum.bad > div:last-child b { color: var(--bad); }
.note { border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin: 12px 16px; }
.sopen .note { margin: 12px 0 0; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.good { background: var(--good-soft); color: var(--good); }
.note.info { background: var(--info-soft); color: var(--info); }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--ink); color: #fff; padding: 12px 16px calc(env(safe-area-inset-bottom) + 12px); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 28px rgba(25, 28, 33, .22); }
.bar .in { max-width: 620px; margin: 0 auto; }
.bar.empty { text-align: center; color: #9aa0aa; font-weight: 700; font-size: 14px; padding-top: 16px; padding-bottom: calc(env(safe-area-inset-bottom) + 16px); }
.bd summary { list-style: none; cursor: pointer; }
.bd summary::-webkit-details-marker { display: none; }
.nums { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bar .tot { font-size: 27px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.bar .sub { font-size: 13px; color: #9aa0aa; font-weight: 600; }
.marg { display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: 18px; padding: 6px 12px; border-radius: 14px; line-height: 1.05; }
.marg small { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; opacity: .8; }
.marg.good { background: #173d2b; color: #a7f0c6; } .marg.warn { background: #4a3313; color: #fcd58b; } .marg.bad { background: #4d1d1d; color: #fdb4b4; }
.bkd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; padding: 10px 0 12px; border-top: 1px solid #2d3139; margin-bottom: 10px; }
.bkd > div { display: flex; flex-direction: column; }
.bkd span { font-size: 11px; color: #8d939d; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.bkd b { font-size: 15px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #ebe5de; border-radius: 14px; margin-bottom: 14px; }
.seg button { border: 0; background: none; min-height: 44px; border-radius: 11px; font-weight: 800; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.doc .row { display: flex; gap: 12px; align-items: flex-start; }
.doc .rt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.doc .rt b { font-size: 17px; }
.pill { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.pill.paid, .pill.accepted { background: var(--good-soft); color: var(--good); }
.pill.sent, .pill.viewed { background: var(--info-soft); color: var(--info); }
.pill.overdue, .pill.declined { background: var(--bad-soft); color: var(--bad); }
.pill.partially_paid { background: var(--warn-soft); color: var(--warn); }
.empty { text-align: center; color: var(--muted); padding: 36px 8px; font-weight: 700; }

dialog { border: 0; border-radius: 22px; padding: 0; width: min(94vw, 460px); max-height: 90vh; box-shadow: 0 20px 60px rgba(0,0,0,.3); color: var(--ink); }
dialog::backdrop { background: rgba(20, 22, 27, .55); backdrop-filter: blur(2px); }
dialog[open] { animation: rise .2s ease-out; }
dialog .dh { padding: 20px 20px 0; font-weight: 800; font-size: 20px; }
dialog .db { padding: 10px 20px 16px; overflow: auto; }
dialog .df { padding: 0 20px 20px; display: grid; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 700; min-height: 48px; }
.opt input { width: 22px; height: 22px; accent-color: var(--brand); }
dialog .switch { border-top: 1px solid var(--line); padding-top: 8px; }

#toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 12px); transform: translateX(-50%) translateY(-150%); transition: transform .3s cubic-bezier(.2,.9,.3,1.2); background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 14px; z-index: 30; max-width: calc(100vw - 32px); font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--bad); }

.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(120% 70% at 50% 0%, #2a2f37 0%, var(--ink) 60%); }
.login .box { width: 100%; max-width: 340px; text-align: center; color: #fff; }
.login img { width: 72px; height: 72px; border-radius: 18px; background: #fff; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.login h1 { font-size: 26px; margin: 16px 0 4px; font-weight: 800; }
.login p { color: #a5abb4; margin: 0 0 24px; }
.login input.pin { text-align: center; letter-spacing: 10px; font-size: 26px; font-weight: 800; min-height: 60px; background: #fff; color: var(--ink); caret-color: var(--brand); border: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 560px) { .chips.grid { grid-template-columns: repeat(3, 1fr); } }

/* customer preview: right column on wide screens, a dialog from the bar on phones */
.wrap main { padding-bottom: 8px; }
.pv-side { padding: 14px 16px 200px; max-width: 620px; margin: 0 auto; scroll-margin-top: 124px; }
.pv-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--ink-2); margin: 0 4px 10px; }
.pv-live { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--good); background: var(--good-soft); padding: 2px 8px; border-radius: 999px; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.paper small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.paper b { color: var(--ink); }
.paper .ph { color: #b3b7bf; font-style: italic; }
.paper .pad { padding: 18px 0; text-align: center; }
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.pv-top img { width: auto; height: 44px; max-width: 150px; object-fit: contain; }
.pv-kind { text-align: right; display: flex; flex-direction: column; }
.pv-kind b { font-size: 20px; letter-spacing: 2px; }
.pv-kind span { font-size: 12px; color: var(--muted); }
.pv-parties, .pv-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.pv-dates em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); }
.pv-title { margin: 16px 0 6px; font-size: 16px; font-weight: 800; color: var(--ink); }
.pv-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pv-row b { display: block; font-size: 13px; line-height: 1.3; }
.pv-row span { display: block; font-size: 12px; color: var(--muted); }
.pv-row .amt { font-weight: 800; color: var(--ink); white-space: nowrap; }
.pv-tot { margin-left: auto; max-width: 260px; padding-top: 10px; }
.pv-tot div { display: flex; justify-content: space-between; padding: 4px 0; }
.pv-tot div.big { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; font-size: 17px; }
.pv-tot div.big span { font-weight: 800; color: var(--ink); }
.pv-notes { margin-top: 16px; padding: 12px 14px; background: var(--paper); border-radius: 10px; white-space: normal; }
.bar .acts { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.btn.pvbtn { width: auto; min-height: 56px; background: #262a31; color: #e6e8eb; font-size: 15px; padding: 0 16px; box-shadow: none; }
dialog.wide { width: min(96vw, 520px); }
dialog.wide .db { background: var(--bg); padding: 12px; max-height: calc(90vh - 130px); }
dialog.wide .paper { padding: 18px 16px; }
@media (min-width: 1080px) {
  .wrap { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 460px); gap: 28px; justify-content: center; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
  .wrap main { padding: 16px 0 200px; margin: 0; max-width: none; }
  .pv-side { position: sticky; top: 132px; align-self: start; max-height: calc(100vh - 132px - 140px); overflow: auto; margin: 16px 0 0; padding: 0 0 12px; max-width: none; }
  .bar .in { max-width: 1108px; padding-right: 488px; }
  .bar .acts { grid-template-columns: 1fr; }
  .btn.pvbtn { display: none; }
}
#dlg .note { margin: 12px 0 0; }
@media (max-width: 420px) { .priceb s { display: none; } }
