/* Inspector Console (on top of admin.css): KPI row of four, timeline, readiness grid, week list. */
.kpis.five { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.five .kpi { grid-template-columns: 1fr; }
.kpi .n.blue { color: var(--blue); } .kpi .n.green { color: var(--green); }
.grid2b { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid #dbe4f5; }
.timeline > li { display: grid; grid-template-columns: 110px 84px 1fr auto; gap: 12px; align-items: center; padding: 10px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; position: relative; }
.timeline > li::before { content: ''; position: absolute; left: -22px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: #c8d3ea; border: 2px solid #fff; }
.timeline > li.sel { border-color: var(--blue); box-shadow: 0 0 0 2px #dce8ff; }
.timeline .when b { display: block; }
.timeline .pill { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 1px 6px; background: #eef0f4; color: #556; }
.st-report-published .pill { background: #e3f6ec; color: var(--green); } .st-report-published::before { background: var(--green) !important; }
.st-report-in-progress .pill { background: #fff3d6; color: #8a6100; } .st-report-in-progress::before { background: var(--amber) !important; }
.st-on-site .pill, .st-next .pill { background: #e6efff; color: var(--blue); } .st-next::before, .st-on-site::before { background: var(--blue) !important; }
.timeline .photo { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; background: #eef0f4; }
.timeline .photo.none { display: flex; align-items: center; justify-content: center; font-size: 26px; color: #99a; }
.timeline .what { display: flex; flex-direction: column; min-width: 0; }
.timeline .what span { font-size: 13px; }
.muted { color: var(--muted); }
.timeline .acts { display: flex; flex-direction: column; gap: 6px; }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.addr { font-weight: 700; margin: 0 0 8px; }
.readiness { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.readiness .r { border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.readiness dt { font-size: 12px; color: var(--muted); }
.readiness dd { margin: 2px 0 0; font-weight: 600; font-size: 13px; }
.readiness .ok dd { color: var(--green); } .readiness .no dd { color: var(--red); }
.ready-actions { display: flex; gap: 8px; margin-top: 10px; }
.week { list-style: none; padding: 0; margin: 0; }
.week li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.week b.hot { color: var(--red); }
@media (max-width: 1100px) { .kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid2b { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .timeline > li { grid-template-columns: 1fr; }
  .timeline .photo { width: 100%; height: 120px; }
  .timeline .acts { flex-direction: row; flex-wrap: wrap; }
  .readiness { grid-template-columns: 1fr 1fr; }
  .kpis.five { grid-template-columns: 1fr 1fr; }
}

/* A hidden element stays hidden even where a rule sets display (sidebar links). */
[hidden] { display: none !important; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.flag { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 1px 6px; }
.flag.bad { background: #fde6e6; color: var(--red); } .flag.warn { background: #fff3d6; color: #8a6100; }
.sections h3 { font-size: 13px; margin: 12px 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sections p { margin: 0; font-size: 13px; }
.pre { white-space: pre-line; }
ul.notes, ul.events { list-style: none; padding: 0; margin: 0; }
ul.notes li, ul.events li { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
td.warn { color: #b26a00; font-weight: 600; } td.good { color: var(--green); font-weight: 600; }   /* the Placeholder colour, Owner 2026-10-29 */ .s.hot { color: var(--red); font-weight: 600; }
.grid2b { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid2b { grid-template-columns: 1fr; } }
.kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi .n.red { color: var(--red); }
ul.qa-list { list-style: none; padding: 0; margin: 0; }
ul.qa-list li { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
ul.qa-list li.fixed { opacity: .75; }
.qa-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.qa-head .pill { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 1px 6px; background: #fde6e6; color: var(--red); }
li.fixed .qa-head .pill { background: #fff3d6; color: #8a6100; }
.acts-row { display: flex; gap: 6px; margin-top: 4px; }
small.hot { color: var(--red); font-weight: 600; }
.qa-form label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.qa-form select, .qa-form textarea, .qa-form input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font-weight: 400; }
.grid2b.two { grid-template-columns: 1.4fr 1fr; }
.howto { padding-left: 18px; } .howto li { margin-bottom: 6px; }
.b-open { background: #fde6e6; color: var(--red); } .b-fixed { background: #fff3d6; color: #8a6100; } .b-verified { background: #e3f6ec; color: var(--green); }
@media (max-width: 1100px) { .kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid2b.two { grid-template-columns: 1fr; } }
ul.bullets { margin: 2px 0; padding-left: 18px; font-size: 13px; }
ul.bullets li { margin: 0; }
.what .lbl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.readiness .r.wide { grid-column: span 3; }
.picker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.lane h3 { margin: 0 0 8px; font-size: 14px; }
.timeline-cols .timeline > li { grid-template-columns: 90px 1fr; }
.timeline-cols .timeline .photo { display: none; }
.timeline-cols .timeline .acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
.timeline > li.none { display: block; color: var(--muted); border-style: dashed; }
.timeline > li.none::before { display: none; }
@media (max-width: 720px) { .readiness .r.wide { grid-column: span 2; } }
/* Inspector picker: dropdown with checkboxes, as the Ops console's "Waiting on" list (Owner 2026-10-02). */
.ms { position: relative; }
.ms-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 220px; min-height: 34px; font: inherit; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.ms-box .caret { color: var(--muted); }
.ms-panel { position: absolute; z-index: 20; right: 0; min-width: 100%; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 6px 10px; }
.ms-panel label.check { display: flex; align-items: center; gap: 8px; margin: 4px 0; white-space: nowrap; cursor: pointer; }
.ms-panel label.check input { margin: 0; }
.ms-panel label.check.all { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 6px; font-weight: 600; }
.due-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.qa-sent { font-size: 12px; font-weight: 600; color: var(--green, #1a7f4b); background: #e3f6ec; border-radius: 6px; padding: 2px 8px; }
#ready-table td.ok { color: var(--green); font-weight: 600; }
#ready-table td.no { color: var(--red); font-weight: 600; }
#ready-table td.ph { color: #b26a00; font-weight: 600; }   /* Placeholder: amber, not yet confirmed */
#ready-table tr.sel { background: #eaf1fc; }
#ready-table td a { color: inherit; font-weight: 600; }
/* Today's Schedule as a timeline board (Owner 2026-10-03, option A): a row per inspector, hours across. */
.board { overflow-x: auto; }
.board .b-row { display: grid; grid-template-columns: 140px minmax(460px, 1fr); gap: 10px; align-items: start; padding: 6px 0; border-top: 1px solid var(--line); }
.board .b-head { border-top: 0; padding: 0 0 2px; }
.board .b-name { display: flex; flex-direction: column; font-size: 13px; padding-top: 6px; min-width: 0; }
.board .b-name small { font-size: 12px; }
.board .b-track { position: relative; min-height: 22px; }
.board .b-head .b-track { height: 22px; }
.board .b-hour { position: absolute; top: 2px; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.board .b-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: #eef1f6; }
.board .b-now { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #e5484d; z-index: 2; }
.board .b-now-label { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: #fff; background: #e5484d; border-radius: 4px; padding: 1px 5px; z-index: 3; white-space: nowrap; }
.board .b-block { position: absolute; height: 30px; box-sizing: border-box; padding: 3px 7px; border-radius: 6px; border: 1px solid #c9d6ee; background: #f3f6fc; color: #24324a;
  font: inherit; font-size: 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; z-index: 1; }
.board .b-block:hover { border-color: var(--blue); }
.board .b-block.sel { box-shadow: 0 0 0 2px #9db8f2; border-color: var(--blue); }
.board .b-block.shared { border-style: dashed; border-width: 1.5px; }
.st-on-site.b-block, .b-key.st-on-site i { background: #2f6fdf; border-color: #2f6fdf; color: #fff; }
.st-next.b-block, .b-key.st-next i { background: #dce8ff; border-color: #9db8f2; color: #1d3f86; }
.st-scheduled.b-block, .b-key.st-scheduled i { background: #f3f6fc; border-color: #c9d6ee; color: #24324a; }
.st-report-in-progress.b-block, .b-key.st-report-in-progress i { background: #fff4dc; border-color: #f0c674; color: #6b4a06; }
.st-report-published.b-block, .b-key.st-report-published i { background: #e3f5e8; border-color: #8fd0a2; color: #1d5c2e; }
.board .b-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.board .b-key { display: inline-flex; align-items: center; gap: 5px; }
.board .b-key i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; border: 1px solid #c9d6ee; }
.board .b-key.shared i { border: 1.5px dashed #6b7a99; background: transparent; }
.board .board-empty { margin: 4px 0; color: var(--muted); }
.board .b-block .b-with { font-size: 11px; opacity: .85; }
.board .b-hour.first, .board .b-now-label.first { transform: none; }
.board .b-hour.last, .board .b-now-label.last { transform: translateX(-100%); }
.board .b-grid { margin-left: -1px; }
.board .b-now { margin-left: -1px; }
.board .board-note { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
/* Week strip (Owner 2026-10-03): Sunday-Saturday, click a day; arrows move a week. */
.sched-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sched-head h2 { margin: 0; }
.wk-nav { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.wk-nav .btn { padding: 4px 10px; }
.wk-nav #wk-label { min-width: 120px; text-align: center; font-weight: 600; }
.wk-nav .btn:disabled { opacity: .4; cursor: default; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.days .day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; cursor: pointer; color: var(--fg); }
.days .day .dn { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.days .day b { font-size: 14px; }
.days .day small { font-size: 11px; color: var(--blue); }
.days .day.none small { color: var(--muted); }
.days .day:hover { border-color: var(--blue); }
.days .day.today { border-color: #9db8f2; }
.days .day.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.days .day.on .dn, .days .day.on small { color: #dce8ff; }

/* Upcoming (next 7 days) was removed (Owner 2026-10-29): Pre-Inspection Readiness takes two thirds of the row. */
/* Owner 2026-10-29: Readiness lines up with the schedule board above it, Calendar & Meeting Requests with the right
   column - the same 1.6 : 1 split as .grid3 (admin.css). */
.grid2b.wide-ready { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 1100px) { .grid2b.wide-ready { grid-template-columns: 1fr; } }
