/* RITE4SITE Bookings — shared styles. The layout and components began as a copy of the HMC training booking
   portal's; the RITE4SITE look is the block at the very end of this file (white header, the lilac of the RITE4SITE
   swirl, black type, as the logo on hmcgroupsolutions.com.au/occupational-screening, read 7 Oct 2026). */
:root {
  --teal: #02a0b0; --teal-d: #02a0b0; --teal-l: #e5f6f7; --btn-hover: #333333; --btn-hover-line: #414345;
  --btn-shadow: 0 3px 11px rgba(0, 0, 0, .25);
  --header: #333333;
  --ink: #111111; --muted: #5a5f63; --line: #dcdfe1; --bg: #eeeeee; --card: #fff;
  --red: #b3261e; --red-l: #fdeceb; --amber: #8a5300; --amber-l: #fff3df; --green: #1f6b36; --green-l: #e6f4ea;
  --r: 10px;
  color-scheme: light;
  font-family: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
}
h1, h2, h3 { font-weight: 700; }
.brand-logo { display: block; height: 28px; width: auto; }
.brand-name { border-left: 1px solid #6b6b6b; padding-left: 12px; font-weight: 600; letter-spacing: .01em; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 15px; line-height: 1.45; color: var(--ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .6em; }
a { color: var(--teal-d); }
small { font-size: .82rem; }
.muted { color: var(--muted); }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid #0a66b0; outline-offset: 2px; }
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  background: var(--teal); color: #fff; border: 1px solid transparent; border-radius: 50px;
  padding: .55em 1.5em; min-height: 44px; font-weight: 400; font-size: 15px;
  text-decoration: none; box-shadow: var(--btn-shadow);
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover-line); color: #fff; }
.btn:disabled { background: #c5ccd1; border-color: #c5ccd1; color: #fff; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--teal); border-color: var(--teal); }
.btn.ghost:hover { background: var(--btn-hover); border-color: var(--btn-hover-line); color: var(--teal); }
.btn.ghost:disabled { color: #9aa4aa; border-color: #d5dadd; background: #fff; }
.btn.danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red-l); }
.btn.small { min-height: 34px; padding: .3em .9em; font-size: .75rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--teal-d); text-decoration: underline; font-weight: 600; }
.eyebrow { margin: 0 0 2px; color: var(--teal-d); font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }

/* ---------- forms */
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 4px; margin: 0 0 14px; background: #fff; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 14px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  padding: .55em .7em; min-height: 44px; border: 1px solid #aeb8bf; border-radius: 8px;
}
.field input[type=file] { padding: .45em; }
.field textarea { min-height: 76px; resize: vertical; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--red); background: var(--red-l); }
.err { display: block; color: var(--red); font-size: .82rem; margin-top: 3px; font-weight: 600; }
.hint { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.check.has-err > span { color: var(--red); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 4px 0 12px; }
.radio-cards label { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; gap: 10px; cursor: pointer; background: #fff; }
.radio-cards label:has(input:checked) { border-color: var(--teal); background: var(--teal-l); }
.radio-cards input { accent-color: var(--teal); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.alert { border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; background: var(--amber-l); color: #5f3a00; }
.alert.err { background: var(--red-l); color: var(--red); }
.info-box { background: #fafbfb; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 12px; }
.info-box ul, .info-box ol { margin: .2em 0 .6em; padding-left: 1.2em; }
.empty { background: #fff; border: 1px dashed #c6cdd2; border-radius: var(--r); padding: 20px; text-align: center; }
.pill { display: inline-block; border-radius: 50px; padding: .1em .65em; font-size: .75rem; font-weight: 600; background: #eceff1; color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--green-l); color: var(--green); }
.pill.warn { background: var(--amber-l); color: var(--amber); }
.pill.bad { background: var(--red-l); color: var(--red); }

/* ---------- booking panel (sits inside the course page) */
body.widget { background: #fff; }
.w { max-width: 900px; margin: 0 auto; padding: 8px 12px 16px; }
/* Inside the HMC website the panel fills the page's column, so it lines up with what's around it. */
.embedded .w, .embedded .w.wide { max-width: none; padding-left: 1px; padding-right: 1px; }
.w-head { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.w-head h1 { font-size: 1.2rem; margin: 0; }
.tabs { display: inline-flex; background: #edf0f2; border-radius: 50px; padding: 4px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; border-radius: 50px; padding: .45em 1.05em; min-height: 40px; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
/* The employer option stands out on every page (Harrison, 15 Sep 2026). */
.tabs button.tab-employer { background: var(--teal); color: #fff; box-shadow: var(--btn-shadow); }
.tabs button.tab-employer:hover { background: var(--btn-hover); }
.tabs button.tab-employer[aria-selected=true] { background: var(--btn-hover); color: #fff; box-shadow: var(--btn-shadow); }
select[multiple] { min-height: 220px; padding: 6px; }
.info-box.privacy p { font-size: .85rem; color: var(--muted); margin: 0 0 .5em; }
.info-box.privacy p:last-child { margin-bottom: 0; }
.code-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.code-row input { flex: 1 1 200px; text-transform: uppercase; }
.discount-box .ok-note { margin: 8px 0 0; color: var(--green); font-weight: 600; }
.discount-box .err { margin: 8px 0 0; color: var(--red); font-weight: 600; }
.field.wide { grid-column: 1 / -1; }
fieldset.also { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px 14px; margin: 0 0 14px; }
fieldset.also legend { font-weight: 700; padding: 0 6px; }
.also-row { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 10px; background: #fafbfb; }
.also-row .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.also-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; }
.also-foot .days-field { max-width: 180px; }
@media (max-width: 600px) { .also-row .grid3 { grid-template-columns: 1fr; } }
.weekdays { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 2px; }
.check.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .9rem; }
.date-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0; }
.date-add input { flex: 0 1 190px; }
ul.picked { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
ul.picked li { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-l); border-radius: 50px; padding: 3px 12px; font-size: .85rem; }
ul.picked li.muted { background: none; padding-left: 0; }

.employer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: var(--teal-l); border: 2px solid var(--teal); border-radius: var(--r); padding: 12px 16px; margin: 0 0 14px; }
.employer-cta p { margin: 0; flex: 1 1 280px; }
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 4px solid var(--line); font-size: .85rem; color: var(--muted); min-width: 0; }
.stepper li span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-size: .72rem; font-weight: 700; }
.stepper li.on { border-color: var(--teal); color: var(--ink); font-weight: 600; }
.stepper li.on span { background: var(--teal); color: #fff; }
.stepper li.done { border-color: var(--teal); }
.stepper li.done span { background: var(--teal-l); color: var(--teal-d); }
@media (max-width: 520px) { .stepper li:not(.on) b { display: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { border: 1px solid #c6cdd2; background: #fff; border-radius: 50px; padding: .35em .95em; min-height: 38px; }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }

.sessions { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 12px 20px -14px rgba(64,89,111,.45); }
.session { display: grid; grid-template-columns: 1.7fr 1fr 1fr auto 104px; grid-template-areas: "when where price seats act"; gap: 8px 16px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.session:first-child { border-top: 0; }
.session:nth-child(even) { background: #f9fafa; }
.s-when { grid-area: when; } .s-where { grid-area: where; } .s-price { grid-area: price; } .s-seats { grid-area: seats; } .session .btn { grid-area: act; }
.s-when strong { display: block; }
.s-when span, .s-price small { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }
.s-price { font-weight: 700; }
.session.is-full { color: var(--muted); }
.badge { display: inline-block; padding: .2em .65em; border-radius: 50px; background: var(--green-l); color: var(--green); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge.low { background: var(--amber-l); color: var(--amber); }
.badge.full { background: #eceff1; color: var(--muted); }
@media (max-width: 640px) {
  .session { grid-template-columns: 1fr auto; grid-template-areas: "when price" "where seats" "act act"; }
  .s-price, .s-seats { text-align: right; }
  .session .btn { width: 100%; }
}
.request-link { margin: 14px 0 0; text-align: center; color: var(--muted); }
.picked { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; background: var(--teal-l); border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; }
.person { position: relative; }
.person .remove { position: absolute; top: 10px; right: 14px; }
.add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -2px 0 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.actions .totals { margin-left: auto; }
.totals strong { font-size: 1.25rem; margin-left: 6px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 12px; }
.summary dl, dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dt { color: var(--muted); } dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.acks { margin: 6px 0 0; }
.stripe-sim { border: 2px dashed #635bff; border-radius: var(--r); padding: 20px; background: #f7f6ff; text-align: center; }
.stripe-sim .eyebrow { color: #4f46e5; }
.stripe-sim .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.finish { text-align: center; padding: 20px 4px; }
.tick { width: 56px; height: 56px; border-radius: 50%; background: var(--green-l); color: var(--green); display: grid; place-items: center; margin: 0 auto 10px; font-size: 28px; font-weight: 700; }
.finish .info-box { text-align: left; max-width: 540px; margin: 16px auto; }
/* Inside a course page the panel resizes itself, so it never needs its own scroll bars. */
html.embedded, html.embedded body { overflow: hidden; }
.proto { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 12px; }
.rto { font-size: .78rem; color: var(--muted); text-align: center; margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
details.entry { border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 10px 14px; margin: 0 0 14px; text-align: left; }
details.entry summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details.entry ul, .entry-box ul { margin: 8px 0 0; padding-left: 1.2em; }
details.entry li, .entry-box li { margin: 4px 0; overflow-wrap: anywhere; }
details.entry p { margin: 8px 0 0; }
.entry .source, .entry-box .source { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }
.step-title { font-size: 1rem; margin: 18px 0 8px; }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.unit-card { display: flex; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--card); cursor: pointer; }
.unit-card:has(input:checked) { border-color: var(--teal); background: #e8f7f8; }
.unit-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.unit-card strong, .unit-card small { display: block; }
.unit-card small { color: var(--muted); font-size: .75rem; }
.price-ladder { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.price-ladder .on { color: var(--ink); font-weight: 600; }
.price-ladder small { color: var(--teal); font-weight: 600; }
.session.is-chosen { outline: 2px solid var(--teal); outline-offset: -2px; }
.split { display: grid; gap: 8px; }
.split-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--card); }
label.inline { margin-left: 14px; white-space: nowrap; cursor: pointer; }

/* ---------- staff calendar */
body.staff { min-height: 100vh; }
.topbar { background: var(--header); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo { background: var(--teal); color: #fff; border-radius: 6px; padding: 2px 8px; letter-spacing: .06em; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.topbar nav a { color: #cfd8dc; text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: .9rem; }
.topbar nav a[aria-current] { background: #4a4a4a; color: #fff; }
.flag { background: #ffcf4d; color: #111; border-radius: 50px; padding: 1px 10px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.wrap { padding: 16px 20px; max-width: 1440px; margin: 0 auto; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 10px; }
.toolbar h1 { font-size: 1.35rem; margin: 0 6px; min-width: 9.5em; }
.monthnav { display: flex; align-items: center; gap: 6px; }
.iconbtn { border: 1px solid #c6cdd2; background: #fff; border-radius: 8px; min-width: 40px; min-height: 40px; padding: 0 10px; }
.iconbtn:hover { background: var(--teal-l); }
.seg { display: inline-flex; border: 1px solid #c6cdd2; border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: .45em .95em; min-height: 40px; }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters input, .filters select { font: inherit; padding: .4em .6em; min-height: 40px; border: 1px solid #aeb8bf; border-radius: 8px; background: #fff; color: var(--ink); max-width: 100%; }
.filters label { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.spacer { flex: 1; }
.subbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; font-size: .85rem; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.legend span { white-space: nowrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 5px; vertical-align: -1px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 3px rgba(46,204,113,.25); }

.month { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.month-inner { min-width: 760px; }
.month-head, .week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-head div { padding: 6px 8px; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; border-bottom: 1px solid var(--line); }
.day { min-height: 118px; padding: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.week:last-child .day { border-bottom: 0; }
.week .day:last-child { border-right: 0; }
.day.out { background: #f8f9fa; }
.day.out .dnum span { color: #a3adb3; }
.day.past:not(.out) { background: #fbfbfc; }
.dnum { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 600; padding: 0 2px; }
.day.today .dnum span { background: var(--teal); color: #fff; border-radius: 50px; padding: 0 7px; }
.add-day { border: 0; background: none; color: var(--muted); border-radius: 4px; width: 26px; height: 22px; opacity: 0; }
.day:hover .add-day, .add-day:focus-visible { opacity: 1; }
.add-day:hover { background: var(--teal-l); color: var(--teal-d); }
@media (hover: none) { .add-day { opacity: .6; } }
.day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ev { width: 100%; display: flex; flex-direction: column; gap: 1px; min-width: 0; text-align: left; font-size: .72rem; line-height: 1.3; padding: 3px 6px; border: 0; border-left: 3px solid var(--c); border-radius: 4px; background: color-mix(in srgb, var(--c) 13%, #fff); }
.ev:hover { background: color-mix(in srgb, var(--c) 24%, #fff); }
.ev .l1 { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.ev .l2 { display: flex; justify-content: space-between; gap: 4px; font-size: .66rem; }
.ev .t { color: var(--muted); font-weight: 500; white-space: nowrap; }
.ev .loc { color: var(--muted); }
.ev .left { font-weight: 700; color: var(--green); white-space: nowrap; }
.ev .left.low { color: var(--amber); } .ev .left.full { color: var(--red); }
.ev.private { background: repeating-linear-gradient(135deg, #fff 0 4px, #eef1f3 4px 8px); }
.ev.cancelled { opacity: .55; } .ev.cancelled .n { text-decoration: line-through; }
.more { border: 0; background: none; font-size: .72rem; color: var(--teal-d); text-align: left; padding: 0 5px; font-weight: 600; }

.agenda { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.agenda h3 { margin: 0; padding: 7px 14px; background: #f0f3f4; font-size: .82rem; border-top: 1px solid var(--line); }
.agenda h3:first-child { border-top: 0; }
.row { width: 100%; display: grid; grid-template-columns: minmax(0, 2.4fr) 1.1fr 1fr 1.2fr .7fr .9fr; grid-template-areas: "title when loc places price status"; gap: 4px 14px; align-items: center; padding: 10px 14px; text-align: left; background: #fff; border: 0; border-top: 1px solid var(--line); border-left: 4px solid var(--c); }
.agenda h3 + .row { border-top: 0; }
.row:hover { background: #f7fbfb; }
.row small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row strong { display: block; }
.c-title { grid-area: title; min-width: 0; } .c-when { grid-area: when; } .c-loc { grid-area: loc; } .c-places { grid-area: places; } .c-price { grid-area: price; font-weight: 600; } .c-status { grid-area: status; }
.row.cancelled strong { text-decoration: line-through; color: var(--muted); }
.bar { display: block; height: 6px; background: #e8ecee; border-radius: 3px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--teal); }
@media (max-width: 820px) {
  .row { grid-template-columns: 1fr auto; grid-template-areas: "title price" "when status" "loc places"; }
  .c-price, .c-status { text-align: right; }
}

.requests { margin-top: 22px; }
.requests h2 { display: flex; align-items: center; gap: 10px; }
.req { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-start; }
.req.handled { opacity: .65; }

dialog { border: 0; border-radius: 14px; padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 24px 60px rgba(0,0,0,.3); color: var(--ink); }
dialog::backdrop { background: rgba(15,22,26,.5); }
dialog form { display: contents; }
.dlg { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.dlg-head { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px 12px; border-top: 6px solid var(--c, var(--teal)); border-bottom: 1px solid var(--line); }
.dlg-head h2 { margin: 0; }
.dlg-body { padding: 16px 20px; overflow: auto; }
.dlg-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line); background: #f8f9fa; }
.dlg-foot .spacer { flex: 1; }
.x { margin-left: auto; border: 0; background: none; font-size: 1.6rem; line-height: 1; width: 40px; height: 40px; border-radius: 8px; flex: none; }
.x:hover { background: #eef1f2; }
.dlg-body h3 { margin-top: 18px; }
.table-wrap { overflow-x: auto; }
table.bk { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 560px; }
.bk th, .bk td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bk th { color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; }
.bk tr.cancelled td { color: var(--muted); }
.bk td .person + .person { margin-top: 6px; }
.bk .acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
details.embed { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
details.embed summary { cursor: pointer; font-weight: 600; }
pre.code { background: #15191c; color: #dff6f7; padding: 12px; border-radius: 8px; overflow-x: auto; font-size: .8rem; white-space: pre; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #15191c; color: #fff; padding: 10px 18px; border-radius: 50px; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
.proto-note { max-width: 1440px; margin: 10px auto 0; padding: 0 20px 28px; color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }

/* ---------- landing + course page mock */
.landing { max-width: 920px; margin: 0 auto; padding: 32px 20px 48px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 18px 0 28px; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--teal); box-shadow: 0 6px 18px -8px rgba(2,160,176,.5); }
.card h2 { color: var(--teal-d); }
.course-list { columns: 2 280px; padding-left: 1.1em; }
.course-list li { margin-bottom: 4px; break-inside: avoid; }

/* ---------- staff sign-in and signed-in pages */
.signin { max-width: 440px; margin: 48px auto; padding: 0 16px; }
.signin .card { padding: 24px; }
.signin h1 { font-size: 1.35rem; margin-bottom: .3em; }
.signin .field input { font-size: 1.05rem; }
.signin .code-input { letter-spacing: .3em; font-variant-numeric: tabular-nums; text-align: center; font-size: 1.4rem !important; }
.signin .actions { border-top: 0; padding-top: 0; }
.signin .btn { width: 100%; }
.signin .alt { margin-top: 14px; text-align: center; }
.signin .codes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; background: #f4f6f7; border-radius: 8px; padding: 12px 16px; margin: 12px 0; font-size: 1.05rem; }

/* ---------- public course calendar and employer form */
.w.wide { max-width: 1240px; }
.back-link { display: inline-block; margin: 0 0 12px; font-weight: 600; color: var(--teal-d); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
a.ev, a.row { color: inherit; text-decoration: none; }
.ev.is-full { opacity: .7; }
.cal-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.range { font-size: 1.15rem; margin: 0 6px; min-width: 9em; text-align: center; }
.iconbtn:disabled { opacity: .4; cursor: default; background: #fff; }
.w .legend { margin-bottom: 10px; font-size: .8rem; color: var(--muted); }
.row .c-status .btn { pointer-events: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--teal-l); border: 1px solid #bfe6ea; border-radius: 50px; padding: .2em .3em .2em .9em; font-weight: 600; font-size: .88rem; }
.tag small { color: var(--muted); font-weight: 500; }
.tag button { border: 0; background: none; width: 28px; height: 28px; border-radius: 50%; font-size: 1.15rem; line-height: 1; }
.tag button:hover { background: #cdeef1; }
/* Staff calendar: who is signed in, and sign out, in the top bar */
.topbar .who { color: #cfd4d6; font-size: .85rem; }
.topbar nav .linkbtn { color: #fff; }

/* Paying by card: Stripe's form sits inside the booking panel */
.pay-box h2 { margin: 16px 0 4px; }
.checkout { min-height: 320px; margin: 14px 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; }

/* Course picker: tick boxes, A to Z, no course types (Harrison, 15 Sep 2026) */
.course-search { width: 100%; margin: 4px 0 8px; }
.course-checks { max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; display: grid; gap: 2px; }
.course-check { display: flex; gap: 8px; align-items: flex-start; padding: 5px 2px; cursor: pointer; }
.course-check input { margin-top: 3px; flex: none; }
.course-check span, .field .course-check span { display: inline; font-weight: 400; margin: 0; }
.course-check[hidden] { display: none; }
.has-err .course-checks { border-color: #b3261e; }
/* The general .field input style (full width, 44px tall) must not reach the course tick boxes. */
.field .course-checks input[type=checkbox] {
  -webkit-appearance: auto; appearance: auto; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0;
  border: 0; border-radius: 3px; box-shadow: none; background: none; flex: none; accent-color: var(--teal);
}
.field .course-checks .course-check { align-items: center; padding: 6px 4px; border-radius: 6px; font-size: .92rem; line-height: 1.35; }
.field .course-checks .course-check:hover { background: #f3f6f7; }
.field .course-checks .course-check span { display: block; flex: 1; font-weight: 400; font-size: .92rem; margin: 0; }

/* ---------- Full pages, the standard for every public page (Harrison, 15 Sep 2026). Opened directly, a page marked has-site
   shows the HMC header, footer and (has-hero) intro band, with the form in a white card. Inside the HMC website
   (html.embedded) all of that stays hidden. Used by the employer form, course calendar and course booking form. */
.site-header, .site-hero, .site-footer { display: none; }
html:not(.embedded) body.has-site { background: #eeeeee; }
html:not(.embedded) .has-site .site-header { display: block; background: var(--header); }
.site-header .in { max-width: 1040px; margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.site-header img { display: block; height: 46px; width: auto; }
.site-call { display: inline-flex; align-items: center; background: var(--teal); color: #fff; text-decoration: none; font-weight: 600; border-radius: 50px; padding: .6em 1.25em; font-size: .9rem; }
.site-call:hover { background: var(--teal-d); color: #fff; }
html:not(.embedded) .has-site .site-hero { display: block; background: #2d2d2d; color: #fff; border-top: 4px solid var(--teal); }
.site-hero .in { max-width: 1040px; margin: 0 auto; padding: 34px 20px 58px; }
.site-hero .eyebrow { color: #7fd3db; }
.site-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; margin: 4px 0 10px; color: #fff; }
.site-hero p { margin: 0; max-width: 46em; color: #d9dee0; }
.site-hero ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-hero li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.site-hero li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .72rem; flex: none; }
html:not(.embedded) .has-site main#app { max-width: 1040px; margin: 28px auto 0; padding: 0 20px 40px; position: relative; }
html:not(.embedded) .has-site.has-hero main#app { margin-top: -34px; }
html:not(.embedded) .has-site main#app > .w { max-width: none; background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.10); padding: 26px 28px 20px; }
/* The intro band already says what the page is: hide the form's own title (hide-title keeps the rest of that row). */
html:not(.embedded) .has-site.hide-head main#app > .w > .w-head { display: none; }
html:not(.embedded) .has-site.hide-title main#app > .w > .w-head > div:first-child { display: none; }
html:not(.embedded) .has-site.hide-title main#app > .w > .w-head { justify-content: flex-end; }
/* The calendar needs more room. */
html:not(.embedded) .has-site.wide-page main#app { max-width: 1280px; }
.wide-page .site-header .in, .wide-page .site-hero .in, .wide-page .site-footer .in, .wide-page .site-footer .legal { max-width: 1280px; }
html:not(.embedded) .has-site .site-footer { display: block; background: var(--header); color: #cfd4d6; }
.site-footer .in { max-width: 1040px; margin: 0 auto; padding: 30px 20px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 32px; font-size: .9rem; }
.site-footer h2 { color: #7fd3db; font-size: 1rem; margin: 0 0 8px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #fff; }
.site-footer .legal { max-width: 1040px; margin: 0 auto; padding: 12px 20px 22px; border-top: 1px solid #4a4a4a; font-size: .8rem; color: #aab1b4; }
@media (max-width: 560px) {
  .site-header img { height: 38px; }
  .site-hero .in { padding: 26px 16px 50px; }
  html:not(.embedded) .has-site main#app { padding: 0 12px 30px; }
  html:not(.embedded) .has-site main#app > .w { padding: 18px 14px 14px; border-radius: 12px; }
}

/* ---------- Point of sale (9 Oct 2026) ----------
   The counter screens, in the HMC staff look. New sale is two panels: what is being sold, and who is buying and how
   they pay. On a phone or a narrow tablet they stack, what first. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .pos-grid { grid-template-columns: minmax(0, 1fr); } }
.pos .card h2 { color: var(--ink); margin-top: 6px; }
.pos .card h2:not(:first-child) { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pos .tabs { margin-bottom: 12px; }
.pos-search { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.pos-search input, .pos-find input, .toolbar input[type=search], .toolbar select, .pos-pay select, .pd-way select {
  font: inherit; padding: .55em .8em; border: 1px solid #c6cdd2; border-radius: 8px; background: #fff; min-height: 42px; min-width: 0;
}
.pos-search input, .pos-find input { flex: 1; width: 100%; }
.pos .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pos .chip { font-size: .82rem; min-height: 34px; padding: .25em .8em; }
.pos-results { display: grid; gap: 4px; margin-bottom: 12px; max-height: 320px; overflow: auto; }
.pos-results:empty { display: none; }
.pos-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 9px 12px; min-height: 44px; }
.pos-item:hover, .pos-item:focus-visible { border-color: var(--teal); background: var(--teal-l); }
.pos-item strong, .pos-item > small { white-space: nowrap; color: var(--muted); font-weight: 600; }
.pos-typed { border: 1px solid var(--line); border-radius: var(--r); background: #f8f9fa; padding: 12px 14px; margin-bottom: 12px; }
.pos-typed h3 { margin-bottom: 2px; }
.pos-typed-acts { display: flex; gap: 14px; align-items: center; }
.pos-lines td { vertical-align: top; }
.pos-lines input.pos-qty, .pos-lines input.pos-price { font: inherit; padding: .4em .5em; border: 1px solid #c6cdd2; border-radius: 6px; text-align: right; }
.pos-lines input.pos-qty { width: 4.2em; }
.pos-lines input.pos-price { width: 6.6em; }
.pos-lines .x { width: 34px; height: 34px; font-size: 1.3rem; }
.pos-lines td.has-err input, .pos-lines tr:has(td.has-err) input { border-color: var(--red); }
#lines.has-err .empty { border-color: var(--red); background: var(--red-l); }
.pos-find { margin-bottom: 12px; }
.pos-total { background: var(--teal-l); border-radius: var(--r); padding: 12px 16px; margin: 6px 0 12px; }
.pos-total div { display: flex; justify-content: space-between; align-items: baseline; }
.pos-total strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.pos-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pos-pay .btn { width: 100%; min-height: 52px; font-weight: 600; }
.pos-pay-reader { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.pos-pay-reader select[hidden] { display: none; }
.pos-pay-reader:has(select[hidden]) { grid-template-columns: 1fr; }
.pos-pay .err { grid-column: 1 / -1; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
#card-note { margin-top: 10px; font-size: .86rem; }
.err { color: var(--red); display: block; font-size: .84rem; margin-top: 3px; }

/* The payment dialog. */
.pd .dlg-head { border-top-width: 8px; }
.pd-amount { font-size: 2.2rem; font-weight: 700; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.pd-wait { display: flex; gap: 12px; align-items: center; font-size: 1.02rem; }
.pd-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #d6dcdf; border-top-color: var(--teal); animation: pd-spin 1s linear infinite; flex: none; }
@keyframes pd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pd-spin { animation: none; border-top-color: #d6dcdf; border-left-color: var(--teal); } }
.pd-test { background: var(--amber-l); border-radius: 8px; padding: 8px 12px; font-size: .9rem; }
.pd-ways { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.pd-way { display: inline-flex; gap: 6px; align-items: center; }
.pd-link { display: flex; gap: 8px; }
.pd-link input { flex: 1; min-width: 0; font: inherit; font-size: .85rem; padding: .5em .7em; border: 1px solid #c6cdd2; border-radius: 8px; background: #f8f9fa; }
.pd-more { margin-top: 12px; }
.pd-more summary { cursor: pointer; color: var(--teal-d); font-weight: 600; margin-bottom: 8px; }
.dlg-foot a.btn { text-decoration: none; }

/* Sales: the day's takings as tiles, then the list. */
.takings { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
.tile span { display: block; font-size: .8rem; color: var(--muted); }
.tile strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.tile.main { background: var(--header); border-color: var(--header); }
.tile.main span { color: #cfd4d6; } .tile.main strong { color: #fff; }
.tile.quiet strong { color: var(--muted); font-weight: 600; }
.tile.warn { background: var(--amber-l); border-color: #f0d9a8; }
.bk tr.cancelled strong { text-decoration: line-through; }
dl.facts { margin-top: 12px; } dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.toolbar a.btn { text-decoration: none; }

/* Stock: a list made for a phone in a ute. Big rows to tap, the count on the right, and a sheet for each item. */
.stockpage .toolbar input[type=search] { flex: 1; min-width: 180px; }
.stockpage .toolbar select { max-width: 100%; }
.stocklist { display: grid; gap: 6px; }
.stockrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; text-align: left; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; min-height: 58px; }
.stockrow:hover, .stockrow:focus-visible { border-color: var(--teal); background: var(--teal-l); }
.s-name strong, .s-name small { display: block; }
.s-name strong { overflow-wrap: anywhere; }
.s-qty { text-align: right; min-width: 4.2em; }
.s-qty strong { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.s-qty small { color: var(--muted); font-size: .72rem; }
.s-qty.low strong { color: var(--amber); } .s-qty.neg strong { color: var(--red); }
.stockrow .pill { grid-column: 4; }
@media (max-width: 520px) { .stockrow { grid-template-columns: 52px minmax(0, 1fr) auto; } .stockrow .pill { grid-column: 2 / -1; justify-self: start; } }
.s-now { font-size: 1.05rem; } .s-now strong { font-size: 1.5rem; }
/* (The row sits inside a field's label, whose own text is laid out as a block: this has to outrank that.) */
.field > span.stepper-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 8px; margin-bottom: 0; font-weight: 400; }
.stepper-row .iconbtn { min-height: 52px; font-size: 1.5rem; font-weight: 700; }
.stepper-row input { text-align: center; font-size: 1.4rem !important; font-variant-numeric: tabular-nums; }
#stock-form .tabs { display: flex; flex-wrap: nowrap; margin-bottom: 12px; } #stock-form .tabs button { flex: 1; padding: .45em .3em; font-size: .92rem; }
.s-history h3 { font-size: .9rem; margin: 16px 0 6px; }
.s-places { display: flex; flex-wrap: wrap; gap: 6px; }
.s-moves { list-style: none; margin: 0; padding: 0; }
.s-moves li { display: grid; gap: 1px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .86rem; }
dialog.scanner { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; background: #000; padding: 0 0 24px; }
dialog.scanner[open] { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 12px; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner p { color: #fff; margin: 0; }
.pos-item .stk { font-weight: 500; font-size: .78rem; color: var(--muted); margin-left: 8px; white-space: nowrap; }
.pos-item .stk.none { color: var(--amber); }
.pos-lines .short { color: var(--amber); display: block; font-size: .8rem; }

/* Item photos: a small square picture beside the name, and a bigger one when the item is open. An item with no
   photo gets an empty tile the same size, so rows line up. */
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; display: block; }
.thumb.none { background: repeating-linear-gradient(135deg, #f3f5f6, #f3f5f6 6px, #eceff1 6px, #eceff1 12px); }
.thumb.big { width: 132px; height: 132px; border-radius: var(--r); }
.pos-item { justify-content: flex-start; }
.pos-item > span { flex: 1; min-width: 0; }
.s-photo-row { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 12px; }
.s-photo-row label.btn { cursor: pointer; }
td.with-thumb .thumb { float: left; margin-right: 10px; }
td.with-thumb > div { overflow: hidden; }

/* Stock: the row of things to do, adding an item, and a transfer of many items. */
.stock-actions { margin-top: -2px; }
.stock-actions .muted { font-size: .85rem; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.field > span.code-row { font-weight: 400; margin-bottom: 0; }
.xfer-places { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: end; }
.xfer-places .iconbtn { margin-bottom: 12px; min-height: 44px; font-size: 1.2rem; }
.xfer-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 34px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.xfer-line .s-name small.short { color: var(--amber); }
.xfer-qty { display: grid; grid-template-columns: 40px 4.6em 40px; gap: 4px; }
.xfer-qty input { font: inherit; text-align: center; border: 1px solid #c6cdd2; border-radius: 8px; padding: .4em .2em; min-width: 0; }
.xfer-line .x { width: 34px; height: 34px; font-size: 1.3rem; }
#x-lines { margin: 4px 0 12px; }
@media (max-width: 520px) { .xfer-line { grid-template-columns: minmax(0, 1fr) auto 30px; } .xfer-line .thumb { display: none; } }

/* Stock or consumable: the word on each row, the switch on an item, and marking many at once. */
.kind { display: inline-block; border-radius: 50px; padding: 0 .6em; font-size: .7rem; font-weight: 700; margin-right: 6px; }
.kind.stock { background: var(--teal-l); color: #046772; }
.kind.cons { background: #efe9dc; color: #5d4a1f; }
.kindrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 14px; }
.seg { display: inline-flex; background: #edf0f2; border-radius: 50px; padding: 4px; }
.seg button { border: 0; background: none; border-radius: 50px; padding: .4em 1.05em; min-height: 38px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.stockrow.marking { grid-template-columns: 26px 52px minmax(0, 1fr) auto auto; }
.stockrow.marking .pill { grid-column: 5; }
.stockrow .tick { width: 24px; height: 24px; border: 2px solid #9aa4ab; border-radius: 6px; display: grid; place-items: center; background: #fff; }
.stockrow.marking[aria-pressed=true] { background: var(--teal-l); border-color: var(--teal); }
.stockrow.marking[aria-pressed=true] .tick { background: var(--teal); border-color: var(--teal); }
.stockrow.marking[aria-pressed=true] .tick::after { content: '\2713'; color: #fff; font-weight: 700; font-size: .9rem; line-height: 1; }
.markbar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; background: #fff; border-top: 2px solid var(--teal); padding: 10px 16px; box-shadow: 0 -8px 20px -12px rgba(0,0,0,.4); }
.markbar[hidden] { display: none; }
@media (max-width: 520px) { .stockrow.marking { grid-template-columns: 26px 52px minmax(0, 1fr) auto; } .stockrow.marking .pill { grid-column: 3 / -1; } }

/* The buy price and the mark-up. */
.markup-note { background: var(--teal-l); border-radius: var(--r); padding: 8px 12px; margin: 0 0 12px; font-size: .9rem; }
.markup-note[hidden] { display: none; }
.s-buy { margin: -6px 0 12px; font-size: .9rem; }

/* Picking orders: the button on New sale, the lists, and the box to sign in. */
.pos-pick { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #c6cdd2; display: grid; gap: 6px; }
.pos-pick .btn { width: 100%; min-height: 48px; font-weight: 600; }
.pos-pick[hidden], .pick-banner[hidden] { display: none; }
.pick-banner { background: var(--teal-l); color: var(--ink); border-left: 5px solid var(--teal); }
.pos-qty:disabled { background: #f1f3f4; color: var(--ink); }
.pick-group { margin-bottom: 22px; }
.pick-group h2 { margin: 0 0 2px; font-size: 1.05rem; }
.pick-group > p { margin: 0 0 8px; font-size: .88rem; }
.sign-list { margin: 0 0 12px; padding: 10px 14px 10px 30px; background: #fafbfb; border: 1px solid var(--line); border-radius: var(--r); }
.sigpad { display: block; width: 100%; height: 190px; border: 2px dashed #9aa4ab; border-radius: var(--r); background: #fff; touch-action: none; cursor: crosshair; }
.sig-under { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.field > span.sig-under { font-weight: 400; margin-bottom: 0; }
.dlg-foot a.btn.ghost { display: inline-flex; align-items: center; }

/* History: the log of every item, or of one. */
.hist-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.hist-item[hidden] { display: none; }
.hist-item h1 { margin: 2px 0 2px; font-size: 1.3rem; }
.hist-item p { margin: 0 0 6px; }
.hist-day h2 { font-size: .95rem; margin: 18px 0 6px; color: var(--muted); }
.hist { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.hist-row { display: grid; grid-template-columns: 5.2em 5.6em minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 10px 14px; border-top: 1px solid var(--line); }
.hist-row:first-child { border-top: 0; }
.hist-row time { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.hist-tag { justify-self: start; border-radius: 50px; padding: .1em .7em; font-size: .72rem; font-weight: 700; white-space: nowrap; background: #eceff1; color: var(--muted); }
.hist-tag.sale { background: var(--teal-l); color: #046772; }
.hist-tag.on { background: var(--green-l); color: var(--green); }
.hist-tag.off { background: var(--amber-l); color: var(--amber); }
.hist-tag.price { background: #efe6fb; color: #5b2a9d; }
.hist-what p { margin: 0; }
.hist-what small { display: block; margin-top: 2px; }
.hist-name { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; margin: 0 0 3px; font: inherit; font-weight: 600; color: var(--teal-d); text-align: left; cursor: pointer; }
.hist-name:hover span { text-decoration: underline; }
.hist-name .thumb { width: 28px; height: 28px; }
.hist-more { text-align: center; margin: 16px 0 0; }
.s-history h3 .linkbtn { font-size: .85rem; margin-left: 10px; font-weight: 600; }
.row-acts { white-space: nowrap; }
@media (max-width: 560px) { .hist-row { grid-template-columns: 4.6em minmax(0, 1fr); } .hist-row .hist-what { grid-column: 1 / -1; } .hist-item { flex-direction: column; } }

/* An item that is in the website shop. */
.pill.shop { background: #f9e9e6; color: #8f1300; }

/* Items: the three sizes for freight side by side, and the freight settings table. */
.field > span.size-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-weight: 400; margin-bottom: 0; }
#zones input { width: 100%; min-width: 5.5em; font: inherit; border: 1px solid #c6cdd2; border-radius: 8px; padding: .4em .5em; }
#zones td.has-err input { border-color: var(--red); background: var(--red-l); }
#zones td .err { display: block; color: var(--red); font-size: .78rem; }
#zones td:nth-child(2) input { min-width: 12em; }

/* Picture tiles (Harrison, 10 Oct 2026: "Picture tiles"): the Stock list and the items found on New sale are a grid of
   photos, like Sortly and the website shop, in place of rows. The same buttons, laid out as tiles. */
.stocklist { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.stockrow, .stockrow.marking { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px; position: relative; min-height: 0; }
.stockrow .thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; }
.stockrow .s-name strong { font-size: .9rem; line-height: 1.25; }
.stockrow .s-name small { font-size: .76rem; margin-top: 3px; }
.stockrow .s-qty { position: absolute; top: 16px; right: 16px; min-width: 0; display: flex; align-items: baseline; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 50px; padding: 2px 10px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.stockrow .s-qty strong { font-size: 1.05rem; }
.stockrow .pill { position: absolute; top: 16px; left: 16px; }
.stockrow.marking .pill { top: 48px; }
.stockrow .tick { position: absolute; top: 16px; left: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
#item-results { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 520px; padding: 2px; }
#item-results .pos-item { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px; }
#item-results .pos-item .thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; }
#item-results .pos-item > span { flex: none; font-weight: 600; font-size: .88rem; line-height: 1.25; }
#item-results .pos-item .stk { display: block; margin: 3px 0 0; }
#item-results .pos-item strong { color: var(--ink); font-size: 1rem; margin-top: auto; }
#item-results > p { grid-column: 1 / -1; }
@media (max-width: 520px) { .stocklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } #item-results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sign-in: setting up an authenticator app. */
ol.steps { padding-left: 1.2em; margin: 0 0 14px; } ol.steps li { margin-bottom: 10px; }
.qr { width: 236px; height: 236px; margin: 10px 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.qr svg { display: block; width: 100%; height: 100%; }
.setup-key { font: 600 1.05rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; overflow-wrap: anywhere; background: #f4f6f7; border-radius: 8px; padding: 8px 12px; }

/* ---------- Xero: a sale on account's draft invoice, and Xero's products tied to the items here */
.xero-wait { color: #8a5200; }
/* An invoice found in Xero, on New sale's "Pay an invoice"; and what has gone to Xero for a day's walk-in sales, on Sales. */
.inv-card { border: 1px solid var(--line); border-radius: var(--r); background: #f8f9fa; padding: 12px 14px; margin-bottom: 12px; }
.inv-card[hidden] { display: none; }
.inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 12px; }
.inv-head .linkbtn { flex: none; white-space: nowrap; }
.inv-card dl.facts { margin: 10px 0; }
.inv-card .alert { margin: 10px 0 0; }
.inv-lines { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .88rem; max-height: 132px; overflow: auto; }
#inv-results .pos-item > span { font-weight: 600; } #inv-results .pos-item > span small { display: block; font-weight: 500; }
.xero-day { margin: -4px 0 14px; font-size: .92rem; color: var(--muted); }
.xero-day:empty { display: none; }
.xero-day .btn { margin-left: 8px; }
#xp-table td:last-child { width: 46%; }
#xp-table input { width: 100%; font: inherit; padding: .5em .7em; border: 1px solid #b9c1c6; border-radius: 8px; background: #fff; color: var(--ink); }
#xp-table input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
#xp-table .xp-name { display: block; margin-top: 3px; }
#xp-table .xp-name.err { color: var(--red); }
#xp-table .xp-name.warn { color: #8a5200; font-weight: 600; }
#xp-form .toolbar { margin: 4px 0 10px; }
#xp-hints .btn { margin-left: 8px; }
#xp-spare ul { margin: 8px 0 0; padding-left: 18px; }
#xero-form h3 { margin-top: 14px; }
#items-table .online-cell { white-space: nowrap; }
#items-table .online-cell input { width: 20px; height: 20px; }

/* ---------- ordering what is running low */
.ord-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0; background: #fff; }
.ord-group.none { background: #fbfbfb; }
.ord-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.ord-head h3 { margin: 0; }
.ord-group table td:last-child { white-space: nowrap; }
.ord-qty { width: 84px; font: inherit; padding: .45em .6em; border: 1px solid #aeb8bf; border-radius: 8px; text-align: right; }
.ord-group select { font: inherit; padding: .45em .6em; border: 1px solid #aeb8bf; border-radius: 8px; max-width: 220px; }
.ord-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; margin-top: 10px; }
.ord-foot details { flex: 1; min-width: 220px; }
.ord-foot pre { white-space: pre-wrap; font-family: inherit; font-size: .92rem; line-height: 1.5; background: #f4f6f7; border-radius: 8px; padding: 10px 12px; margin: 8px 0 0; }
.ord-done { background: var(--green-l); color: #14401f; border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; }
.ord-done a { color: inherit; font-weight: 600; }
.ord-note { margin: 10px 0 0; }
.ord-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ord-recent { margin-top: 18px; } .ord-recent ul { margin: 6px 0 0; padding-left: 18px; } .ord-recent li { margin: 3px 0; }
.ord-group.waiting { border-color: #e7c682; background: #fffaf0; }
.ord-wait { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid #efe2c2; }
#po-waiting .btn { margin-left: 8px; }
