@font-face { font-family: 'Playfair Display'; src: url('/static/PlayfairDisplay.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Bodoni Moda Amp'; src: url('/static/BodoniModa-amp.ttf') format('truetype'); font-weight: 400 900; unicode-range: U+0026; }
* { box-sizing: border-box; }
html, body { margin: 0; background: #f4f2ec; color: #14213d; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; }
.hidden { display: none !important; }
.brand { background: #14213d; color: #f5f1e6; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; line-height: 1.05; }
.logo .l1 { font-size: 26px; letter-spacing: 3px; }
.logo .l2 { font-size: 11px; letter-spacing: 1.5px; }
.logo .amp { font-family: 'Bodoni Moda Amp', 'Playfair Display', serif; font-weight: 500; font-size: 0.92em; }
.logo .inc { font-size: 0.8em; }
.apptitle { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 18px; }
.tag { background: #fca311; color: #14213d; font: bold 11px system-ui; padding: 2px 5px; border-radius: 4px; }
main { padding: 12px; max-width: 520px; margin: 0 auto; }
.netbar { font-size: 14px; padding: 6px 12px; text-align: center; }
.netbar.online { background: #d8f3dc; color: #1b4332; }
.netbar.offline { background: #ffe8cc; color: #7a3e00; }
.warn { background: #fff3bf; color: #5c3c00; padding: 8px 12px; font-size: 14px; }
label { display: block; margin: 10px 0 4px; font-weight: 600; }
select, input[type=text], input[type=password], input[type=time], input[type=search] { width: 100%; font-size: 22px; padding: 12px; border: 2px solid #8d99ae; border-radius: 10px; background: #fff; }
label.check { font-weight: 400; font-size: 15px; }
.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 14px; margin: 10px 0; font-size: 18px; font-weight: 700; color: #fff; cursor: pointer; }
.btn.big { padding: 22px 14px; font-size: 24px; letter-spacing: 1px; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.35; }
.green { background: #2d6a4f; } .red { background: #c1121f; } .blue { background: #1d4e89; }
.amber { background: #e85d04; } .amber.on { background: #fca311; color: #14213d; } .grey { background: #6c757d; font-size: 16px; }
.link { background: none; border: 0; color: #1d4e89; text-decoration: underline; font-size: 15px; padding: 6px; cursor: pointer; }
.who { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.status { border-radius: 14px; padding: 16px; margin: 10px 0; text-align: center; font-size: 24px; font-weight: 800; }
.status.off { background: #e9ecef; color: #495057; } .status.on { background: #2d6a4f; color: #fff; } .status.field { background: #fca311; color: #14213d; } .status.delivery { background: #3a0ca3; color: #fff; }
.small { font-size: 14px; font-weight: 400; }
.sync { text-align: center; font-size: 15px; padding: 6px; border-radius: 8px; }
.sync.ok { background: #d8f3dc; } .sync.pending { background: #ffe8cc; } .sync.bad { background: #ffccd5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { border: 1px solid #8d99ae; background: #fff; border-radius: 16px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.msg { color: #c1121f; font-size: 15px; min-height: 1em; }
.msg.ok { color: #2d6a4f; }
.card { background: #fff; border-radius: 12px; padding: 10px 12px; margin: 14px 0; }
.recent { list-style: none; padding: 0; margin: 0; }
.recent li { background: #fff; border-radius: 8px; padding: 8px 10px; margin: 6px 0; font-size: 14px; }
.badge { display: inline-block; border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 700; }
.badge.pending { background: #ffe8cc; color: #7a3e00; } .badge.synced { background: #d8f3dc; color: #1b4332; } .badge.rejected { background: #ffccd5; color: #800f2f; }
.nudge { position: sticky; top: 0; z-index: 20; background: #c1121f; color: #fff; padding: 14px; animation: flash 1s infinite alternate; }
.nudge .row { display: flex; gap: 8px; } .nudge .btn { margin: 8px 0; } .nudge .link { color: #fff; }
.nudge-title { font-size: 22px; font-weight: 800; }
@keyframes flash { from { background: #c1121f; } to { background: #780000; } }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 30; display: flex; align-items: center; justify-content: center; padding: 12px; }
.modal-box { background: #fff; border-radius: 14px; padding: 16px; max-width: 480px; width: 100%; }
.foot { text-align: center; color: #6c757d; margin-top: 20px; }

.job-list { max-height: 240px; overflow-y: auto; -webkit-overflow-scrolling: touch; border: 2px solid #8d99ae; border-radius: 10px; background: #fff; margin-top: 6px; }
.job-item { padding: 12px; border-bottom: 1px solid #e9ecef; font-size: 18px; font-weight: 600; cursor: pointer; min-height: 44px; line-height: 1.25; }
.job-item:last-child { border-bottom: 0; }
.job-item.override { color: #1d4e89; }
.job-item.selected { background: #14213d; color: #f5f1e6; }
.job-empty { padding: 12px; font-size: 15px; font-weight: 400; color: #6c757d; }
#jobNoteWrap { margin-top: 10px; }

/* ---- rev-2 "all faces" layout ---- */
.brand { padding-top: calc(10px + env(safe-area-inset-top)); }
main { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.face { background: #f1f3f7; border-radius: 14px; padding: 0 12px 12px; margin: 10px 0; border: 3px solid #0b1b3a; overflow: hidden; }
.facehead { background: #1d4e89; color: #fff; font-weight: 800; text-align: center; padding: 8px; margin: 0 -12px 8px; }
.steplabel { font-weight: 700; margin: 10px 0 4px; }
.wheel { background: #d9dee6; border-radius: 10px; max-height: 200px; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 0; scroll-snap-type: y proximity; }
.wheel.tall { max-height: 260px; }
.wheel.short { max-height: 150px; flex: 1; }
.wheel .wi, .job-item { scroll-snap-align: center; padding: 11px 12px; text-align: center; font-size: 18px; font-weight: 600; cursor: pointer; min-height: 44px; line-height: 1.25; color: #14213d; border-bottom: 0; }
.wheel .wi.sel, .job-item.selected { background: #c5d3ee; color: #14213d; }
.job-item.override { color: #1d4e89; }
.job-item.running::after, .wi.running::after { content: " \25CF"; color: #2d6a4f; }
.job-empty, .wheel .empty { padding: 12px; font-size: 15px; font-weight: 400; color: #6c757d; text-align: center; }
.row2 { display: flex; gap: 8px; }
.row2 > * { flex: 1; min-width: 0; }
.row2 .btn { margin: 8px 0; }
.navy { background: #0b1b3a; }
.clockline { font-weight: 800; color: #6c757d; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.clockline.run { color: #2d6a4f; }
.oneclock { color: #e85d04; font-weight: 800; margin: 6px 0; }
.step2.locked .wheel, .step2.locked .drum-wrap, .step2.locked .drum-foot, .step2.locked #btnConfirmProc, .step2.locked #btnEndProc { opacity: 0.35; pointer-events: none; }
.lockmsg { color: #6c757d; font-size: 14px; display: none; }
.step2.locked .lockmsg { display: block; }
.explain { background: #fff3e0; border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.explain label { margin-top: 4px; }
.infobox { background: #fff8dc; border-radius: 10px; padding: 10px; margin-top: 12px; font-size: 15px; }
.infobox > div { margin: 4px 0; }
.inline-entry { display: flex; gap: 6px; align-items: center; }
.inline-entry label { margin: 0; font-weight: 600; white-space: nowrap; }
.inline-entry input { flex: 1; min-width: 0; font-size: 18px; padding: 8px; border: 2px solid #8d99ae; border-radius: 8px; }
.btn.small-btn { width: auto; padding: 8px 12px; margin: 0; font-size: 15px; }
.notes { list-style: none; padding: 0; margin: 4px 0; font-size: 14px; }
.notes li { border-top: 1px solid #eadfb4; padding: 4px 0; }
.weekbox { background: #fff; border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.wb-title { font-weight: 800; }
.wb-st { color: #2d6a4f; font-weight: 800; font-size: 20px; }
.wb-ot { color: #e85d04; font-weight: 800; font-size: 20px; }
.slottabs { display: flex; gap: 6px; margin-top: 10px; }
.slottab { flex: 1; border: 0; border-radius: 10px 10px 0 0; padding: 10px 4px; background: #c9ced8; color: #14213d; font-weight: 800; font-size: 16px; cursor: pointer; }
.slottab.active { background: #1d4e89; color: #fff; }
.slottab .tclk { display: block; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slottab.run .tclk { color: #8be28b; }
.slottab.active.run .tclk { color: #b7f5b7; }
.jobface { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
input[type=number] { font-size: 18px; }

/* drum wheels (spinning, lock-in): sign-in names, job picker, trade / station / process.
   Each drum shows ONE item at a time: the window is exactly one row (56px, = DRUM_ROW in app.js) and the band covers it. */
.drum-wrap { position: relative; }
.drum { position: relative; height: 56px; overflow-y: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: y mandatory; background: #d9dee6; border-radius: 10px; scrollbar-width: none; overscroll-behavior: contain; }
.drum::-webkit-scrollbar { display: none; }
.drum .drum-item { height: 56px; min-height: 56px; padding: 0 26px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; scroll-snap-stop: always; font-size: 20px; font-weight: 600; color: #14213d; cursor: pointer; text-align: center; line-height: 1.15; }
.drum .drum-item.job-item { font-size: 17px; border-bottom: 0; }
.drum .drum-item.override { color: #1d4e89; }
.drum .drum-item.sel { background: transparent; color: #0b6b2e; }
.drum.sm .drum-item { font-size: 17px; padding: 0 20px; }
.drum-band { position: absolute; left: 0; right: 0; top: 0; height: 56px; border: 2px solid #14213d; background: rgba(197, 211, 238, 0.35); pointer-events: none; border-radius: 10px; }
.drum.locked { overflow: hidden; pointer-events: none; }
.drum.locked + .drum-band { border-color: #0b6b2e; background: rgba(11, 107, 46, 0.12); }
.drum.off { pointer-events: none; }
.drum:focus-visible { outline: 3px solid #fca311; outline-offset: 2px; }
.drum .empty { height: 56px; display: flex; align-items: center; justify-content: center; padding: 0 6px; font-size: 14px; color: #6c757d; text-align: center; }
/* small up/down chevrons so people know it spins; hidden once locked or when there is nothing to spin */
.drum-wrap::before, .drum-wrap::after { position: absolute; right: 8px; font-size: 10px; line-height: 1; color: #6c757d; pointer-events: none; z-index: 1; }
.drum-wrap::before { content: "\25B2"; top: 8px; }
.drum-wrap::after { content: "\25BC"; bottom: 8px; }
.drum-wrap.is-locked::before, .drum-wrap.is-locked::after, .drum-wrap.is-off::before, .drum-wrap.is-off::after { display: none; }
.drum-msg { text-align: center; margin: 6px 0 2px; font-weight: 600; }
.drum-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 8px; min-height: 30px; margin-bottom: 4px; }
.drum-foot .drum-msg { margin: 4px 0; }
.drum-reset { font-weight: 700; padding: 4px 8px; }
.btn.drum-confirm { width: auto; display: inline-block; margin: 6px 0 2px; padding: 8px 18px; font-size: 16px; border-radius: 10px; }
.step2.locked .drum-confirm { pointer-events: none; }

/* JOB TRAVELER (QF 4.004 Rev. B) */
.traveler { background: #fff; border: 2px solid #0b1b3a; border-radius: 12px; padding: 10px; margin-top: 12px; font-size: 15px; }
.trav-brand { display: flex; justify-content: space-between; font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 14px; color: #14213d; }
.trav-title { font-weight: 800; font-size: 18px; margin: 4px 0 8px; }
.trav-none { color: #6c757d; font-weight: 600; text-align: center; padding: 10px 0; margin: 0; }
.trav-sec { background: #e9ecef; font-weight: 800; text-align: center; padding: 3px; margin: 10px 0 6px; border-radius: 4px; text-decoration: underline; }
.trav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.tf { display: flex; flex-direction: column; border-bottom: 1px solid #8d99ae; min-height: 36px; }
.tl { font-size: 12px; color: #495057; }
.tvv { font-weight: 600; min-height: 1.2em; }
.tboxes { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tbox { white-space: nowrap; } .tbox.on { font-weight: 800; color: #0b6b2e; }
.trav-heat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.trav-desc div { border-bottom: 1px solid #8d99ae; padding: 3px 0; text-align: center; }
.trav-sum { font-size: 14px; color: #495057; margin-bottom: 4px; }
.trav-steps { display: flex; flex-direction: column; gap: 6px; }
.trav-step { display: grid; grid-template-columns: 30px 1fr; align-items: center; text-align: left; width: 100%; min-height: 48px; padding: 6px 8px; border: 2px solid #8d99ae; border-radius: 10px; background: #f8f9fa; font-size: 16px; font-weight: 600; color: #14213d; cursor: pointer; }
.trav-step .tchk { width: 24px; height: 24px; border: 2px solid #14213d; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.trav-step.done { background: #d8f3dc; border-color: #2d6a4f; }
.trav-step.done .tchk { background: #2d6a4f; border-color: #2d6a4f; }
.trav-step .stamp { grid-column: 2; font-size: 13px; font-weight: 600; color: #1b4332; }
.trav-step.partial { background: #fff3bf; border-color: #b08900; }
.trav-step.partial .tchk { background: #b08900; border-color: #b08900; }
.rx-badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 6px; border-radius: 8px; margin-left: 4px; vertical-align: middle; }
.rx-not_started { background: #e9ecef; color: #495057; } .rx-partial { background: #b08900; color: #fff; } .rx-complete { background: #2d6a4f; color: #fff; }
.rx-list { display: flex; flex-direction: column; gap: 4px; margin: 0 0 4px 18px; }
.rx-line { display: grid; grid-template-columns: 30px 1fr; align-items: center; text-align: left; width: 100%; min-height: 44px; padding: 5px 8px; border: 1px solid #8d99ae; border-radius: 8px; background: #fff; font-size: 15px; color: #14213d; cursor: pointer; }
.rx-line .tchk { width: 22px; height: 22px; border: 2px solid #14213d; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.rx-line.done { background: #d8f3dc; border-color: #2d6a4f; } .rx-line.done .tchk { background: #2d6a4f; border-color: #2d6a4f; }
.rx-line.short { background: #fff3bf; border-color: #b08900; } .rx-line.short .tchk { background: #b08900; border-color: #b08900; }
.rx-line .stamp { grid-column: 2; font-size: 13px; font-weight: 600; color: #1b4332; }
.rx-none { font-size: 13px; color: #6c757d; margin: -2px 0 2px 18px; font-style: italic; }
.trav-step.empty { cursor: default; color: #adb5bd; border-style: dashed; background: transparent; min-height: 32px; }
.trav-insp { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.trav-insp th, .trav-insp td { border: 1px solid #8d99ae; padding: 4px; height: 26px; }
.trav-insp td:nth-child(2) { color: #6c757d; white-space: nowrap; width: 1%; }

/* DELIVERY stops */
.dlv { background: #eef0ff; border: 2px solid #3a0ca3; border-radius: 10px; padding: 10px; margin-top: 12px; }
.dlv-stops { margin: 6px 0 8px 18px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dlv-stops li { font-size: 16px; } .dlv-stops .btn.small-btn { margin-left: 6px; }
.dlv-done { display: block; font-size: 13px; color: #1b4332; font-weight: 700; }
/* TRAINING (CR-001) - training record card on a job slot or on the Training page */
.drum .drum-item.train-item { color: #7a3e00; font-weight: 800; }
.trainhint { background: #fff3e0; border-radius: 10px; padding: 8px 10px; margin: 6px 0; font-size: 14px; color: #5c3c00; }
.clockline.train { color: #e85d04; }
.traincard { background: #fff; border: 2px solid #e85d04; border-radius: 12px; padding: 0 10px 10px; margin-top: 12px; }
.tc-head { background: #e85d04; color: #fff; font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 18px; text-align: center; padding: 6px; margin: 0 -10px 6px; border-radius: 9px 9px 0 0; }
.tc-ref { font-family: system-ui, sans-serif; font-size: 12px; font-weight: 600; opacity: 0.85; }
.tc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-f { display: flex; flex-direction: column; }
.tc-l { font-size: 12px; color: #495057; font-weight: 700; }
.traincard input[type=text] { font-size: 17px; padding: 9px 10px; }
.traincard input.tc-ro { background: #e9ecef; border-color: #ced4da; color: #14213d; font-weight: 800; }
.traincard label { margin: 8px 0 3px; font-size: 15px; }
.traincard .steplabel { margin: 8px 0 3px; font-size: 15px; }
.tc-req { color: #c1121f; }
.tc-noreq .tc-req { display: none; }
.tc-or { display: flex; align-items: center; gap: 8px; color: #6c757d; font-size: 13px; margin: 2px 0 4px; }
.tc-or::before, .tc-or::after { content: ""; flex: 1; border-top: 1px solid #ced4da; }
.btn.tc-photo { margin: 8px 0 4px; padding: 10px; text-align: center; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.tc-thumbs { display: flex; flex-wrap: wrap; gap: 6px; background: #f1f3f7; border-radius: 10px; padding: 6px; }
.tc-thumb { position: relative; }
.tc-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid #8d99ae; display: block; }
.tc-thumb.unsent img { border-color: #e85d04; }
.tc-thumb button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 12px; border: 0; background: #c1121f; color: #fff; font-weight: 800; font-size: 14px; line-height: 24px; padding: 0; }
.traincard textarea { width: 100%; box-sizing: border-box; font-size: 17px; padding: 9px 10px; border: 2px solid #8d99ae; border-radius: 10px; font-family: inherit; }
.tc-clock { margin: 8px 0 4px; }
.tc-clock.run { color: #e85d04; }
.tc-checks { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px; }
.tc-check { display: flex; align-items: flex-start; gap: 10px; background: #f8f9fa; border: 2px solid #ced4da; border-radius: 10px; padding: 9px 10px; font-size: 15px; font-weight: 600; color: #14213d; margin: 0 !important; }
.tc-check input { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; accent-color: #1b4332; }
.tc-check.on { border-color: #1b4332; background: #d8f3dc; }
.tc-done { background: #d8f3dc; border-radius: 10px; padding: 8px 10px; color: #1b4332; font-weight: 700; }
.tc-chips { margin-top: 2px; }
.drum .drum-item.tc-none { color: #6c757d; font-weight: 500; font-size: 15px; }
.tc-chips .chip { font-size: 14px; padding: 8px 12px; color: #14213d; }
.tc-chips .chip.on { background: #14213d; color: #f5f1e6; border-color: #14213d; font-weight: 700; }
.traincard .miss { border-color: #c1121f !important; }
.tc-chips.miss .chip { border-color: #c1121f; }
.trainlink .btn { background: #e85d04; }
.flag { display: inline-block; border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 700; background: #ffe8cc; color: #7a3e00; margin: 1px 2px; }
.flag.photo { background: #ffccd5; color: #800f2f; }
.tbadge { display: inline-block; border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 800; background: #e85d04; color: #fff; }

/* INSPECTION section of the traveler: fillable fields (v: inspection-fillable) */
.insp-meta { font-size: 13px; color: #495057; margin: 0 0 6px; text-align: center; }
.insp-form { grid-template-columns: 1fr 1fr; }
.insp-f { min-height: 0; border-bottom: 0; }
.tin, .traveler input.tin, .traveler textarea.tin { width: 100%; box-sizing: border-box; font-size: 17px; padding: 9px 10px; border: 2px solid #8d99ae; border-radius: 10px; background: #fff; font-family: inherit; min-height: 44px; }
.traveler textarea.tin { min-height: 90px; resize: vertical; }
.trav-insp td { padding: 3px; height: auto; }
.trav-insp td:nth-child(2) { width: 1%; }
.insp-toggle { min-width: 104px; min-height: 44px; border-radius: 10px; border: 2px solid #8d99ae; background: #f8f9fa; font-size: 16px; font-weight: 800; color: #6c757d; cursor: pointer; }
.insp-toggle.pass { background: #d8f3dc; border-color: #2d6a4f; color: #1b4332; }
.insp-toggle.fail { background: #ffe3e3; border-color: #c1121f; color: #9d0208; }
.insp-cm { margin-top: 8px; }
.insp-save { margin: 12px 0 4px; }
.insp-msg { min-height: 1.2em; text-align: center; } .insp-msg.ok { color: #1b4332; font-weight: 700; } .insp-msg.bad { color: #c1121f; font-weight: 700; }
.insp-wide { grid-column: 1 / -1; }

/* v17: delivery trip header (current stop + compact trip list) */
.tripline { font-size: 14px; color: #3a0ca3; margin: -4px 0 8px; line-height: 1.5; }
.trip-stop { display: inline-block; padding: 1px 7px; border-radius: 10px; background: #eef0ff; border: 1px solid #b8b0f0; font-weight: 600; margin-right: 2px; }
.trip-stop.done { background: #e9ecef; border-color: #ced4da; color: #6c757d; }
.trip-stop.now { background: #3a0ca3; border-color: #3a0ca3; color: #fff; font-weight: 800; }
.dlv-stops li.now { background: #e3defc; border-radius: 6px; padding: 2px 4px; }
.dlv-now { display: inline-block; font-size: 11px; font-weight: 800; background: #3a0ca3; color: #fff; border-radius: 8px; padding: 0 6px; vertical-align: middle; }

/* v17: Receive materials wheel = the same drum, three rows tall (center row picked with Confirm) */
.drum.d3 { height: 168px; }
.drum.d3::before, .drum.d3::after { content: ""; display: block; height: 56px; }
.drum-wrap.d3 .drum-band { top: 56px; }
.drum .drum-item.rx-item { flex-direction: column; gap: 1px; padding: 0 22px; font-size: 16px; line-height: 1.15; }
.rx-item .rx-i1 { font-weight: 700; font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-item .rx-i2 { font-weight: 500; font-size: 12px; color: #495057; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-wheelbox { margin: 4px 0 6px 0; }
.rx-note { text-align: center; color: #b02a37; }

/* ===== REV B ===== */
.tag.revb { background: #fff; color: #172B84; margin-right: 4px; }
.notices { margin: 8px 0 4px; }
.notices .nt { background: #fff3bf; color: #5c3c00; border: 2px solid #e0b100; border-radius: 10px; padding: 8px 10px; margin: 6px 0; font-size: 16px; font-weight: 600; }
.notices .po { background: #fff; color: #172B84; border: 2px solid #172B84; border-radius: 10px; padding: 8px 10px; margin: 6px 0; font-size: 16px; font-weight: 600; }
.notices .po.rq { border-style: dashed; }
.notices .nh { font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #14213d; margin: 8px 0 0; }
.dashwrap { background: #14213d; border-radius: 14px; padding: 12px 12px 14px; margin: 10px 0; }
.dashtitle { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 26px; letter-spacing: 1px; color: #fff; margin: 4px 0 12px; }
.tilegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; justify-content: space-between; align-items: center; gap: 6px; height: 112px; box-sizing: border-box; padding: 12px 14px;
  background: #172B84; color: #fff; border: 3px solid #fff; border-radius: 14px; font: inherit; font-size: 21px; font-weight: 800; text-align: left; cursor: pointer; line-height: 1.15; }
.tile i { font-style: normal; font-size: 34px; font-weight: 400; opacity: .9; }
.tile:active { transform: scale(0.98); }
.tile:focus-visible { outline: 4px solid #fca311; outline-offset: 2px; }
@media (min-width: 700px) { .tilegrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.soon-back, .cal-back, .pto-back { margin-top: 6px; }
.calface { padding-bottom: 10px; }
.cal-top { display: flex; justify-content: space-between; align-items: center; }
.cal-top .btn { margin: 4px 0; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 6px; }
.cal-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 26px; color: #14213d; text-align: center; flex: 1; }
.cal-arrow { background: #172B84; color: #fff; border: 2px solid #fff; border-radius: 10px; width: 48px; height: 44px; font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 0 0 1px #172B84; }
.cal-months { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-x pan-y; }
.cal-months::-webkit-scrollbar { display: none; }
.calm { flex: 0 0 100%; scroll-snap-align: start; box-sizing: border-box; padding: 0 1px; }
.calg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-dow { text-align: center; font-size: 13px; font-weight: 800; color: #172B84; padding: 2px 0; }
.cd { min-height: 70px; background: #fff; border: 1px solid #c9ced8; border-radius: 6px; padding: 2px 1px 3px; font-size: 15px; font-weight: 700; color: #14213d; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; overflow: hidden; font-family: inherit; }
.cd.blank { background: transparent; border: 0; cursor: default; }
.cd.today { box-shadow: inset 0 0 0 2px #172B84; border-color: #172B84; }
.cd.sel { background: #e8edff; }
.cd.wk { background: #f4f5f8; }
.cd .n { line-height: 1; }
.mk { display: block; font-size: 10px; font-weight: 700; line-height: 1.25; border-radius: 4px; padding: 1px 1px; letter-spacing: -0.3px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.mk.due { background: #172B84; color: #fff; }
.mk.pto.ap, .lg.pto.ap { background: #2d6a4f; color: #fff; }
.mk.pto.rq, .lg.pto.rq { background: #fff; color: #7a4a00; border: 1px dashed #b07000; }
.mk.note, .lg.note { background: #fca311; color: #14213d; }
.lg { display: inline-block; width: 16px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 3px; }
.lg.due { background: #172B84; }
.lg.pto.rq { border: 1px dashed #b07000; }
.cal-dots { text-align: center; margin: 6px 0 2px; }
.cal-dots i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c9ced8; margin: 0 3px; }
.cal-dots i.on { background: #172B84; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; margin: 6px 0; }
.cal-day { background: #fff; border-radius: 10px; padding: 8px 10px; margin: 6px 0; font-size: 16px; }
.cal-day h4 { margin: 0 0 4px; font-size: 17px; }
.cal-day ul { margin: 4px 0; padding-left: 18px; }
body.cal-wide main { max-width: 900px; }
body.cal-wide .cd { min-height: 96px; font-size: 18px; }
body.cal-wide .mk { font-size: 13px; }
.po-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.po-st { font-weight: 800; }
.po-st.requested { color: #7a4a00; } .po-st.approved { color: #2d6a4f; } .po-st.denied { color: #c1121f; } .po-st.void { color: #6c757d; }
#ptoPage input, #ptoPage select { width: 100%; box-sizing: border-box; font-size: 18px; padding: 10px; border: 2px solid #8d99ae; border-radius: 10px; background: #fff; }

.cal-hint { font-size: 13px; margin: 2px 0; }

/* ===== REV B pages (Delivery / Transfer pause banner, Training, Field Work, Delivery / Transfer, Equipment, Supplies) ===== */
.tile { position: relative; }
.tile .tbadge { position: absolute; top: -9px; right: -7px; min-width: 26px; height: 26px; line-height: 26px; padding: 0 6px; box-sizing: border-box; border-radius: 13px; background: #c1121f; color: #fff; font-size: 15px; font-weight: 800; text-align: center; border: 2px solid #fff; }
.tile .tpn { position: absolute; left: 14px; bottom: 8px; font-size: 12px; font-weight: 700; color: #fff; opacity: .95; letter-spacing: .02em; }
.tbadge.inline { position: static; display: inline-block; min-width: 22px; height: 22px; line-height: 22px; padding: 0 6px; border-radius: 11px; background: #c1121f; color: #fff; font-size: 13px; font-weight: 800; margin-left: 6px; border: 2px solid #fff; box-sizing: border-box; vertical-align: middle; }
.pausebar { max-width: 640px; margin: 8px auto 0; padding: 0 12px; box-sizing: border-box; }
.pausebar .btn { margin: 0; padding: 10px 14px; font-size: 16px; }
.pausebar .lb-on { background: #fff3cd; border: 2px solid #fca311; border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; font-size: 15px; color: #14213d; }
.alsobox { background: #e8f0ff; border: 2px solid #1d4e89; border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.alsotag { background: #1d4e89; color: #fff; padding: 3px 10px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.rbpage { padding-bottom: 40px; }
.rb-head { margin-bottom: 4px; }
.rb-sub { margin: 2px 0 8px; }
.rb-card { background: #fff; border: 1px solid #c9d1de; border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.rb-card input[type=text], .rb-card input[type=number], .rb-card input[type=date], .rb-card input[type=tel], .rb-card input[type=email], .rb-card select, .rb-card textarea, .rbpage select, .rbpage textarea { width: 100%; box-sizing: border-box; font-size: 17px; padding: 9px 10px; margin: 4px 0 8px; border: 1px solid #98a4ba; border-radius: 8px; background: #fff; font-family: inherit; }
.rbpage input.bigin { font-size: 28px; font-weight: 800; text-align: center; letter-spacing: .06em; text-transform: uppercase; }
.clockbanner { text-align: center; font-weight: 800; letter-spacing: .04em; color: #fff; border-radius: 10px; padding: 10px 8px; margin: 8px 0; background: #1d4e89; }
.clockbanner.field { background: #0b6b2e; } .clockbanner.delivery { background: #7a4a00; } .clockbanner.train { background: #5a2d82; }
.clockline.big { font-size: 36px; font-weight: 800; text-align: center; margin: 6px 0; font-variant-numeric: tabular-nums; }
.gpsline { text-align: center; background: #e6f4ea; border: 1px solid #0b6b2e; border-radius: 8px; padding: 6px; font-size: 14px; margin: 4px 0; }
.splitrow { display: flex; gap: 6px; justify-content: center; margin: 6px 0; } .splitrow .pill { flex: 1; text-align: center; font-size: 12px; font-weight: 700; padding: 6px 4px; border: 2px solid #1d4e89; border-radius: 8px; color: #1d4e89; } .splitrow .pill.on { background: #1d4e89; color: #fff; }
.sheet .sheet-title { font-weight: 800; text-align: center; letter-spacing: .04em; margin-bottom: 6px; }
.frow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dotted #c9d1de; font-size: 15px; }
.frow input { width: 55%; margin: 0; }
.statement { text-align: center; margin: 6px 0; }
canvas.sig { width: 100%; height: 130px; border: 2px solid #14213d; border-radius: 8px; background: #fff; touch-action: none; display: block; }
.stub { background: #fff3cd; border: 1px dashed #b7791f; color: #5c3b00; border-radius: 8px; padding: 6px 8px; margin: 8px 0; font-size: 13px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .thumb { margin: 0; width: 84px; } .thumb img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid #98a4ba; background: #eef1f6; } .thumb figcaption { font-size: 10px; color: #4a5568; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .chip { display: inline-block; background: #e3e9f5; color: #14213d; border: 1px solid #98a4ba; border-radius: 16px; padding: 5px 12px; font-size: 14px; font-weight: 700; } .chip.new { background: #fff3cd; border-color: #b7791f; } .chip a { margin-left: 6px; cursor: pointer; color: #c1121f; }
.sug { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.jobchecks { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow-y: auto; } .jc { background: #fff; border: 2px solid #98a4ba; border-radius: 8px; padding: 8px 10px; font-size: 14px; font-weight: 700; color: #14213d; } .jc.on { background: #172B84; color: #fff; border-color: #172B84; }
.toggles { display: flex; gap: 8px; } .btn.toggle { flex: 1; background: #fff; color: #172B84; border: 3px solid #172B84; } .btn.toggle.on { background: #172B84; color: #fff; }
.prompt { background: #fff3cd; border: 2px solid #fca311; border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.chk { display: block; margin: 6px 0; font-size: 15px; } .resrow { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.bigtile { display: block; width: 100%; height: 84px; box-sizing: border-box; margin: 10px 0; font-size: 26px; font-weight: 800; color: #fff; background: #172B84; border: 3px solid #fff; border-radius: 14px; box-shadow: 0 0 0 1px #172B84; cursor: pointer; font-family: inherit; }
.bigtile.alt, .bigtile.dark, .bigtile[class*=cat-] { background: #172B84; }
.bigtile .small { color: #fff; opacity: .85; font-size: 14px; }
.assetlist { border: 2px solid #14213d; border-radius: 10px; overflow: hidden; background: #fff; } .asset { display: block; width: 100%; text-align: left; padding: 13px 12px; font-size: 16px; font-weight: 600; background: #fff; border: 0; border-bottom: 1px solid #c9d1de; color: #14213d; font-family: inherit; }
.logentry { background: #e8f0ff; border-radius: 8px; padding: 7px 9px; margin: 6px 0; font-size: 15px; } .logentry .ld { color: #1d4e89; font-weight: 700; }
.supgroup { font-weight: 800; background: #fff3cd; padding: 4px 8px; margin-top: 6px; border-radius: 6px; } .suprow { padding: 4px 8px; font-size: 14px; border-bottom: 1px dotted #c9d1de; }
.flagged { color: #c1121f; font-weight: 800; }
#spQty.locked { opacity: .45; pointer-events: none; }
.tkrow { display: flex; gap: 6px; } .tkrow .tkd { flex: 3; } .tkrow .tkq { flex: 1; }
.msg.ok { color: #0b6b2e; } .msg.bad { color: #b00020; }

/* ===== REV B PIN rule: access badge + view-only notes ===== */
.acctag { display: inline-block; font: bold 12px system-ui; padding: 2px 8px; border-radius: 10px; vertical-align: middle; }
.acctag.sup { background: #2d6a4f; color: #fff; }
.acctag.view { background: #e9ecef; color: #14213d; border: 1px solid #6c757d; }
.viewnote { background: #fff3cd; border: 2px solid #fca311; border-radius: 10px; padding: 8px 10px; margin: 8px 0; font-size: 14px; color: #14213d; }
.pinhelp { margin: 6px 0 0; }
.cal-review { margin: 12px 0; padding: 8px 10px; background: #fff; border: 2px solid #172B84; border-radius: 10px; }
.cal-review input[type=text], .cal-review input[type=date] { width: 100%; box-sizing: border-box; margin: 4px 0; }
.cal-review .decbtns { white-space: nowrap; }
.cal-review button:disabled, .rbpage button:disabled { opacity: .45; }
.st-requested { color: #b45309; font-weight: 700; } .st-approved { color: #2d6a4f; font-weight: 700; } .st-denied { color: #c1121f; font-weight: 700; }
.btn.red { background: #c1121f; color: #fff; }

/* ===== REV B Supplies parts list (4-digit users mark parts used) ===== */
.plcat { background: #172B84; color: #fff; font-weight: 800; padding: 8px 12px; border-radius: 8px; margin: 14px 0 4px; font-size: 18px; }
.plitem { font-weight: 700; margin: 8px 2px 2px; color: #14213d; }
.plpart { display: block; width: 100%; text-align: left; background: #fff; border: 2px solid #aab4d4; border-radius: 10px; padding: 10px 12px; margin: 4px 0; font-size: 16px; color: #14213d; }
.plpart.sel { border-color: #172B84; background: #eef1fb; }
.plpart.flagged { border-color: #c1121f; }
.plpanel { background: #eef1fb; border: 2px solid #172B84; border-radius: 10px; padding: 8px 10px; margin: 0 0 6px; }
.pu-row { display: flex; gap: 8px; align-items: center; }
.pu-row input { width: 90px; font-size: 20px; padding: 8px; box-sizing: border-box; }
.pu-unit { font-weight: 700; }

.progline { margin: 4px 0 6px; font-size: 15px; }
/* REV B: the long label 'How many parts done today' sits on its own line so the box stays wide enough to type in */
#infoBox .inline-entry { flex-wrap: wrap; }
#infoBox .inline-entry label { flex: 1 0 100%; white-space: normal; }
#infoBox .inline-entry input { min-width: 90px; }
#infoBox .inline-entry select { flex: 1 0 100%; font-size: 16px; padding: 8px; border: 2px solid #8d99ae; border-radius: 8px; background: #fff; }

/* REV C: full-screen traveler lists (notes 10, 11, 12) */
.fullscreen{position:fixed;inset:0;z-index:60;background:#fff;overflow:auto;padding:0 max(14px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px))}
body.fl-open{overflow:hidden}
.fl-head{position:sticky;top:0;background:#fff;z-index:2;padding:calc(8px + env(safe-area-inset-top, 0px)) 0 8px}
.fl-back{min-height:44px;font-size:17px;font-weight:700;display:inline-flex;align-items:center;padding:8px 4px 8px 0}
.fl-back-foot{margin-top:16px}
.fl-sort{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.fl-sort .chip.on{background:#14213d;color:#fff}
.fl-list{display:grid;gap:6px}
.fl-item{display:flex;flex-wrap:wrap;gap:8px;align-items:center;text-align:left;width:100%;min-height:52px;padding:10px;border:2px solid #b8c4d8;border-radius:10px;background:#f7f9fc;font-size:17px}
.fl-item.done{background:#e3f6e8;border-color:#2e8b57}
.fl-item .stamp{font-size:13px;color:#34495e;width:100%}
.insp-parts{display:grid;gap:10px}
.insp-part{border:1px solid #c9d3e3;border-radius:10px;padding:8px}
.insp-part h3{margin:0 0 4px}
.insp-part label{display:block}
.insp-part input,.insp-part textarea{width:100%;box-sizing:border-box}
.mat-edit{margin-top:6px}

/* ===== REV C 0.5.1: note 15 voice, note 16 AI assistant, note 28/30 customer address ===== */
.voice-mic { display: inline-block; margin: 4px 0 6px; padding: 6px 12px; border-radius: 18px; border: 1px solid #14213d; background: #eef2fb; color: #14213d; font-size: 15px; }
.voice-mic.rec { background: #c62828; color: #fff; border-color: #c62828; animation: vpulse 1s infinite; }
@keyframes vpulse { 50% { opacity: .65; } }
.voice-status { min-height: 1em; } .voice-status.bad { color: #b00020; } .voice-status.listening { color: #14213d; font-weight: 600; }
.voice-confirm { background: #fff8e1; border: 2px solid #f9a825; border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.voice-confirm .vc-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.ai-fab { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 60px; height: 60px; border-radius: 50%; border: 0; background: #14213d; color: #ffd24d; box-shadow: 0 3px 10px rgba(0,0,0,.4); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; padding: 0; }
.ai-fab .ai-fab-t { font-size: 11px; line-height: 1; margin-top: -2px; }
.ai-panel { position: fixed; right: 8px; left: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); max-width: 460px; margin-left: auto; z-index: 45; background: #fff; border: 2px solid #14213d; border-radius: 14px; box-shadow: 0 6px 22px rgba(0,0,0,.5); padding: 10px; display: flex; flex-direction: column; max-height: 72vh; }
.ai-head { display: flex; align-items: center; gap: 6px; } .ai-head .link { margin-left: auto; font-size: 26px; line-height: 1; }
.ai-ro { color: #555; margin-bottom: 4px; }
.ai-log { overflow-y: auto; min-height: 90px; flex: 1; border-top: 1px solid #ddd; padding: 6px 0; }
.ai-msg { margin: 4px 0; padding: 6px 9px; border-radius: 10px; max-width: 92%; font-size: 16px; white-space: pre-wrap; }
.ai-msg.me { background: #dbe7ff; margin-left: auto; } .ai-msg.bot { background: #f1f1f1; } .ai-msg.note { background: #fff3cd; font-size: 14px; }
.ai-row { display: flex; gap: 6px; align-items: center; } .ai-row input { flex: 1; min-width: 0; margin: 0; }
.ai-chip { font-size: 14px; padding: 2px 0; } .ai-speak { display: block; margin-top: 4px; } .ai-speak input { width: auto; margin-right: 6px; }
.ai-row .btn.rec { background: #c62828; }
.destbox { background: #e8f1ff; border: 2px solid #14213d; border-radius: 10px; padding: 8px 10px; margin: 6px 0 10px; text-align: center; }
.destbox.warn { background: #fff3cd; border-color: #b7791f; }
.destbox .dest-label { font-size: 13px; color: #14213d; text-transform: uppercase; letter-spacing: .04em; } .destbox .dest-line { font-size: 19px; font-weight: 700; margin: 2px 0 6px; }
.navbtn { display: inline-block; text-decoration: none; color: #fff; margin: 2px 0; }
.custcard { background: #f6f8fc; border: 1px solid #b8c4de; border-radius: 10px; padding: 6px 9px; margin: 6px 0; }
.custcard.unconf { background: #fff8e1; border-color: #e0b341; } .custcard .cc-addr { font-weight: 700; font-size: 17px; } .custcard .cc-addr.bad { color: #8a5a00; }
.cc-cands { margin: 4px 0 4px 18px; padding: 0; font-size: 15px; } .reminder { background: #ffe9a8; border-radius: 6px; padding: 4px 8px; margin: 4px 0; font-size: 15px; }

/* REV C 0.5.1 note 32: supply photo capture */
.spphoto .spSnap { margin: 6px 0; }
.sp-bigphoto { display: block; max-width: 100%; max-height: 220px; border-radius: 8px; margin: 6px 0; }
.spph-line { margin: 6px 0; }
.spph-line input { width: 100%; box-sizing: border-box; }
.spph-note { color: #8a5a00; }
.sp-pend { border-left: 4px solid #ffd24d; background: #fffbe8; padding: 6px 8px; margin: 6px 0; border-radius: 4px; }
.sp-pendrow { padding: 4px 0; }

/* REV C 0.5.2 Fabco Bot */
.ai-fab { position: fixed; } .ai-dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: #e53935; border: 2px solid #fff; }
.ai-esc { margin-top: 6px; } .ai-ro .link { font-size: 13px; margin-left: 6px; }
.ai-head b { white-space: nowrap; }

/* Nov 20, 2026: insert intake wheel (same drum, three rows tall like the Receive materials wheel); thumbnail + part number + category / qty */
#insWheel { margin: 4px 0 8px 0; }
.drum .drum-item.ins-item { justify-content: flex-start; gap: 10px; padding: 0 22px 0 8px; text-align: left; font-size: 16px; }
.ins-th { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #c5cbd6; flex: none; }
.ins-tx { display: flex; flex-direction: column; min-width: 0; }
.ins-i1 { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-i2 { font-weight: 500; font-size: 12px; color: #495057; text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#insForm input { margin-top: 6px; }
#insForm input { width: 100%; box-sizing: border-box; }

/* Nov 20 2026 Delivery / Transfer redesign */
.dl-actions { margin-top: 12px; border-top-left-radius: 14px; border-top-right-radius: 14px; }
.dljob { margin: 6px 0; }
.dlforms { list-style: none; padding: 0; margin: 4px 0; }
.dlf { background: #fff; border-left: 4px solid #d98c00; padding: 4px 8px; margin: 3px 0; border-radius: 4px; }
.dlf.signed { border-left-color: #2e8b3a; opacity: .75; }
.pout { background: #d98c00; color: #fff; border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 700; }
/* Delivery full-screen signature pad (12:17; final 12:22) */
.sigbox { display:flex; align-items:center; justify-content:center; width:100%; min-height:120px; border:2px dashed #14213d; border-radius:8px; background:#fff; color:#14213d; font-size:18px; font-weight:600; padding:6px; }
.sigbox.has { border-style:solid; }
.sigbox img { max-width:100%; max-height:140px; }
body.fsp-open { overflow:hidden; }
.fspad { position:fixed; inset:0; z-index:9999; background:#fff; display:flex; flex-direction:column; touch-action:none; }
.fsp-top { display:flex; flex-direction:column; padding:10px 14px 4px; background:#14213d; color:#fff; }
.fsp-title { font-size:20px; font-weight:700; }
.fsp-hint { font-size:13px; opacity:.8; }
.fsp-area { position:relative; flex:1; touch-action:none; }
.fsp-area canvas { position:absolute; inset:0; width:100%; height:100%; touch-action:none; display:block; z-index:2; }
.fsp-line { position:absolute; left:6%; right:6%; bottom:28%; border-bottom:2px solid #9aa3b5; z-index:1; }
.fsp-x { position:absolute; left:6%; bottom:calc(28% + 4px); font-size:22px; color:#9aa3b5; z-index:1; }
.fsp-bar { display:flex; gap:12px; padding:10px 14px calc(10px + env(safe-area-inset-bottom)); background:#f1f3f7; }
.fsp-bar .btn { flex:1; min-height:56px; font-size:20px; }
.fsp-bar #fsClear { background:#fff; color:#14213d; border:2px solid #14213d; }

/* Nov 20 12:49 'You are signing for' strip on the signing pad (small, read-only; the signing area stays large) */
.fsp-for { flex:0 0 auto; max-height:24vh; overflow-y:auto; padding:5px 14px; background:#eef1f7; color:#14213d; border-bottom:1px solid #c9d0de; font-size:14px; line-height:1.3; touch-action:pan-y; }
.fsp-forl { font-weight:600; }
.fsp-clause { font-weight:700; margin-bottom:2px; }
.fsp-forl + .fsp-forl { font-weight:500; }
@media (orientation: landscape) and (max-height: 500px) { .fsp-top { flex-direction:row; align-items:baseline; gap:12px; padding:5px 14px 3px; } .fsp-title { font-size:17px; } .fsp-for { max-height:26vh; font-size:13px; padding:3px 14px; } .fsp-bar { padding-top:6px; padding-bottom:calc(6px + env(safe-area-inset-bottom)); } .fsp-bar .btn { min-height:44px; } }
.forstrip { background:#eef1f7; border-radius:6px; padding:6px 10px; margin:6px 0; color:#14213d; font-size:14px; }
.forstrip div:first-child { font-weight:600; }

/* Delivery: Partial order blanks */
.dl-partial { margin: 8px 0 12px; }
.dl-partial-fields { margin-top: 8px; }
.dl-partial-fields input { width: 4.5em; display: inline-block; text-align: center; }
.dl-partlines { flex-direction: column; margin-bottom: 8px; } .dl-partlines .btn.toggle { text-align: left; font-size: 15px; padding: 10px 12px; white-space: normal; }
/* Nov 21 2026: tap to sign on the real packing slip / transfer ticket (server-rendered pages) */
.dldoc { margin:6px 0 8px; }
.dlpage { position:relative; width:100%; background:#fff; border:1px solid #98a4ba; margin:0 0 6px; overflow:hidden; }
.dlpage > img:first-child { position:absolute; inset:0; width:100%; height:100%; display:block; }
.dlhot { position:absolute; z-index:2; border:3px dashed #1d4e89; background:rgba(29,78,137,.10); border-radius:6px; padding:0; display:flex; align-items:center; justify-content:center; color:#1d4e89; font-weight:800; font-size:16px; cursor:pointer; }
.dlhot.has { border:2px solid rgba(29,78,137,.35); background:transparent; }
.dlhot span { background:rgba(255,255,255,.85); border-radius:6px; padding:2px 8px; }
.dlov-sig { position:absolute; z-index:1; object-fit:contain; pointer-events:none; }
.dlov { position:absolute; z-index:1; transform:translateY(-82%); white-space:nowrap; line-height:1; color:#0d1a8c; font-family:Helvetica, Arial, sans-serif; pointer-events:none; }
.dlformtabs .btn { font-size:15px; }
/* signed / printed copy opens inside the app with a full-size Close (no dead-end page in the home-screen app) */
.cpview { position:fixed; inset:0; z-index:9998; background:#fff; display:flex; flex-direction:column; }
.cpview iframe { flex:1; width:100%; border:0; background:#fff; }
.cpview .cpbar { display:flex; gap:8px; padding:8px 10px calc(8px + env(safe-area-inset-bottom)); border-top:1px solid #ccc; background:#f4f6f8; }
.cpview .cpbar .btn { flex:1; margin:0; }
#omClose, .cpview #cpClose { background:#fff; color:#14213d; border:2px solid #14213d; min-height:52px; }
.dlov-part { color:#9a0d0d; font-weight:700; }

/* Nov 22, 2026: Supplies hierarchy - category picker, subcategory tabs, insert styles, search, awaiting-sort queue */
.sh-search input, .sh-insq input { width: 100%; box-sizing: border-box; font-size: 18px; padding: 11px 12px; margin: 6px 0 4px; border: 2px solid #172B84; border-radius: 10px; background: #fff; font-family: inherit; }
.sh-pick { margin-top: 12px; }
.sh-cattile { position: relative; height: auto; min-height: 84px; padding: 10px 12px; }
.sh-await { display: block; margin: 4px auto 0; width: fit-content; font-size: 14px; font-weight: 800; background: #f4a261; color: #14213d; border-radius: 10px; padding: 2px 10px; }
.sh-results .sh-rh { font-weight: 800; color: #172B84; margin: 8px 0 2px; }
.sh-r { display: block; width: 100%; text-align: left; background: #fff; border: 2px solid #aab4d4; border-radius: 10px; padding: 8px 10px; margin: 4px 0; font-size: 16px; color: #14213d; font-family: inherit; }
.sh-r .small { display: block; margin-top: 2px; }
.sh-up { margin: 2px 0 0; }
.sh-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 8px; margin: 6px 0; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.sh-tab { flex: none; background: #fff; color: #172B84; border: 2px solid #172B84; border-radius: 18px; padding: 7px 13px; font-size: 15px; font-weight: 800; font-family: inherit; white-space: nowrap; }
.sh-tab.on { background: #172B84; color: #fff; }
.sh-tab.await { border-color: #e76f51; color: #9a3412; }
.sh-tab.await.on { background: #e76f51; color: #fff; }
.sh-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: rgba(23,43,132,.12); font-size: 12px; text-align: center; }
.sh-tab.on .sh-n, .sh-chip.on .sh-n { background: rgba(255,255,255,.25); }
.sh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.sh-chip { background: #eef1fb; color: #172B84; border: 2px solid #aab4d4; border-radius: 16px; padding: 5px 11px; font-size: 14px; font-weight: 800; font-family: inherit; }
.sh-chip.on { background: #172B84; color: #fff; border-color: #172B84; }
.sh-style { font-weight: 800; color: #14213d; background: #e6e9f2; border-radius: 6px; padding: 4px 8px; margin: 10px 0 3px; font-size: 15px; }
.sh-ins { display: block; width: 100%; text-align: left; background: #fff; border: 2px solid #aab4d4; border-radius: 10px; padding: 8px 10px; margin: 4px 0; font-size: 15px; color: #14213d; font-family: inherit; }
.sh-ins.open { border-color: #172B84; background: #eef1fb; }
.sh-i1 { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.sh-ins .small { display: block; margin-top: 2px; }
.sh-insd { background: #f7f8fc; border: 1px solid #c9d1de; border-radius: 8px; padding: 6px 10px; margin: -2px 0 6px; font-size: 14px; }
.sh-insph { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; margin: 6px 6px 0 0; background: #c5cbd6; }
.sh-st { flex: none; display: inline-block; border-radius: 8px; padding: 1px 7px; font-size: 12px; font-weight: 800; background: #d9dde5; color: #333; }
.sh-st.st-instock { background: #2d6a4f; color: #fff; }
.sh-st.st-low { background: #f4a261; color: #14213d; }
.sh-st.st-reorder { background: #c1121f; color: #fff; }
.sh-src { margin: 6px 0 10px; }
.sh-pend { display: inline-block; font-size: 12px; font-weight: 800; background: #f4a261; color: #14213d; border-radius: 8px; padding: 0 6px; }
.sh-ith { width: 32px; height: 32px; vertical-align: middle; }
.sh-phnote { margin: 2px 0 4px; }
.sh-q { display: flex; gap: 10px; align-items: flex-start; }
.sh-qph { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: #c5cbd6; flex: none; }
.sh-qph.none { display: flex; align-items: center; justify-content: center; font-size: 12px; color: #555; }
.sh-qtx { flex: 1; min-width: 0; }
.sh-qtx select, .sh-qtx input { margin: 6px 0 4px !important; }
.sh-qwait { color: #9a3412; font-weight: 700; margin-top: 4px; }
/* Nov 22, 2026 2:42 PM: Supplies opening screen = category wheel */
.drum .drum-item.sh-catitem { gap: 8px; font-size: 20px; font-weight: 800; }
.sh-awin { display: inline-block; margin: 0; font-size: 12px; padding: 1px 8px; vertical-align: middle; }
.sh-awaitsum { margin: 6px 2px 10px; font-weight: 700; color: #9a3412; }
/* Nov 22, 2026 2:44 PM: Inserts style rows (tap to open) + compact part-number rows (6+ on a phone screen) */
.sh-stylebtn { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; border: 1px solid #c9d1de; font-family: inherit; cursor: pointer; padding: 8px 10px; }
.sh-stylebtn .sh-chev { margin-left: auto; font-size: 22px; line-height: 1; color: #172B84; }
.sh-ins.compact { padding: 5px 9px; margin: 3px 0; border-width: 1.5px; border-radius: 8px; }
.sh-ins.compact .sh-pn { font-size: 17px; letter-spacing: .2px; }
.sh-ins.compact .small { font-size: 12px; margin-top: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-ins.compact .sh-i1 { align-items: center; }
.sh-q4 input { margin-top: 2px; }
.sh-cnt { margin: 2px 2px 4px; font-weight: 700; }
/* V2 proposal (Nov 22 3:04 PM, box review): three wheels on page one + compact results page */
#shW1, #shW2, #shW3 { margin-bottom: 4px; }
.sh-rtop { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sh-crumb { font-weight: 700; color: #172B84; }
.sh-sub { font-size: 13px; font-weight: 800; color: #14213d; background: #e6e9f2; border-radius: 6px; padding: 2px 8px; margin: 8px 0 2px; }
.plpart.sh-prow, .sh-prow.empty { display: block; padding: 5px 9px; margin: 3px 0; border-width: 1.5px; border-radius: 8px; font-size: 15px; }
.sh-prow.empty { background: #fff; border: 1.5px dashed #aab4d4; color: #14213d; }
.sh-prow .sh-pn { font-size: 17px; }
.sh-prow .sh-pin { display: block; font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Nov 22, 2026 4:01 PM (box proposal): insert Used panel inside the insert detail */
.sh-insuse { margin: 8px 0 4px; background: #fff; }
.sh-insuse .small { margin-bottom: 2px; }
.sh-usedtx { color: #14213d; }
/* full-screen insert detail (box proposal Nov 22 4:03 PM) */
.sh-dhead .sh-dpn { font-size: 24px; letter-spacing: .3px; }
.sh-dqty { font-size: 17px; font-weight: 700; margin-top: 4px; }
.sh-dfields .sh-df { padding: 4px 0; border-bottom: 1px solid #e3e7ef; }
.sh-dfields .sh-df:last-child { border-bottom: 0; }
.sh-dfields .sh-df .small { display: block; color: #55607a; }
.sh-tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0; }
.sh-tbl th, .sh-tbl td { border-bottom: 1px solid #e3e7ef; padding: 3px 4px; text-align: left; vertical-align: top; }
.sh-tbl th { background: #eef1fb; color: #172B84; }
.sh-rpmh { margin-top: 10px; }
.sh-infeed, .sh-srcline { margin-top: 6px; }
.sh-srcline a { word-break: break-all; }
.sh-dph { width: 100%; max-height: 520px; object-fit: contain; border-radius: 8px; background: #c5cbd6; margin: 6px 0; }
.sh-iubtns { display: flex; gap: 8px; margin-top: 6px; }
.sh-iubtns .btn { flex: 1; margin: 0; }
.sh-min { font-weight: 800; color: #172B84; }
/* Quick guide + collapsed More details (box proposal Nov 22 ~4:40 PM) */
.sh-guide .sh-gl { padding: 4px 0; border-bottom: 1px solid #e3e7ef; font-size: 16px; }
.sh-guide .sh-gl:last-child { border-bottom: 0; }
.sh-gk { display: inline-block; min-width: 8.5em; color: #55607a; font-size: 14px; }
.sh-grpm { font-size: 13px; color: #14213d; margin-top: 1px; }
.sh-gsrc { margin: 4px 0 2px; }
.sh-rate { padding: 1px 10px; border-radius: 10px; font-size: 14px; }
.sh-rate-yes { background: #dcfce7; color: #166534; }
.sh-rate-no { background: #fee2e2; color: #991b1b; }
.sh-rate-moderate { background: #fef3c7; color: #92400e; }
.sh-more { margin: 8px 0; }
.sh-more > summary { cursor: pointer; font-weight: 800; color: #172B84; font-size: 17px; padding: 10px 12px; background: #eef1fb; border: 1px solid #c9d1de; border-radius: 10px; list-style-position: inside; }
.sh-more[open] > summary { margin-bottom: 6px; }
.sh-gq { padding: 4px 0 6px; border-bottom: 1px solid #e3e7ef; }
.sh-gq:last-child { border-bottom: 0; }
.sh-gq a { word-break: break-all; }
/* revC-28 box proposal: supply rows open the full detail page */
.sh-prow.plpartx { display: block; width: 100%; text-align: left; padding: 5px 9px; margin: 3px 0; border: 1.5px solid #aab4d4; border-radius: 8px; background: #fff; color: #14213d; font-size: 15px; }
.sh-prow.plpartx.flagged { border-color: #c62828; background: #fff4f4; }
.sh-prow.empty.tap { width: 100%; text-align: left; cursor: pointer; }
/* Nov 23 (box v6): Quick guide 'not listed' tag and reason lines */
.sh-st.sh-nl { background: #e5e7eb; color: #374151; }
.sh-gwhy { color: #55607a; margin: 1px 0 0 0; font-size: 12.5px; line-height: 1.3; }
.sh-gnote { margin-top: 6px; color: #55607a; }
