/* TripSplit – Styles */
:root {
  color-scheme: light;
  --bg: #f4f2ed;
  --surface: #ffffff;
  --surface-2: #efece5;
  --surface-3: #e6e2d9;
  --ink: #15171b;
  --ink-2: #545861;
  --muted: #858a93;
  --line: rgba(21, 23, 27, .09);
  --accent: #dc4a28;
  --accent-ink: #ffffff;
  --accent-soft: rgba(220, 74, 40, .11);
  --pos: #0f7a55;
  --neg: #c2352b;
  --pos-soft: rgba(15, 122, 85, .12);
  --neg-soft: rgba(194, 53, 43, .11);
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --hero-a: #0d3a4c;
  --hero-b: #137a80;
  --shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 6px 24px rgba(20, 20, 20, .06);
  --shadow-lg: 0 20px 60px rgba(10, 15, 25, .22);
  --r: 18px;
  --r-sm: 12px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c1015;
    --surface: #151a21;
    --surface-2: #1d232c;
    --surface-3: #262d38;
    --ink: #edf0f4;
    --ink-2: #aab2bd;
    --muted: #7d8692;
    --line: rgba(255, 255, 255, .08);
    --accent: #ff7148;
    --accent-ink: #1a0c06;
    --accent-soft: rgba(255, 113, 72, .14);
    --pos: #3cc896;
    --neg: #ff7a6e;
    --pos-soft: rgba(60, 200, 150, .14);
    --neg-soft: rgba(255, 122, 110, .13);
    --series-1: #3987e5;
    --series-2: #d95926;
    --hero-a: #0f3446;
    --hero-b: #0e5d63;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1015;
  --surface: #151a21;
  --surface-2: #1d232c;
  --surface-3: #262d38;
  --ink: #edf0f4;
  --ink-2: #aab2bd;
  --muted: #7d8692;
  --line: rgba(255, 255, 255, .08);
  --accent: #ff7148;
  --accent-ink: #1a0c06;
  --accent-soft: rgba(255, 113, 72, .14);
  --pos: #3cc896;
  --neg: #ff7a6e;
  --pos-soft: rgba(60, 200, 150, .14);
  --neg-soft: rgba(255, 122, 110, .13);
  --series-1: #3987e5;
  --series-2: #d95926;
  --hero-a: #0f3446;
  --hero-b: #0e5d63;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding-top: var(--safe-t);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 8px; height: 60px; }
.topbar h1 { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -.01em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
main { flex: 1; padding: 18px 0 calc(110px + var(--safe-b)); }

.iconbtn {
  width: 40px; height: 40px; border-radius: 12px; border: 0;
  display: inline-grid; place-items: center; background: transparent; color: var(--ink);
  flex: none;
}
.iconbtn:hover { background: var(--surface-2); }
.iconbtn svg { width: 22px; height: 22px; }

.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 5px 10px; border-radius: 99px; background: var(--surface-2); white-space: nowrap; }
.sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pos); }
.sync.pending::before { background: #e0a100; }
.sync.offline::before { background: var(--neg); }

/* Tabs */
.tabs { display: none; }
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.bottomnav button {
  border: 0; background: none; padding: 9px 0 8px; display: grid; justify-items: center; gap: 2px;
  font-size: 11.5px; font-weight: 600; color: var(--muted);
}
.bottomnav button svg { width: 24px; height: 24px; }
.bottomnav button[aria-current="page"] { color: var(--accent); }

.fab {
  position: fixed; right: 18px; bottom: calc(78px + var(--safe-b)); z-index: 31;
  height: 58px; padding: 0 22px 0 18px; border-radius: 20px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform .15s ease;
}
.fab:active { transform: scale(.96); }
.fab svg { width: 24px; height: 24px; }

@media (min-width: 860px) {
  .bottomnav { display: none; }
  .tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; }
  .tabs button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
  .tabs button svg { width: 18px; height: 18px; }
  .tabs button[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
  .fab { bottom: 28px; right: max(28px, calc((100vw - 1080px) / 2 + 16px)); }
  main { padding-bottom: 110px; }
}

/* ---------- Cards / generic ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card.pad { padding: 18px; }
.section { margin: 26px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .01em; color: var(--ink-2); text-transform: uppercase; }
.section h2.big { text-transform: none; font-size: 22px; letter-spacing: -.015em; color: var(--ink); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 650; font-size: 15.5px; background: var(--surface-2); color: var(--ink);
  transition: transform .1s ease, background .15s;
  text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.danger { background: var(--neg-soft); color: var(--neg); }
.btn.small { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface-2); outline: none;
  transition: border-color .15s, background .15s;
}
textarea.input { height: auto; min-height: 76px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--accent); background: var(--surface); }
.input::placeholder { color: var(--muted); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  border-radius: 24px; padding: 22px 22px 20px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 170, 120, .35), transparent 55%), linear-gradient(135deg, var(--hero-a), var(--hero-b));
  box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, .06);
}
.hero .label { font-size: 13.5px; opacity: .8; font-weight: 600; }
.hero .total { font-size: clamp(34px, 8vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 6px; }
.hero .meta { font-size: 14px; opacity: .85; }
.hero .pill { position: relative; z-index: 1; display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); font-size: 14px; font-weight: 600; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px;
  border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14.5px;
  transition: background .12s, border-color .12s;
}
.chip.plain { padding: 0 14px; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.chip .emoji { font-size: 18px; width: 28px; text-align: center; }

.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font-size: 12.5px; font-weight: 750; color: #fff; letter-spacing: -.02em;
}
.avatar.lg { width: 42px; height: 42px; font-size: 15px; }

/* Expense list */
.toolbar { display: flex; gap: 10px; align-items: center; margin: 18px 0 4px; }
.search { position: relative; flex: 1; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search .input { padding-left: 40px; height: 46px; }
.daygroup { margin-top: 18px; }
.dayhead { display: flex; justify-content: space-between; padding: 0 6px 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.item {
  width: 100%; display: flex; align-items: center; gap: 13px; padding: 13px 16px; border: 0; background: none; text-align: left;
  border-top: 1px solid var(--line);
}
.item:first-child { border-top: 0; }
.item:hover { background: var(--surface-2); }
.cat { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; background: var(--surface-2); }
.item .title { font-weight: 650; }
.item .sub { font-size: 13.5px; color: var(--muted); }
.item .amt { text-align: right; font-weight: 700; white-space: nowrap; }
.item .amt small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.item.pending .title::after { content: " ·  wartet"; font-weight: 500; color: #c48a00; font-size: 12.5px; }

.empty { text-align: center; padding: 48px 20px; }
.empty .big { font-size: 54px; }
.empty h3 { margin: 10px 0 6px; font-size: 19px; }
.empty p { margin: 0 auto 18px; color: var(--ink-2); max-width: 340px; }

/* Two column on wide */
.cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .cols { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .cols > aside { position: sticky; top: 80px; }
}
@media (max-width: 999px) { .cols > aside { display: none; } }

/* Balances */
.bal { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); }
.bal:first-child { border-top: 0; }
.bal .name { font-weight: 650; }
.bal .val { font-weight: 750; text-align: right; }
.bal .detail { grid-column: 2 / 4; font-size: 12.5px; color: var(--muted); }
.divbar { grid-column: 1 / 4; height: 8px; position: relative; margin-top: 4px; }
.divbar::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1.5px; background: var(--surface-3); }
.divbar i { position: absolute; top: 0; height: 8px; border-radius: 4px; }
.divbar i.p { left: calc(50% + 2px); background: var(--pos); }
.divbar i.n { right: calc(50% + 2px); background: var(--neg); }
.me-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); margin-left: 6px; vertical-align: 2px; }

.transfer { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.transfer:first-child { border-top: 0; }
.transfer .who { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; flex-wrap: wrap; font-weight: 600; }
.transfer .arrow { color: var(--muted); }
.transfer .amt { font-weight: 800; font-size: 17px; white-space: nowrap; }
.settled { text-align: center; padding: 26px 16px; }
.settled .big { font-size: 40px; }

/* Stats */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { padding: 16px; }
.kpi .k { font-size: 12.5px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
.kpi .v { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.kpi .s { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars { display: grid; gap: 14px; }
.hbar .top { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; margin-bottom: 6px; }
.hbar .top b { font-weight: 650; }
.hbar .track { height: 10px; border-radius: 0 5px 5px 0; }
.hbar .fill { height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 3px; }
.hbar .fill.s2 { background: var(--series-2); }
.pairbars { display: grid; gap: 3px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-scroll { overflow-x: auto; scrollbar-width: thin; }
.daychart { display: block; }
.daychart .bar { fill: var(--series-1); }
.daychart .hit { fill: transparent; cursor: pointer; }
.daychart .hit:hover + .bar, .daychart .bar.on { fill: color-mix(in srgb, var(--series-1) 75%, var(--ink)); }
.daychart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.daychart .grid { stroke: var(--line); stroke-width: 1; }
.tip {
  position: fixed; z-index: 100; pointer-events: none; padding: 8px 11px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg);
  transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap;
}
.tip small { display: block; font-weight: 500; opacity: .75; }
details.table summary { cursor: pointer; color: var(--ink-2); font-size: 14px; font-weight: 600; margin-top: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
table.data th, table.data td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
table.data td.r, table.data th.r { text-align: right; }

/* Settings list */
.setting { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.setting:first-child { border-top: 0; }
button.setting:hover { background: var(--surface-2); }
.setting svg { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.seg { display: inline-flex; background: var(--surface-2); padding: 3px; border-radius: 12px; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.addrow { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.addrow .input { height: 44px; }

/* Trip cards (home) */
.tripgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.tripcard { padding: 18px; text-align: left; border: 1px solid var(--line); display: grid; gap: 10px; cursor: pointer; position: relative; }
.tripcard:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tripcard h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; padding-right: 40px; }
.tripcard .t { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tripcard .menu { position: absolute; top: 10px; right: 10px; }

/* Login */
.center { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login { position: relative; width: 100%; max-width: 400px; padding: 30px 26px; }
.login .logo { width: 64px; height: 64px; border-radius: 18px; display: block; margin: 0 auto 14px; box-shadow: var(--shadow); }
.login h1 { text-align: center; margin: 0; font-size: 28px; letter-spacing: -.02em; }
.login p.lead { text-align: center; color: var(--ink-2); margin: 6px 0 24px; }
.pwwrap { position: relative; }
.pwwrap .input { padding-right: 52px; }
.pwwrap .iconbtn { position: absolute; right: 5px; top: 5px; color: var(--muted); }
.err { color: var(--neg); font-size: 14px; font-weight: 600; min-height: 20px; margin: 10px 0 0; }
.bgdeco { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bgdeco::before, .bgdeco::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.bgdeco::before { width: 420px; height: 420px; background: color-mix(in srgb, var(--hero-b) 55%, transparent); top: -140px; left: -120px; }
.bgdeco::after { width: 380px; height: 380px; background: color-mix(in srgb, var(--accent) 35%, transparent); bottom: -140px; right: -100px; }

/* ---------- Sheet / dialog ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(8, 12, 18, .45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .18s ease;
}
.sheet {
  width: 100%; max-width: 560px; max-height: 94dvh; overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg);
  padding: 8px 20px calc(20px + var(--safe-b));
  animation: up .26s cubic-bezier(.2, .9, .3, 1);
}
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 4px auto 10px; }
.sheet header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sheet header h2 { margin: 0; font-size: 20px; flex: 1; letter-spacing: -.01em; }
.sheet .stack > * + * { margin-top: 18px; }
.sheet .actions { display: flex; gap: 10px; margin-top: 22px; position: sticky; bottom: calc(-20px - var(--safe-b)); background: var(--surface); padding: 12px 0 calc(8px + var(--safe-b)); }
.sheet .actions .btn.primary { flex: 1; }
@media (min-width: 700px) {
  .overlay { align-items: center; padding: 24px; }
  .sheet { border-radius: 26px; padding: 14px 26px 22px; max-height: 90dvh; }
  .sheet .grab { display: none; }
  .sheet .actions { bottom: -22px; padding-bottom: 8px; }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.amountbox { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 18px; padding: 6px 18px; border: 1.5px solid var(--line); }
.amountbox:focus-within { border-color: var(--accent); background: var(--surface); }
.amountbox input { border: 0; background: none; outline: none; font-size: 38px; font-weight: 800; letter-spacing: -.02em; width: 100%; min-width: 0; height: 64px; }
.amountbox span { font-size: 30px; font-weight: 700; color: var(--muted); }
.splitinfo { font-size: 13.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.linkbtn { border: 0; background: none; color: var(--accent); font-weight: 650; font-size: 13.5px; padding: 4px 0; }

.toast {
  position: fixed; left: 50%; bottom: calc(150px + var(--safe-b)); transform: translateX(-50%); z-index: 90;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); animation: up .2s ease;
}
.toast.err { background: var(--neg); color: #fff; }
@media (min-width: 860px) { .toast { bottom: 40px; } }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Print / PDF ---------- */
#print { display: none; }
@media print {
  @page { margin: 16mm 14mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  #app, .overlay, .toast, .tip { display: none !important; }
  #print { display: block; }
  #print h1 { font-size: 20pt; margin: 0 0 2pt; }
  #print h2 { font-size: 13pt; margin: 18pt 0 6pt; }
  #print .sub { color: #555; margin-bottom: 10pt; }
  #print table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  #print th, #print td { border-bottom: .5pt solid #bbb; padding: 4pt 4pt; text-align: left; vertical-align: top; }
  #print th { background: #f1f1f1; }
  #print .r { text-align: right; white-space: nowrap; }
  #print tr { break-inside: avoid; }
}
