.office-page {
  --off-line: #dbe2e9;
  --off-muted: #536274;
  --off-ink: #14263d;
  color: var(--off-ink);
  max-width: 78rem;
  margin: 0 auto;
}
.office-page *, .office-page *::before, .office-page *::after { box-sizing: border-box; }
.office-page h1, .office-page h2, .office-page h3, .office-page h4, .office-page p, .office-page dl, .office-page dd { margin: 0; }
.office-page h1, .office-page h2, .office-page h3, .office-page h4 { color: #0a192f; line-height: 1.18; }
.office-page h1 { font-size: clamp(2.05rem, 3.6vw, 3.2rem); letter-spacing: -.055em; font-weight: 700; }
.office-page h2 { font-size: clamp(1.28rem, 2vw, 1.55rem); letter-spacing: -.035em; }
.office-page h3 { font-size: 1.15rem; letter-spacing: -.025em; }
.office-page h4 { font-size: 1.04rem; letter-spacing: -.015em; }
.office-page button, .office-page input, .office-page select, .office-page textarea { font: inherit; }
.office-page button { cursor: pointer; }
.office-page button:disabled { cursor: progress; opacity: .65; }
.office-page :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #8a6607; outline-offset: 3px; }
.office-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; }
.off-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.off-header h1 { margin: .45rem 0 .45rem; }
.off-kicker { display: flex; align-items: center; gap: .55rem; font-size: .75rem; line-height: 1.5; letter-spacing: .095em; text-transform: uppercase; font-weight: 700; color: #4b5a69; }
.off-header .off-kicker::before { content: ''; width: 1.65rem; height: 3px; background: #bc9827; }
.off-sub { font-size: 1rem; color: var(--off-muted); line-height: 1.5; }
.off-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .9rem; margin: 0 0 1.65rem; }
.off-metric { display: flex; align-items: center; gap: 1rem; text-align: left; padding: 1.2rem 1.35rem; border: 1px solid var(--off-line); border-radius: .75rem; background: #fff; box-shadow: 0 1px 2px #0a192f05; color: var(--off-ink); }
.off-metric:hover { border-color: #a5b4c0; }
.off-metric-icon, .off-equipment-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 2.85rem; height: 2.85rem; border-radius: .65rem; }
.off-metric-icon svg { width: 1.5rem; height: 1.5rem; }
.off-metric-icon.review, .office-badge.review { color: #754d06; background: #fff3cf; }
.off-metric-icon.ready, .office-badge.ready { color: #254b70; background: #e8f0f8; }
.off-metric-icon.confirmed, .office-badge.confirmed { color: #236347; background: #e2f3e9; }
.off-metric-txt { display: grid; gap: .15rem; font-size: .88rem; font-weight: 600; }
.off-metric-txt strong { font-size: 1.9rem; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.off-queue, .off-unit, .off-history { background: #fff; border-radius: .8rem; border: 1px solid var(--off-line); box-shadow: 0 1px 2px #0a192f04; }
.off-queue-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 1.45rem 1.1rem; }
.off-secondary, .off-cellsub { color: var(--off-muted); font-size: .88rem; line-height: 1.5; }
.off-queue-head .off-secondary { display: inline-block; margin-top: .25rem; }
.off-search { display: flex; flex: 0 1 21rem; align-items: center; min-height: 2.8rem; gap: .55rem; padding: 0 .8rem; border: 1px solid #c7d1db; border-radius: .45rem; }
.off-search svg { color: #58687b; flex: 0 0 auto; }
.office-page .off-search input { flex: 1 1 auto; min-width: 0; width: 100%; margin: 0; padding: .55rem 0; border: 0; box-shadow: none; min-height: 0; background: transparent; font-size: .94rem; color: var(--off-ink); }
.off-search:focus-within { outline: 2px solid #6c8298; outline-offset: 2px; }
.office-page .off-search input:focus-visible { outline: none; }
.off-filters { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 1.45rem 1.15rem; }
.off-filters button { font-size: .85rem; font-weight: 600; min-height: 2.45rem; border-radius: .4rem; padding: .45rem .8rem; border: 1px solid transparent; color: #495a6d; background: transparent; }
.off-filters button:hover { background: #f0f3f6; }
.off-filters button[aria-pressed=true] { color: #0a192f; background: #e9eef4; border-color: #cdd8e3; }
.off-table-wrap { width: 100%; overflow-x: auto; border-radius: 0 0 .8rem .8rem; }
.off-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.off-table th, .off-table td { padding: .9rem 1rem; border: 0; text-align: left; vertical-align: middle; }
.off-table th:first-child, .off-table td:first-child { padding-left: 1.45rem; }
.off-table th:last-child, .off-table td:last-child { padding-right: 1.2rem; text-align: right; }
.off-table th { color: #4c5c6b; background: #f4f6f8; border-block: 1px solid var(--off-line); font-size: .78rem; font-weight: 650; }
.off-table td { line-height: 1.45; }
.off-table tbody tr + tr { border-top: 1px solid #e7ebef; }
.off-table tbody tr:hover { background: #fafbfd; }
.off-rowtitle { font-weight: 650; color: var(--off-ink); text-decoration: none; overflow-wrap: anywhere; }
.off-rowtitle:hover, .off-open:hover { text-decoration: underline; }
.off-cellsub, .off-match { display: block; margin-top: .12rem; }
.off-match, .off-link, .off-portal { color: #254d72; font-size: .88rem; font-weight: 600; }
.off-match { width: fit-content; text-underline-offset: .15rem; }
.off-open { color: #647688; display: inline-grid; place-items: center; min-width: 2.7rem; min-height: 2.7rem; }
.office-badge { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border-radius: 4rem; padding: .32rem .6rem; font-size: .8rem; line-height: 1.25; font-weight: 650; }
.office-badge svg { width: .95rem; height: .95rem; }
.off-empty { padding: 2.8rem 1rem 3.3rem; text-align: center; border-top: 1px solid var(--off-line); }
.off-empty > svg { width: 2rem; height: 2rem; margin-bottom: .65rem; color: #7a8a99; }
.off-empty p { margin: .35rem 0 1rem; color: var(--off-muted); }
.off-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.off-padded { padding: 1.5rem; }
.office-page .off-message, .office-page .off-saved { padding: .8rem 1rem; margin: .6rem 0; border-radius: .5rem; line-height: 1.45; background: #fff2d9; color: #63451c; }
.office-page .off-saved { background: #e5f4e9; color: #225637; }
.off-link { border: 0; padding: .25rem; background: transparent; text-decoration: underline; }
.off-back, .off-portal { display: inline-flex; align-items: center; text-decoration: none; gap: .34rem; min-height: 2.65rem; }
.off-back { color: #465b70; font-size: .9rem; font-weight: 600; margin-bottom: .65rem; }
.off-back svg, .off-portal svg { width: 1rem; height: 1rem; }
.off-portal:hover, .off-back:hover { text-decoration: underline; }
.off-job-heading { margin-bottom: 1.25rem; }
.off-job-facts { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1rem; padding: 1.15rem 1.35rem; border: 1px solid var(--off-line); border-radius: .65rem; background: #fff; }
.off-job-facts dt, .off-value dt { font-size: .8rem; line-height: 1.4; font-weight: 600; color: var(--off-muted); margin-bottom: .28rem; }
.off-job-facts dd, .off-value dd { font-size: .98rem; line-height: 1.5; font-weight: 550; overflow-wrap: anywhere; }
.off-section-head { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin: 1.7rem 0 .75rem; }
.off-unit { margin: 0 0 .9rem; scroll-margin-top: 1rem; overflow: hidden; }
.off-selected { border-color: #ab8b30; }
.off-unit-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--off-line); }
.off-unit-title { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.off-equipment-icon { background: #edf1f5; color: #41586f; width: 2.5rem; height: 2.5rem; }
.off-unit-title .off-kicker { font-size: .71rem; margin-bottom: .15rem; }
.off-unit-details { display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0,1fr); gap: 1.35rem; padding: 1.25rem; }
.off-label-photo,.off-photo-empty { display: flex; flex-direction: column; min-height: 7rem; overflow: hidden; border-radius: .5rem; background: #f1f4f7; border: 1px solid #dbe3eb; }
.off-label-photo { align-self: start; text-decoration: none; color: #334a61; }
.off-label-photo img { width: 100%; height: 6.5rem; min-height: 4.5rem; object-fit: contain; padding: .2rem; }
.off-label-photo span, .off-photo-empty { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .82rem; font-weight: 600; }
.off-label-photo span { padding: .45rem .3rem; background: #e8eef3; }
.off-label-photo span svg, .off-proof a svg { width: .95rem; height: .95rem; }
.off-unit-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; }
.off-value dd { display: flex; align-items: flex-start; gap: .25rem; min-width: 0; }
.off-value dd span { min-width: 0; }
.off-copy { display: inline-grid; place-items: center; min-width: 2rem; min-height: 2rem; margin: -.3rem 0; color: #52677c; border: none; border-radius: .3rem; background: transparent; }
.off-copy:hover { background: #edf1f4; }
.off-copy svg { width: .96rem; height: .96rem; }
.off-copy span { font-size: .72rem; color: #246040; }
.off-missing-val { color: #785909; }
.off-outstanding { display: flex; align-items: center; gap: .42rem; color: #76500c; font-size: .9rem; }
.office-page .off-outstanding { margin-top: .8rem; }
.off-outstanding svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.off-btns { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
.off-unit-details .off-portal { margin-top: .25rem; }
.office-page .off-photo-request-note { margin-top: .75rem; }
.off-proof { display: flex; align-items: center; gap: .75rem; margin: 0 1.25rem 1.25rem; padding: .9rem 1rem; background: #edf6f0; border: 1px solid #cbdfd0; border-radius: .5rem; }
.off-proof > svg { color: #3f6e4f; flex-shrink: 0; }
.off-proof h4 { font-size: .82rem; margin-bottom: .25rem; }
.off-proof p { color: #51695b; font-size: .84rem; margin-top: .12rem; }
.off-proof > a { margin-left: auto; flex-shrink: 0; }
.off-unit-form { margin: 0 1.25rem 1.25rem; padding: 1.1rem; border: 1px solid #c9d4df; background: #f7f9fb; border-radius: .55rem; }
.off-unit-form h4 { margin-bottom: .8rem; }
.off-inputs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem 1rem; }
.off-field { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; min-width: 0; }
.off-unit-form > .off-field, .off-unit-form > .off-check, .off-unit-form > .off-secondary { margin-top: .75rem; }
.off-field input, .off-field select, .off-field textarea { width: 100%; min-width: 0; padding: .55rem .65rem; border: 1px solid #b6c4d1; border-radius: .35rem; background: #fff; color: #162a40; min-height: 2.7rem; }
.off-field textarea { resize: vertical; line-height: 1.5; }
.off-field input[type=file] { font-size: .86rem; }
.off-check { display: flex; gap: .5rem; align-items: flex-start; line-height: 1.5; font-size: .92rem; }
.off-check input { width: 1.02rem; height: 1.02rem; margin: .17rem 0 0; accent-color: #0a192f; flex: 0 0 auto; }
.off-also { padding: .65rem .8rem; margin: .8rem 0; border: 1px solid var(--off-line); border-radius: .35rem; }
.off-also legend { padding: 0 .25rem; font-size: .85rem; font-weight: 600; }
.off-form-feedback:not(:empty) { margin-top: .75rem; color: #734f12; }
.off-history { margin-top: 1.35rem; padding: 1.25rem; }
.off-history ol { list-style: none; margin: .8rem 0 0; padding: 0; }
.off-history li { display: flex; gap: 1rem; justify-content: space-between; padding: .7rem 0; border-top: 1px solid var(--off-line); font-size: .88rem; }
.off-history li span { display: block; color: var(--off-muted); margin-top: .2rem; }
.off-history li time { color: var(--off-muted); text-align: right; }
.off-history > p { margin-top: .8rem; color: var(--off-muted); }
.off-reminders { margin: 0 0 1.5rem; }
.off-reminders .off-section-head { margin: 0 0 .75rem; }
.off-reminders .off-secondary { margin-top: .4rem; }
.off-reminder-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; max-height: 23rem; overflow: auto; }
.off-reminder-list a { display: grid; gap: .3rem; height: 100%; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--off-line); border-left: 3px solid #ac8216; border-radius: .5rem; color: var(--off-ink); text-decoration: none; overflow-wrap: anywhere; }
.off-reminder-list a:hover { border-color: #ab8b30; background: #fffdf6; }
.off-reminder-list strong { color: #0a192f; }
.off-reminder-list span { font-size: .94rem; line-height: 1.4; }
.off-reminder-list small { font-size: .875rem; color: var(--off-muted); line-height: 1.4; }
.office-page .off-reminders-clear { border: 1px solid var(--off-line); border-radius: .5rem; padding: 1rem; background: #f8fafb; color: var(--off-muted); font-size: .94rem; }
.off-due { display: block; margin-top: .35rem; font-size: .875rem; font-weight: 600; color: #425973; }
.off-due.overdue { color: #9b351f; }
.off-planning, .off-packet { margin-top: 1rem; padding: 1.2rem 1.35rem; border: 1px solid var(--off-line); border-radius: .65rem; background: #fff; }
.off-planning > div .off-secondary, .off-packet .off-secondary { margin-top: .4rem; }
.off-planning form { margin-top: 1rem; }
.off-planning form > .off-secondary { margin-top: .7rem; }
.off-planning form > .btn { margin-top: .85rem; }
.off-packet { display: flex; align-items: center; gap: 1.5rem; }
.off-packet > div { flex: 1; }
.off-packet > a { flex-shrink: 0; }
.off-request-pending { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin: 0 1.25rem 1.25rem; padding: 1rem; border: 1px solid #e0c783; background: #fff8e5; border-radius: .5rem; }
.off-request-pending > div { flex: 1; min-width: min(100%,15rem); }
.off-request-pending p { margin-top: .4rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.off-request-pending small { display: block; margin-top: .4rem; color: #6f5722; font-size: .875rem; }
.off-request-pending .off-form-feedback { width: 100%; }
.off-request-pending .off-form-feedback:empty { display: none; }
.office-page .off-request-closed { margin: 0 1.25rem 1.25rem; font-size: .875rem; line-height: 1.5; color: #45634f; }
.off-job-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
@media(max-width: 760px) {
  .off-metric { gap: .5rem; padding: .95rem .7rem; }
  .off-metric-icon { width: 2.2rem; height: 2.2rem; }
  .off-unit-values { grid-template-columns: 1fr 1fr; }
  .off-job-facts { grid-template-columns: 1fr 1fr; }
  .off-table th, .off-table td { padding-inline: .65rem; }
}
@media(max-width: 640px) {
  .off-reminder-list { grid-template-columns: minmax(0,1fr); max-height: 24rem; }
  .off-planning, .off-packet { padding: 1rem; }
  .off-packet { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .off-request-pending { margin: 0 .85rem .85rem; }
  .off-header { align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.2rem; }
  .off-metrics { gap: .4rem; margin: 0 0 1rem; }
  .off-metric { min-width: 0; flex-direction: column; align-items: flex-start; gap: .55rem; border-radius: .5rem; }
  .off-metric-txt { font-size: .79rem; }
  .off-metric-txt strong { font-size: 1.6rem; }
  .off-metric-icon { width: 1.8rem; height: 1.8rem; border-radius: .35rem; }
  .off-metric-icon svg { width: 1.05rem; height: 1.05rem; }
  .off-queue-head { flex-direction: column; align-items: stretch; gap: .8rem; padding: 1rem; }
  .off-search { flex: initial; }
  .off-filters { gap: .15rem; padding: 0 .8rem .65rem; }
  .off-filters button { min-height: 2.7rem; font-size: .8rem; padding: .35rem .5rem; }
  .off-table, .off-table tbody, .off-table tr, .off-table td { display: block; }
  .off-table thead { display: none; }
  .off-table tbody tr { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .15rem .5rem; padding: .85rem 1rem; border-top: 1px solid var(--off-line); }
  .off-table td, .off-table td:first-child, .off-table td:last-child { padding: 0; }
  .off-table td:first-child { grid-column: 1; grid-row: 1; }
  .off-table td:nth-child(2) { grid-row: 2; grid-column: 1 / -1; font-size: .85rem; color: var(--off-muted); }
  .off-table td:nth-child(2) .off-cellsub { display: inline; margin-left: .45rem; }
  .off-table td:nth-child(3) { grid-row: 3; grid-column: 1 / -1; font-size: .82rem; color: var(--off-muted); }
  .off-table td:nth-child(4) { grid-row: 1; grid-column: 2; text-align: right; }
  .off-table td:last-child { display: none; }
  .office-badge { font-size: .75rem; }
  .off-unit-head, .off-unit-details, .off-job-facts, .off-history { padding: .85rem; }
  .off-unit-details { grid-template-columns: minmax(0,1fr); gap: .85rem; }
  .off-label-photo { flex-direction: row; align-items: center; gap: .55rem; min-height: 0; }
  .off-label-photo img { flex: 0 0 5rem; width: 5rem; height: 3.2rem; min-height: 0; }
  .off-label-photo span { background: transparent; }
  .off-photo-empty { min-height: 3.2rem; flex-direction: row; }
  .off-unit-form, .off-proof { margin: 0 .85rem .85rem; }
  .off-inputs { grid-template-columns: minmax(0,1fr); }
  .off-proof { flex-wrap: wrap; }
  .off-proof > a { margin-left: 0; }
  .off-value dd { flex-wrap: wrap; }
}
