@font-face { font-family: Carlito; src: url('./fonts/carlito-regular.woff') format('woff'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Carlito; src: url('./fonts/carlito-bold.woff') format('woff'); font-style: normal; font-weight: 600 900; font-display: swap; }
:root {
  --workpack-font: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
  --blue: #0782a8;
  --dark: #00648a;
  --ink: #283746;
  --muted: #607181;
  --pale: #eaf4f8;
  --pale-grey: #f5f8fa;
  --line: #d3e4eb;
  --input: #ffffff;
  --input-line: #c4d4dd;
  --danger: #9c3832;
  --danger-pale: #faeae8;
  --success: #177351;
  --surface: #ffffff;
  --canvas: #f2f6f8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.5 var(--workpack-font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button, .camera-button { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.app-header { position: sticky; z-index: 20; top: 0; background: #fff; box-shadow: 0 3px 18px #163c5210; padding: max(12px, env(safe-area-inset-top)) 18px 10px; }
.brand-row, .context-row { max-width: 880px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-copy { display: grid; gap: 1px; min-width: 0; }
.brand-kicker { color: var(--dark); font-size: 9px; font-weight: 700; letter-spacing: .075em; white-space: nowrap; }
.brand-copy strong { color: var(--dark); font-size: 18px; line-height: 1.18; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; text-transform: uppercase; }
.brand-logo { width: 112px; max-width: 31%; height: auto; object-fit: contain; flex: none; }
.header-rule { max-width: 880px; height: 2px; background: var(--blue); margin: 10px auto 8px; }
.context-row { color: var(--muted); font-size: 12px; }
#project-context { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dark); font-size: 13px; font-weight: 700; text-transform: uppercase; }
#save-status { flex: none; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--pale-grey); font-size: 11px; font-weight: 700; }
#save-status[data-state="saved"] { color: #146547; background: #eaf6ef; border-color: #bddcc9; }
#save-status[data-state="busy"] { color: var(--dark); background: var(--pale); border-color: #b6d2df; }
#save-status[data-state="error"] { color: var(--danger); background: var(--danger-pale); border-color: #e7c2bf; }
main { width: min(100%, 880px); margin: 0 auto; padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
.page-intro { margin: 3px 0 22px; }
.eyebrow { color: var(--blue); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .075em; }
h1 { color: var(--dark); font-size: clamp(24px, 5.4vw, 32px); line-height: 1.16; margin: 5px 0 8px; }
h2 { color: var(--dark); font-size: 18px; margin: 0; line-height: 1.25; }
h3 { color: var(--dark); font-size: 16px; margin: 0; }
h1, h2, h3 { text-transform: uppercase; }
p { margin: 0; }
.subtle { color: var(--muted); }
.lede { color: var(--muted); font-size: 14px; }
.stack { display: grid; gap: 14px; }
.section { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 3px 12px #163c5209; margin: 0 0 18px; scroll-margin-top: 145px; }
.section-head { background: var(--pale); border-bottom: 1px solid var(--line); border-left: 3px solid var(--blue); padding: 14px 16px 14px 13px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.section-head small { color: var(--muted); }
.section-head h2 { min-width: 0; overflow-wrap: anywhere; }
.section-shortcuts { display: grid; gap: 7px; margin: -6px 0 18px; }
.section-shortcuts > span { color: var(--dark); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; }
.section-shortcuts select { min-height: 48px; width: 100%; min-width: 0; padding: 11px 13px; color: var(--dark); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.section-disclosure > summary { list-style: none; cursor: pointer; min-height: 58px; }
.section-disclosure > summary::-webkit-details-marker { display: none; }
.section-disclosure > summary::marker { content: ''; }
.section-disclosure > summary h2 { flex: 1; }
.section-chevron { font-size: 22px; color: var(--dark); }
.section-disclosure[open] > summary .section-chevron { transform: rotate(180deg); }
.section-disclosure:not([open]) > summary { border-bottom: 0; }
.workpack-delete { padding-top: 14px; border-top: 1px solid var(--line); }
.role-chip { border: 1px solid #9bbfce; border-radius: 999px; padding: 4px 8px; color: var(--dark); background: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.section-body { padding: 16px; display: grid; gap: 18px; }
.section-note { font-size: 13px; color: var(--muted); }
.field { display: grid; gap: 7px; min-width: 0; scroll-margin-top: 140px; }
.field > span, .field-label { color: #496171; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); background: var(--input); border: 1px solid var(--input-line); border-radius: 9px; box-shadow: inset 0 1px 1px #613f0705; }
.field textarea { min-height: 94px; resize: vertical; line-height: 1.4; }
.field input[readonly], .field textarea[readonly], .field select:disabled { background: var(--pale-grey); border-color: var(--line); color: var(--dark); opacity: 1; }
.field input::placeholder, .field textarea::placeholder { color: #71818b; opacity: 1; }
.field input:not([readonly]):focus, .field textarea:not([readonly]):focus, .field select:focus, .check-row select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #0782a812; }
.field input[type=date] { min-width: 0; }
.field-hint { color: var(--muted); font-size: 12px; font-weight: 400; text-transform: none; }
.required-mark { color: var(--danger); font-weight: 800; }
.two-cols { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.button, .secondary-button, .text-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-weight: 700; min-height: 48px; padding: 11px 15px; text-decoration: none; line-height: 1.3; }
.button { background: var(--dark); border: 1px solid var(--dark); color: #fff; }
.button:hover { background: #005473; }
.secondary-button { background: #fff; border: 1px solid var(--blue); color: var(--dark); }
.secondary-button:hover { background: var(--pale); }
.text-button { background: none; border: 0; color: var(--dark); padding-inline: 4px; }
.danger-button { background: var(--danger-pale); border: 1px solid #e7c2bf; color: var(--danger); }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.button-row > :is(button, a, label) { flex: 1 1 160px; text-align: center; }
.button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .65; }
a:focus-visible, summary:focus-visible, .section-shortcuts select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.button, .secondary-button, .text-button, .danger-button, .tab-pills button { text-transform: uppercase; letter-spacing: .025em; }
.compact-button { min-height: 44px; padding: 8px 10px; font-size: 12px; }
.card-list { display: grid; gap: 11px; }
.item-card { background: var(--pale-grey); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 16px; }
.item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.item-number { color: var(--dark); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.method-step { gap: 10px; }
.method-step .item-head { flex-wrap: wrap; }
.method-step .field textarea { min-height: 86px; }
.method-undo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--pale); font-size: 14px; }
.empty { color: var(--muted); background: var(--pale-grey); border: 1px dashed var(--line); border-radius: 10px; padding: 15px; font-size: 14px; }
.workflow-grid { display: grid; gap: 10px; }
.workflow-card { border: 2px solid #c2d9e3; background: #fff; border-radius: 12px; padding: 14px; text-align: left; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workflow-card:hover { border-color: var(--blue); background: var(--pale); }
.workflow-copy { flex: 1; min-width: 0; }
.action-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--dark); color: #fff; box-shadow: 0 3px 8px #00648a24; }
.action-icon svg { width: 27px; height: 27px; }
.workflow-card strong { color: var(--dark); display: block; margin-bottom: 2px; text-transform: uppercase; }
.workflow-card small { color: var(--muted); }
.workflow-card .chevron { color: var(--blue); font-size: 22px; }
.workflow-grid.workpack-type-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.workpack-type-card { min-height: 112px; padding: 20px; }
.workpack-type-card strong { font-size: 18px; line-height: 1.25; margin-bottom: 6px; }
.workpack-type-card:disabled { cursor: wait; opacity: .65; }
.workpack-navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.workpack-navigation span, .workpack-type-label { color: var(--dark); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.final-sheet-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.final-sheet-grid button { width: 100%; text-align: center; }
.sheet-button { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; align-content: center; gap: 3px 12px; min-height: 88px; padding: 15px; border-width: 2px; border-radius: 12px; text-align: left; }
.sheet-button > .action-icon { grid-row: 1 / 3; width: 42px; height: 42px; }
.sheet-button > .sheet-title, .sheet-button > small { grid-column: 2; }
.final-sheet-grid .sheet-button { text-align: left; }
.sheet-title { font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: .045em; }
.sheet-button small { text-transform: none; letter-spacing: normal; }
.submit-button .action-icon { background: #fff; color: var(--dark); }
.submit-button:not(:disabled) { box-shadow: 0 5px 14px #00648a26; }
.sheet-button small { font-size: 11px; font-weight: 600; color: var(--muted); }
.sheet-button[data-ready="true"] { border-color: var(--success); }
.sheet-button[data-ready="true"] small { color: var(--success); }
.sheet-button:disabled, .sheet-button:disabled:hover { cursor: not-allowed; background: #eef4f7; border-color: #b7cbd5; color: #425b69; opacity: 1; }
.submit-button:disabled .action-icon { background: #d4e4ec; color: #476575; box-shadow: none; }
.sheet-action { display: flex; margin: -3px 0 16px; }
.sheet-action button { width: 100%; }
.sheet-control { display: grid; gap: 8px; width: 100%; align-content: start; }
.final-sheet-grid .sheet-control { border: 0; padding: 0; background: transparent; }
.submit-button small, .submit-button[data-ready="true"] small { color: #fff; }
.submit-button:disabled small { color: var(--muted); }
.submission-note { font-size: 12px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.submission-message { background: var(--pale); border-left: 3px solid var(--blue); padding: 10px 12px; font-size: 13px; overflow-wrap: anywhere; }
.readiness-panel { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 15px; margin: 0 0 15px; display: grid; gap: 10px; box-shadow: 0 4px 16px #0a34440a; }
.readiness-panel[data-ready="true"] { border-left-color: var(--success); }
.readiness-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; }
.readiness-head strong { color: var(--dark); font-size: 16px; text-transform: uppercase; }
.readiness-head span { font-size: 12px; font-weight: 700; }
.completion-progress { display: grid; gap: 4px; }
.completion-progress progress { width: 100%; height: 6px; border: 0; border-radius: 6px; overflow: hidden; background: var(--line); accent-color: var(--success); }
.completion-progress progress::-webkit-progress-bar { background: var(--line); border-radius: 6px; }
.completion-progress progress::-webkit-progress-value { background: var(--success); border-radius: 6px; }
.completion-progress progress::-moz-progress-bar { background: var(--success); border-radius: 6px; }
.completion-progress small { color: var(--muted); font-size: 12px; }
.readiness-pending { color: #86520b; background: #fff4df; border: 1px solid #ead5af; border-radius: 999px; padding: 4px 9px; }
.readiness-ready { color: #146547; background: #eaf6ef; border: 1px solid #bddcc9; border-radius: 999px; padding: 4px 9px; }
.readiness-groups { display: grid; gap: 8px; }
.completion-checklist > summary { padding: 10px 0; min-height: 44px; color: var(--dark); cursor: pointer; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; }
.completion-checklist[open] > .readiness-groups { margin-top: 4px; }
.readiness-group { background: var(--pale-grey); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; }
.readiness-group label { display: flex; align-items: center; gap: 9px; }
.readiness-group input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--success); opacity: 1; }
.readiness-group label span { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: baseline; }
.readiness-group strong { color: var(--ink); font-size: 13px; text-transform: uppercase; }
.readiness-group small { color: var(--muted); font-size: 12px; }
.readiness-group details { margin: 6px 0 0 27px; font-size: 13px; }
.readiness-group summary { color: var(--dark); font-weight: 700; cursor: pointer; padding-block: 8px; }
.readiness-group ul { margin: 6px 0 0; padding-left: 18px; }
.readiness-group li { margin: 3px 0; }
.readiness-admin-note { color: var(--dark); font-size: 13px; background: var(--pale); padding: 9px 11px; border-radius: 7px; }
.project-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 13px; padding: 17px; display: grid; gap: 10px; box-shadow: 0 3px 12px #163c5209; }
.project-card h3 { margin: 0; overflow-wrap: anywhere; }
.project-meta { color: var(--muted); font-size: 13px; }
.project-actions { margin-bottom: 18px; }
.project-filters { display: grid; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.project-results-count { margin: 14px 0 10px; color: var(--muted); font-size: 13px; }
.project-results > .empty { grid-column: 1 / -1; }
.project-card .button-row { align-self: end; }
.brief-details { display: grid; gap: 0; margin: 0; }
.brief-detail { display: grid; grid-template-columns: minmax(110px, 35%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.brief-detail:last-child { border-bottom: 0; }
.brief-detail dt { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.brief-detail dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.share-panel { display: grid; gap: 12px; background: var(--pale); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.share-panel p { font-size: 13px; }
.share-panel textarea { min-height: 78px; font-size: 12px; overflow-wrap: anywhere; }
.status-chip { display: inline-block; border-radius: 999px; background: var(--pale); color: var(--dark); font-size: 12px; font-weight: 700; padding: 4px 9px; }
.check-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(132px,170px); align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #e8eef2; }
.check-row:last-child { border-bottom: 0; }
.check-row label { color: var(--ink); font-size: 14px; line-height: 1.35; }
.check-row select { min-height: 48px; width: 100%; padding: 10px 11px; border: 1px solid var(--input-line); background: var(--input); border-radius: 9px; font-weight: 600; }
.field select[data-state="Complete"], .field select[data-state="Collected"], .check-row select[data-state="Complete"] { color: #146547; background: #edf7f1; border-color: #99c7ad; }
.field select[data-state="N/A"], .check-row select[data-state="N/A"] { color: #4d6472; background: #f0f4f6; border-color: #bdcdd6; }
.field select[data-state="Not complete"] { color: var(--danger); background: var(--danger-pale); border-color: #dcadaa; }
.check-row select[data-state="Not complete"], .check-row select[data-state="No"] { border-color: #dcadaa; background: var(--danger-pale); color: var(--danger); }
.tab-pills { display: flex; gap: 8px; margin-bottom: 15px; }
.tab-pills button { flex: 1; min-height: 48px; border: 1px solid var(--line); background: #fff; color: var(--dark); border-radius: 10px; font-weight: 700; }
.tab-pills button.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,140px),1fr)); gap: 12px; }
.photo-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.photo-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-card .photo-meta { padding: 10px; display: grid; gap: 7px; }
.photo-card input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 16px; }
.photo-card button { justify-self: start; font-size: 12px; }
.photo-location { font-size: 12px; color: var(--dark); text-transform: uppercase; }
.kit-location-photos { display: grid; gap: 10px; }
.kit-return-photos { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.bom-import, .bom-review, .bom-review-rows, .new-kit { display: grid; gap: 14px; min-width: 0; }
.bom-import { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--pale); }
.bom-review-row { display: grid; gap: 12px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px; }
.bom-include { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--dark); }
.bom-include input { width: 22px; height: 22px; }
.bom-review-row small { color: var(--muted); overflow-wrap: anywhere; }
.bom-error { color: var(--danger); font-size: 14px; }
.bom-raw-text { width: 100%; margin-top: 12px; padding: 10px; font: inherit; }
#bom-progress:empty { display: none; }
#bom-progress { font-size: 14px; font-weight: 700; color: var(--dark); }
.new-kit { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.new-kit-table-wrap { overflow-x: auto; }
.new-kit-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.new-kit-table th, .new-kit-table td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.new-kit-table th { background: var(--pale); color: var(--dark); font-size: 11px; text-transform: uppercase; }
.new-kit-table th:first-child { width: 65%; }
.camera-button:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.camera-button { position: relative; overflow: hidden; }
.camera-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.footer-note { font-size: 12px; color: var(--muted); margin: 8px 2px 0; }
.bottom-nav { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; background: #fff; border-top: 1px solid var(--line); padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); box-shadow: 0 -3px 18px #163c5210; }
.bottom-nav[hidden] { display: none; }
.bottom-nav button { min-width: 0; width: min(20%,150px); min-height: 64px; border: 2px solid transparent; background: transparent; color: #425e6d; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; display: grid; justify-items: center; align-content: center; gap: 5px; border-radius: 10px; }
.bottom-nav button:hover { background: var(--pale); }
.bottom-nav button.active { color: #fff; background: var(--dark); box-shadow: 0 3px 10px #00648a2b; }
.bottom-nav[data-workpack="cabling"] { overflow-x: auto; }
.bottom-nav[data-workpack="cabling"] button { flex: 1 0 82px; max-width: 140px; }
.cabling-picker { display: grid; grid-template-columns: minmax(0,1fr) 92px auto; gap: 10px; align-items: end; }
.cabling-picker select { width: 100%; min-width: 0; }
.cabling-picker button { min-height: 48px; }
.cabling-line-cost { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.cabling-total { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 16px; margin-bottom: 16px; border: 1px solid var(--line); border-left: 4px solid var(--blue); background: var(--pale); border-radius: 10px; }
.cabling-total strong { color: var(--dark); font-size: 21px; }
.cabling-total small { grid-column: 1 / -1; }
.cabling-total small:empty { display: none; }
.cabling-source-note { margin-bottom: 16px; }
.live-update-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.live-update-button .action-icon { width: 30px; height: 30px; background: transparent; border: 0; box-shadow: none; color: inherit; }
.live-update-button .action-icon svg { width: 25px; height: 25px; }
.cabling-standard { margin-bottom: 14px; }
.cabling-standard-text { padding: 18px; border-top: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; font-size: 15px; }
.cabling-document-field { display: grid; gap: 12px; min-width: 0; padding-block: 8px 18px; border-bottom: 1px solid var(--line); }
.cabling-document-field h3, .access-table-card h3 { margin: 0; color: var(--dark); font-size: 15px; text-transform: uppercase; }
.cabling-document-field .item-card > strong { overflow-wrap: anywhere; }
.previous-reference { padding: 12px; border-radius: 8px; background: var(--pale-grey); font-size: 13px; }
.previous-reference summary { cursor: pointer; min-height: 30px; color: var(--dark); font-weight: 700; }
.previous-reference p { white-space: pre-wrap; overflow-wrap: anywhere; }
.method-summary { display: grid; gap: 12px; margin: 0; padding-left: 30px; }
.method-summary li { padding-left: 6px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.method-summary li::marker { color: var(--dark); font-weight: 700; }
.access-schedule { display: grid; gap: 16px; min-width: 0; }
.access-table-card { display: grid; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--pale-grey); }
.access-table-wrap { overflow: auto; max-width: 100%; max-height: 65vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.access-table thead { position: sticky; top: 0; z-index: 1; }
.access-table-paging { align-items: center; justify-content: space-between; }
.access-table-paging > span { font-size: 13px; color: var(--muted); }
.access-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.access-table caption { padding: 10px 12px; text-align: left; font-size: 12px; color: var(--muted); }
.access-table th, .access-table td { min-width: 160px; max-width: 350px; padding: 10px; text-align: left; vertical-align: top; border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.access-table th { background: var(--pale); color: var(--dark); }
.access-table input, .access-table textarea { display: block; width: 100%; min-width: 150px; min-height: 48px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
.access-table input { font-weight: 700; }
.access-table textarea { resize: vertical; min-height: 78px; }
.access-table .compact-button { min-height: 44px; margin-top: 4px; white-space: normal; }
.access-table-card .item-head { flex-wrap: wrap; }
@media (max-width: 620px) {
  .bottom-nav[data-workpack="cabling"] { justify-content: flex-start; }
  .cabling-picker { grid-template-columns: minmax(0,1fr) 90px; }
  .cabling-picker .field:first-child { grid-column: 1 / -1; }
  .cabling-picker .field:nth-child(2) { grid-column: 1; }
}
.nav-icon { display: flex; align-items: center; justify-content: center; line-height: 1; }
.nav-icon svg { width: 27px; height: 27px; }
.install-help { padding: 13px; background: var(--pale); border-left: 3px solid var(--blue); border-radius: 5px; font-size: 13px; color: var(--ink); }
.install-panel { display: grid; gap: 12px; margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; background: var(--surface); }
.install-heading { display: flex; align-items: center; gap: 12px; }
.install-heading img { flex: none; border-radius: 10px; }
.install-heading > div { min-width: 0; }
.install-heading h3 { font-size: 15px; }
.install-heading .section-note { margin: 3px 0 0; }
.install-guide { border-top: 1px solid var(--line); padding-top: 4px; }
.install-guide > summary { min-height: 44px; padding: 11px 0; color: var(--dark); font-size: 13px; font-weight: 700; cursor: pointer; }
.install-guide > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.install-guide h4 { margin: 14px 0 6px; color: var(--dark); font-size: 13px; }
.install-guide ol { margin: 0 0 10px; padding-left: 22px; font-size: 14px; }
.install-guide li + li { margin-top: 6px; }
.install-guide .field { margin-top: 14px; }
.install-guide .field-hint { margin-top: 8px; }
.return-forms { display: grid; gap: 12px; }
.return-form { min-width: 0; border: 1px solid #b9d0dc; border-radius: 12px; overflow: hidden; background: #fff; }
.return-form > summary { display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 13px; list-style: none; cursor: pointer; background: var(--pale-grey); }
.return-form > summary::-webkit-details-marker { display: none; }
.return-form > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.return-form > summary:hover, .return-form[open] > summary { background: var(--pale); }
.return-form[open] > summary { border-bottom: 1px solid var(--line); }
.return-form .action-icon { width: 36px; height: 36px; border-radius: 9px; }
.return-form .action-icon svg { width: 23px; height: 23px; }
.return-form-title { display: grid; gap: 3px; flex: 1; min-width: 0; }
.return-form-title strong { color: var(--dark); font-size: 14px; line-height: 1.3; }
.return-form-title small { color: var(--muted); font-size: 12px; }
.return-total { font-size: 11px; font-weight: 800; color: var(--dark); background: #fff; border: 1px solid var(--line); padding: 4px 7px; border-radius: 999px; text-align: center; }
.return-chevron { flex: none; font-size: 23px; color: var(--dark); }
.return-form[open] .return-chevron { transform: rotate(180deg); }
.return-form-body { display: grid; gap: 18px; padding: 16px; }
.return-picker { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; }
.return-picker .field, .return-picker select { min-width: 0; width: 100%; }
.return-picker button { min-height: 48px; }
.return-remove { grid-column: 1 / -1; justify-self: end; }
.return-group { display: grid; gap: 12px; }
.return-stock-list { display: grid; gap: 10px; }
.return-stock-row { display: grid; grid-template-columns: minmax(0,1fr) 96px; align-items: center; gap: 10px 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--pale-grey); }
.return-item-name { color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.return-quantity input { padding-inline: 9px; font-size: 18px; font-weight: 700; text-align: center; }
.return-quantity-error:empty { display: none; }
.return-quantity-error { color: var(--danger); font-size: 11px; line-height: 1.3; }
.return-quantity input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-pale); }
.return-comments { grid-column: 1 / -1; }
.return-comments > span { font-size: 10px; }
.return-receipt { display: grid; gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 380px) {
  .return-form > summary { flex-wrap: wrap; gap: 8px; padding: 10px; }
  .return-form .action-icon { display: none; }
  .return-form-body { padding: 10px; }
  .return-stock-row { padding: 10px; grid-template-columns: minmax(0,1fr) 82px; gap: 10px; }
}
#print-report { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button, input, select, textarea { transition: none; }
}
@media (min-width: 650px) {
  .app-header { padding-inline: 26px; }
  main { padding: 28px 26px 112px; }
  .section-body { padding: 20px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .section-body > * { grid-column: 1 / -1; }
  .section-body > .field:not(.field-wide) { grid-column: auto; }
  .section-shortcuts { grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 16px; }
  .project-filters { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); align-items: end; }
  .project-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 380px) {
  .brand-kicker { font-size: 8px; }
  .brand-logo { width: 90px; }
  .check-row { grid-template-columns: 1fr; gap: 5px; }
  .check-row select { width: 100%; }
  .brief-detail { grid-template-columns: 1fr; gap: 2px; }
  .final-sheet-grid { grid-template-columns: 1fr; }
}
@media print {
  :root { color-scheme: light; }
  body { background: white; font: 10pt/1.35 var(--workpack-font); }
  #app { display: none !important; }
  #print-report { display: block !important; margin: 0 auto; color: #222; }
  #print-report .print-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10mm; border-bottom: 2px solid #0782a8; padding-bottom: 5mm; }
  #print-report .print-logo { width: 40mm; height: auto; flex: none; }
  #print-report .print-company { color: #00648a; font-size: 8pt; font-weight: 700; letter-spacing: .08em; }
  #print-report .print-header { text-transform: uppercase; }
  #print-report h1 { font-size: 21pt; color: #00648a; margin: 0 0 5mm; }
  #print-report h2 { font-size: 13pt; color: #00648a; border-bottom: 1px solid #0782a8; margin: 8mm 0 3mm; padding-bottom: 1mm; }
  #print-report h3 { font-size: 10pt; margin: 4mm 0 1mm; }
  #print-report .print-project-meta { margin-top: 2mm; font-size: 10pt; line-height: 1.55; }
  #print-report p, #print-report li { overflow-wrap: anywhere; }
  #print-report table { width: 100%; border-collapse: collapse; margin: 2mm 0 5mm; }
  #print-report td, #print-report th { border: 1px solid #d3e4eb; padding: 2mm; text-align: left; vertical-align: top; }
  #print-report th { background: #eaf4f8; text-transform: uppercase; }
  #print-report .print-photo { width: 39mm; max-height: 32mm; object-fit: cover; margin: 2mm; }
  #print-report .print-section { break-inside: avoid; }
  @page { size: A4; margin: 14mm; }
}

.commissioning-video { display: block; width: 100%; max-height: 340px; margin: 12px 0; background: #112d3a; border-radius: 8px; }

body.document-preview-open { overflow: hidden; }
.fire-breach-fields { display: grid; grid-template-columns: .75fr 1.35fr 1.8fr .9fr; gap: 12px; align-items: start; }
.fire-breach-fields .field-wide { grid-column: auto; }
.fire-breach-fields textarea { height: 48px; min-height: 48px; resize: none; }
.fire-breach-entry .photo-location { overflow-wrap: anywhere; }
.fire-signoff { display: grid; grid-template-columns: 1fr 1fr 160px; gap: 12px; }
.fire-breach-entry { scroll-margin-top: 140px; }
@media (max-width: 720px) {
  .fire-breach-fields, .fire-signoff { grid-template-columns: 1fr; }
  .fire-breach-entry .item-head { flex-wrap: wrap; }
}
.document-preview-dialog { width: min(1100px,96vw); max-width: 96vw; height: min(900px,92dvh); max-height: 92dvh; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 90px #06283855; }
.document-preview-dialog::backdrop { background: #102b3dc9; }
.document-preview-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.document-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.document-preview-header > div:first-child { flex: 1; min-width: 0; }
.document-preview-header h2 { margin: 0; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.document-preview-header p { margin: 4px 0 0; }
.document-preview-kicker { color: var(--dark); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.document-preview-header .button-row { flex-shrink: 0; }
.document-preview-dialog button, .document-preview-dialog .secondary-button { min-height: 44px; }
.document-preview-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.document-preview-controls:empty, .document-preview-note:empty { display: none; }
.document-preview-controls > span { min-width: 110px; text-align: center; font-size: 13px; }
.document-preview-note { margin: 0; padding: 10px 20px; background: var(--pale); font-size: 13px; }
.document-preview-content { flex: 1; min-height: 0; padding: 16px; overflow: auto; background: var(--pale-grey); overscroll-behavior: contain; }
.document-preview-message { padding: 30px 14px; text-align: center; overflow-wrap: anywhere; }
.document-preview-canvas { display: block; margin-inline: auto; background: white; box-shadow: 0 2px 12px #18394b1a; }
.document-preview-media { display: block; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
video.document-preview-media, audio.document-preview-media { width: 100%; }
.document-preview-text { margin: 0; padding: 18px; background: white; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.document-preview-paper { max-width: 850px; margin: auto; padding: 24px; background: white; overflow: auto; }
.document-preview-paper p { white-space: pre-wrap; overflow-wrap: anywhere; }
.document-preview-table { border-collapse: collapse; background: white; min-width: 100%; font-size: 14px; }
.document-preview-table td, .document-preview-table th { border: 1px solid var(--line); padding: 8px 10px; min-width: 70px; max-width: 420px; text-align: left; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
.document-preview-table th { background: var(--pale); color: var(--dark); }
.document-preview-table thead { position: sticky; top: -16px; z-index: 1; }
.document-preview-sheet { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 700; color: var(--dark); }
.document-preview-sheet select { max-width: min(400px,80vw); min-height: 44px; border: 1px solid var(--input-line); border-radius: 6px; padding: 8px; background: white; }
@media (max-width: 620px) {
  .document-preview-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .document-preview-header { flex-wrap: wrap; padding: 12px; gap: 8px; }
  .document-preview-header .button-row { width: 100%; }
  .document-preview-header .button-row > * { flex: 1; }
  .document-preview-controls { padding: 10px 12px; }
  .document-preview-note { padding: 10px 12px; }
  .document-preview-content { padding: 10px; }
  .document-preview-paper { padding: 14px; }
}
