/* Ops additions on top of style.css + admin.css (copied from verify). */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; }
.admin-bar-inner { gap: 14px 22px; }
.top-search { flex: 1 1 240px; max-width: 360px; margin: 0; }
.top-search input { width: 100%; font: 500 .9rem var(--font); padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: var(--white); }
.top-search input::placeholder { color: rgba(255,255,255,.75); }
.top-search input:focus { outline: none; background: var(--white); color: var(--black); }
.admin-nav { gap: 6px 18px; }
.admin-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-more { position: relative; }
.nav-more summary { color: var(--white); font: 600 .92rem var(--font); cursor: pointer; list-style: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: " ▾"; }
.nav-more > div { position: absolute; right: 0; top: 150%; z-index: 20; background: var(--purple-dark); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 200px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.tile-num { font-size: 1.7rem; font-weight: 700; color: var(--purple-dark); font-variant-numeric: tabular-nums; }
.tile-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.tile-warn { border-left: 5px solid var(--coral); }
.dash { align-items: start; }
.dash-list { list-style: none; padding: 0; margin: 0; }
.dash-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.dash-list li:last-child { border-bottom: 0; }
.overdue { color: #8A1F1F; font-weight: 600; }
.mt { margin-top: 18px; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-card { padding: 0 !important; overflow: hidden; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table.compact { min-width: 0; }
.admin-table.compact th, .admin-table.compact td { padding: 8px 10px; }
.devices-table { min-width: 1050px; }
.lines tr.total td, .lines tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cust-sub { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cust-tabs { margin: 8px 0 22px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 0 0 12px; }
.inline-form label { margin-bottom: 0; }
.inline-form .grow { flex: 1 1 260px; }
.admin .inline-form input.short { width: 90px; }
.filters { align-items: flex-end; gap: 10px 14px; justify-content: flex-start; margin-bottom: 14px; }
.filters label { margin: 0; }
.form-actions.gap { gap: 12px; flex-wrap: wrap; align-items: center; }
.form-actions form { margin: 0; }
.field-error { color: #8A1F1F; font-size: .82rem; font-weight: 600; }
.check-help { margin: -8px 0 14px 28px; }
.small-legend { font-size: .9rem; color: var(--purple-dark); font-weight: 600; margin: 8px 0; }
fieldset.plain { border: 0; padding: 0; margin: 0 0 14px; }
.check-row { display: flex; gap: 18px; flex-wrap: wrap; }
.mono-area { font: .88rem/1.5 var(--mono) !important; }
.card.inset { box-shadow: none; background: var(--tint); }
.counts { margin-top: 10px; }
.mt h2, h2.mt { margin-top: 18px; }
.doc-body { line-height: 1.7; overflow-wrap: anywhere; }
.badge-st-prospect { background: var(--tint); color: var(--purple-dark); border: 1px solid var(--line); }
.badge-st-onboarding { background: var(--yellow); color: var(--black); }
.badge-st-active { background: var(--green); color: var(--black); }
.badge-st-notice { background: var(--coral); color: var(--black); }
.badge-st-ended { background: var(--line); color: var(--black); }
.badge-plan-bronze { background: #E9D3BF; color: #4A2E14; }
.badge-plan-silver { background: #E2E2E2; color: #333; }
.badge-plan-gold { background: #F5E8A6; color: #4A3C00; }
.badge-plan-platinum { background: var(--purple); color: var(--white); }

/* Audits */
.progress { font-weight: 600; color: var(--purple-dark); }
.audit-item { padding: 14px 0 6px 14px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--line); margin-bottom: 4px; }
.audit-item:last-child { border-bottom: 0; }
.audit-item.res-pass { border-left-color: var(--green); }
.audit-item.res-action { border-left-color: var(--yellow); }
.audit-item.res-fail { border-left-color: var(--coral); }
.audit-item.res-na { border-left-color: var(--muted); }
.audit-q { margin-bottom: 8px; }
.results { border: 0; padding: 0; margin: 0 0 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.admin label.pill { flex-direction: row; align-items: center; gap: 6px; margin: 0; font: 600 .8rem var(--font); color: var(--purple-dark); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; background: var(--white); }
.admin label.pill input { accent-color: var(--purple); margin: 0; }
.admin label.pill:has(input:checked) { border-color: var(--purple); background: var(--tint); }
.audit-form textarea { min-height: 44px; }
.print-only { display: none; }

@media (max-width: 860px) {
  .top-search { order: 3; max-width: none; flex-basis: 100%; }
  .nav-more > div { right: auto; left: 0; }
}
@media print {
  .admin-bar, .footer, .crumb, .head-actions, .no-print, .danger-zone, .cust-tabs, .btn, .btn-small, .skip { display: none !important; }
  body.admin { background: #fff; }
  .card { border: 0 !important; box-shadow: none !important; padding: 0 !important; margin-bottom: 14px !important; }
  .audit-item { break-inside: avoid; }
  .results label.pill:not(:has(input:checked)) { display: none; }
  input, textarea { border: 0 !important; padding: 0 !important; resize: none; }
  .print-only { display: block; }
  a { color: inherit; text-decoration: none; }
}

/* Calendar */
.cal-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.cal-nav h2 { margin: 0 6px; font-size: 1.25rem; color: var(--purple-dark); }
.cal-nav .grow { flex: 1; }
.cal-nav .filter-tabs { margin: 0; }
.cal-grid { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .55fr)); }
.cal-head div { font-size: .78rem; font-weight: 700; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .06em; }
.cal-day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-row .cal-day:last-child { border-right: 0; }
.cal-day.other { background: #FAFAFA; color: var(--muted); }
.cal-day.wkend { background: #F7F7F7; }
.cal-day.closed { background: repeating-linear-gradient(135deg, #F5F2F6, #F5F2F6 6px, #EDE6EF 6px, #EDE6EF 12px); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--purple); }
.cal-date .dow { display: none; }
.cal-date { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .85rem; }
.cal-date .add, .agenda .add { text-decoration: none; color: var(--purple); font-weight: 700; padding: 0 6px; border-radius: 6px; }
.cal-date .add { opacity: .25; }
.cal-day:hover .add, .cal-date .add:focus { opacity: 1; background: var(--tint); }
.cal-note { font-size: .7rem; color: var(--purple-dark); font-weight: 600; line-height: 1.25; margin: 0; }
.chip { display: block; font-size: .72rem; font-weight: 600; line-height: 1.3; padding: 3px 6px; border-radius: 6px; text-decoration: none; color: var(--black); background: var(--tint); border-left: 4px solid var(--purple); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend .chip { display: inline-block; margin: 2px 4px 2px 0; }
.chip.k-regular, .agenda-item.k-regular { border-left-color: var(--purple); background: #EFE7F1; }
.chip.k-extra, .agenda-item.k-extra { border-left-color: var(--blue); background: #E7E9FB; }
.chip.k-emergency, .agenda-item.k-emergency { border-left-color: #C43C3C; background: #FBE3E3; }
.chip.k-project, .agenda-item.k-project { border-left-color: #2F8F5B; background: #E3F4EA; }
.chip.k-review, .agenda-item.k-review { border-left-color: var(--orchid); background: #F7E9F5; }
.chip.k-ofsted, .agenda-item.k-ofsted { border-left-color: #B08900; background: #FFF6CC; }
.chip.k-other, .agenda-item.k-other { border-left-color: var(--muted); background: #EEE; }
.chip.s-done::after { content: " ✓"; }
.chip.s-cancelled, .chip.s-moved, .agenda-item.s-cancelled { text-decoration: line-through; opacity: .55; }
.chip.agree { outline: 2px dashed #B08900; outline-offset: -2px; }
.agenda-day { padding: 10px 0; border-bottom: 1px solid var(--line); }
.agenda-day:last-child { border-bottom: 0; }
.agenda-day.today h3 { color: var(--purple); }
.agenda-day h3 { font-size: 1rem; margin: 0 0 6px; color: var(--purple-dark); display: flex; gap: 10px; align-items: baseline; }
.agenda-item { display: block; text-decoration: none; color: var(--black); padding: 8px 12px; border-radius: 10px; border-left: 5px solid var(--purple); margin: 6px 0; }
.agenda-item .mono { margin-right: 8px; }
.feed-url { font: .78rem/1.4 var(--mono); background: var(--tint); padding: 8px 10px; border-radius: 8px; word-break: break-all; display: block; flex: 1 1 100%; }
.cal-filters select { min-width: 0; }
.bank-num { font-size: 2.4rem; font-weight: 700; color: var(--purple-dark); margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.bank-warn { border-left: 6px solid var(--coral) !important; }
.bank-warn .bank-num { color: #8A1F1F; }
td.neg { color: #8A1F1F; } td.pos { color: #2F6B1A; }
.outcomes details { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 16px; margin-bottom: 10px; background: var(--white); }
.outcomes details[open] { border-color: var(--purple); }
.outcomes summary { cursor: pointer; font-weight: 700; color: var(--purple-dark); }
.outcomes form { margin-top: 12px; }
form.inline { display: inline; }
.linkish { background: none; border: 0; color: var(--purple); text-decoration: underline; cursor: pointer; padding: 0 4px; font: inherit; }
@media (max-width: 760px) {
  .cal-head { display: none; }
  .cal-row { display: block; }
  .cal-day { min-height: 0; border-right: 0; }
  .cal-day.other, .cal-day.wkend:not(.today) { display: none; }
  .cal-date .dow { display: inline; }
  .chip { white-space: normal; font-size: .82rem; padding: 6px 8px; }
}

.slot-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.slot-pick select { flex: 1 1 200px; }
.admin .slot-pick input[type=time] { width: auto; flex: 0 0 auto; }
.admin input.row-time { padding: 4px 8px; font: 500 .9rem var(--mono); border: 1.5px solid var(--line); border-radius: 8px; }
.chip.hid { border-style: dashed; border-left-style: solid; background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,.05) 6px 12px); }
.chip.hid::before { content: "◌ "; }
.bank-tools { margin-top: 14px; padding-top: 6px; border-top: 1px solid var(--line); }

/* Engineer tools */
.job-list { list-style: none; padding: 0; margin: 0 0 10px; }
.job-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.job-list li:last-child { border-bottom: 0; }
.job-list li.urgent { border-left: 4px solid var(--coral); padding-left: 10px; }
.job-list label.check { align-items: flex-start; margin-bottom: 4px; }
.job-list label.check input { margin-top: 3px; }
.admin input.job-note { margin-left: 28px; width: calc(100% - 28px); font-size: .88rem; padding: 7px 10px; }
.add-job { margin-top: 10px; }
.quick { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quick li { background: var(--tint); border-radius: 999px; padding: 6px 12px; font-size: .88rem; }
.quick a { font-weight: 600; text-decoration: none; }
.today-head h1 { margin: 0; }
.today-nav { margin: -6px 0 14px; font-size: .9rem; }
.today-visit { border-left: 6px solid var(--purple) !important; }
.today-visit.k-emergency { border-left-color: #C43C3C !important; }
.today-visit.k-project { border-left-color: #2F8F5B !important; }
.today-visit.k-ofsted { border-left-color: #B08900 !important; }
.today-visit h2 a { text-decoration: none; }
.onsite { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.onsite form { margin: 0; }
.btn.big { padding: 16px 40px; font-size: 1.1rem; }
.admin input.time-small { width: auto; padding: 6px 8px; font-size: .88rem; }
.count-check { background: var(--tint); border-radius: 12px; padding: 12px 16px; }
.doc-report { max-width: 820px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 3px solid var(--purple); padding-bottom: 14px; margin-bottom: 18px; }
.report-head h1 { font-size: 1.5rem; color: var(--purple-dark); margin: 0; text-align: right; }
.report-school { margin: 4px 0 0; font-weight: 600; text-align: right; }
.letter-from { text-align: right; line-height: 1.5; }
.doc-report h2 { font-size: 1.1rem; color: var(--purple); margin: 22px 0 8px; }
.doc-report h3 { font-size: .95rem; color: var(--purple-dark); margin: 14px 0 6px; }
.report-list { margin: 0 0 10px; padding-left: 20px; }
.report-list li { margin-bottom: 4px; }
.report-table { min-width: 0; }
.letter.preview { opacity: .95; }
@media (max-width: 560px) { .report-head { flex-direction: column; } .report-head h1, .report-school { text-align: left; } .btn.big { width: 100%; } }
@media print { .doc-report { max-width: none; } .report-head { border-bottom-color: #572961; } .letter p { orphans: 3; widows: 3; } }

/* Top bar: let the More menu drop over the page (the bar used to clip it), and wrap the menu on phones. */
.admin-bar { overflow: visible; z-index: 30; }
.admin-bar .orbit-field { overflow: hidden; }
.nav-more > div { z-index: 40; }
@media (max-width: 860px) {
  .admin-nav { flex: 1 1 100%; min-width: 0; gap: 8px 16px; }
  .admin-nav a, .nav-more summary { font-size: .95rem; }
  .nav-more > div { position: absolute; left: 0; right: auto; top: 140%; max-width: calc(100vw - 32px); }
}

/* Business tools */
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; align-items: start; }
.pipe-col { padding: 14px !important; margin: 0 !important; }
.pipe-col h2 { font-size: 1rem; margin: 0 0 10px; }
.pipe-card { display: block; text-decoration: none; color: var(--black); background: var(--tint); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; border-left: 4px solid var(--purple); }
.pipe-card:hover { box-shadow: 0 4px 14px rgba(63,30,70,.12); }
.pipe-card.due { border-left-color: var(--coral); }
.cap-table { min-width: 760px; }
.cap-table th.c { text-align: center; }
.cap-day { padding: 6px !important; vertical-align: top; }
.cap-day.closed { background: repeating-linear-gradient(135deg, #F5F2F6, #F5F2F6 6px, #EDE6EF 6px, #EDE6EF 12px); }
.cap-closed { font-size: .72rem; font-weight: 600; color: var(--purple-dark); }
.cap-slot { display: block; font-size: .74rem; font-weight: 600; padding: 3px 6px; border-radius: 6px; margin: 2px 0; text-decoration: none; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend .cap-slot { display: inline-block; }
.cap-slot.free { background: #E3F4EA; color: #2F6B1A; }
.cap-slot.part { background: #FFF6CC; }
.cap-slot.full { background: #EFE7F1; color: var(--purple-dark); }
.cap-slot.over { background: #FBE3E3; color: #8A1F1F; }
.cap-k { opacity: .6; }
.nowrap { white-space: nowrap; }
.big-where { font-size: 1.3rem; font-weight: 700; color: var(--purple-dark); margin: 0 0 4px; }
.chip.k-followup, .agenda-item.k-followup { border-left-color: #1F7A8C; background: #E2F3F6; }
.mt-s { margin-top: 6px; }
.inline-details { display: inline-block; }
.inline-details[open] { display: block; margin: 8px 0; padding: 10px 12px; background: var(--tint); border-radius: 10px; }
.inline-details > summary { list-style: none; cursor: pointer; display: inline-block; }
.inline-details > summary::-webkit-details-marker { display: none; }
.contact-log li > span { min-width: 0; }
.leaving { border-left: 6px solid var(--coral) !important; }
.reminder-card { border-left: 6px solid #1F7A8C !important; }
.proj-lines { min-width: 1100px; }
.proj-lines input[type=text] { min-width: 180px; }
.admin .proj-lines input.short { width: 90px; }
.proj-lines tr.new-line td { background: var(--tint); }
@media print { .page-break { break-before: page; } }
.pa-card { border-left: 6px solid var(--purple) !important; }
.pa-progress { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--purple-dark); }
.pa-progress .bar { display: inline-block; width: 120px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pa-progress .bar span { display: block; height: 100%; background: var(--green); }

/* Form polish (2026-11-19): style every input type the same, and line boxes up across a row. */
.admin input[type=tel], .admin input[type=url], .admin input[type=date], .admin input[type=time], .admin input[type=search]:not(#top-q),
.admin input[type=file] {
  font: 500 1rem var(--font); padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--black); width: 100%; min-height: 48px;
}
.admin input[type=text], .admin input[type=email], .admin input[type=number], .admin input[type=password], .admin select { min-height: 48px; }
.admin input[type=date], .admin input[type=time] { font-family: var(--font); }
.admin input[type=file] { padding: 9px 12px; }
.admin input[type=tel]:focus, .admin input[type=url]:focus, .admin input[type=date]:focus, .admin input[type=time]:focus, .admin input[type=file]:focus {
  border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px rgba(87,41,97,.18);
}
/* Help text goes under the box everywhere, so every box in a row starts at the same height. */
.admin label:not(.check):not(.pill) > .sub { order: 3; margin-top: -2px; }
.admin label:not(.check):not(.pill) > input, .admin label:not(.check):not(.pill) > select, .admin label:not(.check):not(.pill) > textarea, .admin label:not(.check):not(.pill) > .slot-pick { order: 2; }
.admin label:not(.check):not(.pill) > .field-error { order: 4; }
.admin label > .sub { font-weight: 500; }
/* Inline and compact forms keep their own sizes. */
.admin .inline-form input, .admin .inline-form select { min-height: 40px; }
.admin input.short { width: 110px; }
.admin input.time-small, .admin input.row-time { min-height: 0; width: auto; padding: 6px 8px; }
.admin .proj-lines input, .admin .proj-lines select { min-height: 38px; padding: 7px 9px; font-size: .9rem; }
.admin .search input { min-height: 0; }
