/* Creek to Coast Hub styles. Brand colours live here so they can be changed in one place. */
:root {
  --navy: #1C2B5A;
  --navy-dark: #111B3D;
  --lime: #8BC501;
  --mid-blue: #2E6DB4;
  --slate: #5B6670;
  --charcoal: #2F3237;
  --ground: #F1F2F0;
  --ink: #1E1F3A;
  --muted: #4B5560;
  --line: #D5DADF;
  --alert: #C8322B;
  --white: #FFFFFF;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }

/* Front page birthdays line */
.pill.leave-now { box-shadow: 0 0 0 2px var(--mid-blue), 0 1px 3px rgba(28,43,90,0.12); }
.pill.bday-today { box-shadow: 0 0 0 2px var(--lime), 0 1px 3px rgba(28,43,90,0.12); }

/* Lead sources (Marketing) */
.ls-card { margin-top: 14px; }
.ls-reason { grid-template-columns: minmax(150px, 4fr) minmax(56px, 1fr) minmax(56px, 1fr) !important; }
.ls-row { display: grid; grid-template-columns: minmax(150px, 2.4fr) repeat(6, minmax(50px, 1fr)); gap: 8px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); font-size: 14px; text-align: right; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font-family: inherit; color: inherit; }
.ls-row > div:first-child { text-align: left; }
.ls-head { font-size: 12px; font-weight: 700; color: var(--muted); border-top: none; }
.ls-channel { cursor: pointer; font-weight: 600; }
.ls-channel:hover { background: #F7F8F9; }
.ls-name { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.ls-name > div { flex: 1; min-width: 0; }
.ls-dot { width: 12px; height: 12px; border-radius: 999px; flex-shrink: 0; }
.ls-bar { height: 6px; border-radius: 999px; background: #EEF0F2; margin-top: 5px; overflow: hidden; }
.ls-fill { height: 100%; border-radius: 999px; }
.ls-source { font-size: 13px; color: var(--muted); padding: 6px 4px; background: #FAFBFB; }
.ls-source .ls-name { padding-left: 22px; }
.ls-scroll { overflow-x: auto; }
.ls-months { display: grid; gap: 3px; min-width: 640px; font-size: 12px; }
.ls-mh { font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; }
.ls-mname { font-weight: 600; padding: 6px 4px; font-size: 13px; }
.ls-mname.total { font-weight: 800; }
.ls-cell { text-align: center; padding: 6px 0; border-radius: 6px; font-weight: 700; background: #F4F5F6; }
.ls-cell.total { background: var(--navy); color: var(--white); }
.ls-lost { padding: 10px 0; border-top: 1px solid var(--line); }
.ls-lost:first-child { border-top: none; }
@media (max-width: 640px) {
  .ls-row { grid-template-columns: minmax(100px, 2fr) repeat(6, minmax(38px, 1fr)); font-size: 12px; gap: 4px; }
}

/* Office routine (Admin) */
.rt-history { background: var(--white); border-radius: 14px; padding: 12px 16px; margin: 12px 0; box-shadow: 0 1px 3px rgba(28,43,90,0.12); }
.rt-history-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.rt-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.rt-day { border-radius: 10px; padding: 8px 6px; text-align: center; background: #EEF0F2; }
.rt-day.good { background: #E7F5CC; }
.rt-day.mid { background: #FFF4D6; }
.rt-day.bad { background: #FDE7E5; }
.rt-pct { font-size: 17px; font-weight: 800; }
.rt-date { font-size: 11px; color: var(--muted); font-weight: 600; }
.rt-section { margin-top: 12px; }
.rt-task { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rt-task:first-of-type { border-top: none; }
.rt-task .tick:disabled { cursor: default; }
.rt-task.done .tick { background: var(--lime); border-color: var(--lime); color: #111111; }
.rt-task.done .rt-name { text-decoration: line-through; color: var(--muted); }
.rt-main { min-width: 0; overflow-wrap: anywhere; }
.rt-name { font-weight: 700; font-size: 15px; }
.rt-name a { color: inherit; text-decoration: none; }
.rt-name a:hover { text-decoration: underline; }
.rt-meta { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.rt-task.is-late .rt-meta { color: #9A6700; }
.rt-task.is-late.critical { background: #FDF1F0; border-radius: 10px; padding-left: 8px; }
.rt-task.is-late.critical .rt-name { color: var(--alert); }
.rt-task.is-late.critical .rt-meta, .rt-task.critical .rt-meta { color: var(--alert); }
.rt-task.done.critical .rt-meta { color: var(--muted); }
.pill.routine-warn { box-shadow: 0 0 0 2px var(--alert), 0 1px 3px rgba(28,43,90,0.12); }

/* People (Management): a card per person, coloured by team */
.ppl-coming { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.ppl-coming span { background: var(--white); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; box-shadow: 0 1px 3px rgba(28,43,90,0.12); }
.ppl-coming b { color: var(--navy); }
.ppl-switch { display: flex; gap: 8px; margin: 14px 0; }
.ppl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-items: start; }
.ppl-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(28,43,90,0.12); min-width: 0; overflow-wrap: anywhere; }
.ppl-card.left { opacity: 0.75; }
.ppl-band { height: 54px; background: var(--slate); }
.ppl-card.t-operations .ppl-band { background: var(--navy); }
.ppl-card.t-admin .ppl-band { background: var(--lime); }
.ppl-card.t-marketing .ppl-band { background: var(--mid-blue); }
.ppl-card.t-delivery .ppl-band { background: var(--slate); }
.ppl-head { display: flex; align-items: flex-start; gap: 12px; padding: 0 18px; margin-top: -30px; }
.ppl-avatar { flex-shrink: 0; width: 64px; height: 64px; border-radius: 999px; background: var(--white); border: 3px solid var(--white); box-shadow: 0 1px 4px rgba(28,43,90,0.25); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--white); background-clip: padding-box; }
.ppl-card.t-operations .ppl-avatar { background-color: var(--navy); }
.ppl-card.t-admin .ppl-avatar { background-color: #5F8A00; }
.ppl-card.t-marketing .ppl-avatar { background-color: var(--mid-blue); }
.ppl-card.t-delivery .ppl-avatar, .ppl-avatar { background-color: var(--slate); }
.ppl-name { padding-top: 36px; min-width: 0; }
.ppl-name h3 { margin: 0; font-size: 17px; line-height: 1.2; }
.ppl-name div { font-size: 13px; color: var(--muted); font-weight: 600; }
.ppl-body { padding: 12px 18px 18px; }
.ppl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ppl-chip { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: #EEF0F2; color: var(--muted); }
.ppl-chip.t-operations { background: var(--navy); color: var(--white); }
.ppl-chip.t-admin { background: var(--lime); color: #111111; }
.ppl-chip.t-marketing { background: var(--mid-blue); color: var(--white); }
.ppl-chip.t-delivery { background: var(--slate); color: var(--white); }
.ppl-chip.soon { background: #FFF4D6; color: #7A5600; }
.ppl-chip.warn { background: #FDE7E5; color: var(--alert); }
.ppl-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.ppl-actions a { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 8px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--navy); min-height: 40px; }
.ppl-actions a:hover { border-color: var(--navy); }
.ppl-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; margin: 0; }
.ppl-facts dt { color: var(--muted); font-weight: 600; }
.ppl-facts dd { margin: 0; font-weight: 600; }
.ppl-leave { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.ppl-leave h4 { margin: 0 0 8px; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.ppl-bar { margin-bottom: 8px; }
.ppl-bar .lbl { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.ppl-bar .lbl span:last-child { color: var(--muted); }
.ppl-bar .track { height: 8px; border-radius: 999px; background: #EEF0F2; overflow: hidden; }
.ppl-bar .fill { height: 100%; border-radius: 999px; background: var(--lime); }
.ppl-bar.personal .fill { background: var(--mid-blue); }
.ppl-bar.low .fill { background: #E0A100; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
button { font-family: inherit; }

/* Top bar */
.topbar { background: var(--charcoal); color: var(--white); padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.topbar-left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: 0.04em; color: var(--white); text-decoration: none; }
.brand span { color: var(--lime); }
.brand:hover { color: var(--white); }
.crumbs { font-size: 14px; color: #D3D6DA; }
.crumbs a { color: #D3D6DA; }
.crumbs strong { color: var(--white); }
.user { display: flex; align-items: center; gap: 12px; }
.user-name { text-align: right; line-height: 1.2; }
.user-name b { display: block; font-size: 14px; }
.user-name small { font-size: 12px; color: #D3D6DA; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #555A61; background: transparent; color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn .count { position: absolute; top: -6px; right: -6px; background: var(--alert); color: var(--white); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 6px; }
.stripe { height: 4px; background: var(--lime); }

main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 48px; }
.example { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; background: #F3E9D8; color: #7A4A00; border-radius: 999px; padding: 6px 12px; }

/* Home page */
.home { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pill { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; background: var(--white); border-radius: 999px; padding: 10px 18px; text-decoration: none; color: var(--ink); font-size: 14px; box-shadow: 0 1px 3px rgba(28,43,90,0.12); }
.pill .soft { color: var(--muted); }
.wheel { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 1; margin-top: 16px; }
.wheel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wheel-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 27%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wheel-centre img { width: 100%; height: auto; display: block; }
.wheel-centre div { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; color: var(--navy); }
.seg { position: absolute; transform: translate(-50%,-50%); background: transparent; border: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; cursor: pointer; text-decoration: none; transition: transform .15s ease; }
.seg:hover { transform: translate(-50%,-50%) scale(1.06); }
.seg.seg-locked { cursor: default; opacity: 0.5; }
.seg.seg-locked:hover { transform: translate(-50%,-50%); }
.seg b { font-size: 24px; font-weight: 800; }
.seg span { font-size: 13px; font-weight: 600; }
.seg-ops { left: 50%; top: 14%; color: var(--white); }
.seg-admin { left: 86%; top: 50%; color: #111111; }
.seg-admin:hover { color: #111111; }
.seg-marketing { left: 50%; top: 86%; color: var(--white); }
.seg-delivery { left: 14%; top: 50%; color: var(--white); }
.badge { position: absolute; transform: translate(-50%,-50%); width: 38px; height: 38px; border-radius: 999px; background: var(--alert); border: 3px solid var(--white); color: var(--white); font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.panel { width: 100%; max-width: 640px; background: var(--white); border-radius: 16px; padding: 20px 22px; box-shadow: 0 1px 3px rgba(28,43,90,0.12); border-top: 6px solid var(--navy); }
.panel[hidden] { display: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel h2 { margin: 0; font-size: 20px; }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.panel-grid a { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; min-height: 44px; }
.close { width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; color: var(--muted); font-size: 22px; }
.numbers { width: 100%; max-width: 900px; margin-top: 20px; }
.numbers-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.numbers h2 { margin: 0; font-size: 22px; }
.toggle { display: flex; background: var(--white); border-radius: 10px; padding: 4px; box-shadow: 0 1px 3px rgba(28,43,90,0.12); }
.toggle button { border: none; border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 700; cursor: pointer; background: transparent; color: var(--muted); }
.toggle button.on { background: var(--navy); color: var(--white); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tile { background: var(--white); border-radius: 14px; padding: 16px; box-shadow: 0 1px 3px rgba(28,43,90,0.12); }
.tile .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile .value { font-size: 30px; font-weight: 800; margin-top: 4px; }
.tile .period { font-size: 12px; color: var(--muted); }
.note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* Section pages */
.banner { background: var(--lime); color: #111111; border-radius: 0 0 16px 16px; padding: 14px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.banner-icon { width: 40px; height: 40px; border-radius: 999px; background: var(--white); display: flex; align-items: center; justify-content: center; }
.banner h1 { margin: 0; font-size: 20px; }
.banner p { margin: 0; font-size: 14px; font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 20px; }
.tabs button { border: none; border-bottom: 3px solid transparent; background: transparent; padding: 12px 16px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; min-height: 44px; }
.tabs button.on { border-bottom-color: var(--lime); font-weight: 800; color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--white); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 3px rgba(28,43,90,0.10); }
.card:hover { box-shadow: 0 4px 14px rgba(28,43,90,0.16); color: var(--ink); }
.card-head { display: flex; align-items: center; gap: 12px; }
.chip { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--white); }
.chip.working { background: var(--lime); color: #111111; }
.card-head b { font-size: 17px; }
.card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); flex-grow: 1; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.status { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; border-radius: 999px; padding: 4px 9px; background: #E6E8EB; color: #3C434B; }
.status.working { background: #E4F3C4; color: #2F4A00; }
.count-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; border-radius: 999px; padding: 4px 9px; background: #F3E9D8; color: #7A4A00; }
.open { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--navy); }
.box { background: var(--white); border-radius: 14px; padding: 24px; margin-top: 20px; font-size: 15px; color: var(--muted); }

/* Unscheduled jobs */
.page-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-title h1 { margin: 0; font-size: 26px; }
.page-title p { margin: 0; font-size: 14px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--white); border-radius: 14px; padding: 16px; box-shadow: 0 1px 3px rgba(28,43,90,0.10); }
.stat .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat .value { font-size: 30px; font-weight: 800; }
.stat .value.red { color: #B3261E; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
.filters button.on { border-color: var(--navy); background: var(--navy); color: var(--white); font-weight: 700; }
.table-wrap { background: var(--white); border-radius: 14px; box-shadow: 0 1px 3px rgba(28,43,90,0.10); overflow-x: auto; }
table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 12px 18px; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; color: var(--muted); border-bottom: 1px solid #E3E6E9; }
td { padding: 14px 18px; border-bottom: 1px solid #EEF0F2; vertical-align: middle; }
td small { display: block; color: var(--muted); font-size: 13px; }
.job { font-weight: 700; color: var(--navy); }
.type { font-size: 12px; font-weight: 700; background: #EEF0F7; color: var(--navy); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.late { color: #B3261E; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 8px; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700; text-decoration: none; }
.btn:hover { color: var(--white); background: var(--navy-dark); }

/* Not built yet: greyed out with a Building label */
.building { opacity: 0.55; filter: grayscale(1); }
.building-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; border-radius: 999px; padding: 4px 9px; background: #E6E8EB; color: #3C434B; white-space: nowrap; }
div.card { cursor: default; }
div.card:hover { box-shadow: 0 1px 3px rgba(28,43,90,0.10); }
.panel-grid .item { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; min-height: 44px; }
.preview-link { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--navy); }

/* Signed-in user and preview banner */
.user-name .signout { display: block; font-size: 12px; color: #D3D6DA; margin-top: 2px; }
.preview-bar { background: #F3E9D8; color: #7A4A00; font-size: 13px; font-weight: 700; text-align: center; padding: 8px 16px; }
.pill .late, .late { color: #B3261E; font-weight: 700; }
.muted { color: var(--muted); font-size: 14px; }
.error { color: #B3261E; font-weight: 700; }
.empty { background: var(--white); border-radius: 14px; padding: 24px; color: var(--muted); }

/* Live item inside a wheel panel */
.panel-grid .item.live { text-decoration: none; color: var(--ink); border-color: var(--navy); }
.panel-grid .item.live:hover { background: #F4F6FB; }
.live-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--navy); white-space: nowrap; }

/* Task lists */
.tasks-page { max-width: 900px; }
.tasks-box { margin-top: 20px; }
.views { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.view { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.view.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.view.on:hover { color: var(--white); }
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.task { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(28,43,90,0.10); transition: opacity .5s ease; }
.task.done { opacity: 0.3; }
.tick { flex-shrink: 0; width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tick:hover { border-color: var(--lime); color: var(--lime); }
.task.done .tick { background: var(--lime); border-color: var(--lime); color: #111111; }
.task-body { flex: 1; min-width: 0; padding-top: 2px; }
.task-name { font-size: 16px; font-weight: 700; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.task-meta .due.today { color: var(--navy); font-weight: 700; }
.task-meta .who { font-weight: 700; color: var(--ink); }
.task-details { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* Login page */
.login { display: flex; justify-content: center; padding-top: 48px; }
.login-card { background: var(--white); border-radius: 18px; padding: 32px 28px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 1px 3px rgba(28,43,90,0.12); }
.login-card img { width: 160px; height: auto; }
.login-card h1 { margin: 12px 0 6px; font-size: 24px; }
.login-card p { color: var(--muted); margin: 0 0 18px; }
.login-msg { color: #B3261E !important; font-weight: 700; }
.btn-big { min-height: 48px; padding: 0 22px; font-size: 15px; }

/* Red count on a live app card */
.count-badge { margin-left: auto; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--alert); color: var(--white); font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* Connection check */
.quiet-link { margin: 18px 0 0; font-size: 13px; color: #5B6670; }
.quiet-link a { color: #5B6670; font-weight: 600; }
.check-link { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 700; }
.check { display: grid; gap: 16px; }
.check .box { background: var(--white); border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(28,43,90,0.12); }
.check h2 { margin: 0 0 10px; font-size: 18px; }
.check table { width: 100%; border-collapse: collapse; font-size: 14px; }
.check th, .check td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.check th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.check .num { text-align: right; font-weight: 800; }
.verdict { border-left: 6px solid var(--lime); }
.verdict.warn { border-left-color: var(--alert); }
.ok-tag, .warn-tag { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ok-tag { background: #EAF6D3; color: #3C5A00; }
.warn-tag { background: #FBE3E3; color: #9B1C1C; }

/* Job details under a task */
.job-toggle { border: 1px solid var(--line); background: #F4F6FB; color: var(--navy); border-radius: 999px; padding: 4px 12px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 32px; }
.job-toggle::after { content: ' ▾'; }
.job-toggle[aria-expanded="true"]::after { content: ' ▴'; }
.job-toggle:hover { border-color: var(--navy); }
.job-panel { margin-top: 10px; border-top: 1px solid #EEF0F2; padding-top: 10px; font-size: 14px; }
.job-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 8px; }
.job-facts dt { color: var(--muted); font-weight: 600; }
.job-facts dd { margin: 0; font-weight: 600; }
.job-label { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 10px; }
.job-text { white-space: pre-line; margin-top: 2px; }
.job-tasks { margin: 4px 0 0; padding-left: 18px; }
.job-tip { margin: 10px 0 0; font-size: 12px; }

/* Open in ServiceM8 */
.sm8-link { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700; text-decoration: none; }
.sm8-link:hover { background: var(--navy-dark); color: var(--white); }

/* Section banners in the wheel colours */
.banner-operations { background: var(--navy); color: var(--white); }
.banner-delivery { background: var(--slate); color: var(--white); }
.banner-marketing { background: var(--mid-blue); color: var(--white); }
.banner-management { background: var(--charcoal, #2F3237); color: var(--white); }
.seg-ops:hover, .seg-marketing:hover, .seg-delivery:hover { color: var(--white); }

/* Numbers pages */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 8px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.filters select, .filters input { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--white); }
.range { margin: 4px 0 14px; font-size: 14px; color: var(--muted); }
a.tile { text-decoration: none; color: var(--ink); display: block; }
a.tile:hover { box-shadow: 0 2px 8px rgba(28,43,90,0.2); color: var(--ink); }
.tile .open { font-size: 12px; font-weight: 700; color: var(--navy); margin-top: 6px; }
.tile .building-tag { display: inline-block; margin-top: 8px; }

/* Front page tech numbers */
.team-card { display: block; background: var(--white); border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(28,43,90,0.12); text-decoration: none; color: var(--ink); border-top: 5px solid var(--navy); margin-bottom: 12px; }
.team-card:hover { color: var(--ink); box-shadow: 0 2px 8px rgba(28,43,90,0.2); }
.team-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 15px; }
.team-jobs { font-size: 13px; font-weight: 700; color: var(--navy); }
.team-figs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 6px 0 10px; color: var(--muted); font-size: 14px; }
.team-figs .big, .dial-mid .big { font-size: 28px; font-weight: 800; color: var(--ink); }
.bar { position: relative; height: 14px; background: #E6E8EB; border-radius: 999px; }
.bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--mid-blue); }
.bar span.ahead { background: var(--lime); }
.bar i { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--charcoal); transform: translateX(-50%); }
.team-foot { margin-top: 8px; font-size: 13px; color: var(--muted); }
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.gauges .box, .gauges-note { grid-column: 1 / -1; margin: 0; }
.gauge-card { background: var(--white); border-radius: 14px; padding: 14px 16px 16px; box-shadow: 0 1px 3px rgba(28,43,90,0.12); }
.gauge-card.fire { box-shadow: 0 0 0 3px var(--lime); }
.gauge-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 28px; font-size: 16px; }
.left-tag { background: #E6E8EB; color: #3C434B; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.fire-tag { background: var(--lime); color: #111111; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.dial { position: relative; max-width: 230px; margin: 6px auto 0; }
.dial svg { display: block; width: 100%; height: auto; }
.dial-mid { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.2; }
.gauge-foot { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.5; }
.gauge-foot .ahead { color: #3D6B00; font-weight: 700; }
.gauge-foot .behind { color: var(--mid-blue); font-weight: 700; }
.tiles.later { margin-top: 12px; }
.tiles.later { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.later .tile { padding: 12px; }
.tiles.later .value { font-size: 20px; }
.tiles.later .sales-tile { border-top: 4px solid var(--lime); }
.tiles.later .cb-tile { border-top-color: var(--slate, #5B6670); }
.tiles.later .sales-tile .period { margin-top: 4px; line-height: 1.4; }
@media (max-width: 600px) {
  .tiles.later { grid-template-columns: 1fr 1fr; }
  .tiles.later .cb-tile { grid-column: 1 / -1; }
}
.gauge-foot .sales-line { color: var(--ink); font-weight: 600; }

/* Quotes split: on site vs office and estimating */
.office-card { margin-top: 12px; border-top-color: var(--lime); }
.office-card .split { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0 4px; }
.office-card .split-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.office-card .split-big { font-size: 20px; font-weight: 800; }
.office-card .split-big small { font-size: 13px; font-weight: 600; color: var(--muted); }
.office-card .split-rate { font-size: 13px; color: var(--navy); font-weight: 700; margin-top: 2px; }

/* Call-out roster */
.roster-page { max-width: 900px; }
.roster-box { margin-top: 16px; padding: 18px; }
.roster-box h2 { margin: 0 0 12px; font-size: 18px; color: var(--ink); }
.alert-box { border-left: 5px solid var(--alert); }
.notice { background: #E4F3C4; color: #2F4A00; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.notice.bad { background: #FBE3E1; color: #7A1D18; }
.tryas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; color: var(--muted); }
.pillbtn { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; }
.pillbtn.on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tonight { display: flex; flex-direction: column; gap: 2px; background: var(--navy); color: var(--white); border-radius: 14px; padding: 16px 20px; margin-top: 12px; }
.tonight small { color: #C9D2EA; font-weight: 600; }
.tonight b { font-size: 26px; }
.req { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 12px 0; }
.req:first-of-type { border-top: none; }
.req-text { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.req-text small { color: var(--muted); font-size: 13px; }
.req-buttons { display: flex; gap: 8px; }
button.btn { border: none; cursor: pointer; font-family: inherit; min-height: 44px; }
button.btn:not(.primary) { background: #E6E8EB; color: var(--ink); }
button.btn.primary { background: var(--lime); color: #111111; }
button.btn:disabled { opacity: 0.6; cursor: wait; }
.roster-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 14px; }
.roster-table td { padding: 10px 12px; border-top: 1px solid #E3E6E9; vertical-align: top; }
.roster-table td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.roster-table tr.past td { color: var(--muted); }
.roster-table tr.current td { background: #F4F9E8; }
.roster-table tr.mine td:first-child { box-shadow: inset 4px 0 0 var(--lime); }
.now-tag, .you-tag { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; border-radius: 999px; padding: 3px 8px; background: var(--navy); color: var(--white); vertical-align: middle; }
.you-tag { background: var(--lime); color: #111111; }
.swap-tag { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; background: #FFF1D6; color: #7A4A00; white-space: nowrap; }
.note-line { font-style: italic; }
.recent { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.recent li { padding: 6px 0; }
.st { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 8px; background: #E6E8EB; }
.st-accepted { background: #E4F3C4; color: #2F4A00; }
.st-declined, .st-cancelled { background: #F0E3E2; color: #7A1D18; }
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kind { display: flex; flex-direction: column; gap: 3px; text-align: left; border: 2px solid var(--line); background: var(--white); border-radius: 12px; padding: 12px 14px; font: inherit; cursor: pointer; }
.kind small { color: var(--muted); }
.kind.on { border-color: var(--lime); background: #F4F9E8; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 14px; font-weight: 600; }
.field select, .roster-box textarea { font: inherit; font-weight: 400; padding: 10px; border: 1px solid var(--line); border-radius: 8px; min-height: 44px; background: var(--white); }
.roster-box textarea { width: 100%; box-sizing: border-box; min-height: 70px; margin: 10px 0; }
.nights { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.field-label { width: 100%; font-size: 14px; font-weight: 600; }
.night { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; min-height: 40px; font-size: 14px; background: var(--white); }
.night.off { color: var(--muted); background: #F4F5F6; }
.night input { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .roster-table, .roster-table tbody { display: block; width: 100%; }
  .roster-table tr:first-child { display: none; }
  .roster-table tr { display: block; border-top: 1px solid #E3E6E9; padding: 8px 0; }
  .roster-table td { display: block; border-top: none; padding: 2px 10px; }
  .roster-table td:empty { display: none; }
}

/* Front page: tiles open the list of jobs behind them */
button.tile { font: inherit; color: inherit; text-align: left; border: none; cursor: pointer; width: 100%; }
button.tile:hover { box-shadow: 0 2px 8px rgba(28,43,90,0.18); }
.tile.open { outline: 2px solid var(--navy); }
.tile-open { font-size: 12px; font-weight: 700; color: var(--mid-blue); margin-top: 6px; }
.tile.open .tile-open { color: var(--navy); }
.job-list { background: var(--white); border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(28,43,90,0.12); margin-top: 12px; border-top: 4px solid var(--navy); }
.job-list[hidden] { display: none; }
.job-list-head { display: flex; justify-content: space-between; align-items: center; }
.job-list h3 { margin: 0; font-size: 17px; }
.job-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.job-row:last-of-type { border-bottom: none; }
.job-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.job-top span { color: var(--muted); font-size: 13px; }
.job-desc { font-size: 14px; margin-top: 2px; }
.job-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.job-value { font-weight: 800; white-space: nowrap; }
/* Centre of the wheel opens Management (people who see everything) */
a.wheel-centre { text-decoration: none; transition: transform .15s ease; }
a.wheel-centre:hover { transform: translate(-50%,-50%) scale(1.05); }

/* Job lists: tap a job to see its details */
.job-row { display: block; }
.job-row-btn { display: flex; justify-content: space-between; gap: 12px; width: 100%; font: inherit; color: inherit; text-align: left; background: none; border: none; padding: 0; cursor: pointer; }
.job-row-btn:hover .job-top b { text-decoration: underline; }
.job-row-btn[aria-expanded="true"] .job-top b::after { content: ' ▴'; }
.job-row-btn[aria-expanded="false"] .job-top b::after { content: ' ▾'; color: var(--muted); }
.job-panel { background: var(--bg, #F4F5F7); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 14px; }
.job-panel[hidden] { display: none; }

/* Callback review */
.cb-controls { display: flex; justify-content: flex-end; margin: 14px 0 4px; }
.cb-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; margin-top: 10px; }
@media (max-width: 760px) { .cb-grid { grid-template-columns: 1fr; } }
.cb-card { background: var(--white); border-radius: 14px; padding: 16px; box-shadow: 0 1px 3px rgba(28,43,90,0.12); }
.cb-card h2 { margin: 0 0 6px; font-size: 17px; }
.cb-jobs { margin-top: 14px; }
.cb-bar { display: block; width: 100%; font: inherit; color: inherit; text-align: left; background: none; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.cb-bar:hover, .cb-bar.on { border-color: var(--navy); }
.cb-bar-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.cb-track { height: 8px; background: #E6E8EB; border-radius: 999px; margin-top: 4px; overflow: hidden; }
.cb-track i { display: block; height: 100%; background: var(--slate); border-radius: 999px; }
.cb-trend { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.cb-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; font-size: 12px; }
.cb-colbar { width: 100%; max-width: 34px; background: var(--mid-blue); border-radius: 4px 4px 0 0; min-height: 2px; }
.cb-col span { color: var(--muted); }
.link-btn { font: inherit; font-size: 14px; font-weight: 700; color: var(--mid-blue); background: none; border: none; cursor: pointer; }

/* Wheel wording shrinks with the wheel, so it stays inside each section on phones */
.wheel { container-type: inline-size; }
.seg { padding: 1cqw; }
.seg b { font-size: clamp(13px, 4.4cqw, 24px); line-height: 1.1; }
.seg span { font-size: clamp(9px, 2.4cqw, 13px); white-space: nowrap; }
.wheel-centre div { font-size: clamp(8px, 2cqw, 11px); }

/* Quotes to follow up */
.qf-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (max-width: 600px) { .qf-tiles { grid-template-columns: 1fr 1fr; } }
.qf-tile { border-top: 4px solid var(--line); }
.qf-tile .value { font-size: 24px; }
.qf-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip-btn { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip-btn.on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.age-tag { font-weight: 800; }
.qf-tile.age-new { border-top-color: var(--lime); } .age-tag.age-new { color: #4F7A00; }
.qf-tile.age-due { border-top-color: #E0A100; } .age-tag.age-due { color: #A06F00; }
.qf-tile.age-old { border-top-color: #E06A00; } .age-tag.age-old { color: #B04F00; }
.qf-tile.age-stale { border-top-color: var(--alert, #D93025); } .age-tag.age-stale { color: var(--alert, #D93025); }
/* Unscheduled jobs (age tiles and filter chips are shared with Quotes to follow up) */
.job-value.late { color: var(--alert); }

/* Today's schedule and My jobs today */
.sched-controls { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 10px; }
.sched-pick { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.sched-pick select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); }
.sched-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start; }
/* Long words and lines of underscores in job notes wrap inside the column instead of spilling out */
.sched-grid > * { min-width: 0; overflow: hidden; }
.sched-grid, .job-main { overflow-wrap: anywhere; word-break: break-word; }
.sched-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--navy); padding-bottom: 6px; }
.sched-head h2 { margin: 0; }
.sched-caveat { margin: 8px 0 4px; padding: 8px 12px; border-radius: 8px; background: #FFF4D6; color: #6B4E00; font-size: 14px; font-weight: 600; }
.sched-count { font-size: 13px; color: var(--muted); font-weight: 700; }
.sched-time { font-weight: 800; color: var(--navy); font-size: 13px; }
.sched-job { position: relative; }
.sched-job.done .job-main { opacity: 0.5; }
.sched-mine { padding-left: 42px; }
.sched-num { position: absolute; left: -30px; top: 12px; width: 22px; height: 22px; border-radius: 999px; background: var(--slate); color: var(--white); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sched-dir { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--mid-blue); text-decoration: none; border: 1px solid var(--mid-blue); border-radius: 999px; padding: 4px 12px; }

/* Forms to lodge: tick-off buttons under each job */
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 12px; }
.form-actions .btn { min-height: 36px; font-size: 13px; }

/* Money owed (Admin) */
.mo-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .mo-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mo-tiles { grid-template-columns: 1fr 1fr; } }
.mo-tiles .value { font-size: 22px; }
.qf-tile.mo-worst { background: #FCEDEC; }
.mo-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 16px 0 10px; }
.mo-bar .ppl-switch { margin: 0; }
.mo-search { flex: 1; min-width: 220px; max-width: 360px; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; }
.mo-cust { padding: 0; overflow: hidden; margin-bottom: 10px; border-left: 6px solid var(--line); }
.mo-cust.chase { border-left-color: #E0A100; }
.mo-cust.chase.bad { border-left-color: var(--alert); }
.mo-head { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; border: none; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.mo-head h3 { margin: 0; font-size: 16px; color: var(--navy); }
.mo-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mo-amt { text-align: right; white-space: nowrap; }
.mo-amt b { display: block; font-size: 18px; }
.mo-amt span { font-size: 12px; color: var(--alert); font-weight: 700; }
.mo-body { padding: 0 16px 16px; }
.mo-invs { border-top: 1px solid var(--line); margin-bottom: 12px; }
.mo-inv { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; padding-left: 8px; }
.mo-inv.d30 { border-left-color: #E0A100; } .mo-inv.d60 { border-left-color: #E06A00; } .mo-inv.d90, .mo-inv.d90plus { border-left-color: var(--alert); }
.mo-num { font-weight: 700; color: var(--mid-blue); }
.mo-late { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.mo-inv.d60 .mo-late, .mo-inv.d90 .mo-late, .mo-inv.d90plus .mo-late { color: var(--alert); }
.mo-due { font-weight: 800; white-space: nowrap; }
.mo-notes h4 { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.mo-note { background: #F4F6F8; border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; font-size: 14px; }
.mo-noteform textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; margin-top: 6px; }
.mo-noterow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; font-size: 13px; }
.mo-noterow input[type=date] { margin-left: 6px; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; }
.mo-msg { color: var(--muted); }
@media (max-width: 520px) { .mo-inv { grid-template-columns: 1fr auto; } .mo-late { grid-column: 1; } }
.mo-tiles button.qf-tile { border-top: 4px solid var(--line); }
.mo-tiles button.qf-tile.age-new { border-top-color: var(--lime); }
.mo-tiles button.qf-tile.age-due { border-top-color: #E0A100; }
.mo-tiles button.qf-tile.age-old { border-top-color: #E06A00; }
.mo-tiles button.qf-tile.age-stale { border-top-color: var(--alert); }
.mo-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.mo-numtxt { color: var(--navy); }
.mo-open { font-size: 12px; font-weight: 700; color: var(--mid-blue); }

/* Capabilities (Operations) */
.lv-A { background: #7FB800; } .lv-B { background: #E0A100; } .lv-C { background: #D9534F; } .lv-N { background: #B9C0C7; }
.cap-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cap-tiles .tile { text-align: left; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; cursor: pointer; color: inherit; }
.cap-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); font-weight: 600; margin: 4px 0 0; }
.cap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cap-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cap-scope { padding: 16px 18px; margin-top: 12px; color: var(--ink); }
.cap-scope h3 { margin: 0; font-size: 16px; color: var(--ink); }
.cap-shead { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(260px, 1.3fr); gap: 16px; align-items: center; width: 100%; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cap-sname { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cap-meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.cap-people { display: flex; flex-direction: column; gap: 6px; }
.cap-pline { display: grid; grid-template-columns: 90px 1fr 42px; gap: 10px; align-items: center; font-size: 13px; width: 100%; background: none; border: 0; padding: 2px 0; font: inherit; color: inherit; text-align: left; }
.cap-pline b { text-align: right; font-size: 13px; }
.cap-link { cursor: pointer; border-radius: 6px; } .cap-link:hover { background: #F4F5F6; }
.cap-pname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #EEF0F2; }
.cap-bar span { height: 100%; }
.cap-sbody { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.cap-cchips { margin: 2px 0 0; }
.cap-course { background: #FAFBFB; }
.cap-licence, .cap-warnline { color: #7A5600; background: #FFF4D6; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.cap-warnline { display: inline-block; padding: 4px 8px; margin-top: 4px; }
.cap-table { overflow-x: auto; }
.cap-row { display: grid; grid-template-columns: minmax(200px, 2.2fr) repeat(var(--cols, 2), minmax(118px, 1fr)); gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line); font-size: 14px; min-width: 460px; }
.cap-row.gap { background: #FDF5F4; }
.cap-headrow { font-size: 12px; font-weight: 700; color: var(--muted); border-top: none; }
.cap-group { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--navy); padding: 14px 4px 4px; min-width: 460px; }
.cap-item { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; overflow-wrap: anywhere; }
.cap-item .ppl-chip { margin-top: 2px; }
.ppl-chip.cap-teach { background: #E7F5CC; color: #3D6B00; }
.cap-pill { width: 100%; min-height: 36px; border-radius: 999px; border: 2px solid transparent; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: #111111; }
.cap-pill.lv-A { background: #E7F5CC; color: #3D6B00; } .cap-pill.lv-B { background: #FFF4D6; color: #7A5600; }
.cap-pill.lv-C { background: #FDE7E5; color: var(--alert); } .cap-pill.lv-N { background: #EEF0F2; color: var(--muted); }
.cap-pill.checked { border-color: var(--navy); }
.cap-was { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; text-align: center; }
.cap-said { font-size: 13px; background: #F4F5F6; border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
.cap-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.cap-acts .btn, .cap-tside .btn { border: 0; cursor: pointer; font-family: inherit; }
.cap-form { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #FAFBFB; }
.cap-form h4 { margin: 0 0 10px; font-size: 15px; }
.cap-frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.cap-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 8px; }
.cap-field input, .cap-field select, .cap-field textarea { font: inherit; font-size: 14px; color: var(--ink); min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--white); }
.cap-checks { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; }
.cap-check { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }
.cap-check input { width: 18px; height: 18px; flex-shrink: 0; }
.cap-mini { display: inline-block; width: 20px; text-align: center; border-radius: 4px; font-size: 11px; font-weight: 800; color: var(--white); flex-shrink: 0; }
.cap-train { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cap-train.late .cap-tmain b { color: var(--alert); }
.cap-train.done { opacity: 0.7; }
.cap-tmain { min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.cap-note { font-size: 13px; }
.cap-tside { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; flex-shrink: 0; }
.cap-remove { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; min-height: 40px; }
.cap-sub { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.cap-sub:first-child { margin-top: 0; }
.mo-bar > .btn { min-height: 40px; }
.cap-gaphead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.cap-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: start; margin-top: 6px; }
.cap-pgrid .cap-pline { grid-template-columns: 1fr 90px 38px; }
.cap-pgrid .cap-pname { white-space: normal; }
.cap-facts { margin-top: 12px; }
.cap-answer { font-size: 14px; padding: 6px 0; border-top: 1px solid #EEF0F2; }
.cap-answer:first-of-type { border-top: 0; }
@media (max-width: 760px) {
  .cap-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-shead { grid-template-columns: 1fr; }
  .cap-pline { grid-template-columns: 80px 1fr 38px; }
  .cap-train { flex-direction: column; align-items: flex-start; }
  .cap-row { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); min-width: 0; }
  .cap-row .cap-item { grid-column: 1 / -1; }
  .cap-headrow { display: none; }
  .cap-group { min-width: 0; }
  .cap-cell::before { content: attr(data-who); display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
  .cap-tside { justify-content: flex-start; }
}

/* Toolbox talk builder */
.tb-topic { display: flex; gap: 12px; align-items: flex-start; padding: 12px 8px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.tb-topic.on { background: #F2F8E6; }
.tb-topic input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.tb-topic .cap-tmain { flex: 1; }
.tb-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ppl-chip.t-marketing { background: var(--mid-blue); color: var(--white); }
.tb-planbar { position: sticky; bottom: 12px; border: 2px solid var(--lime); box-shadow: 0 4px 16px rgba(28,43,90,0.18); padding: 16px 18px; color: var(--ink); }
.tb-planbar h3 { margin: 0; font-size: 16px; color: var(--ink); }
.tb-talkrow { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tb-talkrow:hover { background: #F7F8F9; }
.tb-talkrow .open { font-size: 13px; font-weight: 700; color: var(--navy); }
.tb-talkhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.tb-talkhead h2 { margin: 2px 0; font-size: 22px; color: var(--ink); }
.tb-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--navy); }
.tb-agenda { margin-top: 14px; background: #F4F5F6; border-radius: 10px; padding: 12px 14px; }
.tb-agenda h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.tb-arow { display: grid; grid-template-columns: 60px 1fr minmax(120px, auto) 60px; gap: 10px; padding: 4px 0; font-size: 14px; }
.tb-time { color: var(--muted); font-weight: 600; }
.tb-mins { text-align: right; font-weight: 700; }
.tb-part { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.tb-topicpart { border-top: 3px solid var(--lime); }
.tb-parthead { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.tb-part h3 { margin: 0; font-size: 16px; color: var(--ink); }
.tb-minlab { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tb-minin { width: 56px; min-height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; font: inherit; }
.tb-coverin { width: 100%; box-sizing: border-box; margin-top: 8px; font: inherit; font-size: 14px; line-height: 1.5; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; resize: vertical; min-height: 60px; }
.tb-cover { white-space: pre-wrap; font-size: 14px; line-height: 1.5; color: var(--ink); margin-top: 8px; }
.tb-sign { margin-top: 18px; font-size: 13px; color: var(--ink); }
.print-only { display: none; }
.tb-signrow { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid #CCCCCC; font-size: 13px; }
.tb-sign h3 { margin: 0 0 6px; font-size: 16px; }
@media print {
  .topbar, .stripe, .preview-bar, .no-print, .tb-coverin, .tb-minin { display: none !important; }
  .print-only { display: block !important; }
  span.print-only { display: inline !important; }
  .tb-sign .tb-signrow { display: flex !important; }
  body { background: #FFFFFF; }
  main { padding: 0; max-width: none; }
  .box { box-shadow: none; margin: 0; padding: 0; }
  .tb-part { break-inside: avoid; }
}

.tb-who { color: var(--navy); font-weight: 700; font-size: 13px; }
.tb-presline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.tb-pres { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.tb-pres select, .tb-pres input { font: inherit; font-size: 14px; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--white); color: var(--ink); }
.tb-pres input { width: 180px; }
.print-only-inline { display: none; }
@media print {
  .tb-pres { display: none !important; }
  .print-only-inline { display: inline !important; }
}

.tb-topic.intalk { cursor: default; opacity: 0.8; }
.tb-topicpart .cap-remove { min-height: 32px; padding: 0; }

/* Leave (Delivery) and Approve leave (Operations) */
.lq-card { background: var(--white); border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(28,43,90,0.12); margin-top: 14px; }
.lq-card h2 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.lq-card h3 { margin: 0; font-size: 16px; color: var(--navy); }
.lq-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; align-items: flex-start; }
.lq-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.lq-days { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.lq-days li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: #F4F8EC; }
.lq-days li.bad { background: #FBE3E3; color: #7A1D18; font-weight: 600; }
.lq-days li.warn { background: #FFF4D6; color: #6B4B00; }
.lq-bal { margin-top: 10px; font-size: 13px; line-height: 1.6; padding: 10px 12px; border-radius: 10px; background: #F1F4F8; }
.lq-bal.short { background: #FFF4D6; color: #6B4B00; border-left: 5px solid #E0A100; }
.lq-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.lq-acts textarea, .lq-note { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; min-height: 44px; }
.lq-review { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: #FFF4D6; color: #7A5600; }
.lq-src { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; background: #E8EEF8; color: var(--mid-blue); margin-left: 6px; vertical-align: middle; }
.lq-status { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; white-space: nowrap; background: #EEF0F2; color: var(--muted); }
.lq-status.pending { background: #FFF4D6; color: #7A5600; } .lq-status.approved { background: #EAF6D3; color: #3C5A00; } .lq-status.declined { background: #FBE3E3; color: #9B1C1C; }
.lq-sm8 { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 44px; }
.lq-sm8 input { width: 22px; height: 22px; accent-color: var(--lime); }
/* Calendar */
.lq-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 10px; }
.lq-month h4 { margin: 0 0 6px; font-size: 14px; color: var(--navy); }
.lq-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.lq-grid .hd { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; }
.lq-day { font: inherit; font-size: 13px; min-height: 34px; border: none; border-radius: 6px; background: #EAF6D3; color: #2F4A00; cursor: pointer; padding: 0; }
.lq-day.off { background: #EEF0F2; color: #9AA3AC; cursor: default; }
.lq-day.past { background: transparent; color: #B9C0C7; cursor: default; }
.lq-day.notice { background: #F6E9C8; color: #8A6A1A; }
.lq-day.booked { background: #FDE2CF; color: #8A3B00; }
.lq-day.away { background: #FBE3E3; color: #9B1C1C; }
.lq-day.asked { box-shadow: inset 0 0 0 2px #E0A100; }
.lq-day.mine { background: var(--navy); color: var(--white); }
.lq-day.pick { outline: 3px solid var(--mid-blue); outline-offset: -1px; }
.lq-key { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.lq-key span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; background: var(--k); }
.lq-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }

/* Front page: the lines above the wheel (My tasks, Forms to lodge, Office routine, Birthdays, On leave).
   Rounded lines, all the same width, two to a row (one on a phone): icon, name, what's waiting, arrow. */
.strip { width: 100%; max-width: 1040px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.strip .pill { --accent: var(--navy); flex: 0 1 calc(50% - 5px); min-width: 0; display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 10px;
  border-radius: 999px; padding: 10px 18px; text-align: left; min-height: 46px; }
.strip .pill[hidden] { display: none; }
.strip a.pill:hover, .strip .pill[style*="cursor"]:hover { box-shadow: 0 3px 10px rgba(28,43,90,0.16); }
.strip .pill .ic { flex: none; color: var(--accent); display: flex; }
.strip .pill strong { flex: none; width: 118px; font-size: 14px; font-weight: 700; color: var(--ink); }
.strip .pill .val { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .pill .val.soft { color: var(--muted); }
.strip .pill .val.late, .strip .pill .val .late { color: #B3261E; font-weight: 700; }
.strip .pill .go { flex: none; color: #9AA3AC; margin-left: auto; }
.strip .c-tasks { --accent: var(--navy); }
.strip .c-routine, .strip .c-forms, .strip .c-bday { --accent: #6E9C00; }
.strip .c-leave { --accent: var(--mid-blue); }
.strip .pill.routine-warn { --accent: var(--alert); box-shadow: 0 0 0 2px var(--alert), 0 1px 3px rgba(28,43,90,0.12); }
.strip .pill.bday-today { box-shadow: 0 0 0 2px var(--lime), 0 1px 3px rgba(28,43,90,0.12); }
.strip .pill.leave-now { box-shadow: 0 0 0 2px var(--mid-blue), 0 1px 3px rgba(28,43,90,0.12); }
@media (max-width: 760px) { .strip .pill { flex-basis: 100%; } .strip .pill strong { width: auto; } .strip .pill .val { white-space: normal; } }

/* My KPIs and Team KPIs */
.kp-wrap { flex-wrap: wrap; }
.kp-name { margin: 16px 0 2px; font-size: 20px; }
.kp-headline { margin: 0; color: var(--muted); font-weight: 600; }
.kp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .kp-tiles { grid-template-columns: 1fr 1fr; } }
.kp-sales { grid-template-columns: 1fr 1fr; }
.kp-tile { border-top: 5px solid var(--line); }
.kp-tile .value { font-size: 26px; }
.kp-tile.kp-green { border-top-color: var(--lime); }
.kp-tile.kp-amber { border-top-color: #E0A100; }
.kp-tile.kp-red { border-top-color: var(--alert); background: #FCEDEC; }
.kp-top { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: flex-start; gap: 4px 6px; }
.kp-flag { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; white-space: nowrap; background: #EEF0F2; color: var(--muted); }
.kp-flag.kp-green { background: #EAF5D3; color: #4F7A00; }
.kp-flag.kp-amber { background: #FBF0D2; color: #8A5F00; }
.kp-flag.kp-red { background: var(--alert); color: var(--white); }
.kp-target { font-size: 11px; color: var(--muted); margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; }
.kp-card { margin-top: 14px; }
.kp-bar { position: relative; height: 16px; background: #EEF0F2; border-radius: 999px; margin: 10px 0 6px; overflow: visible; }
.kp-fill { height: 100%; border-radius: 999px; background: var(--slate); }
.kp-fill.kp-green { background: var(--lime); } .kp-fill.kp-amber { background: #E0A100; } .kp-fill.kp-red { background: var(--alert); }
.kp-mark { position: absolute; top: -4px; width: 3px; height: 24px; background: var(--navy); border-radius: 2px; transform: translateX(-1px); }
.kp-job { border-bottom: 1px solid var(--line); }
.kp-jobbtn { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; background: none; border: 0; padding: 10px 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.kp-warn { font-size: 12px; color: #8A5F00; margin-top: 2px; }
.kp-gp { text-align: right; min-width: 64px; border-radius: 10px; padding: 4px 8px; }
.kp-gp b { display: block; font-size: 17px; } .kp-gp small { font-size: 11px; color: var(--muted); }
.kp-gp.kp-green { background: #EAF5D3; } .kp-gp.kp-amber { background: #FBF0D2; } .kp-gp.kp-red { background: #FCEDEC; color: var(--alert); }
.kp-table { display: grid; gap: 4px; min-width: 860px; }
.kp-th { font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px; align-self: end; }
.kp-rowname { font: inherit; font-weight: 700; text-align: left; background: none; border: 0; padding: 8px 4px; color: var(--navy); cursor: pointer; text-decoration: underline; }
.kp-rowname.total { color: var(--ink); text-decoration: none; cursor: default; border-top: 2px solid var(--ink); }
.kp-cell { border-radius: 8px; padding: 6px 8px; background: #F6F7F8; }
.kp-cell b { display: block; } .kp-cell small { font-size: 11px; color: var(--muted); }
.kp-cell.kp-green { background: #EAF5D3; } .kp-cell.kp-amber { background: #FBF0D2; } .kp-cell.kp-red { background: #FCEDEC; } .kp-cell.kp-red b { color: var(--alert); }
.kp-cell.total { box-shadow: inset 0 2px 0 var(--ink); }
.kp-targets { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.kp-how { margin-top: 14px; } .kp-how summary { font-weight: 700; cursor: pointer; } .kp-how ul { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* KPI colours, bolder (Deb, 18 Nov 2026): green, yellow and red backgrounds on tiles, table cells and job GP boxes */
:root { --kp-green: #6FAE00; --kp-green-bg: #C6E596; --kp-amber: #E8B800; --kp-amber-bg: #FFE27A; --kp-red: #C8322B; --kp-red-bg: #F6C3BF; }
.kp-tile.kp-green { border-top-color: var(--kp-green); background: var(--kp-green-bg); }
.kp-tile.kp-amber { border-top-color: var(--kp-amber); background: var(--kp-amber-bg); }
.kp-tile.kp-red { border-top-color: var(--kp-red); background: var(--kp-red-bg); }
.kp-tile.kp-green .label, .kp-tile.kp-amber .label, .kp-tile.kp-red .label,
.kp-tile.kp-green .period, .kp-tile.kp-amber .period, .kp-tile.kp-red .period,
.kp-tile.kp-green .kp-target, .kp-tile.kp-amber .kp-target, .kp-tile.kp-red .kp-target { color: #2F3237; }
.kp-tile.kp-green .kp-target, .kp-tile.kp-amber .kp-target, .kp-tile.kp-red .kp-target { border-top-color: rgba(0,0,0,0.18); }
.kp-flag.kp-green { background: var(--kp-green); color: #FFFFFF; }
.kp-flag.kp-amber { background: var(--kp-amber); color: #2F2600; }
.kp-flag.kp-red { background: var(--kp-red); color: #FFFFFF; }
.kp-cell.kp-green, .kp-gp.kp-green { background: var(--kp-green-bg); }
.kp-cell.kp-amber, .kp-gp.kp-amber { background: var(--kp-amber-bg); }
.kp-cell.kp-red, .kp-gp.kp-red { background: var(--kp-red-bg); }
.kp-cell.kp-green b { color: #2E5200; } .kp-cell.kp-amber b { color: #4D3D00; } .kp-cell.kp-red b { color: #8E1A14; }
.kp-cell.kp-green small, .kp-cell.kp-amber small, .kp-cell.kp-red small { color: #2F3237; }
.kp-gp.kp-red { color: #8E1A14; } .kp-gp.kp-green small, .kp-gp.kp-amber small, .kp-gp.kp-red small { color: #2F3237; }
.kp-fill.kp-green { background: var(--kp-green); } .kp-fill.kp-amber { background: var(--kp-amber); } .kp-fill.kp-red { background: var(--kp-red); }

/* KPI drill-down: tap a tile or cell to see the jobs behind it */
.kp-click { cursor: pointer; transition: transform .08s ease, box-shadow .08s ease; }
.kp-click:hover { box-shadow: 0 0 0 2px var(--navy); }
.kp-click:active { transform: scale(0.98); }
.kp-drill { position: fixed; inset: 0; background: rgba(17,27,61,0.55); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; }
.kp-drill-card { background: var(--white); border-radius: 16px; width: 100%; max-width: 760px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.kp-drill-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kp-drill-head h2 { margin: 0; font-size: 19px; }
.kp-drill-x { font: inherit; font-size: 18px; border: 0; background: #EEF0F2; border-radius: 999px; width: 40px; height: 40px; cursor: pointer; flex-shrink: 0; }
.kp-drill-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.kp-drill-sum .kp-flag { font-size: 12px; padding: 4px 10px; }
.kp-drow { border-radius: 10px; margin-top: 6px; border-left: 6px solid #C7CDD3; background: #F4F5F6; }
.kp-drow.kp-green { background: var(--kp-green-bg); border-left-color: var(--kp-green); }
.kp-drow.kp-amber { background: var(--kp-amber-bg); border-left-color: var(--kp-amber); }
.kp-drow.kp-red { background: var(--kp-red-bg); border-left-color: var(--kp-red); }
.kp-drow .job-meta { color: #2F3237; }
.kp-drow-btn { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; background: none; border: 0; padding: 10px 12px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.kp-drow-right { font-weight: 800; text-align: right; font-size: 14px; max-width: 45%; }
.kp-drow .job-panel { background: var(--white); margin: 0 8px 8px; border-radius: 8px; padding: 10px; }

/* KPI drill-down: manual green / red changes */
.kp-ov { font-size: 12px; font-weight: 700; color: #1C2B5A; margin-top: 4px; background: rgba(255,255,255,0.6); border-radius: 6px; padding: 3px 6px; display: inline-block; }
.kp-ovbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.kp-ovbtn { font: inherit; font-size: 12px; font-weight: 700; border: 1px solid rgba(0,0,0,0.2); background: var(--white); border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.kp-ovbtn.kp-green { border-color: var(--kp-green); color: #2E5200; } .kp-ovbtn.kp-red { border-color: var(--kp-red); color: #8E1A14; }
.kp-ovform { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.kp-ovform input { font: inherit; font-size: 14px; flex: 1; min-width: 200px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.kp-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; }

/* Techs' front page (Delivery only): their apps instead of the wheel, numbers laid out for one person */
.your-hub { width: 100%; max-width: 900px; margin-top: 16px; }
.your-hub[hidden] { display: none; }
.your-hub h2 { margin: 0 0 2px; font-size: 22px; }
.your-hub > p { margin: 0; color: var(--muted); }
.your-hub .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.your-hub-more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--slate, #5B6670); }
.wheel[hidden] { display: none; }
.numbers.tech-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 12px; align-items: start; }
.numbers.tech-view > * { grid-column: 1 / -1; }
.numbers.tech-view > .gauges { grid-column: 1; grid-template-columns: 1fr; }
.numbers.tech-view > .tiles.later { grid-column: 2; margin-top: 0; grid-template-columns: 1fr 1fr; align-self: stretch; }
.numbers.tech-view > .tiles.later .cb-tile { grid-column: 1 / -1; }
.numbers.tech-view .gauges-note { order: 0; }
@media (max-width: 700px) {
  .your-hub .cards { grid-template-columns: 1fr; }
  .numbers.tech-view { grid-template-columns: 1fr; }
  .numbers.tech-view > .gauges, .numbers.tech-view > .tiles.later { grid-column: 1; }
  .numbers.tech-view > .tiles.later { margin-top: 12px; }
}

/* "See the jobs" under each tech's dial on the front page */
.see-billed { margin-top: 8px; background: none; border: none; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--mid-blue); cursor: pointer; }
.see-billed:hover { text-decoration: underline; }
