.vehicle-workspace { margin: 0 0 16px; border-top: 1px solid var(--rr-border); border-bottom: 1px solid var(--rr-border); background: #f8fbfd; }
.workspace-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 7px 8px 0; border-bottom: 1px solid var(--rr-border); background: #fff; }
.workspace-tab { min-height: 38px; padding: 7px 11px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #526377; font-size: 0.74rem; font-weight: 900; white-space: nowrap; }
.workspace-tab:hover { color: #0b1220; background: #f2f6fa; }
.workspace-tab.active { color: #075985; border-bottom-color: #0ea5e9; }
.workspace-tab .badge { margin-left: 5px; font-size: 0.61rem; }
.workspace-body { min-height: 160px; padding: 14px; }
.workspace-panel { display: none; }
.workspace-panel.active { display: block; }
.workspace-loading { padding: 32px; text-align: center; color: #64748b; font-size: 0.82rem; font-weight: 700; }
.workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.workspace-title { margin: 0; color: #0b1220; font-size: 0.86rem; font-weight: 900; }
.workspace-subtitle { margin-top: 2px; color: #64748b; font-size: 0.68rem; }
.workspace-form { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; margin-bottom: 12px; }
.workspace-field { grid-column: span 3; }
.workspace-field.wide { grid-column: span 6; }
.workspace-field.narrow { grid-column: span 2; }
.workspace-field label { display: block; margin-bottom: 3px; color: #526377; font-size: 0.61rem; font-weight: 900; text-transform: uppercase; }
.workspace-form-action { grid-column: span 1; display: flex; justify-content: flex-end; }
.workspace-list { border-top: 1px solid var(--rr-border); background: #fff; }
.workspace-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 11px; border-bottom: 1px solid var(--rr-border); align-items: center; }
.workspace-row-title { color: #0b1220; font-size: 0.78rem; font-weight: 900; }
.workspace-row-meta { margin-top: 3px; color: #64748b; font-size: 0.67rem; line-height: 1.35; }
.workspace-row-actions { display: flex; align-items: center; gap: 6px; }
.workspace-row-actions .form-select { width: 130px; }
.workspace-empty { padding: 24px 12px; color: #64748b; text-align: center; font-size: 0.76rem; }
.workspace-priority { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 4px; color: #fff; font-size: 0.58rem; font-weight: 900; text-transform: uppercase; }
.workspace-priority.low { background: #64748b; }
.workspace-priority.normal { background: #0369a1; }
.workspace-priority.high { background: #b45309; }
.workspace-priority.urgent { background: #b91c1c; }
.workspace-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.workspace-kpi { padding: 9px 10px; border: 1px solid var(--rr-border); border-radius: 6px; background: #fff; }
.workspace-kpi-label { color: #64748b; font-size: 0.59rem; font-weight: 900; text-transform: uppercase; }
.workspace-kpi-value { margin-top: 2px; color: #0b1220; font-size: 1rem; font-weight: 900; }
.inspection-section { margin: 10px 0 5px; color: #075985; font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }
.inspection-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px; border-bottom: 1px solid var(--rr-border); background: #fff; }
.inspection-prompt { color: #0b1220; font-size: 0.76rem; font-weight: 800; }
.inspection-note { width: 100%; margin-top: 6px; }
.inspection-response { display: inline-flex; gap: 3px; align-items: flex-start; }
.inspection-response button { min-width: 42px; padding: 4px 7px; border: 1px solid var(--rr-border); border-radius: 5px; background: #fff; color: #526377; font-size: 0.63rem; font-weight: 900; }
.inspection-response button.pass.active { background: #15803d; border-color: #15803d; color: #fff; }
.inspection-response button.fail.active { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.inspection-response button.na.active { background: #475569; border-color: #475569; color: #fff; }
.recall-campaign { border-left: 4px solid #dc2626; }
.location-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 800; }
.location-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--zone-color, #64748b); }
.workspace-media-upload { display: grid; grid-template-columns: minmax(210px, 1.25fr) minmax(130px, .55fr) minmax(190px, 1fr) auto auto; gap: 9px; align-items: end; padding: 12px; border-bottom: 1px solid var(--rr-border); background: #f8fafc; }
.workspace-proof-toggle { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 4px; color: #475569; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.workspace-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; padding: 12px; }
.workspace-media-card { min-width: 0; overflow: hidden; border: 1px solid var(--rr-border); border-radius: 6px; background: #fff; }
.workspace-media-preview { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #e8eef4; color: #b91c1c; text-decoration: none; }
.workspace-media-preview img { width: 100%; height: 100%; object-fit: cover; }
.workspace-media-document { display: grid; place-items: center; gap: 4px; font-size: .72rem; font-weight: 900; }
.workspace-media-document i { font-size: 2.2rem; }
.workspace-media-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 8px; }
.workspace-media-meta > div { min-width: 0; display: grid; gap: 2px; }
.workspace-media-meta strong { color: #0f172a; font-size: .68rem; text-transform: uppercase; }
.workspace-media-meta span { overflow: hidden; color: #64748b; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.workspace-media-delete { width: 30px; height: 30px; flex: 0 0 30px; border: 0; border-radius: 4px; background: transparent; color: #94a3b8; }
.workspace-media-delete:hover { background: #fee2e2; color: #b91c1c; }
.workspace-media-tools { display: inline-flex; align-items: center; gap: 3px; }
.workspace-media-ai { width: 30px; height: 30px; flex: 0 0 30px; border: 0; border-radius: 4px; background: #e0f2fe; color: #0369a1; }
.workspace-media-ai:hover { background: #bae6fd; color: #075985; }
.walkaround-progress { display: grid; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--rr-border); background: #f8fafc; }
.walkaround-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; color: #475569; font-size: .68rem; text-transform: uppercase; }
.walkaround-checks { display: flex; flex-wrap: wrap; gap: 5px; }
.walkaround-check { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; color: #64748b; font-size: .62rem; font-weight: 800; }
.walkaround-check.complete { border-color: #86efac; background: #dcfce7; color: #166534; }
.ai-review-notice { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #bae6fd; background: #f0f9ff; color: #075985; font-size: .68rem; line-height: 1.4; }
.ai-photo-review { padding: 9px; border-top: 1px solid var(--rr-border); background: #fffbeb; }
.ai-photo-review.accepted { background: #f0fdf4; }
.ai-photo-review.dismissed { background: #f8fafc; opacity: .72; }
.ai-photo-review-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #0f172a; font-size: .67rem; text-transform: uppercase; }
.ai-photo-review p { margin: 6px 0; color: #334155; font-size: .68rem; line-height: 1.4; }
.ai-photo-review ul { display: grid; gap: 7px; margin: 7px 0; padding: 0; list-style: none; }
.ai-photo-review li { color: #334155; font-size: .66rem; line-height: 1.35; }
.ai-photo-review li small { display: block; margin-top: 2px; color: #64748b; }
.ai-finding-severity { display: inline-block; margin-right: 4px; padding: 2px 4px; border-radius: 3px; background: #e2e8f0; color: #475569; font-size: .52rem; font-weight: 900; text-transform: uppercase; }
.ai-finding-severity.medium { background: #fef3c7; color: #92400e; }
.ai-finding-severity.high { background: #fee2e2; color: #991b1b; }
.ai-review-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.ai-review-actions .btn { font-size: .62rem; font-weight: 800; }
.ai-no-findings { color: #64748b; font-size: .66rem; }
.assistant-prompts { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--rr-border); }
.assistant-prompts button { border: 1px solid #bae6fd; border-radius: 4px; background: #f0f9ff; color: #075985; padding: 6px 9px; font-size: .67rem; font-weight: 800; }
.assistant-prompts button:hover { background: #e0f2fe; }
.assistant-history { max-height: 360px; overflow-y: auto; padding: 12px; background: #f8fafc; }
.assistant-exchange { display: grid; gap: 6px; margin-bottom: 12px; }
.assistant-question, .assistant-answer { max-width: 86%; padding: 9px 10px; border-radius: 6px; font-size: .73rem; line-height: 1.45; }
.assistant-question { justify-self: end; background: #075985; color: #fff; }
.assistant-answer { border: 1px solid var(--rr-border); background: #fff; color: #1e293b; }
.assistant-question span, .assistant-answer > span { display: block; margin-bottom: 3px; font-size: .56rem; font-weight: 900; text-transform: uppercase; opacity: .75; }
.assistant-compose { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 7px; align-items: end; padding: 10px 12px; border-top: 1px solid var(--rr-border); }
.assistant-compose .btn { width: 42px; height: 42px; padding: 0; }
.proof-published { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; border-bottom: 1px solid #86efac; background: #f0fdf4; }
.proof-published > div:first-child { display: grid; grid-template-columns: auto 1fr; gap: 2px 7px; align-items: center; }
.proof-published small { grid-column: 2; color: #64748b; font-size: .64rem; }
.proof-share-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.proof-builder { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; padding: 14px; }
.proof-fields { display: grid; gap: 7px; }
.proof-fields > label { color: #526377; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.proof-options { display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 8px 0; }
.proof-options label { display: inline-flex; align-items: center; gap: 5px; color: #334155; font-size: .7rem; font-weight: 800; }
.proof-builder-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.proof-preview { align-self: start; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px; border: 1px solid var(--rr-border); background: #f8fafc; text-align: center; }
.proof-preview > strong { margin-top: 6px; color: #0f172a; font-size: .78rem; }
.proof-preview > span { color: #334155; font-size: .7rem; font-weight: 800; }
.proof-preview > small { margin-top: 4px; color: #64748b; font-size: .62rem; }
.proof-qr { width: 166px; min-height: 166px; display: grid; place-items: center; padding: 7px; border: 1px solid #cbd5e1; background: #fff; }
.proof-qr:empty::before { content: "QR"; color: #cbd5e1; font-size: 2rem; font-weight: 900; }
.proof-qr img, .proof-qr canvas { max-width: 100%; height: auto !important; }
.vendor-assignment-row { background: #f8fafc; }
.repair-line-builder-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 5px; color: #526377; font-size: .64rem; font-weight: 900; text-transform: uppercase; }
.repair-line-builder { display: grid; gap: 6px; margin-bottom: 9px; }
.repair-line-edit-row { display: grid; grid-template-columns: minmax(150px, 1fr) 100px 120px 64px 88px 34px; gap: 6px; align-items: center; }
.repair-line-edit-row .form-control, .repair-line-edit-row .form-select { min-width: 0; font-size: .72rem; }
.repair-line-remove { width: 32px; height: 32px; border: 0; border-radius: 4px; background: #f1f5f9; color: #64748b; }
.repair-line-remove:hover { background: #fee2e2; color: #b91c1c; }
.repair-request-total { color: #0f172a; font-size: .82rem; font-weight: 900; white-space: nowrap; }
.repair-line-list { display: grid; gap: 5px; margin-top: 8px; }
.repair-line-display { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 8px; border: 1px solid var(--rr-border); border-radius: 5px; background: #f8fafc; }
.repair-line-display-title { color: #0f172a; font-size: .72rem; font-weight: 800; }
.repair-line-display-meta { margin-top: 2px; color: #64748b; font-size: .64rem; }
.repair-line-display-actions { display: inline-flex; align-items: center; gap: 4px; }
.ops-kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--rr-border); background: #f8fafc; }
.ops-kpi { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 12px; border-right: 1px solid var(--rr-border); }
.ops-kpi:last-child { border-right: 0; }
.ops-kpi i { width: 18px; color: #0284c7; text-align: center; }
.ops-kpi div { min-width: 0; display: grid; gap: 1px; }
.ops-kpi span { color: #64748b; font-size: .58rem; font-weight: 900; text-transform: uppercase; }
.ops-kpi strong { overflow: hidden; color: #0f172a; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.ops-trend { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 8px 14px; border-bottom: 1px solid var(--rr-border); }
.ops-trend:empty { display: none; }
.ops-trend-label { color: #475569; font-size: .64rem; font-weight: 900; text-transform: uppercase; }
.ops-trend-cells { display: flex; align-items: end; gap: 5px; min-width: 0; height: 52px; overflow-x: auto; }
.ops-trend-cell { width: 28px; height: 52px; flex: 0 0 28px; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 2px; }
.ops-trend-cell span { width: 12px; max-height: 38px; border-radius: 2px 2px 0 0; background: #0ea5e9; }
.ops-trend-cell small { color: #94a3b8; font-size: .48rem; }
.ops-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 8px 12px 0; border-bottom: 1px solid var(--rr-border); }
.ops-tab { min-height: 36px; padding: 7px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #64748b; font-size: .7rem; font-weight: 900; white-space: nowrap; }
.ops-tab.active { border-bottom-color: #0ea5e9; color: #075985; }
.ops-body { min-height: 360px; max-height: 54vh; overflow: auto; }
.ops-table { font-size: .74rem; }
.ops-table thead th { position: sticky; top: 0; z-index: 1; padding: 9px; background: #eef3f7; color: #526377; font-size: .58rem; text-transform: uppercase; }
.ops-table td { padding: 9px; vertical-align: middle; }
.ops-muted { color: #64748b; font-size: .64rem; }
.ops-rank { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 4px; background: #e0f2fe; color: #0369a1; font-weight: 900; }
.ops-score { min-width: 34px; display: inline-grid; place-items: center; padding: 4px 6px; border-radius: 4px; background: #dcfce7; color: #166534; font-weight: 900; }
.ops-score.watch { background: #fef3c7; color: #92400e; }
.ops-score.critical { background: #fee2e2; color: #991b1b; }
.ops-empty { display: grid; place-items: center; min-height: 260px; padding: 28px; color: #64748b; text-align: center; font-size: .8rem; }
.ops-list { display: grid; }
.ops-list-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--rr-border); font-size: .75rem; }
.ops-severity { min-width: 58px; padding: 4px 6px; border-radius: 4px; background: #e2e8f0; color: #475569; font-size: .56rem; font-weight: 900; text-align: center; text-transform: uppercase; }
.ops-severity.warning { background: #fef3c7; color: #92400e; }
.ops-severity.critical { background: #fee2e2; color: #991b1b; }
.ops-report-schedule { display: grid; grid-template-columns: minmax(180px, 1fr) auto 120px minmax(240px, 1.5fr) auto auto; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--rr-border); background: #f8fafc; }
.ops-report-schedule > div:first-child { display: grid; gap: 2px; font-size: .75rem; }
.ops-report-toggle { display: inline-flex; align-items: center; gap: 6px; color: #475569; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.ops-adapters { border-bottom: 1px solid var(--rr-border); }
.ops-section-head { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; background: #eef3f7; }
.ops-section-head > div { display: grid; gap: 1px; }
.ops-section-head strong { color: #0f172a; font-size: .72rem; text-transform: uppercase; }
.ops-section-head span { color: #64748b; font-size: .63rem; }
.ops-adapter-row { display: grid; grid-template-columns: 28px minmax(170px, .9fr) minmax(240px, 1.5fr) auto; gap: 9px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--rr-border); }
.ops-adapter-row > div { min-width: 0; display: grid; gap: 1px; }
.ops-adapter-row > div strong { color: #0f172a; font-size: .72rem; }
.ops-adapter-row > div span { overflow: hidden; color: #64748b; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.ops-adapter-row code { overflow: hidden; color: #475569; font-size: .62rem; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.ops-health { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px; background: #dcfce7; color: #166534; font-size: .65rem; }
.ops-health.warning { background: #fef3c7; color: #92400e; }
.connection-state { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 5px; background: rgba(255,255,255,.1); color: #fff; font-size: .65rem; font-weight: 900; white-space: nowrap; }
.connection-state.is-offline { border-color: #fbbf24; background: #fef3c7; color: #78350f; }
.scanner-camera { position: relative; min-height: 270px; display: grid; place-items: center; overflow: hidden; background: #08111d; color: #fff; }
.scanner-camera video { width: 100%; height: 300px; display: block; object-fit: cover; opacity: .25; }
.scanner-camera.is-live video { opacity: 1; }
.scanner-frame { position: absolute; inset: 50% auto auto 50%; width: min(76%, 320px); aspect-ratio: 1.55; border: 3px solid #fff; border-radius: 6px; box-shadow: 0 0 0 999px rgba(3,12,24,.34); transform: translate(-50%, -50%); pointer-events: none; }
.scanner-frame::before, .scanner-frame::after { content: ""; position: absolute; left: 12%; right: 12%; height: 2px; background: #22d3ee; box-shadow: 0 0 8px rgba(34,211,238,.9); }
.scanner-frame::before { top: 33%; }
.scanner-frame::after { bottom: 33%; }
.scanner-status { position: absolute; right: 12px; bottom: 10px; left: 12px; z-index: 2; padding: 7px 9px; border-radius: 5px; background: rgba(3,12,24,.84); color: #fff; font-size: .72rem; font-weight: 800; text-align: center; }
.scanner-manual { padding: 15px; border-top: 1px solid var(--rr-border); background: #fff; }
.scanner-manual > label:first-child { display: block; margin-bottom: 5px; color: #526377; font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.qr-sheet { display: flex; flex-direction: column; align-items: center; padding: 20px; text-align: center; }
#vehicle-qr-code { width: 236px; min-height: 236px; display: grid; place-items: center; padding: 8px; border: 1px solid #c8d6e5; background: #fff; }
#vehicle-qr-code img, #vehicle-qr-code canvas { max-width: 100%; height: auto !important; }
.qr-stock { margin-top: 12px; color: #071a2d; font-size: 1.15rem; font-weight: 1000; }
.qr-vin { color: #526377; font: 700 .68rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
#m-note-voice-btn.is-working { border-color: #dc2626; background: #fee2e2; color: #b91c1c; animation: voicePulse 1s ease-in-out infinite; }
@keyframes voicePulse { 50% { box-shadow: 0 0 0 5px rgba(220,38,38,.13); } }
html[data-theme="dark"] .vehicle-workspace, html[data-theme="dark"] .workspace-body { background: #1e2024; }
html[data-theme="dark"] .workspace-tabs, html[data-theme="dark"] .workspace-list, html[data-theme="dark"] .workspace-row, html[data-theme="dark"] .inspection-row, html[data-theme="dark"] .workspace-kpi { background: #2b2d31; color: #f2f3f5; }
html[data-theme="dark"] .workspace-title, html[data-theme="dark"] .workspace-row-title, html[data-theme="dark"] .inspection-prompt, html[data-theme="dark"] .workspace-kpi-value { color: #f2f3f5; }
html[data-theme="dark"] .workspace-media-upload, html[data-theme="dark"] .workspace-media-card, html[data-theme="dark"] .vendor-assignment-row { background: #2b2d31; color: #f2f3f5; }
html[data-theme="dark"] .walkaround-progress, html[data-theme="dark"] .assistant-history { background: #232428; }
html[data-theme="dark"] .assistant-answer { background: #2b2d31; color: #f8fafc; }
html[data-theme="dark"] .proof-preview { background: #232428; }
html[data-theme="dark"] .proof-preview > strong { color: #f8fafc; }
html[data-theme="dark"] .workspace-media-meta strong { color: #f8fafc; }
html[data-theme="dark"] .repair-line-display { background: #24262a; }
html[data-theme="dark"] .repair-line-display-title, html[data-theme="dark"] .repair-request-total { color: #f8fafc; }
html[data-theme="dark"] .ops-kpis, html[data-theme="dark"] .ops-table thead th { background: #232428; }
html[data-theme="dark"] .ops-kpi strong { color: #f8fafc; }
html[data-theme="dark"] .ops-report-schedule { background: #232428; }
html[data-theme="dark"] .ops-section-head { background: #232428; }
html[data-theme="dark"] .ops-section-head strong, html[data-theme="dark"] .ops-adapter-row > div strong { color: #f8fafc; }
@media (max-width: 768px) {
    .workspace-body { padding: 10px; }
    .workspace-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workspace-field, .workspace-field.wide, .workspace-field.narrow { grid-column: span 1; }
    .workspace-field.wide { grid-column: 1 / -1; }
    .workspace-form-action { grid-column: 1 / -1; }
    .workspace-form-action .btn { width: 100%; }
    .workspace-row, .inspection-row { grid-template-columns: 1fr; }
    .workspace-row-actions { justify-content: space-between; }
    .workspace-row-actions .form-select { flex: 1; width: auto; }
    .workspace-media-upload { grid-template-columns: 1fr 1fr; }
    .workspace-media-upload .workspace-field:first-child, .workspace-media-upload .workspace-field.wide { grid-column: 1 / -1; }
    .workspace-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 9px; }
    .repair-line-edit-row { grid-template-columns: minmax(0, 1fr) 92px 110px 62px 82px 34px; }
    .ops-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ops-kpi { border-bottom: 1px solid var(--rr-border); }
    .ops-report-schedule { grid-template-columns: 1fr auto 120px; }
    .ops-report-schedule #ops-report-recipients { grid-column: 1 / -1; }
    .ops-adapter-row { grid-template-columns: 28px minmax(150px, .8fr) minmax(200px, 1.2fr) auto; }
    .proof-builder { grid-template-columns: 1fr; }
    .proof-preview { width: 100%; }
}
@media (max-width: 430px) {
    .workspace-kpis { grid-template-columns: 1fr; }
    .inspection-response { width: 100%; }
    .inspection-response button { flex: 1; }
    .workspace-media-grid { grid-template-columns: 1fr; }
    .workspace-proof-toggle { white-space: normal; }
    .repair-line-edit-row { grid-template-columns: 1fr 1fr 34px; }
    .repair-line-edit-row .repair-line-description { grid-column: 1 / -1; }
    .repair-line-edit-row .repair-line-vendor { grid-column: 1 / 2; }
    .repair-line-edit-row .repair-line-category { grid-column: 2 / 3; }
    .repair-line-edit-row .repair-line-remove { grid-column: 3 / 4; grid-row: 2; }
    .repair-line-display { grid-template-columns: 1fr; }
    .ops-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ops-trend { align-items: flex-start; flex-direction: column; }
    .ops-list-row { grid-template-columns: auto 1fr; }
    .ops-list-row .btn { grid-column: 1 / -1; }
    .ops-report-schedule { grid-template-columns: 1fr 1fr; }
    .ops-report-schedule > div:first-child, .ops-report-schedule #ops-report-recipients { grid-column: 1 / -1; }
    .ops-adapter-row { grid-template-columns: 28px minmax(0, 1fr); }
    .ops-adapter-row .form-control, .ops-adapter-row code { grid-column: 1 / -1; text-align: left; }
    .ops-adapter-row .btn { grid-column: 1 / -1; }
    .scanner-camera video { height: 260px; }
    .proof-published { align-items: stretch; flex-direction: column; }
    .proof-share-actions .btn { flex: 1; }
}
@media print {
    body > * { display: none !important; }
    #vehicleQrModal { position: static !important; display: block !important; padding: 0 !important; overflow: visible !important; }
    #vehicleQrModal .modal-dialog { width: 3in; max-width: 3in; margin: 0 !important; }
    #vehicleQrModal .modal-content { border: 0 !important; box-shadow: none !important; }
    #vehicleQrModal .modal-header, .qr-print-hide, .modal-backdrop { display: none !important; }
    #vehicleQrModal .qr-sheet { width: 3in; min-height: 3in; padding: .15in; box-sizing: border-box; }
}
