:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #101828; background: #f6f7f9; }
html, body, #app { min-height: 100%; margin: 0; }
body { background: #f6f7f9; }
button { font: inherit; }
.operator-shell { min-height: 100vh; }
.operator-header { position: sticky; top: 0; z-index: 20; height: 76px; padding: max(12px, env(safe-area-inset-top)) 20px 12px; background: #1d2939; color: #fff; display: flex; align-items: center; justify-content: space-between; box-sizing: content-box; }
.operator-brand { display: flex; align-items: center; gap: 12px; }
.operator-brand img { width: 46px; height: 32px; object-fit: contain; }
.operator-brand div { display: flex; flex-direction: column; line-height: 1.1; }
.operator-brand strong { font-size: 1.1rem; }
.operator-brand span { font-size: .72rem; color: #d6c777; margin-top: 5px; letter-spacing: .12em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.install-button { width: 42px; height: 42px; padding: 0; border: 1px solid #d0d5dd; border-radius: 10px; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.install-button .mud-icon-root { font-size: 23px; }
.connection-dot { width: 10px; height: 10px; border-radius: 50%; background: #f79009; box-shadow: 0 0 0 4px rgba(247,144,9,.17); }
.connection-dot.online { background: #12b76a; box-shadow: 0 0 0 4px rgba(18,183,106,.17); }
.language-button { border: 1px solid #d0d5dd; background: transparent; color: white; border-radius: 10px; padding: 9px 12px; }
.operator-main { width: min(100%, 760px); margin: 0 auto; padding: 20px 16px 28px; box-sizing: border-box; }
.operator-main.with-nav { padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
.page-stack { display: flex; flex-direction: column; gap: 16px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.page-heading.compact { justify-content: flex-start; }
.page-heading h1 { margin: 2px 0 0; font-size: clamp(1.65rem, 7vw, 2.2rem); line-height: 1.08; }
.page-heading h1:focus, .login-card h1:focus { outline: none; }
.eyebrow { margin: 0; color: #6f642d; font-weight: 800; font-size: .72rem; letter-spacing: .14em; }
.icon-action { width: 46px; height: 46px; flex: 0 0 46px; border: 1px solid #d0d5dd; border-radius: 14px; background: #fff; color: #344054; display: grid; place-items: center; }
.surface { background: #fff; border: 1px solid #eaecf0; border-radius: 18px; box-shadow: 0 6px 18px rgba(16,24,40,.055); }
.queue-summary { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.queue-summary div { display: flex; align-items: baseline; gap: 9px; }
.queue-summary strong { font-size: 1.8rem; color: #6f642d; }
.queue-summary span { color: #475467; }
.live-label { flex: 0 0 auto; white-space: nowrap; font-weight: 800; font-size: .72rem; display: flex; gap: 7px; align-items: center; }
.live-label i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f79009; }
.live-label i.online { background: #12b76a; }
.order-card { width: 100%; min-width: 0; padding: 17px; text-align: left; color: inherit; cursor: pointer; overflow: hidden; box-sizing: border-box; }
button.order-card { appearance: none; display: block; }
.order-card > * { width: 100%; min-width: 0; box-sizing: border-box; }
.order-card-top, .work-card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.room-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 7px 10px; border-radius: 10px; background: #f0eee5; color: #554c22; font-weight: 800; }
.status-badge { border-radius: 999px; padding: 6px 10px; font-size: .74rem; font-weight: 800; }
.status-badge.ready { background: #eff8ff; color: #175cd3; }
.status-badge.picked { background: #fff6ed; color: #b54708; }
.status-badge.processing { background: #f4f3ff; color: #5925dc; }
.status-badge.complete { background: #ecfdf3; color: #067647; }
.order-card h2, .work-card h2 { display: block; font-size: .95rem; line-height: 1.35; margin: 14px 0 10px; overflow-wrap: anywhere; }
.order-meta { display: grid; grid-template-columns: 1fr; gap: 8px; color: #475467; font-size: .86rem; }
.order-meta span { display: flex; gap: 6px; align-items: center; min-width: 0; }
.order-meta .mud-icon-root { font-size: 18px; }
.order-card-footer { border-top: 1px solid #eaecf0; margin-top: 14px; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; color: #667085; font-size: .8rem; }
.order-card-footer strong { color: #6f642d; display: flex; align-items: center; gap: 4px; }
.order-card-footer .mud-icon-root { font-size: 17px; }
.skeleton span { display: block; height: 14px; margin: 10px 0; border-radius: 6px; background: linear-gradient(90deg,#f2f4f7,#e4e7ec,#f2f4f7); background-size: 200% 100%; animation: pulse 1.2s infinite; }
.skeleton span:nth-child(2) { width: 75%; }.skeleton span:nth-child(3) { width: 50%; }
@keyframes pulse { to { background-position: -200% 0; } }
.empty-state { padding: 42px 24px; text-align: center; color: #475467; }
.empty-state .mud-icon-root { font-size: 52px; color: #94884c; }.empty-state h2 { color: #101828; margin-bottom: 6px; }.empty-state p { margin: 0; }
.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 760px); min-height: 66px; padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.98); border-top: 1px solid #d0d5dd; display: grid; grid-template-columns: repeat(4,1fr); box-shadow: 0 -6px 24px rgba(16,24,40,.09); }
.bottom-nav a { color: #667085; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .72rem; font-weight: 650; min-height: 66px; }
.bottom-nav a.active { color: #6f642d; background: #f8f7f2; }.bottom-nav .mud-icon-root { font-size: 24px; }
.nav-icon-with-badge { position: relative; display: inline-flex; }
.nav-count-badge { position: absolute; top: -8px; right: -12px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border: 2px solid #fff; border-radius: 999px; background: #d92d20; color: #fff; font-size: .63rem; font-weight: 800; line-height: 13px; text-align: center; }
.intake-identity { padding: 17px; display: flex; gap: 14px; align-items: center; }
.identity-room { min-width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; background: #1d2939; color: #fff; font-weight: 900; font-size: 1.1rem; }
.intake-identity h2 { margin: 4px 0; font-size: .95rem; overflow-wrap: anywhere; }.intake-identity p,.intake-identity span { margin: 0; color: #667085; font-size: .82rem; }
.order-items-compact { padding: 17px; }.order-items-compact h2,.inspection-panel h2,.detail-panel h2 { font-size: 1.05rem; margin: 0; }
.order-items-compact > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #eaecf0; }.order-items-compact > div:last-child { border: 0; }
.order-items-compact span { display: flex; flex-direction: column; }.order-items-compact small { color: #667085; margin-top: 3px; }.order-items-compact b { font-size: 1.1rem; }
.inspection-panel,.detail-panel { padding: 17px; }
.step-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }.step-title > span { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #6f642d; color: #fff; display: grid; place-items: center; font-weight: 800; }.step-title p { margin: 4px 0 0; color: #667085; font-size: .84rem; }
.mode-grid { display: grid; gap: 10px; }.mode-card { min-height: 76px; padding: 12px; border: 1px solid #d0d5dd; border-radius: 14px; background: #fff; color: #344054; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; text-align: left; align-items: center; }.mode-card .mud-icon-root { grid-row: 1/3; color: #6f642d; }.mode-card strong { color: #101828; }.mode-card span { font-size: .78rem; color: #667085; }.mode-card.selected { border: 2px solid #6f642d; background: #f8f7f2; }
.camera-input { position: relative; min-height: 54px; padding: 0 15px; border: 1px dashed #6f642d; border-radius: 13px; color: #554c22; display: flex; align-items: center; gap: 10px; font-weight: 750; overflow: hidden; }.camera-input.small { margin-top: 10px; min-height: 46px; font-size: .85rem; }.camera-input input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.evidence-photo-selection { display: flex; align-items: center; gap: 12px; margin-top: 12px; }.evidence-photo-selection img { display: block; width: 88px; height: 88px; flex: 0 0 88px; border: 1px solid #eaecf0; border-radius: 12px; object-fit: cover; background: #f2f4f7; }.evidence-photo-selection.compact img { width: 76px; height: 76px; flex-basis: 76px; }
.inspection-line { border: 1px solid #eaecf0; border-radius: 14px; padding: 14px; margin-bottom: 12px; }.inspection-line.mismatch { border-color: #fdb022; background: #fffcf5; }.inspection-line-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }.inspection-line-title > span:first-child { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }.inspection-line-title small { color: #667085; margin-top: 3px; }.inspection-result { flex: 0 0 auto; min-width: 72px; height: 28px; padding: 0 12px; box-sizing: border-box; border: 1px solid transparent; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 750; line-height: 1; text-align: center; white-space: nowrap; }.inspection-result.match { border-color: #abefc6; background: #ecfdf3; color: #067647; }.inspection-result.different { border-color: #fedf89; background: #fffaeb; color: #b54708; }
.sticky-action { position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 10; padding: 10px; margin: 0 -8px; border-radius: 16px; background: rgba(246,247,249,.95); backdrop-filter: blur(8px); }.confirm-box { background: #fff; border: 1px solid #d6c777; border-radius: 15px; padding: 14px; box-shadow: 0 8px 24px rgba(16,24,40,.12); }.confirm-box p { margin: 0 0 12px; }.confirm-box > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.confirm-cancel { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; color: #101828; cursor: pointer; }.confirm-cancel:focus-visible { outline: 3px solid rgba(111,100,45,.28); outline-offset: 2px; }
.segmented-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.segmented-summary div { background: #fff; border: 1px solid #eaecf0; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; }.segmented-summary strong { font-size: 1.7rem; color: #6f642d; }.segmented-summary span { color: #667085; font-size: .8rem; }
.processing-tools { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: stretch; }
.processing-search { min-width: 0; min-height: 50px; padding: 0 15px; border: 1px solid #d0d5dd; border-radius: 14px; background: #fff; display: flex; align-items: center; gap: 10px; box-sizing: border-box; }
.processing-search .mud-icon-root { flex: 0 0 auto; color: #475467; }
.processing-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #101828; font: inherit; }
.processing-search input::placeholder { color: #98a2b3; }
.bulk-toggle { min-height: 50px; padding: 0 15px; border: 1px solid #6f642d; border-radius: 14px; background: #fff; color: #554c22; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.bulk-toggle.active { background: #f8f7f2; }
.bulk-toggle .mud-icon-root { font-size: 20px; }
.bulk-toolbar { padding: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bulk-stage-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: #f2f4f7; }
.bulk-stage-tabs button { min-height: 38px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: #475467; cursor: pointer; font-weight: 700; }
.bulk-stage-tabs button span { display: inline-grid; min-width: 20px; height: 20px; margin-left: 5px; padding: 0 5px; border-radius: 999px; place-items: center; background: #fff; font-size: .72rem; box-sizing: border-box; }
.bulk-stage-tabs button.active { background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.bulk-stage-tabs button.active.pickup { color: #b54708; }
.bulk-stage-tabs button.active.processing { color: #5925dc; }
.select-visible { min-height: 40px; padding: 0 8px; border: 0; background: transparent; color: #344054; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 700; }
.select-visible:disabled { opacity: .45; cursor: default; }
.select-visible .mud-icon-root { color: #6f642d; font-size: 22px; }
.empty-state.compact { padding: 26px 20px; }
.empty-state.compact .mud-icon-root { font-size: 38px; }
.work-list { display: flex; flex-direction: column; gap: 16px; }
.work-card { padding: 17px; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.work-card p { color: #667085; }
.work-card.selected { border-color: #a99b50; background: #fffef9; box-shadow: 0 0 0 2px rgba(111,100,45,.12), 0 6px 18px rgba(16,24,40,.055); }
.work-card-selector { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 12px; text-align: left; cursor: pointer; }
.bulk-checkbox { width: 26px; height: 26px; margin-top: 4px; border: 2px solid #98a2b3; border-radius: 8px; background: #fff; display: grid; place-items: center; box-sizing: border-box; }
.selected .bulk-checkbox { border-color: #6f642d; background: #6f642d; color: #fff; }
.bulk-checkbox .mud-icon-root { font-size: 18px; }
.work-card-content { min-width: 0; display: flex; flex-direction: column; }
.work-order-number { margin: 13px 0 7px; font-size: .95rem; line-height: 1.35; overflow-wrap: anywhere; }
.work-order-meta { color: #667085; font-size: .88rem; }
.inline-confirm { margin-top: 14px; padding: 14px; border-radius: 13px; background: #fffcf5; border: 1px solid #fedf89; }.inline-confirm p { color: #101828; margin-top: 0; }.inline-confirm div { display: flex; justify-content: flex-end; }
.delivery-form { display: grid; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eaecf0; }
.delivery-form .camera-input { margin-top: 0; }
.delivery-actions { display: flex; justify-content: flex-end; gap: 8px; }
.bulk-action-dock { position: sticky; z-index: 12; bottom: calc(72px + env(safe-area-inset-bottom)); margin: 0 -6px; padding: 12px 14px; border: 1px solid #d6c777; border-radius: 17px; background: rgba(255,255,255,.98); box-shadow: 0 12px 32px rgba(16,24,40,.2); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.bulk-selection-summary, .bulk-confirm-copy { min-width: 0; display: flex; flex-direction: column; }
.bulk-selection-summary strong { color: #6f642d; font-size: 1.3rem; }
.bulk-selection-summary span, .bulk-confirm-copy span { color: #667085; font-size: .76rem; }
.bulk-confirm-copy strong { margin-bottom: 3px; }
.bulk-action-buttons { display: flex; align-items: center; gap: 8px; }
.bulk-primary, .bulk-cancel { min-height: 44px; border-radius: 12px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font-weight: 750; white-space: nowrap; }
.bulk-primary { border: 1px solid #6f642d; background: #6f642d; color: #fff; box-shadow: 0 3px 8px rgba(16,24,40,.16); }
.bulk-cancel { border: 0; background: transparent; color: #344054; }
.bulk-primary:disabled, .bulk-cancel:disabled { opacity: .55; cursor: wait; }
.account-card { padding: 28px 18px; text-align: center; }.account-avatar { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #1d2939; color: #fff; font-size: 1.4rem; font-weight: 800; }.account-card h2 { margin: 0 0 6px; }.account-card p { margin: 4px; color: #667085; }
.login-page { min-height: 0; display: block; }.login-card { width: min(100%, 470px); margin: 0 auto; box-sizing: border-box; background: #fff; border: 1px solid #eaecf0; border-radius: 22px; padding: 24px 22px; box-shadow: 0 10px 30px rgba(16,24,40,.08); }.login-brand { display: flex; align-items: center; gap: 16px; }.login-brand img { width: 64px; }.login-brand div { display: flex; flex-direction: column; }.login-brand span { color: #6f642d; font-size: .78rem; font-weight: 900; letter-spacing: .14em; }.login-brand strong { font-size: 1.15rem; margin-top: 4px; }.section-divider { height: 1px; background: #eaecf0; margin: 20px 0; }.login-card h1 { margin: 0; font-size: 2rem; }.muted { color: #667085; }
.form-field { display: block; position: relative; padding-top: 8px; }
.form-field span { position: absolute; z-index: 1; left: 13px; top: 0; padding: 0 5px; background: #fff; color: #475467; font-size: .78rem; }
.form-field input { width: 100%; height: 56px; box-sizing: border-box; border: 1px solid #d0d5dd; border-radius: 14px; padding: 12px 16px; color: #101828; background: #fff; font: inherit; outline: none; }
.form-field input:focus { border: 2px solid #6f642d; box-shadow: 0 0 0 3px rgba(111,100,45,.1); }
.loading-shell { min-height: 100vh; display: grid; place-items: center; align-content: center; color: #475467; }.loading-mark { width: 42px; height: 42px; border: 4px solid #e4e7ec; border-top-color: #6f642d; border-radius: 50%; animation: spin .8s linear infinite; }@keyframes spin{to{transform:rotate(360deg)}}
#blazor-error-ui { display: none; position: fixed; inset: auto 0 0; z-index: 999; background: #fef3f2; color: #b42318; padding: 14px; }
@media (max-width: 560px) {
    .processing-tools { grid-template-columns: 1fr; }
    .bulk-toolbar { align-items: stretch; }
    .bulk-stage-tabs { width: 100%; }
    .bulk-stage-tabs button { flex: 1 1 0; }
    .select-visible { justify-content: flex-start; }
    .bulk-action-dock { align-items: stretch; flex-direction: column; }
    .bulk-action-dock > .bulk-primary { width: 100%; }
    .bulk-action-buttons { width: 100%; justify-content: flex-end; }
    .bulk-action-buttons .bulk-primary { flex: 1 1 auto; }
}
@media (min-width: 700px) { .operator-main { padding-top: 28px; }.login-page { min-height: calc(100vh - 156px); display: grid; place-items: center; }.login-card { padding: 28px 22px; }.login-brand img { width: 74px; }.section-divider { margin: 24px 0; }.mode-grid { grid-template-columns: repeat(3,1fr); }.mode-card { grid-template-columns: 1fr; grid-template-rows: 30px auto auto; text-align: center; }.mode-card .mud-icon-root { grid-row: auto; justify-self: center; }.order-meta { grid-template-columns: 170px 1fr; } }
