/* Holiday Tower look. Colours and sizes come from tokens.css; chart marks use --chart-1 and friends, chart words use --font-chart. */

/* 1. Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font: 500 14px/1.45 var(--font-body); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
h1 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
h2 { font-size: 16px; font-weight: 700; letter-spacing: -.005em; line-height: 1.3; }
h3 { font-size: 14px; font-weight: 700; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.icon-set { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none; display: block;
}
.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.page { padding: 14px 16px 20px; max-width: var(--page-width); margin: 0 auto; }
.page > * + *, form > * + * { margin-top: 14px; }
.print-only { display: none; }

/* 2. Controls and forms */
input, select, textarea, button, .action {
  font: inherit; min-height: var(--tap); min-width: 0; max-width: 100%; border-radius: var(--radius);
}
input, select, textarea {
  width: 100%; padding: 0 12px; border: 1px solid var(--field-line); background: var(--card);
  color: var(--ink); font-size: 16px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--teal); outline-offset: 0; }
input::placeholder, textarea::placeholder { color: var(--ink3); opacity: 1; }
input[readonly] { background: var(--soft); }
textarea { padding: 10px 12px; min-height: var(--text-area-height); resize: vertical; }
input[type="checkbox"], input[type="radio"] {
  width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; accent-color: var(--teal);
}
input[type="file"] { padding: 8px; }
input[type="hidden"] { display: none; }
button, .action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 0;
  background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--field-line); cursor: pointer; text-decoration: none; text-align: center;
}
button:disabled { cursor: default; opacity: .7; }
.primary, .action.primary { background: var(--teal); color: var(--white); box-shadow: var(--sh-accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
fieldset { border: 0; padding: 0; min-width: 0; }
fieldset > * + * { margin-top: 12px; }
legend { font-size: 14px; font-weight: 700; padding: 0; }
[data-repeat-list] > * + * { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label, .field > span { font-size: 13px; font-weight: 600; color: var(--ink2); }
.checkbox { display: flex; align-items: center; gap: 10px; min-height: var(--tap); font-weight: 600; }
.field-grid, .paired-cards, .dashboard-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--column-width)), 1fr));
  gap: 12px 14px; align-items: start;
}
.paired-cards { gap: 14px; }
.filter { display: flex; gap: 12px 14px; flex-wrap: wrap; align-items: end; }
.filter > * + * { margin-top: 0; }
.filter .field { flex: 1 1 var(--column-width); }
output { font-variant-numeric: tabular-nums; }
[role="alert"] { color: var(--error); font-weight: 600; }
summary { min-height: var(--tap); cursor: pointer; display: flex; align-items: center; font-weight: 600; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.5 var(--font-code); }

/* 3. Panels, lists, tables */
.panel {
  background: var(--card); border-radius: var(--radius-card); padding: 16px; box-shadow: var(--sh); min-width: 0;
}
.panel > * + * { margin-top: 12px; }
.sign-in { max-width: var(--sign-in-width); margin-inline: auto; }
.panel a, .link-list a, td a, .figure-list a { display: inline-flex; align-items: center; min-height: var(--tap); }
.panel a.action { display: inline-flex; }
dl { display: flex; flex-wrap: wrap; gap: 12px 24px; }
dt { font-size: 13px; color: var(--ink2); }
dd { font-weight: 700; }
.stat, .figures dd { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.figure-list, .link-list { list-style: none; margin: 0; padding: 0; }
.panel > .figure-list, .panel > .link-list { margin-top: 4px; }
.figure-list > li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px;
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
.figure-list > li:last-child, .link-list > li:last-child { border-bottom: 0; }
.link-list > li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; font-weight: 600; text-decoration: none; }
.ranking-meter { grid-column: 1 / -1; width: 100%; height: 10px; accent-color: var(--chart-1); }
.aging-legend { grid-column: 1 / -1; list-style: none; padding: 0; font-size: 13px; color: var(--ink2); }
.company-logo { display: block; width: min(100%, var(--logo-width)); height: auto; }
.document-header { display: flex; flex-wrap: wrap; align-items: start; gap: 12px 20px; }
.address { white-space: pre-line; }
.invoice-qr { display: block; width: var(--qr-width); fill: var(--print-ink); background: var(--print-paper); }
.document-total { padding-top: 12px; border-top: 1px solid var(--line); }
.allocation-row { border-top: 1px solid var(--line); padding: 12px 0; }
.allocation-row p { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.table-scroll {
  overflow: auto; max-width: 100%; background: var(--card); border-radius: var(--radius-card); box-shadow: var(--sh);
}
.panel .table-scroll { background: none; border-radius: 0; box-shadow: none; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: break-word; }
th { font-size: 13px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
td { font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tfoot td, tfoot th { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 0; }

/* 4. Shell: top bar and bottom tabs on phones and tablets, side menu on a PC */
.site-header {
  position: sticky; top: 0; z-index: 5; background: var(--card); display: flex; align-items: center; gap: 2px;
  padding: 7px 8px 7px 16px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { height: 34px; width: auto; display: block; }
.ib { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: var(--white);
  font-weight: 700; font-size: 14px; display: grid; place-items: center; flex: none; margin: 0 5px;
}
.menu {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--card); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px 6px calc(7px + env(safe-area-inset-bottom));
}
.nv {
  min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; font-weight: 600; color: var(--ink2); text-decoration: none; cursor: pointer; border-radius: 12px;
}
.nv.is-on { color: var(--teal); font-weight: 700; }
.more-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.more-toggle:focus-visible + .more-btn { outline: 2px solid var(--focus); outline-offset: -2px; }
.scrim { position: fixed; inset: 0; z-index: 7; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.more-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--card); border-radius: 20px 20px 0 0;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); box-shadow: var(--sh-sheet);
  transform: translateY(105%); visibility: hidden; transition: transform .18s ease, visibility .18s;
  max-height: 86vh; overflow-y: auto;
}
.more-toggle:checked ~ .scrim { opacity: 1; pointer-events: auto; }
.more-toggle:checked ~ .more-sheet { transform: none; visibility: visible; }
.more-sheet .nv {
  flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 48px; padding: 0 12px; font-size: 14px;
}
.sign-out { margin: 0; flex: none; }
.sign-out > * + * { margin-top: 0; }
.sign-out button.nv {
  width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: none; box-shadow: none; color: var(--ink2);
}
.sign-out button.nv span {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.who { display: flex; flex-direction: column; padding: 10px 12px; border-top: 1px solid var(--line); margin-top: 6px; font-size: 13px; color: var(--ink2); }
.who b { font-size: 14px; font-weight: 700; color: var(--ink); }

/* 5. Footer and the sign-in page */
.made-by {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 16px 18px;
  font-size: 12px; color: var(--ink3);
}
.made-by img { height: 10px; width: auto; opacity: .7; display: block; }
.signed .made-by { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
body.guest { display: flex; flex-direction: column; min-height: 100vh; }
.guest-brand { display: flex; justify-content: center; padding: 40px 16px 8px; }
.guest-brand img { width: 150px; height: auto; display: block; }
.guest .page { flex: 1; width: 100%; }

@media (min-width: 640px) {
  .page { padding: 18px 20px 20px; }
}

@media (min-width: 1100px) {
  h1 { font-size: 22px; }
  input, select, textarea { font-size: 14px; }
  body.signed {
    display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-rows: 1fr auto;
    grid-template-areas: "side main" "side foot"; min-height: 100vh;
  }
  .site-header {
    grid-area: side; height: 100vh; align-self: start; overflow-y: auto; flex-direction: column; align-items: stretch;
    gap: 0; padding: 22px 14px 18px; border-bottom: 0; border-right: 1px solid var(--line);
  }
  .brand { margin: 0 8px 22px; min-height: 0; }
  .brand img { width: 118px; height: auto; }
  .top-find, .site-header .av, .more-btn, .scrim, .more-toggle { display: none; }
  .menu { position: static; display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 0; border: 0; background: none; }
  .menu .nv, .more-sheet .nv {
    flex-direction: row; justify-content: flex-start; gap: 12px; height: 42px; min-height: 0; padding: 0 12px; font-size: 14px;
  }
  .menu .nv svg.i { width: 20px; height: 20px; }
  .menu .nv.is-on { background: var(--tint); }
  .more-sheet {
    display: contents; position: static; transform: none; visibility: visible; transition: none;
  }
  .who { margin-top: auto; border-top: 0; padding: 12px 12px 8px; font-size: 12px; }
  .menu { order: 1; }
  .sign-out { order: 2; margin-top: 2px; }
  .sign-out button.nv {
    width: 100%; height: 42px; min-height: 0; padding: 0 12px; border-radius: 12px; flex-direction: row;
    justify-content: flex-start; gap: 12px; font-size: 14px;
  }
  .sign-out button.nv svg.i { width: 20px; height: 20px; }
  .sign-out button.nv span { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; }
  .who b { font-size: 13px; }
  .signed .page { grid-area: main; max-width: none; width: 100%; margin: 0; padding: 20px 28px 36px; }
  .signed .made-by { grid-area: foot; padding-bottom: 18px; }
}

/* 6. Dashboard */
.dash { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.dash .hello, .dash .figs { display: contents; }
.dash .hi { grid-area: hi; margin: 2px 2px 0; }
.dash .hi p { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.dash .quick { grid-area: quick; }
.dash .hero { grid-area: hero; }
.dash .alerts { grid-area: alerts; }
.dash .profit { grid-area: profit; }
.dash .ringc { grid-area: ring; }
.dash .daily { grid-area: daily; }
.dash .owes { grid-area: owes; }
.dash .cash { grid-area: cash; }
.dash .air { grid-area: air; }
.dash .league { grid-area: league; }
.dash.v-full { grid-template-areas: "hi" "hero" "quick" "alerts" "profit" "ring" "daily" "owes" "cash" "air" "league"; }
.dash.v-profit { grid-template-areas: "hi" "hero" "quick" "alerts" "profit" "ring" "daily" "owes" "air" "league"; }
.dash.v-none { grid-template-areas: "hi" "hero" "quick" "alerts" "ring" "daily" "owes" "air" "league"; }
.dash .av.big, .dash .find, .dash svg.i.pc { display: none; }

.dash .quick { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.qb {
  background: var(--card); border-radius: 16px; padding: 10px 2px 9px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; min-height: 74px; font-size: 12px; font-weight: 600; color: var(--ink);
  box-shadow: var(--sh); white-space: nowrap; text-decoration: none;
}
.qb .ic { width: 36px; height: 36px; border-radius: 12px; background: var(--tint); color: var(--teal); display: grid; place-items: center; }
.qb.acc { background: var(--teal); color: var(--white); }
.qb.acc .ic { background: var(--glass-2); color: var(--white); }

.dash .card {
  background: var(--card); border-radius: var(--radius-card); padding: 16px; box-shadow: var(--sh); min-width: 0;
  container-type: inline-size; display: flex; flex-direction: column;
}
.dash .ch { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.dash .ch .t { flex: 1; min-width: 0; }
.dash .ch .sub { font-size: 13px; color: var(--ink2); margin-top: 1px; }
.dash .go {
  width: 44px; height: 44px; margin: -12px -12px -12px 0; display: grid; place-items: center; color: var(--teal);
  border-radius: 50%; flex: none;
}
.dash .go svg.i { width: 20px; height: 20px; stroke-width: 2.2; }
.dash .stat { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.dash .stat .cur { font-size: 14px; font-weight: 700; color: var(--ink2); }
.dash .stat .num { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dash .num small { font-size: .5em; font-weight: 700; letter-spacing: 0; }
.dash .stat .aft { font-size: 13px; color: var(--ink2); }
.dash .stat .fig { display: inline-flex; align-items: baseline; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 4px 10px 4px 8px;
  border-radius: 999px; line-height: 1.35; background: var(--soft); color: var(--ink2);
}
.chip svg.i { width: 14px; height: 14px; stroke-width: 2.4; }
.chip svg.i.dn { transform: rotate(180deg); }
.chip.up, .chip.ok { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip.crit { background: var(--crit-bg); color: var(--crit-ink); }
.dash .chipline { margin-top: 8px; }
.dash .lg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink2); margin: 10px 0 4px; list-style: none; padding: 0; }
.dash .lg li { display: inline-flex; align-items: center; gap: 6px; }
.dash .lg i { width: 10px; height: 10px; border-radius: 3px; display: block; background: var(--chart-1); }
.dash .lg i.late { background: var(--late); }
.dash .lg i.over { background: var(--over); }
.dash .lg i.line { width: 14px; height: 3px; border-radius: 2px; background: var(--ref); }
.dash .foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--ink2);
}
.dash .foot b { font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.dash .none { font-size: 14px; color: var(--ink2); padding: 6px 0; }

/* the big card */
.hero {
  border-radius: 22px; padding: 18px 18px 16px; color: var(--white); position: relative; overflow: hidden;
  container-type: inline-size; display: flex; flex-direction: column; min-width: 0;
  background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 50%, var(--hero-3) 118%); box-shadow: var(--sh-hero);
}
.hero .hin { display: flex; flex-direction: column; flex: 1; position: relative; min-width: 0; }
.hero .lab { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.hero .big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.hero .big .cur { font-size: 18px; font-weight: 700; }
.hero .big .num { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero .big.n6 .num { font-size: 44px; }
.hero .big.n7 .num { font-size: 38px; }
.hero .big.n8 .num { font-size: 32px; }
.hero .big .num small { font-size: .45em; font-weight: 700; letter-spacing: 0; }
.hero .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; }
.hero .chip { background: var(--glass); color: var(--white); }
.hero .meta .n { font-size: 13px; font-weight: 600; }
.hero .hsp { flex: 1; min-height: 0; position: relative; }
.hero .rule { border-top: 1px solid var(--glass-line); margin: 16px 0 14px; }
.hero .in { display: flex; align-items: center; gap: 12px; }
.hero .in .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--glass); display: grid; place-items: center; flex: none; }
.hero .in .l { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.hero .in .v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero .in .v .cur { font-size: 14px; font-weight: 700; letter-spacing: 0; margin-right: 1px; }
.hero .in .v small { font-size: .55em; font-weight: 700; letter-spacing: 0; }
.hero .in .r { margin-left: auto; font-size: 13px; font-weight: 600; text-align: right; }
.hero .go { position: absolute; top: 8px; right: 8px; margin: 0; color: var(--white); }
.hero svg.arc-s, .hero svg.arc-l, .hero svg.plane-s, .hero svg.plane-l { position: absolute; pointer-events: none; max-width: none; }
.hero .arc-s path, .hero .arc-l path {
  fill: none; stroke: var(--arc); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 8; vector-effect: non-scaling-stroke;
}
.hero .plane-s path, .hero .plane-l path { fill: var(--plane); }
.hero svg.arc-s { top: 22px; right: 60px; width: clamp(40px, calc(100% - 196px), 170px); height: 19px; overflow: visible; }
.hero svg.plane-s { top: 12px; right: 34px; width: 21px; height: 18px; }
.hero svg.arc-l { display: none; left: 4px; top: 30px; width: calc(100% - 34px); height: calc(100% - 36px); overflow: visible; }
.hero svg.plane-l { display: none; right: 4px; top: 20px; width: 21px; height: 18px; }

/* needs you */
.alerts { display: flex; flex-direction: column; gap: 10px; }
.alerts h2 { font-size: 15px; margin: 4px 2px -2px; }
.al {
  background: var(--card); border-radius: 16px; padding: 10px 8px 10px 12px; display: flex; align-items: center; gap: 12px;
  min-height: 62px; box-shadow: var(--sh); color: var(--ink); text-decoration: none; min-width: 0;
}
.al .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--good-bg); color: var(--good); }
.al.crit .ic { background: var(--crit-bg); color: var(--crit-icon); }
.al.warn .ic { background: var(--warn-bg); color: var(--warn-icon); }
.al .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.al .tx b { font-size: 14px; font-weight: 700; }
.al .tx .s { font-size: 13px; color: var(--ink2); }
.al .cv { color: var(--teal); width: 20px; height: 20px; stroke-width: 2.2; }

/* charts */
.dash .plot { position: relative; flex: 1; min-height: 170px; margin-top: 6px; font-family: var(--font-chart); }
.dash svg.pl { position: absolute; left: 40px; top: 16px; width: calc(100% - 52px); height: calc(100% - 42px); overflow: visible; max-width: none; }
.pl line.g { stroke: var(--line); stroke-width: 1; }
.pl line.g.z { stroke: var(--base); }
.pl text { font: 500 12px var(--font-chart); fill: var(--ink3); }
.pl text.dl { font-weight: 700; fill: var(--ink); }
.pl svg.lines { overflow: visible; }
.pl .area { fill: var(--chart-1); opacity: .1; }
.pl .ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pl .ln.prev { stroke: var(--ref); }
.pl .ln.cur { stroke: var(--chart-1); }
.pl .dot { fill: var(--chart-1); stroke: var(--card); stroke-width: 2; }
.pl .col rect { fill: var(--chart-1); }
.pl .col.now rect { fill: var(--teal); }
.pl .stub { stroke: var(--stub); stroke-width: 2; stroke-linecap: round; }

/* ring */
.ringwrap { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 1; justify-content: center; }
.ring { position: relative; width: 168px; height: 168px; flex: none; font-family: var(--font-chart); }
.ring svg { width: 100%; height: 100%; display: block; }
.ring .track { fill: none; stroke: var(--stub); stroke-width: 22; }
.ring .slice { fill: none; stroke-width: 22; }
.slice.s1 { stroke: var(--chart-1); } .slice.s2 { stroke: var(--chart-2); } .slice.s3 { stroke: var(--chart-3); }
.slice.s4 { stroke: var(--chart-4); } .slice.s5 { stroke: var(--chart-5); } .slice.s6 { stroke: var(--chart-6); }
.slice.s7 { stroke: var(--chart-7); }
.sw.s1 { background: var(--chart-1); } .sw.s2 { background: var(--chart-2); } .sw.s3 { background: var(--chart-3); }
.sw.s4 { background: var(--chart-4); } .sw.s5 { background: var(--chart-5); } .sw.s6 { background: var(--chart-6); }
.sw.s7 { background: var(--chart-7); }
.ring .mid {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none; padding: 0 30px;
}
.ring .mid small { font-size: 12px; font-weight: 600; color: var(--ink2); }
.ring .mid .tot { display: flex; flex-direction: column; align-items: center; }
.ring .mid b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ring .mid b.tight { font-size: 16px; }
.ring .mid b small { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.rl {
  list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto 40px;
  gap: 9px 10px; align-items: center; font-size: 14px; width: 100%;
}
.rl li { display: contents; }
.rl li.none { display: block; grid-column: 1 / -1; color: var(--ink2); }
.rl i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.rl .a { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.rl .p { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
@container (min-width: 420px) { .ringwrap { flex-direction: row; gap: 22px; } }

/* rows with bars */
.dash .rows { display: flex; flex-direction: column; gap: 13px; list-style: none; padding: 0; margin: 0; }
.dash .rows.fill { flex: 1; }
.dash .rows.fill:has(> li:nth-child(4)) { justify-content: space-between; }
.rw .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rw .nm { font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; min-width: 0; text-decoration: none; }
.rw a.nm { display: block; padding: 12px 0; margin: -12px 0; }
.rw .am, .lr .am { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rw .am small { font-size: 12px; font-weight: 600; color: var(--ink2); }
.dash svg.bar { display: block; height: 10px; margin-top: 6px; border-radius: 0 4px 4px 0; overflow: hidden; min-width: 3px; max-width: 100%; }
.bar .b0 { fill: var(--chart-1); } .bar .b1 { fill: var(--late); } .bar .b2 { fill: var(--over); }
.bar .bg { fill: var(--card); } .bar .bn { fill: var(--ref); }
.rw .ft { margin-top: 7px; }
.dash .owhead { margin-bottom: 2px; }
.dash .owes .lg { margin-bottom: 12px; }

/* cash and bank */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; list-style: none; padding: 0; }
.tile { background: var(--soft); border-radius: 14px; padding: 12px; min-width: 0; }
.tile .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--card); color: var(--teal); display: grid; place-items: center; margin-bottom: 8px; }
.tile .ic svg.i { width: 20px; height: 20px; }
.tile .n { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); overflow-wrap: anywhere; }
.tile .v { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 12px; font-weight: 700; color: var(--ink2); margin-right: 4px; letter-spacing: 0; }
@container (min-width: 560px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 262px) {
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tile { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 9px 12px; }
  .tile .ic { grid-row: 1 / 3; margin: 0; }
  .tile .v { margin-top: 0; }
}

/* airlines and suppliers switch */
.seg { display: inline-flex; position: relative; align-self: flex-start; margin: -6px 0 6px; }
.seg::before { content: ""; position: absolute; inset: 5px 0; background: var(--bg); border-radius: 11px; }
.seg .sg { height: 44px; padding: 0 3px; display: grid; place-items: center; position: relative; text-decoration: none; }
.seg .sg span { display: block; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.seg .sg.is-on span { background: var(--card); color: var(--ink); box-shadow: var(--sh-seg); }

/* switch inside the Top airlines card: two hidden radios, no script */
.dash .tsw { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; margin: 0; }
.seg label.sg { cursor: pointer; }
.tsw-air:checked ~ .seg .sg-air span, .tsw-sup:checked ~ .seg .sg-sup span { background: var(--card); color: var(--ink); box-shadow: var(--sh-seg); }
.tsw-air:focus-visible ~ .seg .sg-air span, .tsw-sup:focus-visible ~ .seg .sg-sup span { outline: 2px solid var(--focus); outline-offset: 1px; }
.dash .pane { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dash .pane-sup, .tsw-sup:checked ~ .pane-air { display: none; }
.tsw-sup:checked ~ .pane-sup { display: flex; }
.dash .foot .nw { white-space: nowrap; }
.dash .foot b { white-space: normal; }
.dash .foot { flex-wrap: wrap; }
.dash .foot > :last-child { margin-left: auto; }
.more-link { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: -12px 0; font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: none; }
.more-link svg.i { width: 16px; height: 16px; stroke-width: 2.2; }

/* salesman league */
.lr { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; column-gap: 11px; align-items: center; }
.lr .pa {
  width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--teal); font-weight: 700; font-size: 14px;
  display: grid; place-items: center; position: relative;
}
.lr .rk {
  position: absolute; right: -5px; bottom: -4px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--teal);
  color: var(--white); font: 700 12px/19px var(--font-body); text-align: center; box-shadow: 0 0 0 2px var(--card);
}
.lr.first .rk { background: var(--gold); color: var(--gold-ink); }
.lr .nm { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.dash .lr svg.bar { grid-column: 2 / 4; height: 8px; margin-top: 5px; }

@media (min-width: 640px) {
  .dash { gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash.v-full { grid-template-areas: "hi hi" "hero hero" "quick quick" "alerts alerts" "profit ring" "daily daily" "owes owes" "air league" "cash cash"; }
  .dash.v-profit { grid-template-areas: "hi hi" "hero hero" "quick quick" "alerts alerts" "profit ring" "daily daily" "owes owes" "air league"; }
  .dash.v-none { grid-template-areas: "hi hi" "hero hero" "quick quick" "alerts alerts" "daily daily" "ring air" "owes league"; }
  .qb { flex-direction: row; justify-content: center; gap: 10px; min-height: 60px; font-size: 13px; padding: 10px; }
  .alerts { flex-direction: row; flex-wrap: wrap; }
  .alerts h2 { flex-basis: 100%; }
  .al { flex: 1 1 260px; }
  .dash .plot { min-height: 200px; }
}

@container (min-width: 560px) {
  .hero .hin { flex-direction: row; align-items: stretch; }
  .hero .hin .a { flex: 1.25; min-width: 0; }
  .hero .rule { border-top: 0; border-left: 1px solid var(--glass-line); margin: 0 22px; }
  .hero .in { flex: 1; flex-wrap: wrap; align-content: center; min-width: 0; }
  .hero .in .r { margin-left: 52px; flex-basis: 100%; text-align: left; margin-top: -4px; }
}

@media (min-width: 1100px) {
  .dash { gap: 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .dash .hello { display: flex; align-items: center; justify-content: space-between; gap: 16px; grid-area: hello; min-width: 0; }
  .dash .hi { margin: 0; flex: none; }
  .dash.v-full {
    grid-template-areas:
      "hello hello hello hello hello hello hello hello hello hello hello hello"
      "alerts alerts alerts alerts alerts alerts alerts alerts alerts alerts alerts alerts"
      "hero hero hero hero hero profit profit profit profit cash cash cash"
      "daily daily daily daily daily daily daily ring ring ring ring ring"
      "owes owes owes owes owes air air air air league league league";
  }
  .dash.v-profit {
    grid-template-areas:
      "hello hello hello hello hello hello hello hello hello hello hello hello"
      "alerts alerts alerts alerts alerts alerts alerts alerts alerts alerts alerts alerts"
      "hero hero hero hero hero profit profit profit profit profit profit profit"
      "daily daily daily daily daily daily daily ring ring ring ring ring"
      "owes owes owes owes owes air air air air league league league";
  }
  .dash.v-none {
    grid-template-areas:
      "hello hello hello hello hello hello hello hello hello hello hello hello"
      "alerts alerts alerts alerts alerts alerts alerts alerts alerts alerts alerts alerts"
      "hero hero hero hero hero daily daily daily daily daily daily daily"
      "owes owes owes owes owes ring ring ring ring ring ring ring"
      "owes owes owes owes owes air air air league league league league";
  }
  .dash .quick { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; flex: 1; }
  .dash .find {
    display: flex; align-items: center; gap: 8px; height: 40px; width: 268px; flex: 0 1 268px; min-width: 40px; padding: 0 12px;
    border-radius: 12px; background: var(--card); color: var(--ink3); font-size: 13px; box-shadow: inset 0 0 0 1px var(--line);
    text-decoration: none; overflow: hidden; white-space: nowrap;
  }
  .dash .find svg.i { width: 18px; height: 18px; }
  .dash .find span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .qb {
    flex: none; flex-direction: row; height: 40px; min-height: 0; padding: 0 15px 0 12px; border-radius: 12px; gap: 8px;
    font-size: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  }
  .qb .ic, .qb.acc .ic { width: auto; height: auto; background: none; border-radius: 0; }
  .qb .ic svg.i { width: 18px; height: 18px; }
  .qb .ic { color: var(--teal); }
  .qb.acc { order: 5; box-shadow: var(--sh-accent); }
  .qb.more, .dash svg.i.ph { display: none; }
  .dash svg.i.pc { display: block; }
  .dash .av.big { display: grid; order: 6; width: 40px; height: 40px; margin: 0; }
  .alerts { flex-wrap: nowrap; align-items: center; gap: 14px; }
  .alerts h2 { flex: none; flex-basis: auto; margin: 0 6px 0 2px; }
  .al { flex: 1 1 0; min-height: 58px; padding: 8px 10px; }
  .dash .card { padding: 18px; }
  .hero { padding: 22px; }
  .hero .big .num, .hero .big.n6 .num { font-size: 56px; }
  .hero .big.n7 .num { font-size: 46px; }
  .hero .big.n8 .num { font-size: 40px; }
  .hero .go { top: 12px; right: 12px; }
  .hero svg.arc-s, .hero svg.plane-s { display: none; }
  .hero svg.arc-l, .hero svg.plane-l { display: block; }
  .hero .hsp { min-height: 104px; }
  .dash .plot { min-height: 190px; }
  .cash .tiles { flex: 1; align-content: start; }
  .cash .tiles:has(> li:nth-child(4)) { align-content: space-between; }
}

/* a wide PC card puts the two halves of the big card side by side again */
@container (min-width: 560px) {
  .hero .hsp { display: none; }
  .hero svg.arc-s, .hero svg.plane-s { display: block; }
}
@media (min-width: 1100px) {
  .hero svg.arc-s { top: 26px; right: 64px; }
  .hero svg.plane-s { top: 16px; right: 38px; }
}

/* 7. Sale forms (new ticket, hotel, other service): approved ticket mock-up */
.sale { display: flex; flex-direction: column; gap: 14px; }
.sale > * + * { margin-top: 0; }
.sale .panel > h2, .sale .ph h2 { font-size: 17px; font-weight: 700; }
.sale .sub { font-size: 13px; color: var(--ink2); margin-top: 1px; }

/* fields: soft box with the label inside */
.field {
  background: var(--soft); border-radius: var(--radius); padding: 7px 12px 3px; gap: 0; position: relative;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .12s ease, background-color .12s ease;
}
.field:focus-within { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--teal); }
.field > label, .field > span { font-size: 12px; font-weight: 600; color: var(--ink2); line-height: 1.3; }
.field input, .field select, .field textarea {
  border: 0; background: transparent; padding: 0; min-height: 32px; font-weight: 600; border-radius: 0;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field select { margin-left: -3px; }
.field textarea { padding: 4px 0; }
.field-grid { gap: 8px 10px; }
.sale .field-grid { gap: 8px 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.sale .panel:has([data-ui$="-invoice-number"]) .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sale .panel:has([data-ui$="-invoice-number"]) .field:has(select) { grid-column: 1 / -1; }
@media (min-width: 1100px) {
  .sale .panel:has([data-ui$="-invoice-number"]) .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sale .panel:has([data-ui$="-invoice-number"]) .field:has(select) { grid-column: auto; }
}
.sale [data-ui$="-invoice-number"] {
  background: var(--soft); border-radius: var(--radius); padding: 7px 12px; font-size: 12px; font-weight: 600; color: var(--ink2);
  display: flex; flex-direction: column; justify-content: center; min-height: 59px;
}
.sale [data-ui$="-invoice-number"] strong { font-size: 16px; font-weight: 700; color: var(--ink); }

/* small text buttons: add passenger, add flight, add client */
.sale .add {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 6px; margin-left: -6px; width: auto;
  background: none; box-shadow: none; color: var(--teal); font-size: 14px; font-weight: 600; text-decoration: none; align-self: flex-start;
}
.sale .add svg.i { width: 18px; height: 18px; stroke-width: 2.2; }

/* sold to / bought from */
.sale .party { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; align-content: start; }
.sale .party > * + * { margin-top: 0; }
.sale .party > .ph, .sale .party > .add, .sale .party > .field:has(select), .sale .party > .field:has([data-ui$="due-date"]) { grid-column: 1 / -1; }
.sale .party > .field:has([data-ui$="cost-amount"]), .sale .party > .field:last-child:has([data-ui$="sale-amount"]) { grid-column: 1 / -1; }
.sale .party > .add { margin-top: -6px; }
.sale .ph { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.sale .pic { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--teal); display: grid; place-items: center; flex: none; }
.sale .pic svg.i { width: 20px; height: 20px; }

/* passengers and flights */
.sale .panel > h2 .count {
  display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 8px; margin-left: 6px; border-radius: 999px;
  background: var(--tint); color: var(--teal); font-size: 13px; font-weight: 700; vertical-align: 2px;
}
.sale [data-ui="ticket-passenger-list"] { counter-reset: pax; }
.sale [data-repeat-list] > * + * { margin-top: 10px; padding-top: 10px; }
.sale [data-ui="ticket-passenger-row"], .sale [data-ui="ticket-flight-row"] {
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px 6px; align-items: start;
}
.sale [data-ui="ticket-passenger-row"] { grid-template-columns: 28px minmax(0, 1fr) 44px; counter-increment: pax; }
.sale [data-ui="ticket-passenger-row"]::before {
  content: counter(pax); width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--teal);
  font-size: 13px; font-weight: 700; display: grid; place-items: center; margin-top: 15px;
}
.sale [data-ui="ticket-passenger-row"] > legend, .sale [data-ui="ticket-flight-row"] > legend {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.sale [data-ui="ticket-passenger-row"] > *, .sale [data-ui="ticket-flight-row"] > * { margin-top: 0; }
.sale [data-ui="ticket-passenger-row"] > .field-grid { grid-column: 2; }
.sale [data-ui="ticket-flight-row"] > .field-grid { grid-column: 1; grid-row: 1; }
.sale .rm {
  grid-row: 1; grid-column: -2; width: 44px; height: 44px; min-height: 44px; padding: 0; margin-top: 8px; border-radius: 50%;
  background: none; box-shadow: none; color: var(--ink2);
}
.sale .rm svg.i { width: 20px; height: 20px; }
.sale [data-ui="ticket-flight-row"] > .field-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.sale [data-ui="ticket-flight-row"] .field:nth-child(1) { grid-column: span 7; }
.sale [data-ui="ticket-flight-row"] .field:nth-child(2) { grid-column: span 5; }
.sale [data-ui="ticket-flight-row"] .field:nth-child(3), .sale [data-ui="ticket-flight-row"] .field:nth-child(4) { grid-column: span 3; }
.sale [data-ui="ticket-flight-row"] .field:nth-child(5) { grid-column: span 6; }

/* switch look for the price checkbox */
.switch input[type="checkbox"] {
  appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--stub); position: relative; cursor: pointer;
  transition: background-color .15s ease; flex: none;
}
.switch input[type="checkbox"]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white);
  box-shadow: var(--sh-seg); transition: transform .15s ease;
}
.switch input[type="checkbox"]:checked { background: var(--teal); }
.switch input[type="checkbox"]:checked::after { transform: translateX(18px); }
.switch input[type="checkbox"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch { font-size: 14px; font-weight: 600; color: var(--ink); }

/* the summary: teal card + save */
.sale .sum { display: contents; }
.sum-card {
  order: 2; color: var(--white); position: relative; overflow: hidden; border-radius: 22px; padding: 18px;
  background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 50%, var(--hero-3) 118%); box-shadow: var(--sh-hero);
}
.sum-card > h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sum-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.sum-card dl > div { min-width: 0; }
.sum-card dt { font-size: 13px; font-weight: 600; color: var(--white); opacity: .85; }
.sum-card dd { margin: 2px 0 0; font-size: 19px; font-weight: 800; color: var(--white); letter-spacing: -.01em; overflow-wrap: anywhere; }
.sum-card dl > div:last-child:nth-child(3), .sum-card dl:not(:has(> div:nth-child(3))) > div:first-child {
  grid-row: 1; grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid var(--glass-line);
}
.sum-card dl > div:last-child:nth-child(3) dt, .sum-card dl:not(:has(> div:nth-child(3))) > div:first-child dt { font-size: 14px; opacity: 1; }
.sum-card dl > div:last-child:nth-child(3) dd, .sum-card dl:not(:has(> div:nth-child(3))) > div:first-child dd {
  font-size: 40px; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px;
}
.sale > .panel:has([data-ui$="-client-card"]), .sale > .paired-cards { order: 1; }
.sale > .panel:has([data-ui$="-invoice-number"]) { order: 0; }
.sale > * { order: 3; }
.sum-actions {
  order: 9; position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 4; margin: 0 -16px; padding: 10px 16px;
  background: var(--card); border-top: 1px solid var(--line); box-shadow: var(--sh-bar);
}
.sum-actions .primary { flex: 1; min-height: 48px; font-size: 15px; }
.sum-actions [type="reset"] { min-height: 48px; }

@media (min-width: 1100px) {
  .sale { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px 20px; align-items: start; }
  .sale > * { grid-column: 1; }
  .sale > .sum {
    display: flex; flex-direction: column; gap: 12px; grid-column: 2; grid-row: 1 / span 12; position: sticky; top: 20px;
  }
  .sum-card dl { grid-template-columns: minmax(0, 1fr); }
  .sum-actions { position: static; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; flex-direction: column; align-items: stretch; }
  .sum-actions [type="reset"] { background: none; box-shadow: none; color: var(--teal); }
  .sale [data-ui="ticket-flight-row"] > .field-grid { grid-template-columns: 1.4fr 1.1fr .75fr .75fr 1.15fr; }
  .sale [data-ui="ticket-flight-row"] .field:nth-child(n) { grid-column: auto; }
  .sale [data-ui="ticket-passenger-row"] > .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 8. Money in / money out: same frame as the sale forms */
.sale.cash > *, .sale.cash .sum > * { order: 3; }
.sale.cash .sum > .sum-actions { order: 9; }
.left-card > h2.lab {
  position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal;
  font-size: 14px; font-weight: 600; color: var(--white);
}
.left-card .big { display: block; margin-top: 6px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--white); overflow-wrap: anywhere; }
.left-card .note { margin-top: 10px; font-size: 13px; color: var(--white); opacity: .85; }
.sum .checkbox, .sale.cash > .checkbox {
  background: var(--card); border-radius: var(--radius-card); padding: 10px 16px; box-shadow: var(--sh); font-size: 14px;
}
.alloc .ah { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.alloc .ah .add { margin: -4px -6px 0 0; }
.allocation-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 210px); gap: 8px 12px; align-items: center; padding: 12px 0;
}
.allocation-row > * + * { margin-top: 0; }
.allocation-row p { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink2); }
.allocation-row p [data-ui="allocation-number"] { font-size: 15px; color: var(--ink); }
.allocation-row p strong { color: var(--ink); }
.sale.cash .field-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
@media (min-width: 1100px) {
  .sale.cash .field-grid > [data-ui$="-party-section"], .sale.cash .field-grid > [data-ui="payment-expense-section"] { grid-column: span 2; }
}

/* 9. Who owes us / who we owe */
.page-seg { display: flex; align-self: flex-start; width: max-content; max-width: 100%; margin: -4px 0 0; }
.page-seg .sg span { font-size: 14px; padding: 7px 16px; }
.filter { align-items: end; }
.filter .field { flex: 1 1 150px; }
.filter > button { min-height: 59px; }
.owed-sum .stat { font-size: 30px; }
.owed-sum .sub { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.owed-sum svg.stack { display: block; height: 12px; border-radius: 6px; overflow: hidden; margin-top: 14px; }
.stack .b0, .buckets i.b0 { fill: var(--chart-1); background: var(--chart-1); }
.stack .b1, .buckets i.b1 { fill: var(--late); background: var(--late); }
.stack .b2, .buckets i.b2 { fill: var(--over); background: var(--over); }
.stack .bg { fill: var(--card); }
.buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.buckets > div { background: var(--soft); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.buckets dt { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.buckets i { width: 10px; height: 10px; border-radius: 3px; display: block; flex: none; }
.buckets dd { margin: 2px 0 0; font-size: 15px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
th.num, td.num { text-align: right; white-space: nowrap; }
.owed-table td { vertical-align: middle; }
.owed-table .c-party { font-weight: 600; color: var(--ink); }
.owed-table .c-bal { font-weight: 800; }
.owed-table .k { display: none; }
.owed-table .chip { white-space: nowrap; }
.empty { color: var(--ink2); font-size: 14px; }

/* phone: each open item is a small card */
@media screen and (max-width: 759px) {
  .owed-table { overflow: visible; background: none; box-shadow: none; }
  .owed-table table, .owed-table tbody { display: block; }
  .owed-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .owed-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; background: var(--card);
    border-radius: 16px; padding: 12px 14px; box-shadow: var(--sh); margin-bottom: 10px;
  }
  .owed-table td { padding: 0; border: 0; min-width: 0; }
  .owed-table .k { display: inline; color: var(--ink2); font-weight: 500; }
  .owed-table .c-party { grid-column: 1; grid-row: 1; font-size: 15px; }
  .owed-table .c-bal { grid-column: 2; grid-row: 1; font-size: 16px; }
  .owed-table .c-voucher { grid-column: 1; grid-row: 2; font-size: 13px; }
  .owed-table .c-voucher a { min-height: 32px; font-weight: 600; }
  .owed-table .c-orig { grid-column: 2; grid-row: 2; font-size: 13px; color: var(--ink2); }
  .owed-table .c-due { grid-column: 1; grid-row: 3; font-size: 13px; color: var(--ink); }
  .owed-table .c-age { grid-column: 2; grid-row: 3; }
}

/* 10. Printed documents: invoice, receipt, payment, credit note (screen view; print.css trims it for paper) */
.page:has(> .document) > * { max-width: 860px; margin-inline: auto; }
.page:has(> .document) > .actions { width: 100%; }
.document.panel { max-width: 860px; margin-inline: auto; padding: 28px 22px; border-radius: 18px; }
.document > * + * { margin-top: 16px; }
.document-header { justify-content: space-between; padding-bottom: 16px; border-bottom: 2px solid var(--teal); }
.document-header p { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.document-header strong { font-size: 16px; color: var(--ink); }
.document .company-logo { max-height: 64px; width: auto; }
.document h1 { font-size: 24px; font-weight: 800; color: var(--teal); letter-spacing: -.01em; }
.document h2 { font-size: 15px; font-weight: 700; margin-top: 22px; }
.document-details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; background: var(--soft);
  border-radius: 12px; padding: 14px 16px;
}
.document-details dt { font-size: 12px; font-weight: 600; color: var(--ink2); }
.document-details dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.document .table-scroll { box-shadow: none; border-radius: 0; background: none; margin-top: 8px; }
.document th { background: var(--soft); font-size: 12px; }
.document th:first-child { border-radius: 8px 0 0 8px; } .document th:last-child { border-radius: 0 8px 8px 0; }
.document td { font-size: 14px; }
.document section p { font-size: 14px; }
.document section ul { padding-left: 18px; font-size: 14px; }
.document-total {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 24px;
  padding-top: 16px; border-top: 2px solid var(--teal);
}
.document-total .tot { order: 2; margin-left: auto; text-align: right; max-width: 460px; }
.document-total .tl { font-size: 14px; font-weight: 600; color: var(--ink2); display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.document-total .tl strong { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.document-total .words { margin-top: 4px; font-size: 13px; color: var(--ink2); }
.document-total .invoice-qr { order: 1; width: 96px; }
@media (min-width: 640px) { .document.panel { padding: 36px 40px; } }

/* 11. Hubs: Daily work and Reports as grouped lists (iOS settings style) */
.hub { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.hub > * + * { margin-top: 0; }
.hg h2 { font-size: 13px; font-weight: 700; color: var(--ink2); margin: 0 4px 8px; }
.hlist { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--sh); overflow: hidden; }
.hl {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px 10px 14px; text-decoration: none; color: var(--ink);
  position: relative;
}
.hl + .hl::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; border-top: 1px solid var(--line); }
.hl:hover { background: var(--soft); }
.hi-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--tint); color: var(--teal); display: grid; place-items: center; flex: none; }
.hi-ic.acc { background: var(--teal); color: var(--white); }
.hi-ic svg.i { width: 20px; height: 20px; }
.ht { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ht b { font-size: 15px; font-weight: 700; }
.ht small { font-size: 13px; color: var(--ink2); }
.hl svg.cv { width: 18px; height: 18px; color: var(--ink3); }
@media (min-width: 760px) { .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .hub { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 12. Phone tables: no word-by-word wrapping; the table scrolls inside its own card, the page never does */
@media screen and (max-width: 759px) {
  .table-scroll:not(.owed-table) table { width: max-content; min-width: 100%; }
  .table-scroll:not(.owed-table) th, .table-scroll:not(.owed-table) td { white-space: nowrap; padding: 10px; }
  .table-scroll:not(.owed-table) td:first-child, .table-scroll:not(.owed-table) th:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--card); white-space: normal; min-width: 130px; max-width: 170px;
    box-shadow: 1px 0 0 var(--line);
  }
}

/* 13. Sign in: white page so the logo sits clean, one wide button */
body.guest { background: var(--card); }
.guest .sign-in { box-shadow: none; padding: 8px 4px; }
.guest .sign-in h1 { font-size: 24px; }
.guest .sign-in > p { font-size: 14px; color: var(--ink2); margin-top: 4px; }
.guest .sign-in form { display: grid; gap: 12px; margin-top: 20px; }
.guest .sign-in form > * + * { margin-top: 0; }
.guest .sign-in .primary { width: 100%; min-height: 50px; font-size: 15px; margin-top: 4px; }
.guest-brand img { width: 170px; }
@media (min-width: 640px) { .guest .sign-in { box-shadow: inset 0 0 0 1px var(--line); padding: 28px; } }

/* 14. Invoice / receipt toolbar: one line on PC and phone (Asad 6 Dec) */
.doc-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
.doc-bar > * + * { margin-top: 0; }
.db-back {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 8px 0 2px; margin-left: -4px; flex: none;
  color: var(--teal); font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 12px;
}
.db-back svg.i { width: 20px; height: 20px; transform: rotate(180deg); stroke-width: 2.2; }
.db-back .wide { display: none; }
.db-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.db-mail { display: contents; }
.db-btn, .doc-bar button.db-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; height: 44px; padding: 0 14px; flex: none;
  border-radius: 12px; background: none; color: var(--ink); box-shadow: none;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.db-btn svg.i { width: 18px; height: 18px; color: var(--teal); }
.db-btn.primary { background: var(--teal); color: var(--white); box-shadow: var(--sh-accent); }
.db-btn.primary svg.i { color: var(--white); }
.db-btn:not(.primary):hover, .db-back:hover { background: var(--tint); }
@media (max-width: 400px) { .db-btn, .doc-bar button.db-btn { padding: 0 9px; gap: 5px; } .db-btn.primary { padding: 0 12px; } .db-tools { gap: 2px; } .doc-bar { gap: 4px; } }
@media (min-width: 640px) { .db-back .wide { display: inline; } .db-btn, .doc-bar button.db-btn { padding: 0 16px; } }

/* 15. Money in / Money out easy to find (Asad 6 Dec): side menu on a PC, "+ New" tab on phones */
.menu .nv.sub { display: none; }
.new-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.new-toggle:focus-visible + .new-btn .o { outline: 2px solid var(--focus); outline-offset: 2px; }
.new-btn .o {
  width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center;
  box-shadow: var(--sh-accent); margin-top: -20px; transition: transform .16s ease;
}
.new-btn .o svg.i { width: 24px; height: 24px; stroke-width: 2.2; }
.new-btn:active .o { transform: scale(.94); }
.new-toggle:checked + .new-btn .o { transform: rotate(45deg); }
.new-toggle:checked ~ .new-scrim { opacity: 1; pointer-events: auto; }
.new-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--card); border-radius: 20px 20px 0 0;
  padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); box-shadow: var(--sh-sheet);
  transform: translateY(105%); visibility: hidden; transition: transform .18s ease, visibility .18s;
}
.new-toggle:checked ~ .new-sheet { transform: none; visibility: visible; }
.ns-h { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 4px 10px; }
.ns-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ns-grid > * + * { margin-top: 0; }
.ns-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px;
  background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; text-align: center;
}
.ns-grid .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--card); color: var(--teal); display: grid; place-items: center; }
.ns-grid .ic svg.i { width: 20px; height: 20px; }
.ns-grid .acc .ic { background: var(--teal); color: var(--white); }
.ns-grid .m-in .ic { background: var(--good-bg); color: var(--good); }
.ns-grid .m-out .ic { background: var(--warn-bg); color: var(--warn-ink); }
.ns-all {
  display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; margin-top: 8px;
  color: var(--teal); font-size: 14px; font-weight: 600; text-decoration: none;
}
.ns-all svg.i { width: 16px; height: 16px; }
@media (max-width: 1099px) { .menu [data-ui="nav-work"] { display: none; } }
@media (min-width: 1100px) {
  .menu .nv.sub { display: flex; }
  .menu .nv.sub svg.i { color: var(--teal); }
  .new-toggle, .new-btn, .new-scrim, .new-sheet { display: none; }
}

/* 16. Voucher page: the whole invoice on the page, one-line actions, payments beside it (Asad 6 Dec) */
.vpage > * + * { margin-top: 14px; }
.vh > * + * { margin-top: 6px; }
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--ink2); }
.strip > * + * { margin-top: 0; }
.strip b { color: var(--ink); font-size: 15px; font-weight: 800; }
.vbar .cta { order: 3; }
.db-more { position: relative; flex: none; }
.db-more > summary { list-style: none; cursor: pointer; }
.db-more > summary::-webkit-details-marker { display: none; }
.db-more[open] > summary { background: var(--tint); }
.db-more .pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 4; min-width: 230px; padding: 6px; margin: 0;
  background: var(--card); border-radius: 14px; box-shadow: var(--sh-sheet);
}
.db-more .pop a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.db-more .pop a + a { margin-top: 0; }
.db-more .pop a svg.i { width: 18px; height: 18px; color: var(--teal); }
.db-more .pop a:hover { background: var(--tint); }
.db-more .pop a.danger, .db-more .pop a.danger svg.i { color: var(--crit-ink); }
.vgrid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.vgrid > * + * { margin-top: 0; }
.vpaper.document.panel { max-width: none; margin: 0; }
.vpaper .doc-title { font-size: 22px; font-weight: 800; color: var(--teal); letter-spacing: -.01em; margin-top: 16px; }
.vpaper h3 { font-size: 15px; font-weight: 700; margin-top: 22px; }
.vpaper .k { display: none; }
.vside { display: grid; gap: 14px; }
.vside > * + * { margin-top: 0; }
.vside .panel > * + * { margin-top: 8px; }
.vside h2 { font-size: 15px; font-weight: 700; }
.kv { display: grid; grid-template-columns: minmax(min-content, 1fr) auto; gap: 8px 12px; margin: 0; font-size: 14px; }
.kv dt { color: var(--ink2); font-size: 14px; font-weight: 500; }
.kv dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kv dd.good { color: var(--good); }
.kv dd.bad { color: var(--crit-ink); }
.vside .empty, .vside .hint { font-size: 13px; color: var(--ink2); }
.vside .add { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--teal); font-size: 14px; font-weight: 600; text-decoration: none; }
.vside .add svg.i { width: 18px; height: 18px; }
@media (max-width: 759px) {
  .vbar { flex-wrap: wrap; }
  .vbar .cta { order: -1; flex: 1 1 100%; justify-content: center; height: 48px; font-size: 15px; margin-bottom: 4px; }
  .vpaper.document.panel { padding: 18px 16px; }
  .vpaper .document-header { flex-direction: column; gap: 8px; }
  .vpaper .company-logo { max-height: 46px; }
  .vpaper .document-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vpaper .lines table, .vpaper .lines tbody { display: block; width: auto; min-width: 0; }
  .vpaper .lines thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .vpaper .lines tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .vpaper .lines td, .vpaper .lines td:first-child {
    padding: 0; border: 0; white-space: normal; position: static; box-shadow: none; min-width: 0; max-width: none; background: none;
  }
  .vpaper .pax td:nth-child(1) { font-weight: 700; }
  .vpaper .pax td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 13px; color: var(--ink2); }
  .vpaper .pax td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  .vpaper .pax td:nth-child(4) { grid-column: 2; grid-row: 2; font-size: 13px; color: var(--ink2); text-align: right; }
  .vpaper .pax .k { display: inline; }
  .vpaper .fl tr { grid-template-columns: auto auto minmax(0, 1fr); }
  .vpaper .fl td:nth-child(1) { grid-column: 1 / -1; font-weight: 700; }
  .vpaper .fl td:nth-child(n+2) { font-size: 13px; color: var(--ink2); }
}
@media (min-width: 1100px) {
  .vgrid { grid-template-columns: minmax(0, 1fr) 300px; }
  .vside { position: sticky; top: 20px; }
}

/* 17. Client and supplier page: Money in / Money out first (Asad 6 Dec) */
.ptop > * + * { margin-top: 8px; }
.pbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pbar > * + * { margin-top: 0; }
.pfigs dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.pfigs dl > * + * { margin-top: 0; }
.pfigs dl > div { background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--sh); min-width: 0; }
.pfigs dt { font-size: 13px; color: var(--ink2); }
.pfigs dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pfigs .big dd { font-size: 20px; font-weight: 800; white-space: nowrap; overflow-wrap: normal; }
.pfigs dd.bad { color: var(--crit-ink); }
@media (min-width: 760px) { .pfigs .big { grid-column: span 2; } }
@media (max-width: 759px) {
  .pbar { gap: 2px; }
  .pbar .primary { flex: 1 1 100%; justify-content: center; height: 48px; font-size: 15px; margin-bottom: 4px; }
  .pfigs dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfigs .big { grid-column: 1 / -1; }
}

/* 18. Statement of account: one sheet for screen, print and PDF (Asad 6 Dec: "Professional Way. With Holiday Tower Logo, With Columns") */
.st-tools > * + * { margin-top: 8px; }
.stmt.panel { max-width: 900px; margin-inline: auto; padding: 22px 18px; border-radius: 18px; }
.stmt > * + * { margin-top: 14px; }
.stmt .document-header { justify-content: space-between; padding-bottom: 14px; border-bottom: 2px solid var(--teal); }
.stmt .company-logo { max-height: 64px; width: auto; }
.stmt .co { text-align: right; max-width: 340px; }
.stmt .co p { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.stmt .co strong { font-size: 16px; color: var(--ink); }
.st-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.st-name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.st-title span { font-size: 13px; color: var(--ink2); }
.st-who { display: grid; gap: 12px 24px; grid-template-columns: minmax(0, 1fr); }
.st-who > * + * { margin-top: 0; }
.st-who .lab, .st-sum .lab { font-size: 12px; font-weight: 600; color: var(--ink2); }
.st-who h2 { font-size: 16px; font-weight: 700; margin: 2px 0 0; }
.st-who .s { font-size: 14px; color: var(--ink2); }
.st-who dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; margin: 0; font-size: 14px; align-self: start; }
.st-who dt { color: var(--ink2); }
.st-who dd { margin: 0; font-weight: 600; text-align: right; }
.st-sum { display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.st-sum > * + * { margin-top: 0; }
.st-sum > div { padding: 10px 12px; border-left: 1px solid var(--line); min-width: 0; }
.st-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-sum > div:first-child { border-left: 0; padding-left: 0; }
.st-sum .close { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
.st-sum .n { font-size: 16px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-sum .close .lab { color: var(--ink); }
.st-sum .close strong { font-size: 22px; font-weight: 800; color: var(--teal); letter-spacing: -.01em; }
.st-sum .close small { font-size: 13px; font-weight: 700; }
.stmt h3 { font-size: 15px; font-weight: 700; margin-top: 22px; }
.stmt .table-scroll { box-shadow: none; border-radius: 0; background: none; margin-top: 6px; }
.stmt table { border-collapse: collapse; }
.stmt th { background: none; font-size: 12px; font-weight: 700; color: var(--ink2); border-bottom: 1.5px solid var(--ink2); white-space: nowrap; }
.stmt td { font-size: 14px; border-bottom: 1px solid var(--line); }
.stmt tfoot th, .stmt tfoot td { font-weight: 800; color: var(--ink); border-bottom: 0; border-top: 1.5px solid var(--ink2); }
.stmt .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stmt .cur { display: none; }
.stmt td a { display: inline; min-height: 0; min-width: 0; padding: 0; }
.stmt tbody th { font-size: 14px; font-weight: 600; color: var(--ink); text-align: left; border-bottom: 1px solid var(--line); white-space: normal; }
.st-age tbody th { text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); border-bottom: 0; background: none; }
.st-age .tot { font-weight: 800; color: var(--ink); }
.st-age td.late { color: var(--crit-ink); font-weight: 700; }
.st-note { font-size: 12px; color: var(--ink2); }
.st-foot { font-size: 13px; color: var(--ink2); padding-top: 10px; border-top: 1px solid var(--line); }
.owed-table.in-sheet th:first-child, .owed-table.in-sheet .c-party { display: none; }
@media screen and (max-width: 759px) {
  .stmt .owed-table.in-sheet td { border-bottom: 0; }
  .owed-table.in-sheet tr { padding-top: 10px; padding-bottom: 10px; }
  .owed-table.in-sheet .c-voucher { grid-row: 1; font-size: 15px; }
  .owed-table.in-sheet .c-due { grid-row: 2; }
  .owed-table.in-sheet .c-age { grid-row: 3; grid-column: 1; }
}
@media (min-width: 640px) {
  .stmt.panel { padding: 36px 40px; }
  .st-who { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .st-sum { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); }
  .st-sum .close { grid-column: auto; border-top: 0; border-left: 1px solid var(--line); padding-left: 12px; }
}
