/* the stays calendar (24 October 2026): a month grid at a desk, a list of days on a phone. Admin only, the app's own tokens. */
.kc { margin-top: 14px; padding: 16px; border-radius: var(--r); }
.kc-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.kc-nav { display: flex; gap: 8px; align-items: center; }
.kc-nav h2 { margin: 0 6px; font-size: 20px; min-width: 170px; text-align: center; }
.kc-ctl { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.kc-ctl .fld { min-width: 190px; }
.kc-tog { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--fog-70); cursor: pointer; padding-bottom: 10px; }
.kc-tog input { width: 16px; height: 16px; accent-color: var(--volt); }
.kc-warn { color: var(--warn); font-weight: 400; font-size: 12px; }
.kc-dow { display: grid; grid-template-columns: repeat(7, 1fr); }
.kc-dow span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fog-50); padding: 6px 8px; }
.kc-grid { border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden; }
.kc-week { position: relative; display: grid; border-top: 1px solid var(--stroke); }
.kc-week:first-child { border-top: 0; }
.kc-cells, .kc-pills { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(7, 1fr); }
.kc-pills { grid-template-columns: repeat(14, 1fr); }
.kc-cells { min-height: calc(40px + var(--lanes) * 28px + 10px); }
.kc-cell { position: relative; border-left: 1px solid var(--stroke); padding: 6px 8px; }
.kc-cell:first-child { border-left: 0; }
.kc-cell.out { background: color-mix(in srgb, var(--fog) 3%, transparent); }
.kc-cell.out .kc-num { opacity: .4; }
.kc-cell.past .kc-num { color: var(--fog-50); }
.kc-num { font-size: 13px; font-weight: 600; color: var(--fog-70); }
.kc-num.bk { color: var(--fog); }
.kc-cell.today .kc-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--volt); color: var(--volt-ink); }
.kc-clean { position: absolute; top: 7px; right: 7px; min-width: 18px; height: 18px; border-radius: 999px; background: #a78bfa; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 4px; }
.kc-clean.s-offered, .kc-clean.s-unassigned, .kc-clean.s-nobody { background: var(--warn); }
.kc-clean.s-done, .kc-clean.s-completed, .kc-clean.s-checked { background: var(--good); }
.kc-pills { padding-top: 34px; grid-auto-rows: 26px; row-gap: 2px; pointer-events: none; align-content: start; }
.kc-pill { pointer-events: auto; display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0 2px; padding: 0 8px; height: 24px; border-radius: 999px; text-decoration: none;
  background: color-mix(in srgb, var(--pc) 22%, var(--panel)); border: 1px solid color-mix(in srgb, var(--pc) 55%, transparent); box-shadow: inset 3px 0 0 var(--hc); color: var(--fog); font-size: 12px; font-weight: 600; overflow: hidden; }
.kc-pill:hover { background: color-mix(in srgb, var(--pc) 34%, var(--panel)); }
.kc-pill.clipl { margin-left: 0; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.kc-pill.clipr { margin-right: 0; border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.kc-pill.gone { opacity: .45; text-decoration: line-through; }
.kc-src { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); flex: 0 0 auto; }
.kc-g { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.kc-h { font-size: 10px; letter-spacing: .06em; color: var(--fog-50); flex: 0 0 auto; }
.kc-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 12px; color: var(--fog-70); }
.kc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.kc-legend .kc-cl-key { background: #a78bfa; }
.kc-note { flex-basis: 100%; }
.kc-agenda { display: none; }
.kc-day { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--stroke); }
.kc-day.today .kc-dl b { color: var(--volt); }
.kc-dl { width: 40px; flex: 0 0 auto; text-align: center; } .kc-dl b { display: block; font-size: 20px; font-family: var(--font-d); } .kc-dl span { font-size: 11px; color: var(--fog-50); text-transform: uppercase; }
.kc-dr { flex: 1; display: grid; gap: 6px; min-width: 0; }
.kc-ev { display: block; font-size: 14px; color: var(--fog); text-decoration: none; padding: 8px 10px; border-radius: 10px; border-left: 3px solid var(--pc, #a78bfa); background: var(--glass); overflow-wrap: anywhere; }
.kc-ev span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fog-50); margin-right: 4px; }
.kc-ev.cl { --pc: #a78bfa; }
@media (max-width: 760px) {
  .kc-grid-wrap { display: none; }
  .kc-agenda { display: block; }
  .kc-nav h2 { min-width: 0; font-size: 18px; }
  .kc-ctl .fld { min-width: 0; width: 100%; }
}

/* ═════ invoices, extras, reviews and money (24 October 2026) ═════ */
.gi-note, .mn-why { color: var(--fog-70); font-size: 14px; }
.gi-form h3 { font-size: 15px; }
.gi-lines { display: grid; gap: 10px; }
.gi-line { display: grid; grid-template-columns: 150px 1fr 80px 120px 36px; gap: 10px; align-items: end; }
.gi-x { align-self: center; font-size: 18px; }
.gi-total { margin-left: auto; font-size: 15px; } .gi-total b { font-size: 20px; margin-left: 6px; }
.ex-off td { opacity: .5; }
.ex-homes { display: flex; flex-wrap: wrap; gap: 8px 16px; } .ex-homes label, .ex-tog { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--fog-70); }
.ex-homes input, .ex-tog input { width: 16px; height: 16px; accent-color: var(--volt); }
.ex-stay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } .ex-stay h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--fog-50); }
.ex-stay .td-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--stroke); }
.ex-add { display: flex; gap: 8px; margin-top: 8px; } .ex-add select { flex: 1; min-width: 0; font: inherit; color: var(--fog); background: rgba(255,255,255,.05); border: 1px solid var(--stroke); border-radius: 10px; padding: 8px 10px; }
html[data-theme="light"] .ex-add select { background: #fff; }
.rv-avgs { display: flex; flex-wrap: wrap; gap: 12px; } .rv-avg { border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 14px; display: grid; } .rv-avg b { font-size: 26px; font-family: var(--font-d); } .rv-avg small { color: var(--fog-50); }
.rv-list { display: grid; gap: 12px; margin-top: 14px; }
.rv-h { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .rv-h .btnrow { margin-left: auto; }
.rv-score { font-weight: 700; color: #f5a524; }
.rv-reply { border-left: 3px solid var(--volt); padding-left: 12px; margin-top: 8px; } .rv-reply p { margin: 4px 0 0; }
.mn-ctl { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; } .mn-ctl .fld { min-width: 160px; }
.mn-tbl th[scope="row"] { text-align: left; font-weight: 600; color: var(--fog-70); white-space: nowrap; }
.mn-tbl .num { text-align: right; }
.mn-res td, .mn-res th { border-top: 2px solid var(--stroke-2); font-weight: 700; color: var(--fog) !important; }
.mn-nk { color: var(--warn); font-weight: 600; cursor: help; }
.mn-why details { margin-top: 8px; } .mn-why summary { cursor: pointer; color: var(--fog); }
.mn-basis { font-size: 12px; margin-top: 12px; }
@media (max-width: 760px) {
  .gi-line { grid-template-columns: 1fr 70px; } .gi-line .gi-ld, .gi-line .fld:nth-child(2) { grid-column: 1 / -1; max-width: none; } .gi-u { grid-column: 1; } .gi-x { grid-column: 2; }
  .ex-stay { grid-template-columns: 1fr; }
  .mn-ctl .fld { min-width: 0; flex: 1 1 140px; }
}

/* ── the invoice: one A4 sheet, invoice 3026's layout (MAINE STAYS/FINANCE/INVOICES OUT/_tools/build_proforma.py), colours from the design ── */
.gi-doc-wrap { margin-top: 14px; overflow: hidden; }
.gi-doc { display: block; }
.gi-sheet { width: 210mm; height: 296mm; display: flex; flex-direction: column; background: #fff; color: #1a1a1a; font-family: Helvetica, Arial, sans-serif; font-size: 9.6pt;
  line-height: 1.45; box-shadow: var(--shadow-sm); border-radius: 4px; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; text-align: left; letter-spacing: normal; }
.gi-sheet * { box-sizing: border-box; margin: 0; padding: 0; }
.gi-sheet .gs-rule { height: 1mm; background: var(--gi-teal); flex: none; }
.gi-sheet .gs-banner { flex: none; height: 38mm; background-size: cover; background-color: var(--gi-navy); display: flex; justify-content: flex-end; align-items: center; padding: 0 12mm; color: #fff; }
.gi-sheet .gs-banner .gs-t { text-align: right; }
.gi-sheet .gs-banner h1 { font-size: 25pt; letter-spacing: 2px; font-weight: 700; color: #fff; font-family: Helvetica, Arial, sans-serif; line-height: 1.2; }
.gi-sheet .gs-banner .gs-n { font-size: 12pt; color: #d6eff1; padding-top: 1mm; }
.gi-sheet .gs-logo { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 3mm 12mm 0; min-height: 20mm; }
.gi-sheet .gs-logo img { height: 17mm; }
.gi-sheet .gs-nologo { font-weight: 700; font-size: 14pt; color: var(--gi-navy); }
.gi-sheet .gs-cols { flex: none; display: flex; gap: 6mm; padding: 3mm 12mm 0; }
.gi-sheet .gs-col { flex: 1; min-width: 0; }
.gi-sheet .gs-col.gs-wide { flex: 1.15; }
.gi-sheet .gs-sect { color: var(--gi-navy); font-weight: 700; font-size: 7.5pt; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2mm; }
.gi-sheet .gs-sect::after { content: ""; display: block; width: 24mm; border-bottom: 1.4px solid var(--gi-teal); margin-top: 1mm; }
.gi-sheet .gs-nw { white-space: nowrap; }
.gi-sheet .gs-det div { display: flex; margin-bottom: 1mm; }
.gi-sheet .gs-det span:first-child { color: var(--gi-navy); font-weight: 700; min-width: 27mm; white-space: nowrap; }
.gi-sheet .gs-paybox { flex: none; margin: 4mm 12mm 0 auto; width: 92mm; border-radius: 2.5mm; padding: 3mm 4mm; text-align: center; color: #fff;
  background: linear-gradient(135deg, #0d1830, var(--gi-navy) 60%, #123a4a); border: 1px solid rgba(43,212,212,.35); }
.gi-sheet .gs-paybox .gs-h { font-weight: 700; font-size: 10pt; }
.gi-sheet .gs-paybox .gs-h span { font-weight: 400; color: #cfe8ec; font-size: 9pt; }
.gi-sheet .gs-paybox a { display: inline-block; margin-top: 2mm; background: var(--gi-teal); color: #fff; text-decoration: none; font-weight: 700; font-size: 10.5pt; padding: 2.2mm 7mm; border-radius: 2mm; }
.gi-sheet .gs-paybox .gs-s { font-size: 7.5pt; color: #a9c3cc; padding-top: 1.5mm; }
.gi-sheet .gs-tbl { flex: none; padding: 5mm 12mm 0; }
.gi-sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.gi-sheet th { background: var(--gi-navy); color: #fff; font-size: 7.5pt; letter-spacing: .6px; padding: 2.2mm 3mm; text-align: left; font-weight: 700; text-transform: none; }
.gi-sheet td { padding: 2.6mm 3mm; border: 0.3mm solid #CCCCCC; vertical-align: top; color: #1a1a1a; background: #fff; }
.gi-sheet tr.gs-alt td { background: #F5F6F8; }
.gi-sheet .gs-c { text-align: center; }
.gi-sheet .gs-r { text-align: right; white-space: nowrap; }
.gi-sheet .gs-mid { flex: none; display: flex; justify-content: flex-end; padding: 5mm 12mm 5mm; }
.gi-sheet .gs-tot { width: 62mm; flex: none; align-self: flex-start; }
.gi-sheet .gs-tot div { display: flex; justify-content: space-between; padding: 1mm 0; color: #555; }
.gi-sheet .gs-tot div span:last-child { color: #1a1a1a; }
.gi-sheet .gs-tot .gs-line { border-top: 0.3mm solid #CCCCCC; margin: 1.5mm 0; padding: 0; }
.gi-sheet .gs-tot .gs-grand span:first-child { color: var(--gi-navy); font-weight: 700; font-size: 11pt; }
.gi-sheet .gs-tot .gs-grand span:last-child { color: var(--gi-teal); font-weight: 800; font-size: 14pt; }
.gi-sheet .gs-gnote { flex: none; padding: 0 12mm; color: #444; }
.gi-sheet .gs-foot { margin-top: auto; flex: none; }
.gi-sheet .gs-band { background-size: cover; background-color: #0a1224; color: #cdd6e2; padding: 4mm 12mm 3.5mm; }
.gi-sheet .gs-band .gs-ph { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2mm; gap: 4mm; }
.gi-sheet .gs-band .gs-ph b { font-size: 8.5pt; letter-spacing: 1.5px; color: var(--gi-glow); }
.gi-sheet .gs-band .gs-ph span { font-size: 8pt; color: #d6e6ea; text-align: right; }
.gi-sheet .gs-band .gs-acc { display: flex; gap: 10mm; }
.gi-sheet .gs-band .gs-acc > div { flex: 1; }
.gi-sheet .gs-band .gs-acc .gs-t { color: var(--gi-glow); font-weight: 700; font-size: 8pt; margin-bottom: 1mm; }
.gi-sheet .gs-band .gs-acc .gs-kv { display: flex; font-size: 8.5pt; margin-bottom: .6mm; }
.gi-sheet .gs-band .gs-acc .gs-kv span:first-child { color: #d6eff1; font-weight: 700; width: 30mm; flex: none; }
.gi-sheet .gs-band .gs-acc .gs-kv span:last-child { color: #fff; }
.gi-sheet .gs-band .gs-url { font-size: 8pt; color: #fff; word-break: break-all; }
.gi-sheet .gs-band .gs-legal { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; padding-top: 2.5mm; font-size: 7.6pt; }
.gi-sheet .gs-band .gs-legal i { color: #cdd6e2; }
.gi-sheet .gs-band .gs-legal .gs-r { color: #aeb8c6; text-align: right; white-space: nowrap; flex: none; }
.gi-sheet .gs-band hr { border: 0; border-top: 1px solid rgba(43,212,212,.25); margin: 2.5mm 0 2mm; }
.gi-sheet .gs-band .gs-co { font-size: 10.5pt; font-weight: 700; color: #fff; }
.gi-sheet .gs-band .gs-co span { color: #9fe3e8; font-size: 8.5pt; font-weight: 400; }
.gi-sheet .gs-band .gs-ct { font-size: 8.5pt; color: #eef2f8; padding-top: .8mm; }
.gi-sheet .gs-band .gs-ct b { color: var(--gi-glow); }
/* the design page: the form beside the sheet */
.gi-design { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.25fr); gap: 16px; margin-top: 14px; align-items: start; }
.gi-dform h3 { font-size: 15px; margin: 18px 0 8px; }
.gi-dprev { position: sticky; top: 76px; margin-top: 0; }
.gi-prevnote { margin-bottom: 6px; font-size: 13px; }
.gi-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 12px 0; }
.gi-lib figure { margin: 0; display: grid; gap: 4px; }
.gi-thumb { aspect-ratio: 4 / 3; border-radius: 8px; background: var(--glass-2, rgba(255,255,255,.06)); overflow: hidden; }
.gi-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gi-lib figcaption { font-size: 12px; color: var(--fog-70); overflow-wrap: anywhere; }
.gi-up { cursor: pointer; }
.gi-words summary { cursor: pointer; font-weight: 600; margin: 18px 0 8px; }
.gi-ld { max-width: 170px; }
/* printing: the sheet alone, at its own size, on one page (the deal packs' pattern: everything else is not drawn at all) */
@media print {
  html.gi-printing, html.gi-printing body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  html.gi-printing body > *:not(#app), html.gi-printing #rail, html.gi-printing #topbar, html.gi-printing #toasts { display: none !important; }
  html.gi-printing #view > *:not(.gi-doc-wrap):not(.gi-design), html.gi-printing .gi-design > *:not(.gi-dprev), html.gi-printing .gi-prevnote { display: none !important; }
  html.gi-printing #app, html.gi-printing #main, html.gi-printing #view, html.gi-printing .gi-design, html.gi-printing .gi-doc-wrap, html.gi-printing .gi-doc {
    display: block !important; position: static !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; background: none !important;
    min-height: 0 !important; width: auto !important; max-width: none !important; animation: none !important; transform: none !important; opacity: 1 !important; border: 0 !important; box-shadow: none !important; }
  html.gi-printing .gi-sheet { zoom: 1 !important; box-shadow: none !important; border-radius: 0 !important; break-inside: avoid; page-break-after: avoid; }
}
@media (max-width: 900px) { .gi-design { grid-template-columns: 1fr; } .gi-dprev { position: static; } }
.gi-dform input[type="color"] { height: 42px; padding: 4px; cursor: pointer; }
.gi-dform input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; } .gi-dform input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 6px; }
