/* GBC Job Hub website: the shared look for every page (round 2), from the approved Xero-style mockups
   (design/xero-style-2026-11-28, mockups/xero-style/assets/app.css). On top of gbc-ui.css (the brand copy) and site.css.
   - Top bar: Midnight Green, the orange logo mark at 56 px (the Brand Blueprint's 55 px minimum, page 47), and the bar
     only as tall as that needs: 8 px above and below, so 72 px (phones 68 px).
   - Menu: plain buttons (Pre-construction, On site, To check, Schedule), the page you're on underlined in Cinnabar.
   - Search, quick add, notifications, help and the person on the right. Light and dark follow the device.
   Screen Standard 1.2: 15 px text (16 px on phones), 44 px tap targets (48 px on phones), 1,320 px content. */

:root {
	--top-h: 72px;
	--jh-surface-2: #F3F7F7;
	--jh-badge-bg: rgba(255, 255, 255, 0.2);
	--jh-pop-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
@media (prefers-color-scheme: dark) {
	:root { --jh-surface-2: #1B3133; --jh-pop-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
}

body.shell { padding-bottom: 0; }

/* ---------- Top bar ---------- */
.top { background: var(--gbc-green); color: #fff; position: sticky; top: 0; z-index: 30; }
.top-in { max-width: 1600px; margin: 0 auto; padding: 8px 32px; min-height: var(--top-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; flex: none; }
.brand img { height: 56px; width: auto; display: block; }
.brand .nm { border-left: 1px solid rgba(255, 255, 255, 0.25); padding-left: 14px; font-size: 16px; font-weight: 500; line-height: 1.25; color: #fff; }
.brand .nm small { display: block; font-size: 12.5px; font-weight: 300; color: rgba(255, 255, 255, 0.78); }
.menu { display: flex; align-items: stretch; gap: 4px; align-self: stretch; margin: -8px 0; }
.menu a { display: flex; align-items: center; padding: 0 14px; color: rgba(255, 255, 255, 0.9); text-decoration: none; font-weight: 400; font-size: 15px; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.menu a.on { color: #fff; border-bottom-color: var(--gbc-cinnabar); font-weight: 500; }
.cnt { margin-left: 7px; font-size: 12px; font-weight: 500; background: var(--jh-badge-bg); border-radius: 99px; padding: 1px 8px; color: #fff; line-height: 1.5; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.iconbtn { width: 44px; height: 44px; min-height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; flex: none; padding: 0; cursor: pointer; }
.iconbtn:hover, .iconbtn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.12); }
.iconbtn svg { width: 22px; height: 22px; }
.top :focus-visible { outline: 3px solid var(--gbc-cinnabar); outline-offset: 2px; }
.rel { position: relative; }

/* Search: an icon that opens a box, and closes again */
/* Search opens in place over its icon (round 3, NEXT-ROUND-NOTES 2): the box grows leftwards from where the icon is. */
.searchwrap { position: relative; width: 44px; height: 44px; flex: none; }
.search { position: absolute; right: 0; top: 0; width: 400px; max-width: 46vw; z-index: 41; }
.search[hidden] { display: none; }
.search input { width: 100%; height: 44px; border-radius: 22px; border: 0; padding: 0 46px 0 44px; font: inherit; font-size: 16px; font-weight: 300; background: #fff; color: #1A1A1A; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.search input::placeholder { color: #6B7678; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; } /* one close button only: ours */
.search input:focus { outline: 3px solid var(--gbc-cinnabar); outline-offset: 0; }
.search .sico { position: absolute; left: 13px; top: 11px; width: 22px; height: 22px; color: #3F4A4C; pointer-events: none; }
.search .sico svg, .search .sclose svg { width: 22px; height: 22px; display: block; }
.search .sclose { position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; min-height: 40px; border-radius: 50%; border: 0; background: transparent; color: #3F4A4C; padding: 9px; cursor: pointer; }
.search .sclose:hover { background: #EEF2F2; }
.searching #searchBtn { visibility: hidden; }
.sdrop { position: absolute; top: 52px; right: 0; width: 460px; max-width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto; background: var(--gbc-surface); color: var(--gbc-ink); border: 1px solid var(--gbc-line); border-radius: 12px; box-shadow: var(--jh-pop-shadow); padding: 6px; z-index: 40; font-size: 15px; }
.sdrop[hidden] { display: none; }
.sr-item { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--gbc-ink); font-weight: 300; }
a.sr-item:hover, a.sr-item.on { background: var(--gbc-green-tint); }
.sr-item b { font-weight: 400; }
.sr-addr { display: block; font-size: 13.5px; color: var(--gbc-muted); margin-top: 2px; }
.sr-item.off { color: var(--gbc-muted); }
.sr-item.off .jn, .sr-item.off b { opacity: .7; }
.sr-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 14px; }
.sr-none, .sr-note { margin: 0; padding: 10px 12px; }
.sr-note { font-size: 13px; color: var(--gbc-muted); padding-top: 4px; }

/* The signed-in person */
.me { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #fff; text-align: right; padding: 4px 6px 4px 10px; border-radius: 10px; min-height: 44px; cursor: pointer; font-family: inherit; }
.me:hover, .me[aria-expanded="true"] { background: rgba(255, 255, 255, 0.1); }
.me .t { font-size: 14.5px; line-height: 1.25; font-weight: 400; }
.me .t small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.78); font-weight: 300; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 500; color: #fff; background: var(--gbc-cinnabar); flex: none; }

/* Pop-overs: quick add, notifications, person menu */
.topop { position: absolute; top: 52px; right: 0; z-index: 45; width: 360px; max-width: calc(100vw - 24px); background: var(--gbc-surface); color: var(--gbc-ink); border: 1px solid var(--gbc-line); border-radius: 12px; box-shadow: var(--jh-pop-shadow); padding: 6px; text-align: left; }
.topop[hidden] { display: none; }
.topop .poph { padding: 10px 12px 8px; font-weight: 500; color: var(--jh-heading); display: flex; align-items: center; gap: 10px; }
.topop .popb { padding: 4px 12px 12px; color: var(--gbc-ink-soft); font-size: 14.5px; line-height: 1.5; }
.topop .popb p { margin: 0 0 6px; }
.topop .mi, .topop form button.mi { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--gbc-ink); text-decoration: none; font-weight: 400; font-size: 15px; background: transparent; border: 0; font-family: inherit; cursor: pointer; justify-content: flex-start; }
.topop .mi:hover { background: var(--gbc-green-tint); }
.topop .sep { border-top: 1px solid var(--gbc-line); margin: 6px 0; }
.topop .who { display: flex; gap: 10px; align-items: center; }
.topop .who small { display: block; color: var(--gbc-muted); font-weight: 300; font-size: 13px; }
.soon-tag { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--gbc-muted); border: 1px solid var(--gbc-line-strong); border-radius: 99px; padding: 0 8px; margin-left: auto; }

/* Help panel */
.help { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; background: var(--gbc-surface); color: var(--gbc-ink); z-index: 60; box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18); padding: 24px 28px; overflow-y: auto; }
.help[hidden] { display: none; }
.help h2 { font-size: 20px; margin: 0 0 12px; display: flex; align-items: center; }
.help h3 { font-size: 15px; margin: 22px 0 6px; }
.help p, .help li { line-height: 1.55; }
.help ul { padding-left: 20px; margin: 0; }
.help .close { margin-left: auto; color: var(--jh-heading); }
.help kbd { font: 12.5px var(--gbc-font); border: 1px solid var(--gbc-line-strong); border-radius: 4px; padding: 0 6px; }
.help .ver { margin-top: 28px; color: var(--gbc-muted); font-size: 13.5px; }
/* The version at the foot of the signed-out pages (sign-in and messages), so a deploy can be checked without signing in. */
.ver-foot { margin: 28px 0 0; color: var(--gbc-muted); font-size: 13.5px; }

/* ---------- Pages ---------- */
.shell .page { max-width: 1320px; margin: 0 auto; padding: 28px 40px 72px; }
.pagehead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pagehead h1 { font-size: 28px; line-height: 1.2; margin: 0; }
.pagehead .sub { color: var(--gbc-ink-soft); margin-top: 6px; }
.pagehead .r { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* The calm "Coming soon" empty state */
.soon { background: var(--gbc-surface); border: 1px dashed var(--gbc-line-strong); border-radius: 12px; padding: 48px 32px; text-align: center; color: var(--gbc-ink-soft); max-width: 760px; }
.soon h2 { font-size: 20px; margin: 0 0 8px; color: var(--jh-heading); }
.soon p { margin: 0 auto; max-width: 520px; line-height: 1.55; }
.soon .ico { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--gbc-muted); }

/* Number boxes on the Pre-construction board (the same source as the menu badges) */
.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0 0 28px; max-width: 980px; }
.nbox { display: block; background: var(--gbc-surface); border: 1px solid var(--gbc-line); border-radius: 12px; padding: 16px 20px; text-decoration: none; color: var(--gbc-ink); box-shadow: 0 1px 2px rgba(0, 40, 42, 0.05); min-height: 44px; }
.nbox:hover { border-color: var(--gbc-line-strong); }
.nbox .n { font-size: 30px; font-weight: 500; color: var(--jh-heading); line-height: 1.1; display: block; }
.nbox .l { font-size: 14.5px; color: var(--gbc-ink-soft); font-weight: 400; }
.nbox .n.none { font-size: 16px; font-weight: 400; color: var(--gbc-muted); padding: 8px 0; }

/* Calm notes and warnings */
.note-line { background: var(--jh-surface-2); border: 1px solid var(--gbc-line); border-radius: 10px; padding: 12px 16px; color: var(--gbc-ink-soft); margin: 0 0 20px; }
.warn-line { background: var(--gbc-amber-bg); border: 1px solid var(--gbc-amber-line); border-left: 4px solid var(--gbc-amber-edge); border-radius: 10px; padding: 12px 16px; color: var(--gbc-ink); margin: 0 0 20px; }
.ok-box { background: var(--gbc-surface); border: 1px solid var(--gbc-line); border-left: 4px solid var(--gbc-ok); border-radius: 10px; padding: 14px 18px; margin: 0 0 20px; }
@media (prefers-color-scheme: dark) {
	.warn-line { background: #33290F; border-color: #6B5520; color: var(--gbc-ink); }
	:root { --gbc-amber: #F2CB6B; --gbc-ok: #7FCB92; --gbc-red: #F2958C; }
}

/* ---------- Settings: side menu inside the page, one section at a time ---------- */
.set-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.set-side { position: sticky; top: calc(var(--top-h) + 16px); display: flex; flex-direction: column; max-height: calc(100vh - var(--top-h) - 40px); overflow-y: auto; padding: 2px 4px 12px 2px; }
.set-group { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gbc-muted); margin: 18px 0 6px 12px; font-weight: 400; }
.set-group:first-child { margin-top: 0; }
.set-side a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 6px; color: var(--gbc-ink); text-decoration: none; font-size: 15px; line-height: 1.3; font-weight: 400; position: relative; }
.set-side a:hover { background: var(--gbc-surface); color: var(--jh-heading); }
.set-side a.on { background: var(--gbc-surface); color: var(--jh-heading); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 59, 63, 0.06); }
.set-side a.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--gbc-cinnabar); }
.set-pick { display: none; }
.set-card { background: var(--gbc-surface); border: 1px solid var(--gbc-line); border-radius: 10px; padding: 28px 36px 32px; box-shadow: 0 1px 2px rgba(0, 59, 63, 0.04); min-width: 0; }
.set-card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 500; }
.set-card h3 { font-size: 16px; margin: 26px 0 8px; }
.set-card .intro { color: var(--gbc-muted); font-size: 14.5px; margin: 0 0 18px; max-width: 760px; line-height: 1.5; }
.set-card .stamp { color: var(--gbc-muted); font-size: 13.5px; margin-top: 22px; }
.viewonly { display: flex; gap: 10px; align-items: flex-start; background: var(--jh-surface-2); border: 1px solid var(--gbc-line); border-radius: 10px; padding: 12px 16px; color: var(--gbc-ink-soft); margin: 0 0 22px; font-size: 14.5px; }
.viewonly svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--jh-heading); }
table.vt { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.vt th { text-align: left; font-weight: 500; color: var(--gbc-muted); font-size: 13px; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--gbc-line); vertical-align: bottom; }
.vt td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--gbc-line); vertical-align: top; overflow-wrap: break-word; }
.ph-only { display: none; }
.vt td.c, .vt th.c { text-align: center; }
.vt .grp td { color: var(--gbc-muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 20px; }
.yes, .no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; font-size: 13px; font-weight: 500; }
.yes { background: var(--gbc-green); color: #fff; }
.no { border: 1.5px solid var(--gbc-line-strong); color: transparent; }
@media (prefers-color-scheme: dark) { .yes { background: #2F7A72; } }
.kv { margin: 0; padding: 0; border-top: 1px solid var(--gbc-line); max-width: 760px; }
.kv .row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--gbc-line); }
.kv dt { flex: 0 0 220px; color: var(--gbc-muted); font-weight: 400; }
.kv dd { margin: 0; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.textview { white-space: pre-wrap; background: var(--jh-surface-2); border: 1px solid var(--gbc-line); border-radius: 8px; padding: 14px 16px; font-size: 14px; line-height: 1.55; max-height: 420px; overflow: auto; margin: 0 0 12px; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; border-radius: 99px; padding: 1px 9px; background: var(--gbc-green-tint); color: var(--jh-heading); white-space: nowrap; }
.tag.grey { background: transparent; border: 1px solid var(--gbc-line-strong); color: var(--gbc-muted); }
.tag.amber { background: var(--gbc-amber-bg); color: var(--gbc-amber); }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { padding: 10px 0; border-bottom: 1px solid var(--gbc-line); font-size: 14.5px; }
.hist .when { color: var(--gbc-muted); font-size: 13px; }

/* Copy check */
.diffs { list-style: none; margin: 0 0 24px; padding: 0; max-width: 900px; }
.diffs li { background: var(--gbc-surface); border: 1px solid var(--gbc-line); border-left: 4px solid var(--gbc-amber-edge); border-radius: 8px; padding: 12px 16px; margin: 0 0 10px; display: flex; gap: 12px; align-items: baseline; }
.diffs .k { flex: none; }

/* ---------- Phone bottom tabs ---------- */
.tabs { display: none; }

@media (max-width: 1250px) and (min-width: 701px) {
	.me .t { display: none; }
	.top-in { padding: 8px 20px; gap: 12px; }
	.search { width: 300px; }
}
@media (max-width: 1100px) and (min-width: 701px) {
	.brand .nm small { display: none; }
	.menu a { padding: 0 9px; font-size: 14.5px; }
	.set-wrap { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
	.set-card { padding: 24px 24px 28px; }
}
@media (max-width: 860px) {
	.set-wrap { display: block; }
	.set-side { display: none; }
	.set-pick { display: block; margin: 0 0 16px; }
	.set-pick .set-group { margin-left: 0; }
	.set-pick select { width: 100%; min-height: 48px; font-size: 16px; font-family: inherit; border: 1px solid var(--gbc-line-strong); border-radius: 8px; padding: 0 12px; background: var(--gbc-surface); color: var(--gbc-ink); }
}
@media (max-width: 700px) {
	:root { --top-h: 68px; }
	.top-in { padding: 6px 10px; gap: 4px; }
	.brand { gap: 10px; }
	.brand .nm { font-size: 15px; padding-left: 10px; white-space: nowrap; }
	.brand .nm small, .menu, .me .t, .hide-ph { display: none !important; }
	.top-r { gap: 0; }
	.search { position: fixed; left: 8px; right: 8px; top: calc((var(--top-h) - 48px) / 2); width: auto; max-width: none; z-index: 41; }
	.search input { box-shadow: var(--jh-pop-shadow); height: 48px; }
	.search .sico { top: 13px; }
	.search .sclose { top: 4px; }
	.sdrop { top: 56px; width: auto; left: 0; right: 0; }
	.topop { position: fixed; top: calc(var(--top-h) + 4px); left: 8px; right: 8px; width: auto; max-width: none; }
	.me { padding: 4px; }
	body.shell { padding-bottom: 76px; }
	.tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--gbc-surface); border-top: 1px solid var(--gbc-line); padding: 4px 2px 14px; }
	.tabs a, .tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; font-size: 12px; color: var(--gbc-muted); text-decoration: none; font-weight: 400; background: transparent; border: 0; font-family: inherit; padding: 0; width: auto; position: relative; }
	.tabs .on { color: var(--jh-heading); font-weight: 500; }
	.tabs svg { width: 24px; height: 24px; }
	.tabs .cnt { position: absolute; top: 2px; left: 55%; margin: 0; background: var(--gbc-cinnabar); font-size: 11px; padding: 0 6px; }
	.shell .page { padding: 20px 16px 48px; }
	.pagehead h1 { font-size: 23px; }
	.set-card { padding: 20px 16px 24px; }
	.kv .row { flex-direction: column; gap: 2px; }
	.kv dt { flex: none; }
	.vt-wrap { overflow-x: auto; }
	.vt .wide { display: none; }
	.vt .ph-only { display: block; }
	.vt { font-size: 15px; }
	.help { width: 100vw; padding: 20px 16px; }
	.soon { padding: 36px 20px; }
}

/* Last, so they win over the rules above. */
@media (prefers-color-scheme: dark) {
	.tag.amber { background: #4A3A12; color: #F7D98A; }
}
@media (max-width: 700px) {
	.diffs li { flex-direction: column; gap: 6px; }
}

/* ======================================================================================================================
   Round 3: the bell, the stage board, Construction, To check, a job's stage card, Subbies and Suppliers, live updates.
   From the approved mockups (home.html, onsite.html, job.html on design/xero-style-2026-11-28).
   ====================================================================================================================== */
:root { --jh-red-edge: #D9483B; --jh-live: #FFF9E8; }
@media (prefers-color-scheme: dark) { :root { --jh-live: #2E2A18; --jh-red-edge: #F2958C; } }

/* The bell */
.iconbtn { position: relative; }
.bcnt { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--gbc-cinnabar); color: #fff; font-size: 11px; font-weight: 500; line-height: 18px; padding: 0 5px; text-align: center; }
.bcnt[hidden] { display: none; }
.bellpop { width: 400px; }
.linkbtn { margin-left: auto; background: none; border: 0; color: var(--jh-heading); text-decoration: underline; font: inherit; font-size: 14px; font-weight: 400; min-height: 36px; padding: 0 6px; cursor: pointer; width: auto; }
.bell-list { max-height: 50vh; overflow-y: auto; }
.bell-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--gbc-ink); text-decoration: none; font-size: 14.5px; line-height: 1.4; font-weight: 300; }
.bell-item:hover { background: var(--gbc-green-tint); }
.bell-item.unread { font-weight: 400; }
.bdot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: transparent; }
.bell-item.unread .bdot { background: var(--gbc-cinnabar); }
.bwhen { display: block; font-size: 12.5px; color: var(--gbc-muted); margin-top: 2px; }
.popt { display: flex; gap: 10px; align-items: center; padding: 6px 12px; min-height: 40px; font-size: 14.5px; }
.popt input { width: 20px; height: 20px; }
.popb.small, .small { font-size: 13px; }

/* Toast after a button press, and the live highlight */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80; max-width: min(560px, calc(100vw - 32px)); background: var(--gbc-green); color: #fff; border-radius: 10px; padding: 12px 18px; box-shadow: var(--jh-pop-shadow); font-size: 15px; }
.toast.bad { background: #7A2A22; }
.toast[hidden] { display: none; }
.livecard { animation: livefade 6s ease-out; }
@keyframes livefade { 0%, 40% { background-color: var(--jh-live); box-shadow: 0 0 0 3px var(--gbc-amber-edge); } 100% { box-shadow: none; } }
.updated { display: inline-flex; align-items: center; gap: 8px; color: var(--gbc-muted); font-size: 13.5px; }
.updated .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gbc-ok); }
form.inline { display: inline; margin: 0; }
.refresh button { display: inline-flex; gap: 6px; align-items: center; }
.refresh svg { width: 18px; height: 18px; }
.small-btn { min-height: 36px; padding: 4px 12px; font-size: 14px; border-radius: 8px; border: 1px solid var(--gbc-line-strong); background: var(--gbc-surface); color: var(--jh-heading); font-family: inherit; font-weight: 400; cursor: pointer; width: auto; line-height: 1.2; }
.small-btn.primary { background: var(--gbc-green); color: #fff; border-color: var(--gbc-green); }
.small-btn.quiet { border-color: transparent; background: transparent; text-decoration: underline; color: var(--gbc-ink-soft); }
.small-btn:hover:not(:disabled) { border-color: var(--jh-heading); }
a.small-btn { display: inline-flex; align-items: center; text-decoration: none; }
summary.small-btn { display: inline-flex; align-items: center; list-style: none; }
summary.small-btn::-webkit-details-marker { display: none; }
.tag.ok { background: #E3F2E7; color: var(--gbc-ok); }
.tag.red { background: var(--gbc-red-bg); color: var(--gbc-red); }
@media (prefers-color-scheme: dark) { .tag.ok { background: #1E3A27; color: #9BD8AA; } .tag.red { background: #4A1F1B; color: #F7B4AC; } }

/* The board */
.hello .greet, .pagehead .greet { color: var(--gbc-ink-soft); font-size: 15px; margin-bottom: 4px; }
.nums { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.numc { text-align: left; background: var(--gbc-surface); border: 1px solid var(--gbc-line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 40, 42, 0.05); padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: end; min-height: 84px; font-family: inherit; color: var(--gbc-ink); text-decoration: none; cursor: pointer; width: auto; }
.numc:hover { border-color: var(--gbc-line-strong); }
.numc[aria-pressed="true"] { border-color: var(--jh-heading); box-shadow: 0 0 0 1px var(--jh-heading) inset; }
.numc .lb { font-size: 15px; font-weight: 400; }
.numc .s { font-size: 13px; color: var(--gbc-muted); grid-column: 1; font-weight: 300; }
.numc .v { grid-column: 2; grid-row: 1 / span 2; font-size: 34px; line-height: 1; font-weight: 400; color: var(--jh-heading); font-variant-numeric: tabular-nums; }
.numc.red .v { color: var(--gbc-red); } .numc.amber .v { color: var(--gbc-amber); } .numc.zero .v { color: var(--gbc-line-strong); }
.bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; background: none; border: 0; padding: 0; box-shadow: none; } /* not the brand kit's action bar */
.bar .r { margin-left: auto; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--gbc-line-strong); background: var(--gbc-surface); color: var(--gbc-ink); font: inherit; font-size: 14.5px; font-weight: 400; cursor: pointer; width: auto; }
.chip[aria-pressed="true"] { background: var(--gbc-green); color: #fff; border-color: var(--gbc-green); }
.lane { margin-bottom: 30px; }
.lane-h { display: flex; gap: 12px; align-items: baseline; margin: 0 2px 12px; flex-wrap: wrap; }
.lane-h h2 { font-size: 18px; margin: 0; }
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.col { min-width: 0; display: flex; flex-direction: column; }
.colh { background: var(--gbc-surface); border: 1px solid var(--gbc-line); border-top: 5px solid var(--st); border-radius: 12px; padding: 12px 16px 14px; }
.colh .t { display: flex; align-items: center; gap: 10px; }
.colh .n { width: 26px; height: 26px; border-radius: 50%; background: var(--sttint); color: var(--stink); font-size: 13px; font-weight: 500; display: grid; place-items: center; flex: none; }
.colh h3 { font-size: 16px; flex: 1; min-width: 0; margin: 0; }
.colh .cnt { margin: 0; background: transparent; color: var(--gbc-muted); font-size: 14px; font-weight: 400; padding: 0; }
.colh .own { margin-top: 8px; font-size: 13px; color: var(--gbc-ink-soft); }
.colh .tgt { margin-top: 2px; font-size: 12.5px; color: var(--gbc-muted); }
.list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.job { display: block; text-decoration: none; color: inherit; background: var(--gbc-surface); border: 1px solid var(--gbc-line); border-radius: 12px; padding: 13px 16px 12px; position: relative; font-weight: 300; }
.job[hidden] { display: none; }
.job:hover { border-color: var(--gbc-line-strong); box-shadow: 0 4px 14px rgba(0, 40, 42, 0.08); }
.job.over { box-shadow: inset 3px 0 0 var(--jh-red-edge); }
.job.held { box-shadow: inset 3px 0 0 var(--gbc-amber-edge); }
.job .l1 { display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--gbc-muted); }
.job .l1 .jn { font-size: 15px; }
.job .l1 .dd { margin-left: auto; white-space: nowrap; }
.job .cl { font-size: 15px; font-weight: 400; line-height: 1.35; margin-top: 4px; overflow-wrap: anywhere; }
.job .nx { font-size: 13.5px; color: var(--gbc-ink-soft); margin-top: 3px; }
.job .why { font-size: 13px; color: var(--gbc-amber); margin-top: 3px; }
.job.over .why { color: var(--gbc-red); }
.job .chk { font-size: 12.5px; color: var(--gbc-muted); margin-top: 2px; }
.job .chk.due { color: var(--gbc-amber); font-weight: 400; }
.job .l4 { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--gbc-line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--gbc-ink-soft); }
.job .l4 .tag { margin-left: auto; }
.who { display: inline-flex; gap: 8px; align-items: center; }
.av.sm { width: 26px; height: 26px; font-size: 11px; background: var(--gbc-green); }
.emptycol { border: 1px dashed var(--gbc-line-strong); border-radius: 12px; padding: 14px; color: var(--gbc-muted); font-size: 14px; text-align: center; }
.emptycol[hidden] { display: none; }
.onsite-card { display: flex; flex-direction: column; gap: 10px; border: 1px dashed var(--gbc-line-strong); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--gbc-ink); font-weight: 300; min-height: 150px; }
.onsite-card:hover { background: var(--gbc-surface); }
.onsite-card .big { font-size: 34px; color: var(--jh-heading); line-height: 1; font-weight: 400; }
.onsite-card b { font-weight: 400; }
.onsite-card .go { color: var(--jh-heading); text-decoration: underline; font-weight: 400; margin-top: auto; }
.paycard { display: flex; flex-direction: column; gap: 4px; background: var(--gbc-surface); border: 1px solid var(--gbc-line); border-left: 4px solid var(--gbc-amber-edge); border-radius: 12px; padding: 14px 18px; text-decoration: none; color: var(--gbc-ink); margin: 0 0 22px; }
.paywrap[hidden] { display: none; }

/* Construction */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.bookings { list-style: none; margin: 0; padding: 0; }
.bookings li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--gbc-line); }
.bookings li .muted { grid-column: 2; font-size: 13.5px; }
.bookings .when { color: var(--gbc-ink-soft); font-size: 14px; }
a.strong { font-weight: 500; color: var(--jh-heading); }
tr.held td:first-child { box-shadow: inset 3px 0 0 var(--gbc-amber-edge); padding-left: 10px; }

/* To check */
.paybanner { background: var(--gbc-surface); border: 1px solid var(--gbc-line); border-left: 4px solid var(--gbc-green); border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; }
.paybanner.red { border-left-color: var(--jh-red-edge); }
.redtext { color: var(--gbc-red); font-weight: 500; }
.vt.tc td.acts { white-space: nowrap; text-align: right; }
.vt.tc td.acts form, .vt.tc td.acts details { display: inline-block; vertical-align: top; margin-left: 6px; }
.vt td.num, .vt th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vt tr.red td:first-child { box-shadow: inset 3px 0 0 var(--jh-red-edge); padding-left: 10px; }
.vt tr.heldrow td:first-child { box-shadow: inset 3px 0 0 var(--gbc-amber-edge); padding-left: 10px; }
.vt tr.done { color: var(--gbc-muted); }
.fname { overflow-wrap: anywhere; }
.holdbox { position: relative; }
.holdbox[open] form { position: absolute; right: 0; z-index: 20; margin-top: 6px; background: var(--gbc-surface); border: 1px solid var(--gbc-line); border-radius: 10px; box-shadow: var(--jh-pop-shadow); padding: 12px; width: 300px; text-align: left; white-space: normal; display: flex; flex-direction: column; gap: 8px; }
.holdbox label, .holdform label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.holdbox input, .holdform input[name="detail"], .holdform input[type="date"], .addjob input, .filter input { min-height: 44px; border: 1px solid var(--gbc-line-strong); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 15px; background: var(--gbc-surface); color: var(--gbc-ink); }
.payrun { margin-top: 24px; }
.vt tfoot td { border-bottom: 0; padding-top: 14px; }

/* A job's stage card */
.stagecard .sc-top { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.stagecard .sc-top h2 { margin: 2px 0 0; font-size: 24px; }
.sc-days { margin-left: auto; font-size: 16px; }
.heldbox, .sugbox { background: var(--gbc-amber-bg); border: 1px solid var(--gbc-amber-line); border-left: 4px solid var(--gbc-amber-edge); border-radius: 10px; padding: 12px 16px; margin: 16px 0; color: var(--gbc-ink); }
.sugbox { background: var(--jh-surface-2); border-color: var(--gbc-line); border-left-color: var(--gbc-green); }
.heldbox form, .sugbox form { margin-top: 8px; display: inline-block; }
@media (prefers-color-scheme: dark) { .heldbox { background: #33290F; border-color: #6B5520; } }
.holdform { margin: 16px 0; }
.holdform[open] form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; max-width: 520px; background: var(--jh-surface-2); border: 1px solid var(--gbc-line); border-radius: 10px; padding: 16px; }
.holdform fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.holdform legend { font-size: 14px; margin-bottom: 6px; }
.holdform label.radio { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; min-height: 40px; }
.radio input { width: 20px; height: 20px; }
.stages { margin-top: 18px; border-top: 1px solid var(--gbc-line); }
.stg { border-bottom: 1px solid var(--gbc-line); }
.stg > summary { display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; list-style: none; font-weight: 400; }
.stg > summary::-webkit-details-marker { display: none; }
.stg > summary .n { width: 26px; height: 26px; border-radius: 50%; background: var(--gbc-green-tint); color: var(--jh-heading); font-size: 13px; display: grid; place-items: center; flex: none; }
.stg.cur > summary { font-weight: 500; }
.stg > summary .nm { flex: 1; }
.steps { list-style: none; margin: 0 0 8px; padding: 0 0 0 38px; }
.step { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--gbc-line); }
.step .sl { flex: 1; min-width: 0; }
.step.not_needed .lbl { text-decoration: line-through; color: var(--gbc-muted); }
.step.now .lbl { font-weight: 500; }
.tickbox { width: 32px; height: 32px; min-height: 32px; border-radius: 7px; border: 2px solid var(--gbc-line-strong); background: var(--gbc-surface); color: #fff; display: grid; place-items: center; font-size: 17px; padding: 0; cursor: pointer; flex: none; }
.tickbox.on { background: var(--gbc-green); border-color: var(--gbc-green); }
.tickbox.auto { cursor: default; border-style: dashed; }
.tickbox.auto.on { border-style: solid; }
.tickbox:disabled { opacity: .4; cursor: default; }
.stg-acts { padding: 0 0 12px 38px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Settings: Jobs in Job Hub, Subbies and Suppliers */
.addjob { margin-top: 18px; max-width: 520px; }
.addjob label { display: block; font-size: 14.5px; margin-bottom: 6px; }
.addjob .row { display: flex; gap: 10px; }
.addjob input { flex: 1; }
.filter { margin: 0 0 12px; max-width: 520px; }
.filter input { width: 100%; }
.bizlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gbc-line); }
.bizlist li { border-bottom: 1px solid var(--gbc-line); }
.bizlist li[hidden] { display: none; }
.bizlist summary { min-height: 48px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 400; color: var(--jh-heading); }
.bizlist .kv.biz { border-top: 0; margin: 0 0 12px 18px; }
.bizlist .kv.biz .row { padding: 8px 0; }
.bizlist .kv.biz dt { flex-basis: 130px; }

@media (max-width: 1150px) and (min-width: 701px) {
	.cols, .nums { gap: 12px; }
	.colh { padding: 12px; }
	.job { padding: 12px 12px 11px; }
	.numc { padding: 14px; }
	.numc .v { font-size: 28px; }
	.search { max-width: 52vw; }
}
@media (max-width: 900px) and (min-width: 701px) {
	.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	.nums { grid-template-columns: 1fr 1fr; gap: 10px; }
	.numc { min-height: 76px; padding: 12px 14px; }
	.numc .s { display: none; }
	.cols { grid-template-columns: 1fr; gap: 14px; }
	.bar .r { width: 100%; margin-left: 0; }
	.twocol { grid-template-columns: 1fr; }
	.bookings li { grid-template-columns: 1fr; }
	.bookings li .muted { grid-column: 1; }
	.pagehead .r { width: 100%; justify-content: space-between; margin-left: 0; }
	.shell button.small-btn, .shell .tickbox, .shell .chip, .shell .numc, .shell .linkbtn, .shell .sclose, .shell .refresh button, .shell .addjob button { width: auto; }
	.shell .small-btn { min-height: 44px; }
	.vt.tc td.acts { white-space: normal; text-align: left; }
	.vt.tc td.acts form, .vt.tc td.acts details { margin: 4px 6px 0 0; }
	.holdbox[open] form { position: static; width: auto; }
	.steps, .stg-acts { padding-left: 0; }
	.sc-days { margin-left: 0; }
	.addjob .row { flex-direction: column; }
	.toast { bottom: 88px; }
}
