.modal-backdrop{position:fixed;inset:0;background:#1020179c;display:grid;place-items:center;z-index:20;padding:18px}.modal{background:#fff;border-radius:15px;padding:25px;width:min(100%,420px);box-shadow:0 25px 70px #0004}.modal h2{margin:0 0 18px;font-size:20px}.modal .actions{justify-content:flex-end;margin-top:20px}.confirm-dialog p{margin:0;color:var(--ops-muted);line-height:1.65;overflow-wrap:anywhere}
.dashboard-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.dashboard-tile{text-align:left;cursor:pointer}.dashboard-tile small{color:#5f7b66}.dashboard-tile:hover{border-color:#81a58b;background:#fafdf9}.queue-row{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #e9ede7;padding:13px 0}.queue-row span{min-width:0}.queue-row strong{display:block;font-size:13px;overflow-wrap:anywhere}.queue-row small{display:block;color:#738278;margin-top:4px;overflow-wrap:anywhere}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px}.permission-pair{border:1px solid #e0e7dd;border-radius:9px;padding:11px;display:grid;gap:8px;font-size:12px}.permission-pair label,.check-row{display:flex;align-items:center;gap:7px;color:#526657}.permission-pair input,.check-row input{accent-color:#315f43}
:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#18251f;background:#f4f3ed;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:#335d4c}.shell{min-height:100vh}.top{background:#17231f;color:#f7f4e8;padding:15px 28px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 5px 22px #0c271a24}.brand{display:flex;align-items:center;gap:13px}.mark{height:38px;width:38px;background:#cbb785;color:#17231f;border-radius:10px;display:grid;place-items:center;font-weight:900;letter-spacing:-3px}.brand strong{display:block;font-size:18px;letter-spacing:.02em}.brand small{display:block;font-size:11px;color:#c8d3c9;letter-spacing:.12em}.top .right{display:flex;align-items:center;gap:10px}.pill{border:1px solid #e5ce7b;color:#f6dd8d;padding:6px 10px;border-radius:20px;font-size:11px;letter-spacing:.04em}.top button{border:1px solid #66746d;background:transparent;color:white;border-radius:9px;padding:8px 11px}.layout{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:calc(100vh - 69px)}aside{background:#e8ebe3;padding:26px 18px;border-right:1px solid #d9dfd5}aside .caption{font-size:11px;font-weight:800;color:#77887b;letter-spacing:.13em;margin:0 10px 15px}aside button{display:block;width:100%;border:0;background:transparent;text-align:left;color:#344a3f;padding:11px 13px;border-radius:10px;margin:3px 0;font-weight:600}aside button.active,aside button:hover{background:#d5dfd1}aside .side-note{font-size:12px;line-height:1.6;color:#687b6c;margin:30px 10px}main{padding:34px max(28px,calc((100vw - 1280px)/2));max-width:1500px;width:100%;margin:auto}.eyebrow{text-transform:uppercase;letter-spacing:.17em;font-size:11px;font-weight:800;color:#8a7747}.title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}.title-row h1{font-family:Georgia,"Songti SC",serif;font-weight:600;font-size:32px;margin:6px 0}.muted{color:#748279;font-size:13px}.button{border:0;background:#244a39;color:white;border-radius:10px;padding:10px 16px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px}.button:hover{background:#33694f}.button.secondary{background:#e5ebe3;color:#31513f}.button.warn{background:#f7e5d9;color:#a0532f}.button.light{background:#fff;color:#335140;border:1px solid #d5ddd3}.button.small{font-size:12px;padding:7px 10px;border-radius:7px}.button:disabled{background:#b9c2b9;color:#fff;cursor:not-allowed}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.stat,.panel,.order-card,.roll-card{background:#fff;border:1px solid #e0e3dc;border-radius:15px;box-shadow:0 3px 14px #1d35220a}.stat{padding:20px}.stat span{display:block;color:#77867b;font-size:12px}.stat strong{display:block;font-size:28px;margin-top:8px;font-family:Georgia,serif}.panel{padding:22px;margin-bottom:16px}.panel h2{font-size:18px;margin:0 0 15px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:30px 0 14px}.section-heading h2{font-size:17px;margin:0}.order-list{display:grid;gap:11px}.order-card{padding:18px;display:flex;align-items:center;justify-content:space-between;gap:18px}.order-card h3{margin:5px 0;font-size:17px}.order-card p{margin:0;color:#76867a;font-size:12px}.badge{display:inline-flex;align-items:center;background:#e8f0e8;color:#355c43;border-radius:6px;padding:5px 8px;font-size:11px;font-weight:700}.badge.amber{background:#fff2d9;color:#946824}.badge.red{background:#fce7e0;color:#9a4b37}.badge.gray{background:#eceeeb;color:#617167}.badge.purple{background:#eee7fa;color:#59437a}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.stack{display:grid;gap:12px}.split{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.roll-card{padding:18px;margin-bottom:13px}.roll-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.roll-head h3{margin:4px 0 9px;font-size:17px}.roll-head small{color:#819084}.meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.meta div{background:#f5f7f3;padding:10px;border-radius:8px;font-size:12px}.meta label{display:block;color:#859287;font-size:11px;margin-bottom:3px}.steps{display:flex;gap:6px;flex-wrap:wrap;margin:15px 0}.step{padding:6px 9px;border-radius:6px;background:#edf0ea;font-size:11px;color:#68766b}.step.done{background:#dcebdc;color:#2c6840}.field{display:grid;gap:6px;font-size:12px;font-weight:700;color:#5e7162}.field input,.field select,.field textarea{min-width:0;width:100%;border:1px solid #ced8cb;background:white;border-radius:8px;padding:10px 11px;color:#1d3327;outline:none}.field textarea{min-height:68px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#3b7852;box-shadow:0 0 0 3px #cce8d5}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.inline-form{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.inline-form .field{min-width:105px;flex:1}.divider{border:0;border-top:1px solid #e9ede7;margin:18px 0}.empty{padding:42px 20px;text-align:center;color:#738278}.notice{padding:12px 14px;border-radius:9px;background:#edf3e9;color:#375d43;font-size:12px;line-height:1.55;margin-bottom:15px}.notice.amber{background:#fff3df;color:#815d29}.notice.red{background:#fbeae4;color:#a65139}.timeline{display:grid;gap:10px}.event{border-left:2px solid #b6cab6;padding:3px 0 4px 11px;font-size:12px;color:#657567}.event strong{display:block;color:#345040}.event time{font-size:10px;color:#9da99f}.login-wrap{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}.login-art{background:#17251f;color:#f7f5e9;padding:9vw 7vw;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-art:after{content:"";position:absolute;width:440px;height:440px;border:1px solid #697b61;border-radius:50%;right:-130px;bottom:-160px;box-shadow:0 0 0 45px #ffffff08,0 0 0 90px #ffffff06,0 0 0 135px #ffffff04}.login-art .micro{letter-spacing:.22em;color:#dfcc93;font-weight:800;font-size:12px}.login-art h1{font-family:Georgia,"Songti SC",serif;font-size:clamp(40px,5vw,70px);font-weight:500;line-height:1.18;max-width:620px}.login-art p{color:#b8c7bd;line-height:1.8;max-width:500px}.login-box{padding:8vw;display:flex;align-items:center;justify-content:center}.login-box>div{width:min(100%,430px)}.login-box h2{font-size:29px;margin:10px 0}.login-box form{display:grid;gap:15px;margin:28px 0}.demo-accounts{border-top:1px solid #dbe1d8;padding-top:20px;color:#758276;font-size:12px;line-height:1.8}.toast{position:fixed;bottom:23px;right:23px;z-index:10;padding:13px 17px;border-radius:9px;background:#243d2f;color:#fff;box-shadow:0 12px 30px #1d2d2244;max-width:360px;font-size:13px}.toast.error{background:#a34437}.customer main{max-width:830px}.customer .layout{display:block}.customer aside{display:none}.customer .order-card{align-items:start}.delivery{background:#f6f8f4;border-radius:9px;padding:11px;margin-top:9px;font-size:12px}.finance-line{display:flex;justify-content:space-between;border-bottom:1px solid #e9ede7;padding:9px 0;font-size:13px}.finance-line strong{font-variant-numeric:tabular-nums}.actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}@media(max-width:900px){.layout{grid-template-columns:190px minmax(0,1fr)}main{padding:24px}.split{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.top{padding:12px 15px}.top .right span:not(.pill){display:none}.top .pill{font-size:9px}.layout{display:block}aside{display:flex;overflow:auto;padding:7px 12px;gap:5px;border-right:0;border-bottom:1px solid #d9dfd5}aside .caption,aside .side-note{display:none}aside button{width:auto;white-space:nowrap;margin:0;font-size:12px}main{padding:21px 14px 50px}.title-row{align-items:start}.title-row h1{font-size:26px}.grid{grid-template-columns:1fr 1fr;gap:9px}.stat{padding:13px}.stat strong{font-size:22px}.order-card{align-items:flex-start;flex-direction:column}.meta{grid-template-columns:1fr 1fr}.form-grid,.form-grid.three{grid-template-columns:1fr}.panel{padding:17px}.login-wrap{display:block}.login-art{min-height:260px;padding:27px}.login-art h1{font-size:34px;margin:32px 0 12px}.login-art p{display:none}.login-box{padding:25px}}

/* 处理店业务导航 */
.staff .layout{grid-template-columns:220px minmax(0,1fr);min-height:100vh}
.staff .workspace{min-width:0}
.staff .top{height:64px;background:#fff;color:#24392f;box-shadow:none;border-bottom:1px solid #e8eae4;padding:0 28px}
.staff .top .workspace-name{font-size:12px;font-weight:700}
.staff .top .right>span:not(.pill){font-size:12px;color:#53665b}
.staff .top .right button{color:#24513f;border-color:#d9e2da}
.staff .top .pill{color:#7a5d29;border-color:#eed8a1;background:#fff9e8}
.staff .shop-sidebar{background:#163d31;color:#edf6ee;border:0;position:sticky;top:0;height:100vh;min-height:0;display:flex;flex-direction:column;padding:20px 11px 0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-color:#6d9383 #163d31}
.side-brand{display:flex;align-items:center;gap:12px;margin:0 9px 14px;padding:2px 0 19px;border-bottom:1px solid #ffffff20}
.side-logo{width:28px;height:28px;border-radius:50%;background:#e8efe9;display:grid;place-items:center;flex:none}
.side-logo span{width:9px;height:9px;border-radius:50%;background:#163d31}
.side-brand strong{display:block;font-size:16px;letter-spacing:.03em;white-space:nowrap}
.side-brand small{display:block;font-size:9px;color:#b8d0c2;letter-spacing:.09em;margin-top:11px;white-space:nowrap}
.business-nav{display:grid;gap:3px;align-content:start}
.workbench-nav-group{display:grid;gap:2px;min-width:0}
.workbench-nav-chevron{margin-left:auto;color:var(--film-muted);font-size:12px;line-height:1;transition:transform var(--motion-feedback) var(--motion-ease-feedback)}
.workbench-nav-group>.nav-item[aria-expanded="true"] .workbench-nav-chevron{transform:rotate(180deg)}
.workbench-subnav{display:grid;gap:3px;margin:0 0 5px 22px;padding:3px 0 3px 9px;border-left:1px solid var(--film-border)}
.workbench-subnav-item{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:34px;padding:6px 9px;border:0;border-radius:6px;background:transparent;color:var(--film-muted);font:inherit;font-size:11px;text-align:left;cursor:pointer}
.workbench-subnav-item:hover{background:var(--film-inset);color:var(--film-ink)}
.workbench-subnav-item.active{background:var(--film-accent-soft);color:var(--film-button);font-weight:700}
.workbench-subnav-item small{display:grid;min-width:20px;height:20px;place-items:center;padding:0 5px;border-radius:10px;background:var(--film-raised);color:var(--film-muted);font-size:10px;font-weight:700;font-variant-numeric:tabular-nums}
.workbench-subnav-item.active small{background:#fff;color:var(--film-button)}
.staff .shop-sidebar .nav-item{display:flex;align-items:center;gap:14px;width:100%;min-height:39px;padding:9px 11px;margin:0;border:0;border-radius:8px;background:transparent;color:#d9e8dc;font-size:12px;font-weight:500;line-height:1.3;text-align:left;white-space:nowrap}
.staff .shop-sidebar .nav-item svg{width:15px;height:15px;flex:none;color:#b9d0c2}
.staff .shop-sidebar button.nav-item:hover,.staff .shop-sidebar button.nav-item.active{background:#294b70;color:#fff}
.staff .shop-sidebar button.nav-item:focus-visible,.staff .shop-sidebar button.side-tool:focus-visible{outline:2px solid #8dc8ff;outline-offset:2px}
.staff .shop-sidebar .nav-item .nav-count{margin-left:auto;display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:13px;background:#e8f0e8;color:#28503d;font-size:10px;font-weight:800}
.staff .shop-sidebar .nav-disabled{opacity:.62;cursor:not-allowed}
.staff .shop-sidebar .nav-disabled small{margin-left:auto;font-size:9px;color:#d5e7da}
.side-spacer{flex:1;min-height:20px}
.side-environment{background:#2a5143;border-radius:9px;margin:0 5px 14px;padding:11px 10px;display:grid;gap:4px}
.side-environment strong{width:max-content;border-radius:12px;background:#f5edda;color:#775d35;padding:3px 8px;font-size:10px}
.side-environment small{color:#c4d6cb;font-size:10px;line-height:1.5}
.side-tools{margin:0 6px 14px;display:grid;gap:2px}
.staff .shop-sidebar .side-tool{color:#d1e3d5;font-size:11px;font-weight:500;margin:0;padding:7px 8px}
.staff .shop-sidebar .side-tool.active,.staff .shop-sidebar .side-tool:hover{background:#294b70;color:#fff}
.side-account{display:flex;align-items:center;gap:10px;border-top:1px solid #ffffff20;padding:17px 9px 21px;min-height:74px}
.side-avatar{width:28px;height:28px;border-radius:50%;background:#d6e4d9;color:#1d4937;display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}
.side-account strong{display:block;font-size:11px}
.side-account small{display:block;color:#bad0c2;font-size:9px;margin-top:3px}
.client-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.client-link{display:flex;align-items:center;gap:12px;min-height:100px;text-align:left;color:#204a37;cursor:pointer}
.client-link strong{font-size:18px}
.client-link span:nth-child(2){color:var(--film-muted);font-size:12px;margin-left:auto}
.client-link span:last-child{font-size:18px}
.client-link:hover{border-color:#75a18a;background:#f8fbf7}
.client-link:focus-visible{outline:2px solid #2b6d4b;outline-offset:3px}
@media(max-width:900px){.staff .layout{grid-template-columns:200px minmax(0,1fr)}.staff .shop-sidebar{padding-left:7px;padding-right:7px}.staff .top{padding:0 18px}.client-links{grid-template-columns:1fr}}
@media(max-width:650px){.staff .layout{display:block}.staff .shop-sidebar{position:static;height:auto;min-height:0;padding:12px 12px 10px;display:block;overflow:visible}.side-brand{margin:0 3px 9px;padding:0 0 10px}.side-brand small{margin-top:2px}.business-nav{display:flex;overflow-x:auto;gap:5px;padding:0 0 9px;overscroll-behavior-x:contain;scrollbar-color:#6d9383 #163d31}.staff .shop-sidebar .nav-item{width:auto;min-width:max-content;min-height:36px;gap:7px;padding:7px 9px}.staff .shop-sidebar .nav-item svg{width:13px;height:13px}.staff .shop-sidebar .nav-disabled small{font-size:8px}.side-spacer,.side-environment{display:none}.side-tools{display:inline-flex;margin:0 0 0 2px}.staff .shop-sidebar .side-tool{width:auto;white-space:nowrap}.side-account{display:inline-flex;border:0;min-height:0;padding:0 0 0 10px}.side-avatar{width:22px;height:22px}.side-account small{display:none}.staff .top{height:auto;min-height:47px;padding:8px 14px}.staff .top .workspace-name{font-size:10px}.staff .top .right .pill{display:none}.staff .top .right button{padding:6px 8px}.client-link{min-height:85px}}
.nav-scroll-hint{display:none}
@media(max-width:650px){.nav-scroll-hint{display:block;color:#bdd2c5;font-size:10px;letter-spacing:.02em;margin:0 0 7px 3px}}
.side-logo{width:32px;height:32px;display:block;position:relative;background:none}
.side-logo img{display:block;width:32px;height:32px}
.side-logo span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:9px;height:9px}
.side-avatar{width:34px;height:34px;display:block;background:none}
.side-avatar img{display:block;width:100%;height:100%}
@media(max-width:650px){.side-avatar{width:24px;height:24px}}
.equipment-tabs{display:flex;gap:8px;border-bottom:1px solid #dbe4da;margin:0 0 20px;overflow-x:auto}
.section-heading-top{margin-top:0}
.dashboard-recent{margin-top:20px}
.equipment-tab{border:0;border-bottom:3px solid transparent;background:transparent;color:#53695a;padding:11px 15px;font-size:14px;font-weight:700;white-space:nowrap}
.equipment-tab.active{color:#1a4d39;border-bottom-color:#1a6a46}
.equipment-tab:focus-visible{outline:2px solid #2b6d4b;outline-offset:-2px}
.equipment-table{overflow-x:auto}
.equipment-device-list{display:grid;gap:10px}.equipment-device-card{display:grid;gap:11px;padding:14px;border:1px solid var(--ops-border);border-radius:9px;background:var(--ops-surface)}.equipment-device-heading{display:grid;grid-template-columns:minmax(180px,2fr) auto minmax(100px,1fr) minmax(110px,1fr) auto;gap:11px;align-items:center}.equipment-device-heading>div{display:grid;gap:4px}.equipment-device-heading>div strong{color:var(--ops-ink)}.equipment-device-heading small,.equipment-device-heading .muted{color:var(--ops-muted);font-size:11px}.equipment-status-editor{border-top:1px solid var(--ops-border);padding-top:9px}.equipment-status-editor>summary{cursor:pointer;color:var(--ops-accent);font-size:12px;font-weight:650}.equipment-status-editor form{margin-top:12px}.equipment-remove-form{display:grid;gap:10px;padding:12px;border:1px solid var(--ops-border);border-radius:8px;background:var(--ops-bg)}.equipment-removed-section{margin-top:14px;padding:12px;border:1px solid var(--ops-border);border-radius:9px}.equipment-removed-section>summary{cursor:pointer;color:var(--ops-muted);font-size:12px;font-weight:650}.equipment-removed-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--ops-border)}.equipment-removed-row span{display:grid;gap:4px}.equipment-removed-row small{color:var(--ops-muted)}
.equipment-add{margin:0 0 14px;padding:10px 12px;border:1px solid var(--ops-border);border-radius:8px;background:var(--ops-surface)}.equipment-add>summary{cursor:pointer;color:var(--ops-ink);font-weight:650}.equipment-add form{max-width:760px;margin-top:14px}.capability-picker{display:flex;flex-wrap:wrap;gap:8px 14px;margin:0;padding:12px;border:1px solid var(--ops-border);border-radius:8px}.capability-picker legend{padding:0 5px;color:var(--ops-muted);font-weight:600}.capability-picker .check-row{margin:0}
.service-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 18px}.service-category-card{display:grid;grid-template-columns:1fr auto;gap:6px 12px;min-height:92px;padding:15px 16px;border:1px solid var(--ops-border);border-radius:10px;background:var(--ops-surface);color:var(--ops-ink);text-align:left;cursor:pointer}.service-category-card:hover{border-color:var(--ops-accent)}.service-category-card.active{border-color:var(--ops-accent);background:var(--ops-accent-soft);box-shadow:inset 0 0 0 1px var(--ops-accent)}.service-category-card strong{font-size:15px}.service-category-card span{align-self:center;padding:3px 8px;border-radius:999px;background:var(--ops-bg);color:var(--ops-muted);font-size:11px;font-weight:700}.service-category-card small{grid-column:1/-1;color:var(--ops-muted);line-height:1.4}.service-category-content{padding:20px}.catalog-category-form>.section-heading{margin:0 0 8px}.catalog-category-form>.section-heading h2{margin:0 0 4px}.catalog-service-grid{display:grid;gap:11px}.catalog-service-card{display:grid;gap:12px;padding:15px;border:1px solid var(--ops-border);border-radius:10px;background:var(--ops-surface)}.catalog-service-card-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.catalog-service-card-heading>div{display:grid;gap:4px;flex:1;min-width:160px}.catalog-service-card-heading>strong{flex:1}.catalog-service-card-heading small{color:var(--ops-muted)}.catalog-price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.catalog-size-section{display:grid;gap:11px;padding:15px;border:1px solid var(--ops-border);border-radius:10px;background:var(--ops-bg)}.catalog-size-section .section-heading{margin:0}.catalog-size-section h3{margin:0 0 3px}.catalog-size-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:10px}.catalog-size-card{display:grid;gap:9px;padding:12px;border:1px solid var(--ops-border);border-radius:9px;background:var(--ops-surface)}.catalog-size-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.catalog-size-card-heading small{color:var(--ops-muted);font-size:10px}.scan-price-group{margin-top:8px;padding:0;border:1px solid var(--ops-border);border-radius:9px;background:var(--ops-surface);overflow:hidden}.scan-price-group>summary{padding:11px 13px;cursor:pointer;font-weight:650;color:var(--ops-ink)}.scan-price-group[open]>summary{border-bottom:1px solid var(--ops-border);background:var(--ops-bg)}.scan-price-group>.stack{padding:4px 13px 13px}
.service-category-content .catalog-row{min-height:68px;padding:12px 14px;border:1px solid var(--ops-border);border-radius:9px;background:var(--ops-surface);color:var(--ops-ink)}.service-category-content .catalog-row:hover{border-color:var(--ops-accent);background:var(--ops-accent-soft)}.service-category-content .catalog-row>span:last-child{color:var(--ops-accent);font-size:12px;font-weight:650;white-space:nowrap}.scan-addon-choice{display:inline-grid;gap:4px;min-width:160px;text-align:left}.scan-addon-choice[aria-pressed="true"]{border-color:var(--ops-accent);background:var(--ops-accent-soft)}
.wash-format-table{display:grid;gap:0;overflow-x:auto}.wash-format-heading,.wash-format-row{display:grid;grid-template-columns:minmax(60px,.55fr) minmax(125px,1fr) minmax(115px,.8fr) minmax(145px,1fr) minmax(145px,1fr) minmax(130px,.9fr);gap:10px;align-items:end;min-width:850px}.wash-format-heading{padding:8px 10px;color:var(--ops-muted);font-size:11px;font-weight:700}.wash-format-row{padding:10px;border-top:1px solid var(--ops-border);background:var(--ops-surface)}.wash-format-row>strong{align-self:center;color:var(--ops-ink)}.wash-format-row .check-row{align-self:center;margin:0}.wash-format-row>.field{margin:0}.wash-format-row input[type="number"]{min-width:0}
.equipment-row{display:grid;grid-template-columns:minmax(180px,2fr) minmax(96px,1fr) minmax(120px,1.2fr) minmax(110px,1fr) auto;gap:12px;align-items:center;border-top:1px solid #e8ece5;padding:15px 2px;font-size:12px;min-width:650px}
.equipment-row strong{font-size:13px;color:#223f30}.equipment-row small{display:block;color:#728278;line-height:1.45}
.impact-preview{border:1px solid #d9e7d9;border-radius:11px;padding:16px;background:#f8fbf7;margin-top:18px}
.impact-preview h3{font-size:15px;margin:0 0 8px}.impact-preview p{font-size:13px;line-height:1.6;color:#46604e}
.equipment-assignment{border:1px solid #dfe9df;background:#f7faf6;border-radius:9px;padding:12px;margin-top:15px;display:grid;gap:7px}
.equipment-assignment strong{font-size:12px;color:#31563f}.equipment-assignment small{font-size:11px;color:#63796a}
.equipment-assignment .inline-form{margin-top:3px}.equipment-assignment .field{min-width:200px}
@media(max-width:650px){.equipment-row{min-width:620px}.equipment-assignment .inline-form{align-items:stretch}.equipment-assignment .field{min-width:0;width:100%}}
.negative-choice{border:1px solid #dbe3d9;border-radius:10px;padding:12px 14px;margin:4px 0 0}.negative-choice legend{font-size:12px;font-weight:700;color:#415849;padding:0 5px}.negative-options{display:flex;gap:10px;flex-wrap:wrap}.negative-options label{display:inline-flex;align-items:center;gap:7px;border:1px solid #d2dbd0;border-radius:8px;padding:8px 12px;cursor:pointer;font-size:13px}.negative-options label:has(input:checked){border-color:#3b7852;background:#e8f2e9}.negative-options input{accent-color:#315f43}.negative-options input:focus-visible{outline:2px solid #315f43;outline-offset:3px}.negative-choice small{display:block;color:#687b6c;margin-top:8px}.negative-preference-actions{display:flex;flex-wrap:wrap;gap:7px;width:100%}.negative-preference-actions .button[aria-pressed="true"]{border-color:#315f43;background:#e8f2e9}
.create-customer{display:grid;gap:12px}.create-customer .field{min-width:0}.create-picker{display:grid;gap:16px;padding:16px;border:1px solid var(--ops-border);border-radius:9px;background:var(--ops-surface)}.field-group{display:grid;gap:8px}.field-group>strong{font-size:13px;color:var(--ops-ink)}.choice-row{display:flex;flex-wrap:wrap;gap:8px}.choice-button{border:1px solid var(--ops-border);border-radius:8px;background:var(--ops-surface);color:var(--ops-ink);padding:9px 13px;font:inherit;font-size:13px;cursor:pointer;transition:background-color var(--motion-feedback),border-color var(--motion-feedback),color var(--motion-feedback)}.choice-button:hover{border-color:var(--ops-accent);background:#f3f6f8}.choice-button:focus-visible{outline:2px solid var(--ops-accent);outline-offset:2px}.choice-button[aria-pressed="true"]{border-color:var(--ops-accent);background:var(--ops-accent-soft);color:var(--ops-accent);font-weight:700}.service-choice{min-width:150px;text-align:left}.create-roll-controls{align-items:end}.create-roll-controls .negative-choice{margin:0}.create-roll-controls>.field{max-width:160px}.create-roll-list{display:grid;gap:8px}.create-roll-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin:0}.create-roll-row>div{display:grid;gap:5px}.create-roll-row small{color:var(--ops-muted)}.create-customer input[readonly]{background:#f3f6f8;font-weight:700}
.scan-options{align-items:end}.scan-options>.field{max-width:240px}.price-summary{display:grid;gap:5px;align-content:end;color:var(--ops-muted);font-size:12px}.price-summary strong{color:var(--ops-ink);font-size:13px}.return-config{display:grid;gap:12px;border-top:1px solid var(--ops-border);padding-top:14px}.return-fee-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.7fr);gap:12px;align-items:end}.order-total{display:flex;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid var(--ops-border);border-radius:8px;background:var(--ops-surface);color:var(--ops-muted)}.order-total strong{color:var(--ops-ink);font-variant-numeric:tabular-nums}.order-catalog-editor{max-width:1100px}.catalog-config-grid{display:grid;gap:12px}.catalog-config-row{display:grid;gap:9px;padding:12px 0;border-bottom:1px solid var(--ops-border)}.catalog-config-row:last-child{border-bottom:0}.catalog-config-grid .catalog-config-row{grid-template-columns:auto minmax(200px,1fr) minmax(180px,.8fr);align-items:center}.catalog-config-grid .catalog-config-row small{color:var(--ops-muted)}.format-checks{display:flex;flex-wrap:wrap;gap:7px}.format-checks .check-row{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid var(--ops-border);border-radius:7px}.config-options-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:18px}.config-option-row{display:grid;grid-template-columns:minmax(70px,.6fr) minmax(120px,1fr) auto;align-items:end;gap:10px;padding:8px 0;border-bottom:1px solid var(--ops-border)}.config-options-grid section:nth-child(2) .config-option-row{grid-template-columns:minmax(120px,1fr) auto}.scan-price-group{padding-top:12px;border-top:1px solid var(--ops-border)}.scan-price-item{display:grid;gap:7px}.scan-price-item .field{font-size:12px}.management-shell .order-catalog-editor .panel h2{margin-top:0}
@media(max-width:650px){.return-fee-fields,.config-options-grid{grid-template-columns:1fr}.catalog-config-grid .catalog-config-row{grid-template-columns:1fr}.config-option-row,.config-options-grid section:nth-child(2) .config-option-row{grid-template-columns:1fr}.scan-price-group .form-grid.three{grid-template-columns:1fr}.service-choice{min-width:0}.order-total{align-items:flex-start}}
@media(max-width:760px){.service-category-grid{grid-template-columns:1fr}.service-category-card{min-height:74px}.service-category-content{padding:15px}.catalog-service-card{padding:12px}.catalog-service-card .form-grid.three{grid-template-columns:1fr}}
@media(max-width:760px){.equipment-device-heading{grid-template-columns:1fr auto}.equipment-device-heading .muted{display:block}.equipment-device-heading>.button{grid-column:1/-1;justify-self:start}}

.permission-hint{margin:0 0 10px;color:var(--ops-muted);font-size:12px;line-height:1.5}
/* 设备库存：按作业类型切换，维护动作留在设备上下文中 */
.equipment-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}
.equipment-category-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px 12px;min-height:88px;padding:14px 16px;border:1px solid var(--ops-border);border-radius:10px;background:var(--ops-surface);color:var(--ops-ink);text-align:left;cursor:pointer}
.equipment-category-card:hover{border-color:var(--film-accent)}
.equipment-category-card:focus-visible{outline:2px solid var(--film-accent);outline-offset:2px}
.equipment-category-card.active{border-color:var(--film-accent);background:var(--film-accent-soft);box-shadow:inset 0 0 0 1px var(--film-accent)}
.equipment-category-card strong{font-size:15px}
.equipment-category-card>span{color:var(--ops-muted);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.equipment-category-card small{grid-column:1/-1;color:var(--ops-muted);font-size:12px}
.equipment-category-card small.good{color:#2f704d;font-weight:650}
.equipment-category-card small.low{color:#98651a;font-weight:700}
.equipment-device-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px;align-items:start}
.equipment-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.equipment-section-heading h2{margin:0}
.equipment-section-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.equipment-section-actions>.muted{white-space:nowrap}
.equipment-add-form{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;margin:0 0 14px;padding:14px;border:1px solid var(--ops-border);border-radius:9px;background:var(--ops-bg)}
.equipment-add-form .capability-picker{grid-column:1/-1}
.equipment-add-form>.button{justify-self:start}
.equipment-device-card{display:grid;gap:0;padding:0 14px;border:1px solid var(--ops-border);border-radius:9px;background:var(--ops-surface)}
.equipment-device-heading{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:12px 14px;align-items:center;padding:15px 0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}
.equipment-device-heading::-webkit-details-marker{display:none}
.equipment-device-heading:focus-visible{outline:2px solid var(--film-focus);outline-offset:3px;border-radius:6px}
.equipment-device-heading>div{display:grid;gap:4px;min-width:0}
.equipment-device-heading>div strong{color:var(--ops-ink)}
.equipment-device-heading small,.equipment-device-heading .muted{color:var(--ops-muted);font-size:11px}
.equipment-status-trigger{justify-self:end;padding:8px 12px;border:1px solid var(--ops-border);border-radius:8px;background:var(--ops-surface);color:var(--film-accent);font-size:12px;font-weight:700;white-space:nowrap}
.equipment-device-card:hover{border-color:var(--film-accent);box-shadow:0 6px 20px rgba(36,64,47,.08)}
.equipment-card-primary,.equipment-card-process,.equipment-card-status{display:grid;gap:5px;min-width:0}
.equipment-card-primary{grid-column:1;grid-row:1}
.equipment-card-process{grid-column:1;grid-row:2}
.equipment-card-status{grid-column:2;grid-row:2;justify-items:end;white-space:nowrap}
.equipment-card-status .badge{white-space:nowrap}
.equipment-card-primary strong{font-size:15px}
.equipment-card-primary small,.equipment-card-process small,.equipment-card-status small{color:var(--ops-muted);font-size:11px}
.equipment-card-process strong{font-size:13px;font-weight:600}
.equipment-card-edit{grid-column:2;grid-row:1;justify-self:end;padding:8px 12px;border:1px solid var(--ops-border);border-radius:8px;color:var(--film-accent);font-size:12px;font-weight:700;white-space:nowrap}
.equipment-edit-modal{width:min(680px,calc(100vw - 32px))}
.equipment-device-card[open] .equipment-status-trigger{background:var(--film-accent-soft)}
.equipment-device-settings{display:grid;gap:12px;padding:13px 0 12px}
.equipment-device-settings form{margin:0}
.equipment-danger-zone{display:grid;justify-items:start;gap:10px;margin-top:13px;padding-top:12px;border-top:1px solid var(--ops-border)}
.equipment-remove-form{display:grid;gap:10px;width:min(100%,760px)}
.equipment-removed-section{margin-top:14px;padding:12px;border:1px solid var(--ops-border);border-radius:9px}
.equipment-removed-section>summary{cursor:pointer;color:var(--ops-muted);font-size:12px;font-weight:650}
.equipment-removed-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--ops-border)}
.equipment-removed-row span{display:grid;gap:4px}
.equipment-removed-row small{color:var(--ops-muted)}
@media(max-width:760px){.equipment-category-grid{grid-template-columns:1fr}.equipment-category-card{min-height:68px}.equipment-section-heading{align-items:flex-start;flex-wrap:wrap}.equipment-section-actions{width:100%;justify-content:space-between;flex-wrap:wrap;gap:8px}.equipment-add-form{grid-template-columns:1fr}.equipment-add-form .capability-picker{grid-column:auto}.equipment-device-heading{grid-template-columns:minmax(0,1fr) auto;gap:10px}.equipment-card-primary{grid-column:1;grid-row:1}.equipment-card-process{grid-column:1;grid-row:2}.equipment-card-status{grid-column:2;grid-row:2;justify-self:end}.equipment-card-edit{grid-column:2;grid-row:1;justify-self:end}.equipment-device-card{padding-inline:12px}}

/* 经营管理工作区 */
.management-shell .business-nav{gap:4px}
.management-shell .business-nav .nav-item{min-height:36px}
.management-shell main{max-width:1500px}
.management-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 20px}
.management-kpis.three{grid-template-columns:repeat(3,minmax(0,1fr));margin:18px 0}
.management-kpi{text-align:left;cursor:pointer}
.management-kpi:hover{border-color:#8cb29c;background:#fbfdfa}
.management-kpi strong{font-family:system-ui,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-size:30px}
.management-kpi strong small{font-size:12px;margin-left:4px;color:#65786a;font-weight:500}
.management-kpi>small{font-size:11px;color:#507158}
.management-overview-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,.9fr);gap:18px}
.management-overview-grid .panel{min-height:320px}
.trend-panel{display:flex;flex-direction:column}
.trend-panel .section-heading{margin:0 0 8px}
.period-control{display:flex;background:#f5f5f0;border-radius:12px;padding:3px;gap:2px}
.period-control button{border:0;background:transparent;border-radius:9px;padding:6px 9px;font-size:11px;color:#708174}
.period-control button.active{background:#fff;color:#235b41;font-weight:800;box-shadow:0 1px 4px #10271915}
.trend-chart{display:flex;align-items:flex-end;gap:7px;min-height:180px;height:200px;margin-top:auto;padding:8px 0 0;overflow-x:auto}
.trend-column{display:flex;flex-direction:column;align-items:center;justify-content:end;gap:5px;height:100%;min-width:18px;flex:1;font-size:10px;color:#6b806f}
.trend-column>span{height:15px}
.trend-column i{width:70%;min-height:3px;max-height:145px;border-radius:5px 5px 2px 2px;background:#e5efe7;display:block}
.trend-column i.has-value{background:#285c46}
.trend-column small{font-size:9px;white-space:nowrap;color:#839186}
.setting-shortcuts button{display:grid;grid-template-columns:1fr auto;gap:2px 12px;width:100%;border:0;border-top:1px solid #e8eee8;text-align:left;background:transparent;padding:13px 2px;color:#214c36}
.setting-shortcuts button:hover{background:#f6faf6}
.setting-shortcuts button strong{font-size:12px}
.setting-shortcuts button small{grid-column:1;color:#7c8c7d;font-size:11px}
.setting-shortcuts button span{grid-column:2;grid-row:1/3;align-self:center;font-size:20px}
.management-two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:18px}
.system-preferences{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(280px,1fr);gap:24px;align-items:start;margin-bottom:18px}
.settings-page{width:min(100%,1120px);margin:0 auto;padding-bottom:40px}.settings-heading{display:flex;align-items:baseline;gap:14px;margin:0 0 15px;padding:0;border:0;background:transparent;box-shadow:none}.settings-heading h1{margin:0;font-size:25px;font-weight:700;letter-spacing:-.025em}.settings-heading p{margin:0;color:var(--film-muted);font-size:13px}.settings-index{position:sticky;top:0;z-index:4;isolation:isolate;display:flex;gap:7px;overflow-x:auto;padding:10px 12px;margin:0 0 28px;border:1px solid var(--film-border);border-radius:10px;background:var(--film-surface);box-shadow:0 5px 16px #14291a0a;scrollbar-width:thin}.settings-index-highlight{position:absolute;z-index:0;top:0;left:0;display:block;border-radius:7px;background:var(--film-accent-soft);box-shadow:0 4px 12px #2863e914;pointer-events:none;will-change:transform,width,height}.settings-index-highlight[hidden]{display:none}.settings-index button{position:relative;z-index:1;flex:none;padding:8px 12px;border:0;border-radius:7px;background:transparent;color:var(--film-muted);font:inherit;font-size:12px;font-weight:650;white-space:nowrap;cursor:pointer;transition:background-color var(--motion-feedback) var(--motion-ease-feedback),color var(--motion-feedback) var(--motion-ease-feedback)}.settings-index button:hover,.settings-index button:focus-visible{background:transparent;color:var(--film-accent);outline:none}.settings-index button.active{background:transparent;color:var(--film-accent);outline:none}.settings-index button:focus-visible{box-shadow:0 0 0 2px var(--film-accent)}.settings-content{min-height:220px}.settings-content>.panel{margin:0}.settings-content>.panel[data-baidu-settings]{margin-top:12px}.settings-content .system-preferences{display:block}.settings-content .system-preference-controls{max-width:760px}.settings-content .print-settings,.settings-content .peripheral-settings{padding:22px 25px}.settings-form-panel{max-width:780px;padding:23px 25px}.settings-form-panel form{max-width:660px}.settings-form-panel .notice{margin:4px 0 0}.settings-audit-panel{max-height:560px;overflow:auto;padding:20px 24px}.settings-audit-panel .timeline{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px}
.system-preferences h2{margin:0 0 6px}
.system-preferences>.muted,.system-preferences>div:first-child>.muted{margin:0}
.system-preference-controls{display:grid;gap:0}
.system-preference-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 0;border-top:1px solid var(--film-border,#e8eee8)}
.system-preference-row:first-child{border-top:0;padding-top:0}
.system-preference-row:last-child{padding-bottom:0}
.system-preference-row strong,.system-preference-row small{display:block}
.system-preference-row strong{font-size:13px}
.system-preference-row small{margin-top:4px;color:var(--film-muted,#7c8c7d);font-size:11px}
.system-preference-row .language-setting-menu{min-width:150px}
.system-preference-row .language-setting-trigger{min-height:38px;border:1px solid var(--film-border,#e8eee8);border-radius:7px;padding:7px 10px}
.system-preference-row .settings-language-dropdown{min-width:150px;flex:0 1 300px}
.system-preference-row .settings-language-trigger{min-height:48px}
.settings-dropdown-field{position:relative;min-width:0}
.settings-dropdown-field .settings-dropdown{width:100%}
.settings-dropdown-field .settings-dropdown-trigger{min-height:48px}
.settings-dropdown-field .settings-dropdown-options{max-height:min(320px,52vh)}
.settings-dropdown-field .settings-dropdown-trigger[aria-disabled="true"]{cursor:not-allowed;opacity:.62}
.settings-dropdown-native{position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;pointer-events:none!important}
.settings-dropdown-option:disabled{cursor:not-allowed;opacity:.55}
.system-preference-row .theme-toggle{flex:0 0 auto}
.system-preference-note{grid-column:1/-1;margin:-3px 0 0;color:var(--film-muted,#7c8c7d);font-size:11px}
.system-preference-row .create-review-layout-options{flex:0 0 auto}
.system-preference-row .create-review-layout-options button{min-width:72px;padding:6px 10px;font-size:11px}
.peripheral-settings>div:first-child{margin-bottom:18px}
.peripheral-device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.peripheral-device-card{min-width:0;border:1px solid #e0e7dd;border-radius:12px;background:#fbfcfa;padding:17px;display:grid;align-content:start;gap:12px}
.peripheral-device-card h3{margin:4px 0 0;font-size:17px}
.peripheral-device-card>p{margin:0;line-height:1.55}
.peripheral-device-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.peripheral-device-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:3px}
.peripheral-printer-size{gap:9px}
.peripheral-test-modal{width:min(100%,520px)}
.print-settings{margin-bottom:18px}
.print-settings-heading h2{margin:0 0 5px}
.print-settings-heading h3{margin:0;font-size:18px}
.print-settings-heading p{margin:5px 0 0}
.print-settings-form{display:grid;gap:18px;margin-top:20px}
.print-connection-section{display:grid;gap:13px;padding-bottom:18px;border-bottom:1px solid var(--film-border)}
.print-connection-title{display:flex;align-items:center;justify-content:space-between;gap:14px}
.print-connection-title h3,.print-layout-controls h3{margin:0 0 4px;font-size:15px}
.print-connection-title p,.print-layout-controls p{margin:0;line-height:1.5}
.printer-connection-summary{display:flex;align-items:center;gap:10px;min-height:58px;padding:10px 13px;border-radius:9px;background:var(--film-inset);color:var(--film-ink)}
.printer-connection-summary>span:last-child{min-width:0}
.printer-connection-summary strong,.printer-connection-summary small{display:block}
.printer-connection-summary strong{font-size:13px}
.printer-connection-summary small{margin-top:3px;color:var(--film-muted);font-size:12px;line-height:1.45}
.printer-status-mark{width:9px;height:9px;flex:none;border-radius:50%;background:var(--film-muted)}
.printer-connection-summary.ready{background:var(--theme-success-bg,#edf8ef);color:var(--theme-success-text,#287544)}
.printer-connection-summary.ready small{color:inherit;opacity:.88}
.printer-connection-summary.ready .printer-status-mark{background:currentColor}
.printer-connection-summary.checking{background:var(--film-accent-soft);color:var(--film-ink)}
.printer-connection-summary.checking .printer-status-mark{background:var(--film-accent);animation:printer-status-pulse 1.2s ease-in-out infinite}
.printer-connection-summary.error{background:var(--theme-danger-bg,#fff0ed);color:var(--theme-danger-text,#a13b35)}
.printer-connection-summary.error small{color:inherit}
.print-connection-section>.field{max-width:560px}
.print-layout-section{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr);gap:22px;align-items:start}
.print-layout-preview{display:grid;gap:8px;justify-items:center}
.print-preview-label{display:grid;place-items:center;width:100%;aspect-ratio:1.2;padding:10px;background:var(--film-inset);border:1px solid var(--film-border);border-radius:9px}
.print-preview-label svg{display:block;width:min(100%,170px);height:auto;max-height:100%;object-fit:contain;background:#fff}
.print-layout-preview>small{color:var(--film-muted);font-size:11px}
.print-layout-controls{display:grid;gap:13px;min-width:0}
.print-layout-controls .system-preference-row{padding:11px 0}
.print-layout-controls .system-preference-row:last-child{border-bottom:1px solid var(--film-border)}
.print-layout-controls .form-grid{margin:0}
.print-mode-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.print-settings .peripheral-device-actions{margin-top:0}
.scanner-device-card{max-width:560px}
.peripheral-settings>div:first-child h2{margin-top:0}
.print-bag-layout{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr);align-items:center;gap:22px;padding-top:18px;border-top:1px solid var(--film-border)}
.print-bag-preview{display:grid;gap:8px;justify-items:center}
.print-bag-preview>small{color:var(--film-muted);font-size:11px}
.print-bag-layout h3{margin:0 0 5px;font-size:15px}
.print-bag-layout p{margin:0;line-height:1.5}
.print-bag-preview .print-preview-label{aspect-ratio:1.4}
.print-stock-settings{display:grid;gap:12px;padding:16px 0 18px;border-bottom:1px solid var(--film-border)}
.print-stock-settings h3{margin:0 0 4px;font-size:15px}
.print-stock-settings p{margin:0;line-height:1.5}
.print-stock-settings .form-grid{margin:0}
.print-template-setting-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-top:1px solid var(--film-border)}
.print-template-setting-row strong,.print-template-setting-row small{display:block}
.print-template-setting-row strong{font-size:13px}
.print-template-setting-row small{margin-top:4px;color:var(--film-muted);font-size:11px}
.print-preview-label[data-overflow="true"]{outline:2px solid var(--theme-danger-text,#a13b35);outline-offset:2px}
.roll-label-template-dimensions{display:grid;gap:6px;padding:10px;border:1px solid var(--film-border);border-radius:7px;background:var(--film-inset)}
.roll-label-template-dimensions h3{margin:0;font-size:13px}
.roll-label-template-dimensions p{margin:0;font-size:11px}
.roll-label-template-dimensions input{min-height:36px}
@keyframes printer-status-pulse{50%{opacity:.4}}
.print-bag-layout{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr);align-items:center;gap:22px;padding-top:18px;border-top:1px solid var(--film-border)}.print-bag-preview{display:grid;gap:8px;justify-items:center}.print-bag-preview>small{color:var(--film-muted);font-size:11px}.print-bag-layout h3{margin:0 0 5px;font-size:15px}.print-bag-layout p{margin:0;line-height:1.5}
.print-bag-preview .print-preview-label{aspect-ratio:1.4}
.print-stock-settings{display:grid;gap:12px;padding:16px 0 18px;border-bottom:1px solid var(--film-border)}.print-stock-settings h3{margin:0 0 4px;font-size:15px}.print-stock-settings p{margin:0;line-height:1.5}.print-stock-settings .form-grid{margin:0}.print-template-setting-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-top:1px solid var(--film-border)}.print-template-setting-row strong,.print-template-setting-row small{display:block}.print-template-setting-row strong{font-size:13px}.print-template-setting-row small{margin-top:4px;color:var(--film-muted);font-size:11px}.print-preview-label[data-overflow="true"]{outline:2px solid var(--theme-danger-text,#a13b35);outline-offset:2px}.roll-label-template-dimensions{display:grid;gap:6px;padding:10px;border:1px solid var(--film-border);border-radius:7px;background:var(--film-inset)}.roll-label-template-dimensions h3{margin:0;font-size:13px}.roll-label-template-dimensions p{margin:0;font-size:11px}.roll-label-template-dimensions input{min-height:36px}
.label-editor-cancel{color:var(--film-danger,#a13b35)!important;border-color:var(--film-danger,#a13b35)!important;background:var(--film-surface,#fff)!important}
@media(prefers-reduced-motion:reduce){.printer-connection-summary.checking .printer-status-mark{animation:none}}
@media(max-width:900px){.peripheral-device-grid{grid-template-columns:1fr}}
@media(max-width:700px){.system-preferences{grid-template-columns:1fr;gap:16px}.system-preference-row{align-items:flex-start}.print-layout-section,.print-bag-layout{grid-template-columns:1fr}.print-layout-preview,.print-bag-preview{grid-template-columns:minmax(100px,160px) 1fr;align-items:center;justify-items:start}.print-preview-label{max-width:160px}.print-mode-row{grid-template-columns:1fr}.print-connection-title{align-items:flex-start;flex-direction:column}.print-connection-title>.button{width:100%}.settings-heading{align-items:baseline;gap:10px;margin-bottom:12px}.settings-heading h1{font-size:22px}.settings-index{top:0;margin-bottom:23px}.settings-content .print-settings,.settings-content .peripheral-settings,.settings-form-panel{padding:18px}.settings-audit-panel .timeline{grid-template-columns:1fr}}
.catalog-row{display:flex;justify-content:space-between;gap:12px;align-items:center;width:100%;border:0;border-top:1px solid #e9eee8;background:#fff;padding:14px 8px;text-align:left;color:#254a35}
.catalog-row:hover,.catalog-row.active{background:#f3f8f3}
.catalog-row span strong{display:block;font-size:13px}
.catalog-row small{display:block;color:#829084;font-size:11px;margin-top:4px}
.catalog-row>strong{white-space:nowrap;font-size:13px}
@media(max-width:1000px){.management-overview-grid,.management-two-col{grid-template-columns:1fr}.management-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.management-kpis,.management-kpis.three{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.management-overview-grid .panel{min-height:250px}.trend-chart{gap:4px}.management-kpi strong{font-size:24px}.period-control button{padding:5px 7px}}

/* 客户移动网页 */
.customer .top{background:#172b46}
.customer-nav{display:flex;gap:8px;padding:10px max(20px,calc((100vw - 830px)/2));background:#fff;border-bottom:1px solid #e1e8df;overflow-x:auto}
.customer-nav button{border:0;border-radius:8px;background:transparent;color:#42634e;padding:9px 14px;white-space:nowrap;font-size:13px}
.customer-nav button[aria-current=page],.customer-nav button:hover{background:#e6f0e7;color:#1d523a;font-weight:700}
.customer-hero{background:#e6efe7;border:1px solid #d7e5d8;border-radius:18px;padding:32px 28px;margin-bottom:28px;overflow:hidden;position:relative}
.customer-hero:after{content:"";position:absolute;width:190px;height:190px;border:23px solid #cadbce;border-radius:50%;right:-30px;top:-100px;opacity:.55}
.customer-hero h1{position:relative;font-family:Georgia,"Songti SC",serif;font-size:clamp(26px,4vw,38px);line-height:1.3;font-weight:600;margin:12px 0}
.customer-hero p{color:#5c7563;font-size:13px;line-height:1.6}
.customer-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}
.customer-service{display:grid;gap:7px;margin:0;text-align:left;color:#244c36;cursor:pointer}
.customer-service:hover{border-color:#7ca48a;background:#fbfdfa}
.customer-service strong{font-size:15px}.customer-service small{color:#64786a}.customer-service span{font-size:12px;margin-top:9px}
.payment-result{text-align:center;padding:50px 25px}
.payment-result h1{font-size:30px;color:#214c37}
.payment-result .button{margin-top:16px}
.sample-photo{display:grid;gap:4px;width:180px;margin-top:8px}
.sample-photo img{width:180px;height:105px;border-radius:8px;object-fit:cover;border:1px solid #d9e2d7}
.sample-photo small{color:#8a9a8d;font-size:10px}
@media(max-width:650px){.customer-nav{padding:8px 14px}.customer .top{padding:11px 14px}.customer .brand strong{font-size:15px}.customer .brand small{font-size:9px}.customer .top .pill{display:none}.customer-hero{padding:23px 19px}.customer-service-grid{grid-template-columns:1fr}.customer-service{padding:17px}}
.coupon-card{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px dashed #bdd1c0;background:#f8fbf7;border-radius:10px;padding:14px;margin:10px 0;color:#244d38}
.coupon-card strong{font-size:13px}.coupon-card small{display:block;color:#6b806f;font-size:11px;overflow-wrap:anywhere}
.coupon-choice{border:1px solid #d9e8dc;background:#f8fcf8;border-radius:9px;padding:12px;margin:12px 0;font-size:12px}
.top-search{display:flex;align-items:center;min-width:180px;max-width:330px;flex:1;background:#f4f5f0;border:1px solid #e8ece4;border-radius:9px;padding:3px}
.top-search input{background:transparent;border:0;min-width:0;width:100%;padding:7px 8px;font-size:11px;outline:none;color:#244b37}
.top-search > .top-search-submit, .top-search-control > .top-search-scan{background:#dbeaf8!important;color:#203e63!important;border:0!important;padding:6px 8px!important;font-size:10px!important}
@media(max-width:900px){.top-search{max-width:240px}}
@media(max-width:650px){.top-search{max-width:none;margin:7px 0}.staff .top{flex-wrap:wrap}.staff .top .right{margin-left:auto}}
.support-shell{min-height:100vh;background:#eef3f8}.support-shell main{max-width:1080px}.support-shell .top{background:#172b46}.support-shell .top button{color:#fff}
.support-token{margin-top:16px;overflow-wrap:anywhere}.support-token code{display:inline-block;padding:7px 9px;margin:6px 0;background:#fff;border-radius:6px;color:#244937;font-size:12px}
[data-ui="receipt-card"]{box-shadow:none;background:#fbfcfa;margin:0}
[data-ui="declaration-card"]{margin:0;background:#f8faf7}
[data-ui="between"]{justify-content:space-between}
[data-ui="small-heading"]{font-size:14px}
[data-ui="mt-12"]{margin-top:12px}[data-ui="mt-14"]{margin-top:14px}[data-ui="mt-16"]{margin-top:16px}[data-ui="mt-17"]{margin-top:17px}[data-ui="mt-25"]{margin-top:25px}
.trend-bar{width:70%;height:145px;overflow:visible}.trend-bar rect{fill:#e5efe7}.trend-bar rect.has-value{fill:#285c46}
.refund-review{border:1px solid #e5e9de;border-radius:9px;padding:13px;margin-top:15px;background:#fbfcfa}.refund-review h3{font-size:13px;margin:0 0 8px}
.delivery small{display:block;color:#6d806f;margin-top:5px}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.gallery-card{margin:0}.gallery-card h2{font-size:14px;margin:12px 0 6px}.gallery-preview{display:block;border:0;padding:0;width:100%;background-color:#eff2ec;background-image:conic-gradient(#e3e9df 25%,transparent 0 50%,#e3e9df 0 75%,transparent 0);background-size:24px 24px;border-radius:10px;cursor:zoom-in}.gallery-preview img{width:100%;height:210px;object-fit:contain;border-radius:10px}.photo-modal{width:min(90vw,620px)}.photo-modal img{width:100%;border-radius:10px}.photo-modal .button{margin-top:8px}
@media(max-width:650px){.gallery-grid{grid-template-columns:1fr}}
.label-modal{width:min(90vw,480px)}.label-preview-card{display:grid;gap:8px;background:#fbfcf8;border:1px solid #d5ddd2;border-radius:9px;padding:18px;color:#1c4934}.label-preview-card strong{font-size:20px;letter-spacing:.04em}.label-preview-card small{font-size:11px;color:#607869}.label-barcode svg{display:block;max-width:100%;height:auto}
.roll-label-editor-backdrop{z-index:1300;padding:18px}
.roll-label-editor{display:grid;grid-template-rows:auto minmax(0,1fr);gap:16px;width:min(100%,940px);height:min(740px,calc(100dvh - 36px));overflow:hidden;padding:20px}
.roll-label-editor-header h2{margin:0;font-size:20px}
.roll-label-editor-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:16px;min-height:0}
.roll-label-editor-canvas,.roll-label-editor-inspector{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;min-height:0;min-width:0}
.roll-label-editor-stage{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:8px;min-height:0;padding:16px;background:var(--film-inset);border:1px solid var(--film-border);border-radius:8px}
.roll-label-editor-paper{display:grid;place-items:center;min-width:0;min-height:0}
.roll-label-editor-paper>svg{display:block;width:100%;height:100%;min-height:0;max-width:480px;max-height:480px;touch-action:none;filter:drop-shadow(0 1px 3px #0002)}
.roll-label-editor-paper[data-overflow="true"]>svg>rect:first-child{stroke:var(--theme-danger-text,#a13b35);stroke-width:2;vector-effect:non-scaling-stroke}
.roll-label-editor-svg{pointer-events:none}
.roll-label-editor-svg [data-label-element],.roll-label-editor-paper [data-label-content-grab]{cursor:grab;pointer-events:auto}
.roll-label-editor-svg [data-label-element]:active,.roll-label-editor-paper [data-label-content-grab]:active{cursor:grabbing}
.roll-label-content-selected,.roll-label-selection-box{stroke:#2366d1;stroke-width:1.5;stroke-dasharray:4 3;vector-effect:non-scaling-stroke}
.roll-label-editor-stage>small{color:var(--film-muted);font-size:12px;text-align:center}
.roll-label-editor-controls{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 8px 8px 2px}
.roll-label-editor-controls>*{flex-shrink:0}
.roll-label-editor-controls .roll-label-template-dimensions{gap:8px;padding:12px}
.roll-label-template-dimensions>.button{justify-self:start}
.roll-label-element-list,.roll-label-position-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.roll-label-element-option{display:flex;justify-content:space-between;align-items:center;gap:5px;min-height:36px;padding:6px 8px;border:1px solid var(--film-border);border-radius:5px;background:var(--film-surface);color:var(--film-ink);font:inherit;font-size:12px;text-align:left;cursor:pointer}
.roll-label-element-option[data-label-select="content"]{grid-column:1/-1}
.roll-label-element-option[aria-pressed=true]{border-color:var(--film-ink);background:var(--film-bg);font-weight:700}
.roll-label-element-option span{color:var(--film-muted);font-size:10px}
.roll-label-editor-controls .field{gap:4px;margin:0;font-size:12px}
.roll-label-editor-controls input,.roll-label-editor-controls select{width:100%;min-width:0;min-height:36px;padding:6px 8px;border:1px solid var(--film-border);border-radius:5px;background:var(--film-surface);color:var(--film-ink);font:inherit;font-size:13px}
.roll-label-editor-controls [data-label-element-controls]:not([hidden]){display:grid;gap:10px}
.roll-label-visible{display:flex;align-items:center;gap:7px;font-size:12px}
.roll-label-editor-hint{margin:0;color:var(--film-muted);font-size:11px;line-height:1.5}
.roll-label-editor-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.roll-label-editor-actions .button{min-height:36px;padding:7px 10px;font-size:12px}
.roll-label-editor-footer{justify-content:flex-end;padding-top:12px;border-top:1px solid var(--film-border)}
@font-face{font-family:"Index Sans";src:url("/film-index-fonts/sans-serif.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Index Serif";src:url("/film-index-fonts/serif.otf") format("opentype");font-weight:400;font-display:swap}
@font-face{font-family:"Index Mono";src:url("/film-index-fonts/monospace.otf") format("opentype");font-weight:400;font-display:swap}
.film-index-template-editor{width:min(100%,1060px);height:min(820px,calc(100dvh - 36px))}
.film-index-template-editor .roll-label-editor-main{grid-template-columns:minmax(0,1fr) minmax(300px,360px)}
.film-index-template-stage{grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
.film-index-template-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
.film-index-template-toolbar .field{margin:0;font-size:12px}
.film-index-template-toolbar .button{min-height:36px;white-space:nowrap}
.film-index-template-toolbar .button[aria-pressed=true]{border-color:var(--film-ink);background:var(--film-surface);color:var(--film-ink)}
.film-index-template-preview{position:relative;display:grid;place-items:center;container-type:size;min-width:0;min-height:0;margin:0}
.film-index-template-preview>*{grid-area:1/1}
.film-index-template-preview-state{display:grid;justify-items:center;gap:8px;color:var(--film-muted);text-align:center;font-size:12px}
.film-index-template-preview-state p{margin:0}
.film-index-template-sheet:not([hidden])+.film-index-template-preview-state:has(>:not([hidden])){
  position:absolute;inset-inline-end:4px;bottom:4px;max-width:calc(100% - 8px);padding:4px 8px;
  border:1px solid var(--film-border);border-radius:5px;background:var(--film-surface);
}
.film-index-template-sheet{
  position:relative;width:min(100%,calc(100cqh * var(--index-template-aspect,1)));aspect-ratio:var(--index-template-aspect,1);
  background:#ebebeb;color:#242424;box-shadow:0 1px 4px #0003;user-select:none;transition-property:none;
}
.film-index-template-sheet :is(img,canvas){display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.film-index-template-box img{object-fit:contain;object-position:left center}
.film-index-template-band{
  --index-selection:#2366d1;
  position:absolute;container-type:inline-size;outline:1px dashed currentColor;outline-offset:-1px;cursor:crosshair;touch-action:none;
}
.film-index-template-band[data-empty-label]:not([data-empty-label=""])::before{
  content:attr(data-empty-label);position:absolute;inset:0;display:grid;place-items:center;
  color:inherit;font-size:clamp(8px,3cqw,12px);overflow:hidden;white-space:nowrap;pointer-events:none;
}
.film-index-template-box{position:absolute;display:block;cursor:grab;outline:1px dashed currentColor;outline-offset:-1px}
.film-index-template-box:active{cursor:grabbing}
.film-index-template-box-text{
  display:block;width:100%;height:100%;overflow:hidden;white-space:pre;text-overflow:ellipsis;
  font:var(--index-template-font,3cqw)/1 "Index Sans",sans-serif;pointer-events:none;
}
.film-index-template-box[data-font-family=serif] .film-index-template-box-text{font-family:"Index Serif",serif}
.film-index-template-box[data-font-family=monospace] .film-index-template-box-text{font-family:"Index Mono",monospace}
.film-index-template-box.is-selected,.film-index-template-box.is-drawing{z-index:1;outline:1px solid var(--index-selection)}
.film-index-template-box.is-drawing{background:#2366d130;pointer-events:none}
.film-index-template-stage:has([data-index-template-finish][aria-pressed=true]) :is(.film-index-template-band,.film-index-template-box){
  outline:0;pointer-events:none;
}
.film-index-template-stage:has([data-index-template-finish][aria-pressed=true]) [data-index-template-resize]{display:none}
[data-index-template-resize]{position:absolute;width:24px;height:24px;right:-12px;bottom:-12px;display:grid;place-items:center;cursor:nwse-resize}
[data-index-template-resize]::after{content:"";width:8px;height:8px;border:1px solid white;border-radius:2px;background:var(--index-selection);pointer-events:none}
.film-index-template-caption{display:flex;justify-content:space-between;align-items:baseline;gap:8px;color:var(--film-muted);font-size:12px}
.film-index-template-caption small{font-size:inherit}
.film-index-template-caption [data-index-template-pixels]{margin-inline-start:auto;flex-shrink:0;font-variant-numeric:tabular-nums}
.film-index-template-editor [hidden]{display:none}
.film-index-template-editor button[data-index-template-logo-remove][hidden]{display:none}
.film-index-template-area-list{display:grid;gap:8px}
.film-index-template-area-list h3{font-size:14px;margin:0}
.film-index-template-editor .roll-label-element-option[data-index-template-select=logo]{grid-column:1/-1}
.film-index-reference{display:grid;justify-items:start;gap:4px}
.film-index-template-details{min-inline-size:0;margin:0}
.film-index-template-details legend:not(.sr-only){padding-inline:4px;color:var(--film-ink);font-size:13px;font-weight:650}
.film-index-template-details [data-index-template-size-inputs]:not([hidden]){display:grid;gap:6px}
.film-index-template-details button{justify-self:start}
.film-index-template-editor .button.light:disabled:not(.remove-action){background:var(--film-inset);border-color:var(--film-border);color:var(--film-muted)}
.film-index-size-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.film-index-size-heading output{display:grid;align-items:center;min-height:36px;color:var(--film-muted);font-size:12px;font-variant-numeric:tabular-nums}
.film-index-color-controls{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:6px;min-inline-size:0}
.film-index-template-details .film-index-color-controls input[type=color]{padding:3px;cursor:pointer}
.film-index-color-controls input[type=text]{font-variant-numeric:tabular-nums}
.film-index-color-controls .button{white-space:normal}
.film-index-brand-logo{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:8px}
.film-index-brand-logo-preview{width:48px;height:48px;display:grid;place-items:center;border:1px solid var(--film-border);border-radius:5px;background:var(--film-inset);color:var(--film-muted);font-size:11px}
.film-index-brand-logo-preview img{display:block;width:100%;height:100%;object-fit:contain}
.film-index-brand-logo-controls,.film-index-template-editor [data-index-template-text-color-row]:not([hidden]){display:grid;gap:4px}
.film-index-inline-actions{display:flex;flex-wrap:wrap;gap:4px}
.film-index-template-editor [data-index-template-status],.film-index-template-editor [data-index-template-error]{margin:0}
.film-index-template-editor .field-error{margin:0}
@media(max-width:720px){
  .roll-label-editor-backdrop{padding:8px}
  .roll-label-editor{width:100%;height:calc(100dvh - 16px);gap:10px;padding:12px}
  .roll-label-editor-main{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,2fr) minmax(0,3fr);gap:10px}
  .roll-label-editor-stage{padding:8px}
  .roll-label-editor-canvas,.roll-label-editor-inspector{gap:8px}
  .roll-label-editor-actions .button{min-height:40px}
  .film-index-template-editor{width:100%;height:calc(100dvh - 16px)}
  .film-index-template-editor .roll-label-editor-main{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,2fr) minmax(0,3fr)}
  .film-index-template-stage{gap:8px}
  .film-index-template-caption{font-size:11px}
}
.member-card-modal{width:min(92vw,860px)}.member-card-code{font:700 20px ui-monospace,monospace;overflow-wrap:anywhere}.member-card-preview{width:100%;overflow:auto}.member-card-preview .member-card-svg{display:block;width:100%;height:auto;max-height:42vh}
.pickup-code-list{display:grid;gap:8px;margin:14px 0}.pickup-code-list>div{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid var(--film-border);border-radius:8px;padding:10px}.pickup-code-list code{font:700 20px ui-monospace,monospace;letter-spacing:.1em}.scanned-roll-search-modal{width:min(92vw,560px);max-height:min(86vh,760px);overflow:auto}.scanned-roll-search-modal>header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.scanned-roll-search-modal>header h2{margin:0 0 5px}.scanned-roll-search-modal>header p{margin:0}.scanned-roll-search-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}.scanned-roll-search-summary>div{display:grid;gap:4px;min-width:0;padding:10px;border:1px solid var(--film-border);border-radius:8px;background:var(--film-inset)}.scanned-roll-search-summary small{color:var(--film-muted);font-size:11px}.scanned-roll-search-summary strong{overflow-wrap:anywhere}.scanned-roll-search-modal .panel{margin:12px 0 0;padding:14px}.scanned-roll-search-modal .panel h3{margin:0 0 10px;font-size:14px}.scanned-roll-search-modal .panel p{margin:0 0 12px}.scanned-roll-search-modal footer{display:flex;justify-content:flex-end;margin-top:14px}@media(max-width:480px){.scanned-roll-search-summary{grid-template-columns:1fr}}
.anonymous-shell{min-height:100vh;background:#eef3f8}.anonymous-shell main{max-width:740px}.anonymous-shell .top{background:#172b46}.one-time-code{font-size:24px;letter-spacing:.15em;font-weight:800;color:#285c91;overflow-wrap:anywhere}.code-modal{width:min(90vw,470px)}
.combined-choice{padding:10px;border:1px solid #e2e9df;border-radius:8px;align-items:flex-start}.combined-choice span{display:grid;gap:3px}.combined-choice small{color:#798a7e;font-size:11px}.combined-choice input{margin-top:3px}

.scanned-roll-search-modal .modal-close{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;margin:-6px -6px 0 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--film-muted);font-size:26px;line-height:1}
.scanned-roll-search-modal .modal-close:hover{border:0;background:transparent;color:var(--film-ink)}
.scanned-roll-search-modal .modal-close:focus-visible{outline:0;outline-offset:0;box-shadow:none;border:0;background:transparent}
.scanned-waybill-search-modal{width:min(92vw,760px)}
.scanned-roll-result-cards{display:grid;gap:10px;margin-top:16px}
.scanned-roll-result-card{display:grid;gap:9px;width:100%;min-width:0;padding:13px;border:1px solid var(--film-border);border-radius:10px;background:var(--film-surface);color:var(--film-ink);text-align:left;cursor:pointer}
.scanned-roll-result-card:hover{border-color:var(--film-accent);background:var(--film-raised)}
.scanned-roll-result-card:focus-visible{outline:2px solid var(--film-accent);outline-offset:2px}
.scanned-roll-result-card>strong{font-size:14px}
.scanned-roll-waybill-card{cursor:pointer}
.scanned-roll-waybill-card:hover{border-color:var(--film-accent);background:var(--film-raised)}
.scanned-roll-card-line{display:flex;gap:14px;overflow-x:auto;white-space:nowrap;color:var(--film-muted);font-size:12px;scrollbar-width:thin}
.scanned-roll-card-line>span{flex:0 0 auto}
.scanned-roll-card-line>span strong{color:var(--film-ink);font-weight:650}
.scanned-roll-search-modal footer{margin-top:12px}
.scanned-waybill-empty{display:grid;gap:8px;padding:14px;border:1px solid var(--film-border);border-radius:10px;background:var(--film-inset);color:var(--film-muted)}
.scanned-waybill-empty strong{color:var(--film-ink)}


/* 订单行：主区域打开详情，右侧独立展开简要预览。 */
.order-summary-row{display:block}.order-card.order-summary-row{padding:0}.order-card-main{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 12px;width:100%}.order-row-open{border:0;background:transparent;color:#22342a;text-align:left;min-width:0;width:100%;padding:16px 18px;cursor:pointer;border-radius:12px}.dashboard-recent .order-row-open{padding:13px 4px}.order-row-open:hover{background:#f6faf5}.order-row-open:focus-visible,.order-preview-toggle:focus-visible{outline:2px solid #245b42;outline-offset:2px}.order-row-open>strong,.order-row-title{display:block;font-size:14px;overflow-wrap:anywhere}.order-row-title{font-size:17px;margin:6px 0}.order-row-open>small,.order-row-meta{display:block;color:#738278;font-size:12px;margin-top:4px;overflow-wrap:anywhere}.order-preview-toggle{margin-right:18px;white-space:nowrap}.dashboard-recent .order-preview-toggle{margin-right:2px}.order-preview{grid-column:1/-1;margin:0 18px 16px;padding:12px 14px;border:1px solid #e2e9e0;border-radius:9px;background:#f8faf6;display:grid;gap:8px;font-size:12px}.order-preview[hidden]{display:none}.dashboard-recent .order-preview{margin:0 0 13px}.order-preview>div{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}.order-preview strong{min-width:64px;color:#315b42}.order-preview span{color:#263b2d;overflow-wrap:anywhere}.order-preview p{margin:0;color:#91662b}
@media(max-width:650px){.order-card-main{grid-template-columns:minmax(0,1fr) auto;gap:0 6px}.order-row-open{padding:14px 11px}.dashboard-recent .order-row-open{padding:12px 0}.order-preview-toggle{margin-right:10px}.order-preview{margin:0 10px 12px}.order-row-title{font-size:15px}}

/* Local operations shell: light, scan-first, and separate from the customer surface. */
.staff {
  --ops-bg: #f4f7fa;
  --ops-surface: #fff;
  --ops-border: #dce4eb;
  --ops-ink: #172b3a;
  --ops-muted: #526476;
  --ops-accent: #235c47;
  --ops-accent-soft: #e8f2ec;
  --ops-warning: #9a6816;
  background: var(--ops-bg);
  color: var(--ops-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.staff .layout { grid-template-columns: 216px minmax(0, 1fr); background: var(--ops-bg); }
.staff .shop-sidebar { background: #fff; color: var(--ops-ink); border-right: 1px solid var(--ops-border); box-shadow: none; }
.staff .side-brand { border-bottom-color: var(--ops-border); }
.staff .side-brand strong, .staff .side-account strong { color: var(--ops-ink); }
.staff .side-brand small, .staff .side-account small { color: var(--ops-muted); }
.staff .business-nav .nav-item { min-height: 44px; color: #314454; border-radius: 7px; }
.staff .business-nav .nav-item:hover { background: #f2f6f8; color: var(--ops-ink); }
.staff .business-nav .nav-item.active { background: var(--ops-accent-soft); color: var(--ops-accent); box-shadow: inset 3px 0 var(--ops-accent); }
.staff .business-nav .nav-item.active svg { color: var(--ops-accent); }
.staff .nav-count { background: #e8eef3; color: #385365; }
.staff .nav-scroll-hint { color: var(--ops-muted); }
.staff .side-environment { background: #f3f6f8; border: 1px solid var(--ops-border); color: var(--ops-muted); }
.staff .side-environment strong { color: #435b6d; }
.staff .side-environment small { color: #526476; }
.staff .shop-sidebar .side-tool { color: #405669; }
.staff .side-tool:hover { background: #f1f5f7; color: var(--ops-accent); }
.staff .shop-sidebar .nav-item:focus-visible, .staff .shop-sidebar .side-tool:focus-visible { outline-color: #245c45; }
.staff .side-account { border-top-color: var(--ops-border); }
.staff .workspace { min-width: 0; background: var(--ops-bg); }
.staff .top { min-height: 62px; padding: 10px 22px; gap: 14px; color: var(--ops-ink); background: #fff; border-bottom: 1px solid var(--ops-border); box-shadow: none; }
.staff .workspace-name { min-width: 150px; color: #344b5b; font-size: 13px; font-weight: 600; white-space: nowrap; }
.staff .workspace-name span { display: none; }
.staff .top-search { flex: 1 1 320px; min-width: 180px; max-width: 420px; }
.staff .top-search-control { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.code-search-suggestions { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: max(100%, 340px); max-width: min(520px, calc(100vw - 32px)); max-height: min(380px, 65vh); overflow: auto; padding: 6px; border: 1px solid var(--film-border); border-radius: 10px; background: var(--film-surface); color: var(--film-ink); box-shadow: 0 16px 36px #10233b2b; }
.code-search-suggestions[hidden] { display: none; }
.code-search-suggestions[data-motion-kind="popover"] { overflow: auto; }
.staff .code-search-suggestions[data-motion-kind="popover"] { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.code-search-group-label { padding: 8px 9px 5px; color: var(--film-muted); font-size: 11px; font-weight: 700; }
.code-search-option { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 9px; border: 0; border-radius: 7px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.code-search-option:hover, .code-search-option:focus-visible, .code-search-option.is-active { outline: none; background: var(--film-raised); }
.staff .code-search-suggestions .code-search-option { min-height: 40px; padding: 9px; border: 0; border-radius: 7px; background: transparent; color: var(--film-ink); }
.staff .code-search-suggestions .code-search-option:hover, .staff .code-search-suggestions .code-search-option:focus-visible, .staff .code-search-suggestions .code-search-option.is-active { background: var(--film-raised); }
.code-search-option-main { display: grid; min-width: 0; gap: 3px; }
.code-search-option-main strong, .code-search-option-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-search-option-main strong { font-size: 12px; }
.code-search-option-main small, .code-search-option-status { color: var(--film-muted); font-size: 11px; }
.code-search-option-status { flex: 0 0 auto; }
.code-search-empty { padding: 14px 10px; color: var(--film-muted); font-size: 12px; }
.search-result-highlight { animation: search-result-card-flash var(--motion-content) var(--motion-ease-neutral) 1; }
.staff .orders-table tr.search-result-highlight > td { animation: search-result-cell-flash var(--motion-content) var(--motion-ease-neutral) 1; }
@keyframes search-result-card-flash { 0%,100% { background-color: transparent; } 35%,72% { background-color: var(--film-accent-soft); } }
@keyframes search-result-cell-flash { 0%,100% { background-color: var(--film-surface); } 35%,72% { background-color: var(--film-accent-soft); } }
@media(prefers-reduced-motion:reduce){.search-result-highlight,.staff .orders-table tr.search-result-highlight>td{animation:none}}
.staff .top-search input { min-width: 0; border: 1px solid var(--ops-border); border-radius: 7px; background: #f8fafb; color: var(--ops-ink); outline: none; }
.staff .top-search input:focus-visible { border-color: #3d8064; box-shadow: 0 0 0 3px #3d806426; }
.staff .top-search > .top-search-submit { flex: 0 0 56px; min-width: 56px; white-space: nowrap; writing-mode: horizontal-tb; border: 0; border-radius: 7px; background: #e7f0eb; color: var(--ops-accent); }
.staff .top-search-control > .top-search-scan { flex: 0 0 32px; min-width: 32px; padding: 6px !important; border: 0; border-radius: 7px; background: transparent; color: var(--ops-accent); }
.staff .top .right { flex: 0 0 auto; gap: 8px; white-space: nowrap; color: #405566; }
.staff .top .right .pill { padding: 6px 9px; color: #516c5b; background: #f0f5f1; border-color: #d8e5da; letter-spacing: 0; }
.staff .top .right button { border: 1px solid var(--ops-border); border-radius: 7px; color: #344b5b; background: #fff; }
.staff .top .right button:hover { background: #f3f6f8; }
.staff main { max-width: 1600px; padding: 24px clamp(18px, 2.1vw, 32px); }
.staff h1, .staff h2, .staff h3, .staff .stat strong { font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.staff h1 { margin: 0; color: #172b3a; font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; }
.staff h2 { color: #20394b; font-size: 16px; font-weight: 650; }
.staff .eyebrow { color: #527464; letter-spacing: .1em; }
.staff .muted, .staff .queue-row small { color: #526476; }
.staff .title-row { align-items: center; margin-bottom: 18px; }
.staff .title-row > .button { flex: 0 0 auto; white-space: nowrap; }
.staff .title-row p { margin: 5px 0 0; }
.staff .title-row .eyebrow { display: none; }
.staff .panel, .staff .stat, .staff .order-card, .staff .roll-card { border: 1px solid var(--ops-border); border-radius: 9px; background: var(--ops-surface); box-shadow: 0 1px 2px #12293a08; }
.staff .stat { padding: 14px 16px; }
.staff .stat strong { margin-top: 4px; color: var(--ops-ink); font-size: 23px; font-variant-numeric: tabular-nums; }
.staff .panel { padding: 18px; }
.staff .button { min-height: 38px; border-radius: 7px; background: var(--ops-accent); }
.staff .button:hover { background: #194f3a; }
.staff .button.light { background: #fff; border-color: var(--ops-border); color: #345164; }
.staff .button.light:hover { background: #f3f6f8; }
.staff .button.secondary { background: #e8f1ec; color: #265b43; }
.staff .button.warn { background: #fff2dd; color: #835c17; }
.staff .button.small { min-height: 34px; border-radius: 6px; }
.staff button:focus-visible, .staff a:focus-visible, .staff input:focus-visible, .staff select:focus-visible, .staff textarea:focus-visible { outline: 3px solid #43856a66; outline-offset: 2px; }
.staff .badge { border-radius: 5px; font-variant-numeric: tabular-nums; }
.staff .orders-summary { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 8px 0 13px; margin-bottom: 10px; border-bottom: 1px solid var(--ops-border); color: var(--ops-muted); font-size: 12px; }
.staff .orders-summary span { font-variant-numeric: tabular-nums; }
.staff .orders-filters { display: grid; grid-template-columns: minmax(190px, 1fr) 150px 150px 140px auto; align-items: end; gap: 10px; margin: 12px 0 16px; padding: 12px; border: 1px solid var(--ops-border); border-radius: 8px; background: #fff; }
.staff .orders-filters .field { gap: 5px; color: #4d6271; font-size: 11px; }
.staff .orders-filters input, .staff .orders-filters select { height: 38px; border-color: #ccd8e1; border-radius: 6px; background-color: #fff; color: var(--ops-ink); font-size: 13px; }
.staff .orders-filters select:focus-visible { outline: none; border-color: var(--film-focus); box-shadow: 0 0 0 2px #2a70b826; }
.staff .filter-actions { display: flex; gap: 6px; }
.staff .orders-workspace { --order-preview-width: 370px; --order-preview-min-list: 0px; display: grid; grid-template-columns: minmax(var(--order-preview-min-list), 1fr) 0px; gap: 0; align-items: start; min-width: 0; }
.staff .orders-workspace.has-preview { grid-template-columns: minmax(var(--order-preview-min-list), 1fr) var(--order-preview-width); gap: 14px; }
.staff .orders-workspace.is-closing { grid-template-columns: minmax(var(--order-preview-min-list), 1fr) 0px; gap: 0; }
.staff .order-preview-slot { position: sticky; top: 14px; align-self: start; width: 0; height: 0; min-width: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(16px); }
.staff .orders-workspace.has-preview .order-preview-slot { width: var(--order-preview-width); height: calc(100dvh - 90px); overflow: visible; opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
.staff .orders-workspace.is-opening .order-preview-slot { overflow: hidden; }
.staff .orders-workspace.is-closing { overflow-x: hidden; }
.staff .orders-workspace.is-closing .order-preview-slot { width: var(--order-preview-width); height: calc(100dvh - 90px); opacity: 1; visibility: visible; pointer-events: none; transform: translateX(0); }
.staff .orders-table-scroll { min-width: 0; overflow-x: auto; border: 1px solid var(--ops-border); border-radius: 9px; background: #fff; }
.staff .orders-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.staff .orders-table th { padding: 11px 12px; border-bottom: 1px solid var(--ops-border); background: #f5f8fa; color: #526777; text-align: left; font-size: 11px; font-weight: 650; white-space: nowrap; }
.staff .orders-table td { padding: 10px 12px; border-bottom: 1px solid #e8edf1; color: #334b5c; font-size: 12px; vertical-align: middle; }
.staff .orders-table tr:last-child td { border-bottom: 0; }
.staff .order-table-row { cursor: pointer; transition: background-color var(--motion-feedback) var(--motion-ease-feedback); }
.staff .order-table-row:hover { background: #f5f9f6; }
.staff .order-table-row:focus-within { background: #f3f8fd; }
.staff .orders-table:not(.receiving-orders-table) th:nth-child(-n+6) { width: calc((100% - 96px) / 6); }
.staff .orders-table:not(.receiving-orders-table) th:nth-child(7) { width: 96px; }
.staff .order-row-open { display: grid; width: 100%; gap: 3px; padding: 4px 0; border: 0; border-radius: 4px; background: transparent; color: var(--ops-ink); text-align: left; }
.staff .order-row-open:hover { background: transparent; }
.staff .order-row-open strong { color: #1c3a4b; font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.staff .order-row-open .order-row-customer { color: #243b4f; font-size: 14px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.staff .order-row-open .order-row-bag, .staff .orders-table td small { color: #5b7080; font-size: 11px; }
.staff .order-source-cell { text-align: center; }
.customer .order-detail-status .order-row-source,
.staff .order-row-source { display: inline-flex; width: fit-content; max-width: 100%; padding: 3px 8px; border-radius: 999px; background: var(--film-inset); color: var(--film-muted); font-size: 10px; font-weight: 650; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.staff .order-source-subnav-item > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.staff .receipt-count { display: block; margin-top: 3px; color: #526476; font-size: 11px; }
.staff .attention-cell { color: #526476; }
.staff .orders-empty { display: grid; justify-items: start; gap: 8px; padding: 28px; color: #526476; }
.staff .orders-empty strong { color: var(--ops-ink); }
.staff .order-inspector { position: relative; display: flex; width: 100%; min-width: 0; height: 100%; max-height: 100%; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: auto; scrollbar-gutter: stable; touch-action: pan-y pinch-zoom; border: 1px solid var(--ops-border); border-radius: 9px; background: #fff; box-shadow: 0 2px 8px #1834490c; }
.staff .inspector-header, .staff .inspector-customer, .staff .inspector-scroll, .staff .inspector-footer { flex: 0 0 auto; }
.staff .inspector-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid var(--ops-border); }
.staff .inspector-header small { color: #5b7080; font-size: 11px; }
.staff .inspector-header h2 { margin: 4px 0 0; font-size: 18px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.staff .icon-button { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid var(--ops-border); border-radius: 6px; background: #fff; color: #304c5d; font-size: 20px; }
.staff .icon-button svg { display: block; width: 18px; height: 18px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.staff .inspector-customer { display: grid; justify-items: start; gap: 3px; padding: 11px 16px; border-bottom: 1px solid var(--ops-border); }
.staff .inspector-customer strong { color: #20394b; font-size: 16px; font-weight: 750; line-height: 1.3; }
.staff .inspector-customer .inspector-customer-phone { color: #526476; font-size: 12px; }
.staff .inspector-customer small { color: #718091; font-size: 11px; }
.staff .inspector-scroll { flex: 0 0 auto; overflow: visible; overscroll-behavior-y: auto; padding: 4px 16px 14px; }
.staff .inspector-scroll h3 { margin: 15px 0 8px; color: #3b5365; font-size: 12px; }
.staff .inspector-order-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.staff .inspector-bag-state { display: flex; align-items: center; gap: 8px; min-width: 0; }
.staff .inspector-bag-state strong { color: #20394b; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.staff .inspector-order-counts { margin-left: auto; color: #526476; font-size: 11px; text-align: right; }
.staff .inspector-order-note { margin: 0 0 10px; padding: 9px 11px; border-left: 3px solid #bdcad8; border-radius: 5px; background: #f6f8fa; }
.staff .inspector-order-note strong { color: #526476; font-size: 11px; }
.staff .inspector-order-note p { margin: 4px 0 0; color: #283f50; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.staff .inspector-roll { padding: 11px 0; border-bottom: 1px solid #e7edf1; }
.staff .inspector-roll-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.staff .inspector-roll-heading strong { color: #284457; font-size: 12px; }
.staff .inspector-roll dl { display: grid; gap: 7px; margin: 9px 0 0; }
.staff .inspector-roll dl > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: baseline; gap: 8px; }
.staff .inspector-roll dt { color: #617687; font-size: 11px; text-align: left; }
.staff .inspector-roll dd { margin: 0; color: #283f50; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.staff .inspector-roll-note dd { white-space: pre-wrap; }
.staff .inspector-order-intent { display: grid; justify-items: center; gap: 5px; margin: 12px 0 16px; padding: 12px; border: 1px solid #e1e8ef; border-radius: 8px; background: #f5f8fc; text-align: center; }
.staff .inspector-order-intent small { color: #617687; font-size: 11px; }
.staff .inspector-order-intent strong { color: #20394b; font-size: 14px; }
.staff .inspector-roll .inspector-stage-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 8px; }
.staff .inspector-stage-row dt { text-align: left; }
.staff .inspector-stage-row dd { width: 100%; }
.staff .inspector-stage-progress { display: flex; width: 100%; padding: 9px 4px 8px; border-radius: 7px; background: #f4f7f9; }
.staff .inspector-stage { position: relative; flex: 1 1 0; min-width: 0; text-align: center; }
.staff .inspector-stage-rail { position: relative; height: 13px; margin-bottom: 4px; }
.staff .inspector-stage-node { position: relative; z-index: 1; display: block; width: 10px; height: 10px; margin: 1px auto 0; border: 2px solid #c7d0d8; border-radius: 50%; background: #f4f7f9; }
.staff .inspector-stage-connector { position: absolute; z-index: 0; top: 4px; left: 50%; width: 100%; height: 3px; overflow: visible; border-radius: 3px; background: #d7dee5; }
.staff .inspector-stage-connector.is-done { background: #79a985; }
.staff .inspector-stage.is-done .inspector-stage-node { border-color: #68a477; background: #68a477; }
.staff .inspector-stage.is-active .inspector-stage-node,.staff .inspector-stage.is-current:not(.is-done) .inspector-stage-node { border-color: #3568dc; background: #fff; box-shadow: 0 0 0 4px #eaf0ff; animation: roll-stage-pulse 2s ease-in-out infinite; }
.staff .inspector-stage strong, .staff .inspector-stage small { position: relative; z-index: 1; display: block; overflow-wrap: anywhere; }
.staff .inspector-stage strong { color: #334b5c; font-size: 11px; font-weight: 650; }
.staff .inspector-stage small { margin-top: 3px; color: #8794a0; font-size: 9px; line-height: 1.3; }
.staff .inspector-stage.is-active small { color: #315fae; font-weight: 700; }
.staff .inspector-stage.is-done small { color: #3d7252; }
.staff .inspector-stage.is-current strong,.staff .inspector-stage.is-current small { color: #315fae; font-weight: 700; }
.staff .inspector-stage-empty { padding: 9px 8px; border-radius: 7px; background: #f4f7f9; color: #718091; text-align: center; }
.staff .inspector-current-stage { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 12px; border-radius: 6px; background: #e9f0ff; color: #315fae; font-weight: 700; }
.staff .inspector-footer { position: sticky; bottom: 0; z-index: 1; margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--ops-border); background: var(--film-surface); }
.staff .inspector-footer .button { width: 100%; }
.staff .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.staff .dashboard-queue { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 10px 0 20px; }
.staff .dashboard-queue-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; min-height: 68px; padding: 10px 12px; border: 1px solid var(--ops-border); border-radius: 7px; background: #fff; color: #40586a; text-align: left; }
.staff .dashboard-queue-item strong { grid-column: 2; grid-row: 1 / span 2; color: #1d3e50; font-size: 21px; font-variant-numeric: tabular-nums; }
.staff .dashboard-queue-item small { color: #526476; }
.staff .dashboard-queue-item:hover { border-color: #a8c9e8; background: #f3f8fd; }
@media (min-width: 900px) and (max-width: 1399px) {
  .staff .top { gap: 10px; padding-inline: 14px; }
  .staff .workspace-name { flex: 0 1 160px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .staff .top-search { flex: 1 1 200px; min-width: 180px; max-width: 360px; }
  .staff .top .right { gap: 6px; }
  .staff .top .right .pill { display: none; }
}
@media (max-width: 1199px) {
  .staff .orders-workspace { --order-preview-width: min(340px, 38vw); --order-preview-min-list: 0px; overflow-x: visible; }
  .staff .orders-table-scroll { min-width: 320px; }
  .staff .orders-filters { grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(130px, .7fr)); }
  .staff .orders-filters label:nth-child(4) { grid-column: 1 / 2; }
  .staff .filter-actions { grid-column: 2 / -1; justify-content: flex-end; }
  .staff .orders-filters input, .staff .orders-filters select, .staff .orders-filters button, .staff .orders-table .order-preview-toggle, .staff .order-inspector .button, .staff .order-inspector .icon-button, .staff .queue-row .button { min-height: 44px; }
  .staff .dashboard-queue { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .staff .layout { grid-template-columns: 190px minmax(0, 1fr); }
  .staff .top { flex-wrap: wrap; }
  .staff .workspace-name { min-width: 130px; }
  .staff .orders-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff .orders-filters label:first-child { grid-column: 1 / -1; }
  .staff .orders-filters .filter-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .staff .dashboard-queue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .staff .orders-workspace { --order-preview-width: 320px; --order-preview-min-list: 320px; overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth; }
  .staff .top { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 8px 12px; }
  .staff .top-search { grid-column: 1 / -1; max-width: none; width: 100%; }
  .staff .workspace-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .staff .orders-summary { gap: 8px 14px; }
  .staff .orders-filters { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .staff .orders-table-scroll { overflow: visible; border: 0; background: transparent; }
  .staff .orders-table, .staff .orders-table tbody { display: block; }
  .staff .orders-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .staff .orders-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; margin-bottom: 8px; padding: 10px; border: 1px solid var(--ops-border); border-radius: 8px; background: #fff; }
  .staff .orders-table td { display: block; padding: 2px; border: 0; }
  .staff .orders-table td:nth-child(1) { grid-column: 1 / -1; }
  .staff .orders-table td:nth-child(2), .staff .orders-table td:nth-child(4), .staff .orders-table td:nth-child(5), .staff .orders-table td:nth-child(6) { display: none; }
  .staff .orders-table td:nth-child(3) { grid-column: 1; }
  .staff .orders-table td:nth-child(7) { grid-column: 2; grid-row: 2; }
  .staff .orders-table td.order-source-cell { display: block; grid-column: 1; grid-row: 2; text-align: left; }
  .staff .orders-table td.order-source-cell::before { content: "来源"; display: block; margin-bottom: 3px; color: var(--ops-muted); font-size: 10px; font-weight: 650; }
  .staff .order-row-open { gap: 2px; }
  .staff .order-row-open small { display: none; }
  .staff .inspector-header, .staff .inspector-footer { padding: 14px; }
  .staff .icon-button { width: 44px; height: 44px; }
  .staff .dashboard-queue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Contact correction is secondary to the order's current processing action. */
.staff .top { height: auto; min-height: 64px; }
.order-note { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
body.modal-open, body.order-preview-modal-open { overflow: hidden; }
button[data-pending="true"], form[data-busy="true"] [type="submit"] { cursor: progress; }
[data-ui="form-feedback"] { width: 100%; margin: 8px 0 0; }
.draft-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.refresh-button svg { width: 18px; height: 18px; display: block; }
.contact-editor > summary, .contact-history > summary { cursor: pointer; font-weight: 650; min-height: 24px; }
.contact-editor > summary:focus-visible, .contact-history > summary:focus-visible { outline: 2px solid var(--film-accent, #2a70b8); outline-offset: 4px; }
.contact-history { margin-top: 16px; }
.order-contact-modal { width: min(100%, 560px); max-height: min(90vh, 760px); overflow-y: auto; background: var(--film-surface); color: var(--film-ink); }
.order-contact-modal .modal-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.order-contact-modal .modal-title-row h2 { margin: 0 0 12px; }
.order-contact-modal > .muted { margin: 0 0 18px; }
.order-contact-modal .contact-history { padding-top: 12px; border-top: 1px solid var(--film-border); }
.order-contact-modal .contact-history h3 { margin: 0; font-size: 14px; }
.order-detail-tools > .button { justify-self: end; }
.contact-change { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--film-border, #d3dfeb); overflow-wrap: anywhere; }
.contact-change p { margin: 4px 0; }
.contact-change > div { color: var(--film-muted, #526476); font-size: 13px; line-height: 1.6; }

/* Receiving list and order identity hierarchy. */
.staff .receiving-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.staff .receiving-summary .receiving-metric { min-width: 0; padding: 14px 16px; cursor: default; }
.staff .receiving-summary .receiving-metric.primary { border-left: 3px solid var(--film-accent, #2863e9); }
.staff .receiving-overview { margin: 18px 0 14px; }
.staff .receiving-overview > h2 { margin: 0 0 9px; color: var(--film-ink); font-size: 18px; font-weight: 700; }
.staff .receiving-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.staff .receiving-overview-metric { min-width: 0; padding: 14px 16px; border: 1px solid var(--film-border); background: var(--film-surface); }
.staff .receiving-overview-metric > span { color: var(--film-muted); font-size: 12px; }
.staff .receiving-overview-metric > strong { display: block; margin-top: 4px; color: var(--film-ink); font-size: 30px; font-variant-numeric: tabular-nums; }
.staff .receiving-overview-metric > strong small { margin-left: 5px; color: var(--film-muted); font-size: 12px; font-weight: 500; }
.staff .receiving-summary .receiving-metric > span { color: var(--film-muted); font-size: 12px; }
.staff .receiving-summary .receiving-metric > strong { display: block; margin-top: 4px; color: var(--film-ink); font-size: 30px; font-variant-numeric: tabular-nums; }
.staff .receiving-summary .receiving-metric > strong small { margin-left: 5px; color: var(--film-muted); font-size: 12px; font-weight: 500; }
.staff .receiving-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.staff .receiving-list-heading h2 { margin: 0; color: var(--film-ink); font-size: 18px; font-weight: 700; }
.staff .receiving-list-heading h3 { margin: 0; color: var(--film-ink); font-size: 15px; font-weight: 700; }
.staff .receiving-list-heading > small { color: var(--film-muted); font-size: 12px; }
.staff .receiving-overview-queues { display: grid; gap: 18px; }
.staff .receiving-overview-group { min-width: 0; }
.staff .receiving-overview-group .receiving-list-heading { margin-bottom: 8px; }
.staff .orders-table-scroll.receiving-table-scroll { border-color: var(--film-border); background: var(--film-surface); }
.staff .orders-table.receiving-orders-table th:nth-child(1) { width: 33.333%; text-align: center; }
.staff .orders-table.receiving-orders-table th:nth-child(2) { width: 33.333%; text-align: center; }
.staff .orders-table.receiving-orders-table th:nth-child(3) { width: 33.334%; padding-right: 44px; text-align: right; }
.staff .orders-table.receiving-orders-table.is-waiting th:nth-child(1) { width: 18%; text-align: center; }
.staff .orders-table.receiving-orders-table.is-waiting th:nth-child(2) { width: 27%; text-align: center; }
.staff .orders-table.receiving-orders-table.is-waiting th:nth-child(3) { width: 18%; padding-right: 12px; text-align: center; }
.staff .orders-table.receiving-orders-table.is-waiting th:nth-child(4) { width: 18%; padding-right: 12px; text-align: center; }
.staff .orders-table.receiving-orders-table.is-waiting th:nth-child(5) { width: 19%; padding-right: 44px; text-align: right; }
.staff .orders-table.receiving-orders-table.is-arrived th:nth-child(1) { width: 18%; text-align: center; }
.staff .orders-table.receiving-orders-table.is-arrived th:nth-child(2) { width: 26%; text-align: center; }
.staff .orders-table.receiving-orders-table.is-arrived th:nth-child(3) { width: 20%; padding-right: 12px; text-align: center; }
.staff .orders-table.receiving-orders-table.is-arrived th:nth-child(4) { width: 16%; padding-right: 12px; text-align: center; }
.staff .orders-table.receiving-orders-table.is-arrived th:nth-child(5) { width: 20%; padding-right: 44px; text-align: right; }
.staff .orders-table.receiving-orders-table.is-offline th:nth-child(1) { width: 18%; text-align: center; }
.staff .orders-table.receiving-orders-table.is-offline th:nth-child(2) { width: 27%; text-align: center; }
.staff .orders-table.receiving-orders-table.is-offline th:nth-child(3) { width: 19%; text-align: center; }
.staff .orders-table.receiving-orders-table.is-offline th:nth-child(4) { width: 19%; text-align: center; }
.staff .orders-table.receiving-orders-table.is-offline th:nth-child(5) { width: 17%; padding-right: 44px; text-align: right; }
.staff .orders-table.receiving-orders-table td { padding: 9px 12px; }
.staff .orders-table.receiving-orders-table td:nth-child(1) { text-align: center; }
.staff .orders-table.receiving-orders-table td:nth-child(2) { text-align: center; }
.staff .orders-table.receiving-orders-table.is-waiting td:nth-child(3) { text-align: center; }
.staff .orders-table.receiving-orders-table.is-waiting td:nth-child(4) { text-align: center; }
.staff .orders-table.receiving-orders-table.is-arrived td:nth-child(3), .staff .orders-table.receiving-orders-table.is-arrived td:nth-child(4) { text-align: center; }
.staff .receiving-waiting-order-open { width: 100%; justify-content: center; color: var(--film-ink); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.staff .receiving-waiting-customer { display: grid; justify-items: center; gap: 3px; min-width: 0; }
.staff .receiving-waiting-customer .receiving-name-line { width: 100%; }
.staff .receiving-waiting-customer .receiving-contact { margin: 0; }
.staff .receiving-waiting-waybill { color: var(--film-muted); font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: center; }
.staff .receiving-arrived-order-open { width: 100%; justify-content: center; color: var(--film-ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.staff .receiving-priority-code { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.staff .receiving-priority-code > strong { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.staff .receiving-priority-code > small { color: var(--film-muted); font-size: 10px; font-weight: 500; overflow-wrap: anywhere; }
.staff .receiving-arrived-customer { display: grid; justify-items: center; gap: 3px; min-width: 0; }
.staff .receiving-arrived-customer-identity { display: flex; align-items: baseline; justify-content: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.staff .receiving-arrived-customer-identity > span { color: var(--film-muted); font-size: 12px; }
.staff .receiving-arrived-customer strong { color: var(--film-ink); font-size: 14px; font-weight: 700; }
.staff .receiving-arrived-customer small { color: var(--film-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.staff .receiving-offline-order-open { width: 100%; justify-content: center; color: var(--film-ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.staff .receiving-offline-bag-code, .staff .receiving-offline-progress { color: var(--film-ink); font-size: 13px; font-weight: 650; text-align: center; overflow-wrap: anywhere; }
.staff .receiving-offline-progress { color: var(--film-muted); }
.staff .receiving-arrival-date .order-date-cell { display: grid; justify-items: center; gap: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.staff .receiving-arrival-date .order-date-day { display: block; color: var(--film-ink); }
.staff .receiving-arrival-date .order-date-clock { display: block; color: var(--film-muted); font-size: 11px; }
.staff .receiving-pending-roll-cell { white-space: nowrap; }
.staff .receiving-pending-roll-count { color: var(--film-button); font-size: 16px; font-variant-numeric: tabular-nums; }
.staff .receiving-pending-roll-cell small { margin-left: 4px; color: var(--film-muted); font-size: 11px; }
.staff .orders-table.receiving-orders-table.is-waiting .order-date-cell { display: grid; justify-items: center; gap: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.staff .orders-table.receiving-orders-table.is-waiting .order-date-day { display: block; color: var(--film-ink); }
.staff .orders-table.receiving-orders-table.is-waiting .order-date-clock { display: block; color: var(--film-muted); font-size: 11px; }
.staff .receiving-orders-row.is-urgent { background: #fff8e6; }
.staff .orders-table.receiving-orders-table .receiving-order-open { gap: 4px; text-align: center; }
.staff .receiving-name-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 5px 10px; min-width: 0; }
.staff .receiving-name-line > strong { color: var(--film-ink); font-size: 16px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.staff .receiving-name-line > .receiving-customer-id { letter-spacing: .01em; }
.staff .receiving-contact { display: block; width: 100%; color: var(--film-muted); font-size: 11px; text-align: center; overflow-wrap: anywhere; }
.staff .receiving-identifiers { display: grid; grid-template-columns: max-content 1px max-content; align-items: stretch; justify-content: center; gap: 20px; margin-top: 2px; }
.staff .receiving-identifier { display: grid; gap: 2px; min-width: 0; text-align: center; }
.staff .receiving-identifier small { color: var(--film-muted); font-size: 9px; font-weight: 650; }
.staff .receiving-identifier strong { color: var(--film-ink); font-size: 16px; font-weight: 700; letter-spacing: .01em; overflow-wrap: anywhere; }
.staff .receiving-identifier.is-primary strong { font-size: 18px; }
.staff .receiving-identifier.is-secondary strong { color: var(--film-muted); font-size: 14px; font-weight: 600; }
.staff .receiving-identifier-divider { width: 1px; min-height: 34px; background: var(--film-border); }
.staff .receiving-counts { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.staff .receiving-counts > span { display: inline-flex; align-items: baseline; justify-content: center; gap: 3px; padding: 0; border-radius: 0; background: transparent; color: var(--film-muted); font-size: 11px; white-space: nowrap; }
.staff .receiving-counts b { color: var(--film-ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.staff .receiving-counts .pending, .staff .receiving-counts .pending b { background: transparent; color: var(--film-button); font-weight: 750; }
.staff .receiving-counts .shortage, .staff .receiving-counts .shortage b { color: #946824; }
.staff .orders-table.receiving-orders-table td:last-child { text-align: right; white-space: nowrap; }
.staff .receiving-orders-table td:last-child .button { min-height: 40px; padding: 8px 16px; font-size: 13px; }
.staff .receiving-row-actions { display: inline-flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.staff .receiving-row-actions .button { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.staff .orders-table.receiving-orders-table.is-waiting td:last-child .receiving-row-actions { display: inline-flex; flex-wrap: nowrap; gap: 6px; }
.staff .orders-table.receiving-orders-table.is-waiting td:last-child .receiving-row-actions .button { min-height: 40px; padding: 8px 10px; font-size: 12px; }
:is(.staff, .customer) .order-detail-hero { display: grid; gap: 16px; padding: 20px 22px; }
.staff .order-detail-notice { min-width: 0; overflow-wrap: anywhere; }
.staff .order-detail-notice summary { cursor: pointer; list-style: none; }
.staff .order-detail-notice summary::-webkit-details-marker { display: none; }
.staff .order-detail-notice summary h2 {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin: 0;
  font-size: 15px;
  font-weight: 750;
}
.order-detail-notice-heading {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-detail-notice-icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.order-detail-exception .order-detail-notice-icon { color: var(--theme-danger-text, #a13b35); }
.order-detail-correction .order-detail-notice-icon { color: var(--film-muted); }
.order-detail-notice-summary {
  font-weight: 600;
}
.order-detail-notice-chevron {
  width: 16px;
  height: 16px;
  transition: transform var(--motion-panel) var(--motion-ease-move);
}
.order-detail-notice details[open] > summary .order-detail-notice-chevron { transform: scaleY(-1); }
.order-detail-notice-content { display: grid; gap: 12px; padding-top: 12px; }
.order-detail-notice-content > :is(p, ul) {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.order-detail-exception .order-detail-notice-content > ul { padding-inline-start: 1.2em; }
.order-detail-correction-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.order-detail-correction-list > li { display: grid; gap: 4px; }
.order-detail-correction-list > li + li { border-top: 1px solid var(--film-border); padding-block-start: 12px; }
.order-detail-correction-meta, .order-detail-correction-values { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.order-detail-correction-meta { justify-content: space-between; }
.order-detail-correction-meta time, .order-detail-correction-reason { color: var(--film-muted); font-weight: 400; }
.order-detail-correction-reason { margin: 0; }
.receipt-issue-group h3 { margin: 0 0 4px; font-size: 13px; color: var(--film-muted); }
.receipt-issue-group > ul, .receipt-issue-history { padding: 0; margin: 0; list-style: none; }
.receipt-issue-group li {
  display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content;
  gap: 8px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--film-border);
}
.receipt-issue-group li > span:first-child, .receipt-issue-history li { display: grid; gap: 2px; overflow-wrap: anywhere; }
.receipt-issue-group li small, .receipt-issue-summary small { color: var(--film-muted); }
.receipt-issue-history li { padding: 8px 0; border-bottom: 1px solid var(--film-border); }
.receipt-issue-summary p { margin: 6px 0 0; }
.receipt-classified-dialog { max-height: calc(100dvh - 32px); overflow: auto; }
.receipt-classified-dialog p[data-issue-error] { margin: 0; }
.receipt-classified-dialog [data-issue-dependent] > p { margin-top: 0; }
.receipt-issue-dialog-footer > .receipt-issue-cancel.cancel-action {
  color: var(--theme-danger-text, #a13b35); border-color: var(--theme-danger-text, #a13b35);
}
.receipt-issue-dialog-footer > .receipt-issue-cancel.cancel-action:hover:not(:disabled) {
  color: var(--theme-danger-text, #a13b35); border-color: var(--theme-danger-text, #a13b35); background: var(--theme-danger-bg, #fff0ed);
}
@media (max-width: 480px) {
  .receipt-issue-group li { grid-template-columns: minmax(0, 1fr) max-content; }
  .receipt-issue-group li > span:first-child { grid-column: 1 / -1; }
  .receipt-issue-group li > .badge { justify-self: start; }
}
:is(.staff, .customer) .order-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; min-width: 0; }
:is(.staff, .customer) .order-detail-title { min-width: 0; }
:is(.staff, .customer) .order-detail-identity-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; }
:is(.staff, .customer) .order-detail-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 13px; min-width: 0; }
:is(.staff, .customer) .order-detail-title h1 { margin: 0; color: var(--film-ink); font-size: 29px; overflow-wrap: anywhere; }
:is(.staff, .customer) .order-detail-order-code { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; max-width: 100%; color: var(--film-muted); font-size: 12px; }
:is(.staff, .customer) .order-detail-order-code > span { flex: none; }
:is(.staff, .customer) .order-detail-order-code strong { color: var(--film-ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
:is(.staff, .customer) .order-detail-status .badge { min-height: 32px; padding: 7px 12px; border-radius: 8px; font-size: 14px; }
:is(.staff, .customer) .order-detail-number { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; color: var(--film-muted); font-size: 12px; }
:is(.staff, .customer) .order-detail-number span { overflow-wrap: anywhere; }
:is(.staff, .customer) .order-detail-number strong { margin-left: 5px; color: var(--film-ink); font-size: 14px; letter-spacing: .015em; overflow-wrap: anywhere; }
:is(.staff, .customer) .order-detail-phones { display: grid; gap: 3px; min-width: 0; }
:is(.staff, .customer) .order-detail-phones > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; }
:is(.staff, .customer) .order-detail-phones strong { margin-left: 0; }
:is(.staff, .customer) .order-detail-contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
:is(.staff, .customer) .order-detail-number .order-detail-code-action { flex: 0 0 auto; align-self: center; min-height: 34px; padding: 6px 10px; white-space: nowrap; }
:is(.staff, .customer) .order-detail-extra-info { min-width: 0; }
:is(.staff, .customer) .order-detail-extra-info > summary { display: flex; min-height: 32px; align-items: center; gap: 7px; color: var(--film-button); font-size: 12px; font-weight: 650; cursor: pointer; list-style: none; }
:is(.staff, .customer) .order-detail-extra-info > summary::-webkit-details-marker { display: none; }
:is(.staff, .customer) .order-detail-extra-info > summary svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--film-muted); transition: transform var(--motion-panel) var(--motion-ease-move); }
:is(.staff, .customer) .order-detail-extra-info[open] > summary svg { transform: rotate(180deg); }
:is(.staff, .customer) .order-detail-extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px 20px; margin: 4px 0 0; padding: 10px 12px; border-radius: 7px; background: var(--film-inset); }
:is(.staff, .customer) .order-detail-extra-grid > div { display: grid; gap: 3px; min-width: 0; }
:is(.staff, .customer) .order-detail-extra-grid dt { color: var(--film-muted); font-size: 11px; font-weight: 600; }
:is(.staff, .customer) .order-detail-extra-grid dd { margin: 0; color: var(--film-ink); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
:is(.staff, .customer) .order-detail-tools { display: grid; justify-items: end; gap: 12px; flex: 0 0 auto; }
:is(.staff, .customer) .order-detail-tools .actions { margin: 0; }
:is(.staff, .customer) .order-bag-code { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 13px 15px; border: 1px solid var(--film-border); border-radius: 8px; background: var(--film-inset); }
:is(.staff, .customer) .order-bag-code > span { color: var(--film-muted); font-size: 12px; font-weight: 650; }
:is(.staff, .customer) .order-bag-code-value { color: var(--film-ink); font-size: clamp(22px, 2.5vw, 30px); font-weight: 800; letter-spacing: .045em; line-height: 1.15; overflow-wrap: anywhere; }
:is(.staff, .customer) .order-detail-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; }
:is(.staff, .customer) .order-detail-meta > div { display: grid; gap: 4px; min-width: 150px; }
:is(.staff, .customer) .order-detail-intent .order-mail-editor { grid-column: 1 / -1; margin-top: 2px; }
:is(.staff, .customer) .order-detail-meta span { color: var(--film-muted); font-size: 10px; font-weight: 650; }
:is(.staff, .customer) .order-detail-meta strong { color: var(--film-ink); font-size: 12px; font-weight: 650; }
.order-detail-incoming-waybill { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
/* Order detail hierarchy: navigation stays outside the card; identity, contact, bag, then logistics. */
:is(.staff, .customer) .order-detail-back-row { display: flex; justify-content: flex-start; margin: 0 0 8px; }
:is(.staff, .customer) .order-detail-mainline { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 22px; min-width: 0; }
:is(.staff, .customer) .order-detail-identity-line { justify-content: flex-start; align-items: center; gap: 6px 16px; min-width: 0; }
:is(.staff, .customer) .order-detail-identity-line h1 { flex: 0 1 auto; }
:is(.staff, .customer) .order-detail-order-code { font-size: 12px; }
.staff .order-detail-identity-line h1 { margin: 0; color: var(--film-ink); font-size: 40px; font-weight: 800; line-height: 1.12; letter-spacing: -.025em; overflow-wrap: anywhere; }
#order-detail-title[data-pointer-navigation-focus]:focus { outline: none; }
.staff .order-detail-order-code { gap: 8px; font-size: 15px; }
.staff .order-detail-order-code strong { color: var(--film-ink); font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
:is(.staff, .customer) .order-detail-main-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
:is(.staff, .customer) .order-detail-main-actions > .button { min-height: 38px; padding: 8px 13px; white-space: nowrap; }
:is(.staff, .customer) .order-detail-action-menu { position: relative; z-index: 0; transition: z-index var(--motion-panel) steps(1, end); }
:is(.staff, .customer) .order-detail-action-menu[open] { z-index: 2; transition-duration: 0s; }
:is(.staff, .customer) .order-detail-action-menu > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
:is(.staff, .customer) .order-detail-action-menu > summary::-webkit-details-marker { display: none; }
:is(.staff, .customer) .order-detail-action-menu > summary svg { width: 13px; height: 13px; }
:is(.staff, .customer) .order-detail-action-options { position: absolute; left: auto; right: 0; min-width: 168px; max-width: calc(100vw - 64px); }
:is(.staff, .customer) .order-detail-action-menu:not([open]) > .order-detail-action-options { pointer-events: none; }
:is(.staff, .customer) .order-detail-customer-contact { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 22px; min-width: 0; }
:is(.staff, .customer) .order-detail-customer-contact > span { display: inline-flex; align-items: baseline; gap: 5px; color: var(--film-muted); }
:is(.staff, .customer) .order-detail-customer-contact strong { margin: 0; color: var(--film-ink); }
.order-return-contact-dialog dl { display: grid; gap: 12px; margin: 0; }
.order-return-contact-dialog dt { color: var(--film-muted); font-size: 12px; }
.order-return-contact-dialog dd { margin: 4px 0 0; color: var(--film-ink); overflow-wrap: anywhere; }
.order-detail-processing-duration > strong { font-variant-numeric: tabular-nums; white-space: pre-line; }
:is(.staff, .customer) .order-detail-meta strong .order-date-cell > * { display: block; color: inherit; font: inherit; }
:is(.staff, .customer) .order-detail-meta .order-detail-processing-duration > strong > span { color: inherit; font: inherit; }
:is(.staff, .customer) .order-detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 10px 18px; }
:is(.staff, .customer) .order-detail-meta > div { min-width: 0; }
.staff .order-detail-intent-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.staff .order-intent-return-button { min-height: 24px; max-width: 100%; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--film-button); font-size: 12px; font-weight: 650; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.staff .order-intent-return-button:hover { text-decoration: underline; }
.staff .order-intent-return-button:focus-visible { outline: 2px solid var(--film-focus); outline-offset: 2px; }
:is(.staff, .customer) .order-detail-intent { display: grid; gap: 4px; }
.staff .order-progress-summary { grid-template-columns: minmax(150px, .75fr) minmax(0, 2fr); }
.staff .order-progress-summary.is-empty { grid-template-columns: minmax(0, 1fr); }
.staff .order-progress-heading > strong { color: var(--ops-ink); font-size: 16px; line-height: 1.35; }
.staff .order-progress-metrics { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.staff .order-progress-metrics strong { font-size: 15px; }
.staff .order-info-edit-section { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--film-border); }
.staff .order-info-edit-section > h3 { margin: 0; font-size: 15px; }
.staff .order-info-current-intent { margin: 0; color: var(--film-muted); }
.staff .order-info-current-intent strong { color: var(--film-ink); }
.staff .create-mail-origin { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); align-items: end; gap: 7px 14px; padding: 12px; border: 1px solid var(--film-border); border-radius: 8px; background: var(--film-inset); }
.staff .create-mail-origin .muted { grid-column: 1 / -1; margin: 0; font-size: 11px; }
.staff .create-mail-origin[hidden], .staff [data-ui="mail-shipping-address"][hidden] { display: none; }
@media (max-width: 650px) {
  .staff .receiving-summary { gap: 7px; }
  .staff .receiving-summary .receiving-metric { padding: 10px 8px; }
  .staff .receiving-overview { margin: 14px 0 10px; }
  .staff .receiving-overview > h2 { margin-bottom: 7px; font-size: 16px; }
  .staff .receiving-overview-grid { gap: 7px; }
  .staff .receiving-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff .receiving-overview-metric { padding: 10px 8px; }
  .staff .receiving-overview-metric > span { font-size: 10px; line-height: 1.3; }
  .staff .receiving-overview-metric > strong { font-size: 23px; }
  .staff .receiving-overview-metric > strong small { display: block; margin: 1px 0 0; font-size: 10px; }
  .staff .receiving-summary .receiving-metric > span { font-size: 10px; line-height: 1.3; }
  .staff .receiving-summary .receiving-metric > strong { font-size: 23px; }
  .staff .receiving-summary .receiving-metric > strong small { display: block; margin: 1px 0 0; font-size: 10px; }
  .staff .orders-table-scroll.receiving-table-scroll { overflow: visible; border: 0; background: transparent; }
  .staff .orders-table.receiving-orders-table, .staff .orders-table.receiving-orders-table tbody { display: block; width: 100%; }
  .staff .orders-table.receiving-orders-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .staff .orders-table.receiving-orders-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; margin: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--film-border); border-radius: 0; background: transparent; }
  .staff .orders-table.receiving-orders-table tr:first-child { border-top: 1px solid var(--film-border); }
  .staff .orders-table.receiving-orders-table td { display: block; min-width: 0; padding: 2px 0; border: 0; text-align: left; }
  .staff .orders-table.receiving-orders-table td:nth-child(1) { grid-column: 1 / -1; }
  .staff .orders-table.receiving-orders-table td:nth-child(2) { grid-column: 1; align-self: center; }
  .staff .orders-table.receiving-orders-table td:nth-child(3) { grid-column: 2; grid-row: 2; align-self: end; text-align: right; }
  .staff .receiving-order-open { text-align: center; }
  .staff .receiving-name-line { justify-content: center; }
  .staff .receiving-name-line > strong { font-size: 16px; }
  .staff .receiving-identifiers { grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); align-items: stretch; gap: 12px; }
  .staff .receiving-identifier strong { font-size: 14px; letter-spacing: 0; }
  .staff .receiving-identifier-divider { min-height: 44px; }
  .staff .orders-table.receiving-orders-table td:nth-child(2) { text-align: center; }
  .staff .receiving-counts { align-items: center; }
  .staff .orders-table.receiving-orders-table td:nth-child(3) { text-align: right; }
  .staff .orders-table.receiving-orders-table.is-waiting tr { grid-template-columns: minmax(0, 1fr) auto; }
  .staff .orders-table.receiving-orders-table.is-waiting td:nth-child(1) { grid-column: 1; grid-row: 1; text-align: left; }
  .staff .orders-table.receiving-orders-table.is-waiting td:nth-child(2) { grid-column: 1; grid-row: 2; align-self: center; text-align: left; }
  .staff .orders-table.receiving-orders-table.is-waiting td:nth-child(3) { grid-column: 1; grid-row: 3; text-align: left; }
  .staff .orders-table.receiving-orders-table.is-waiting td:nth-child(4) { grid-column: 1; grid-row: 4; text-align: left; }
  .staff .orders-table.receiving-orders-table.is-waiting td:nth-child(5) { grid-column: 2; grid-row: 1 / 5; align-self: center; text-align: right; }
  .staff .receiving-waiting-order-open { justify-content: flex-start; text-align: left; }
  .staff .receiving-waiting-customer { justify-items: start; }
  .staff .receiving-waiting-customer .receiving-name-line { justify-content: flex-start; }
  .staff .receiving-waiting-customer .receiving-contact { text-align: left; }
  .staff .orders-table.receiving-orders-table.is-waiting td:nth-child(3) .receiving-waiting-waybill { text-align: left; }
  .staff .orders-table.receiving-orders-table.is-waiting td:nth-child(4) .order-date-cell { justify-items: start; }
  .staff .orders-table.receiving-orders-table.is-arrived tr { grid-template-columns: minmax(0, 1fr) auto; }
  .staff .orders-table.receiving-orders-table.is-arrived td:nth-child(1) { grid-column: 1; grid-row: 1; text-align: left; }
  .staff .orders-table.receiving-orders-table.is-arrived td:nth-child(2) { grid-column: 1; grid-row: 2; align-self: center; text-align: left; }
  .staff .orders-table.receiving-orders-table.is-arrived td:nth-child(3) { grid-column: 1; grid-row: 3; text-align: left; }
  .staff .orders-table.receiving-orders-table.is-arrived td:nth-child(4) { grid-column: 1; grid-row: 4; text-align: left; }
  .staff .orders-table.receiving-orders-table.is-arrived td:nth-child(5) { grid-column: 2; grid-row: 1 / 5; align-self: center; text-align: right; }
  .staff .receiving-arrived-order-open { justify-content: flex-start; text-align: left; }
  .staff .receiving-arrived-customer { justify-items: start; }
  .staff .receiving-arrived-customer-identity { justify-content: flex-start; }
  .staff .receiving-arrival-date .order-date-cell { justify-items: start; }
  .staff .orders-table.receiving-orders-table.is-offline tr { grid-template-columns: minmax(0, 1fr) auto; }
  .staff .orders-table.receiving-orders-table.is-offline td:nth-child(1) { grid-column: 1; grid-row: 1; text-align: left; }
  .staff .orders-table.receiving-orders-table.is-offline td:nth-child(2) { grid-column: 1; grid-row: 2; align-self: center; text-align: left; }
  .staff .orders-table.receiving-orders-table.is-offline td:nth-child(3) { grid-column: 1; grid-row: 3; text-align: left; }
  .staff .orders-table.receiving-orders-table.is-offline td:nth-child(4) { grid-column: 1; grid-row: 4; text-align: left; }
  .staff .orders-table.receiving-orders-table.is-offline td:nth-child(5) { grid-column: 2; grid-row: 1 / 5; align-self: center; text-align: right; }
  .staff .receiving-offline-order-open { justify-content: flex-start; text-align: left; }
  .staff .receiving-offline-progress { text-align: left; }
  .staff .receiving-orders-table td:last-child .button { min-height: 40px; }
  .staff .receiving-row-actions { display: flex; flex-direction: column; align-items: stretch; }
  .staff .receiving-row-actions .button { min-height: 36px; padding: 6px 9px; font-size: 11px; }
  .staff .orders-table.receiving-orders-table.is-waiting td:last-child .receiving-row-actions { display: flex; flex-direction: column; align-items: stretch; }
  :is(.staff, .customer) .order-detail-hero { gap: 13px; padding: 15px 13px; }
  :is(.staff, .customer) .order-detail-mainline { flex-direction: column; gap: 10px; }
  :is(.staff, .customer) .order-detail-identity-line { align-items: flex-start; gap: 5px 10px; }
  :is(.staff, .customer) .order-detail-main-actions { justify-content: flex-start; width: 100%; }
  :is(.staff, .customer) .order-detail-action-options { right: auto; left: 0; }
  :is(.staff, .customer) .order-detail-customer-contact { align-items: flex-start; flex-direction: column; gap: 4px; }
  :is(.staff, .customer) .order-detail-head { display: grid; gap: 12px; }
  :is(.staff, .customer) .order-detail-title h1 { font-size: 24px; }
  :is(.staff, .customer) .order-detail-name-line { align-items: flex-start; gap: 4px 9px; }
  :is(.staff, .customer) .order-detail-identity-line { align-items: flex-start; gap: 7px 14px; }
  :is(.staff, .customer) .order-detail-order-code { padding-top: 5px; font-size: 11px; }
  :is(.staff, .customer) .order-detail-order-code strong { font-size: 13px; }
  .staff .order-detail-identity-line h1 { font-size: 30px; line-height: 1.15; }
  .staff .order-detail-order-code { gap: 6px; font-size: 12px; }
  .staff .order-detail-order-code strong { font-size: 18px; }
  :is(.staff, .customer) .order-detail-number { align-items: flex-start; }
  :is(.staff, .customer) .order-detail-contact-actions { width: 100%; }
  :is(.staff, .customer) .order-detail-extra-grid { grid-template-columns: minmax(0, 1fr); }
  :is(.staff, .customer) .order-detail-status .badge { min-height: 29px; padding: 5px 9px; font-size: 13px; }
  :is(.staff, .customer) .order-detail-tools { display: flex; width: 100%; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  :is(.staff, .customer) .order-detail-tools .actions { margin-left: auto; }
  :is(.staff, .customer) .order-bag-code { gap: 6px 10px; padding: 12px; }
  :is(.staff, .customer) .order-bag-code-value { font-size: 23px; }
  :is(.staff, .customer) .order-detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  :is(.staff, .customer) .order-detail-meta > div { min-width: 0; }
  .staff .create-mail-origin { grid-template-columns: minmax(0, 1fr); }
  .staff .create-mail-origin .muted { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .staff .order-table-row { transition: none; }
}

.staff .shop-sidebar button.nav-item.active { background: #294b70; color: #fff; box-shadow: inset 3px 0 #a8d4ff; }
.staff .shop-sidebar button.nav-item.active svg { color: #a8d4ff; }
.customer .customer-order-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 12px; }
.customer .customer-order-card .order-row-open { min-width: 0; padding: 4px; }
.customer .customer-preview-toggle { grid-column: 2; grid-row: 1; min-height: 40px; white-space: nowrap; }
.customer .customer-order-preview { grid-column: 1 / -1; display: grid; gap: 0; margin: 4px 4px 0; border-top: 1px solid #e3e9e4; }
.customer .customer-preview-roll { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 4px 12px; padding: 10px 4px; border-bottom: 1px solid #e7ece8; color: #526476; font-size: 12px; }
.customer .customer-preview-roll strong { grid-column: 1 / -1; color: #233a30; font-size: 13px; }
@media(max-width:650px){.customer .customer-preview-toggle{min-height:44px}.customer .customer-preview-roll{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}}

/* Shared film-lab visual system and responsive refinements. */
.staff {
  --ops-bg: #eef3f8;
  --ops-surface: #ffffff;
  --ops-border: #cfdae7;
  --ops-ink: #172b46;
  --ops-muted: #52667d;
  --ops-accent: #285c91;
  --ops-accent-soft: #dbecfc;
  --ops-warning: #865714;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--ops-bg);
  color: var(--ops-ink);
  overflow-x: clip;
}
.staff .layout, .staff .workspace { background: var(--ops-bg); }
.staff .shop-sidebar { background: #172b46; color: #eaf2fc; border: 0; }
.staff .side-brand { border-bottom-color: #3b506a; }
.staff .side-brand strong, .staff .side-account strong { color: #eaf2fc; }
.staff .side-brand small, .staff .side-account small { color: #adbed3; }
.staff .business-nav .nav-item { color: #eaf2fc; }
.staff .business-nav .nav-item svg { color: #adbed3; }
.staff .business-nav .nav-item:hover { background: #203249; color: #ffffff; }
.staff .business-nav .nav-item.active { background: #294b70; color: #ffffff; box-shadow: inset 3px 0 #a8d4ff; }
.staff .business-nav .nav-item.active svg { color: #a8d4ff; }
.staff .nav-count { background: #e7eff7; color: #203e63; }
.staff .nav-scroll-hint { color: #adbed3; }
.staff .side-environment { background: #203249; border-color: #3b506a; color: #eaf2fc; }
.staff .side-environment strong { color: #203e63; background: #dbeaf8; }
.staff .side-environment small { color: inherit; }
.staff .shop-sidebar .side-tool { color: #eaf2fc; }
.staff .side-tool:hover, .staff .side-tool.active { background: #294b70; color: #fff; }
.staff .shop-sidebar .side-tool-danger { color: #9b5148; background: #fff4f1; border: 1px solid #e8c9c3; }
.staff .shop-sidebar .side-tool-danger:hover { color: #7e322d; background: #fde9e5; }
.staff .side-account { border-top-color: #3b506a; }
.staff .top { background: #fff; border-bottom-color: var(--ops-border); color: var(--ops-ink); }
.staff .workspace-name, .staff .top .right { color: var(--ops-ink); }
.staff .top .right .pill { background: #e7eff7; border-color: #cfdae7; color: #3e5874; }
.staff h1, .staff h2, .staff h3, .staff .stat strong, .customer h1, .customer h2, .customer h3, .customer .stat strong { font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.staff h1, .staff h2, .staff h3 { color: var(--ops-ink); }
.staff .panel, .staff .stat, .staff .order-card, .staff .roll-card, .staff .orders-filters, .staff .orders-table-scroll, .staff .order-inspector {
  border-color: var(--ops-border);
  background: var(--ops-surface);
}
.staff .orders-table th { background: #e7eff7; color: #405872; }
.staff .orders-table td { color: #243b54; border-bottom-color: #dce5ef; }
.staff .orders-table td small, .staff .order-row-open small { color: #5e7187; }
.staff .order-row-open strong, .staff .order-row-open span { color: var(--ops-ink); }
.staff .orders-table tr:not(.is-previewed):hover { background: var(--film-inset); }
.staff .orders-filters input, .staff .orders-filters select { border-color: #7d91aa; }
.staff .order-inspector { box-shadow: 0 12px 38px #1020381f; }
.customer, .management-shell { overflow-x: clip; }
.customer-nav { position: relative; z-index: 5; scrollbar-width: thin; scroll-snap-type: x proximity; }
.customer-nav button { scroll-snap-align: start; }
.customer .customer-hero h1 { font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.customer .top { background: #172b46; }

@media (max-width: 650px) {
  .staff .shop-sidebar { padding: 10px 12px 8px; }
  .staff .side-brand { margin: 0 2px 8px; padding: 0 0 8px; }
  .staff .business-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 2px 0 7px; }
  .staff .shop-sidebar .nav-item { position: relative; width: 100%; min-width: 0; min-height: 60px; flex-direction: column; justify-content: center; gap: 4px; padding: 6px 3px; font-size: 11px; text-align: center; white-space: normal; }
  .staff .shop-sidebar .nav-item svg { width: 18px; height: 18px; }
  .staff .shop-sidebar .nav-item .nav-count { position: absolute; top: 1px; right: 3px; min-width: 17px; height: 17px; margin: 0; padding: 0 4px; font-size: 9px; }
  .staff .nav-scroll-hint { display: none; }
  .management-shell .business-nav { display: flex; flex-wrap: nowrap; gap: 5px; overflow-x: auto; padding: 2px 0 7px; scrollbar-width: thin; }
  .management-shell .shop-sidebar .nav-item { width: auto; min-width: max-content; min-height: 44px; flex-direction: row; justify-content: flex-start; gap: 7px; padding: 7px 10px; font-size: 11px; text-align: left; white-space: nowrap; }
  .management-shell .shop-sidebar .nav-item .nav-count { position: static; min-width: 18px; height: 18px; margin-left: auto; }
  .management-shell .nav-scroll-hint { display: block; margin: 0 2px 5px; font-size: 10px; }
  .staff .side-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 2px 0 5px; }
  .staff .shop-sidebar .side-tool { min-height: 44px; padding: 4px 2px; font-size: 10px; line-height: 1.25; text-align: center; white-space: normal; }
  .staff .side-account { display: none; }
  .staff .top { padding: 8px 12px; }
  .staff .top .right { gap: 5px; }
  .staff main { padding: 18px 14px calc(24px + env(safe-area-inset-bottom)); }
  .staff .title-row { align-items: flex-start; gap: 10px; }
  .staff .title-row h1 { font-size: 22px; }
  .staff .title-row > .button { min-height: 44px; padding-inline: 12px; }
  .staff .orders-filters { gap: 10px; padding: 12px; }
  .staff .orders-filters input, .staff .orders-filters select { min-height: 46px; font-size: 16px; }
  .staff .orders-filters button { min-height: 44px; }
  .staff .orders-table-scroll { overflow: visible; border: 0; background: transparent; }
  .staff .orders-table, .staff .orders-table tbody { display: block; width: 100%; }
  .staff .orders-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .staff .orders-table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 7px 12px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--ops-border); border-radius: 12px; background: var(--ops-surface); }
  .staff .orders-table td { min-width: 0; display: block; padding: 0; border: 0; font-size: 12px; overflow-wrap: anywhere; }
  .staff .orders-table td:nth-child(1) { grid-column: 1 / -1; }
  .staff .orders-table td:nth-child(2), .staff .orders-table td:nth-child(4), .staff .orders-table td:nth-child(5), .staff .orders-table td:nth-child(6) { display: block; }
  .staff .orders-table td:nth-child(2) { grid-column: 1 / -1; }
  .staff .orders-table td:nth-child(3) { grid-column: 1; }
  .staff .orders-table td:nth-child(4) { grid-column: 2; }
  .staff .orders-table td:nth-child(5), .staff .orders-table td:nth-child(6) { grid-column: 1 / -1; }
  .staff .orders-table td:nth-child(7) { grid-column: 2; grid-row: auto; justify-self: end; }
  .staff .orders-table td:nth-child(n+2):nth-child(-n+6)::before { display: block; margin-bottom: 3px; color: var(--ops-muted); font-size: 10px; font-weight: 650; }
  .staff .orders-table td:nth-child(2)::before { content: "来源"; }
  .staff .orders-table td:nth-child(3)::before { content: "卷数"; }
  .staff .orders-table td:nth-child(4)::before { content: "状态"; }
  .staff .orders-table td:nth-child(5)::before { content: "待办"; }
  .staff .orders-table td:nth-child(6)::before { content: "创建时间"; }
  .staff .orders-table td:nth-child(3) .receipt-count { display: inline; margin-left: 6px; }
  .staff .orders-table td.order-source-cell { text-align: left; }
  .staff .order-row-open { padding: 2px 0; }
  .staff .order-row-open small { display: block; }
  .staff .orders-table .order-preview-toggle { min-height: 44px; margin: 0; }
  .staff .inspector-scroll { overscroll-behavior: contain; }
  .customer .layout > main { padding: 18px 14px calc(28px + env(safe-area-inset-bottom)); }
  .customer-nav { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 4px; padding: 7px 12px; overflow: visible; }
  .customer-nav button { min-height: 44px; padding: 8px 4px; font-size: 11px; text-align: center; }
  .customer .form-grid, .customer .form-grid.three, .staff .form-grid, .staff .form-grid.three { grid-template-columns: minmax(0,1fr); }
  .customer .field input, .customer .field select, .customer .field textarea,
  .staff .field input, .staff .field select, .staff .field textarea { min-height: 46px; font-size: 16px; }
  .customer :is(button, .button), .staff :is(button, .button) { min-height: 44px; }
  .customer :is(button, .button, input, select, textarea), .staff :is(button, .button, input, select, textarea) { touch-action: manipulation; }
  .customer .customer-order-card { padding: 12px; }
}

/* Palette B: fog blue-grey, navy, and ice-blue accents. */
:root {
  --film-canvas: #f1f4f8;
  --film-surface: #ffffff;
  --film-raised: #edf1f7;
  --film-inset: #f7f9fc;
  --film-ink: #121722;
  --film-muted: #646d7b;
  --film-border: #e1e6ee;
  --film-control-border: #c9d1de;
  --film-accent: #2863e9;
  --film-accent-soft: #eaf0ff;
  --film-focus: #3978f6;
  --film-button: #245ee8;
  --film-button-hover: #1b4fce;
  --film-button-text: #ffffff;
  --ops-bg: var(--film-canvas);
  --ops-surface: var(--film-surface);
  --ops-border: var(--film-border);
  --ops-ink: var(--film-ink);
  --ops-muted: var(--film-muted);
  --ops-accent: var(--film-accent);
  --ops-accent-soft: var(--film-accent-soft);
  color: var(--film-ink);
  background: var(--film-canvas);
}
body { background: var(--film-canvas); color: var(--film-ink); }
.muted, .eyebrow, .demo-accounts, .stat span, .event time, .panel.empty,
.customer .order-row-meta, .staff .setting-shortcuts button small,
.catalog-row small, .combined-choice small, .queue-row small { color: var(--film-muted); }
.support-shell .mark, .anonymous-shell .mark { background: #a8d4ff; color: #172b46; }
.support-shell .title-row h1, .anonymous-shell .title-row h1 { font-family: inherit; }
.badge.amber, .staff .badge.amber { color: #80551e; }
a { color: var(--film-accent); }
.button { background: var(--film-button); color: #fff; }
.button:hover { background: var(--film-button-hover); }
.button.light:hover { background: var(--film-raised); color: var(--film-ink); }
.button.secondary { background: var(--film-accent-soft); color: var(--film-button); }
.button.light { border-color: var(--film-border); color: var(--film-button); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.theme-toggle:focus-visible { outline-color: var(--film-focus); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--film-accent); }
.field { color: #405872; }
.field input, .field select, .field textarea { border-color: var(--film-control-border); color: var(--film-ink); }
.staff .field :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select) { min-height: 44px; line-height: 1.4; }
.staff .field.is-invalid { color: #b43d3d; }
.staff .field.is-invalid input { border-color: #c64a4a; box-shadow: 0 0 0 2px #c64a4a24; }
.staff .creation-confirm-group { display: grid; justify-items: end; gap: 8px; min-width: 0; }
.staff .creation-validation-error { width: 100%; margin: 0; color: #b43d3d; font-size: 13px; font-weight: 650; line-height: 1.45; text-align: right; }
.staff .create-review-error { margin: 4px 0 0; text-align: left; }
.staff .create-picker.is-invalid,.staff .create-roll-row.is-invalid,.staff .return-config.is-invalid {border:2px solid #c64a4a;box-shadow:0 0 0 3px #c64a4a18}
.staff .return-config.is-invalid {border-top:2px solid #c64a4a}
.staff .creation-validation-error[hidden] { display: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--film-focus); box-shadow: 0 0 0 3px #2a70b826; }
.notice:not(.amber):not(.red) { background: var(--film-accent-soft); color: var(--film-button); }
.order-preview { border-color: var(--film-border); background: var(--film-inset); }
.order-preview strong, .order-preview span { color: var(--film-ink); }
.order-row-open { color: var(--film-ink); }
.order-row-open:hover { background: var(--film-inset); }
.order-row-open:focus-visible, .order-preview-toggle:focus-visible { outline-color: var(--film-focus); }
.customer, .support-shell, .anonymous-shell { background: var(--film-canvas); color: var(--film-ink); }
.customer .top, .support-shell .top, .anonymous-shell .top { background: #172b46; color: #eaf2fc; }
.customer .mark { background: #a8d4ff; color: #172b46; }
.customer .eyebrow { color: #52667d; }
.customer .top .pill { border-color: #6883a3; color: #dbeaf8; }
.customer .top button, .support-shell .top button, .anonymous-shell .top button { border-color: #6883a3; color: #eaf2fc; }
.customer-nav { background: var(--film-surface); border-bottom-color: var(--film-border); }
.customer-nav button { color: #405872; }
.customer-nav button[aria-current="page"], .customer-nav button:hover { background: var(--film-accent-soft); color: var(--film-button); }
.customer-hero { background: var(--film-accent-soft); border-color: #bbd8f2; color: var(--film-ink); }
.customer-hero:after { border-color: #bbd8f2; }
.customer-hero p, .customer-service small { color: var(--film-muted); }
.customer .customer-service { color: var(--film-ink); }
.customer-service:hover { border-color: #7d91aa; background: var(--film-inset); }
.customer .payment-result h1 { color: var(--film-ink); }
.customer .customer-order-preview, .customer .customer-preview-roll { border-color: var(--film-border); color: var(--film-muted); }
.customer .customer-preview-roll strong { color: var(--film-ink); }
.customer .order-row-open { color: var(--film-ink); }
.customer .order-preview { border-color: var(--film-border); background: var(--film-inset); }
.customer .order-preview strong { color: var(--film-accent); }
.customer .roll-head small, .customer .meta label { color: var(--film-muted); }
.customer .meta > div { background: var(--film-inset); border-color: var(--film-border); }
.customer .step:not(.done) { background: var(--film-raised); color: var(--film-muted); }
.customer .customer-order-card, .customer .panel, .support-shell .panel, .anonymous-shell .panel { border-color: var(--film-border); }
.customer .delivery, .customer .refund-review, .customer .coupon-choice, .customer .coupon-card,
.support-token code, .anonymous-shell .support-token code { background: var(--film-inset); border-color: var(--film-border); color: var(--film-ink); }
.coupon-card small, .coupon-choice small, .customer .coupon-card small { color: var(--film-muted); }
.finance-line, .customer .customer-order-preview, .customer .customer-preview-roll { border-color: var(--film-border); }
.sample-photo img { border-color: var(--film-border); }
.gallery-preview { background-color: var(--film-inset); background-image: conic-gradient(var(--film-raised) 25%,transparent 0 50%,var(--film-raised) 0 75%,transparent 0); }
.delivery small { color: var(--film-muted); }
.login-art { background: #172b46; color: #eaf2fc; }
.login-art:after { border-color: #6883a3; }
.login-art .micro { color: #a8d4ff; }
.login-art p { color: #adbed3; }
.top-search { background: var(--film-inset); border-color: var(--film-border); }
.top-search input { color: var(--film-ink); }
.top-search > .top-search-submit, .top-search-control > .top-search-scan { background: #dbeaf8 !important; color: #203e63 !important; }
.staff {
  --ops-bg: var(--film-canvas);
  --ops-surface: var(--film-surface);
  --ops-border: var(--film-border);
  --ops-ink: var(--film-ink);
  --ops-muted: var(--film-muted);
  --ops-accent: var(--film-accent);
  --ops-accent-soft: var(--film-accent-soft);
  background: var(--film-canvas);
  color: var(--film-ink);
}
.staff .shop-sidebar { background: #172b46; color: #eaf2fc; }
.staff .side-brand { border-bottom-color: #3b506a; }
.staff .side-brand strong, .staff .side-account strong { color: #eaf2fc; }
.staff .side-brand small, .staff .side-account small, .staff .side-environment small { color: #adbed3; }
.staff .business-nav .nav-item { color: #eaf2fc; }
.staff .business-nav .nav-item svg { color: #adbed3; }
.staff .shop-sidebar .nav-item:focus-visible, .staff .shop-sidebar .side-tool:focus-visible { outline-color: #8dc8ff; }
.staff .shop-sidebar button.nav-item.active { background: #294b70; color: #fff; box-shadow: inset 3px 0 #a8d4ff; }
.staff .shop-sidebar button.nav-item.active svg { color: #a8d4ff; }
.staff .business-nav .nav-item:hover, .staff .side-tool:hover, .staff .side-tool.active { background: #294b70; color: #fff; }
.staff .side-environment { background: #203249; border-color: #3b506a; color: #eaf2fc; }
.staff .side-environment strong { background: #dbeaf8; color: #203e63; }
.staff .side-account { border-top-color: #3b506a; }
.staff .top, .staff .orders-filters { background: var(--film-surface); border-color: var(--film-border); color: var(--film-ink); }
.staff .workspace-name, .staff .top .right, .staff .top .right button { color: var(--film-ink); }
.staff .top .right button { color: var(--film-ink); border-color: var(--film-border); }
.staff .top .right > span:not(.pill) { color: var(--film-muted); }
.toast { right: 16px; bottom: 16px; max-width: min(360px, calc(100vw - 32px)); overflow-wrap: anywhere; box-shadow: 0 12px 30px #081a3033; }
.toast:not(.error) { background: var(--film-button); color: var(--film-surface); }
.staff .top .right .pill { background: var(--film-raised); border-color: var(--film-border); color: #405872; }
.staff .top-search input { background: var(--film-inset); border-color: var(--film-control-border); }
.staff .top-search input:focus-visible { border-color: var(--film-focus); box-shadow: 0 0 0 3px #2a70b826; }
.staff .top-search > .top-search-submit, .staff .top-search-control > .top-search-scan { background: #dbeaf8; color: #203e63; }
.staff .button:hover { background: var(--film-button-hover); }
.staff .button.secondary { background: var(--film-accent-soft); color: var(--film-button); }
.staff .button.light { border-color: var(--film-border); color: var(--film-button); }
.staff .button.light:hover { background: var(--film-raised); }
.staff .top .right > button:hover, .staff .button.light:hover { background: var(--film-raised); }
.staff h1, .staff h2, .staff h3, .staff .eyebrow { color: var(--film-ink); }
.staff .panel, .staff .stat, .staff .order-card, .staff .roll-card, .staff .orders-table-scroll, .staff .order-inspector { border-color: var(--film-border); background: var(--film-surface); }
.staff .orders-table th { background: var(--film-raised); color: #405872; }
.staff .orders-table td { color: #243b54; border-bottom-color: var(--film-border); }
.staff .orders-table tr:not(.is-previewed):hover, .staff .order-table-row:not(.is-previewed):hover { background: var(--film-inset); }
.staff .orders-filters input, .staff .orders-filters select { background-color: var(--film-surface); border-color: var(--film-control-border); color: var(--film-ink); }
.staff .orders-filters .field { color: #405872; }
.staff .order-row-open strong, .staff .order-row-open span, .staff .inspector-customer strong, .staff .inspector-roll-heading strong { color: var(--film-ink); }
.staff .order-row-open small, .staff .inspector-header small, .staff .inspector-customer span, .staff .inspector-summary, .staff .inspector-roll dt { color: var(--film-muted); }
.staff .inspector-roll { border-bottom-color: var(--film-border); }
.staff .inspector-roll dd { color: #243b54; }
.staff .muted, .staff .queue-row small, .staff .stat span, .staff .order-card p,
.staff .management-kpi small, .staff .management-kpi strong small,
.customer .muted, .customer .order-card p, .customer .queue-row small { color: var(--film-muted); }
.staff .side-environment, .staff .orders-table tr, .staff .order-preview { border-color: var(--film-border); }
.staff .equipment-tab.active, .staff .setting-shortcuts button, .staff .catalog-row { color: var(--film-accent); }
.staff .equipment-tab.active { border-bottom-color: var(--film-accent); }
.staff .equipment-tabs, .staff .equipment-row { border-color: var(--film-border); }
.staff .meta div, .staff .delivery, .staff .equipment-assignment, .staff .impact-preview,
.staff .negative-choice, [data-ui="receipt-card"], [data-ui="declaration-card"] { background: var(--film-inset); border-color: var(--film-border); }
.staff .setting-shortcuts button, .staff .catalog-row { border-top-color: var(--film-border); }
.staff .setting-shortcuts button:hover, .staff .catalog-row:hover, .staff .catalog-row.active,
.staff .management-kpi:hover, .staff .equipment-assignment, .staff .impact-preview { background: var(--film-inset); border-color: var(--film-border); }
.staff .management-kpi>small, .staff .equipment-row strong, .staff .equipment-tab.active { color: var(--film-accent); }
.staff .trend-column i, .staff .trend-bar rect { background: #e7eff7; fill: #e7eff7; }
.staff .trend-column i.has-value, .staff .trend-bar rect.has-value { background: #285c91; fill: #285c91; }
.staff .negative-options label:has(input:checked), .staff .negative-preference-actions .button[aria-pressed="true"] { border-color: var(--film-accent); background: var(--film-accent-soft); color: var(--film-button); }
.staff .negative-options input, .staff .check-row input, .staff input[type="checkbox"], .staff input[type="radio"] { accent-color: var(--film-accent); }
.staff .create-customer input[readonly] { background: var(--film-inset); }
.create-roll-row > div { min-width: 0; }
.create-roll-row > .button { flex: 0 0 auto; min-width: 56px; white-space: nowrap; }
.staff .dashboard-tile:hover { border-color: #7d91aa; background: var(--film-inset); }
.staff .equipment-row strong, .staff .equipment-assignment strong, .staff .impact-preview p, .staff .negative-choice legend { color: var(--film-ink); }
.staff .equipment-row small, .staff .equipment-assignment small, .staff .negative-choice small { color: var(--film-muted); }
.staff .trend-column, .staff .trend-column small { color: var(--film-muted); }
.staff .period-control { background: var(--film-inset); }
.staff .period-control button { color: var(--film-muted); }
.staff .period-control button.active { background: var(--film-surface); color: var(--film-accent); }
.staff button:focus-visible, .staff a:focus-visible, .staff input:focus-visible, .staff select:focus-visible, .staff textarea:focus-visible { outline-color: var(--film-focus); }
.staff .order-inspector { box-shadow: 0 12px 38px #1020381f; }
.staff .inspector-header, .staff .inspector-footer { background: var(--film-surface); }
.client-link { color: var(--film-ink); }
.client-link:hover { border-color: var(--film-control-border); background: var(--film-inset); }
.client-link:focus-visible { outline-color: var(--film-focus); }
.event { border-left-color: var(--film-control-border); }
.modal-backdrop { background-color: #10203870; }
.label-preview-card { background: var(--film-surface); border-color: var(--film-border); color: var(--film-ink); }
.label-preview-card small { color: var(--film-muted); }
.label-bars { background: repeating-linear-gradient(90deg,#172b46 0 2px,#fff 2px 4px,#172b46 4px 5px,#fff 5px 9px); }
.one-time-code { color: var(--film-accent); }

/* Button geometry: align controls to one inset and one height rhythm. */
.button { min-height: 40px; gap: 8px; }
.staff .button { min-height: 40px; }
.button.small { min-height: 40px; padding: 8px 12px; }
.staff .button.small, .customer .button.small { min-height: 40px; }
.actions { align-items: center; gap: 8px; }
.title-row > .actions, .queue-row > .actions, .row > .actions { margin-top: 0; align-items: center; }
.queue-row > .actions { flex: 0 0 auto; }
.filter-actions { align-items: center; gap: 8px; }
.orders-filters .filter-actions .button { min-height: 40px; }
.field select, .orders-filters select {
  min-height: 40px;
  padding: 9px 36px 9px 12px;
  line-height: 1.25;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%23405872' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}
.orders-table td:last-child { text-align: right; }
.staff .orders-table .order-preview-toggle { margin: 0; }
.staff .icon-button { width: 40px; height: 40px; }
.staff .top .right button:not(.theme-toggle) { min-height: 40px; padding: 8px 12px; }
.staff .top-search > .top-search-submit { min-height: 32px; padding: 6px 12px; }
.staff .top-search-control > .top-search-scan { min-height: 32px; }
.staff .orders-filters input, .staff .orders-filters select { height: 40px; min-height: 40px; }
.order-preview-toggle svg { display: block; width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.negative-options label:has(input:checked) { border-color: var(--film-accent); background: var(--film-accent-soft); color: var(--film-button); }
.staff .order-inspector { padding: 0; }
.staff .order-inspector .icon-button { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; text-align: center; }
.staff .order-inspector .button { margin: 0; text-align: center; }
.staff .orders-table .order-preview-toggle { min-width: 68px; padding: 5px 6px; font-size: 12px; justify-content: center; white-space: nowrap; }
.inline-form { gap: 8px; }
.inline-form > .field { min-width: min(190px, 100%); flex: 1 1 190px; }
.inline-form > .button { align-self: end; margin: 0; min-height: 40px; }
.inline-form > .form-grid, .inline-form > .notice, .inline-form > fieldset,
.inline-form > p, .inline-form > strong, .inline-form > [data-ui="return-postage-field"], .inline-form > .actions {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}
.inline-form > .actions { margin-top: 0; }
@media (max-width: 1199px) {
  .staff .order-inspector .icon-button { width: 44px; height: 44px; }
}
@media (max-width: 650px) {
  .staff :is(button, .button), .customer :is(button, .button) { min-height: 44px; }
  .button.small, .staff .button.small, .customer .button.small { min-height: 44px; }
  .staff .top .right button:not(.theme-toggle) { min-height: 44px; padding: 6px 8px; }
  .staff .icon-button { width: 44px; height: 44px; }
  .title-row { flex-wrap: wrap; }
  .title-row > .actions { width: 100%; justify-content: flex-start; }
  .queue-row { flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
  .queue-row > span { min-width: 0; flex: 1 1 170px; }
  .queue-row > .actions { flex: 0 1 auto; justify-content: flex-start; }
  .inline-form { align-items: stretch; }
  .inline-form > .field, .inline-form > .button { flex: 1 1 100%; width: 100%; min-width: 0; }
  .inline-form > .button { align-self: stretch; }
  .staff .orders-filters .filter-actions .button { min-height: 44px; }
  .staff .orders-filters input, .staff .orders-filters select { height: 46px; min-height: 46px; }
  .staff .order-inspector { padding-bottom: env(safe-area-inset-bottom); }
  .negative-options label { min-height: 44px; padding: 10px 12px; }
}

/* Receipt review stays quiet after confirmation and opens inline for exceptions. */
.receipt-audit > [data-ui="receipt-audit-body"][hidden],
.receipt-choice-field [data-ui="receipt-other-format"][hidden],
.receipt-choice-field [data-ui="receipt-other-process"][hidden],
.receipt-extra-picker [data-ui="receipt-other-format"][hidden],
.receipt-extra-picker [data-ui="receipt-other-process"][hidden] { display: none; }
.receipt-declaration-list { display: grid; gap: 10px; margin-top: 12px; }
.receipt-declaration { position: relative; padding: 12px; border: 1px solid var(--ops-border); border-radius: 10px; background: var(--ops-surface); }
.receipt-declaration-heading, .receipt-actual { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.receipt-status-stack { position: absolute; top: 12px; right: 12px; display: grid; justify-items: end; gap: 3px; }
.receipt-declared { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 12px 0; }
.receipt-declared > div { display: grid; gap: 3px; min-width: 0; }
.receipt-declared small { color: var(--ops-muted); }
.receipt-declared strong { overflow-wrap: anywhere; }
.receipt-record-actions { display: flex; max-width: 100%; flex-wrap: nowrap; align-items: center; gap: 8px; margin-top: 12px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.receipt-record-actions > .button { flex: 0 0 auto; margin: 0; white-space: nowrap; }
.receipt-exception-panel { margin-top: 16px; }
.receipt-exception-panel h3 { margin: 0 0 10px; font-size: 14px; }
.receipt-exception-list { display: grid; gap: 8px; }
.receipt-exception-row { display: grid; width: 100%; gap: 4px; padding: 12px; border: 1px solid var(--ops-border); border-radius: 9px; background: var(--ops-surface); color: var(--ops-ink); text-align: left; cursor: pointer; }
.receipt-exception-row:hover:not(:disabled) { border-color: var(--film-accent); background: var(--film-raised); }
.receipt-exception-row:disabled { cursor: not-allowed; opacity: .78; }
.receipt-exception-row .receipt-declaration-heading { width: 100%; }
.receipt-exception-row .receipt-declared { width: 100%; }
.receipt-exception-row .receipt-declared > span { display: grid; gap: 3px; min-width: 0; }
.receipt-exception-hint { color: var(--ops-muted); }
.receipt-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.receipt-completion-action { display: flex; justify-content: flex-end; margin-top: 12px; }
.receipt-audit .receipt-record-actions { flex-wrap: wrap; overflow: visible; }
.receipt-audit .receipt-record-actions > .button { min-height: 40px; }
.receipt-roll-groups { display: grid; gap: 12px; margin-top: 14px; }
.receipt-roll-single { width: 100%; min-width: 0; }
.receipt-roll-group { width: 100%; min-width: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.receipt-roll-group > summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 20px; min-height: 64px; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 8px; background: color-mix(in srgb, var(--ops-border) 24%, var(--ops-surface)); cursor: pointer; list-style: none; }
.receipt-roll-group > summary:focus-visible { outline: 2px solid var(--ops-accent); outline-offset: 2px; }
.receipt-roll-group > summary::-webkit-details-marker { display: none; }
.receipt-roll-group > summary::after { content: "＋"; color: var(--ops-muted); font-size: 18px; font-weight: 500; }
.receipt-roll-group[open] > summary::after { content: "−"; }
.receipt-roll-group > summary > span:first-child { display: grid; gap: 4px; min-width: 0; }
.receipt-roll-group-meta { justify-self: start; text-align: left; }
.receipt-roll-group > summary strong { color: var(--ops-ink); font-size: 15px; }
.receipt-roll-group > summary small,.receipt-roll-group-meta { color: var(--ops-muted); font-size: 12px; }
.receipt-roll-group-items { display: grid; gap: 0; padding: 0; }
.receipt-roll-group-items > .receipt-roll-item { padding: 20px 16px; border: 0; border-radius: 0; background: transparent; }
.receipt-roll-group-items > .receipt-roll-item + .receipt-roll-item { border-top: 1px solid var(--ops-border); }
.receipt-roll-item { display: grid; gap: 12px; width: 100%; min-width: 0; padding: 14px 16px; border: 1px solid var(--ops-border); border-radius: 9px; background: var(--ops-surface); }
.receipt-roll-heading { display: flex; min-width: 0; justify-content: space-between; align-items: flex-start; gap: 12px; }
.receipt-roll-heading > div:first-child { display: grid; gap: 4px; min-width: 0; }
.receipt-roll-heading strong { color: var(--ops-ink); font-size: 15px; font-weight: 750; }
.receipt-roll-heading small { color: var(--ops-muted); overflow-wrap: anywhere; }
.receipt-roll-code-line { display: flex; align-items: baseline; gap: 7px; }
.receipt-roll-code-line small { color: var(--ops-muted); font-size: 12px; }
.receipt-roll-code { color: var(--ops-ink); font-size: 18px; font-weight: 800; letter-spacing: .025em; line-height: 1.2; overflow-wrap: anywhere; }
.receipt-roll-code.is-missing { color: var(--ops-muted); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.receipt-roll-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.receipt-roll-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.receipt-roll-facts > div { display: grid; align-content: start; gap: 4px; min-width: 0; }
.receipt-roll-facts dt { color: var(--ops-muted); font-size: 12px; }
.receipt-roll-facts dd { margin: 0; color: var(--ops-ink); font-weight: 650; overflow-wrap: anywhere; }
.receipt-roll-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Receipt B follows the approved prototype: compact header, one progress rail,
   one panel, 44:56 columns, 44px queue rows and a persistent order action footer.
   Motion is driven by the shared FilmLabMotion runtime; no page-local timers. */
.staff main:has(.receipt-workspace-header) { padding: 18px 28px 24px; }
.receipt-workspace-header { margin: 0 0 16px; }
.receipt-workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.receipt-workspace-titleline { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.receipt-workspace-titleline h1 { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -.4px; line-height: 1.3; }
.staff .receipt-workspace-titleline .app-back-button { width: 28px; height: 30px; min-height: 30px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.receipt-workspace-titleline .app-back-button > span { display: none; }
.receipt-workspace-subline { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; color: var(--film-muted); font-size: 12px; line-height: 1.6; }
.receipt-workspace-subline > span:first-child { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.receipt-workspace-bag { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--film-border); border-radius: 6px; background: var(--film-surface); white-space: nowrap; }
.receipt-workspace-bag svg { width: 22px; height: 22px; color: var(--film-muted); }
.receipt-workspace-bag small { display: block; margin-bottom: 2px; color: var(--film-muted); font-size: 10px; }
.receipt-workspace-bag strong { font: 650 14px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2px; }
.receipt-workspace-order-info { margin-top: 2px; color: var(--film-muted); font-size: 12px; }
.receipt-workspace-order-info[open] { flex-basis: 100%; }
.receipt-workspace-order-info > summary { display: inline-flex; align-items: center; min-height: 26px; gap: 6px; cursor: pointer; list-style: none; }
.receipt-workspace-order-info > summary::-webkit-details-marker { display: none; }
.receipt-workspace-order-info > summary::after { content: '⌄'; }
.receipt-workspace-order-info[open] > summary::after { content: '⌃'; }
.receipt-workspace-order-info > div { padding: 14px 16px; margin-top: 8px; background: var(--film-surface); border: 1px solid var(--film-border); border-radius: 8px; }
.receipt-workspace-order-info dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.receipt-workspace-order-info dt { font-size: 11px; color: var(--film-muted); }
.receipt-workspace-order-info dd { margin: 4px 0 0; color: var(--film-ink); overflow-wrap: anywhere; }
.receipt-workspace-order-tools { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.receipt-workspace-note { margin: 12px 0 0; white-space: pre-wrap; }
.staff .panel.receipt-audit.receipt-audit-workspace { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.receipt-review-summary { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--film-border); }
.receipt-review-metric { display: flex; align-items: baseline; gap: 7px; color: var(--film-muted); font-size: 12px; white-space: nowrap; }
.receipt-review-metric strong { color: var(--film-ink); font-size: 23px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.receipt-review-metric.is-received strong { color: var(--theme-success-text, #397453); }
.receipt-review-metric.is-pending strong { color: var(--theme-warning-text, #926019); }
.receipt-review-metric.is-issue strong { color: var(--theme-danger-text, #ad4545); }
.receipt-review-progress { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--film-muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt-record .receipt-review-summary { --receipt-record-group-gap: 20px; --receipt-record-metric-gap: 7px; flex-wrap: wrap; gap: 12px var(--receipt-record-group-gap); margin: 0; padding: 0; border: 0; }
.receipt-record .receipt-review-metric { align-items: center; gap: var(--receipt-record-metric-gap); }
.receipt-record-toggle { margin-inline-start: calc(var(--receipt-record-group-gap) - var(--receipt-record-metric-gap)); white-space: nowrap; }
.receipt-record [data-motion-disclosure-content] > p { margin: 12px 0; }
.receipt-record .queue-row { border-color: var(--film-border); }
.receipt-progress-track { display: block; width: 110px; height: 5px; border-radius: 5px; overflow: hidden; background: var(--film-border); }
.receipt-progress-fill { display: block; width: 100%; height: 100%; background: var(--theme-success-text, #397453); transform: scaleX(0); transform-origin: left center; }
.receipt-review-panel { border: 1px solid var(--film-border); border-radius: 10px; overflow: clip; background: var(--film-surface); }
.receipt-review-panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 16px; border-bottom: 1px solid var(--film-border); }
.staff .receipt-review-panel-toolbar h2 { margin: 0; font-size: 14px; font-weight: 650; }
.receipt-review-toolbar-heading { display: flex; align-items: center; gap: 12px; }
.staff .receipt-review-toolbar-heading .receipt-review-toggle { min-height: 34px; padding: 7px 10px; border: 0; box-shadow: none; color: var(--film-muted); background: transparent; font-size: 12px; }
.staff .receipt-review-toolbar-heading .receipt-review-toggle[aria-expanded="false"] { color: var(--film-button); background: var(--film-accent-soft); }
.receipt-review-panel-tools { display: flex; align-items: center; gap: 8px; }
.staff .receipt-review-panel-tools > .button { min-height: 36px; padding: 8px 12px; color: var(--film-ink); border-color: var(--film-border); background: var(--film-surface); font-size: 12px; font-weight: 550; box-shadow: none; }
.staff .receipt-review-panel-tools > .button:hover { background: var(--film-inset); }
.receipt-review-focused { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.15fr); }
.receipt-review-queue { min-width: 0; border-right: 1px solid var(--film-border); }
.receipt-review-queue-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; color: var(--film-muted); font-size: 11px; }
.receipt-review-queue-header strong { color: var(--film-ink); font-size: 14px; }
.receipt-review-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.receipt-review-queue .receipt-review-filters { margin: 0 12px 8px; }
.staff .receipt-review-filters > .button { display: flex; align-items: center; gap: 6px; min-height: 36px; margin: 0; padding: 7px 10px; border: 0; background: transparent; color: var(--film-muted); font-size: 12px; font-weight: 550; box-shadow: none; }
.staff .receipt-review-filters > .button[aria-pressed="true"] { background: var(--film-accent-soft); color: var(--film-button); }
.receipt-review-queue-items { position: relative; isolation: isolate; display: grid; gap: 2px; padding: 0 8px 8px; }
.receipt-review-queue-highlight { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; border: 1px solid color-mix(in srgb, var(--film-accent) 18%, var(--film-surface)); border-radius: 6px; background: var(--film-accent-soft); }
.receipt-review-queue-item { position: relative; z-index: 1; display: grid; width: 100%; min-width: 0; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1px solid transparent; border-radius: 6px; color: var(--film-ink); background: transparent; cursor: pointer; text-align: left; }
.receipt-review-queue-item:hover { background: var(--film-inset); }
.receipt-review-queue-item[aria-pressed="true"] { border-color: color-mix(in srgb, var(--film-accent) 18%, var(--film-surface)); background: var(--film-accent-soft); }
.receipt-review-queue-items[data-highlight-ready="true"] .receipt-review-queue-item[aria-pressed="true"] { border-color: transparent; background: transparent; }
.receipt-review-queue-item:focus-visible { outline: 2px solid var(--film-focus); outline-offset: -2px; }
.receipt-review-index { color: var(--film-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.receipt-review-queue-copy { display: grid; min-width: 0; gap: 2px; }
.receipt-review-queue-copy strong { font-size: 12px; line-height: 16px; font-weight: 600; overflow-wrap: anywhere; }
.receipt-review-queue-copy .receipt-review-issued-code { font-size: 16px; line-height: 20px; font-weight: 750; letter-spacing: .025em; font-variant-numeric: tabular-nums; }
.receipt-review-queue-copy small { color: var(--film-muted); font-size: 10px; line-height: 12px; overflow-wrap: anywhere; }
.staff .receipt-review-focused .badge { padding: 0; background: transparent; border: 0; border-radius: 0; color: var(--theme-success-text, #397453); font-size: 11px; font-weight: 500; line-height: 1.5; white-space: normal; }
.receipt-review-focused .badge::before { content: '•'; margin-right: 4px; }
.staff .receipt-review-focused .badge.amber { color: var(--theme-warning-text, #926019); }
.staff .receipt-review-focused .badge.gray { color: var(--film-muted); }
.receipt-review-queue-item > .badge { max-width: 120px; font-size: 10px; }
.receipt-review-inspector { display: flex; min-width: 0; flex-direction: column; padding: 16px 26px 18px; }
.receipt-review-inspector-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--film-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.receipt-review-inspector-body { display: flex; flex: 1; flex-direction: column; min-width: 0; opacity: 1; }
.receipt-review-focused .receipt-roll-item { flex: 1; display: flex; flex-direction: column; gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.receipt-review-focused .receipt-roll-heading { display: block; min-height: 0; margin: 0 0 16px; }
.receipt-review-focused .receipt-roll-heading > div:first-child { display: block; }
.receipt-review-focused .receipt-roll-code { color: var(--film-ink); font-size: 25px; font-weight: 650; line-height: 1.3; letter-spacing: -.4px; }
.receipt-review-focused .receipt-roll-code.receipt-review-issued-code { font-size: 32px; font-weight: 750; letter-spacing: .025em; font-variant-numeric: tabular-nums; }
.receipt-review-focused .receipt-roll-status { justify-content: flex-start; align-items: center; gap: 8px; margin-top: 7px; }
.receipt-review-code-note { color: var(--film-muted); font-size: 11px; }
.receipt-review-focused .receipt-roll-facts { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--film-border); }
.receipt-review-focused .receipt-roll-facts > div { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 40px; padding: 8px 0; border-bottom: 1px solid var(--film-border); }
.receipt-review-focused .receipt-roll-facts .receipt-roll-service { grid-column: auto; }
.receipt-review-focused .receipt-roll-facts dt { font-size: 12px; }
.receipt-review-focused .receipt-roll-facts dd { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.6; }
.receipt-review-fact-source { color: var(--theme-success-text, #397453); font-size: 11px; font-weight: 400; white-space: nowrap; }
.receipt-review-hint { margin: 12px 0 16px; color: var(--film-muted); font-size: 11px; line-height: 1.7; }
.receipt-review-focused .receipt-roll-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.staff .receipt-review-focused .receipt-roll-actions > .button { min-width: 0; min-height: 36px; padding: 7px 8px; border-color: transparent; background: transparent; color: var(--film-muted); font-size: 12px; font-weight: 500; box-shadow: none; }
.staff .receipt-review-focused .receipt-roll-actions > .button:hover:not(:disabled) { background: var(--film-inset); color: var(--film-button); }
.staff .receipt-review-focused .receipt-roll-actions > .button:last-child { order: -1; width: 100%; flex-basis: 100%; min-height: 42px; margin-bottom: 4px; font-size: 13px; font-weight: 600; background: var(--film-inset); }
.staff .receipt-review-focused .receipt-roll-actions > .button:last-child:not(:disabled) { color: var(--film-button-text); background: var(--film-button); }
.staff .receipt-review-focused .receipt-roll-actions > .button:last-child:not(:disabled):hover { background: var(--film-button-hover); }
.receipt-review-focused [data-act="confirm-receipt-row"]::after { content: '→'; margin-left: 6px; }
.receipt-review-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 18px; border-top: 1px solid var(--film-border); }
.receipt-review-footer p { margin: 0; color: var(--film-muted); font-size: 12px; line-height: 1.6; }
.receipt-review-footer p strong { color: var(--film-ink); font-weight: 550; }
.receipt-review-footer-actions { display: flex; align-items: center; gap: 8px; }
.staff .receipt-review-footer-actions > .button { min-height: 40px; font-size: 12px; }
.staff .receipt-review-footer-actions > .button.secondary { padding-inline: 18px; background: var(--film-button); color: var(--film-button-text); }
.staff .receipt-review-collapse { border: 0; background: transparent; color: var(--film-muted); box-shadow: none; font-size: 12px; }
.receipt-audit-workspace .receipt-extra-picker { padding: 16px; margin-top: 14px; border: 1px solid var(--film-border); border-radius: 8px; background: var(--film-surface); }
.receipt-review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 12px; }
.receipt-review-table-wrap { overflow: auto; border: 1px solid var(--film-border); border-radius: 9px; }
.receipt-review-table { width: 100%; min-width: 810px; border-collapse: collapse; background: var(--film-surface); font-size: 12px; }
.receipt-review-table th { padding: 10px 12px; color: var(--film-muted); font-size: 11px; font-weight: 500; text-align: left; border-bottom: 1px solid var(--film-border); }
.receipt-review-table td { padding: 8px 12px; min-height: 48px; border-bottom: 1px solid var(--film-border); vertical-align: middle; }
.receipt-review-table tr:last-child td { border-bottom: 0; }
.receipt-review-table .receipt-review-group-cell { padding: 10px 12px; background: var(--film-inset); }
.receipt-review-group-cell > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.receipt-review-group-cell strong { font-size: 12px; font-weight: 600; }
.receipt-review-group-cell small { flex: 0 0 auto; color: var(--film-muted); }
.receipt-review-table .receipt-roll-code { font-size: 15px; letter-spacing: .025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt-review-table .receipt-roll-code.is-missing { font-size: 12px; }
.receipt-review-table .receipt-review-scan-cell { min-width: 170px; max-width: 290px; line-height: 1.65; overflow-wrap: anywhere; }
.receipt-review-table .receipt-review-row-actions { display: flex; align-items: center; gap: 6px; }
.receipt-review-row-actions > .button { min-height: 34px; white-space: nowrap; font-size: 12px; }
.receipt-review-more { position: relative; }
.receipt-review-more > summary { display: grid; place-items: center; width: 36px; height: 34px; border-radius: 6px; cursor: pointer; list-style: none; color: var(--film-muted); }
.receipt-review-more > summary::-webkit-details-marker { display: none; }
.receipt-review-more[open] > summary { background: var(--film-inset); }
.receipt-review-more > div { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 0; }
.receipt-review-more > div > .button { min-height: 34px; font-size: 11px; }
.receipt-review-more[open] { min-width: 200px; }
.receipt-review-empty { padding: 28px 14px; color: var(--film-muted); text-align: center; font-size: 13px; }
@media (max-width: 1100px) {
  .receipt-review-focused { grid-template-columns: minmax(240px, .9fr) minmax(0, 1.15fr); }
  .receipt-review-inspector { padding: 16px 18px; }
  .receipt-review-queue-item { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px; padding-inline: 8px; }
  .receipt-review-queue-item > .badge { max-width: 80px; }
  .receipt-review-queue .receipt-review-filters { margin-inline: 8px; gap: 0; }
  .staff .receipt-review-queue .receipt-review-filters > .button { padding-inline: 7px; }
  .receipt-review-fact-source { display: none; }
  .receipt-review-focused .receipt-roll-facts > div { grid-template-columns: 70px minmax(0, 1fr); }
}
@media (max-width: 750px) {
  .staff main:has(.receipt-workspace-header) { padding: 16px 12px; }
  .receipt-workspace-bag { padding: 7px 9px; }
  .receipt-workspace-bag svg { display: none; }
  .receipt-workspace-titleline { flex-wrap: wrap; }
  .receipt-workspace-titleline h1 { font-size: 20px; }
  .receipt-workspace-titleline > .badge { display: none; }
  .receipt-workspace-order-info dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .receipt-review-summary { flex-wrap: wrap; gap: 14px; }
  .receipt-record .receipt-review-summary { --receipt-record-group-gap: 10px; }
  .receipt-review-metric strong { font-size: 20px; }
  .receipt-review-progress { flex-basis: 100%; justify-content: flex-end; }
  .receipt-review-panel-toolbar { flex-wrap: wrap; padding: 12px; }
  .receipt-review-panel-tools { flex-wrap: wrap; gap: 6px; }
  .receipt-review-focused { grid-template-columns: minmax(0, 1fr); }
  .receipt-review-queue { border-right: 0; border-bottom: 1px solid var(--film-border); }
  .receipt-review-queue-items { max-height: 236px; overflow-y: auto; overscroll-behavior-y: contain; }
  .receipt-review-inspector { min-height: 400px; padding: 18px; }
  .receipt-review-focused .receipt-roll-actions > .button { min-height: 44px; }
  .receipt-review-footer { align-items: flex-start; flex-direction: column; padding: 14px; }
  .receipt-review-footer-actions { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .receipt-progress-fill, .receipt-review-inspector-body { transition: none; animation: none; }
}
.receipt-issue-panel { display: grid; gap: 10px; }
.receipt-issue-panel > strong { color: var(--ops-ink); }
.receipt-issue-options { display: flex; flex-wrap: wrap; gap: 8px; }
.receipt-issue-panel .field { margin: 0; }
.receipt-issue-dialog { width: min(520px, calc(100vw - 32px)); display: grid; gap: 14px; }
.receipt-issue-dialog header h2 { margin: 0 0 4px; }
.receipt-issue-dialog header p { margin: 0; }
.receipt-issue-roll-code { display: grid; gap: 2px; margin-top: 10px; }
.receipt-issue-roll-code > span { color: var(--ops-muted); font-size: 12px; }
.receipt-issue-roll-code > strong { color: var(--ops-ink); font-size: 22px; font-weight: 800; letter-spacing: .025em; line-height: 1.2; overflow-wrap: anywhere; }
.receipt-issue-dialog-footer { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 4px; }
.confirm-dialog-order-receipt { display: grid; gap: 8px; }
.confirm-dialog-order-receipt p { margin: 0; line-height: 1.55; }
.confirm-dialog-order-receipt strong { color: var(--ops-ink); font-size: 16px; }
@media (max-width: 650px) {
  .receipt-roll-group > summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 18px; gap: 8px; padding: 11px 12px; }
  .receipt-roll-item { padding: 12px; }
  .receipt-roll-group-items > .receipt-roll-item { padding: 16px 12px; }
  .receipt-roll-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .receipt-roll-service { grid-column: 1 / -1; }
}
.receipt-exception-options { display: grid; gap: 8px; margin: 12px 0; padding: 0; border: 0; }
.receipt-exception-options legend { margin-bottom: 3px; font-weight: 700; }
.receipt-exception-options .choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.receipt-exception-options .choice-button { min-height: 44px; }
.receipt-exception-options .choice-button[aria-pressed="true"] { border-color: var(--ops-accent); background: var(--ops-accent-soft); color: var(--ops-accent); font-weight: 700; }
.staff .receipt-choice-field .choice-button:disabled { cursor: not-allowed; opacity: .58; box-shadow: none; }
.receipt-exception-modal [data-ui="receipt-exception-other"][hidden] { display: none; }
.receipt-extra-section { display: grid; justify-items: start; gap: 12px; margin-top: 14px; }
.receipt-extra-picker { width: 100%; margin-top: 0; }
.receipt-extra-picker > .field-group { min-width: 0; }
.receipt-confirm { margin-top: 10px; }
.receipt-confirm .stack { gap: 10px; }
.receipt-confirm .row { flex-wrap: wrap; }
.receipt-choice-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.receipt-choice-field legend { margin-bottom: 7px; font-weight: 700; }
.receipt-choice-field .choice-button:has(input:checked) { border-color: var(--ops-accent); background: var(--ops-accent-soft); color: var(--ops-ink); }
.receipt-choice-field .choice-button:focus-within { outline: 2px solid var(--ops-accent); outline-offset: 2px; }
.receipt-correction-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.receipt-correction-modal .receipt-choice-field .choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.receipt-correction-modal .receipt-choice-field .choice-button { display: flex; min-width: 0; min-height: 44px; align-items: center; justify-content: center; padding: 8px; text-align: center; white-space: normal; }
.button.cancel-action { color: var(--film-button); border: 1px solid var(--film-border); background: var(--film-surface); }
.button.cancel-action:hover:not(:disabled) { border-color: var(--film-border); background: var(--film-raised); color: var(--film-ink); }
.button.cancel-action:focus-visible { outline: 2px solid var(--film-focus); outline-offset: 2px; }
.button.cancel-action:disabled { border-color: var(--film-border); background: var(--film-raised); color: var(--film-muted); }
.staff .button.cancel-action { color: var(--film-button); border-color: var(--film-border); background: var(--film-surface); }
.staff .button.cancel-action:hover:not(:disabled) { color: var(--film-ink); border-color: var(--film-border); background: var(--film-raised); }
.actions:has(> .cancel-action) { justify-content: space-between; }
.actions:has(> .cancel-action) > .cancel-action { order: -1; }
.confirm-dialog .actions:has(> .cancel-action) { justify-content: flex-end; gap: 8px; }
.receipt-correction-actions { justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.receipt-correction-actions > button { min-width: 120px; }
.pending-intake-classification-form { width: min(760px, calc(100vw - 32px)); max-height: min(90vh, 880px); overflow-y: auto; }
.pending-intake-classification-form .actions { position: sticky; bottom: -25px; margin: 14px -25px -25px; padding: 14px 25px 25px; border-top: 1px solid var(--ops-border); background: var(--film-surface); }
.receipt-service-modal { width: min(760px, calc(100vw - 32px)); max-height: min(90vh, 880px); overflow-y: auto; }
.receipt-service-modal-close { display: block; margin: 14px 0 0 auto; }
.receipt-service-change-form { width: min(920px, calc(100vw - 32px)); }
.receipt-service-change-error, .receipt-service-change-inline-error { margin: 8px 0 0; color: var(--theme-danger-text, #b43d37); font-size: 12px; line-height: 1.45; }
.receipt-service-change-footer { position: sticky; bottom: -25px; display: grid; justify-items: end; gap: 8px; margin: 14px -25px -25px; padding: 12px 25px 18px; border-top: 1px solid var(--ops-border); background: var(--film-surface); }
.receipt-service-change-total { display: grid; justify-items: end; gap: 2px; }
.receipt-service-change-total small { color: var(--ops-muted); font-size: 12px; }
.receipt-service-change-total strong { color: var(--ops-ink); font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.receipt-service-change-actions { display: flex; justify-content: space-between; gap: 8px; width: 100%; }
.pending-intake-physical-fields { display: grid; gap: 14px; }
.pending-intake-physical-fields > div:first-child { display: grid; gap: 5px; }
.pending-intake-physical-fields > div:first-child small { color: var(--ops-muted); }
.pending-intake-physical-fields > div:first-child strong { color: var(--ops-ink); }
.pending-intake-service { display: grid; gap: 10px; margin: 14px 0; padding: 12px; border-radius: 9px; background: var(--film-raised); }
.pending-intake-service h3 { margin: 0; font-size: 14px; }
.pending-intake-service .form-grid { margin-bottom: 8px; }
.pending-intake-service [data-ui="pending-intake-quote"] { margin: 0; }
.pending-intake-choice-stack { display: grid; gap: 14px; }
.pending-intake-choice-stack .pending-choice-field,
.pending-intake-choice-stack .pending-choice-level { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pending-intake-choice-stack legend { margin-bottom: 2px; color: var(--ops-ink); font-size: 13px; font-weight: 700; }
.pending-intake-choice-stack .create-square-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pending-intake-choice-stack .choice-button { display: flex; min-width: 0; min-height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 9px 10px; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.pending-intake-choice-stack .square-meta { color: var(--ops-muted); font-size: 11px; line-height: 1.35; }
.pending-intake-choice-stack .pending-choice-option > .choice-button { height: auto; align-self: start; }
.pending-choice-option { display: block; min-width: 0; }
.pending-choice-option > .choice-button { width: 100%; height: 100%; }
.pending-choice-level { grid-column: 1 / -1; }
.pending-intake-choice-stack .choice-button:disabled { cursor: not-allowed; opacity: .55; }
.pending-intake-addon { position: static; min-width: 0; max-width: none; }
.pending-intake-addon > summary { display: flex; width: 100%; min-height: 48px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; list-style: none; cursor: pointer; }
.pending-intake-addon > summary::-webkit-details-marker { display: none; }
.pending-intake-addon > summary::after { content: "+"; color: var(--ops-muted); font-size: 13px; line-height: 1; }
.pending-intake-addon[open] > summary::after { content: "−"; }
.pending-intake-addon > summary[aria-expanded="true"] { border-color: var(--ops-accent); }
.pending-intake-addon-panel { margin-top: 7px; padding: 9px; border: 1px solid var(--ops-border); border-radius: 8px; background: var(--ops-surface); }
.pending-intake-addon-panel .create-wash-addon-level-options { max-height: none; overflow: visible; }
@media (max-width: 650px) {
  .pending-intake-choice-stack .create-square-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bag-print-confirmation { width: min(100%, 480px); display: grid; gap: 18px; text-align: center; }
.bag-print-confirmation h2 { margin: 0; }
.bag-print-confirmation-code { display: grid; min-height: 112px; place-items: center; padding: 20px 14px; border-radius: 12px; background: var(--film-raised); color: var(--film-ink); font-size: clamp(32px, 8vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: .035em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bag-print-confirmation .actions { justify-content: center; margin-top: 0; }
.staff .bag-print-confirmation .button.light[data-handwrite-bag-label]:disabled { opacity: 1; background: var(--film-surface); border-color: var(--film-border); color: var(--film-button); cursor: not-allowed; }
.receipt-correction { margin: 10px 0 14px; }
.roll-process-group { margin: 10px 0; border: 1px solid var(--ops-border); border-radius: 10px; background: var(--ops-surface); }
.roll-process-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.roll-process-group > summary:focus-visible { outline: 2px solid var(--ops-accent); outline-offset: 2px; }
.roll-process-group-items { display: grid; gap: 12px; padding: 0 12px 12px; }
.roll-entry { min-width: 0; }
.staff .staff-detail-board { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.85fr); gap: 18px; align-items: start; margin-top: 18px; }
.staff .staff-detail-zone { min-width: 0; }
.staff .staff-detail-production > .section-heading { margin-top: 0; }
.staff .staff-detail-production > .roll-process-group:first-of-type { margin-top: 10px; }
.staff .staff-detail-zone > .panel { margin-bottom: 12px; }
.staff .staff-production-workbench { display: grid; grid-template-columns: minmax(208px, .37fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.staff .staff-roll-queue { min-width: 0; overflow: hidden; border: 1px solid var(--ops-border); border-radius: 9px; background: var(--ops-surface); }
.staff .staff-roll-queue > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--ops-border); }
.staff .staff-roll-queue > header > div { display: grid; gap: 3px; }
.staff .staff-roll-queue > header small,.staff .staff-roll-queue > header > span,.staff .staff-roll-queue > footer { color: var(--ops-muted); font-size: 11px; }
.staff .staff-roll-queue > header strong { color: var(--ops-ink); font-size: 16px; }
.staff .staff-roll-queue-list { display: grid; max-height: 680px; overflow: auto; overscroll-behavior: contain; }
.staff .staff-roll-queue-item { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 8px; align-items: start; width: 100%; min-width: 0; padding: 10px; border: 0; border-bottom: 1px solid var(--ops-border); background: transparent; color: var(--ops-ink); text-align: left; }
.staff .staff-roll-queue-item:last-child { border-bottom: 0; }
.staff .staff-roll-queue-item:hover { background: color-mix(in srgb, var(--ops-accent) 5%, var(--ops-surface)); }
.staff .staff-roll-queue-item.is-current { background: color-mix(in srgb, var(--ops-accent) 9%, var(--ops-surface)); box-shadow: inset 3px 0 var(--ops-accent); }
.staff .staff-roll-queue-item:focus-visible { outline: 2px solid var(--ops-accent); outline-offset: -2px; }
.staff .staff-roll-queue-index { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 6px; background: var(--film-inset); color: var(--film-muted); font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.staff .staff-roll-queue-item.is-current .staff-roll-queue-index { background: var(--ops-accent); color: #fff; }
.staff .staff-roll-queue-copy { display: grid; min-width: 0; gap: 3px; }
.staff .staff-roll-queue-copy strong { overflow-wrap: anywhere; font-size: 12px; }
.staff .staff-roll-queue-copy small { overflow: hidden; color: var(--ops-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.staff .staff-roll-queue-status { grid-column: 2; }
.staff .staff-roll-queue-status .badge { padding: 3px 6px; font-size: 10px; }
.staff .staff-roll-queue > footer { padding: 9px 12px; border-top: 1px solid var(--ops-border); }
.staff .staff-roll-inspector { min-width: 0; }
.staff .staff-roll-inspector > .roll-card { margin: 0; }
.staff .staff-detail-settlement { display: grid; gap: 9px; }
.staff .staff-detail-zone-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 12px 14px; border: 1px solid var(--ops-border); border-radius: 8px; background: var(--ops-surface); }
.staff .staff-detail-zone-heading h2 { margin: 0; color: var(--ops-ink); font-size: 16px; }
.staff .staff-detail-zone-heading span { color: var(--ops-muted); font-size: 11px; }
.staff .staff-detail-ledger { padding: 13px; border: 1px solid var(--ops-border); border-radius: 8px; background: var(--ops-surface); }
.staff .staff-detail-ledger > [data-act="open-order-billing"] { display: flex; width: fit-content; margin-inline-start: auto; }
.staff .staff-detail-ledger > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.staff .staff-detail-ledger > header h2 { margin: 0; font-size: 14px; }
.staff .staff-detail-ledger > header span { color: var(--ops-muted); font-size: 11px; }
.staff .staff-detail-ledger-summary { display: grid; gap: 7px; margin: 12px 0; }
.staff .staff-detail-ledger-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--ops-muted); font-size: 12px; }
.staff .staff-detail-ledger-summary b { color: var(--ops-ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.staff .staff-detail-ledger-summary .is-due { padding-top: 8px; border-top: 1px solid var(--ops-border); color: var(--ops-ink); font-weight: 700; }
.staff .staff-detail-ledger-summary .is-due b { font-size: 17px; }
.staff .staff-detail-ledger-summary .staff-bill-breakdown { padding-top: 0; }
.staff .staff-bill-breakdown > summary { justify-content: flex-start; }
.staff .staff-bill-breakdown > summary b { margin-inline-start: auto; white-space: nowrap; }
.staff .staff-bill-breakdown ul { display: grid; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.staff .staff-bill-breakdown li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; font-size: 12px; overflow-wrap: anywhere; }
.staff .staff-bill-breakdown li > ul { grid-column: 1 / -1; margin: 0 0 3px; padding-inline-start: 9px; color: var(--ops-muted); }
.staff .staff-bill-breakdown li small { display: block; color: var(--ops-muted); }
.staff .staff-bill-breakdown li b { white-space: nowrap; }
.staff .staff-bill-breakdown .staff-bill-group-row { display: block; }
.staff .staff-bill-breakdown .staff-bill-service-group { padding-top: 0; border: 0; }
.staff .staff-bill-breakdown .staff-bill-service-group > summary { justify-content: flex-start; }
.staff .staff-bill-service-group > summary > span:first-child { min-width: 0; flex: 1; }
.staff .staff-bill-service-group > summary > span + span { text-align: right; }
.staff .staff-bill-service-group > ul { margin-inline-start: 8px; }
.order-billing-dialog { width: min(100%, 620px); max-height: calc(100dvh - 36px); overflow-y: auto; }
.order-billing-section { border-top: 1px solid var(--film-border); }
.order-billing-section > summary { padding: 12px 0; color: var(--film-ink); font-weight: 650; cursor: pointer; }
.order-billing-section > div { padding-bottom: 12px; }
.order-billing-section .inline-form { align-items: flex-start; }
.order-billing-section .actions { flex-wrap: wrap; margin-top: 8px; }
.order-billing-section[open]:has(.shared-select-dropdown[open]) { position: relative; z-index: 2; }
.order-billing-section[open]:has(.shared-select-dropdown[open])::details-content { overflow: visible; }
.staff .staff-detail-disclosure { border-top: 1px solid var(--ops-border); padding-top: 10px; }
.staff .staff-detail-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; color: var(--ops-ink); cursor: pointer; font-size: 12px; font-weight: 650; list-style: none; }
.staff .staff-detail-disclosure > summary::-webkit-details-marker { display:none; }
.staff .staff-detail-disclosure > summary::after { content: "＋"; color: var(--ops-muted); font-size: 14px; }
.staff .staff-detail-disclosure[open] > summary::after { content: "−"; }
.staff .staff-detail-disclosure > .panel { margin: 10px 0 0; padding: 12px; }
.staff .staff-detail-disclosure .inline-form { padding: 10px; }
.staff .staff-detail-disclosure .actions { flex-wrap: wrap; }
.staff .roll-equipment-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 10px 0 0; padding: 9px 11px; border-radius: 6px; background: var(--film-inset); color: var(--film-muted); font-size: 12px; }
.staff .roll-equipment-summary strong { color: var(--film-ink); font-weight: 600; text-align: right; }
.staff .staff-detail-fulfillment > .panel:first-child { margin-top: 0; }
.staff .roll-progress-block { margin: 14px 0 16px; padding: 12px 14px 10px; border: 1px solid #e0e7ee; border-radius: 8px; background: #f5f8fb; }
.staff .roll-progress-heading { margin: 0 0 7px; color: #637487; font-size: 12px; font-weight: 650; }
.staff .roll-stage-progress { display: flex; width: 100%; padding: 8px 2px 5px; border-radius: 0; background: transparent; }
.staff .roll-progress-stage { flex: 1 1 0; min-width: 0; text-align: center; }
.staff .roll-progress-stage .inspector-stage-rail { height: 18px; margin-bottom: 5px; }
.staff .roll-progress-stage .inspector-stage-node { width: 12px; height: 12px; margin-top: 1px; border-width: 2px; background: #fff; }
.staff .roll-progress-stage .inspector-stage-connector { top: 5px; height: 2px; background: #d6dee7; }
.staff .roll-progress-stage .inspector-stage-connector.is-done { background: #d6dee7; }
.staff .roll-progress-stage .roll-progress-fill { display: block; width: 100%; height: 100%; transform-origin: left center; border-radius: inherit; background: #79a985; }
.staff .roll-progress-stage.is-done .inspector-stage-node { border-color: #68a477; background: #68a477; }
.staff .roll-progress-stage.is-active .inspector-stage-node,.staff .roll-progress-stage.is-current:not(.is-done) .inspector-stage-node { border-color: #3568dc; background: #fff; box-shadow: 0 0 0 4px #eaf0ff; animation: roll-stage-pulse 2s ease-in-out infinite; }
.staff .roll-progress-stage.is-current strong { color: #315fae; font-weight: 750; }
.staff .roll-progress-stage.is-done strong { color: #477653; }
.staff .roll-progress-stage strong { font-size: 12px; font-weight: 650; }
.staff .roll-progress-stage small { margin-top: 4px; color: #8491a0; font-size: 10px; line-height: 1.35; }
.staff .roll-progress-stage.is-current small { color: #315fae; font-weight: 700; }
.staff .roll-progress-stage.is-done small { color: #4f805d; }
@keyframes roll-stage-pulse { 50% { box-shadow: 0 0 0 6px #eaf0ff; } }
.staff .staff-order-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(290px,340px); gap: 16px; align-items: start; margin-top: 8px; }
.staff .staff-order-primary,.staff .staff-order-rail { min-width: 0; }
.staff .staff-order-primary { display: grid; gap: 14px; }
.staff .staff-order-rail { display: grid; gap: 12px; }
.staff .staff-return-logistics-method { margin: 0 0 8px; overflow-wrap: anywhere; }
.staff .staff-return-logistics-method small { display: block; color: var(--film-muted); }
.staff .staff-return-waybill-row > span { min-width: 0; overflow-wrap: anywhere; }
.staff .staff-return-waybill-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; flex: 0 0 auto; }
.staff .staff-order-roll-ledger { min-width: 0; margin: 0; padding: 0; overflow: hidden; }
.staff .panel.staff-order-roll-ledger { margin: 0; padding: 0; }
.staff .staff-order-roll-ledger > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 11px 15px; border-bottom: 1px solid var(--ops-border); }
.staff .staff-order-roll-ledger > header > div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.staff .staff-order-roll-ledger > header h2,.staff .staff-order-progress-card > header h2 { margin: 0; color: var(--ops-ink); font-size: 15px; }
.staff .staff-order-roll-ledger > header small,.staff .staff-order-roll-ledger > header > span { color: var(--ops-muted); font-size: 11px; }
.staff .staff-order-ledger-table { min-width: 0; }
.staff .staff-order-ledger-head,.staff .staff-order-roll-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; align-items: center; }
.staff .staff-order-ledger-head { min-height: 36px; padding: 0; background: var(--film-inset); color: var(--ops-muted); font-size: 10px; font-weight: 650; text-align: center; }
.staff .staff-order-ledger-head > span { min-width: 0; text-align: center; }
.staff .staff-order-roll-row { display: block; margin: 0; border: 0; border-bottom: 1px solid var(--ops-border); border-radius: 0; background: transparent; }
.staff .staff-order-roll-row:last-child { border-bottom: 0; }
.staff .staff-order-roll-row > .staff-order-roll-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); justify-content: initial; gap: 0; align-items: center; min-height: 48px; padding: 7px 0; color: var(--ops-ink); cursor: pointer; list-style: none; font-size: 12px; }
.staff .staff-order-roll-row > .staff-order-roll-summary::-webkit-details-marker { display: none; }
.staff .staff-order-roll-row > .staff-order-roll-summary:focus-visible { outline: 2px solid var(--ops-accent); outline-offset: -2px; }
.staff .staff-order-roll-summary > span { min-width: 0; overflow-wrap: anywhere; text-align: center; }
.staff .staff-order-roll-code { display: flex; align-items: center; justify-self: center; justify-content: center; gap: 8px; }
.staff .staff-order-roll-code i { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 6px; background: var(--film-inset); color: var(--ops-muted); font-size: 10px; font-style: normal; font-weight: 700; }
.staff .staff-order-roll-code strong { color: var(--ops-ink); font: 700 12px ui-monospace,SFMono-Regular,Menlo,monospace; }
.staff .staff-order-roll-state .badge { white-space: nowrap; }
.staff .staff-order-roll-state { justify-self: center; }
.staff .staff-order-roll-state .badge.orange-soft { background: #fbf4ec; color: #956b42; }
.staff .staff-order-roll-state .badge.orange { background: #f8ebdd; color: #88501d; }
.staff .staff-order-roll-state .badge.blue-soft { background: #f0f4fa; color: #58749a; }
.staff .staff-order-roll-state .badge.blue { background: #e7eef8; color: #365b8b; }
.staff .staff-order-roll-state .badge.purple-soft { background: #f5f1f8; color: #806b98; }
.staff .staff-order-roll-expand { color: var(--film-button); text-align: center; font-size: 11px; font-weight: 650; }
.staff .staff-order-roll-expand-close { display: none; }
.staff .staff-order-roll-row[open] .staff-order-roll-expand-open { display: none; }
.staff .staff-order-roll-row[open] .staff-order-roll-expand-close { display: inline; }
.staff .staff-order-roll-service { display: grid; justify-items: center; gap: 2px; line-height: 1.35; }
.staff .staff-order-roll-service > strong { font-size: inherit; font-weight: 600; }
.staff .staff-order-roll-service > small { color: var(--ops-muted); font-size: 10px; }
.staff .staff-order-roll-row > .staff-order-roll-summary::after { display: none; content: none; }
.staff .staff-order-roll-expanded { padding: 12px 14px 14px; border-top: 1px solid var(--ops-border); background: transparent; }
.staff .staff-order-roll-expanded > .notice { margin: 0 0 10px; }
.staff .staff-order-roll-expanded > .roll-card { margin: 0; }
.staff .staff-order-roll-expanded > .roll-card.compact-ledger-roll-card { padding: 18px; border: 1px solid var(--ops-border); border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(31,55,85,.08); }
.staff .compact-ledger-roll-card .roll-head { align-items: flex-start; justify-content: space-between; gap: 12px; }
.staff .compact-ledger-roll-card .roll-head > div { min-width: 0; overflow-wrap: anywhere; }
.staff .roll-card-actions-menu { flex: 0 0 auto; white-space: nowrap; }
.staff .roll-card-actions-menu > .order-detail-action-options { right: 0; left: auto; }
.staff .staff-order-roll-ledger:has(.roll-card-actions-menu:is([open], :focus-within)) { overflow: visible; }
.staff .staff-order-roll-row:has(.roll-card-actions-menu:is([open], :focus-within))::details-content { overflow: visible; }
.roll-service-modal { width: min(100%, 640px); max-height: calc(100dvh - 36px); overflow-y: auto; }
.roll-service-modal .inline-form { display: grid; gap: 12px; }
.roll-service-modal .inline-form .actions { margin: 0; }
.staff .compact-ledger-roll-card .roll-head h3 { margin: 0 0 5px; font-size: 18px; }
.staff .compact-ledger-roll-card .roll-head-code { display: flex; align-items: baseline; justify-content: flex-start; gap: 8px; color: var(--ops-ink); text-align: left; }
.staff .compact-ledger-roll-card .roll-head-code strong { font: 750 18px ui-monospace,SFMono-Regular,Menlo,monospace; }
.staff .compact-ledger-roll-card .roll-head > div > small { color: var(--ops-muted); }
.staff .compact-ledger-roll-card .roll-meta-compact { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 8px 0 10px; border-block: 1px solid var(--ops-border); background: transparent; }
.staff .compact-ledger-roll-card .roll-meta-compact > div { display: grid; gap: 2px; min-width: 0; padding: 7px 10px; border-radius: 0; background: transparent; }
.staff .compact-ledger-roll-card .roll-meta-compact > div + div { border-left: 1px solid var(--ops-border); }
.staff .compact-ledger-roll-card .roll-meta-compact label { margin: 0; }
.staff .compact-ledger-roll-card .roll-meta-compact strong { color: var(--ops-ink); font-size: 14px; overflow-wrap: anywhere; }
.staff .compact-ledger-roll-card .staff-roll-processing-duration strong { font-variant-numeric: tabular-nums; }
.staff .compact-ledger-roll-card .roll-progress-block { margin: 8px 0 10px; padding: 6px 0 4px; border: 0; border-radius: 0; background: transparent; }
.staff .compact-ledger-roll-card .roll-progress-heading { margin-bottom: 3px; font-size: 11px; }
.staff .compact-ledger-roll-card .roll-stage-progress { padding: 3px 0 1px; }
.staff .compact-ledger-roll-card .roll-progress-stage .inspector-stage-rail { height: 12px; margin-bottom: 3px; }
.staff .compact-ledger-roll-card .roll-progress-stage .inspector-stage-node { width: 9px; height: 9px; margin-top: 1px; }
.staff .compact-ledger-roll-card .roll-progress-stage .inspector-stage-connector { top: 4px; }
.staff .compact-ledger-roll-card .roll-progress-stage strong { font-size: 11px; }
.staff .compact-ledger-roll-card .roll-progress-stage small { margin-top: 2px; font-size: 9px; }
.staff .compact-ledger-roll-card .roll-equipment-summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 6px 0 2px; }
.staff .compact-ledger-roll-card .roll-equipment-summary-grid .roll-equipment-summary { min-width: 0; margin: 0; padding: 7px 2px; border-top: 1px solid var(--ops-border); border-radius: 0; background: transparent; }
.staff .compact-ledger-roll-card .actions [data-act="exception"] { border-color: #d98b93; background: #fff; color: #a6333e; }
.staff .compact-ledger-roll-card .actions [data-act="exception"]:hover:not(:disabled) { border-color: #c9626d; background: #fff7f7; color: #922d38; }
@media (min-width: 651px) {
  .staff .compact-ledger-roll-card .actions [data-act="exception"]:is(:active, :focus-visible) { border-color: #c9626d; background: #fff0f1; color: #922d38; }
}
@media (max-width: 720px) {
  .staff .compact-ledger-roll-card .roll-equipment-summary-grid { grid-template-columns: minmax(0,1fr); gap: 6px; }
}
.staff .staff-order-progress-card { margin: 0; padding: 14px; }
.staff .staff-order-progress-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.staff .staff-order-progress-card .order-progress-metrics { grid-template-columns: repeat(auto-fit,minmax(62px,1fr)); gap: 8px 5px; }
.staff .staff-order-progress-card .order-progress-metrics > div { padding-left: 7px; }
.staff .staff-order-progress-card .order-progress-metrics strong { font-size: 16px; }
.staff .staff-order-rail > .panel,.staff .staff-order-rail > .staff-detail-ledger { margin: 0; }
.staff .staff-order-rail > .staff-detail-disclosure { padding: 0 12px; border: 1px solid var(--ops-border); border-radius: 8px; background: var(--ops-surface); }
.staff .staff-order-ledger-empty { padding: 22px; color: var(--ops-muted); text-align: center; font-size: 12px; }
@media (max-width: 1120px) {
  .staff .staff-detail-board { grid-template-columns: minmax(0,1fr); }
  .staff .staff-detail-settlement { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .staff .staff-detail-settlement > .staff-detail-zone-heading { grid-column: 1/-1; }
  .staff .staff-order-detail-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 12px; }
  .staff .staff-order-ledger-head,.staff .staff-order-roll-row > .staff-order-roll-summary { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; }
  .staff .staff-order-roll-row > .staff-order-roll-summary { grid-template-columns: minmax(82px,.75fr) minmax(90px,.8fr) minmax(105px,1.2fr) minmax(75px,.7fr) 44px; gap: 8px; }
}
@media (max-width: 720px) {
  .staff .staff-detail-board { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .staff .staff-detail-production { order: 1; }
  .staff .staff-detail-settlement { grid-column: auto; order: 2; grid-template-columns: minmax(0,1fr); }
  .staff .staff-production-workbench { grid-template-columns: minmax(0,1fr); }
  .staff .staff-roll-queue-list { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: none; }
  .staff .staff-roll-queue-item { grid-template-columns: 25px minmax(0,1fr); gap: 6px; padding: 8px; border-right: 1px solid var(--ops-border); }
  .staff .staff-roll-queue-index { width: 24px; height: 24px; }
  .staff .staff-roll-queue-copy small { font-size: 9px; }
  .staff .staff-roll-queue-status .badge { white-space: normal; }
  .staff .roll-progress-block { padding: 11px 9px 9px; }
  .staff .roll-stage-progress { padding-inline: 0; }
  .staff .roll-progress-stage strong { font-size: 11px; }
  .staff .roll-progress-stage small { font-size: 9px; }
  .staff .staff-order-detail-layout { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .staff .staff-order-primary { order: 1; }
  .staff .staff-order-rail { order: 2; }
  .staff .staff-order-ledger-head { display: none; }
  .staff .staff-order-roll-row > .staff-order-roll-summary { grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; padding: 10px; }
  .staff .staff-order-roll-code { grid-column: 1; }
  .staff .staff-order-roll-summary > span:nth-child(2) { grid-column: 1; color: var(--ops-muted); font-size: 11px; }
  .staff .staff-order-roll-summary > span:nth-child(3) { grid-column: 1; font-size: 11px; }
  .staff .staff-order-roll-state { grid-column: 2; grid-row: 1/3; justify-self: center; }
  .staff .staff-order-roll-expand { grid-column: 2; grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .staff .roll-progress-stage .inspector-stage-node { animation: none !important; transition: none !important; }
}

/* Staff home: put the next operational decision ahead of general totals. */
.staff .dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 8px 0 26px; }
.staff .dashboard-heading h1 { margin: 5px 0 7px; font-size: 30px; letter-spacing: -.035em; }
.staff .dashboard-heading .muted { margin: 0; }
.staff .dashboard-overview { display: grid; grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1fr); gap: 14px; margin-bottom: 28px; }
.staff .dashboard-priority { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 190px; padding: 26px 28px; border-radius: 10px; background: var(--film-button); color: #f5f8fc; }
.staff .dashboard-priority-copy { min-width: 0; }
.staff .dashboard-label { color: var(--film-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.staff .dashboard-priority .dashboard-label { color: #dbeaf8; }
.staff .dashboard-priority h2 { margin: 8px 0 4px; font-size: 22px; letter-spacing: -.02em; }
.staff .dashboard-priority p { margin: 0; color: #dbeaf8; font-size: 12px; }
.staff .dashboard-primary-link, .staff .dashboard-priority-count { border: 0; color: inherit; cursor: pointer; }
.staff .dashboard-primary-link { display: inline-flex; gap: 12px; align-items: center; margin-top: 24px; padding: 0; background: transparent; font-size: 13px; font-weight: 700; }
.staff .dashboard-priority-count { display: grid; align-content: center; justify-items: center; width: 106px; height: 106px; flex: 0 0 106px; border: 1px solid #ffffff50; border-radius: 50%; background: #ffffff0c; }
.staff .dashboard-priority-count strong { font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.staff .dashboard-priority-count span { margin-top: 5px; color: #dbeaf8; font-size: 11px; }
.staff .dashboard-queues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: stretch; }
.staff .dashboard-queue-item { position: relative; grid-template-columns: minmax(0,1fr) auto; min-height: 0; padding: 14px 15px; border-color: #dce4eb; border-radius: 8px; }
.staff .dashboard-queue-item > span:first-child { color: #526476; font-size: 12px; }
.staff .dashboard-queue-item strong { grid-column: auto; grid-row: auto; color: #172b3a; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.staff .dashboard-queue-item strong small { margin-left: 4px; font-size: 10px; font-weight: 500; }
.staff .dashboard-queue-arrow { grid-column: 1 / -1; justify-self: end; color: var(--film-muted); font-size: 12px; }
.staff .dashboard-recent { padding: 22px 25px; border-color: #dce4eb; border-radius: 9px; box-shadow: none; }
.staff .dashboard-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.staff .dashboard-section-heading h2 { margin: 5px 0 0; font-size: 18px; }
.staff .dashboard-text-link { display: inline-flex; align-items: center; min-height: 40px; border: 0; background: transparent; color: var(--film-accent); font-size: 12px; font-weight: 700; }
.staff .dashboard-recent .queue-row { border-top-color: #e7ecef; }
.staff .dashboard-recent .queue-row:first-of-type { border-top: 0; }
.staff :is(.dashboard-priority-count,.dashboard-primary-link,.dashboard-text-link,.dashboard-queue-item):focus-visible { outline: 2px solid var(--film-focus); outline-offset: 3px; }
@media (max-width: 899px) {
  .staff .dashboard-overview { grid-template-columns: 1fr; }
  .staff .dashboard-priority { min-height: 160px; }
}
@media (max-width: 650px) {
  .staff .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin: 4px 0 19px; }
  .staff .dashboard-heading h1 { font-size: 26px; }
  .staff .dashboard-heading > .button { width: 100%; }
  .staff .dashboard-overview { gap: 9px; margin-bottom: 20px; }
  .staff .dashboard-priority { min-height: 145px; padding: 18px; }
  .staff .dashboard-priority-count { width: 82px; height: 82px; flex-basis: 82px; }
  .staff .dashboard-priority-count strong { font-size: 29px; }
  .staff .dashboard-primary-link { min-height: 44px; margin-top: 12px; }
  .staff .dashboard-queues { gap: 7px; }
  .staff .dashboard-queue-item { min-height: 78px; padding: 10px; }
  .staff .dashboard-recent { padding: 17px 14px; }
}

/* Process-line workbench: one roll, one current step, one explicit next action. */
.staff .dashboard-heading { align-items: flex-end; margin-bottom: 18px; }
.staff .dashboard-heading h1 { color: var(--film-ink); }
.staff .dashboard-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex: 0 0 auto; }
.staff .workbench-shortcut { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; padding: 7px 11px; border: 1px solid var(--film-border); border-radius: 8px; background: var(--film-surface); color: var(--film-ink); text-align: left; }
.staff .workbench-shortcut span, .staff .workbench-shortcut b { display: grid; gap: 1px; }
.staff .workbench-shortcut strong { font-size: 12px; }
.staff .workbench-shortcut small { color: var(--film-muted); font-size: 10px; font-weight: 450; }
.staff .workbench-shortcut b { display: block; color: var(--film-accent); font-size: 13px; white-space: nowrap; }
.staff .workbench-filters { display: grid; gap: 10px; margin-bottom: 14px; }
.staff .workbench-daily-summary { min-width: 0; margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--film-border); border-radius: 9px; background: var(--film-surface); }
.staff .workbench-daily-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.staff .workbench-daily-heading > div:first-child { display: grid; gap: 3px; min-width: 0; }
.staff .workbench-daily-heading > div:first-child strong { color: var(--film-ink); font-size: 16px; font-weight: 750; }
.staff .workbench-daily-heading > div:first-child small { color: var(--film-muted); font-size: 10px; line-height: 1.4; }
.staff .workbench-daily-controls { display: flex; align-items: flex-end; gap: 7px; flex: 0 0 auto; }
.staff .workbench-daily-date { display: grid; gap: 4px; color: var(--film-muted); font-size: 10px; font-weight: 650; }
.staff .workbench-daily-date .shared-date-dropdown { min-width: 145px; }
.staff .workbench-daily-date .shared-date-trigger { min-height: 38px; height: 38px; }
.staff .workbench-daily-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.staff .workbench-daily-card { min-height: 68px; padding: 9px 11px; }
.staff .workbench-daily-card .workbench-process-card-label { font-size: 14px; line-height: 1.35; }
.staff .workbench-daily-card strong { font-size: 20px; }
.staff .workbench-daily-card strong small { font-size: 10px; }
.staff .workbench-daily-note { margin: 8px 1px 0; color: var(--film-muted); font-size: 10px; line-height: 1.45; }
.staff .workbench-filter-group { min-width: 0; padding: 12px 14px; border: 1px solid var(--film-border); border-radius: 9px; background: var(--film-surface); }
.staff .workbench-filter-heading { display: flex; align-items: baseline; gap: 11px; margin-bottom: 9px; }
.staff .workbench-filter-heading strong { font-size: 12px; }
.staff :is(.workbench-process-filter,.workbench-wash-queue-filter,.workbench-scan-device-filter,.workbench-scan-queue-filter) .workbench-filter-heading { margin-bottom: 10px; }
.staff :is(.workbench-process-filter,.workbench-wash-queue-filter,.workbench-scan-device-filter,.workbench-scan-queue-filter) .workbench-filter-heading strong { color: var(--film-ink); font-size: 22px; font-weight: 750; line-height: 1.35; }
.staff .workbench-filter-heading small { color: var(--film-muted); font-size: 10px; }
.staff .workbench-held-note { padding: 12px 14px; border: 1px solid var(--film-border); border-radius: 9px; background: var(--film-surface); color: var(--film-muted); font-size: 11px; line-height: 1.5; }
.staff .workbench-line-tabs, .staff .workbench-queue-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.staff .workbench-process-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 8px; }
.staff .workbench-process-card { display: flex; min-width: 0; min-height: 84px; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 7px; padding: 10px 12px; border: 1px solid var(--film-border); border-radius: 11px; background: var(--film-surface); color: var(--film-ink); text-align: left; }
.staff .workbench-process-card-label { width: 100%; color: var(--film-ink); font-size: 18px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.staff .workbench-process-card strong { color: var(--film-ink); font-size: 23px; font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1; }
.staff .workbench-process-card strong small { margin-left: 4px; color: var(--film-muted); font-size: 10px; font-weight: 500; }
.staff .workbench-process-card:hover { border-color: var(--film-control-border); background: var(--film-inset); }
.staff .workbench-process-card.active { border-color: var(--film-accent); background: var(--film-accent-soft); color: var(--film-button); box-shadow: inset 0 -2px var(--film-accent); }
.staff .workbench-process-card.active .workbench-process-card-label,
.staff .workbench-process-card.active strong,
.staff .workbench-process-card.active strong small { color: var(--film-button); }
.staff .workbench-line-button, .staff .workbench-queue-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--film-border); border-radius: 7px; background: var(--film-inset); color: #405872; font-size: 11px; text-align: left; }
.staff .workbench-line-button strong, .staff .workbench-queue-button strong { color: var(--film-muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.staff .workbench-line-button strong small { margin-left: 3px; font-size: 9px; font-weight: 500; }
.staff .workbench-line-button.active, .staff .workbench-queue-button.active { border-color: #a8c9e8; background: var(--film-accent-soft); color: var(--film-button); box-shadow: inset 0 -2px var(--film-accent); font-weight: 700; }
.staff .workbench-line-button.active strong, .staff .workbench-queue-button.active strong { color: var(--film-button); }
.staff .workbench-filter-select { display: none; min-width: 0; gap: 5px; color: var(--film-muted); font-size: 11px; font-weight: 650; }
.staff .workbench-filter-select select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 34px 8px 10px; border: 1px solid var(--film-control-border); border-radius: 7px; appearance: none; background: var(--film-surface) no-repeat right 11px center / 14px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%23405872' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E"); color: var(--film-ink); font-size: 12px; }
.staff .workbench-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, 330px); align-items: start; gap: 12px; }
.staff .panel.workbench-task-list { container: workbench-tasks / inline-size; min-width: 0; overflow: hidden; padding: 0; margin: 0; }
.staff .workbench-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 8px; border-bottom: 1px solid var(--film-border); }
.staff .workbench-inspector-kicker { display: block; color: var(--film-accent); font-size: 12px; font-weight: 750; letter-spacing: .03em; line-height: 1.3; }
.staff .workbench-list-heading h2 { margin: 1px 0 0; font-size: 19px; line-height: 1.25; }
.staff .workbench-list-heading > small { color: var(--film-muted); font-size: 11px; white-space: nowrap; }
.staff .workbench-task-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--workbench-task-action-column); align-items: stretch; gap: 8px; padding: 0 13px; border-bottom: 1px solid #e7edf3; }
.staff .workbench-task-row:last-child { border-bottom: 0; }
.staff .workbench-task-row.selected { background: #f3f8fd; box-shadow: inset 3px 0 var(--film-accent); }
.staff .workbench-order-group { border-bottom: 1px solid #e7edf3; }
.staff .workbench-order-group[open] { background: #f3f8fd; box-shadow: inset 3px 0 var(--film-accent); }
.staff .workbench-order-group.search-result-pending-hover > .workbench-order-summary { background: var(--film-accent-soft); box-shadow: inset 3px 0 var(--film-accent), inset 0 0 0 2px var(--film-accent); }
.staff .workbench-order-summary { display: grid; grid-template-columns: minmax(0, 1fr) var(--workbench-task-action-column); align-items: center; gap: 8px; width: 100%; min-height: 76px; padding: 10px 25px; border: 0; background: transparent; color: var(--film-ink); text-align: left; cursor: pointer; list-style: none; }
.staff .workbench-order-summary::-webkit-details-marker { display: none; }
.staff .workbench-order-main { display: grid; grid-template-columns: var(--workbench-task-main-columns); align-items: center; gap: var(--workbench-task-column-gap); min-width: 0; padding-inline: 2px; }
.staff .workbench-order-main > .workbench-roll-label strong { font-size: 14px; }
.staff .workbench-order-toggle { display: grid; min-width: 0; min-height: 40px; place-items: center; padding: 6px 9px; border: 1px solid var(--film-border); border-radius: 7px; background: var(--film-surface); color: var(--film-button); font-size: 11px; font-weight: 650; text-align: center; overflow-wrap: anywhere; }
.staff .workbench-order-group[open] > .workbench-order-summary .workbench-order-toggle-collapsed,
.staff .workbench-order-group:not([open]) > .workbench-order-summary .workbench-order-toggle-expanded { display: none; }
.staff .workbench-order-summary:hover .workbench-order-toggle { border-color: var(--film-accent); background: var(--film-accent-soft); }
.staff .workbench-order-summary:focus-visible { outline: 2px solid var(--film-focus); outline-offset: -2px; }
.staff .workbench-order-details { border-top: 1px solid var(--film-border); background: color-mix(in srgb, var(--film-inset) 45%, transparent); }
.staff .workbench-task-list { --workbench-task-main-columns: minmax(125px, 1.5fr) repeat(3, minmax(58px, .75fr)) minmax(72px, .85fr) minmax(60px, .7fr) minmax(82px, 1fr); --workbench-task-column-gap: 8px; --workbench-task-action-column: 116px; }
.staff .workbench-task-columns { display: grid; grid-template-columns: minmax(0, 1fr) var(--workbench-task-action-column); align-items: center; gap: 8px; margin: 8px 12px 0; padding: 8px 12px; border: 1px solid transparent; border-bottom-color: var(--film-border); color: var(--film-muted); font-size: 11px; font-weight: 650; }
.staff .workbench-task-headings, .staff .workbench-task-select { display: grid; grid-template-columns: var(--workbench-task-main-columns); align-items: center; gap: var(--workbench-task-column-gap); min-width: 0; }
.staff .workbench-task-headings { padding: 0 2px; text-align: center; overflow-wrap: anywhere; }
.staff .workbench-task-action-heading { width: var(--workbench-task-action-column); min-width: var(--workbench-task-action-column); }
.staff .workbench-task-select { min-height: 70px; padding: 10px 2px; border: 0; background: transparent; color: var(--film-ink); text-align: left; }
.staff .workbench-task-select:focus-visible { outline: 2px solid var(--film-focus); outline-offset: 2px; }
.staff .workbench-task-column, .staff .workbench-roll-label, .staff .workbench-stage-label { display: grid; justify-items: center; min-width: 0; gap: 3px; text-align: center; overflow-wrap: anywhere; }
.staff .workbench-column-label { display: none; }
.staff .workbench-roll-label strong { overflow-wrap: anywhere; font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.staff .workbench-roll-label small { overflow-wrap: anywhere; color: var(--film-muted); font-size: 10px; }
.staff .workbench-roll-label .workbench-roll-count { display: inline; margin-left: 5px; color: var(--film-muted); font-size: 10px; font-weight: 550; }
.staff .workbench-task-detail { display: grid; min-width: 0; gap: 3px; }
.staff .workbench-task-detail small { color: var(--film-muted); font-size: 9px; }
.staff .workbench-task-detail strong { overflow-wrap: anywhere; color: var(--film-ink); font-size: 12px; font-weight: 600; }
.staff .workbench-stage-label strong, .staff .workbench-next-label strong { color: #365b7e; font-size: 12px; font-weight: 650; }
.staff .workbench-state { display: grid; align-content: center; gap: 3px; min-width: 0; color: #496c8e; font-size: 10px; line-height: 1.4; }
.staff .workbench-state strong { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.staff .workbench-state i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #4e86b7; }
.staff .workbench-state.running i { background: #203e63; box-shadow: 0 0 0 3px #dbecfc; }
.staff .workbench-state.warning { color: var(--film-ink); }
.staff .workbench-state.warning i { background: #c18a2e; }
.staff .workbench-next-label { display: grid; justify-items: center; min-width: 0; gap: 3px; text-align: center; }
.staff .workbench-next-label strong { overflow-wrap: anywhere; }
.staff .workbench-task-action { display: flex; width: var(--workbench-task-action-column); min-width: var(--workbench-task-action-column); align-items: center; justify-content: center; }
.staff .workbench-task-action .button { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; font-size: 12px; font-weight: 650; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.staff .dashboard-heading:has(+ .workbench-status-summary) { margin-bottom: 12px; }
.staff .workbench-status-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.staff .workbench-status-summary.is-scan { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.staff .workbench-status-summary-item { display: flex; min-width: 0; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 13px; border: 1px solid var(--film-border); border-radius: 8px; background: var(--film-surface); color: var(--film-ink); text-align: left; cursor: pointer; }
.staff .workbench-status-summary-item:hover { border-color: var(--film-control-border); background: var(--film-inset); }
.staff .workbench-status-summary-item.active { border-color: var(--film-accent); background: var(--film-accent-soft); color: var(--film-button); }
.staff .workbench-status-summary-item span { font-size: 13px; font-weight: 650; }
.staff .workbench-status-summary-item strong { font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1; }
.staff .workbench-list-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0 0 10px; padding: 10px; border: 1px solid var(--film-border); border-radius: 8px; background: var(--film-surface); }
.staff .workbench-filter-mode { display: inline-flex; min-height: 38px; align-items: center; padding: 3px; border: 1px solid var(--film-border); border-radius: 7px; background: var(--film-inset); }
.staff .workbench-mode-button { min-height: 30px; padding: 5px 11px; border: 0; border-radius: 5px; background: transparent; color: var(--film-muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.staff .workbench-mode-button.active { background: var(--film-surface); color: var(--film-button); box-shadow: 0 1px 3px #17233118; }
.staff .workbench-line-tabs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.staff .workbench-line-button { min-height: 34px; padding: 5px 9px; font-size: 11px; }
.staff .workbench-search-field, .staff .workbench-select-field, .staff .workbench-date-field { display: grid; gap: 4px; min-width: 0; color: var(--film-muted); font-size: 10px; font-weight: 650; }
.staff .workbench-search-field { flex: 1 1 230px; }
.staff .workbench-search-field input, .staff .workbench-select-field select { width: 100%; min-width: 0; min-height: 38px; padding: 7px 10px; border: 1px solid var(--film-control-border); border-radius: 7px; background: var(--film-surface); color: var(--film-ink); font-size: 12px; }
.staff .workbench-select-field { flex: 0 1 135px; }
.staff .workbench-display-field { flex: 0 0 150px; }
.staff .workbench-date-field { flex: 0 1 158px; }
.staff .workbench-date-field .shared-date-dropdown { min-width: 0; }
.staff .workbench-list-filters > .button { min-height: 38px; }
.staff .workbench-completion-time { color: var(--film-muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; overflow-wrap: anywhere; }
.staff .workbench-task-action.has-wash-completion { flex-direction: column; justify-content: center; gap: 4px; padding-block: 5px; }
.staff .workbench-wash-completion-time { text-align: center; white-space: normal; }
.staff .workbench-wash-filters { display: grid; gap: 8px; margin: 0 0 10px; }
.staff .workbench-scan-filters { display: grid; gap: 8px; margin: 0 0 10px; }
.staff .workbench-scan-device-row { display: grid; gap: 5px; min-width: 0; }
.staff .workbench-scan-device-label { color: var(--film-muted); font-size: 10px; font-weight: 650; }
.staff .workbench-line-tabs { display: flex; flex-wrap: nowrap; gap: 7px; min-width: 0; overflow-x: auto; padding: 1px 0 3px; scrollbar-width: thin; }
.staff .workbench-line-button { display: inline-flex; flex: 0 0 auto; min-height: 42px; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 13px; border-color: var(--film-border); border-radius: 9px; background: var(--film-surface); color: var(--film-ink); font-size: 13px; }
.staff .workbench-line-button strong { color: var(--film-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.staff .workbench-line-button.active { border-color: var(--film-accent); background: var(--film-accent-soft); color: var(--film-button); box-shadow: inset 0 -2px var(--film-accent); }
.staff .workbench-line-button.active strong { color: var(--film-button); }
.staff .workbench-list-filters { display: flex; width: 100%; flex-wrap: wrap; align-items: flex-end; gap: 9px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.staff .workbench-list-filters .create-order-platform-dropdown { z-index: 0; transition: z-index var(--motion-panel) steps(1, end); }
.staff .workbench-list-filters .create-order-platform-dropdown[open] { z-index: 2; transition-duration: 0s; }
.staff .workbench-search-field { flex: 0 0 230px; min-width: 0; }
.staff .workbench-search-control { position: relative; display: flex; align-items: center; min-width: 0; }
.staff .workbench-search-control input { width: 100%; min-width: 0; height: 42px; padding: 8px 48px 8px 12px; border: 1px solid var(--film-control-border); border-radius: 8px; background: var(--film-surface); color: var(--film-ink); font-size: 13px; }
.staff .workbench-select-field { flex: 0 0 132px; }
.staff .workbench-date-field { flex: 0 0 244px; margin-left: auto; }
.staff .workbench-search-control input:focus-visible, .staff .workbench-select-field select:focus-visible { outline: 2px solid var(--film-focus); outline-offset: 1px; }
.staff .workbench-inspector { position: sticky; top: 14px; align-self: start; display: flex; flex-direction: column; gap: 0; width: 100%; max-height: calc(100dvh - 28px); min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 17px; background: var(--film-surface); color: var(--film-ink); }
.staff .workbench-inspector-identifiers { display: grid; gap: 7px; margin: 7px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--film-border); }
.staff .workbench-inspector-identifier { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: baseline; gap: 9px; min-width: 0; }
.staff .workbench-inspector-identifier > span { color: var(--film-muted); font-size: 12px; }
.staff .workbench-inspector-identifier > strong { min-width: 0; color: var(--film-ink); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.staff .workbench-inspector-identifier.primary > strong { font-size: 24px; font-weight: 800; letter-spacing: .01em; }
.staff .workbench-inspector-facts { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px 9px; margin: 16px 0 12px; padding-top: 13px; border-top: 1px solid var(--film-border); font-size: 10px; }
.staff .workbench-inspector-facts span { color: var(--film-muted); }
.staff .workbench-inspector-facts strong { color: var(--film-ink); font-weight: 600; overflow-wrap: anywhere; }
.staff .workbench-progress { --workbench-progress-cycle: 2.4s; display: flex; gap: 4px; margin-top: 7px; }
.staff .workbench-progress span { position: relative; height: 4px; flex: 1 1 0; overflow: hidden; border-radius: 4px; background: var(--film-raised); }
.staff .workbench-progress span.done { background: var(--film-raised); }
.staff .workbench-progress span.current { background: var(--film-accent-soft); }
.staff .workbench-progress span:is(.current,.done)::after { position: absolute; inset: 0; width: 100%; border-radius: inherit; background: var(--film-accent); content: ''; transform-origin: left center; }
.staff .workbench-progress span.current::after { transform: scaleX(0); animation: workbench-progress-fill var(--workbench-progress-cycle) linear infinite; }
.staff .workbench-progress span.done::after { transform: scaleX(1); }
.staff .workbench-progress span.done.completing::after { transform: scaleX(var(--progress-start, 0)); animation: workbench-progress-complete var(--progress-duration, 1s) linear both; }
@keyframes workbench-progress-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes workbench-progress-complete { from { transform: scaleX(var(--progress-start, 0)); } to { transform: scaleX(1); } }
.staff .workbench-progress-labels { display: flex; gap: 4px; margin-top: 6px; color: var(--film-muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.staff .workbench-progress-labels > span { flex: 1 1 0; min-width: 0; text-align: center; }
.staff .workbench-reason { margin-top: 12px; padding: 9px 10px; border-left: 3px solid #7b9dbc; border-radius: 0 6px 6px 0; background: var(--film-inset); color: #405872; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.staff .workbench-reason.warning { border-left-color: #c18a2e; background: #fff6e6; color: #785117; }
.staff .workbench-inspector-action { margin-top: auto; padding-top: 15px; }
.staff .workbench-inspector-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.staff .workbench-inspector-actions.has-report { grid-template-columns: max-content minmax(0, 1fr); }
.staff .workbench-inspector-actions .button { min-height: 42px; }
.staff .workbench-inspector-primary-action { min-width: 0; }
.staff .workbench-inspector-primary-action .button { width: 100%; }
.staff .workbench-empty-inspector { min-height: 210px; justify-content: center; }
.staff .workbench-empty { display: grid; justify-items: center; gap: 5px; padding: 44px 18px; color: var(--film-ink); text-align: center; }
.staff .workbench-empty strong { font-size: 13px; }
.staff .workbench-empty span { max-width: 380px; color: var(--film-muted); font-size: 11px; line-height: 1.5; }
.staff .workbench-process-notice { margin-top: 11px; color: var(--film-muted); font-size: 10px; }
.staff .workbench-shortcut:hover, .staff .workbench-line-button:hover, .staff .workbench-process-card:hover, .staff .workbench-queue-button:hover { border-color: var(--film-control-border); }
.staff :is(.workbench-shortcut,.workbench-line-button,.workbench-process-card,.workbench-queue-button,.workbench-primary-action):focus-visible { outline: 2px solid var(--film-focus); outline-offset: 2px; }
@media (max-width: 1199px) {
  .staff .workbench-content { grid-template-columns: minmax(0, 1fr); }
  .staff .workbench-inspector { display: none; }
  .staff .workbench-task-action .button { min-height: 40px; padding: 7px 10px; font-size: 11px; }
}
/* Keep space for the seven tracks, action, gaps and row insets. */
@container workbench-tasks (width < 744px) {
  .staff .workbench-task-columns { display: none; }
  .staff .workbench-task-select,
  .staff .workbench-order-main { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 10px 12px; }
  .staff .workbench-task-column { justify-items: start; text-align: left; }
  .staff .workbench-task-column > .workbench-column-label { display: block; color: var(--film-muted); font-size: 10px; font-weight: 550; }
}
@container workbench-tasks (width < 540px) {
  .staff .workbench-task-row,
  .staff .workbench-order-summary { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .staff .workbench-order-summary { padding: 10px 14px; }
  .staff .workbench-task-action,
  .staff .workbench-order-toggle { justify-self: end; margin-bottom: 8px; }
  .staff .workbench-order-toggle { min-width: 66px; margin: 8px 0 0; }
}
@container workbench-tasks (width < 440px) {
  .staff .workbench-task-select,
  .staff .workbench-order-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff .workbench-roll-label,
  .staff .workbench-bag-label { grid-column: 1 / -1; }
  .staff .workbench-task-action { justify-self: stretch; width: auto; min-width: 0; }
}
@media (max-width: 650px) {
  .staff .business-nav { align-items: flex-start; }
  .staff .workbench-nav-group { flex: 0 0 auto; align-self: flex-start; }
  .staff .workbench-subnav { min-width: 160px; margin-left: 2px; padding-left: 6px; }
  .staff .dashboard-heading { align-items: stretch; gap: 12px; margin: 4px 0 7px; }
  .staff .dashboard-heading h1 { font-size: 25px; }
  .staff .dashboard-heading-actions { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 7px; }
  .staff .dashboard-heading-actions.has-receiving { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff .dashboard-heading-actions > :is(button, .button), .staff .workbench-shortcut { width: 100%; min-height: 44px; }
  .staff .workbench-shortcut { gap: 6px; padding: 6px 8px; }
  .staff .workbench-shortcut strong, .staff .workbench-shortcut b { font-size: 10px; }
  .staff .workbench-shortcut small { font-size: 9px; }
  .staff .workbench-filters { grid-template-columns: minmax(0, 1fr); gap: 7px; margin-bottom: 8px; }
  .staff .workbench-daily-summary { padding: 8px; margin-bottom: 7px; }
  .staff .workbench-daily-heading { display: grid; gap: 8px; margin-bottom: 8px; }
  .staff .workbench-daily-heading > div:first-child strong { font-size: 16px; }
  .staff .workbench-daily-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .staff .workbench-daily-date { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; }
  .staff .workbench-daily-date .shared-date-dropdown { width: 100%; min-width: 0; }
  .staff .workbench-daily-date .shared-date-trigger { min-height: 44px; height: 44px; }
  .staff .workbench-daily-controls > .button { min-height: 44px; }
  .staff .workbench-daily-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .staff .workbench-daily-card { min-width: 0; min-height: 68px; padding: 8px 6px; }
  .staff .workbench-daily-card .workbench-process-card-label { font-size: 12px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
  .staff .workbench-daily-card strong { font-size: 19px; }
  .staff .workbench-daily-note { margin-top: 7px; font-size: 10px; }
  .staff .workbench-filter-group { padding: 8px; }
  .staff .workbench-filter-heading { display: none; }
  .staff :is(.workbench-process-filter,.workbench-wash-queue-filter,.workbench-scan-device-filter,.workbench-scan-queue-filter) .workbench-filter-heading { display: flex; margin: 0 0 9px; }
  .staff :is(.workbench-process-filter,.workbench-wash-queue-filter,.workbench-scan-device-filter,.workbench-scan-queue-filter) .workbench-filter-heading strong { font-size: 20px; }
  .staff .workbench-process-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .staff .workbench-wash-queue-filter .workbench-process-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .staff .workbench-process-card { min-height: 78px; padding: 9px 10px; }
  .staff .workbench-process-card-label { font-size: 16px; line-height: 1.4; }
  .staff .workbench-line-tabs, .staff .workbench-queue-tabs { display: none; }
  .staff .workbench-filter-select { display: grid; }
  .staff .workbench-filter-select select { min-height: 46px; font-size: 16px; }
  .staff .workbench-task-list { border: 0; background: transparent; box-shadow: none; }
  .staff .workbench-list-heading { padding: 2px 1px 6px; border: 0; }
  .staff .workbench-task-row { margin-bottom: 8px; padding: 0; border: 1px solid var(--film-border); border-radius: 9px; background: var(--film-surface); box-shadow: 0 1px 2px #12293a08; }
  .staff .workbench-task-row.selected { background: #f3f8fd; }
  .staff .workbench-task-select { min-height: 0; padding: 10px; }
  .staff .workbench-task-action { padding-inline: 12px; }
  .staff .workbench-task-action .button { width: 100%; min-height: 44px; font-size: 12px; }
  .staff .workbench-empty { padding: 36px 15px; border: 1px solid var(--film-border); border-radius: 9px; background: var(--film-surface); }
}
@media (max-width: 359px) {
  .staff .workbench-filters { grid-template-columns: minmax(0, 1fr); }
}

/* Customer directory: separate member and walk-in records, with a focused profile view. */
.staff .customer-category-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.staff .customer-category-card { display: flex; min-width: 0; min-height: 78px; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--film-border); border-radius: 12px; background: var(--film-surface); color: var(--film-ink); text-align: left; cursor: pointer; }
.staff .customer-category-card:hover { border-color: var(--film-control-border); background: var(--film-inset); }
.staff .customer-category-card.active { border-color: var(--film-accent); background: var(--film-accent-soft); box-shadow: inset 0 -2px var(--film-accent); }
.staff .customer-category-card > span { display: grid; gap: 4px; min-width: 0; }
.staff .customer-category-card strong { font-size: 17px; font-weight: 750; }
.staff .customer-category-card span small { color: var(--film-muted); font-size: 11px; }
.staff .customer-category-card b { display: inline-flex; align-items: baseline; gap: 4px; color: var(--film-ink); font-size: 24px; font-variant-numeric: tabular-nums; }
.staff .customer-category-card b small { color: var(--film-muted); font-size: 11px; font-weight: 500; }
.staff .customer-directory-panel { padding: 0; overflow: hidden; }
.staff .customer-directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--film-border); }
.staff .customer-directory-heading h2 { margin: 0; font-size: 17px; }
.staff .customer-directory-heading > span { color: var(--film-muted); font-size: 12px; }
.staff .customer-directory-list { display: grid; }
.staff .customer-directory-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-width: 0; padding: 15px 17px; border-bottom: 1px solid var(--film-border); }
.staff .customer-directory-card:last-child { border-bottom: 0; }
.staff .customer-directory-identity { display: grid; gap: 9px; min-width: 0; }
.staff .customer-directory-identity > div:first-child { display: grid; gap: 2px; min-width: 0; }
.staff .customer-directory-identity strong { color: var(--film-ink); font-size: 16px; font-weight: 720; overflow-wrap: anywhere; }
.staff .customer-card-secondary-name { color: var(--film-muted); font-size: 11px; }
.staff .customer-directory-meta { display: grid; grid-template-columns: minmax(140px, 1.15fr) minmax(110px, .8fr) minmax(170px, 1fr); gap: 12px; min-width: 0; color: var(--film-muted); font-size: 12px; }
.staff .customer-directory-meta > span { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.staff .customer-directory-meta small { color: var(--film-muted); font-size: 10px; }
.staff .customer-detail-button { min-width: 76px; min-height: 42px; }
.staff .customer-directory-empty { padding: 28px 16px; margin: 0; color: var(--film-muted); text-align: center; }
.staff .customer-detail-panel { display: grid; gap: 18px; }
.staff .customer-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--film-border); }
.staff .customer-detail-heading > div:first-child { display: grid; gap: 3px; min-width: 0; }
.staff .customer-detail-heading h2 { margin: 0; font-size: 23px; overflow-wrap: anywhere; }
.staff .customer-detail-heading p { margin: 0; color: var(--film-muted); font-size: 12px; }
.staff .customer-detail-kicker { color: var(--film-button); font-size: 11px; font-weight: 700; }
.staff .customer-detail-heading .actions { flex-wrap: wrap; justify-content: flex-end; }
.staff .customer-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.staff .customer-detail-facts > div { display: grid; gap: 5px; min-width: 0; padding: 12px; border: 1px solid var(--film-border); border-radius: 9px; background: var(--film-inset); }
.staff .customer-detail-facts dt { color: var(--film-muted); font-size: 10px; }
.staff .customer-detail-facts dd { margin: 0; color: var(--film-ink); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.staff .customer-binding-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--film-border); }
.staff .customer-binding-form h3 { grid-column: 1 / -1; margin: 0; font-size: 15px; }
.staff .customer-binding-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.staff .customer-binding-form .field { margin: 0; }
.staff .customer-binding-form button { min-height: 42px; }
.staff .customer-profile-form { display: grid; gap: 13px; padding-top: 14px; border-top: 1px solid var(--film-border); }
.staff .customer-profile-form h3, .staff .customer-default-return h4 { margin: 0; color: var(--film-ink); font-size: 15px; }
.staff .customer-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.staff .customer-platform-accounts { display: grid; gap: 9px; padding: 13px; border: 1px solid var(--film-border); border-radius: 10px; background: var(--film-inset); }
.staff .customer-platform-accounts h4 { margin: 0; color: var(--film-ink); font-size: 14px; }
.staff .customer-platform-accounts > p { margin: 0; font-size: 11px; line-height: 1.45; }
.staff .customer-profile-fields .field { min-width: 0; margin: 0; }
.staff .customer-default-return { display: grid; gap: 9px; padding: 13px; border: 1px solid var(--film-border); border-radius: 10px; background: var(--film-inset); }
.staff .customer-default-return > p { margin: 0; font-size: 11px; line-height: 1.45; }
.staff .customer-clear-return { width: fit-content; margin: 0; }
.staff .customer-scan-preferences-field { margin: 0; }
.staff .customer-scan-preferences-field textarea { min-height: 90px; resize: vertical; }
.staff .customer-profile-form > .button { min-height: 44px; justify-self: start; }
.staff .customer-profile-loading { padding: 15px; border: 1px solid var(--film-border); border-radius: 9px; color: var(--film-muted); }
.staff .customer-profile-readonly { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--film-border); }
.staff .customer-profile-readonly h3 { margin: 0; font-size: 15px; }
.staff .customer-default-readonly, .staff .customer-scan-readonly { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--film-border); border-radius: 9px; background: var(--film-inset); color: var(--film-ink); font-size: 12px; overflow-wrap: anywhere; }
.staff .customer-default-readonly > strong, .staff .customer-scan-readonly > strong { color: var(--film-muted); font-size: 10px; }
.staff .customer-scan-readonly p { margin: 0; white-space: pre-wrap; }
.staff .customer-enrollment { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--film-border); border-radius: 10px; background: var(--film-raised); }
.staff .customer-enrollment h3 { margin: 0 0 4px; font-size: 15px; }
.staff .customer-enrollment p { margin: 0; font-size: 11px; line-height: 1.5; }
.staff .customer-enrollment .notice { margin: 9px 0 0; font-size: 11px; }
.staff .customer-enrollment button { min-height: 42px; flex: 0 0 auto; }
.staff .customer-recent-orders { display: grid; gap: 6px; }
.staff .customer-recent-orders .section-heading { margin: 0 0 4px; }
.staff .customer-recent-orders .section-heading h3 { margin: 0; font-size: 15px; }
.staff .customer-order-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; border: 1px solid var(--film-border); border-radius: 8px; background: var(--film-surface); color: var(--film-ink); font-size: 11px; }
.staff .customer-order-summary strong { overflow-wrap: anywhere; }
.staff .customer-order-summary span, .staff .customer-order-summary time { color: var(--film-muted); }
@media (max-width: 700px) {
  .staff .customer-category-cards { gap: 8px; margin: 9px 0; }
  .staff .customer-category-card { min-height: 72px; gap: 6px; padding: 10px; }
  .staff .customer-category-card strong { font-size: 14px; }
  .staff .customer-category-card span small { font-size: 10px; }
  .staff .customer-category-card b { font-size: 20px; }
  .staff .customer-directory-card { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; }
  .staff .customer-directory-meta { grid-template-columns: minmax(0, 1fr); gap: 5px; font-size: 11px; }
  .staff .customer-directory-meta > span { grid-template-columns: 72px minmax(0, 1fr); gap: 7px; }
  .staff .customer-directory-meta small { font-size: 10px; }
  .staff .customer-detail-button { min-width: 66px; min-height: 44px; }
  .staff .customer-detail-panel { gap: 13px; padding: 13px; }
  .staff .customer-detail-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .staff .customer-detail-heading h2 { font-size: 20px; }
  .staff .customer-detail-heading .actions { width: 100%; justify-content: flex-start; }
  .staff .customer-detail-facts { gap: 7px; }
  .staff .customer-detail-facts > div { padding: 9px; }
  .staff .customer-binding-form { grid-template-columns: minmax(0, 1fr); }
  .staff .customer-binding-fields { grid-template-columns: minmax(0, 1fr); }
  .staff .customer-binding-form h3 { grid-column: 1; }
  .staff .customer-binding-form button { width: 100%; min-height: 44px; }
  .staff .customer-profile-fields { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .staff .customer-default-return { padding: 10px; }
  .staff .customer-profile-form > .button { width: 100%; justify-self: stretch; }
  .staff .customer-scan-preferences-field textarea { min-height: 104px; }
  .staff .customer-enrollment { align-items: stretch; flex-direction: column; gap: 10px; padding: 11px; }
  .staff .customer-enrollment button { width: 100%; min-height: 44px; }
  .staff .customer-order-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; }
  .staff .customer-order-summary span { grid-column: 1; }
  .staff .customer-order-summary time { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
}

/* Keep the three staff topbar controls on one Palette B treatment. */
.staff .top .right > button:is([data-act="toggle-theme"], [data-act="lock"], [data-act="logout"]) {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--film-border);
  border-radius: 8px;
  background: var(--film-accent-soft);
  color: var(--film-button);
  transition: background-color var(--motion-feedback) var(--motion-ease-feedback), border-color var(--motion-feedback) var(--motion-ease-feedback), color var(--motion-feedback) var(--motion-ease-feedback);
}
.staff .top .right > button:is([data-act="toggle-theme"], [data-act="lock"], [data-act="logout"]):hover {
  border-color: var(--film-control-border);
  background: var(--film-raised);
  color: var(--film-ink);
}
.staff .top .right > button:is([data-act="toggle-theme"], [data-act="lock"], [data-act="logout"]):focus-visible {
  outline: 2px solid var(--film-focus);
  outline-offset: 2px;
}
@media (max-width: 650px) {
  .staff .top .right > button:is([data-act="toggle-theme"], [data-act="lock"], [data-act="logout"]) { min-height: 44px; }
}

/* InsightHub-inspired treatment for the existing Film Lab staff UI. */
.staff .shop-sidebar {
  background: var(--film-surface);
  color: var(--film-ink);
  border-right: 1px solid var(--film-border);
}
.staff .side-brand { border-bottom-color: var(--film-border); }
.staff .side-brand strong, .staff .side-account strong { color: var(--film-ink); }
.staff .side-brand small, .staff .side-account small,
.staff .side-environment small, .staff .nav-scroll-hint { color: var(--film-muted); }
.staff .business-nav .nav-item { color: #202735; }
.staff .business-nav .nav-item svg { color: #5d6777; }
.staff .business-nav .nav-item:hover:not(.active) { background: var(--film-accent-soft); color: var(--film-button); }
.staff .business-nav .nav-item:hover:not(.active) svg { color: var(--film-accent); }
.staff .shop-sidebar button.nav-item.active {
  background: var(--film-accent);
  color: #fff;
  box-shadow: 0 5px 14px #2863e933;
}
.staff .shop-sidebar button.nav-item.active svg { color: #fff; }
.staff .shop-sidebar .nav-item:focus-visible,
.staff .shop-sidebar .side-tool:focus-visible { outline-color: var(--film-focus); }
.staff .side-environment { background: var(--film-inset); border-color: var(--film-border); color: var(--film-ink); }
.staff .side-environment strong { background: var(--film-accent-soft); color: var(--film-button); }
.staff .side-tool { color: var(--film-ink); }
.staff .side-tool:hover, .staff .side-tool.active { background: var(--film-accent-soft); color: var(--film-button); }
.staff .side-account { border-top-color: var(--film-border); }

.staff .panel, .staff .stat, .staff .order-card, .staff .roll-card,
.staff .orders-filters, .staff .orders-table-scroll, .staff .order-inspector,
.staff .workbench-filter-group, .staff .workbench-inspector {
  border-color: var(--film-border);
  border-radius: 13px;
  background: var(--film-surface);
  box-shadow: 0 7px 22px #182a4208;
}
.staff .panel { padding: 20px; }
.staff .panel h2, .staff .panel h3, .staff .section-heading h2 { color: var(--film-ink); }
.staff .muted, .staff .queue-row small, .staff .order-row-open small,
.staff .orders-table td small { color: var(--film-muted); }
.staff .orders-table th { background: var(--film-raised); color: #394355; }
.staff .orders-table td { color: #1b2029; border-bottom-color: var(--film-border); }
.staff .orders-table tr:not(.is-previewed):hover, .staff .order-table-row:not(.is-previewed):hover { background: var(--film-inset); }

.staff .workbench-filter-group { border-radius: 13px; }
.staff .workbench-line-button, .staff .workbench-queue-button {
  min-height: 42px;
  padding: 8px 12px;
  border-color: var(--film-border);
  border-radius: 10px;
  background: var(--film-surface);
  color: var(--film-ink);
}
.staff .workbench-line-button:hover, .staff .workbench-queue-button:hover {
  background: var(--film-inset);
  border-color: var(--film-control-border);
}
.staff .workbench-line-button.active, .staff .workbench-queue-button.active {
  border-color: var(--film-accent);
  background: var(--film-accent-soft);
  color: var(--film-button);
  box-shadow: inset 0 -2px var(--film-accent);
}
.staff .workbench-task-row {
  margin: 8px 12px;
  padding: 2px 12px;
  border: 1px solid var(--film-border);
  border-radius: 12px;
  background: var(--film-surface);
  box-shadow: 0 4px 14px #182a4207;
}
.staff .workbench-task-row:last-child { border-bottom: 1px solid var(--film-border); }
.staff .workbench-task-row.selected {
  border-color: #b8cdfc;
  background: #f3f6ff;
  box-shadow: inset 3px 0 var(--film-accent), 0 4px 14px #182a4207;
}
.staff .workbench-stage-label strong, .staff .workbench-next-label strong { color: var(--film-ink); }
.staff .workbench-state { color: var(--film-ink); }
.staff .workbench-state.running { color: var(--film-ink); }
.staff .workbench-state.running i { background: var(--film-accent); box-shadow: 0 0 0 3px var(--film-accent-soft); }
.staff .workbench-state.ready { color: var(--film-ink); }
.staff .workbench-state.ready i { background: var(--theme-info-text, #286da8); box-shadow: none; }
.staff .workbench-state.running { color: var(--film-ink, #27384a); }
.staff .workbench-state.running i { --workbench-state-glow: #ffd40030; background: #ffd400; box-shadow: none; animation: workbench-state-breathe var(--motion-workbench-status, 1500ms) var(--motion-ease-scan) infinite; }
.staff .workbench-state.complete { color: var(--film-ink); }
.staff .workbench-state.complete i { background: var(--theme-success-text, #2c8050); box-shadow: none; }
.staff .workbench-state.quality { color: var(--film-ink); }
.staff .workbench-state.quality i { --workbench-state-glow: color-mix(in srgb, var(--theme-success-text, #2c8050) 20%, transparent); background: var(--theme-success-text, #2c8050); box-shadow: none; animation: workbench-state-breathe var(--motion-workbench-status, 1500ms) var(--motion-ease-scan) infinite; }
.staff .workbench-state.exception { color: var(--film-ink); }
.staff .workbench-state.exception i { background: var(--theme-danger-text, #bd3733); box-shadow: none; }
@keyframes workbench-state-breathe { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 transparent; } 50% { opacity: .48; box-shadow: 0 0 0 5px var(--workbench-state-glow, #ffd40030); } }
@media (prefers-reduced-motion: reduce) {
  .staff .workbench-state.running i,
  .staff .workbench-state.quality i { animation: none; }
}
.confirm-dialog-workbench-details { display: grid; gap: 9px; margin: 0 0 2px; }
.confirm-dialog-workbench-primary { color: var(--film-ink, #18212b); font-size: 23px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.confirm-dialog-workbench-order { color: var(--ops-muted, #68727c); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.confirm-dialog-workbench-state { display: grid; grid-template-columns: minmax(78px, auto) minmax(0, 1fr); align-items: baseline; gap: 10px; padding-top: 8px; border-top: 1px solid var(--ops-border, #dce2e8); font-size: 13px; line-height: 1.45; }
.confirm-dialog-workbench-state > span { color: var(--ops-muted, #68727c); }
.confirm-dialog-workbench-state > strong { min-width: 0; color: var(--film-ink, #18212b); font-weight: 700; overflow-wrap: anywhere; }
.workbench-process-confirm-content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.workbench-process-confirm-body { overflow-y: auto; }
.workbench-process-confirm-content h2 { margin-bottom: 18px; }
.staff .workbench-reason { color: #222936; background: var(--film-inset); border-left-color: var(--film-control-border); }

.staff .choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
  gap: 10px;
}
.staff .choice-button:not(.creation-source-card):not(.creation-choice-card) {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-color: var(--film-border);
  border-radius: 11px;
  background: var(--film-surface);
  color: #171b24;
  text-align: center;
  white-space: normal;
  box-shadow: 0 3px 10px #182a4208;
}
.staff .choice-button:not(.creation-source-card):not(.creation-choice-card):hover {
  border-color: var(--film-control-border);
  background: var(--film-inset);
}
.staff .choice-button:not(.creation-source-card):not(.creation-choice-card)[aria-pressed="true"],
.staff .choice-button:has(input:checked) {
  border-color: var(--film-accent);
  background: var(--film-accent-soft);
  color: var(--film-button);
  box-shadow: inset 0 0 0 1px var(--film-accent), 0 4px 12px #2863e91a;
}
.staff .choice-button:focus-visible, .staff .choice-button:focus-within {
  outline: 2px solid var(--film-focus);
  outline-offset: 2px;
}
.staff .negative-options label {
  border-color: var(--film-border);
  border-radius: 10px;
  background: var(--film-surface);
  color: #171b24;
}
.staff .negative-options label:has(input:checked) {
  border-color: var(--film-accent);
  background: var(--film-accent-soft);
  color: var(--film-button);
}
.staff .receipt-choice-field .choice-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); }

@media (max-width: 650px) {
  .staff .panel { padding: 16px; }
  .staff .workbench-task-row { margin: 0 0 9px; padding: 0; }
  .staff .workbench-task-row.selected { background: #f3f6ff; }
  .staff .choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .staff .choice-button:not(.creation-source-card):not(.creation-choice-card) { min-height: 50px; padding: 10px; font-size: 12px; }
  .staff .receipt-choice-field .choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .receipt-correction-modal .receipt-choice-field .choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.staff .creation-source-card, .staff .creation-choice-card, .staff .create-square {
  border: 1px solid var(--film-border);
  border-radius: 14px;
  background: var(--film-surface);
  color: var(--film-ink);
  box-shadow: 0 7px 20px #172b4609;
  transition: border-color var(--motion-feedback) var(--motion-ease-feedback), background-color var(--motion-feedback) var(--motion-ease-feedback), box-shadow var(--motion-feedback) var(--motion-ease-feedback), transform var(--motion-feedback) var(--motion-ease-feedback);
}
.staff .creation-source-card, .staff .creation-choice-card {align-items:center;text-align:center}
.staff .creation-source-card {justify-content:center}
.staff .creation-source-card strong, .staff .creation-source-card small, .staff .creation-choice-card strong, .staff .creation-choice-card small {text-align:center}
.staff .creation-source-card:hover, .staff .creation-choice-card:hover:not([aria-pressed="true"]),
.staff .create-square:hover:not([aria-pressed="true"]) {
  border-color: var(--film-control-border);
  background: var(--film-inset);
  box-shadow: 0 9px 24px #172b4612;
  transform: translateY(-1px);
}
.staff .creation-source-card[aria-pressed="true"],
.staff .creation-choice-card[aria-pressed="true"],
.staff .create-square[aria-pressed="true"] {
  border-color: var(--film-accent);
  background: var(--film-accent-soft);
  color: var(--film-button);
  box-shadow: inset 0 0 0 1px var(--film-accent), 0 6px 18px #2863e91a;
}
.staff .creation-source-card small, .staff .creation-choice-card small,
.staff .create-square .square-meta { color: var(--film-muted); }
.staff .creation-source-card[aria-pressed="true"] small,
.staff .creation-choice-card[aria-pressed="true"] small,
.staff .create-square[aria-pressed="true"] .square-meta { color: var(--film-button); }
.staff .creation-intake-details, .staff .creation-summary {
  border: 1px solid var(--film-border);
  border-radius: 12px;
  background: var(--film-surface);
  color: var(--film-ink);
  box-shadow: 0 5px 16px #172b4608;
}
.staff .creation-intake-details summary, .staff .creation-intake-fixed-label { color: var(--film-ink); }
.staff .creation-intake-details summary::before { color: var(--film-accent); }
@media (max-width: 650px) {
  .staff .creation-source-card, .staff .creation-choice-card { border-radius: 12px; }
  .staff .creation-source-card { padding: 16px; }
}

/* Staff intake progresses through one focused registration screen at a time. */
.create-picker [hidden] {display:none}
.creation-progress {position:relative;margin:24px 0 28px;padding:18px 20px 12px;border-radius:12px;background:var(--ops-bg);color:var(--ops-muted)}
.staff .creation-progress {background:var(--ops-surface)}
.creation-progress-track {position:absolute;left:calc(20px + 8.333%);right:calc(20px + 8.333%);top:29px;height:2px;border-radius:99px;background:var(--ops-border);overflow:hidden}
.creation-progress-fill {display:block;width:0;height:100%;border-radius:inherit;background:var(--film-button);transition:width var(--motion-content) var(--motion-ease-move)}
.creation-progress > .creation-progress-list,.staff .creation-progress > .creation-progress-list {position:relative;display:flex;justify-content:space-between;align-items:flex-start;gap:0;width:100%;margin:0;padding:0;list-style:none}
.creation-progress-list > li {flex:1 1 0;min-width:0;text-align:center}
.creation-progress-button {display:grid;grid-template-rows:12px auto;justify-items:center;align-content:start;gap:10px;width:100%;min-height:48px;padding:5px 2px 0;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;text-align:center;cursor:pointer}
.creation-progress-button:hover:not(:disabled) {color:var(--ops-ink)}
.creation-progress-button:focus-visible {outline:2px solid var(--film-focus);outline-offset:2px}
.creation-progress-button:disabled {cursor:default}
.creation-progress-dot {position:relative;z-index:1;display:block;width:12px;height:12px;border:2px solid #c5d0da;border-radius:50%;background:var(--ops-bg);transition:background-color var(--motion-feedback) var(--motion-ease-feedback),border-color var(--motion-feedback) var(--motion-ease-feedback),transform var(--motion-feedback) var(--motion-ease-feedback)}
.creation-progress-button small {max-width:100%;font-size:13px;line-height:1.35;white-space:nowrap}
.creation-progress-button.is-complete .creation-progress-dot {border-color:var(--film-button);background:var(--film-button)}
.creation-progress-button.is-current {color:var(--ops-ink);font-weight:700}
.creation-progress-button.is-current .creation-progress-dot {border-color:var(--film-button);background:var(--ops-bg);transform:scale(1.12)}
.creation-review {display:grid;gap:8px}
.creation-review-section {padding:8px 12px;border:1px solid var(--ops-border);border-radius:10px;background:var(--ops-surface)}
.creation-review-section .section-heading {margin:0 0 4px}
.creation-review-section .section-heading h3 {margin:0}
.creation-review-section p {margin:6px 0;overflow-wrap:anywhere}
.creation-review-rolls {display:grid;gap:8px}
.creation-review-added {display:grid;gap:10px;margin-top:14px;padding:12px;border:1px solid color-mix(in srgb,var(--film-button) 38%,var(--ops-border));border-radius:10px;background:color-mix(in srgb,var(--film-button) 4%,var(--ops-surface))}
.creation-review-added:focus {outline:2px solid color-mix(in srgb,var(--film-button) 55%,transparent);outline-offset:3px}
.creation-review-added .creation-review-roll,.creation-review-order-lines .creation-review-roll-existing {flex-wrap:wrap}
.creation-review-added .creation-review-roll-copy,.creation-review-order-lines .creation-review-roll-existing .creation-review-roll-copy {flex:1 1 260px}
.creation-review-added .creation-review-per-roll-editor,.creation-review-order-lines .creation-review-roll-existing .creation-review-per-roll-editor {flex-basis:100%}
.creation-review-added .section-heading {margin:0}
.creation-review-added .section-heading h4 {margin:0}
.creation-review-added .section-heading {display:flex;align-items:center;gap:12px}
.creation-review-added-actions {display:flex;align-items:center;gap:8px;margin-left:auto}
.creation-append-confirm-actions {display:flex;align-items:center;gap:8px;margin-left:auto}
.creation-review-footer {display:flex;align-items:center;gap:10px}
.creation-review-roll-existing {background:var(--ops-surface);border:1px solid var(--ops-border)}
.creation-review-roll {display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:10px 12px;border-radius:8px;background:var(--ops-bg)}
.creation-review-roll-copy {display:grid;gap:4px;min-width:0}
.creation-review-roll .create-square-grid {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch;gap:8px;width:100%;min-width:0}
.creation-review-roll small {color:var(--ops-muted);line-height:1.5;overflow-wrap:anywhere}
.creation-review-roll-management .creation-review-roll {flex-wrap:wrap}
.creation-review-roll-management .creation-review-roll-copy {flex:1 1 260px}
.creation-review-roll-side {display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:0 0 auto}
.creation-review-roll-price {white-space:nowrap}
.creation-review-roll-actions {display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap!important;width:auto}
.creation-review-roll-actions .button {min-width:62px;padding:7px 10px}
.creation-review-roll.is-editing {background:var(--ops-surface)}
.creation-review-editor-panel {display:block;flex:1 1 100%;width:100%;min-width:0;overflow:hidden}
.creation-review-editor-panel-inner {display:grid;gap:12px;min-height:0;overflow:hidden}
.creation-review-per-roll-editor-inner {padding-top:8px;border-top:1px solid var(--ops-border)}
.creation-review-editor-panel-inner .section-heading {margin:0}
.creation-review-per-roll-editor,.creation-review-add-roll-editor,.creation-review-per-roll-editor #declared-inputs,.creation-review-add-roll-editor #declared-inputs {width:100%;min-width:0}
.creation-review-per-roll-editor .create-picker,.creation-review-add-roll-editor .create-picker {width:100%;min-width:0;padding:16px}
.creation-review-per-roll-editor .create-picker,.creation-review-per-roll-editor .create-mode-section {border-color:transparent}
.staff .creation-review-per-roll-editor .create-square-grid,.staff .creation-review-add-roll-editor .create-square-grid {display:flex!important;flex-direction:row;flex-wrap:wrap;align-items:stretch;gap:8px;width:100%}
.creation-review-roll-management {display:grid;gap:10px}
.creation-review-add-roll-editor-inner {padding:12px;border:1px solid var(--ops-border);border-radius:10px;background:var(--ops-bg)}
.creation-review-add-roll-editor-inner #declared-inputs {display:grid;gap:10px}
.creation-review-editor-panel-inner #declared-inputs {width:100%;min-width:0}
.creation-review-editor-panel-inner #declared-inputs .create-picker {width:100%;min-width:0}
@media(prefers-reduced-motion:reduce) {.creation-review-editor-panel,.creation-review-editor-panel-inner {transition:none!important;filter:none!important;transform:none!important}}
.create-edited-roll-count {padding:8px 0}
.create-edited-roll-count span {color:var(--ops-muted);font-size:13px;font-weight:500}
.staff .creation-step .creation-review-total {display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-end;gap:3px;padding:0;border-radius:0;background:transparent;text-align:right}
.staff .creation-step .creation-review-total div {display:flex;align-items:baseline;gap:8px;min-width:0}
.creation-review-total strong {font-size:22px;color:var(--ops-ink);font-variant-numeric:tabular-nums}
.creation-review-total small {max-width:100%;color:var(--ops-muted);line-height:1.5;text-align:right}
.creation-review-footer {margin-top:16px}
.creation-customer-status:empty {display:none}
.creation-customer-status.is-warning {padding:10px 12px;border:1px solid #efc2b9;border-radius:8px;background:#fff3ef;color:#a33f35;font-weight:650;line-height:1.5}
.creation-customer-status.is-success {color:#26734d;font-weight:650}
.creation-customer-candidates {display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:9px}
.creation-customer-candidate {display:grid;justify-items:start;gap:4px;text-align:left;white-space:normal}
.creation-customer-candidate strong {color:var(--ops-ink);font-size:15px}
.creation-customer-candidate span,.creation-customer-candidate small {color:var(--ops-muted);font-size:12px}
.creation-customer-candidate small {font-weight:600;color:var(--ops-accent)}
.creation-review-customer,.creation-review-context {padding:8px 12px}
.creation-review-customer .section-heading,.creation-review-context .section-heading {margin-bottom:4px}
.creation-review-customer-grid {display:grid;grid-template-columns:minmax(130px,1fr) minmax(160px,1.2fr) minmax(155px,1fr) minmax(230px,2fr);align-items:start;gap:8px 16px}
.creation-review-customer-grid>div,.creation-review-context-grid>div {display:grid;gap:3px;min-width:0}
.creation-review-customer-grid small,.creation-review-context-grid small {color:var(--ops-muted);font-size:11px;line-height:1.35}
.creation-review-customer-grid strong,.creation-review-context-grid strong {color:var(--ops-ink);font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.creation-review-customer-grid .creation-review-customer-name {font-size:18px;font-weight:720;letter-spacing:-.02em}
.creation-review-customer-grid code {color:var(--ops-ink);font:650 13px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}
.creation-review-customer-grid .creation-review-address strong {font-weight:550}
.creation-review-context-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 16px}
.creation-review-editors {display:flex;gap:6px;flex-wrap:wrap}
.creation-review-order-lines .section-heading {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.creation-review-order-lines .section-heading h3 {margin:0 auto 0 0}
.creation-review-count {color:var(--ops-ink);font-size:15px;font-variant-numeric:tabular-nums}
.creation-review-shipping {margin-bottom:0!important}
.creation-review-inline-form {display:grid;gap:14px}
.creation-review-inline-form .field-group {padding:12px;border:1px solid var(--ops-border);border-radius:9px;background:var(--ops-bg)}
.creation-review-return-fee {display:grid;gap:10px;padding:12px;border:1px solid var(--ops-border);border-radius:9px;background:var(--ops-bg)}
.creation-review-return-fee>div:first-child {display:grid;gap:3px}
.creation-review-return-fee>div:first-child strong {color:var(--ops-ink);font-size:13px}
.creation-review-return-fee>div:first-child small {color:var(--ops-muted);font-size:12px;line-height:1.4}
.creation-review-cost-breakdown {font-variant-numeric:tabular-nums}
.creation-review-inline-actions {display:flex;justify-content:flex-end;gap:8px;padding-top:2px}
.creation-review-fixed-value {display:grid;gap:3px;padding:4px 1px}
.creation-review-fixed-value small {color:var(--ops-muted);font-size:11px}
.creation-review-fixed-value strong {font-size:14px}
.creation-review-roll-editor {display:grid;gap:12px}
.creation-review-roll-editor .create-picker {padding:12px}
@media (max-width: 900px) {
  .creation-review-customer-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .creation-review-customer-grid .creation-review-address {grid-column:1/-1}
  .creation-review-context-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
.creation-complete {display:grid;justify-items:center;gap:9px;padding:22px 12px;text-align:center}
.creation-complete h2,.creation-complete p {margin:0}
.creation-success-mark {display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:var(--film-button);color:var(--film-button-text,#fff);font-size:30px;animation:creation-success-pop var(--motion-content) var(--motion-ease-success) both}
.creation-pickup-hero {display:grid;justify-items:center;gap:2px;width:min(100%,560px);padding:10px 14px;border:1px solid color-mix(in srgb,var(--film-button) 34%,var(--ops-border));border-radius:10px;background:color-mix(in srgb,var(--film-button) 7%,var(--ops-surface))}
.creation-pickup-hero span {color:var(--ops-muted);font-size:12px;font-weight:600}
.creation-pickup-hero strong {color:var(--ops-ink);font-size:clamp(30px,5.5vw,36px);font-variant-numeric:tabular-nums;letter-spacing:.06em;line-height:1.12}
.creation-pickup-hero.is-loading {color:var(--ops-muted);font-size:14px}
.creation-order-code {display:grid;gap:2px;justify-items:center;margin:2px 0 4px}
.creation-order-code span {color:var(--ops-muted);font-size:12px}
.creation-order-code strong {color:var(--ops-ink);font-size:clamp(20px,3vw,23px);font-variant-numeric:tabular-nums;letter-spacing:.02em}
.creation-complete .creation-summary {width:min(100%,520px);text-align:left}
.creation-success-details {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;width:min(100%,600px);margin:4px 0;padding:4px 18px;border:1px solid var(--ops-border);border-radius:10px;background:var(--ops-surface);text-align:left}
.creation-success-details>div {display:grid;gap:4px;padding:12px 4px;border-bottom:1px solid var(--ops-border)}
.creation-success-details>div:nth-last-child(-n+2) {border-bottom:0}
.creation-success-details dt {color:var(--ops-muted);font-size:12px}
.creation-success-details dd {margin:0;color:var(--ops-ink);font-weight:650;overflow-wrap:anywhere}
.creation-success-details .creation-success-service,.creation-success-details .creation-success-intent,.creation-success-details .creation-success-note {grid-column:1/-1}
.creation-success-details .creation-success-service dd {display:grid;gap:6px}
.creation-success-service dd>span {display:flex;justify-content:space-between;gap:16px}
.creation-success-service dd>span strong {white-space:nowrap;font-variant-numeric:tabular-nums}
.creation-success-details .creation-success-note dd {white-space:pre-wrap;line-height:1.5}
.creation-success-details .creation-success-return {grid-column:1/-1}
.creation-success-return dd {display:grid;gap:4px;line-height:1.45;overflow-wrap:anywhere}
.creation-success-details .creation-success-note {border-bottom:0}
.creation-bag-actions {display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:2px}
.creation-bag-pending {width:min(100%,600px);padding:12px;border:1px dashed var(--ops-border);border-radius:9px;color:var(--ops-muted)}
.creation-bag-modal .label-preview-card {width:min(100%,520px)}
.creation-pickup-code {width:min(100%,520px);text-align:left}
.creation-complete-actions {display:flex;justify-content:center;gap:10px;flex-wrap:nowrap;max-width:100%;overflow-x:auto;margin-top:8px}
.creation-complete-actions>.button {flex:0 0 auto}
@keyframes creation-success-pop {from{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}
.staff main.creation-main {width:100%;min-width:0;max-width:none;padding-bottom:calc(112px + env(safe-area-inset-bottom, 0px))}
.staff main.creation-main>.creation-step {width:100%;min-width:0;max-width:none;margin-inline:auto}
.staff .creation-step {padding:12px 18px 18px}
.staff .creation-step > .section-heading {margin:4px 0 12px}
.staff .creation-step [data-form="create-services-step"] #declared-inputs {gap:8px}
.staff .creation-step [data-form="create-services-step"] .create-roll-list > .section-heading {margin:0 0 8px}
.staff .creation-step [data-form="create-services-step"] .create-roll-list > .section-heading h3 {margin:0}
.creation-step #create-step-title:focus {outline:none}
.staff .creation-step [data-form^="create-"] > p {margin:0}
.staff .creation-step [data-form="create-customer-step"] #customer-candidates:empty {display:none}
.staff .creation-step [data-form="create-customer-step"] .creation-footer {margin-top:4px}
.staff .creation-step [data-form="create-customer-step"] .create-online-platform-order-row {grid-column:1 / -1}
.creation-platform-static {display:flex;align-items:center;min-height:44px;padding:10px 12px;border:1px solid var(--ops-border);border-radius:8px;background:var(--ops-bg);color:var(--ops-ink);font-weight:700}
.registration-platform-accounts {display:grid;gap:12px;margin:14px 0;padding:13px;border:1px solid var(--ops-border);border-radius:10px;background:var(--ops-bg)}
.registration-platform-accounts summary {cursor:pointer;font-weight:700;color:var(--ops-ink)}
.registration-platform-accounts small {color:var(--ops-muted);line-height:1.45}
.creation-order-notes {display:grid;gap:8px;margin:2px 0}
.creation-order-notes-heading {display:flex;align-items:center;justify-content:space-between;gap:12px}
.creation-order-notes-heading>strong {font-size:14px;color:var(--ops-muted)}
.creation-order-notes-preview {margin:0;color:var(--ops-muted);white-space:pre-wrap;overflow-wrap:anywhere}
.creation-order-notes-editor {width:100%;min-width:0;padding-top:8px}
.creation-order-notes-editor .field {width:100%;min-width:0}
.creation-order-notes .field textarea {width:100%;min-width:0;min-height:72px;box-sizing:border-box;resize:none}
.creation-order-notes-disclosure > summary {list-style:none;cursor:pointer}
.creation-order-notes-disclosure > summary::-webkit-details-marker {display:none}
.creation-order-notes-action {display:inline-flex;align-items:center;justify-content:center}
.creation-order-notes-open {display:none}
.creation-order-notes-disclosure[open] .creation-order-notes-closed {display:none}
.creation-order-notes-disclosure[open] .creation-order-notes-open {display:inline}
.creation-order-notes-disclosure[open] + .creation-order-notes-preview {display:none}
.staff .create-current-total {align-items:center;justify-content:flex-end;gap:12px;padding:0;border:0;border-radius:0;background:transparent;text-align:right}
.staff .create-current-total span {display:inline-flex;align-items:center;color:var(--ops-muted);font-size:14px;line-height:1.25}
.staff .create-current-total strong {display:inline-flex;align-items:center;font-size:20px;line-height:1.25;font-variant-numeric:tabular-nums;white-space:nowrap}
.staff .creation-step .creation-footer,.staff .creation-step [name="returnRecipientName"] {scroll-margin-block:32px}
.creation-source-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.creation-source-card {display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;gap:12px;padding:24px;min-height:140px;white-space:normal}
.creation-source-card strong {font-size:20px}
.creation-source-card small {font-weight:400;color:var(--ops-muted);line-height:1.6}
.member-id-control {position:relative;min-width:0}
.creation-step [data-form="create-customer-step"] .field input {min-height:44px}
.member-id-control input {padding-right:55px}
.member-id-control input[readonly] {background:var(--ops-bg);font-weight:700}
:is(.staff, .modal-backdrop) .creation-floating-field {position:relative;display:block;min-width:0;gap:0}
:is(.staff, .modal-backdrop) .creation-floating-field {--creation-floating-label-bg:var(--ops-surface)}
:is(.staff, .modal-backdrop) .creation-floating-field>.creation-floating-label {position:absolute;z-index:2;top:50%;left:14px;max-width:calc(100% - 72px);overflow:hidden;background:transparent;color:var(--ops-muted);font-size:15px;font-weight:600;line-height:1;pointer-events:none;text-overflow:ellipsis;transform:translateY(-50%);transform-origin:left center;transition:top var(--motion-feedback) var(--motion-ease-move),left var(--motion-feedback) var(--motion-ease-move),padding var(--motion-feedback) var(--motion-ease-move),font-size var(--motion-feedback) var(--motion-ease-move),color var(--motion-feedback) var(--motion-ease-move),background-color var(--motion-feedback)}
:is(.staff, .modal-backdrop) .creation-floating-field>input,:is(.staff, .modal-backdrop) .creation-floating-field .member-id-control>input {width:100%;min-width:0;height:48px;min-height:48px;box-sizing:border-box;padding:14px 14px 10px;background:var(--ops-surface)}
:is(.staff, .modal-backdrop) .creation-floating-field .member-id-control>input {padding-right:55px}
:is(.staff, .modal-backdrop) .creation-floating-field .member-id-control>input[readonly] {background:var(--ops-surface)}
:is(.staff, .modal-backdrop) .creation-floating-field>textarea {width:100%;min-width:0;min-height:72px;box-sizing:border-box;padding:28px 14px 10px;resize:none}
:is(.staff, .modal-backdrop) .creation-floating-field>small {display:block;margin-top:6px}
:is(.staff, .modal-backdrop) .creation-floating-field input::placeholder,:is(.staff, .modal-backdrop) .creation-floating-field textarea::placeholder {color:transparent;transition:color var(--motion-feedback)}
:is(.staff, .modal-backdrop) .creation-floating-field:focus-within input::placeholder,:is(.staff, .modal-backdrop) .creation-floating-field:focus-within textarea::placeholder {color:var(--ops-muted)}
:is(.staff, .modal-backdrop) .creation-floating-field:focus-within>.creation-floating-label,:is(.staff, .modal-backdrop) .creation-floating-field:has(input:not(:placeholder-shown))>.creation-floating-label,:is(.staff, .modal-backdrop) .creation-floating-field:has(textarea:not(:placeholder-shown))>.creation-floating-label {top:0;left:10px;padding:0 2px;background:var(--creation-floating-label-bg,var(--ops-surface));color:var(--ops-accent);font-size:12px;transform:translateY(-50%)}
:is(.staff, .modal-backdrop) .creation-floating-field.is-floating>.creation-floating-label {top:0;left:10px;padding:0 2px;background:var(--creation-floating-label-bg,var(--ops-surface));color:var(--ops-accent);font-size:12px;transform:translateY(-50%)}
:is(.staff, .modal-backdrop) .creation-floating-field.is-floating>.creation-platform-static {width:100%;min-height:48px;padding:14px 12px 10px;background:var(--creation-floating-label-bg,var(--ops-surface))}
:is(.staff, .modal-backdrop) .incoming-waybill-field.creation-floating-field:not(:focus-within):has(input:placeholder-shown)>.creation-floating-label {top:24px;left:14px;padding:0;background:transparent;color:var(--ops-muted);font-size:15px;transform:translateY(-50%)}
:is(.staff, .modal-backdrop) .creation-floating-field input:-webkit-autofill,:is(.staff, .modal-backdrop) .creation-floating-field input:-webkit-autofill:hover { background-color:var(--ops-surface)!important; -webkit-text-fill-color:var(--ops-ink); -webkit-box-shadow:0 0 0 1000px var(--ops-surface) inset!important; box-shadow:0 0 0 1000px var(--ops-surface) inset!important; }
:is(.staff, .modal-backdrop) .creation-floating-field :is(input,textarea):focus {border-color:var(--film-focus);outline:none;box-shadow:none}
:is(.staff, .modal-backdrop) .creation-floating-field :is(input,textarea):focus-visible {outline:none;box-shadow:none}
.member-id-scan {position:absolute;top:50%;right:4px;display:grid;width:44px;height:44px;transform:translateY(-50%);place-items:center;border:0;border-radius:6px;background:transparent;color:var(--ops-ink);transition:background-color var(--motion-feedback),color var(--motion-feedback)}
.member-id-scan svg {width:21px;height:21px;display:block}
.member-id-scan:hover {background:transparent;color:var(--ops-accent)}
.member-id-scan:focus-visible {outline:2px solid var(--film-focus);outline-offset:-3px}
.creation-intake-details {display:grid;gap:9px;padding:10px 12px;border:1px solid var(--ops-border);border-radius:9px;background:var(--ops-surface)}
.creation-intake-details summary {display:grid;grid-template-columns:14px minmax(0,1fr);align-items:center;gap:7px;min-height:54px;cursor:pointer;color:var(--ops-ink);font-size:13px;font-weight:650;line-height:1.45;list-style:none}
.creation-intake-details summary::-webkit-details-marker {display:none}
.creation-intake-details summary::before {content:"▸";color:var(--ops-muted);font-size:14px;line-height:1}
.creation-intake-details[open] summary::before {content:"▾"}
.creation-intake-fixed-label {display:grid;gap:4px;margin:0;color:var(--ops-ink);font-size:16px;font-weight:750;line-height:1.45}
.creation-intake-fixed-label small,.creation-intake-details > small {color:var(--ops-muted);font-size:12px;font-weight:500}
.creation-intake-details > strong,.creation-intake-fixed-label > strong {font-size:13px;font-weight:650;overflow-wrap:anywhere}
.store-mailing-address {display:grid;gap:3px;padding:9px 12px;border-radius:8px;background:var(--ops-surface-muted,var(--ops-surface));}
.store-mailing-address small {color:var(--ops-muted);font-size:11px}
.store-mailing-address strong {font-size:13px;overflow-wrap:anywhere}
.customer-mailing-instruction {display:grid;gap:9px;padding:16px;margin-bottom:16px;font-size:14px}
.customer-mailing-instruction > div {display:grid;gap:3px}
.customer-mailing-instruction small {font-size:11px;color:inherit;opacity:.78}
.customer-mailing-instruction strong {overflow-wrap:anywhere}
.creation-intake-details summary:focus-visible {outline:2px solid var(--film-focus);outline-offset:3px}
.creation-intake-details[open] summary {margin-bottom:1px}
.creation-intake-details p {margin:0;line-height:1.5}
.creation-intake-options {display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.staff .creation-intake-options > .creation-intake-choice:not(.creation-source-card):not(.creation-choice-card) {display:inline-flex;flex:0 1 auto;width:auto;min-width:132px;max-width:100%;min-height:42px;align-items:center;justify-content:center;padding:8px 14px;text-align:center;white-space:nowrap}
.creation-choice-field {min-width:0;margin:0;padding:0;border:0}
.creation-choice-field legend {margin-bottom:10px;color:var(--ops-ink);font-size:14px;font-weight:700}
.creation-choice-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.creation-choice-card {display:flex;min-height:100px;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;padding:15px 17px;text-align:left;white-space:normal}
.creation-choice-card strong {font-size:15px;line-height:1.4}
.creation-choice-card small {color:var(--ops-muted);font-size:12px;font-weight:400;line-height:1.45}
.create-square-grid {display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
.staff .create-picker .create-square:not(.creation-source-card):not(.creation-choice-card) {display:flex;flex:0 1 210px;width:min(210px,100%);min-width:150px;min-height:54px;height:auto;aspect-ratio:auto;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:10px 13px;text-align:center;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.staff .create-picker .create-square:not(.creation-source-card):not(.creation-choice-card).create-format-option,.staff .create-picker .create-square:not(.creation-source-card):not(.creation-choice-card).create-control-option {flex-basis:160px;width:min(160px,100%);min-height:46px;padding:8px 12px}
.staff .create-picker .create-square:not(.creation-source-card):not(.creation-choice-card).create-control-option.create-resolution-option {flex-basis:210px;width:min(210px,100%);min-height:62px;}
.staff .create-picker .create-square:not(.creation-source-card):not(.creation-choice-card).create-scanner-option {flex-basis:230px;width:min(230px,100%);min-height:58px}
.create-square .square-title {font-size:13px;font-weight:650;line-height:1.4}
.create-square .square-meta {color:var(--ops-muted);font-size:11px;font-weight:500;line-height:1.35}
.create-square[aria-pressed="true"] .square-meta {color:var(--ops-accent)}
.create-square:disabled {cursor:not-allowed;opacity:.58}
.staff .create-picker .create-service-heading {font-size:20px;font-weight:760;line-height:1.35;color:var(--ops-ink)}
.create-mode-section {display:grid;gap:10px;padding:14px;border:1px solid var(--ops-border);border-radius:10px;background:var(--ops-bg)}
.create-picker [data-create-section] {scroll-margin-top:24px}
.create-mode-section,.create-wash-group,.create-format-group,.create-scanner-group,.create-value-adds,.scan-option-group,.create-roll-controls {scroll-margin-top:24px}
.create-mode-section>strong {font-size:16px;font-weight:750;color:var(--ops-ink)}
.create-mode-section>strong:focus {outline:none}
.staff .create-picker .create-mode-option {flex-basis:190px;width:min(190px,100%);min-height:52px;align-items:center;text-align:center}
.create-scanner-option:disabled {opacity:.82!important;cursor:not-allowed;transform:none!important}
.scanner-compatibility {display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;line-height:1.25}
.scanner-compatibility i {width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#7d8b96}
.scanner-compatibility.is-compatible {color:#287648}
.scanner-compatibility.is-compatible i {background:#32945a}
.scanner-compatibility.is-incompatible {color:#ad4037}
.scanner-compatibility.is-incompatible i {background:#c44b42}
.scanner-compatibility.is-pending {color:var(--ops-muted)}
html[data-theme="dark"] .scanner-compatibility.is-compatible {color:var(--theme-success-text)}
html[data-theme="dark"] .scanner-compatibility.is-compatible i {background:var(--theme-success-text)}
html[data-theme="dark"] .scanner-compatibility.is-incompatible {color:var(--theme-danger-text)}
html[data-theme="dark"] .scanner-compatibility.is-incompatible i {background:var(--theme-danger-text)}
.create-format-group>.create-square-grid {max-width:100%}
.create-picker .choice-button {text-align:center;justify-content:center}
.scan-options {display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.scan-option-group {display:grid;gap:8px}
.scan-option-group>strong {font-size:14px}
.quantity-field {display:grid;max-width:210px;gap:7px;color:var(--ops-ink);font-size:13px;font-weight:650}
.quantity-stepper {display:grid;grid-template-columns:44px minmax(56px,72px) 44px;align-items:center;gap:7px}
.quantity-stepper-button {display:grid;width:44px;height:44px;place-items:center;border:1px solid var(--ops-border);border-radius:8px;background:var(--ops-surface);color:var(--ops-ink);font-size:21px;font-weight:500;line-height:1}
.quantity-stepper-button:hover:not(:disabled) {border-color:var(--ops-accent);background:var(--ops-accent-soft);color:var(--ops-accent)}
.quantity-stepper-button:focus-visible {outline:2px solid var(--film-focus);outline-offset:2px}
.quantity-stepper-button:disabled {cursor:not-allowed;opacity:.48}
.quantity-stepper input {width:100%;height:44px;min-width:0;padding:6px;border:1px solid var(--ops-border);border-radius:8px;background:var(--ops-surface);color:var(--ops-ink);text-align:center;font-variant-numeric:tabular-nums}
.quantity-stepper input:focus-visible {outline:2px solid var(--film-focus);outline-offset:2px}
.create-picker {position:relative}
.create-order-controls {display:grid;width:100%;min-width:0;grid-template-columns:minmax(0,1fr) fit-content(360px);align-items:center;gap:24px}
.create-order-controls-main {display:grid;min-width:0;align-content:center;gap:12px}
.create-add-actions {display:flex;min-width:0;align-items:center;flex-wrap:wrap;gap:10px}
.create-add-block-reason {flex-basis:100%;color:#b43d3d;font-size:13px;font-weight:650}
.create-order-controls>.price-summary {position:static;width:max-content;max-width:100%;margin:0;justify-self:end;align-self:end;text-align:left;gap:7px;font-size:14px}
.create-order-controls .price-summary small {font-size:13px;line-height:1.4}
.create-order-controls .price-summary .price-summary-title {font-size:16px;line-height:1.35}
.create-order-controls .price-summary .price-summary-total {font-size:18px;line-height:1.3}
.staff .quantity-stepper input {padding-inline:0;text-align:center;appearance:textfield;-moz-appearance:textfield}
.staff .quantity-stepper input::-webkit-inner-spin-button,.staff .quantity-stepper input::-webkit-outer-spin-button {-webkit-appearance:none;margin:0}
.create-value-adds {display:grid;gap:9px;padding:11px 13px;border:1px solid var(--ops-border);border-radius:9px;background:var(--ops-bg)}
.create-value-adds>.field-group {gap:3px}
.value-add-stepper {display:grid;grid-template-columns:38px 56px 38px;align-items:center;gap:6px;text-align:center}
.value-add-stepper button {height:36px;border:1px solid var(--ops-border);border-radius:8px;background:var(--ops-surface);color:var(--ops-ink);font-size:18px}
.value-add-stepper button:hover:not(:disabled) {border-color:var(--film-accent);color:var(--film-accent)}
.value-add-stepper button:disabled {opacity:.45;cursor:not-allowed}
.value-add-stepper output {font-weight:750;font-variant-numeric:tabular-nums}
.create-wash-addon-options {display:grid;gap:7px;margin-top:9px}
.create-wash-addon-heading {display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.create-wash-addon-heading>strong {color:var(--ops-ink);font-size:12px;font-weight:700}
.create-wash-addon-heading>small {font-size:11px}
.create-wash-addon-list {display:flex;align-items:flex-start;flex-wrap:wrap;gap:7px}
.create-wash-addon {position:relative;flex:0 1 190px;min-width:min(150px,100%);max-width:220px}
.create-wash-addon-controls {display:flex;min-width:0;align-items:stretch;gap:5px}
.staff .create-picker .create-wash-addon-trigger {display:flex!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;min-height:48px;flex-direction:column;align-items:center!important;justify-content:center!important;gap:3px;padding:8px 10px;text-align:center!important;white-space:normal}
.create-wash-addon-trigger .square-title {width:100%;overflow-wrap:anywhere;text-align:center}
.create-wash-addon-trigger .square-meta {width:100%;color:var(--ops-muted);font-size:11px;line-height:1.35;text-align:center}
.create-wash-addon-trigger[aria-pressed="true"] .square-meta {color:var(--ops-accent)}
.create-wash-addon-trigger[aria-expanded="true"] {border-color:var(--ops-accent)}
.create-wash-addon-trigger:disabled {cursor:not-allowed;opacity:.62}
.create-wash-addon-adjust {min-width:48px;min-height:44px;flex:0 0 auto;align-self:stretch;padding:6px 8px;border:1px solid var(--ops-border);border-radius:8px;background:var(--ops-bg);color:var(--ops-accent);font-size:11px;font-weight:650}
.create-wash-addon-adjust:hover {border-color:var(--ops-accent);background:var(--ops-accent-soft)}
.create-wash-addon-adjust[aria-expanded="true"] {border-color:var(--ops-accent);background:var(--ops-accent-soft)}
.create-wash-addon-trigger:focus-visible,.create-wash-addon-adjust:focus-visible,.create-wash-addon-close:focus-visible {outline:2px solid var(--film-focus);outline-offset:2px}
.create-wash-addon-popover {position:absolute;z-index:40;top:calc(100% + 7px);left:0;display:grid;width:min(272px,calc(100vw - 32px));gap:9px;padding:12px;border:1px solid var(--ops-border);border-radius:10px;background:var(--ops-surface);box-shadow:0 12px 28px #182a3c26;color:var(--ops-ink);text-align:left}
.create-wash-addon-popover[data-align="end"] {right:0;left:auto}
.create-wash-addon-popover-heading {display:flex;align-items:center;justify-content:space-between;gap:10px}
.create-wash-addon-popover-heading>strong {min-width:0;font-size:13px;font-weight:700;overflow-wrap:anywhere}
.create-wash-addon-close {display:inline-flex;min-width:48px;min-height:36px;flex:0 0 auto;align-items:center;justify-content:center;padding:6px 9px;border:1px solid var(--ops-border);border-radius:7px;background:var(--ops-bg);color:var(--ops-muted);font-size:11px;font-weight:650;line-height:1}
.create-wash-addon-close:hover {border-color:var(--ops-accent);color:var(--ops-accent)}
.create-wash-addon-popover>.muted,.create-wash-addon-price {font-size:11px;line-height:1.4}
.create-wash-addon-popover .value-add-stepper {grid-template-columns:44px minmax(78px,1fr) 44px;gap:7px}
.create-wash-addon-popover .value-add-stepper button {height:40px;min-width:44px}
.create-wash-addon-popover .value-add-stepper output {min-width:0;text-align:center;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.create-wash-addon-price {color:var(--ops-muted)}
.wash-addon-config {margin-top:10px;border-top:1px solid var(--ops-border);padding-top:10px}
.wash-addon-config>summary {cursor:pointer;color:var(--film-accent);font-size:12px;font-weight:700}
.wash-addon-list {display:grid;gap:10px;margin-top:10px}
.wash-addon-card {display:grid;gap:10px;padding:12px;border:1px solid var(--ops-border);border-radius:9px;background:var(--ops-bg)}
.proposal-value-add-grid:empty {display:none}
@media(max-width:760px) {.create-order-controls {grid-template-columns:minmax(0,1fr);gap:14px}.create-order-controls>.price-summary {grid-column:1;justify-self:start;width:auto}}
@media(max-width:650px) {.value-add-stepper {grid-template-columns:40px 48px 40px}.create-wash-addon {flex-basis:calc(50% - 4px);min-width:min(136px,100%)}.create-wash-addon-popover {width:min(272px,calc(100vw - 28px))}.create-wash-addon-popover[hidden] {display:none!important}.create-wash-addon-popover .value-add-stepper {grid-template-columns:44px minmax(72px,1fr) 44px}}
.member-card-scan-modal {width:min(92vw,calc(48vh + 50px),490px);max-height:calc(100vh - 28px);overflow-y:auto;scrollbar-gutter:stable}
.member-card-scan-modal.is-member-scan {gap:10px}
.member-card-scan-modal.is-member-scan h2 {margin-bottom:0}
.member-card-scan-modal.is-member-scan .stack {gap:8px}
.member-card-scan-modal.is-workbench-process > .stack { min-height: 0; overflow-y: auto; }
.member-card-scan-modal .member-card-scan-actions {display:flex;flex-wrap:wrap;gap:9px}
.member-card-scan-modal #member-card-scan-status {margin:0;min-height:1.5em}
.member-card-scan-modal #member-card-scan-status.amber {color:var(--ops-warning)}
.scanner-keyboard-capture {position:fixed;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0;}
.member-card-scan-modal .scanner-language-hint {margin:0;font-size:12px}
.button.member-card-camera-trigger {width:100%;min-height:44px;background:var(--film-button);color:#fff;border:1px solid var(--film-button)}
.button.member-card-camera-trigger:hover:not(:disabled),.button.member-card-camera-trigger:focus-visible {background:var(--film-button-hover);color:#fff;border-color:var(--film-button-hover)}
.button.member-card-camera-trigger:focus-visible {outline:3px solid var(--film-focus);outline-offset:2px}
.member-card-camera-trigger[hidden], .member-card-camera-stop[hidden] {display:none}
.member-card-camera-panel {display:grid;justify-items:center;gap:10px}
.member-card-camera-panel[hidden] {display:none}
.button.light.member-card-camera-stop {order:1;min-height:44px;min-width:140px;color:var(--film-danger,#a13b35);border:1px solid var(--film-danger,#a13b35);background:var(--film-surface,#fff)}
.button.light.member-card-camera-stop:hover:not(:disabled) {color:var(--film-danger,#a13b35);border-color:var(--film-danger,#a13b35);background:var(--theme-danger-bg,#fff4f2)}
.member-card-camera-frame {position:relative;width:min(100%,440px,48vh);aspect-ratio:1/1;overflow:hidden;border:1px solid var(--film-border);border-radius:12px;background:var(--theme-inset,#122033)}
.member-card-camera-frame video {display:block;width:100%;height:100%;object-fit:cover}
.member-card-scan-corner {position:absolute;width:28px;height:28px;border-color:#effff9;border-style:solid;filter:drop-shadow(0 1px 3px #071a1b88);pointer-events:none}
.member-card-scan-corner.top-left {top:8%;left:8%;border-width:3px 0 0 3px;border-radius:5px 0 0}
.member-card-scan-corner.top-right {top:8%;right:8%;border-width:3px 3px 0 0;border-radius:0 5px 0 0}
.member-card-scan-corner.bottom-left {bottom:8%;left:8%;border-width:0 0 3px 3px;border-radius:0 0 0 5px}
.member-card-scan-corner.bottom-right {right:8%;bottom:8%;border-width:0 3px 3px 0;border-radius:0 0 5px}
.member-card-scan-beam {position:absolute;top:8%;left:9%;width:82%;height:2px;background:linear-gradient(90deg,transparent,#72f4cb 14%,#d8fff2 50%,#72f4cb 86%,transparent);box-shadow:0 0 12px #64e9bfaa;opacity:.9;pointer-events:none}
.member-card-camera-panel.is-scanning .member-card-scan-beam {animation:member-card-scan-sweep var(--motion-scanner) var(--motion-ease-scan) infinite alternate}
@keyframes member-card-scan-sweep {to {top:90%}}
.member-card-scan-footer {display:flex;flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:10px;margin-top:6px}
.member-card-scan-footer .member-card-scan-close {order:2;min-width:88px;color:var(--film-danger,#a13b35);border:1px solid var(--film-danger,#a13b35);background:var(--film-surface,#fff)}
.member-card-scan-footer .member-card-scan-close:hover:not(:disabled) {color:var(--film-danger,#a13b35);border-color:var(--film-danger,#a13b35);background:var(--theme-danger-bg,#fff4f2)}
.modal.workbench-task-dialog {
  width: min(100%, 360px);
  max-height: calc(100dvh - 36px);
  padding: 18px;
  gap: 8px;
  overflow-y: auto;
}
.member-card-scan-modal.is-workbench-process {
  display: flex;
  flex-direction: column;
  height: min(264px, calc(100dvh - 36px));
  overflow: hidden;
  scrollbar-gutter: auto;
}
.workbench-task-dialog .workbench-process-roll-code {
  margin: 0;
  color: var(--film-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.is-workbench-process .workbench-process-roll-code {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}
.workbench-process-target {
  display: grid;
  flex: 1 0 auto;
  align-content: center;
  gap: 4px;
}
.is-workbench-process #member-card-scan-status { text-align: center; }
.member-card-scan-modal.is-workbench-process #member-card-scan-status.amber,
.workbench-camera-scan-miss {
  color: var(--theme-danger-text, #a13b35);
  font-weight: 600;
}
.workbench-process-confirm-body .workbench-process-roll-code { margin-bottom: 6px; }
.confirm-dialog-workbench-details .workbench-process-roll-code { margin-bottom: 0; }
.workbench-process-confirm-body > p { font-size: 14px; line-height: 1.45; }
.is-workbench-process .workbench-process-confirm-content h2 { margin-bottom: 10px; }
.is-workbench-process .confirm-dialog-workbench-details { gap: 4px; }
.is-workbench-process .confirm-dialog-workbench-state { padding-top: 5px; }
.is-workbench-process > .stack { align-content: start; }
.is-workbench-process:not(.is-camera-view) > :is(.member-card-camera-panel, .workbench-process-camera-footer),
.is-workbench-process.is-camera-view > :is(h2, .stack, .member-card-scan-footer),
.is-workbench-process.is-camera-view .workbench-process-target > .workbench-process-roll-code {
  display: none;
}
.is-workbench-process.is-camera-view .workbench-process-target { display: contents; }
.is-workbench-process.is-camera-view > .member-card-camera-panel {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.is-workbench-process.is-camera-view > .member-card-camera-panel:not([hidden]) { display: block; }
.is-workbench-process.is-camera-view .member-card-camera-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.workbench-camera-scan-miss {
  position: absolute;
  inset: auto 8px 8px;
  width: max-content;
  max-width: calc(100% - 16px);
  margin: 0 auto;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--film-surface);
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}
.workbench-process-camera-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
}
.is-workbench-process .member-card-scan-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 6px;
}
.workbench-task-dialog :is(.actions, .member-card-scan-footer) {
  display: grid;
  grid-template-columns: auto minmax(0, auto);
  align-items: end;
  justify-content: end;
  justify-items: start;
  gap: 4px 10px;
}
.workbench-process-camera-action {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--film-button);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.workbench-process-camera-action[hidden] { display: none; }
.workbench-process-camera-action:focus-visible { outline: 2px solid var(--film-focus); outline-offset: 2px; }
.workbench-process-camera-action:disabled { color: var(--film-muted); cursor: wait; }
.is-workbench-process.is-member-scan .member-card-scan-footer:not(:has([data-workbench-manual])) > .member-card-scan-close { grid-column: 1 / -1; justify-self: end; }
.workbench-task-dialog :is(.actions, .member-card-scan-footer) > .button {
  min-height: 44px;
}
.workbench-task-dialog :is(.actions, .member-card-scan-footer) > :is([data-workbench-manual], [data-confirm-action], [type="submit"]) {
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.workbench-task-dialog .member-card-scan-footer > .member-card-scan-close { order: 0; }
.workbench-task-dialog:not(.is-workbench-process) h2 { margin: 0 0 8px; overflow-wrap: anywhere; }
.workbench-task-dialog .actions { margin-top: 6px; }
.workbench-task-dialog .actions > [data-cancel-action] {
  order: 0;
  border-color: var(--film-danger, #a13b35);
  color: var(--film-danger, #a13b35);
}
.workbench-task-dialog .actions > [data-cancel-action]:hover:not(:disabled) {
  background: var(--theme-danger-bg, #fff4f2);
}
.workbench-scan-upload-dialog :is(h2, p) { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 430px) {
  .member-card-scan-modal.is-workbench-process { height: min(288px, calc(100dvh - 36px)); }
}
@media(prefers-reduced-motion:reduce) {.member-card-camera-panel.is-scanning .member-card-scan-beam {animation:none;top:50%}}
.creation-footer {display:flex;justify-content:space-between;gap:12px;margin-top:20px;flex-wrap:wrap}
.creation-source-footer {justify-content:flex-end}
.creation-summary {display:flex;flex-direction:column;gap:6px;padding:16px;background:var(--ops-bg);border-radius:10px;overflow-wrap:anywhere}
.order-mail-editor {margin-top:12px}
.order-mail-editor summary {cursor:pointer;font-weight:600;margin-bottom:16px}
html[data-theme="dark"] .staff .create-square:hover:not([aria-pressed="true"]),
html[data-theme="dark"] .staff .creation-choice-card:hover:not([aria-pressed="true"]) {background:var(--theme-raised)}
@media(max-width:650px) {.creation-complete {padding:22px 8px}.creation-success-details {grid-template-columns:1fr;padding:2px 12px}.creation-success-details>div:nth-last-child(-n+2) {border-bottom:1px solid var(--ops-border)}.creation-success-details>div:last-child {border-bottom:0}.creation-success-details .creation-success-service,.creation-success-details .creation-success-intent,.creation-success-details .creation-success-note {grid-column:1}.creation-success-details>div {padding:10px 2px}.creation-source-options {grid-template-columns:1fr}.creation-source-card {min-height:90px;padding:18px}.creation-progress {margin:20px 0 24px;padding:15px 8px 10px}.creation-progress-track {left:calc(8px + 8.333%);right:calc(8px + 8.333%);top:26px}.creation-progress-button {gap:8px;min-height:44px;padding:5px 0 0}.creation-progress-button small {font-size:10px;letter-spacing:-.03em}.creation-footer > .button {flex:1}.staff .customer-step-footer .creation-confirm-group {flex:1;min-width:0}.staff .customer-step-footer .creation-confirm-group > .button {width:100%}.creation-choice-grid {grid-template-columns:repeat(2,minmax(0,1fr))}.creation-choice-card {min-height:88px;padding:12px}.create-square-grid {grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}.quantity-stepper {grid-template-columns:44px 64px 44px}.member-card-scan-actions > .button {flex:1 1 180px}.creation-step [data-form="create-customer-step"] .field input {min-height:46px}.staff .creation-step .creation-review-total {align-items:flex-end;flex-direction:column;flex-wrap:nowrap}.staff .creation-step .creation-review-total div {flex:0 1 auto;white-space:nowrap}.creation-review-total small {max-width:none}.creation-review-roll {gap:8px}.creation-review-roll>strong {white-space:nowrap}}
@media(prefers-reduced-motion:reduce) {.creation-progress-fill,.creation-progress-button span,.creation-success-mark {transition:none;animation:none}}

/* Sidebar navigation: one FLIP-driven active surface and a local workbench disclosure. */
.staff .business-nav { position: relative; isolation: isolate; }
.staff .sidebar-nav-highlight {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  display: block;
  border-radius: 9px;
  background: var(--film-accent);
  box-shadow: 0 5px 14px #2863e926;
  pointer-events: none;
  will-change: transform, width, height;
  transition: border-radius var(--motion-content) var(--motion-ease-move);
}
.staff .business-nav[data-highlight-geometry-tracking="true"] .sidebar-nav-highlight {
  transition: none;
}
.staff .sidebar-nav-highlight[hidden] { display: none; }
.staff .sidebar-nav-highlight[data-level="secondary"] {
  border-radius: 7px;
  background: var(--film-accent);
  box-shadow: 0 5px 14px #2863e926;
}
.staff .business-nav[data-layout-moving="true"] .sidebar-nav-highlight { opacity: 1; }
.staff .business-nav :is(.nav-item, .workbench-subnav-item) { position: relative; z-index: 1; }
.staff .shop-sidebar .business-nav .nav-item.active {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--film-button-text);
}
.staff .shop-sidebar .business-nav .nav-item.active svg { color: var(--film-button-text); }
.staff .business-nav .workbench-nav-group { gap: 0; }
.staff .workbench-nav-chevron {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-left: auto;
  color: inherit;
  pointer-events: none;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform var(--motion-panel) var(--motion-ease-move);
}
.staff .workbench-nav-group > .nav-item > .workbench-nav-chevron { color: inherit; }
.staff .workbench-nav-group[data-open="true"] .workbench-nav-chevron { transform: rotate(90deg); }
.staff [data-submenu-panel] {
  display: grid;
  grid-template-rows: 0fr;
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
  margin: 0 0 0 22px;
  padding: 0 0 0 9px;
  border-left: 1px solid transparent;
  opacity: 0;
  transition: grid-template-rows var(--motion-panel) var(--motion-ease-move),
    margin var(--motion-panel) var(--motion-ease-move), padding var(--motion-panel) var(--motion-ease-move),
    opacity var(--motion-panel) var(--motion-ease-move), border-color var(--motion-panel) var(--motion-ease-move);
}
.staff [data-submenu-panel] > :first-child { display: grid; min-height: 0; gap: 3px; overflow: hidden; }
.staff [data-submenu-item] { --submenu-index: 0; }
.staff [data-submenu-item]:nth-child(2) { --submenu-index: 1; }
.staff [data-submenu-item]:nth-child(3) { --submenu-index: 2; }
.staff [data-submenu-item]:nth-child(4) { --submenu-index: 3; }
.staff [data-submenu-item]:nth-child(n + 5) { --submenu-index: 3; }
.staff .order-source-subnav-item[data-submenu-index="1"] { --submenu-index: 1; }
.staff .order-source-subnav-item[data-submenu-index="2"] { --submenu-index: 2; }
.staff .order-source-subnav-item[data-submenu-index="3"] { --submenu-index: 3; }
.staff .order-source-subnav-item[data-submenu-index="4"] { --submenu-index: 3; }
.staff .order-source-subnav-item[data-submenu-index="5"] { --submenu-index: 3; }
@keyframes sidebar-submenu-item-enter {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
.staff [data-sidebar-submenu-group][data-opening="true"] [data-submenu-item] {
  animation: sidebar-submenu-item-enter var(--motion-panel) var(--motion-ease-move) both;
  animation-delay: calc(var(--submenu-index) * var(--motion-stagger));
}
.staff [data-sidebar-submenu-group][data-open="true"] [data-submenu-panel] {
  grid-template-rows: 1fr;
  pointer-events: auto;
  margin-top: 2px;
  margin-bottom: 5px;
  padding-top: 3px;
  padding-bottom: 3px;
  border-left-color: var(--film-border);
  opacity: 1;
}
.staff .workbench-subnav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent !important;
  color: var(--film-muted);
  font: inherit;
  font-size: 12px;
  text-align: left;
  opacity: 1;
  transform: translateX(0);
  transition: color var(--motion-feedback) var(--motion-ease-feedback);
  cursor: pointer;
}
.staff .business-nav :is(.nav-item, .workbench-subnav-item)[data-highlight-target="true"],
.staff .business-nav :is(.nav-item, .workbench-subnav-item)[data-highlight-settling="true"] { transition: none !important; }
.staff .workbench-subnav-item.active { color: var(--film-button-text) !important; font-weight: 700; }
.staff .workbench-subnav-item:hover { color: var(--film-button); }
.staff .business-nav .nav-item:hover:not(.active) { background: transparent !important; color: var(--film-button); }
.staff .business-nav .nav-item:hover:not(.active) svg { color: var(--film-button); }
.staff .business-nav .workbench-subnav-item:hover:not(.active) { background: transparent !important; }
.staff .business-nav[data-highlight-moving="true"] .sidebar-nav-highlight { opacity: 1; }
.staff .shop-sidebar .sidebar-highlight-label-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--film-button-text);
  white-space: nowrap;
  pointer-events: none;
}
.staff .sidebar-highlight-label-overlay > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.staff .sidebar-highlight-label-overlay svg { color: var(--film-button-text) !important; }
.staff .shop-sidebar .business-nav[data-highlight-moving="true"] [data-highlight-target="true"] .sidebar-highlight-label-overlay svg { color: var(--film-button-text) !important; }
.staff .shop-sidebar .business-nav[data-highlight-moving="true"] [data-highlight-target="true"] {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--film-button) !important;
  opacity: 1 !important;
}
.staff .shop-sidebar .business-nav[data-highlight-moving="true"] [data-highlight-target="true"] svg { color: var(--film-button) !important; }
.staff .workbench-subnav-item small {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 12px;
  background: var(--film-raised);
  color: var(--film-muted);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.staff .workbench-subnav-item.active small { background: #fff; color: var(--film-button); }

/* Sidebar collapse only: preserve the existing expanded navigation and workbench styles. */
.staff .side-brand-copy { flex: 1 1 auto; min-width: 0; }
.staff .sidebar-toggle { position: relative; display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: inherit; cursor: pointer; transition: background var(--motion-feedback) var(--motion-ease-feedback), transform var(--motion-exit) var(--motion-ease-feedback); }
@media (min-width: 651px) {
  .staff .layout:not(.sidebar-collapsed) .side-brand > .sidebar-toggle { top: -11px; }
}
.staff .sidebar-toggle:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.staff .sidebar-toggle:active { transform: scale(.96); }
.staff .sidebar-toggle svg { display: block; width: 18px; height: 18px; }
.staff .layout.sidebar-collapsed .shop-sidebar:not([data-sidebar-peeking="true"]) .sidebar-toggle { width: 40px; height: 40px; flex-basis: 40px; border: 0; border-radius: 10px; background: transparent; }
.staff .layout.sidebar-collapsed .shop-sidebar:not([data-sidebar-peeking="true"]) .sidebar-toggle:hover { background: var(--film-inset); }
.staff .sidebar-toggle::after { position: absolute; z-index: 30; top: 50%; left: calc(100% + 9px); width: max-content; max-width: 190px; padding: 8px 11px; border: 1px solid #ffffffa8; border-radius: 9px; background: rgb(255 255 255 / 78%); box-shadow: 0 8px 24px #1723311c; color: #263544; content: attr(data-tooltip); font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-4px, -50%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity var(--motion-feedback) var(--motion-ease-feedback), transform var(--motion-feedback) var(--motion-ease-move), visibility 0s linear var(--motion-feedback); }
.staff .sidebar-toggle:not([data-tooltip-blocked="true"]):hover::after,
.staff .sidebar-toggle:not([data-tooltip-blocked="true"]):focus-visible::after { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: 0s; }
.staff .sidebar-toggle::after { display: none !important; content: none !important; }
.staff .layout.sidebar-collapsed .shop-sidebar:not([data-sidebar-peeking="true"]) .business-nav .nav-item::after { position: absolute; z-index: 40; top: 50%; left: calc(100% + 9px); width: max-content; max-width: 220px; padding: 8px 11px; border: 1px solid #ffffffa8; border-radius: 9px; background: rgb(255 255 255 / 88%); box-shadow: 0 8px 24px #1723311c; color: #263544; content: attr(aria-label); font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-4px, -50%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity var(--motion-feedback) var(--motion-ease-feedback), transform var(--motion-feedback) var(--motion-ease-move), visibility 0s linear var(--motion-feedback); }
.staff .layout.sidebar-collapsed .shop-sidebar:not([data-sidebar-peeking="true"]) .business-nav .nav-item:hover::after,
.staff .layout.sidebar-collapsed .shop-sidebar:not([data-sidebar-peeking="true"]) .business-nav .nav-item:focus-visible::after { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: var(--motion-tooltip-delay), var(--motion-tooltip-delay), 0s; }
.staff .layout.sidebar-collapsed .shop-sidebar:not([data-sidebar-peeking="true"]) .business-nav .nav-item::after { display: none !important; content: none !important; }
.sidebar-nav-tooltip { position: fixed; z-index: 10000; width: max-content; max-width: 220px; padding: 8px 11px; border: 1px solid #ffffffa8; border-radius: 9px; background: rgb(255 255 255 / 88%); box-shadow: 0 8px 24px #1723311c; color: #263544; font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-4px, -50%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity var(--motion-feedback) var(--motion-ease-feedback), transform var(--motion-feedback) var(--motion-ease-move), visibility 0s linear var(--motion-feedback); }
.sidebar-nav-tooltip.is-visible { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: var(--motion-tooltip-delay), var(--motion-tooltip-delay), 0s; }
.sidebar-submenu-flyout { position: fixed; z-index: 10001; width: 224px; max-height: calc(100vh - 20px); overflow: visible; padding: 0 0 0 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(calc(-1 * var(--motion-distance-content))); transition: opacity var(--motion-panel) var(--motion-ease-move), transform var(--motion-panel) var(--motion-ease-move), visibility 0s linear var(--motion-panel); }
.sidebar-submenu-flyout[data-open="true"] { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
.sidebar-submenu-flyout.is-closing { visibility: visible; opacity: 0; pointer-events: none; transform: translateX(calc(-1 * var(--motion-distance-content))); transition-delay: 0s; }
.sidebar-submenu-flyout-surface { display: grid; max-height: calc(100vh - 20px); gap: 3px; overflow-y: auto; overscroll-behavior-y: contain; padding: 8px; border: 1px solid var(--film-border); border-radius: 12px; background: var(--film-surface); box-shadow: 0 12px 32px #17233122; }
.sidebar-submenu-flyout-heading { padding: 5px 9px 7px; color: var(--film-muted); font-size: 11px; font-weight: 750; }
.sidebar-flyout-item { display: flex; min-width: 0; min-height: 38px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--film-muted); font-size: 12px; text-align: left; cursor: pointer; transition: color var(--motion-feedback) var(--motion-ease-feedback), background var(--motion-feedback) var(--motion-ease-feedback); }
.sidebar-flyout-item:hover, .sidebar-flyout-item:focus-visible { background: var(--film-inset); color: var(--film-button); }
.sidebar-flyout-item.active { background: var(--film-accent-soft); color: var(--film-button); font-weight: 700; }
.sidebar-flyout-item small { display: grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; border-radius: 12px; background: var(--film-raised); color: var(--film-muted); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sidebar-flyout-item.active small { background: #fff; color: var(--film-button); }
.order-source-supplement-group { display: grid; min-width: 0; gap: 2px; }
.order-source-supplement-row { position: relative; display: grid; min-width: 0; }
.order-source-supplement-row > .order-source-subnav-item { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) 30px auto; }
.order-source-subnav-item:not(.order-source-nested-item) { display: grid; grid-template-columns: minmax(0, 1fr) 30px auto; }
.order-source-arrow-slot { display: grid; width: 30px; height: 18px; place-items: center; }
.order-source-supplement-chevron { display: block; width: 15px; height: 15px; transform-box: fill-box; transform-origin: center; transition: transform var(--motion-panel) var(--motion-ease-move); }
.order-source-supplement-group[data-open="true"] .order-source-supplement-chevron { transform: rotate(90deg); }
.order-source-supplement-toggle { position: absolute; z-index: 3; top: 0; right: 31px; display: grid; width: 30px; height: 100%; place-items: center; padding: 0; border: 0; border-radius: 7px; outline-offset: -3px; background: transparent; color: transparent; cursor: pointer; }
.order-source-supplement-toggle:hover { background: transparent; }
.order-source-supplement-toggle:focus-visible { outline: 2px solid var(--film-focus); background: transparent; }
.order-source-supplement-panel { display: grid; min-width: 0; grid-template-rows: 0fr; margin: 0; padding-left: 11px; overflow: hidden; border-left: 1px solid transparent; opacity: 0; transition: grid-template-rows var(--motion-panel) var(--motion-ease-move), margin var(--motion-panel) var(--motion-ease-move), border-color var(--motion-panel) var(--motion-ease-move), opacity var(--motion-panel) var(--motion-ease-move); }
.order-source-supplement-group[data-open="true"] .order-source-supplement-panel { grid-template-rows: 1fr; margin: 2px 0 4px; border-left-color: var(--film-border); opacity: 1; }
.order-source-supplement-inner { display: grid; min-height: 0; gap: 2px; overflow: hidden; }
.order-source-nested-item { min-height: 32px; padding-block: 6px; padding-inline: 9px; }
.order-source-subnav-item.ancestor-active { color: var(--film-button); font-weight: 650; }
.staff .sidebar-toggle:focus-visible, .staff .workbench-disclosure:focus-visible { outline: 2px solid var(--film-focus); outline-offset: 2px; }
.staff .layout { transition: grid-template-columns var(--motion-content) var(--motion-ease-move); }
.staff .shop-sidebar { width: 100%; min-width: 0; transition: width var(--motion-content) var(--motion-ease-move), min-width var(--motion-content) var(--motion-ease-move), padding var(--motion-content) var(--motion-ease-move); }
.staff .workbench-nav-group { position: relative; grid-template-columns: minmax(0, 1fr); }
.staff .workbench-nav-group > .nav-item { grid-column: 1; grid-row: 1; padding-right: 12px; }
.staff .workbench-disclosure { position: absolute; z-index: 2; top: 0; right: 4px; display: grid; width: 32px; height: 39px; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 7px; background: transparent; color: transparent; cursor: pointer; transition: opacity var(--motion-panel) var(--motion-ease-move), transform var(--motion-panel) var(--motion-ease-move), visibility 0s linear var(--motion-panel); }
.staff .workbench-disclosure:hover { background: transparent; }
.staff .workbench-disclosure:focus-visible { outline-color: var(--film-focus); }
.staff .workbench-nav-group .workbench-subnav { grid-column: 1 / -1; }
.staff .workbench-overview-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 18px 0; padding: 20px 22px; border: 1px solid var(--film-border); border-radius: 14px; background: var(--film-surface); }
.staff .workbench-overview-summary > div { display: grid; gap: 5px; color: var(--film-muted); font-size: 12px; }
.staff .workbench-overview-summary strong { color: var(--film-ink); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.staff .workbench-overview-summary strong small { margin-left: 5px; color: var(--film-muted); font-size: 12px; }
.staff .workbench-overview-summary p { max-width: 420px; margin: 0; color: var(--film-muted); font-size: 12px; line-height: 1.6; }
.staff .workbench-overview-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.staff .workbench-overview-card { display: grid; gap: 10px; min-height: 132px; padding: 16px; border: 1px solid var(--film-border); border-radius: 13px; background: var(--film-surface); color: var(--film-ink); text-align: left; cursor: pointer; transition: transform var(--motion-exit) var(--motion-ease-move), border-color var(--motion-feedback) var(--motion-ease-feedback), box-shadow var(--motion-exit) var(--motion-ease-feedback); }
.staff .workbench-overview-card:hover { transform: translateY(-2px); border-color: var(--film-accent); box-shadow: 0 8px 22px #12293a12; }
.staff .workbench-overview-card > span { color: var(--film-muted); font-size: 12px; font-weight: 650; }
.staff .workbench-overview-card > strong { font-size: 29px; line-height: 1; font-variant-numeric: tabular-nums; }
.staff .workbench-overview-card > strong small { margin-left: 5px; color: var(--film-muted); font-size: 12px; font-weight: 500; }
.staff .workbench-overview-card > small { align-self: end; color: var(--film-button); font-size: 11px; }
.staff .workbench-overview-shortcuts { margin-top: 14px; }
.staff .workbench-overview-shortcut { display: flex; width: 100%; min-height: 62px; align-items: center; justify-content: space-between; padding: 12px 15px; border: 1px solid var(--film-border); border-radius: 10px; background: var(--film-surface); color: var(--film-ink); text-align: left; cursor: pointer; }
.staff .workbench-overview-shortcut span { display: grid; gap: 4px; }
.staff .workbench-overview-shortcut small { color: var(--film-muted); font-size: 11px; }
.staff .workbench-overview-shortcut b { color: var(--film-button); }
.staff .workbench-overview-summary { display: grid; grid-template-columns: minmax(130px, .55fr) minmax(160px, .65fr) minmax(240px, 1.8fr); align-items: center; }
.staff .workbench-overview-todos { display: grid; gap: 8px; margin-top: 24px; }
.staff .workbench-overview-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.staff .workbench-overview-section-heading h2 { margin: 0; color: var(--film-ink); font-size: 17px; }
.staff .workbench-overview-section-heading p { margin: 5px 0 0; color: var(--film-muted); font-size: 12px; }
.staff .workbench-overview-section-heading > span { color: var(--film-muted); font-size: 12px; }
.staff .workbench-overview-task { display: flex; width: 100%; min-height: 62px; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 15px; border: 1px solid var(--film-border); border-radius: 10px; background: var(--film-surface); color: var(--film-ink); text-align: left; cursor: pointer; }
.staff .workbench-overview-task:hover { border-color: var(--film-accent); background: color-mix(in srgb, var(--film-surface) 94%, var(--film-accent)); }
.staff .workbench-overview-task > span { display: grid; min-width: 0; gap: 4px; }
.staff .workbench-overview-task strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.staff .workbench-overview-task small { overflow: hidden; color: var(--film-muted); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.staff .workbench-overview-task b { flex: 0 0 auto; color: var(--film-button); font-size: 11px; }
.staff .workbench-overview-empty { margin: 0; padding: 18px; border-radius: 10px; background: var(--film-surface); color: var(--film-muted); font-size: 13px; }
.staff :is(.workbench-overview-card, .workbench-overview-task):focus-visible { outline: 2px solid var(--film-focus); outline-offset: 3px; }
@media (max-width: 1100px) and (min-width: 651px) {
  .staff .workbench-overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .staff .workbench-overview-summary { grid-template-columns: minmax(120px, .7fr) minmax(150px, .8fr) minmax(180px, 1.5fr); }
}
@media (min-width: 651px) {
  .staff .layout.sidebar-collapsed { grid-template-columns: 80px minmax(0, 1fr) !important; }
  .staff .layout.sidebar-collapsed.sidebar-peeking { grid-template-columns: 220px minmax(0, 1fr) !important; }
  .staff .layout.sidebar-collapsed .shop-sidebar { position: sticky; top: 0; z-index: 20; width: 100%; min-width: 0; padding: 16px 8px 10px; overflow: visible; }
  .staff .layout.sidebar-collapsed .shop-sidebar[data-sidebar-peeking="true"] { width: 100%; min-width: 0; padding-inline: 11px; box-shadow: 12px 0 28px #10233a1a; }
.staff .layout.sidebar-collapsed .side-brand { display: flex; justify-content: center; align-items: center; gap: 0; margin: 0 0 10px; padding: 0 0 10px; }
.staff .layout.sidebar-collapsed .side-logo,
.staff .layout.sidebar-collapsed .side-brand-copy { display: none; }
.staff .layout.sidebar-collapsed .shop-sidebar[data-sidebar-peeking="true"] .side-brand { justify-content: flex-start; gap: 12px; margin: 0 9px 14px; padding: 2px 0 19px; }
.staff .layout.sidebar-collapsed .shop-sidebar[data-sidebar-peeking="true"] .side-logo { display: grid; }
.staff .layout.sidebar-collapsed .shop-sidebar[data-sidebar-peeking="true"] .side-brand-copy { display: block; }
  .staff .layout.sidebar-collapsed .business-nav { flex: 1 1 auto; min-height: 0; max-height: calc(100vh - 105px); overflow-y: auto; overscroll-behavior-y: contain; }
  .staff .layout.sidebar-collapsed .nav-item { position: relative; display: flex; width: 44px; min-width: 44px; max-width: 44px; height: 44px; min-height: 44px; justify-content: center; gap: 0; margin: 0 auto; padding: 0; border-radius: 50%; transition: width var(--motion-content) var(--motion-ease-move), height var(--motion-content) var(--motion-ease-feedback), background var(--motion-feedback) var(--motion-ease-feedback), border-radius var(--motion-content) var(--motion-ease-move); }
.staff .layout.sidebar-collapsed .nav-item > .nav-label { position: absolute; left: 40px; opacity: 0; visibility: hidden; white-space: nowrap; transform: translateX(-4px); transition: opacity var(--motion-panel) var(--motion-ease-feedback), transform var(--motion-panel) var(--motion-ease-move), visibility 0s linear var(--motion-panel); }
  .staff .layout.sidebar-collapsed .nav-item > .nav-count { display: none; }
  .staff .layout.sidebar-collapsed .shop-sidebar:not([data-sidebar-peeking="true"]) .sidebar-nav-highlight { border-radius: 50%; }
  .staff .layout.sidebar-collapsed .business-nav .nav-item.active { background: transparent !important; box-shadow: none !important; color: var(--film-button-text); }
  .staff .layout.sidebar-collapsed .business-nav .nav-item.active svg { color: var(--film-button-text); }
  .staff .layout.sidebar-collapsed .workbench-nav-group { grid-template-columns: minmax(0, 1fr); }
  .staff .layout.sidebar-collapsed .workbench-disclosure { visibility: hidden; opacity: 0; pointer-events: none; transform: translateX(-4px); }
  .staff .layout.sidebar-collapsed .workbench-nav-group > .nav-item > .workbench-nav-chevron { position: absolute; right: 4px; width: 15px; height: 15px; margin: 0; opacity: 0; visibility: hidden; transition: opacity var(--motion-panel) var(--motion-ease-feedback), transform var(--motion-panel) var(--motion-ease-move), visibility 0s linear var(--motion-panel); }
  .staff .layout.sidebar-collapsed .workbench-subnav { visibility: hidden; grid-template-rows: 0fr; margin: 0; padding-block: 0; border-color: transparent; opacity: 0; pointer-events: none; }
  .staff .layout.sidebar-collapsed .side-spacer,
  .staff .layout.sidebar-collapsed .side-environment,
  .staff .layout.sidebar-collapsed .side-tools { display: none; }
  .staff .layout.sidebar-collapsed .shop-sidebar[data-sidebar-peeking="true"] .business-nav { max-height: calc(100vh - 210px); overscroll-behavior-y: contain; }
  .staff .layout.sidebar-collapsed .shop-sidebar[data-sidebar-peeking="true"] .nav-item { width: 100%; min-width: 0; max-width: none; height: 39px; min-height: 39px; justify-content: flex-start; gap: 14px; margin: 0; padding: 9px 11px; border-radius: 8px; }
  .staff .layout.sidebar-collapsed .shop-sidebar[data-sidebar-peeking="true"] .nav-item > .nav-label { position: static; left: auto; opacity: 1; visibility: visible; transform: none; transition-delay: var(--motion-stagger); }
  .staff .layout.sidebar-collapsed .shop-sidebar[data-sidebar-peeking="true"] .nav-item > .nav-count { display: grid; }
  .staff .layout.sidebar-collapsed .shop-sidebar[data-sidebar-peeking="true"] .workbench-disclosure { visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition-delay: var(--motion-stagger), var(--motion-stagger), var(--motion-stagger); }
  .staff .layout.sidebar-collapsed .shop-sidebar[data-sidebar-peeking="true"] .workbench-nav-group > .nav-item > .workbench-nav-chevron { position: static; width: 15px; height: 15px; margin-left: auto; opacity: 1; visibility: visible; transition-delay: var(--motion-stagger), var(--motion-stagger), var(--motion-stagger); }
  .staff .layout.sidebar-collapsed .shop-sidebar[data-sidebar-peeking="true"] .workbench-nav-group[data-open="true"] .workbench-subnav { visibility: visible; grid-template-rows: 1fr; margin: 2px 0 5px 22px; padding: 3px 0 3px 9px; border-left-color: var(--film-border); opacity: 1; pointer-events: auto; }
}
@media (max-width: 650px) {
  .staff .workbench-nav-group { min-width: 0; }
  .staff .workbench-subnav { margin-left: 10px; padding-left: 6px; }
  .staff .workbench-subnav-item { min-height: 38px; padding-inline: 7px; }
  .management-shell .sidebar-nav-highlight { border-radius: 8px; }
  .staff .workbench-nav-group[data-open="true"] { grid-column: 1 / -1; width: 100%; }
  .staff .workbench-nav-group[data-open="true"] > .nav-item {
    min-height: 44px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    padding: 7px 10px 7px 10px;
    text-align: left;
  }
  .staff .workbench-nav-group[data-open="true"] .workbench-disclosure { top: 0; right: 4px; }
  .staff .workbench-nav-group[data-open="true"] .workbench-subnav { margin-left: 12px; padding-left: 8px; }
  .staff .workbench-nav-group[data-open="true"] .workbench-subnav-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .staff .workbench-nav-group[data-open="true"] .workbench-subnav-item { min-height: 44px; padding: 6px 7px; font-size: 12px; }
  .staff .workbench-subnav-item > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 650px) {
  .staff .sidebar-toggle { display: none; }
  .staff .workbench-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff .workbench-overview-card { min-height: 112px; }
  .staff .workbench-overview-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: flex-start; gap: 14px; padding: 16px; }
  .staff .workbench-overview-summary p { grid-column: 1 / -1; }
  .creation-review-customer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
  .creation-review-customer-grid .creation-review-address {grid-column:1/-1}
  .creation-review-context-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
  .creation-review-section {padding:8px 10px}
  .creation-review-order-lines .section-heading {align-items:center}
  .creation-review-roll-actions .button {min-width:56px;padding:6px 8px}
}
@media (prefers-reduced-motion: reduce) {
  .staff .sidebar-toggle, .staff .layout, .staff .shop-sidebar, .staff .side-brand,
  .staff .business-nav, .staff .business-nav .nav-item, .staff .business-nav [data-submenu-panel],
  .staff .layout.sidebar-collapsed .nav-item > .nav-label, .staff .sidebar-nav-highlight, .sidebar-submenu-flyout,
  .order-source-supplement-panel, .order-source-supplement-chevron { transition: none !important; }
}
.staff .orders-table th,
.staff .orders-table td:not(:last-child) { text-align: center; }
.staff .orders-table td:last-child { text-align: right; }
.staff .orders-table .order-row-open { text-align: center; }
.staff .wash-format-heading > *,
.staff .wash-format-row > * { text-align: center; }
.staff .wash-format-row .check-row { justify-content: center; }
.staff .wash-format-row .field input { text-align: center; }
.staff .order-table-row.is-previewed,
.staff .order-table-row.is-previewed:hover,
.staff .order-table-row.is-previewed:focus-within { background: transparent; }
@media (max-width: 650px) {
  .staff .order-table-row.is-previewed,
  .staff .order-table-row.is-previewed:hover,
  .staff .order-table-row.is-previewed:focus-within { background: var(--ops-surface); }
}
@keyframes order-preview-split-open {
  from { grid-template-columns: minmax(var(--order-preview-min-list), 1fr) 0px; gap: 0; }
  to { grid-template-columns: minmax(var(--order-preview-min-list), 1fr) var(--order-preview-width); gap: 14px; }
}
@keyframes order-preview-split-close {
  from { grid-template-columns: minmax(var(--order-preview-min-list), 1fr) var(--order-preview-width); gap: 14px; }
  to { grid-template-columns: minmax(var(--order-preview-min-list), 1fr) 0px; gap: 0; }
}
@keyframes order-preview-panel-enter { from { opacity: 0; transform: translateX(var(--motion-distance-content)); } to { opacity: 1; transform: translateX(0); } }
@keyframes order-preview-panel-exit { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(var(--motion-distance-content)); } }
.staff .orders-workspace.is-opening { animation: order-preview-split-open var(--motion-panel) var(--motion-ease-move) both; }
.staff .orders-workspace.is-closing { animation: order-preview-split-close var(--motion-panel) var(--motion-ease-move) both; }
.staff .orders-workspace.is-opening .order-preview-slot { animation: order-preview-panel-enter var(--motion-panel) var(--motion-ease-move) both; }
.staff .orders-workspace.is-closing .order-preview-slot { animation: order-preview-panel-exit var(--motion-panel) var(--motion-ease-move) both; }
@media (prefers-reduced-motion: reduce) {
  .staff .orders-workspace.is-opening, .staff .orders-workspace.is-closing,
  .staff .orders-workspace.is-opening .order-preview-slot, .staff .orders-workspace.is-closing .order-preview-slot { animation-duration: var(--motion-reduced) !important; }
}
.order-contact-modal .modal-close-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--film-inset);
  color: var(--film-muted);
  transition: background-color var(--motion-feedback) var(--motion-ease-feedback), color var(--motion-feedback) var(--motion-ease-feedback), transform var(--motion-feedback) var(--motion-ease-feedback);
}
.order-contact-modal .modal-close-button:hover { background: var(--film-accent-soft); color: var(--film-button); }
.order-contact-modal .modal-close-button:active { transform: scale(.94); }
.order-contact-modal .modal-close-button:focus-visible { outline: 2px solid var(--film-accent); outline-offset: 2px; }
.order-contact-modal .modal-close-button svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 650px) { .order-contact-modal .modal-close-button { width: 44px; height: 44px; min-height: 44px; } }
.order-contact-modal { display:flex; flex-direction:column; width:min(100%,640px); min-height:0; max-height:min(94dvh,820px); padding:0; overflow:hidden; }
.order-contact-modal [hidden] { display:none !important; }
.order-contact-modal-header { display:flex; flex:0 0 auto; align-items:flex-start; justify-content:space-between; gap:18px; padding:24px 26px 14px; }
.order-contact-modal-header h2 { margin:0; color:var(--film-ink); font-size:22px; }
.order-contact-modal-header .muted { margin:7px 0 0; line-height:1.5; }
.order-contact-modal-content { min-height:0; flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; padding:0 26px 12px; }
.order-contact-modal .order-info-edit-section { display:grid; gap:11px; padding:15px 0 17px; border-top:1px solid var(--film-border); }
.order-contact-modal .order-info-edit-section > h3 { margin:0; color:var(--film-ink); font-size:15px; }
.order-contact-modal .order-info-edit-section .stack { gap:12px; }
.order-contact-modal .order-intent-section-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; }
.order-contact-modal .order-info-current-intent { font-size:12px; }
.order-contact-modal .order-intent-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.order-contact-modal .order-intent-option { display:grid; align-content:center; align-items:center; justify-items:center; gap:6px; min-height:70px; padding:12px 14px; font-family:inherit; font-synthesis:none; letter-spacing:normal; text-align:center; }
.order-contact-modal .order-intent-option strong { color:inherit; font-family:inherit; font-size:14px; font-weight:600; letter-spacing:normal; line-height:1.35; text-align:center; }
.order-contact-modal .order-intent-option small { color:var(--film-muted); font-family:inherit; font-size:12px; font-weight:400; letter-spacing:normal; line-height:1.45; text-align:center; }
.order-contact-modal .order-intent-option[disabled] { cursor:not-allowed; opacity:.5; }
.order-contact-modal .order-intent-help { margin:0; font-size:11px; line-height:1.5; }
.order-contact-modal .order-intent-blocked-panel { padding:12px 14px; border:1px solid var(--film-border); border-radius:8px; background:var(--film-inset); }
.order-contact-modal .order-intent-blocked-panel p { margin:0; color:var(--film-muted); font-size:12px; line-height:1.55; }
.order-contact-modal .order-intent-mail-form { display:grid; gap:12px; padding:14px; border:1px solid var(--film-border); border-radius:8px; background:var(--film-inset); }
.order-contact-modal .order-intent-mail-disclosure { margin-top:11px; }
.order-contact-modal .order-intent-button-field { min-width:0; margin:0; padding:0; border:0; }
.order-contact-modal .order-intent-button-field legend { margin-bottom:7px; color:var(--film-ink); font-size:12px; font-weight:700; }
.order-contact-modal .order-intent-button-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); gap:8px; }
.order-contact-modal .order-intent-method-option,.order-contact-modal .order-intent-postage-option { display:grid; align-content:center; justify-items:start; gap:4px; min-height:58px; padding:9px 11px; text-align:left; }
.order-contact-modal .order-intent-method-option strong,.order-contact-modal .order-intent-postage-option strong { color:inherit; font-family:inherit; font-size:12px; font-weight:600; letter-spacing:normal; line-height:1.35; text-align:left; }
.order-contact-modal .order-intent-method-option small,.order-contact-modal .order-intent-postage-option small { color:var(--film-muted); font-family:inherit; font-size:11px; font-weight:400; letter-spacing:normal; line-height:1.4; text-align:left; }
.order-contact-modal .order-intent-postage-disclosure { margin-top:10px; }
.order-contact-modal-footer { display:flex; flex:0 0 auto; justify-content:flex-end; flex-wrap:wrap; gap:9px; padding:14px 26px 20px; border-top:1px solid var(--film-border); background:var(--film-surface); }
.order-contact-modal-footer .button { min-height:42px; }
.order-contact-modal .contact-history { margin-top:4px; padding:14px 0 4px; border-top:1px solid var(--film-border); }
.order-contact-modal .contact-history h3 { margin:0 0 8px; }
@media (max-width:650px) {
  .order-contact-modal { max-height:94dvh; }
  .order-contact-modal-header { padding:18px 17px 12px; }
  .order-contact-modal-content { padding-inline:17px; }
  .order-contact-modal-footer { padding:12px 17px max(16px,env(safe-area-inset-bottom)); }
  .order-contact-modal-footer .button { width:auto; padding-inline:9px; font-size:12px; }
}
.create-review-edit-modal { width: min(820px, 100%); max-height: min(90dvh, 820px); overflow-y: auto; overscroll-behavior: contain; background: var(--film-surface); color: var(--film-ink); }
.create-review-edit-modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.create-review-edit-modal-heading h2 { margin: 0; }
.create-review-edit-modal-content { min-width: 0; }
.create-review-edit-modal .creation-review-inline-form { min-width: 0; }
.create-roll-row.is-pending,.creation-review-roll.is-pending { opacity: 0; transform: none; }
.create-roll-row.is-entering,.creation-review-roll.is-entering { animation: create-roll-enter var(--motion-panel) var(--motion-ease-move) both, create-roll-highlight var(--motion-content) var(--motion-ease-feedback) both; }
.create-roll-row.is-highlighted,.creation-review-roll.is-highlighted { animation: create-roll-highlight var(--motion-content) var(--motion-ease-feedback) both; }
.create-roll-list-summary { display: flex; align-items: center; gap: 10px; }
.create-roll-list .section-heading small.is-updating,.creation-review-count.is-updating,.create-current-total strong.is-updating,.creation-review-total strong.is-updating { animation: create-roll-number-pop var(--motion-content) var(--motion-ease-feedback); }
@keyframes create-roll-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes create-roll-highlight { 0%,45% { background-color: var(--film-accent-soft,#eaf0ff); border-color: var(--film-accent,#2e68ee); } 100% { background-color: var(--film-surface,#fff); border-color: var(--film-border,#dce3ec); } }
@keyframes create-roll-number-pop { 0%,35% { color: var(--film-accent,#2e68ee); } 100% { color: inherit; } }
@media (prefers-reduced-motion: reduce) { .create-roll-row.is-pending,.creation-review-roll.is-pending { opacity: 1; transform: none; } .create-roll-row.is-entering,.creation-review-roll.is-entering,.create-roll-row.is-highlighted,.creation-review-roll.is-highlighted,.create-roll-list .section-heading small.is-updating,.creation-review-count.is-updating,.create-current-total strong.is-updating,.creation-review-total strong.is-updating { animation: none !important; } }

/* Order review: shared B layout with the existing A layout available in account settings. */
.creation-review-layout-stacked,.creation-review-layout-split { display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start; }
.creation-review-summary { min-width:0;padding:0;overflow:hidden; }
.creation-review-summary-heading { display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--ops-border); }
.creation-review-summary-heading h3 { margin:0;color:var(--ops-ink);font-size:17px;line-height:1.35; }
.creation-review-summary-heading small { color:var(--ops-muted);font-size:12px; }
.creation-review-summary-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); }
.creation-review-summary-grid>.notice { grid-column:1/-1;margin:10px 12px 0; }
.creation-review-summary-grid>.creation-review-section { min-width:0;padding:12px 16px;border:0;border-radius:0;background:transparent; }
.creation-review-summary-grid>.creation-review-section+ .creation-review-section { border-left:1px solid var(--ops-border); }
.creation-review-summary-grid>.creation-review-section .section-heading { display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 9px; }
.creation-review-summary-grid>.creation-review-section .section-heading h3 { margin:0;font-size:14px;line-height:1.35; }
.creation-review-summary-grid>.creation-review-section .section-heading .button { margin-left:auto;flex:0 0 auto; }
.creation-review-summary-grid .creation-review-customer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.creation-review-summary-grid .creation-review-customer-grid .creation-review-address { grid-column:1/-1; }
.creation-review-summary-grid .creation-review-context-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.creation-review-customer-editor>[data-motion-disclosure-content] { min-width:0;padding:12px 0 4px; }
.creation-review-customer-editor .creation-review-inline-form { min-width:0; }
.creation-review-order-editor { min-width:0; }
.creation-review-order-editor>[data-motion-disclosure-content] { min-width:0;padding:12px 0 4px; }
.creation-review-order-editor .creation-review-inline-form { min-width:0; }
.creation-review-service-groups { display:grid;gap:9px; }
.creation-review-service-group { min-width:0;overflow:hidden;border:1px solid var(--ops-border);border-radius:9px;background:var(--ops-surface); }
.creation-review-service-group[open] { border-color:color-mix(in srgb,var(--film-button) 28%,var(--ops-border)); }
.creation-review-service-heading { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 22px;cursor:pointer;list-style:none; }
.creation-review-service-heading::-webkit-details-marker { display:none; }
.creation-review-service-heading::marker { content:""; }
.creation-review-service-heading:hover { background:var(--ops-bg); }
.creation-review-service-heading-main { display:grid;gap:4px;min-width:0; }
.creation-review-service-heading-main>strong { color:var(--ops-ink);font-size:14px;line-height:1.4;overflow-wrap:anywhere; }
.creation-review-service-heading-main>small { color:var(--ops-muted);font-size:12px;line-height:1.45;overflow-wrap:anywhere; }
.creation-review-service-heading-side { display:grid;grid-template-columns:auto 12px;align-items:center;column-gap:8px;min-width:112px;text-align:right; }
.creation-review-service-heading-side>strong { color:var(--ops-ink);font-size:13px;white-space:nowrap; }
.creation-review-service-heading-side>small { grid-column:1;color:var(--ops-muted);font-size:11px;white-space:nowrap; }
.creation-review-service-chevron { grid-column:2;grid-row:1/3;width:7px;height:7px;border-right:1.6px solid var(--ops-muted);border-bottom:1.6px solid var(--ops-muted);transform:rotate(45deg) translateY(-2px);transition:transform var(--motion-panel) var(--motion-ease-move); }
.creation-review-service-group[open]>.creation-review-service-heading .creation-review-service-chevron { transform:rotate(225deg) translate(-1px,-1px); }
.creation-review-service-rolls { display:grid;gap:0;padding:0 10px 10px; }
.creation-review-service-rolls>.creation-review-roll { border-top:1px solid var(--ops-border);border-radius:0;background:transparent; }
.creation-review-order-lines { min-width:0;padding:0;border:0;border-radius:0;background:transparent; }
.creation-review-order-lines>.section-heading { display:flex;align-items:center;gap:10px; }
.creation-review-order-lines>.section-heading { margin:0 0 10px!important; }
.creation-review-order-lines>.section-heading h3 { margin:0 auto 0 0; }
.creation-review-order-lines>.section-heading>.creation-review-count { flex:0 0 auto; }
.create-review-layout-setting { display:flex;justify-content:space-between;gap:12px; }
.create-review-layout-options { display:inline-flex;gap:3px;padding:2px;border:1px solid var(--ops-border);border-radius:7px;background:var(--ops-bg); }
.create-review-layout-options button { min-width:27px;padding:3px 6px;border:0;border-radius:5px;background:transparent;color:var(--ops-muted);font:inherit;font-size:10px;font-weight:700;white-space:nowrap;cursor:pointer; }
.create-review-layout-options button[aria-pressed="true"] { background:var(--film-button);color:var(--film-button-text,#fff); }
.create-review-layout-options button:focus-visible { outline:2px solid var(--film-focus);outline-offset:1px; }
.receipt-review-layout-setting .create-review-layout-options > .button { min-height: 30px; border: 0; background: transparent; color: var(--film-muted); box-shadow: none; }
.receipt-review-layout-setting .create-review-layout-options > .button[aria-pressed="true"] { background: var(--film-button); color: var(--film-button-text); }
@media(min-width:1100px) {
  .creation-review-layout-split { grid-template-columns:minmax(290px,.88fr) minmax(0,1.72fr); }
  .creation-review-layout-split>.creation-review-summary { grid-column:1;grid-row:1/3; }
  .creation-review-layout-split>.creation-review-order-lines { grid-column:2;grid-row:1; }
  .creation-review-layout-split>.creation-review-total { grid-column:2;grid-row:2; }
  .creation-review-layout-split .creation-review-summary-grid { grid-template-columns:minmax(0,1fr); }
  .creation-review-layout-split .creation-review-summary-grid>.creation-review-section+.creation-review-section { border-top:1px solid var(--ops-border);border-left:0; }
}
@media(max-width:760px) {
  .creation-review-summary-grid { grid-template-columns:minmax(0,1fr); }
  .creation-review-summary-grid>.creation-review-section+.creation-review-section { border-top:1px solid var(--ops-border);border-left:0; }
  .creation-review-summary-heading { align-items:flex-start;flex-direction:column;gap:3px; }
  .creation-review-service-heading { grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 18px; }
  .creation-review-service-heading-side { min-width:88px; }
  .creation-review-service-rolls { padding:0 6px 6px; }
}
@media(prefers-reduced-motion:reduce) { .creation-review-service-chevron { transition:none; } }
.exception-queue-item{display:grid;grid-template-columns:minmax(140px,.8fr) minmax(220px,1.4fr) auto;align-items:center;gap:16px;padding:16px 0;border-top:1px solid var(--film-border,#dce3ec)}.exception-queue-order,.exception-queue-roll{display:grid;gap:5px;min-width:0}.exception-queue-order strong,.exception-queue-roll strong{overflow-wrap:anywhere}.exception-queue-order small,.exception-queue-roll small{color:var(--film-muted,#6b7b8e);font-size:12px;overflow-wrap:anywhere}.exception-queue-roll small:first-of-type{color:var(--film-warning,#8a4b25)}.exception-queue-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.exception-queue-actions .actions{margin:0}@media(max-width:700px){.exception-queue-item{grid-template-columns:minmax(0,1fr);gap:10px}.exception-queue-actions{justify-content:flex-start}}

/* Service catalogue: visible choices, price cards and independent availability switches. */
.catalog-service-workspace {
  --catalog-positive: var(--theme-success-text, #247448);
  --catalog-positive-bg: var(--theme-success-bg, #e5f5eb);
  --catalog-negative: var(--theme-danger-text, #b43d37);
  --catalog-negative-bg: var(--theme-danger-bg, #fbecea);
}
.catalog-category-buttons { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 20px; }
.catalog-category-buttons .service-category-card { display:flex; align-items:center; min-height:42px; padding:10px 16px; gap:10px; border-radius:8px; }
.catalog-category-buttons .service-category-card strong { font-size:13px; }
.catalog-category-buttons .service-category-card small { display:none; }
.catalog-directory-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.catalog-directory-card { min-width:0; display:grid; align-content:start; border:1px solid var(--ops-border); border-radius:12px; background:var(--ops-surface); overflow:hidden; }
.catalog-directory-status { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 18px 0; }
.catalog-availability { display:inline-flex; align-items:center; gap:6px; padding:6px 9px; border-radius:6px; font-size:11px; font-weight:650; line-height:1.3; }
.catalog-availability i { width:6px; height:6px; border-radius:50%; background:currentColor; }
.catalog-availability.is-active { color:var(--catalog-positive); background:var(--catalog-positive-bg); }
.catalog-availability.is-stopped { color:var(--catalog-negative); background:var(--catalog-negative-bg); }
.catalog-availability.is-draft { color:var(--ops-muted); background:var(--ops-bg); }
.catalog-availability-switch { position:relative; display:flex; align-items:center; width:48px; min-width:48px; height:44px; padding:0 4px; border:0; border-radius:8px; background:transparent; }
.catalog-availability-switch::before { content:""; display:block; width:40px; height:24px; border-radius:12px; background:var(--ops-border); }
.catalog-availability-switch>span { position:absolute; left:7px; width:18px; height:18px; border-radius:50%; background:var(--ops-surface); box-shadow:0 1px 3px #0002; }
.catalog-availability-switch[aria-checked="true"]::before { background:var(--catalog-positive); }
.catalog-availability-switch[aria-checked="true"]>span { left:23px; }
.catalog-availability-switch:disabled { cursor:not-allowed; opacity:.5; }
.catalog-directory-detail { display:grid; gap:8px; width:100%; padding:12px 18px 18px; border:0; border-radius:0; background:transparent; color:var(--ops-ink); text-align:left; }
.catalog-directory-detail>strong { font-size:18px; font-weight:700; line-height:1.4; overflow-wrap:anywhere; }
.catalog-directory-detail>small,.catalog-directory-meta small { color:var(--ops-muted); font-size:11px; line-height:1.5; }
.catalog-directory-card:hover,.catalog-directory-card:focus-within { background:var(--ops-accent-soft); border-color:var(--ops-accent); }
.catalog-directory-card:focus-within { outline:2px solid var(--ops-accent); outline-offset:2px; }
.catalog-directory-card .catalog-directory-detail:hover,.catalog-directory-card .catalog-directory-detail:focus-visible { background:transparent; }
.catalog-directory-card .catalog-directory-detail:focus-visible { outline:none; }
.catalog-directory-card .catalog-directory-status { background:transparent; }
.catalog-directory-meta { display:flex; align-items:start; flex-wrap:wrap; gap:20px; margin-top:8px; }
.catalog-directory-meta>span { display:grid; gap:6px; }
.catalog-directory-meta b { font-size:16px; font-weight:650; font-variant-numeric:tabular-nums; }
.catalog-format-tags { display:flex; flex-wrap:wrap; gap:5px; }
.catalog-format-tags em { display:inline-block; padding:3px 7px; border:1px solid var(--ops-border); border-radius:5px; background:var(--ops-bg); color:var(--ops-muted); font-size:11px; font-weight:600; font-style:normal; }
.catalog-detail-link { margin-top:8px; color:var(--ops-accent); font-size:12px; font-weight:650; }
.catalog-directory-card.is-stopped .catalog-directory-detail>strong { color:var(--ops-muted); }
.catalog-basic-fields,.catalog-device-field { display:grid; gap:16px; }
.catalog-button-field { min-width:0; padding:0; margin:0; border:0; }
.catalog-button-field legend { padding:0; margin-bottom:8px; color:var(--ops-muted); font-size:11px; font-weight:650; }
.catalog-choice-buttons { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.catalog-choice { position:relative; display:inline-flex; min-width:0; cursor:pointer; }
.catalog-choice input,.catalog-status-control input,.catalog-service-workspace .check-row input { position:absolute; width:1px; height:1px; opacity:0; margin:0; }
.catalog-choice>span { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:10px 14px; border:1px solid var(--ops-border); border-radius:7px; background:var(--ops-surface); color:var(--ops-ink); font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.catalog-choice:hover>span,.catalog-service-workspace .check-row:hover { border-color:var(--ops-accent); }
.catalog-choice input:checked+span,.catalog-service-workspace .check-row:has(input:checked) { border-color:var(--ops-accent); background:var(--ops-accent-soft); color:var(--ops-accent); box-shadow:inset 0 0 0 1px var(--ops-accent); }
.catalog-choice input:disabled+span,.catalog-service-workspace .check-row:has(input:disabled) { opacity:.5; cursor:not-allowed; }
.catalog-choice input:focus-visible+span,.catalog-status-control input:focus-visible+.catalog-switch-track,.catalog-service-workspace .check-row:has(input:focus-visible),.catalog-directory-detail:focus-visible,.catalog-availability-switch:focus-visible { outline:2px solid var(--ops-accent); outline-offset:3px; }
.catalog-service-workspace .format-checks { display:flex; flex-wrap:wrap; gap:8px; }
.catalog-service-workspace .check-row { position:relative; display:inline-flex; justify-content:center; min-height:42px; padding:9px 12px; margin:0; border:1px solid var(--ops-border); border-radius:7px; background:var(--ops-surface); color:var(--ops-muted); font-size:12px; font-weight:600; cursor:pointer; }
.catalog-status-control { position:relative; display:inline-flex; align-items:center; flex-wrap:wrap; gap:9px; min-height:44px; color:var(--catalog-negative); font-size:12px; font-weight:650; cursor:pointer; }
.catalog-switch-track { position:relative; display:inline-block; width:40px; height:24px; flex:0 0 40px; border-radius:12px; background:var(--ops-border); }
.catalog-switch-track::after { content:""; position:absolute; left:3px; top:3px; width:18px; height:18px; border-radius:50%; background:var(--ops-surface); box-shadow:0 1px 3px #0002; }
.catalog-status-control input:checked+.catalog-switch-track { background:var(--catalog-positive); }
.catalog-status-control input:checked+.catalog-switch-track::after { left:19px; }
.catalog-status-on { display:none; color:var(--catalog-positive); padding:6px 9px; border-radius:6px; background:var(--catalog-positive-bg); }
.catalog-status-control input:checked~.catalog-status-on { display:inline; }
.catalog-status-control input:checked~.catalog-status-off { display:none; }
.catalog-status-control input:disabled~span { opacity:.5; }
.catalog-service-workspace .scan-price-group>h4 { margin:0; padding:12px 14px; border-bottom:1px solid var(--ops-border); background:var(--ops-bg); color:var(--ops-ink); }
.catalog-service-workspace .wash-addon-config>h3 { margin:0 0 12px; }
.catalog-service-workspace .wash-addon-list { display:grid; gap:12px; }
.catalog-service-workspace .form-grid.three:has(.catalog-button-field) { grid-template-columns:minmax(180px,1fr) minmax(200px,2fr); }
.service-unavailable:disabled,.create-scanner-option.service-unavailable:disabled { background:var(--ops-bg); border-color:var(--ops-border); color:var(--ops-muted); box-shadow:none; opacity:1!important; cursor:not-allowed; }
.service-unavailable:disabled .square-title { color:var(--ops-muted); }
.service-unavailable .service-unavailable-label { display:block; color:var(--theme-danger-text,#b43d37); font-size:11px; font-weight:650; line-height:1.35; }
.service-unavailable .service-unavailable-label i { background:currentColor; }
@media(max-width:900px) { .catalog-directory-grid { grid-template-columns:1fr; } }
@media(max-width:760px) { .catalog-category-buttons .service-category-card { flex:1 1 auto; justify-content:center; padding:10px 12px; } .catalog-service-workspace .form-grid.three:has(.catalog-button-field) { grid-template-columns:1fr; } .catalog-directory-meta { gap:14px; } }
.catalog-service-workspace .wash-format-heading,.catalog-service-workspace .wash-format-row { grid-template-columns:minmax(50px,.5fr) minmax(100px,1fr) minmax(90px,.9fr) minmax(110px,1.1fr) minmax(110px,1.1fr) minmax(110px,1fr); min-width:680px; gap:8px; }
.catalog-service-workspace .wash-format-row .check-row { font-size:11px; padding:9px 8px; }
.scanner-compatibility.service-unavailable-label { display:inline-flex; }

/* Approved catalogue composition: horizontal directory cards and separate full-width editing. */
.catalog-directory-view .title-row { align-items:center; margin-bottom:20px; }
.catalog-directory-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.catalog-directory-toolbar>button[data-act="management-add-service"] { margin-left:auto; align-self:center; flex:0 0 auto; }
.catalog-filter-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.catalog-filter-button { min-height:42px; padding:10px 18px; border:1px solid var(--ops-border); border-radius:7px; background:var(--ops-surface); color:var(--ops-muted); font-size:13px; font-weight:650; }
.catalog-filter-button:hover { border-color:var(--ops-accent); color:var(--ops-accent); }
.catalog-filter-button.active { color:var(--film-button-text,#fff); border-color:var(--film-button); background:var(--film-button); }
.catalog-directory-view .catalog-directory-grid { grid-template-columns:minmax(0,1fr); gap:14px; }
.catalog-directory-view .catalog-directory-card { grid-template-columns:minmax(0,1fr) auto; align-items:start; min-height:150px; border-radius:10px; }
.catalog-directory-view .catalog-directory-detail { display:flex; align-items:center; min-height:150px; padding:20px; gap:20px; }
.catalog-business-icon { display:grid; place-items:center; width:76px; height:100px; flex:0 0 76px; border:1px solid var(--ops-border); border-radius:9px; background:var(--ops-bg); color:var(--ops-muted); }
.catalog-business-icon svg { width:40px; height:46px; }
.catalog-directory-copy { display:grid; gap:7px; min-width:0; text-align:left; }
.catalog-directory-copy>strong { color:var(--ops-ink); font-size:18px; font-weight:700; line-height:1.4; overflow-wrap:anywhere; }
.catalog-directory-copy>small { color:var(--ops-muted); font-size:12px; line-height:1.5; }
.catalog-directory-copy .catalog-directory-meta { margin-top:8px; gap:28px; }
.catalog-directory-view .catalog-directory-status { align-items:flex-end; flex-direction:column; gap:10px; padding:20px 20px 0 0; min-width:116px; }
.catalog-directory-card.is-stopped .catalog-directory-copy>strong { color:var(--ops-muted); }
.catalog-directory-footnote { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:16px; }
.catalog-directory-footnote .button { font-size:11px; padding:7px 10px; }
.catalog-detail-header { display:grid; gap:16px; padding:0 0 8px; }
.catalog-detail-title { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.catalog-detail-title h1 { margin:0 0 6px; font-size:26px; line-height:1.3; }
.catalog-detail-title p { margin:0; }
.catalog-detail-view .catalog-service-card { padding:22px; gap:22px; border-radius:10px; }
.catalog-detail-view .catalog-basic-fields,.catalog-detail-view .catalog-device-field { gap:12px; }
.catalog-detail-view h3 { margin:0; font-size:16px; }
.catalog-detail-view .catalog-size-section { background:transparent; padding:0; border:0; }
.catalog-detail-view .catalog-size-section>div.section-heading { margin:0 0 4px; }
.catalog-detail-view .wash-format-heading { background:var(--ops-bg); border-radius:6px 6px 0 0; }
.catalog-detail-view .wash-format-row { padding:10px 8px; }
.catalog-fixed-type { display:grid; gap:8px; }
.catalog-fixed-type>small { color:var(--ops-muted); font-size:11px; font-weight:650; }
.catalog-fixed-type>span { justify-self:start; display:inline-flex; align-items:center; min-height:42px; padding:10px 18px; border:1px solid var(--ops-accent); border-radius:7px; background:var(--ops-accent-soft); color:var(--ops-accent); box-shadow:inset 0 0 0 1px var(--ops-accent); font-size:12px; font-weight:650; }
.catalog-detail-footer { display:grid; gap:12px; padding:18px 0 0; }
.catalog-save-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.catalog-save-actions>.button[type="submit"] { margin-left:auto; min-width:112px; }
.catalog-save-actions:has(.catalog-package-total) { justify-content:flex-end; }
.catalog-package-total { display:flex; align-items:baseline; gap:12px; margin-left:auto; min-width:0; }
.catalog-package-total>span { color:var(--ops-muted); font-size:13px; }
.catalog-package-total>strong { color:var(--ops-ink); font-size:22px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.catalog-save-actions:has(.catalog-package-total)>.button[type="submit"] { margin-left:0; }
.catalog-filter-button:focus-visible,.catalog-kind-tile:focus-visible,.catalog-modal-close:focus-visible { outline:2px solid var(--ops-accent); outline-offset:3px; }
.catalog-modal-backdrop { z-index:40; padding:24px; }
.catalog-service-modal { width:min(100%,620px); max-height:calc(100dvh - 48px); overflow-y:auto; padding:26px; border:1px solid var(--ops-border); border-radius:12px; background:var(--ops-surface); color:var(--ops-ink); }
.catalog-modal-header { display:flex; align-items:start; justify-content:space-between; gap:16px; margin-bottom:22px; }
.catalog-modal-header h2 { margin:0 0 7px; font-size:23px; }
.catalog-modal-header p { margin:0; font-size:12px; line-height:1.6; }
.catalog-modal-close { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; margin:-4px -6px 0 0; border:0; border-radius:6px; background:transparent; color:var(--ops-muted); font-size:27px; }
.catalog-modal-close:hover { background:var(--ops-bg); }
.catalog-modal-form { display:grid; gap:24px; }
.catalog-modal-form section { display:grid; gap:12px; min-width:0; }
.catalog-modal-form h3 { margin:0; font-size:15px; line-height:1.4; }
.catalog-kind-tiles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.catalog-kind-tile { display:grid; justify-items:center; align-content:center; gap:7px; min-width:0; min-height:124px; padding:14px 8px; border:1px solid var(--ops-border); border-radius:8px; background:var(--ops-bg); color:var(--ops-muted); }
.catalog-kind-tile svg { width:32px; height:36px; }
.catalog-kind-tile strong { font-size:13px; }
.catalog-kind-tile small { font-size:10px; line-height:1.35; }
.catalog-kind-tile.active { border-color:var(--ops-accent); background:var(--ops-accent-soft); color:var(--ops-accent); box-shadow:inset 0 0 0 1px var(--ops-accent); }
.catalog-kind-tile:disabled { cursor:not-allowed; opacity:.55; }
.catalog-modal-logistics-label { justify-self:start; padding:6px 10px; border-radius:5px; background:var(--ops-accent-soft); color:var(--ops-accent); font-size:12px; font-weight:600; }
.catalog-modal-price-table { border:1px solid var(--ops-border); border-radius:7px; overflow-x:auto; }
.catalog-modal-price-heading,.catalog-modal-price-row { display:grid; grid-template-columns:62px minmax(90px,1fr) minmax(100px,1fr) minmax(100px,1fr); align-items:center; gap:8px; min-width:405px; padding:10px; }
.catalog-modal-price-heading { background:var(--ops-bg); color:var(--ops-muted); font-size:10px; font-weight:650; text-align:center; }
.catalog-modal-price-row { border-top:1px solid var(--ops-border); }
.catalog-modal-price-row>.field { margin:0; }
.catalog-modal-price-row>.field { font-size:0; }
.catalog-modal-price-row input:not([type="checkbox"]) { font-size:12px; text-align:center; min-height:36px; padding:7px; }
.catalog-modal-price-row .catalog-choice>span { min-width:52px; min-height:36px; padding:7px; }
.catalog-modal-price-table.is-scan .catalog-modal-price-heading,.catalog-modal-price-table.is-scan .catalog-modal-price-row { grid-template-columns:62px minmax(90px,1fr) minmax(100px,1fr); min-width:300px; }
.catalog-modal-prices>.button { justify-self:start; padding:8px 12px; }
.catalog-modal-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; }
@media(max-width:680px) {
  .catalog-directory-view .catalog-directory-card { grid-template-columns:minmax(0,1fr); }
  .catalog-directory-view .catalog-directory-detail { min-height:130px; padding:16px; gap:14px; }
  .catalog-business-icon { width:54px; height:78px; flex-basis:54px; }
  .catalog-business-icon svg { width:32px; height:38px; }
  .catalog-directory-view .catalog-directory-status { flex-direction:row; align-items:center; justify-content:space-between; padding:0 16px 12px; }
  .catalog-directory-copy>strong { font-size:16px; }
  .catalog-directory-copy .catalog-directory-meta { gap:16px; }
  .catalog-detail-title { flex-wrap:wrap; gap:8px; }
  .catalog-detail-view .catalog-service-card { padding:16px; }
  .catalog-modal-backdrop { padding:12px; }
  .catalog-service-modal { padding:20px; max-height:calc(100dvh - 24px); }
  .catalog-kind-tiles { gap:7px; }
  .catalog-kind-tile { min-height:112px; padding:12px 4px; }
}
.staff .choice-button.service-unavailable:not(.creation-source-card):not(.creation-choice-card):disabled { background:var(--ops-bg); border-color:var(--ops-border); color:var(--ops-muted); box-shadow:none; opacity:1; transform:none!important; }
.catalog-fixed-type-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.catalog-type-button { min-width:108px; min-height:40px; padding:9px 16px; border:1px solid var(--ops-border); border-radius:7px; background:var(--ops-bg); color:var(--ops-muted); font-size:12px; font-weight:600; }
.catalog-type-button[aria-pressed="true"] { border-color:var(--ops-accent); background:var(--ops-accent-soft); color:var(--ops-accent); box-shadow:inset 0 0 0 1px var(--ops-accent); }
.catalog-type-button:disabled { cursor:not-allowed; opacity:.55; }
.catalog-type-button:focus-visible { outline:2px solid var(--ops-accent); outline-offset:3px; }

/* Service detail: one editable size name and aligned five-column price rows. */
.catalog-detail-view .wash-format-heading,.catalog-detail-view .wash-format-row {
  grid-template-columns:minmax(125px,1.05fr) minmax(112px,.95fr) minmax(112px,1fr) minmax(118px,1fr) minmax(130px,1.05fr);
  min-width:650px;
  gap:8px;
  align-items:center;
}
.catalog-detail-view .wash-format-table { overflow-x:auto; }
.catalog-detail-view .wash-format-row>.field { margin:0; gap:0; font-size:0; line-height:0; }
.catalog-detail-view .wash-format-row>.field input {
  width:100%; min-height:42px; height:42px; padding:9px 10px; font-size:12px; line-height:1.4; text-align:center;
}
.catalog-detail-view .wash-format-row>.check-row {
  width:100%; min-height:42px; height:42px; margin:0; padding:9px 8px; display:flex; align-items:center; justify-content:center; font-size:11px; line-height:1.4; white-space:nowrap;
}
.catalog-detail-view input[type="number"] { appearance:textfield; -moz-appearance:textfield; }
.catalog-detail-view input[type="number"]::-webkit-inner-spin-button,
.catalog-detail-view input[type="number"]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }

/* Service-card sorting: independent handle and same-category drop positions. */
.catalog-directory-view .catalog-directory-card { grid-template-columns:40px minmax(0,1fr) auto; position:relative; }
.catalog-sort-handle { display:grid; place-items:center; align-self:stretch; width:40px; min-height:44px; padding:0; border:0; border-right:1px solid transparent; border-radius:0; background:transparent; color:var(--ops-muted); cursor:grab; touch-action:none; user-select:none; }
.catalog-sort-handle:hover { color:var(--ops-accent); background:var(--ops-bg); }
.catalog-sort-handle:active { cursor:grabbing; }
.catalog-sort-handle:disabled { cursor:not-allowed; opacity:.35; }
.catalog-sort-handle:focus-visible { outline:2px solid var(--ops-accent); outline-offset:-3px; }
.catalog-directory-grid.is-sorting,.catalog-directory-grid.is-sorting .catalog-sort-handle { cursor:grabbing; }
.catalog-directory-grid.is-sorting .catalog-directory-card.is-sorting { opacity:.55; border-style:dashed; }
.catalog-directory-card.is-drop-before::before,.catalog-directory-card.is-drop-after::after { content:""; position:absolute; left:0; right:0; height:4px; background:var(--ops-accent); pointer-events:none; z-index:1; }
.catalog-directory-card.is-drop-before::before { top:0; }
.catalog-directory-card.is-drop-after::after { bottom:0; }
.catalog-sort-announcement { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:680px) {
  .catalog-directory-view .catalog-directory-card { grid-template-columns:36px minmax(0,1fr); }
  .catalog-sort-handle { grid-column:1; grid-row:1/3; width:36px; }
  .catalog-directory-view .catalog-directory-detail { grid-column:2; }
  .catalog-directory-view .catalog-directory-status { grid-column:2; }
}

/* Shared film sizes: reorder the detail draft, then publish with Save changes. */
.catalog-detail-view .wash-format-heading,.catalog-detail-view .wash-format-row {
  grid-template-columns:32px minmax(125px,1.05fr) minmax(112px,.95fr) minmax(112px,1fr) minmax(118px,1fr) minmax(130px,1.05fr);
  min-width:690px;
}
.catalog-format-sort-handle { display:grid; place-items:center; align-self:center; width:32px; min-height:42px; height:42px; padding:0; border:0; border-radius:5px; background:transparent; color:var(--ops-muted); cursor:grab; touch-action:none; user-select:none; }
.catalog-format-sort-handle:hover { color:var(--ops-accent); background:var(--ops-accent-soft); }
.catalog-format-sort-handle:active { cursor:grabbing; }
.catalog-format-sort-handle:disabled { opacity:.35; cursor:not-allowed; }
.catalog-format-sort-handle:focus-visible { outline:2px solid var(--ops-accent); outline-offset:-2px; }
.catalog-format-handle-heading { color:var(--ops-muted); }
.catalog-format-sort-status { color:var(--ops-muted); font-size:11px; line-height:1.5; }
.catalog-detail-view .wash-format-row { position:relative; }
.catalog-detail-view .wash-format-row.is-format-sorting { opacity:.55; background:var(--ops-accent-soft); }
.wash-format-row.is-format-drop-before::before,.wash-format-row.is-format-drop-after::after { content:""; position:absolute; left:0; right:0; height:3px; background:var(--ops-accent); pointer-events:none; z-index:1; }
.wash-format-row.is-format-drop-before::before { top:0; }
.wash-format-row.is-format-drop-after::after { bottom:0; }

/* Scanner-specific size additions remain a detail draft until saved. */
.catalog-scanner-formats>.section-heading { align-items:center; margin:0; }
.catalog-scan-size-adder { display:grid; gap:10px; padding:12px; border:1px solid var(--ops-border); border-radius:7px; background:var(--ops-bg); }
.catalog-scan-size-names { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; }
.catalog-scan-size-names>.muted { grid-column:1/-1; }

/* Wash add-ons: fixed prices and explicit per-size exposure levels. */
.wash-addon-fixed-size { display:grid; gap:8px; }
.wash-format-level-controls { display:flex; align-items:center; justify-content:center; gap:6px; }
.catalog-detail-view .wash-format-level-controls .check-row { min-height:42px; height:42px; margin:0; padding:8px; white-space:nowrap; }
.wash-format-level-controls .button { min-height:42px; padding:8px; font-size:11px; white-space:nowrap; }
.catalog-detail-view .wash-format-heading,.catalog-detail-view .wash-format-row { grid-template-columns:32px minmax(125px,1.05fr) minmax(112px,.95fr) minmax(112px,1fr) minmax(118px,1fr) minmax(190px,1.3fr); min-width:750px; }
.wash-addon-level-editor { display:grid; gap:12px; padding:16px; border:1px solid var(--ops-border); border-radius:8px; background:var(--ops-bg); }
.wash-addon-level-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; }
.wash-addon-level-row { display:grid; grid-template-columns:minmax(75px,.8fr) minmax(100px,1fr); align-items:end; gap:8px; }
.create-wash-addon-level-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:340px; overflow-y:auto; padding:3px; }
.create-wash-addon-level-options .choice-button { display:grid!important; gap:5px; min-height:56px!important; text-align:center!important; justify-content:center!important; }
.create-wash-addon-level-options .choice-button small { font-size:11px; color:var(--ops-muted); }
.create-wash-addon-level-options .choice-button:disabled,.create-wash-addon-trigger:disabled { cursor:not-allowed; opacity:.5; }

.wash-addon-level-row .wash-addon-range-warning { display:block; font-size:10px; line-height:1.3; }
.wash-addon-level-row .catalog-choice:not(:has(input:checked)) .wash-addon-range-warning { display:none; }

.staff .order-progress-summary { display:grid; grid-template-columns:minmax(210px,1.25fr) minmax(0,2fr); align-items:center; gap:16px 24px; margin:14px 0 20px; padding:16px 20px; border:1px solid var(--ops-border); border-left:3px solid var(--ops-accent); border-radius:9px; background:var(--ops-surface); }
.staff .order-progress-heading { display:grid; gap:6px; min-width:0; }
.staff .order-progress-heading > div { display:grid; gap:4px; }
.staff .order-progress-heading .eyebrow { color:var(--ops-muted); font-size:10px; font-weight:700; letter-spacing:.08em; }
.staff .order-progress-heading > div > strong { color:var(--ops-ink); font-size:16px; line-height:1.35; }
.staff .order-progress-heading p { margin:0; color:var(--ops-muted); font-size:11px; line-height:1.5; }
.staff .order-progress-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.staff .order-progress-metrics > div { display:grid; gap:3px; min-width:0; padding-left:12px; border-left:1px solid var(--ops-border); }
.staff .order-progress-metrics span { color:var(--ops-muted); font-size:10px; line-height:1.35; }
.staff .order-progress-metrics strong { color:var(--ops-ink); font-size:19px; font-variant-numeric:tabular-nums; line-height:1.1; }
@media(max-width:800px) { .staff .order-progress-summary { grid-template-columns:minmax(0,1fr); gap:13px; padding:14px; } }
@media(max-width:450px) { .staff .order-progress-summary { margin:11px 0 15px; } .staff .order-progress-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 4px; } .staff .order-progress-metrics > div { padding-left:8px; } }

/* Wash size removal selection uses the existing handle column. */
.wash-format-remove-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.wash-format-remove-select { display:grid; place-items:center; width:32px; min-height:42px; cursor:pointer; }
.wash-format-remove-select input { width:16px; height:16px; margin:0; accent-color:var(--ops-accent); }
.catalog-detail-view .wash-format-row.is-remove-selected { background:var(--ops-accent-soft); }

/* Service detail information stays compact; editing opens within its own section. */
.catalog-detail-view .catalog-detail-section { display:grid; gap:16px; min-width:0; }
.catalog-detail-view .catalog-detail-section + .catalog-detail-section,
.catalog-detail-view .catalog-size-section,
.catalog-detail-view .catalog-scanner-formats,
.catalog-detail-view .wash-addon-config { border-top:1px solid var(--ops-border); padding-top:24px; margin-top:0; }
.catalog-basic-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; align-items:start; }
.catalog-info-field { display:grid; gap:12px; min-width:0; }
.catalog-info-field .section-heading { margin:0; min-height:32px; gap:12px; }
.catalog-info-field h4 { margin:0; font-size:12px; color:var(--ops-muted); font-weight:600; }
.catalog-info-field>.field { margin:0; font-size:0; }
.catalog-info-field [data-catalog-name] { min-height:42px; font-size:16px; font-weight:650; }
.catalog-info-field [data-catalog-name][readonly] { border-color:transparent; background:transparent; box-shadow:none; padding-left:0; color:var(--ops-ink); cursor:text; }
.catalog-linked-devices { display:flex; flex-wrap:wrap; gap:8px; min-height:42px; align-items:center; }
.catalog-linked-devices>span:not(.muted) { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid var(--ops-border); border-radius:7px; background:var(--ops-bg); font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.catalog-linked-devices small { font-size:10px; font-weight:500; color:var(--ops-muted); }
.catalog-detail-view .catalog-addon-card { display:block; padding:0; border:1px solid var(--ops-border); border-radius:9px; background:var(--ops-surface); }
.catalog-addon-card>summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px; cursor:pointer; list-style:none; }
.catalog-addon-card>summary::-webkit-details-marker { display:none; }
.catalog-addon-card>summary>span:first-child { display:grid; gap:6px; min-width:0; }
.catalog-addon-card>summary strong { font-size:15px; font-weight:650; overflow-wrap:anywhere; }
.catalog-addon-card>summary small { color:var(--ops-muted); font-size:12px; line-height:1.5; }
.catalog-addon-edit-label { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:600; color:var(--ops-accent); }
.catalog-addon-edit-label::after { content:'⌄'; font-size:16px; }
.catalog-addon-card[open] .catalog-addon-edit-label::after { transform:rotate(180deg); }
.catalog-addon-card[open]>summary { background:var(--ops-bg); border-radius:9px 9px 0 0; }
.catalog-addon-card>summary:focus-visible { outline:2px solid var(--ops-accent); outline-offset:3px; border-radius:9px; }
.catalog-addon-body { display:grid; gap:16px; padding:20px; border-top:1px solid var(--ops-border); }
.catalog-service-modal form[data-form="catalog-level-modal"] { display:grid; gap:20px; }
.catalog-service-modal .wash-addon-level-grid { max-height:52dvh; overflow-y:auto; padding:4px; }
.catalog-service-modal input[type="number"] { appearance:textfield; -moz-appearance:textfield; }
.catalog-service-modal input[type="number"]::-webkit-inner-spin-button,
.catalog-service-modal input[type="number"]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
@media(max-width:760px) {
  .catalog-basic-row { grid-template-columns:minmax(0,1fr); gap:24px; }
  .catalog-detail-view .catalog-service-card { padding:16px; }
  .catalog-addon-card>summary,.catalog-addon-body { padding:16px; }
  .catalog-info-field [data-catalog-name] { font-size:15px; }
}
.catalog-addon-summary-facts { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.catalog-addon-summary-facts>.badge { flex:0 0 auto; font-size:11px; }
.catalog-addon-summary-facts>small { font-variant-numeric:tabular-nums; }


/* One visual treatment for in-app return and previous-step actions. */
.button.app-back-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:8px 14px; font-size:13px; font-weight:600; line-height:20px; text-decoration:none; justify-self:start; }
.app-back-button-icon { flex:0 0 16px; width:16px; height:16px; }
.app-back-button>span { min-width:0; }
.button.app-back-button:focus-visible { outline:2px solid var(--film-focus); outline-offset:2px; }
@media(max-width:760px) { .button.app-back-button { min-height:44px; padding:10px 14px; } }

.catalog-equipment-modal form { display:grid; gap:20px; }
.catalog-equipment-modal-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-height:48dvh; overflow-y:auto; padding:4px; }
.catalog-equipment-modal-options .catalog-choice>span { display:grid; justify-items:start; align-content:center; gap:6px; width:100%; min-height:64px; text-align:left; }
.catalog-equipment-modal-options .catalog-choice strong { font-size:13px; }
.catalog-equipment-modal-options .catalog-choice small { color:var(--ops-muted); font-size:11px; font-weight:400; }
@media(max-width:600px) { .catalog-equipment-modal-options { grid-template-columns:minmax(0,1fr); } }

/* Compact basic information only; later detail sections keep their spacing. */
.catalog-detail-view .catalog-service-card:has(> .catalog-basic-fields.catalog-detail-section:first-child) { padding-top:12px; }
.catalog-detail-view .catalog-basic-fields.catalog-detail-section { gap:8px; }
.catalog-detail-view .catalog-basic-fields.catalog-detail-section>h3 { font-size:15px; line-height:20px; }
.catalog-detail-view .catalog-basic-fields.catalog-detail-section .catalog-basic-row { gap:0; align-items:stretch; }
.catalog-detail-view .catalog-basic-fields.catalog-detail-section .catalog-info-field { gap:6px; align-content:start; }
.catalog-detail-view .catalog-basic-fields.catalog-detail-section .catalog-basic-row>.catalog-info-field:first-child { padding-right:16px; }
.catalog-detail-view .catalog-basic-fields.catalog-detail-section .catalog-basic-row>.catalog-info-field+.catalog-info-field { padding-left:16px; border-left:1px solid var(--ops-border); }
.catalog-detail-view .catalog-basic-fields.catalog-detail-section .section-heading { min-height:36px; gap:8px; }
.catalog-detail-view .catalog-basic-fields.catalog-detail-section .section-heading>.button { min-height:36px; padding:8px 10px; font-size:12px; line-height:18px; }
.catalog-detail-view .catalog-basic-fields.catalog-detail-section [data-catalog-name] { min-height:40px; padding:9px 10px; font-size:14px; line-height:20px; }
.catalog-detail-view .catalog-basic-fields.catalog-detail-section [data-catalog-name][readonly] { border:1px solid var(--ops-border); background:var(--ops-bg); border-radius:7px; box-shadow:none; }
.catalog-detail-view .catalog-basic-fields.catalog-detail-section .catalog-linked-devices { min-height:40px; gap:6px; align-content:start; }
.catalog-detail-view .catalog-basic-fields.catalog-detail-section .catalog-linked-devices>span:not(.muted) { min-height:40px; padding:8px 10px; gap:6px; line-height:20px; }
@media(max-width:760px) {
  .catalog-detail-view .catalog-service-card:has(> .catalog-basic-fields.catalog-detail-section:first-child) { padding-top:12px; }
  .catalog-detail-view .catalog-basic-fields.catalog-detail-section .catalog-basic-row { grid-template-columns:minmax(0,1fr); gap:16px; }
  .catalog-detail-view .catalog-basic-fields.catalog-detail-section .catalog-basic-row>.catalog-info-field:first-child { padding-right:0; }
  .catalog-detail-view .catalog-basic-fields.catalog-detail-section .catalog-basic-row>.catalog-info-field+.catalog-info-field { padding-left:0; border-left:0; }
}

/* Desktop destructive actions: neutral surface, red trash icon, pale-red pressed state. */
@media (min-width: 651px) {
  :is(button.remove-action, button[data-removal-action="true"], button[data-act^="remove-"], button[data-act^="delete-"], button[data-act^="revoke-"], button[data-act^="discard-"], button[data-act^="clear-"], button[data-act^="withdraw-"], button[data-act*="-remove-"]:not([data-act*="cancel"]), button[data-equipment-remove], form[data-form="remove-equipment"] button[type="submit"], .confirm-dialog [data-confirm-action][data-removal-action="true"]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #d5deea !important;
    background: #fff !important;
    color: #26364a !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  :is(button.remove-action, button[data-removal-action="true"], button[data-act^="remove-"], button[data-act^="delete-"], button[data-act^="revoke-"], button[data-act^="discard-"], button[data-act^="clear-"], button[data-act^="withdraw-"], button[data-act*="-remove-"]:not([data-act*="cancel"]), button[data-equipment-remove], form[data-form="remove-equipment"] button[type="submit"], .confirm-dialog [data-confirm-action][data-removal-action="true"])::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background: #b83d47;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6m4-6v6M5 7l1 14h12l1-14M9 7V4h6v3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6m4-6v6M5 7l1 14h12l1-14M9 7V4h6v3'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  :is(button.remove-action, button[data-removal-action="true"], button[data-act^="remove-"], button[data-act^="delete-"], button[data-act^="revoke-"], button[data-act^="discard-"], button[data-act^="clear-"], button[data-act^="withdraw-"], button[data-act*="-remove-"]:not([data-act*="cancel"]), button[data-equipment-remove], form[data-form="remove-equipment"] button[type="submit"], .confirm-dialog [data-confirm-action][data-removal-action="true"]):hover:not(:disabled) {
    border-color: #e5b9be !important;
    background: #fff7f7 !important;
  }
  :is(button.remove-action, button[data-removal-action="true"], button[data-act^="remove-"], button[data-act^="delete-"], button[data-act^="revoke-"], button[data-act^="discard-"], button[data-act^="clear-"], button[data-act^="withdraw-"], button[data-act*="-remove-"]:not([data-act*="cancel"]), button[data-equipment-remove], form[data-form="remove-equipment"] button[type="submit"], .confirm-dialog [data-confirm-action][data-removal-action="true"]):is(:active, [aria-pressed="true"], [data-selected="true"], .is-selected):not(:disabled) {
    border-color: #d16a73 !important;
    background: #fff0f1 !important;
    color: #a6333e !important;
  }
  :is(button.remove-action, button[data-removal-action="true"], button[data-act^="remove-"], button[data-act^="delete-"], button[data-act^="revoke-"], button[data-act^="discard-"], button[data-act^="clear-"], button[data-act^="withdraw-"], button[data-act*="-remove-"]:not([data-act*="cancel"]), button[data-equipment-remove], form[data-form="remove-equipment"] button[type="submit"], .confirm-dialog [data-confirm-action][data-removal-action="true"]):disabled {
    border-color: #e0e5eb !important;
    background: #f2f4f7 !important;
    color: #8390a0 !important;
    cursor: not-allowed;
  }
  :is(button.remove-action, button[data-removal-action="true"], button[data-act^="remove-"], button[data-act^="delete-"], button[data-act^="revoke-"], button[data-act^="discard-"], button[data-act^="clear-"], button[data-act^="withdraw-"], button[data-act*="-remove-"]:not([data-act*="cancel"]), button[data-equipment-remove], form[data-form="remove-equipment"] button[type="submit"], .confirm-dialog [data-confirm-action][data-removal-action="true"]):disabled::before { background: #8390a0; }
}
@media (min-width: 651px) {
  button.side-tool-danger[data-act="clear-test-orders"] {
    display: flex;
    width: 100%;
    justify-content: flex-start;
  }
}


/* Wash and scan add-ons share a compact overview grid. Expanded editing keeps its full width. */
.catalog-detail-view .catalog-addon-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:12px; }
.catalog-addon-card-grid>.catalog-addon-card { min-width:0; }
.catalog-addon-card-grid>.catalog-addon-card[open],.catalog-addon-card-grid>.muted { grid-column:1/-1; }
.catalog-addon-card-grid .catalog-addon-card>summary { align-items:flex-start; }
.catalog-addon-card-grid .catalog-addon-card>summary>span:first-child { flex:1; gap:12px; }
.catalog-addon-card-grid .catalog-addon-summary-name { display:grid; gap:4px; }
.catalog-addon-card-grid .catalog-addon-summary-facts { display:grid; gap:12px; }
.catalog-addon-card-grid .catalog-addon-summary-state { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.catalog-addon-card-grid .catalog-addon-summary-content { display:grid; gap:4px; }
.catalog-addon-card-grid .catalog-addon-summary-content>span { display:grid; gap:4px; }
.catalog-addon-card-grid .catalog-addon-content-line { overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.catalog-addon-card-grid .catalog-addon-card .catalog-addon-fact-label { font-size:11px; color:var(--ops-muted); font-weight:500; }
.catalog-addon-card-grid .catalog-addon-summary-state .badge { font-size:11px; }
.catalog-addon-card-grid .catalog-addon-edit-label { flex:0 0 auto; }
@media(max-width:760px) { .catalog-detail-view .catalog-addon-card-grid { grid-template-columns:minmax(0,1fr); } }


/* Add-on cards open their existing fields in a modal; their switch is independent. */
.catalog-detail-view .catalog-addon-button-card { display:grid; grid-template-columns:minmax(0,1fr) 60px; align-items:start; overflow:hidden; }
.catalog-addon-card-main { display:grid; gap:14px; min-height:112px; width:100%; padding:20px; border:0; background:transparent; color:var(--ops-ink); text-align:left; }
.catalog-addon-card-main>[data-catalog-addon-name] { font-size:15px; font-weight:650; overflow-wrap:anywhere; }
.catalog-addon-card-grid .catalog-addon-button-card .catalog-addon-summary-facts { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.catalog-addon-card-price { font-size:14px; font-variant-numeric:tabular-nums; }
.catalog-addon-switch { justify-content:center; align-self:start; margin:12px 8px 0 0; min-width:44px; min-height:44px; }
.catalog-addon-button-card:has(.catalog-addon-card-main:hover),.catalog-addon-button-card:has(.catalog-addon-card-main:focus-visible) { background:var(--ops-bg); border-color:var(--ops-accent); }
.catalog-addon-card-main:hover { background:transparent; }
.catalog-addon-card-main:focus-visible { outline:0; }
.catalog-addon-button-card:has(.catalog-addon-card-main:focus-visible) { outline:2px solid var(--ops-accent); outline-offset:2px; }
.catalog-addon-button-card>[data-catalog-addon-fields][hidden] { display:none; }
.catalog-addon-modal .catalog-addon-body { border:0; padding:0; }
.catalog-addon-modal .catalog-modal-actions { margin-top:20px; }
@media(max-width:760px) { .catalog-addon-card-main { padding:16px; } }

/* Service sizes and prices reflow instead of using horizontally scrolling tables. */
.catalog-detail-view .catalog-category-form,.catalog-detail-view .catalog-service-grid,.catalog-detail-view .catalog-service-card,.catalog-detail-view .catalog-service-card>* { min-width:0; }
.catalog-detail-view .wash-format-table { overflow-x:visible; min-width:0; }
.catalog-detail-view .wash-format-heading,.catalog-detail-view .wash-format-row { min-width:0; grid-template-columns:28px minmax(0,.8fr) minmax(0,.7fr) minmax(0,.75fr) minmax(0,.75fr) minmax(200px,1.6fr); }
.catalog-detail-view .wash-format-row>* { min-width:0; }
.catalog-detail-view .wash-format-row .check-row { white-space:normal; }
.catalog-scan-format-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.catalog-scan-format-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; align-items:center; min-width:0; }
.catalog-scan-format-row .catalog-choice>span { width:100%; min-width:0; }
.catalog-detail-view .scan-price-format { display:grid; grid-template-columns:minmax(0,.4fr) minmax(0,1.6fr); align-items:center; min-width:0; }
.catalog-detail-view .scan-price-format .form-grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); min-width:0; }
.catalog-detail-view .scan-price-format .field,.catalog-detail-view .scan-price-format input { min-width:0; width:100%; }
.catalog-detail-title h1 { overflow-wrap:anywhere; }
.catalog-service-modal .wash-addon-level-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); }
.catalog-service-modal .wash-addon-level-row { grid-template-columns:minmax(0,.8fr) minmax(0,1fr); }
@media(max-width:1100px) {
  .catalog-detail-view .wash-format-heading { display:none; }
  .catalog-detail-view .wash-format-row { grid-template-columns:28px repeat(2,minmax(0,1fr)); gap:12px; padding:14px; margin-top:12px; border:1px solid var(--ops-border); border-radius:8px; background:var(--ops-surface); align-items:end; }
  .catalog-detail-view .wash-format-row>:first-child { grid-column:1; grid-row:1/4; align-self:start; }
  .catalog-detail-view .wash-format-row>:nth-child(2) { grid-column:2/4; grid-row:1; }
  .catalog-detail-view .wash-format-row>:nth-child(3) { grid-column:2; grid-row:2; }
  .catalog-detail-view .wash-format-row>:nth-child(4) { grid-column:3; grid-row:2; }
  .catalog-detail-view .wash-format-row>:nth-child(5) { grid-column:2; grid-row:3; }
  .catalog-detail-view .wash-format-row>:nth-child(6) { grid-column:3; grid-row:3; }
  .catalog-detail-view .wash-format-row>.field { font-size:12px; line-height:1.4; gap:6px; text-align:left; }
  .catalog-detail-view .wash-format-row>.field input { text-align:left; }
  .catalog-detail-view .wash-format-row>.check-row { align-self:end; }
  .catalog-detail-view .scan-price-format { grid-template-columns:minmax(0,1fr); }
  .catalog-detail-view .scan-price-format .form-grid.three { grid-template-columns:minmax(0,1fr); }
  .catalog-detail-view .catalog-size-section>.section-heading { flex-wrap:wrap; gap:12px; }
}
@media(max-width:760px) {
  .catalog-scan-format-list { grid-template-columns:minmax(0,1fr); }
}


/* Scheme C: parallel compact cards show the add-on name and this size's price. */
.catalog-format-addon-pills { display:flex; flex-wrap:wrap; align-items:stretch; gap:6px; min-width:0; max-width:100%; }
.catalog-format-addon-pill { display:grid; grid-template-columns:16px minmax(0,1fr); align-items:start; gap:6px; flex:1 1 calc(50% - 6px); min-width:min(100%,112px); max-width:100%; min-height:54px; padding:8px 10px; border:1px solid var(--ops-border); border-radius:7px; background:var(--ops-surface); color:var(--ops-ink); text-align:left; }
.catalog-format-addon-pill[aria-pressed="true"] { border-color:var(--ops-accent); background:var(--ops-accent-soft); color:var(--ops-accent); box-shadow:inset 0 0 0 1px var(--ops-accent); }
.catalog-format-addon-pill:hover:not(:disabled) { border-color:var(--ops-accent); }
.catalog-format-addon-pill:focus-visible { outline:2px solid var(--ops-accent); outline-offset:2px; }
.catalog-format-addon-pill:disabled { cursor:not-allowed; opacity:.5; }
.catalog-format-addon-tick { width:16px; height:16px; line-height:16px; font-weight:700; text-align:center; }
.catalog-format-addon-copy { display:grid; gap:4px; min-width:0; }
.catalog-format-addon-copy strong { overflow-wrap:anywhere; font-size:12px; line-height:1.3; }
.catalog-format-addon-copy small { color:var(--ops-muted); overflow-wrap:anywhere; font-size:11px; line-height:1.3; font-variant-numeric:tabular-nums; }
.catalog-format-addon-pill[aria-pressed="true"] .catalog-format-addon-copy small { color:var(--ops-accent); }
.catalog-format-addon-copy strong { font-size:11px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; white-space:normal; }
.catalog-format-addon-copy small { font-size:11px; line-height:1.4; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; white-space:normal; }
.catalog-scan-format-row { grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); align-items:start; }
@media(max-width:760px) { .catalog-scan-format-row { grid-template-columns:minmax(0,1fr); } }
.incoming-waybill-field { min-width: 0; }
.receiving-waybill-match { margin-bottom: 16px; }
.receiving-waybill-match h2 { margin-bottom: 4px; }
.receiving-waybill-match .incoming-waybill-field { max-width: 720px; }
.receiving-page-heading { align-items:center; }
.receiving-page-heading > .button { min-height:48px; padding:12px 20px; font-size:15px; font-weight:700; }
.receiving-summary .receiving-metric { border:1px solid var(--film-border); text-align:left; cursor:pointer; }
.receiving-summary .receiving-metric:hover,.receiving-summary .receiving-metric[aria-pressed="true"] { border-color:var(--film-accent); }
.receiving-queue { margin-top:20px; }
.receiving-waybill-declared { display:block; max-width:100%; overflow-wrap:anywhere; color:var(--film-muted); font-size:13px; }
.receiving-unlinked-list { overflow:hidden; border:1px solid var(--film-border); border-radius:12px; background:var(--film-surface); }
.receiving-unlinked-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(130px,auto) auto; align-items:center; gap:18px; width:100%; padding:16px 18px; border:0; border-bottom:1px solid var(--film-border); background:transparent; color:var(--film-ink); text-align:left; cursor:pointer; }
.receiving-unlinked-row:last-child { border-bottom:0; }
.receiving-unlinked-row:hover { background:var(--film-inset); }
.receiving-unlinked-row strong { overflow-wrap:anywhere; font-size:15px; }
.receiving-unlinked-row span { color:var(--film-muted); font-size:13px; }
.receiving-unlinked-row b { color:var(--film-button); text-align:right; }
.receiving-modal-backdrop { z-index:1200; }
.receiving-exception-backdrop { z-index:1210; }
.receiving-modal { width:min(640px,calc(100vw - 32px)); max-height:min(86vh,820px); overflow:auto; }
.receiving-modal > header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.receiving-modal > header h2 { margin:0 0 5px; }
.receiving-modal > header p { margin:0; }
.receiving-modal .modal-close { width:34px; height:34px; border:0; border-radius:7px; background:var(--film-inset); color:var(--film-ink); font-size:22px; cursor:pointer; }
.receiving-match-card { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.receiving-match-card > div { display:grid; gap:4px; padding:11px 12px; border:1px solid var(--film-border); border-radius:8px; min-width:0; }
.receiving-match-card > div:last-child { grid-column:1/-1; }
.receiving-match-card small,.receiving-link-candidates small { color:var(--film-muted); font-size:12px; }
.receiving-match-card strong { overflow-wrap:anywhere; }
.receiving-unmatched { display:grid; gap:10px; padding:18px; border:1px solid var(--film-border); border-radius:9px; }
.receiving-unmatched strong { font-size:18px; }
.receiving-unmatched small { color:var(--film-muted); }
.receiving-candidates,.receiving-link-candidates { display:grid; gap:8px; margin:0; padding:0; border:0; }
.receiving-candidates legend { margin-bottom:8px; font-weight:700; }
.receiving-candidates label,.receiving-link-candidates label { display:flex; align-items:flex-start; gap:10px; padding:12px; border:1px solid var(--film-border); border-radius:8px; cursor:pointer; }
.receiving-candidates label:has(input:checked),.receiving-link-candidates label:has(input:checked) { border-color:var(--film-accent); background:var(--film-accent-soft); }
.receiving-candidates label > span,.receiving-link-candidates label > span { display:grid; gap:4px; min-width:0; }
.receiving-modal-actions { display:flex; justify-content:flex-end; align-items:center; gap:8px; flex-wrap:wrap; margin-top:20px; }
.receiving-modal .field-error { margin:12px 0 0; }
.receiving-exception-modal textarea { min-height:120px; resize:vertical; }
.receiving-photo-tools { display:flex; align-items:center; gap:8px; margin-top:12px; }
.receiving-photo-tools [data-photo-options-panel] { display:flex; gap:7px; }
.receiving-photo-tools [data-photo-options-panel][hidden] { display:none; }
.receiving-photo-grid { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.receiving-photo-preview,.receiving-photo-grid a { display:grid; gap:5px; width:112px; margin:0; color:var(--film-muted); font-size:11px; text-decoration:none; }
.receiving-photo-preview img,.receiving-photo-grid img { width:112px; height:88px; object-fit:cover; border:1px solid var(--film-border); border-radius:7px; background:var(--film-inset); }
.receiving-photo-preview figcaption { display:flex; align-items:center; justify-content:space-between; gap:5px; overflow-wrap:anywhere; }
.receiving-photo-preview figcaption button { border:0; padding:2px 4px; background:none; color:var(--film-danger,#b84343); cursor:pointer; }
.receiving-waybill-warning { margin-top:12px; }
.receiving-waybill-warning .check-row { margin-top:10px; }
.incoming-parcel-reports { margin-top:14px; }
.incoming-parcel-reports article { padding:12px 0; border-top:1px solid var(--film-border); }
.incoming-parcel-reports article > div:first-child { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.incoming-parcel-reports article > div:first-child small { color:var(--film-muted); }
.incoming-parcel-reports p { margin:8px 0; }
@media (max-width: 680px) {
  .receiving-waybill-match > .button { width: 100%; }
  .receiving-page-heading { align-items:flex-start; }
  .receiving-unlinked-row { grid-template-columns:minmax(0,1fr) auto; gap:6px 12px; padding:12px; }
  .receiving-unlinked-row span { grid-column:1; }
  .receiving-unlinked-row b { grid-column:2; grid-row:1/3; }
  .receiving-match-card { grid-template-columns:minmax(0,1fr); }
  .receiving-match-card > div:last-child { grid-column:auto; }
  .receiving-modal-actions > button { flex:1; }
}

.create-order-platform-field { position: relative; z-index: 1; min-width: 0; }
.create-order-platform-dropdown { position: relative; width: 100%; }
.create-order-platform-trigger { box-sizing: border-box; display: flex; width: 100%; min-height: 48px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--film-control-border); border-radius: 9px; background: var(--film-surface); color: var(--film-ink); cursor: pointer; list-style: none; text-align: left; }
.create-order-platform-trigger::-webkit-details-marker { display: none; }
.create-order-platform-trigger > span { min-width: 0; flex: 1; }
.create-order-platform-trigger:hover,
.create-order-platform-dropdown[open] > .create-order-platform-trigger { border-color: var(--film-focus); background: var(--film-accent-soft); color: var(--film-button); }
.create-order-platform-trigger:focus-visible { outline: 2px solid var(--film-focus); outline-offset: 2px; }
:is(.staff, .modal-backdrop) .create-order-platform-field .create-order-platform-trigger:focus-visible { border-color: var(--film-focus); outline: none; box-shadow: none; }
.create-order-platform-chevron { width: 15px; height: 15px; flex: 0 0 auto; color: var(--film-muted); transition: transform var(--motion-panel) var(--motion-ease-move); }
.create-order-platform-dropdown[open] .create-order-platform-chevron { transform: rotate(180deg); }
.order-detail-action-options,
.create-order-platform-options { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; display: grid; gap: 4px; max-height: min(280px, 52vh); overflow: auto; padding: 6px; border: 1px solid var(--film-border); border-radius: 10px; background: var(--film-surface); box-shadow: 0 12px 28px #182a3c26; }
.create-order-platform-option,
:is(.staff, .customer) .order-detail-action-menu .order-detail-action-options > .button:not(.remove-action) { display: flex; width: 100%; min-height: 42px; align-items: center; padding: 9px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--film-ink); text-align: left; }
:is(.staff, .customer) .order-detail-action-options > .button { justify-content: flex-start; font-size: 12px; line-height: normal; white-space: normal; overflow-wrap: anywhere; }
.create-order-platform-option:hover,
.create-order-platform-option[aria-pressed="true"],
:is(.staff, .customer) .order-detail-action-menu .order-detail-action-options > .button:not(.remove-action):hover { background: var(--film-accent-soft); color: var(--film-button); }
.create-order-platform-option:focus-visible,
:is(.staff, .customer) .order-detail-action-menu .order-detail-action-options > .button:focus-visible { outline: 2px solid var(--film-focus); outline-offset: -2px; }
.staff .roll-card-actions-menu .order-detail-action-options > .button[data-act="exception"]:not(.remove-action) { color: var(--theme-danger-text, #a13b35); }

/* All single-select form fields progressively reuse the approved Orders menu.
   The clipped native peer keeps native validation, FormData and draft identity. */
.shared-select-control {position:relative;display:block;min-width:0;width:100%;font:inherit}
select.shared-select-native {position:absolute !important;width:1px !important;height:1px !important;min-height:0 !important;padding:0 !important;margin:0 !important;border:0 !important;clip-path:inset(50%) !important;overflow:hidden !important;pointer-events:none}
.shared-select-dropdown {z-index:0;transition:z-index var(--motion-panel) steps(1,end)}
.shared-select-dropdown[open] {z-index:1;transition-duration:0s}
.shared-select-dropdown>.create-order-platform-trigger {min-height:44px;font:inherit;line-height:1.4}
.shared-select-dropdown>.shared-select-options {max-height:min(280px,52vh,var(--shared-select-height,52vh));overscroll-behavior:contain}
.shared-select-dropdown[data-side="above"]>.shared-select-options {top:auto;bottom:calc(100% + 6px)}
.shared-select-options[inert] {pointer-events:none}
.shared-select-control[data-disabled="true"]>.shared-select-dropdown>.create-order-platform-trigger {opacity:.55;cursor:not-allowed;background:var(--film-surface);color:var(--film-muted);border-color:var(--film-control-border)}
.shared-select-dropdown [role="option"]:disabled {opacity:.5;cursor:not-allowed;background:transparent;color:var(--film-muted)}
.shared-select-options [role="option"][aria-selected="true"] {background:var(--film-accent-soft);color:var(--film-button)}
.shared-select-dropdown [role="option"][hidden] {display:none}
.shared-select-group {padding:8px 12px 4px;color:var(--film-muted);font-size:11px;font-weight:650}
.shared-select-dropdown>.create-order-platform-trigger[aria-invalid="true"] {border-color:var(--theme-danger-text,#a13b35)}
@media (max-width:650px) {
  .shared-select-dropdown>.create-order-platform-trigger {min-height:46px;font-size:16px}
  .shared-select-dropdown .create-order-platform-option,
  :is(.staff, .customer) .order-detail-action-menu .order-detail-action-options > .button:not(.remove-action) {min-height:44px;font-size:16px}
}
@media (prefers-reduced-motion:reduce) {.shared-select-dropdown {transition:none !important}}


/* Orders homepage: compact source-first list with all columns retained at narrow widths. */
.staff .orders-page{min-width:0}
.staff main:has(> .orders-page){width:100%;min-width:0;max-width:none}
.staff .orders-page .title-row{margin-bottom:12px}
.staff .orders-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}
.staff .orders-kpi{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin:0;color:var(--ops-muted);font-size:12px}
.staff .orders-kpi>span{display:block;color:var(--ops-muted);font-size:12px}
.staff .orders-kpi strong{margin:0;color:var(--ops-ink);font-size:23px;font-variant-numeric:tabular-nums}
.staff .orders-kpi.is-abnormal strong{color:var(--film-danger,#9a4b37)}
.staff .orders-source-tabs{display:flex;flex-wrap:nowrap;gap:8px;min-width:0;margin:0 0 12px;padding:0;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain}
.staff .orders-source-tab{flex:0 0 auto;white-space:nowrap;transition:color var(--motion-feedback) var(--motion-ease-feedback),background-color var(--motion-feedback) var(--motion-ease-feedback),border-color var(--motion-feedback) var(--motion-ease-feedback)}
.staff .orders-filters{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-end;gap:8px;margin:0 0 14px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.staff .orders-filters>.field{display:grid;flex:0 0 auto;gap:5px;min-width:0}
.staff .orders-filters>.orders-status-field{width:132px}
.staff .orders-filters>.orders-supplement-source-field{width:148px}
.staff .orders-filters:has(> .orders-supplement-source-field) > .field:has(> details[open]) { position: relative; z-index: 2; }
.staff .orders-search-field{width:min(230px,100%)}
.staff .orders-search-control{position:relative;display:flex;align-items:center;min-width:0}
.staff .orders-search-control input{width:100%;height:40px;padding:7px 55px 7px 12px;border:1px solid var(--film-control-border);border-radius:8px;background:var(--film-surface);color:var(--film-ink);font-size:13px}
.staff .orders-scan-button{z-index:1;background:transparent;color:var(--film-ink)}
.staff .orders-scan-button:hover{background:transparent;color:var(--film-button)}
.staff .orders-status-dropdown{width:100%}
.staff .orders-status-trigger{min-height:40px;height:40px;padding:7px 12px;border-radius:8px}
.staff .orders-status-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.staff .orders-status-option[aria-pressed="true"]{background:var(--film-accent-soft);color:var(--film-button);font-weight:700}
.staff .orders-supplement-source-dropdown{width:100%}
.staff .orders-supplement-source-trigger{min-height:40px;height:40px;padding:7px 12px;border-radius:8px}
.staff .orders-supplement-source-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.staff .orders-supplement-source-option[aria-pressed="true"]{background:var(--film-accent-soft);color:var(--film-button);font-weight:700}
.staff .orders-date-field{width:244px;margin-left:auto}
.staff .orders-date-dropdown{width:100%}
.staff .orders-date-trigger{min-height:40px;height:40px;gap:8px;padding:7px 10px;border-radius:8px}
.staff .shared-date-dropdown{display:block;width:100%;min-width:0}
.staff .shared-date-trigger{width:100%}
.staff .shared-date-field{min-width:0}
.staff .orders-date-summary{min-width:0;flex:1;overflow:hidden;color:var(--film-ink);font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.staff .orders-date-calendar-icon{width:16px;height:16px;flex:0 0 auto;color:var(--film-muted)}
.staff .orders-date-options{left:auto;right:0;display:block;width:min(320px,calc(100vw - 28px));max-height:none;overflow:visible;padding:10px;border-radius:10px}
.staff .orders-date-options{display:flex;flex-direction:column}
.staff .orders-date-options .orders-calendar-grid{min-height:0;flex:1 1 auto;overflow-y:auto}
.staff .orders-date-options-footer{flex:0 0 auto}
.staff .orders-date-dropdown.opens-up>.orders-date-options{top:auto;bottom:calc(100% + 6px)}
.staff .orders-date-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:9px}
.staff .orders-date-target{display:grid;gap:2px;min-width:0;padding:7px 9px;border:1px solid var(--film-border);border-radius:7px;background:var(--film-inset);color:var(--film-muted);font:inherit;font-size:11px;text-align:left;cursor:pointer;transition:background-color var(--motion-feedback) var(--motion-ease-feedback),border-color var(--motion-feedback) var(--motion-ease-feedback),color var(--motion-feedback) var(--motion-ease-feedback)}
.staff .orders-date-target strong{overflow:hidden;color:var(--film-ink);font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.staff .orders-date-target:hover,.staff .orders-date-target.is-active{border-color:var(--film-focus);background:var(--film-accent-soft);color:var(--film-button)}
.staff .orders-date-target:focus-visible,.staff .orders-calendar-month-button:focus-visible,.staff .orders-calendar-day:focus-visible,.staff .orders-date-clear:focus-visible{outline:2px solid var(--film-focus);outline-offset:1px}
.staff .orders-calendar-month-nav{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:center;gap:5px;margin:2px 0 7px}
.staff .orders-calendar-month-title{color:var(--film-ink);font-size:13px;font-weight:700;text-align:center}
.staff .orders-calendar-month-button{display:grid;width:30px;height:30px;place-items:center;padding:0;border:0;border-radius:7px;background:transparent;color:var(--film-muted);cursor:pointer;transition:background-color var(--motion-feedback) var(--motion-ease-feedback),color var(--motion-feedback) var(--motion-ease-feedback)}
.staff .orders-calendar-month-button:hover{background:var(--film-raised);color:var(--film-button)}
.staff .orders-calendar-month-button svg{width:16px;height:16px}
.staff .orders-calendar-grid,.staff .orders-calendar-days{display:grid;gap:3px}
.staff .orders-calendar-weekdays,.staff .orders-calendar-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.staff .orders-calendar-weekdays{margin-bottom:2px}
.staff .orders-calendar-weekdays span{display:grid;height:26px;place-items:center;color:var(--film-muted);font-size:10px;font-weight:600}
.staff .orders-calendar-day{display:grid;min-width:0;height:32px;place-items:center;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--film-ink);font-family:inherit;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;cursor:pointer;transition:background-color var(--motion-feedback) var(--motion-ease-feedback),border-color var(--motion-feedback) var(--motion-ease-feedback),color var(--motion-feedback) var(--motion-ease-feedback)}
.staff .orders-calendar-day:hover{background:var(--film-raised)}
.staff .orders-calendar-day.is-outside{color:var(--film-muted);opacity:.62}
.staff .orders-calendar-day.is-today:not(.is-endpoint){border-color:var(--film-control-border);font-weight:700}
.staff .orders-calendar-day.is-in-range{border-radius:0;background:var(--film-accent-soft);color:var(--film-button)}
.staff .orders-calendar-day.is-endpoint{border-color:var(--film-button);background:var(--film-button);color:var(--film-button-contrast,#fff);font-weight:700}
.staff .orders-date-draft-error{margin:7px 2px 0;color:var(--film-danger,#9a4b37);font-size:11px}
.staff .orders-date-options-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px;padding-top:7px;border-top:1px solid var(--film-border);color:var(--film-muted);font-size:10px}
.staff .orders-date-reset{padding:4px 6px;border:0;border-radius:5px;background:transparent;color:var(--film-button);font:inherit;font-size:11px;font-weight:600;cursor:pointer}
.staff .orders-date-reset:hover{background:var(--film-accent-soft)}
.staff .orders-filters .filter-actions{display:flex;flex:0 0 auto;width:auto;align-items:flex-end}
.staff .orders-page .orders-workspace{min-width:0}
.staff .orders-page .orders-table-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
.staff .orders-page .orders-table-scroll > .orders-empty {
  position: sticky;
  inset-inline-start: 0;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.staff .orders-page .orders-home-table{width:100%;min-width:992px;max-width:none;table-layout:fixed;font-family:inherit}
.staff .orders-page .orders-home-table th{padding:9px 8px}
.staff .orders-page .orders-home-table td{padding:8px}
.staff .orders-page .orders-home-table th:nth-child(1){width:140px}
.staff .orders-page .orders-home-table th:nth-child(2){width:72px}
.staff .orders-page .orders-home-table th:nth-child(3){width:150px}
.staff .orders-page .orders-home-table th:nth-child(4){width:125px}
.staff .orders-page .orders-home-table th:nth-child(5){width:125px}
.staff .orders-page .orders-home-table th:nth-child(6){width:140px}
.staff .orders-page .orders-home-table th:nth-child(7){width:140px}
.staff .orders-page .orders-home-table th:nth-child(8){width:100px;text-align:center}
.staff .orders-page .orders-home-table th,.staff .orders-page .orders-home-table td{text-align:center}
.staff .orders-home-table td{overflow-wrap:anywhere}
.staff .orders-home-table td:last-child{text-align:center}
.staff .orders-home-table .order-row-open{display:grid;gap:4px;padding:3px 0}
.staff .order-home-roll-count > span,
.staff .order-home-code{font-family:inherit;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.staff .order-home-code{color:var(--film-ink);overflow-wrap:anywhere}
.staff .order-home-customer{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;min-width:0;color:var(--film-ink);font-family:inherit;font-size:inherit;overflow-wrap:anywhere;text-align:center}
.staff .order-home-customer-name{display:block;color:var(--film-ink);font-size:13px;font-weight:700;line-height:1.35}
.staff .orders-home-table .order-home-customer-phone{display:block;margin-top:0;color:var(--film-muted);font-size:12px;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.3}
.staff .orders-home-table .order-row-bag{color:var(--film-muted);font-size:11px}
.staff .orders-home-table .order-date-cell{display:grid;justify-items:center;gap:2px;white-space:nowrap;font-variant-numeric:tabular-nums}
.staff .orders-home-table .order-date-day{display:block;color:var(--film-ink)}
.staff .orders-home-table .order-date-clock{display:block;color:var(--film-muted);font-size:11px}
.staff .orders-home-table .order-source-cell{text-align:center}
.staff .orders-home-table .orders-home-status-badges{display:inline-grid;justify-items:center;gap:4px;max-width:100%}
.staff .orders-home-table .orders-home-status-badges .badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.staff .orders-home-table .order-row-source{max-width:100%;white-space:normal}
.staff .orders-home-table .order-table-row.order-row-cancelled{background:var(--film-inset)}
.staff .orders-home-table .order-table-row.order-row-cancelled:hover,.staff .orders-home-table .order-table-row.order-row-cancelled:focus-within{background:var(--film-raised)}
.staff .orders-home-table .order-row-cancelled .order-cancel-content{color:var(--film-muted);text-decoration:line-through;text-decoration-thickness:1px;text-decoration-color:var(--film-muted)}
.staff .orders-home-table .order-row-cancelled .order-row-source{background:var(--film-raised)}
.staff :is(.orders-home-table, .order-detail-status) .order-row-source { font-size: 12px; }
:is(.staff, .customer) .order-detail-status .order-row-source[data-source-tone="blue"],
.staff .orders-home-table .order-row-source[data-source-tone="blue"] { background: var(--theme-info-bg, #eaf3ff); color: var(--theme-info-text, #245c93); }
:is(.staff, .customer) .order-detail-status .order-row-source[data-source-tone="purple"],
.staff .orders-home-table .order-row-source[data-source-tone="purple"] { background: var(--theme-pending-bg, #f1eafd); color: var(--theme-pending-text, #63458b); }
:is(.staff, .customer) .order-detail-status .order-row-source[data-source-tone="orange"],
.staff .orders-home-table .order-row-source[data-source-tone="orange"] { background: var(--theme-warning-bg, #fff0df); color: var(--theme-warning-text, #8a4b1a); }
:is(.staff, .customer) .order-detail-status .order-row-source[data-source-tone="green"],
.staff .orders-home-table .order-row-source[data-source-tone="green"] { background: var(--theme-success-bg, #e9f6eb); color: var(--theme-success-text, #28683b); }
:is(.staff, .customer) .order-detail-status .order-row-source[data-source-tone="red"],
.staff .orders-home-table .order-row-source[data-source-tone="red"] { background: var(--theme-danger-bg, #ffefee); color: var(--theme-danger-text, #963732); }
:is(.staff, .customer) .order-detail-status .order-row-source-supplement,
.staff .orders-home-table .order-row-source-supplement { flex: 0 0 auto; margin-inline-start: 4px; padding-inline-start: 4px; border-inline-start: 1px solid currentColor; font: inherit; font-weight: 750; }
.staff .orders-home-table .order-row-cancelled .order-preview-toggle{color:#345164;text-decoration:none;opacity:1}
@media(max-width:1050px){.staff .orders-kpis{gap:7px}.staff .orders-kpi{padding:10px 11px}.staff .orders-filters{gap:8px}.staff .orders-search-field{width:220px}.staff .orders-date-field{width:244px}}
@media(max-width:1199px){.staff .orders-status-trigger{min-height:44px;height:44px}}
@media(max-width:760px){.staff .orders-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.staff .orders-filters{display:grid;grid-template-columns:minmax(0,1fr) auto;justify-items:stretch}.staff .orders-search-field{grid-column:1/-1;width:100%}.staff .orders-filters>.orders-status-field,.staff .orders-filters>.orders-supplement-source-field{width:auto}.staff .orders-status-dropdown,.staff .orders-supplement-source-dropdown{width:100%}.staff .orders-date-field{grid-column:1/-1;width:100%}.staff .orders-filters .filter-actions{justify-content:flex-end}}
@media(max-width:650px){.staff .orders-page .orders-workspace,.staff .orders-page .orders-workspace.has-preview,.staff .orders-page .orders-workspace.is-closing{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;overflow:visible}.staff .orders-page .orders-workspace.has-preview{gap:10px}.staff .orders-page .orders-table-scroll{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto!important;border:1px solid var(--ops-border);background:#fff}.staff .orders-page .orders-home-table{display:table!important;width:100%;min-width:992px;max-width:none}.staff .orders-page .orders-home-table tbody{display:table-row-group!important;width:auto;min-width:0}.staff .orders-page .orders-home-table thead{position:static!important;display:table-header-group!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto!important}.staff .orders-page .orders-home-table tr{display:table-row!important;margin:0;padding:0;border:0;border-radius:0;background:transparent}.staff .orders-page .orders-home-table td,.staff .orders-page .orders-home-table th{display:table-cell!important;position:static!important;padding:8px 10px;border-bottom:1px solid var(--ops-border);text-align:center}.staff .orders-page .orders-home-table td::before{content:none!important}.staff .orders-page .order-preview-slot,.staff .orders-page .orders-workspace.has-preview .order-preview-slot{position:static;width:100%;height:auto;max-height:none;overflow:visible;opacity:1;visibility:visible;pointer-events:auto;transform:none}.staff .orders-page .order-inspector{height:auto;max-height:none;min-height:280px}}
.staff .orders-pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:9px;color:var(--ops-muted);font-size:12px}
.staff .orders-page .orders-list-column{min-width:0}
.staff .orders-pagination>span{min-width:84px;text-align:center;font-variant-numeric:tabular-nums}
@media (max-width:650px) {
  .staff .workbench-status-summary { gap: 5px; margin-bottom: 7px; }
  .staff .workbench-status-summary-item { display: grid; min-height: 62px; align-content: space-between; gap: 6px; padding: 8px; }
  .staff .workbench-status-summary-item span { font-size: 11px; line-height: 1.25; }
  .staff .workbench-status-summary-item strong { font-size: 19px; }
  .staff .workbench-status-summary.is-scan { grid-template-columns: repeat(5, minmax(88px, 1fr)); overflow-x: auto; scrollbar-width: thin; }
  .staff .workbench-list-filters { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; padding: 8px; }
  .staff .workbench-filter-mode { grid-column: 1 / 2; min-height: 42px; }
  .staff .workbench-mode-button { min-height: 34px; }
  .staff .workbench-line-tabs { grid-column: 1 / -1; }
  .staff .workbench-line-button { min-height: 38px; }
  .staff .workbench-search-field { grid-column: 1 / -1; }
  .staff .workbench-search-field input { min-height: 44px; font-size: 16px; }
  .staff .workbench-select-field { grid-column: 1 / 2; width: 100%; }
  .staff .workbench-select-field select { min-height: 44px; font-size: 14px; }
  .staff .workbench-date-field { grid-column: 2 / 3; min-width: 0; width: 100%; }
  .staff .workbench-list-filters > .button { grid-column: 3 / 4; min-height: 44px; align-self: end; }
  .staff .workbench-line-tabs, .staff .workbench-queue-tabs { display: flex; }
  .staff .workbench-task-list { border: 1px solid var(--film-border); background: var(--film-surface); }
}
@media(max-width:650px){.staff .orders-pagination{justify-content:center;gap:8px}}
@media (max-width: 650px) {
  .staff .workbench-wash-filters { gap: 7px; }
  .staff .workbench-scan-filters { gap: 7px; }
  .staff .workbench-line-tabs { gap: 6px; }
  .staff .workbench-line-button { min-height: 42px; gap: 9px; padding: 6px 10px; font-size: 12px; }
  .staff .workbench-list-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
  .staff .workbench-search-field { grid-column: 1 / -1; min-width: 0; }
  .staff .workbench-search-control input { height: 46px; font-size: 16px; }
  .staff .workbench-select-field { grid-column: 1 / 2; width: auto; }
  .staff .workbench-display-field { grid-column: 2 / 3; width: auto; }
  .staff .workbench-select-field select { min-height: 44px; font-size: 14px; }
  .staff .workbench-date-field { grid-column: 1 / -1; width: auto; min-width: 0; margin: 0; }
  .staff .workbench-order-summary { min-height: 0; padding: 10px; }
  .staff .workbench-order-toggle { min-height: 38px; padding: 5px 7px; }
}
@media (max-width: 359px) {
  .staff .workbench-line-tabs { gap: 5px; }
  .staff .workbench-line-button { gap: 6px; padding: 6px 8px; font-size: 11px; }
}
.staff .workbench-line-tabs { gap: 8px; }
.staff .workbench-line-button.catalog-filter-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--ops-border);
  border-radius: 7px;
  background: var(--ops-surface);
  color: var(--ops-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  box-shadow: none;
}
.staff .workbench-line-button.catalog-filter-button:hover {
  border-color: var(--ops-accent);
  background: var(--ops-surface);
  color: var(--ops-accent);
  box-shadow: none;
}
.staff .workbench-line-button.catalog-filter-button.active,
.staff .workbench-line-button.catalog-filter-button.active:hover {
  border-color: var(--film-button);
  background: var(--film-button);
  color: var(--film-button-text, #fff);
  box-shadow: none;
}
.staff .workbench-line-button.catalog-filter-button .workbench-line-count {
  color: inherit;
  font-size: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
@media (max-width: 650px) {
  .staff .workbench-line-button.catalog-filter-button { min-height: 42px; gap: 9px; padding: 10px 13px; font-size: 13px; }
}
@media (max-width: 359px) {
  .staff .workbench-line-button.catalog-filter-button { gap: 6px; padding: 9px 10px; font-size: 12px; }
}
.upload-progress-panel{position:fixed;right:18px;bottom:72px;z-index:20;display:grid;gap:8px;width:min(360px,calc(100vw - 32px));padding:14px;background:var(--film-surface,#fff);border:1px solid var(--film-border,#d7dce2);border-radius:10px;box-shadow:0 12px 30px #081a3026;font-size:13px}.upload-progress-panel progress{width:100%;height:8px;accent-color:var(--film-button,#315f8d)}.upload-progress-panel>span{overflow-wrap:anywhere}
.upload-progress-panel ul{margin:0;padding-left:20px;max-height:120px;overflow:auto;overflow-wrap:anywhere}
.film-edge-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;white-space:nowrap}.film-edge-trigger small{font-size:10px;color:var(--ops-muted)}.film-edge-modal{width:min(740px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:22px;overflow:auto}.film-edge-modal .catalog-modal-header{margin-bottom:12px}.film-edge-modal .catalog-modal-header h2{font-size:20px}.film-edge-modal-form{display:grid;gap:14px}.film-edge-modal-body{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}.film-edge-input-panel{display:grid;align-content:start;gap:9px;min-width:0}.film-edge-input-panel textarea{min-height:64px;resize:vertical;font-size:16px}.film-edge-input-meta{display:flex;align-items:start;justify-content:space-between;gap:12px}.film-edge-input-meta>small{flex:none;color:var(--ops-muted);font-variant-numeric:tabular-nums}.film-edge-scope-note,.film-edge-change-state{margin:0;color:var(--ops-muted);font-size:12px;line-height:1.5}.film-edge-change-state{font-weight:600}.film-edge-controls{display:flex;gap:8px;flex-wrap:wrap}.film-edge-controls button{min-height:38px}.film-edge-preview-panel{display:grid;gap:8px;min-width:0;margin:0;padding:10px 12px;border:1px solid var(--ops-border);border-radius:6px;background:var(--ops-bg)}.film-edge-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.film-edge-preview-heading strong{font-size:13px}.film-edge-layout-select{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ops-muted)}.film-edge-layout-select select{min-height:36px;max-width:min(100%,360px);padding:6px 28px 6px 9px;border:1px solid var(--film-control-border);border-radius:6px;background:var(--film-surface);color:var(--film-ink);font:inherit}.film-edge-preview-image-wrap{display:grid;place-items:center;min-height:150px;max-height:52vh;overflow:auto;background:#ebecea;border-radius:4px}.film-edge-preview-panel img{display:block;width:100%;height:auto;max-height:52vh;object-fit:contain}.film-edge-preview-panel img[hidden]{display:none}.film-edge-preview-loading{display:grid;place-items:center;min-height:80px;padding:12px;color:var(--ops-muted);font-size:12px;text-align:center}.film-edge-preview-loading[hidden]{display:none}.film-edge-preview-caption{display:grid;gap:3px}.film-edge-preview-caption strong{font-size:12px}.film-edge-preview-caption span{color:var(--ops-muted);font-size:11px;line-height:1.45}.film-edge-modal .catalog-modal-actions{justify-content:flex-end}.film-edge-modal .catalog-modal-actions>.button[type=submit]{flex:0 0 auto;min-width:112px}
.gallery-preview-empty{width:100%;aspect-ratio:3/2;background:#000}.gallery-delivery-state{display:grid;gap:4px;margin:8px 0 0;color:var(--film-muted,#626b73);font-size:12px;line-height:1.45}.gallery-delivery-state strong{font-size:12px}
.roll-package-action{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:14px 0;padding:12px 14px;border:1px solid var(--film-border,#d7dce2);border-radius:8px;background:var(--film-surface,#fff)}.roll-package-action>div{display:grid;gap:4px;min-width:0}.roll-package-action strong{font-size:13px}.roll-package-action small{color:var(--film-muted,#626b73);font-size:11px;line-height:1.45}.roll-package-action .roll-package-error{color:var(--film-danger,#a13b35)}
.film-index-view-tabs,.film-index-selection-tools,.film-index-photo-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.film-index-selection-tools{margin:0 0 14px}.film-index-selection-tools>strong{margin-right:auto}.film-index-photo{cursor:grab}.film-index-photo:active{cursor:grabbing}.film-index-photo-controls{justify-content:space-between;margin-bottom:8px}.film-index-photo-controls label{display:flex;align-items:center;gap:7px;min-height:44px}.film-index-map{position:relative;width:100%}.film-index-map>img{display:block;width:100%;height:auto;object-fit:contain}.film-index-map>button{position:absolute;z-index:2;padding:0;border:0;background:transparent;cursor:zoom-in}.film-index-map>.film-index-photo-pending{position:absolute;z-index:3;display:block;background:#000}.film-index-modal{width:min(96vw,1200px);max-height:94vh;overflow:auto}.film-index-modal img{display:block;width:100%;height:auto;object-fit:contain}.film-index-current-label{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:0 0 10px;font-size:12px}.film-index-current-label>strong{font-weight:700}.film-index-current-label>span{color:var(--ops-muted)}.film-index-view{min-height:160px}.film-index-layout-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.film-index-layout-picker>div:first-child{display:grid;gap:3px;margin-right:auto}.film-index-layout-picker small{color:var(--muted,#68727c)}.film-index-layout-options{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:650px){.film-index-layout-picker{align-items:stretch;flex-direction:column}.film-index-layout-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.film-index-layout-options button{min-height:44px}.film-index-view-tabs button,.film-index-selection-tools button,.film-index-photo-controls button{min-height:44px}.film-index-photo{cursor:auto}.film-index-photo-controls{align-items:flex-start}.film-index-photo-controls>div{display:flex;gap:6px}}
@media(max-width:650px){.film-edge-modal{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px}.film-edge-modal .catalog-modal-header{gap:10px}.film-edge-modal .catalog-modal-header h2{font-size:18px}.film-edge-modal .film-edge-layout-select{align-items:stretch;flex-direction:column}.film-edge-modal .film-edge-layout-select select{width:100%;max-width:none;min-height:44px}.film-edge-modal-body{grid-template-columns:minmax(0,1fr);gap:12px}.film-edge-preview-panel{padding:10px}.film-edge-preview-panel img{max-height:44dvh}.film-edge-preview-image-wrap{min-height:120px;max-height:44dvh}.film-edge-preview-loading{min-height:120px}.film-edge-modal .catalog-modal-actions{display:flex;justify-content:stretch;gap:8px}.film-edge-modal .catalog-modal-actions>.button{flex:1 1 0;min-height:44px}.film-edge-controls button{min-height:44px}.film-edge-trigger{min-height:44px}}
.film-edge-preview-zoom{display:block;width:100%;padding:0;border:0;border-radius:4px;background:transparent;cursor:zoom-in;overflow:hidden}.film-edge-preview-zoom:disabled{cursor:default}.film-edge-preview-zoom img{pointer-events:none}.film-edge-zoom-modal{position:relative;display:block;width:min(calc(100vw - 40px),1280px);max-height:calc(100dvh - 40px);padding:12px;overflow:auto}.film-edge-zoom-modal>.catalog-modal-close{position:sticky;top:0;z-index:2;float:right}.film-edge-zoom-modal>img{display:block;width:min(100%,1200px);max-width:100%;height:auto;margin:0 auto;background:#ebecea;border-radius:4px}@media(max-width:650px){.film-edge-zoom-modal{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:10px;overflow:auto}.film-edge-zoom-modal>img{width:100%;height:auto;margin:0;max-width:100%}}

/* Package configuration reuses service choices and the checkout picker. */
.catalog-package-fields { min-width:0; }
.catalog-package-fields .catalog-choice-buttons { align-items:stretch; }
.catalog-package-fields .catalog-format-tags { margin-top:8px; }
.catalog-service-modal .catalog-kind-tiles { grid-template-columns:repeat(auto-fit,minmax(96px,1fr)); }
.create-package-section { display:grid; gap:12px; min-width:0; }
.create-package-section .choice-button { min-width:0; }
.create-package-section .choice-button small { overflow-wrap:anywhere; white-space:normal; line-height:1.5; }
.create-package-section .choice-button:disabled { opacity:.5; cursor:not-allowed; }
@media(max-width:760px) { .catalog-package-fields .catalog-choice { max-width:100%; } }

/* Multi-roll package recipes reuse the order service picker without changing its page layout. */
.package-item-picker-modal { width:min(1080px,calc(100vw - 40px)); max-width:none; max-height:calc(100dvh - 40px); overflow-y:auto; overscroll-behavior:contain; }
.package-item-picker-modal #declared-inputs { min-width:0; }
.package-item-picker-modal .create-picker { min-width:0; }
.package-composition-editor { display:grid; gap:12px; min-width:0; }
.package-composition-item { display:grid; grid-template-columns:minmax(0,1fr) 150px auto; align-items:center; gap:16px; padding:16px; border:1px solid var(--ops-border); border-radius:12px; background:var(--ops-surface,#fff); min-width:0; }
.package-composition-item > div:first-child { display:grid; gap:6px; min-width:0; overflow-wrap:anywhere; }
.package-composition-item small { color:var(--ops-muted); }
.package-composition-item .field { margin:0; min-width:0; }
.package-composition-item .actions { flex-wrap:wrap; }
@media(max-width:750px) {
  .package-item-picker-modal { width:calc(100vw - 24px); max-height:calc(100dvh - 24px); padding:16px; }
  .package-composition-item { grid-template-columns:minmax(0,1fr) 120px; gap:12px; }
  .package-composition-item .actions { grid-column:1 / -1; }
}
@media(max-width:420px) { .package-composition-item { grid-template-columns:minmax(0,1fr); } }

.catalog-modification-modal { width:min(800px,calc(100vw - 32px)); max-width:none; max-height:calc(100dvh - 40px); overflow-y:auto; }
.catalog-modification-list { display:grid; gap:0; border:1px solid var(--ops-border); border-radius:10px; margin:16px 0; min-width:0; }
.catalog-modification-list>article { display:grid; gap:8px; padding:12px 14px; border-bottom:1px solid var(--ops-border); min-width:0; }
.catalog-modification-list>article:last-child { border-bottom:0; }
.catalog-modification-list strong { font-size:13px; overflow-wrap:anywhere; }
.catalog-modification-list article>div { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:12px; font-size:13px; align-items:start; }
.catalog-modification-list article>div>span:first-child { color:var(--ops-muted); }
.catalog-modification-list article>div>* { overflow-wrap:anywhere; white-space:pre-wrap; }
.catalog-modification-modal .catalog-cancel-modification { color:#fff; border-color:var(--catalog-negative); background:var(--catalog-negative); }
.catalog-modification-modal .catalog-cancel-modification:hover { color:#fff; border-color:var(--catalog-negative); background:color-mix(in srgb,var(--catalog-negative) 88%,#000); }
.catalog-modification-modal .catalog-cancel-modification:focus-visible { outline:2px solid var(--catalog-negative); outline-offset:3px; }
.catalog-directory-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.catalog-service-remove-check { display:grid; place-items:center; align-self:stretch; min-width:40px; min-height:44px; cursor:pointer; }
.catalog-service-remove-check input { width:18px; height:18px; margin:0; accent-color:var(--ops-accent); }
.catalog-service-remove-check:has(input:disabled) { cursor:not-allowed; opacity:.4; }
.catalog-service-remove-check:has(input:focus-visible) { outline:2px solid var(--ops-accent); outline-offset:-3px; }
.catalog-directory-card:has(.catalog-service-remove-check) .catalog-directory-detail:disabled { opacity:1; cursor:default; }
.catalog-directory-card.is-removal-selected { border-color:var(--ops-accent); background:var(--ops-accent-soft,var(--ops-bg)); }
.catalog-removal-modal { width:min(640px,calc(100vw - 32px)); max-width:none; max-height:calc(100dvh - 40px); overflow-y:auto; }
.catalog-removal-list { list-style:none; display:grid; gap:0; margin:16px 0; padding:0; border:1px solid var(--ops-border); border-radius:10px; }
.catalog-removal-list li { display:flex; align-items:start; gap:12px; padding:12px 14px; border-bottom:1px solid var(--ops-border); }
.catalog-removal-list li:last-child { border-bottom:0; }
.catalog-removal-list span { flex:0 0 84px; color:var(--ops-muted); font-size:13px; }
.catalog-removal-list strong { min-width:0; overflow-wrap:anywhere; font-size:14px; }
@media(max-width:500px) { .catalog-modification-modal { width:calc(100vw - 24px); padding:16px; } .catalog-modification-list article>div { grid-template-columns:minmax(0,1fr); gap:4px; } }

.print-profile-settings{display:grid;gap:11px;margin:13px 0;padding:13px;border:1px solid var(--film-border);border-radius:9px;background:var(--film-inset)}.print-profile-settings .field{margin:0}.print-profile-settings .form-grid{margin:0}.roll-label-snap-guides line{stroke:#2378dd;stroke-width:2;stroke-dasharray:8 5;opacity:.9;vector-effect:non-scaling-stroke}.roll-label-snap-guides .roll-label-snap-edge{stroke:#28a36a}

.printer-connection-summary.unknown{background:#fff6df;color:#72521a}.printer-connection-summary.unknown small{color:inherit}.printer-connection-summary.unknown .printer-status-mark{background:#d39b24}


.staff .custody-page{display:grid;gap:18px}.staff .custody-page>.title-row{margin-bottom:0}.custody-page .custody-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.custody-metric{display:flex;align-items:center;gap:13px;min-width:0;padding:16px 18px;background:var(--film-surface);border:1px solid var(--film-border);border-radius:10px}.custody-metric-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:9px;background:var(--film-accent-soft);color:var(--film-button);font-size:17px;font-weight:700}.custody-metric.soon .custody-metric-icon{background:var(--theme-warning-bg,#fff4dc);color:var(--theme-warning-text,#9b6c14)}.custody-metric.urgent .custody-metric-icon{background:var(--theme-danger-bg,#fff0ed);color:var(--theme-danger-text,#bd4c40)}.custody-metric small,.custody-metric em{display:block;color:var(--film-muted);font-size:11px;font-style:normal}.custody-metric strong{display:block;margin:3px 0;font-size:24px;line-height:1.15;font-variant-numeric:tabular-nums}.custody-metric strong i{margin-left:4px;color:var(--film-muted);font-size:11px;font-style:normal;font-weight:500}.custody-metric em{font-size:10px}.custody-list-panel{padding:0;overflow:hidden}.custody-list-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 18px;border-bottom:1px solid var(--film-border)}.custody-list-heading h2{margin:0;font-size:16px}.custody-list-heading small{display:block;margin-top:4px;color:var(--film-muted);font-size:11px}.custody-search{display:flex;gap:7px}.custody-search input{width:min(280px,30vw);min-width:150px;height:36px;padding:0 10px;border:1px solid var(--film-border);border-radius:7px;background:var(--film-surface);color:var(--film-ink);font:inherit;font-size:12px}.custody-search button,.custody-save{min-height:36px;padding:0 12px;border:0;border-radius:7px;background:var(--film-button);color:var(--film-button-text);font:inherit;font-size:11px;font-weight:700}.custody-filters{display:flex;align-items:center;gap:5px;padding:11px 18px;border-bottom:1px solid var(--film-border)}.custody-filter{min-height:32px;padding:0 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--film-muted);font:inherit;font-size:11px;white-space:nowrap}.custody-filter b{margin-left:3px;font-size:10px}.custody-filter.active{background:var(--film-accent-soft);color:var(--film-button);font-weight:700}.custody-filter.overdue{color:var(--theme-danger-text,#bd4c40)}.custody-location-hint{margin-left:auto;color:var(--film-muted);font-size:10px}.custody-table-scroll{overflow:auto}.custody-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.custody-table th{padding:10px 14px;background:var(--film-inset);color:var(--film-muted);font-size:10px;font-weight:600}.custody-table td{padding:12px 14px;border-top:1px solid var(--film-border);font-size:11px;vertical-align:middle}.custody-table tr.is-overdue td:first-child{box-shadow:inset 2px 0 var(--theme-danger-text,#bd4c40)}.custody-order-link{padding:0;border:0;background:none;color:var(--film-ink);font:inherit;font-weight:700;text-align:left}.custody-order-link:hover,.custody-open:hover{color:var(--film-button)}.custody-subline{display:block;margin-top:4px;color:var(--film-muted);font-size:9px}.custody-subline.overdue-copy{color:var(--theme-danger-text,#bd4c40)}.custody-subline.due-copy{color:var(--theme-warning-text,#9b6c14)}.custody-status{display:inline-flex;padding:5px 8px;border-radius:20px;font-size:9px;font-weight:700}.custody-status.held{background:var(--theme-info-bg,#edf3ff);color:var(--theme-info-text,#356bd0)}.custody-status.soon{background:var(--theme-warning-bg,#fff5e4);color:var(--theme-warning-text,#a06b0a)}.custody-status.late{background:var(--theme-danger-bg,#fff0ed);color:var(--theme-danger-text,#bd4c40)}.custody-location-form{display:flex;align-items:center;gap:5px}.custody-location-form input{width:150px;min-height:34px;padding:5px 8px;border:1px solid var(--film-border);border-radius:6px;background:var(--film-surface);color:var(--film-ink);font:inherit;font-size:11px}.custody-location-form input:focus,.custody-search input:focus{outline:2px solid var(--film-focus);outline-offset:1px}.custody-save{min-height:32px;padding-inline:9px}.custody-location-value{color:var(--film-ink);font-size:11px}.custody-open{border:0;background:transparent;color:var(--film-muted);font:inherit;font-size:11px;white-space:nowrap}.custody-empty{display:grid;justify-items:center;gap:6px;padding:46px 18px;text-align:center}.custody-empty strong{font-size:13px}.custody-empty span{color:var(--film-muted);font-size:11px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.custody-page .custody-metrics{gap:8px}.custody-metric{padding:13px 12px}.custody-list-heading{align-items:flex-start}.custody-location-hint{display:none}}
@media(max-width:650px){.staff .custody-page{gap:12px}.custody-page .custody-metrics{grid-template-columns:1fr;gap:7px}.custody-metric{padding:11px 12px}.custody-metric-icon{width:32px;height:32px}.custody-metric strong{font-size:20px}.custody-list-heading{flex-direction:column;padding:13px}.custody-search{width:100%}.custody-search input{width:auto;min-width:0;flex:1}.custody-filters{overflow:auto;padding:9px 10px}.custody-table-scroll{max-width:calc(100vw - 28px)}.custody-table td,.custody-table th{padding:10px 11px}.custody-location-form input{width:130px}.custody-location-form button{min-height:40px}}

.staff .custody-page{gap:20px}.staff .custody-page>.title-row{position:relative;justify-content:center;min-height:72px;margin-bottom:0}.custody-page .custody-title-copy{text-align:center}.custody-page .custody-title-copy h1{margin:0 0 7px}.custody-page .custody-title-copy p{margin:0}.custody-page>.title-row>.button{position:absolute;right:0;top:50%;transform:translateY(-50%)}.custody-table td,.custody-table th{padding-inline:15px}
@media(max-width:650px){.staff .custody-page{gap:20px}.staff .custody-page>.title-row{min-height:0;padding-bottom:48px}.custody-page>.title-row>.button{top:auto;right:50%;bottom:0;transform:translateX(50%)}}

/* Message previews retain the established compact photo geometry. */
.sample-photo .message-photo-preview,.customer.customer-mobile .sample-photo .message-photo-preview{display:block;width:180px;height:105px;padding:0;border:0;border-radius:8px;background:none;cursor:zoom-in}
.sample-photo .message-photo-preview img,.customer.customer-mobile .sample-photo .message-photo-preview img{display:block;width:180px;height:105px;object-fit:cover;border-radius:8px;background:transparent}
.message-photo-preview:focus-visible{outline:2px solid var(--film-focus);outline-offset:2px}
.message-photo-modal>.button.light{display:flex;margin-left:auto;border:1px solid var(--film-danger,#a13b35);color:var(--film-danger,#a13b35);background:var(--film-surface)}

/* Staff delivery ledger and order file archive. */
.staff main:has(> .delivery-workspace) { width: 100%; min-width: 0; }
.staff .delivery-workspace {
  --delivery-gray-fg: #646d7b; --delivery-gray-bg: #edf1f7;
  --delivery-yellow-fg: #84530f; --delivery-yellow-bg: #fff3df;
  --delivery-blue-fg: #2357c6; --delivery-blue-bg: #eaf0ff;
  --delivery-green-fg: #216446; --delivery-green-bg: #e9f6ee;
  --delivery-red-fg: #a33538; --delivery-red-bg: #fff0f0;
  display: grid; min-width: 0; gap: 12px; color: var(--film-ink);
}
html[data-theme="dark"] .staff .delivery-workspace {
  --delivery-gray-fg: #aeb3bd; --delivery-gray-bg: #303237;
  --delivery-yellow-fg: #f1c480; --delivery-yellow-bg: #433521;
  --delivery-blue-fg: #9ebaff; --delivery-blue-bg: #303e59;
  --delivery-green-fg: #98dbb9; --delivery-green-bg: #254338;
  --delivery-red-fg: #ffa5a9; --delivery-red-bg: #482e32;
}
.staff .delivery-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.staff .delivery-heading h1 { margin: 0; font-size: 27px; line-height: 1.2; letter-spacing: -.025em; font-weight: 720; }
.staff .delivery-heading p { margin: 5px 0 0; font-size: 13px; line-height: 1.45; }
.staff .delivery-surface { min-width: 0; border: 1px solid var(--film-border); border-radius: 13px; background: var(--film-surface); }
.staff :is(.delivery-cloud-banner, .delivery-toolbar, .delivery-ledger-toolbar) { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.staff .delivery-cloud-banner { padding: 8px 12px; font-size: 13px; }
.staff .delivery-cloud-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.staff .delivery-cloud-group .muted { font-size: 11px; }
.staff .delivery-cloud-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; flex: none; color: var(--delivery-blue-fg); background: var(--delivery-blue-bg); }
.staff .delivery-cloud-icon svg { width: 17px; height: 17px; }
.staff .delivery-ledger-toolbar { padding: 10px 14px; }
.staff .delivery-workspace h2 { margin: 0; font-size: 14px; line-height: 1.4; }
.staff .delivery-ledger-toolbar small { font-size: 11px; }
.staff .delivery-ledger-search { position: relative; width: min(204px, 100%); min-width: 0; }
.staff .delivery-ledger-search input { width: 100%; height: 35px; min-height: 35px; margin: 0; padding: 0 8px 0 34px; border: 1px solid var(--film-control-border); border-radius: 7px; background: var(--film-inset); font: inherit; font-size: 13px; }
.staff .delivery-ledger-search .button { position: absolute; inset-block: 1px; inset-inline-start: 1px; width: 31px; min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--film-muted); }
.staff .delivery-ledger-search .button svg { width: 16px; height: 16px; vertical-align: middle; }
.staff .delivery-workspace :is(.delivery-cloud-banner .button, .delivery-toolbar .film-edge-trigger, .delivery-ledger-table .button) {
  min-height: 32px; padding: 4px 6px; border-color: transparent; background: transparent; box-shadow: none; color: var(--delivery-blue-fg); font-size: 12px; font-weight: 620;
}
.staff .delivery-workspace :is(.delivery-cloud-banner .button, .delivery-toolbar .film-edge-trigger, .delivery-ledger-table .button):hover { background: var(--film-inset); }
.staff .delivery-toolbar .film-edge-trigger svg { width: 15px; height: 15px; }
.staff .delivery-ledger-filters { display: flex; flex-wrap: wrap; gap: 3px; }
.staff .delivery-ledger-filter { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--film-muted); font: inherit; font-size: 12px; font-weight: 620; cursor: pointer; }
.staff .delivery-ledger-filter:hover { background: var(--film-inset); color: var(--film-ink); }
.staff .delivery-ledger-filter[aria-pressed="true"] { background: var(--delivery-blue-bg); color: var(--delivery-blue-fg); }
.staff .delivery-ledger-scroll { overflow-x: auto; max-width: 100%; border-radius: 0 0 13px 13px; }
.staff .delivery-ledger-table { width: 100%; min-width: 665px; table-layout: fixed; border-collapse: collapse; font-size: 12px; text-align: center; }
.staff .delivery-ledger-table :is(th, td) { width: calc(100% / 7); padding: 9px 7px; border-top: 1px solid var(--film-border); text-align: center; vertical-align: middle; overflow-wrap: anywhere; }
.staff .delivery-ledger-table thead th { background: var(--film-inset); color: var(--film-muted); font-size: 11px; font-weight: 620; }
.staff .delivery-ledger-table tbody th { font-weight: 600; }
.staff .delivery-ledger-table tbody th small { display: block; margin-top: 2px; color: var(--film-muted); font-size: 11px; font-weight: 400; }
.staff .delivery-order-code, .staff .delivery-ledger-table time { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.staff .delivery-ledger-table tbody tr { transition: background-color var(--motion-feedback) var(--motion-ease-feedback); }
.staff .delivery-ledger-table tbody tr:is(:hover, :focus-within) { background: var(--film-inset); }
.staff .delivery-ledger-stack { display: grid; justify-items: center; gap: 3px; }
.staff .delivery-type-count, .staff .delivery-ledger-table time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.staff .delivery-type-count { font-size: 12px; font-weight: 550; }
.staff .delivery-expiry-caption { display: block; margin-top: 3px; color: var(--film-muted); font-size: 10px; }
.staff .delivery-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; padding: 3px 7px;
  border-radius: 6px; background: var(--delivery-gray-bg); color: var(--delivery-gray-fg);
  font-size: 11px; font-weight: 630; line-height: 1.35; text-align: center; overflow-wrap: anywhere;
}
.staff .delivery-badge::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.staff .delivery-badge[data-tone="yellow"] { background: var(--delivery-yellow-bg); color: var(--delivery-yellow-fg); }
.staff .delivery-badge[data-tone="blue"] { background: var(--delivery-blue-bg); color: var(--delivery-blue-fg); }
.staff .delivery-badge[data-tone="green"] { background: var(--delivery-green-bg); color: var(--delivery-green-fg); }
.staff .delivery-badge[data-tone="red"] { background: var(--delivery-red-bg); color: var(--delivery-red-fg); }
.staff .delivery-empty { margin: 0; padding: 32px 16px; border-top: 1px solid var(--film-border); text-align: center; color: var(--film-muted); }

.staff .delivery-archive-grid { display: grid; grid-template-columns: minmax(145px, .65fr) minmax(0, 2.2fr) minmax(172px, 1fr); align-items: stretch; }
.staff .delivery-archive-grid > * { min-width: 0; }
.staff .delivery-archive-tree > h2, .staff .delivery-properties > h2 { padding: 12px 14px; }
.staff .delivery-archive-tree { isolation: isolate; padding-bottom: 8px; border-right: 1px solid var(--film-border); border-radius: 12px 0 0 12px; background: var(--film-inset); }
.staff .delivery-properties { border-left: 1px solid var(--film-border); border-radius: 0 12px 12px 0; background: var(--film-inset); }
.staff .delivery-archive-back { display: flex; justify-content: flex-start; }
.staff .delivery-heading h1 { overflow-wrap: anywhere; }
.staff .delivery-heading.delivery-archive-heading { display: grid; gap: 4px; }
.staff .delivery-archive-heading h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.staff .delivery-archive-title-divider { display: inline-block; width: 24px; margin-inline-start: 8px; vertical-align: middle; border-top: 2px solid var(--film-muted); }
.staff .delivery-heading .delivery-archive-meta { min-width: 0; margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.staff :is(.delivery-disclosure > summary, .delivery-roll-select) { min-height: 44px; padding: 12px; color: var(--film-ink); font-size: 13px; font-weight: 650; cursor: pointer; overflow-wrap: anywhere; }
.staff :is(.delivery-disclosure > summary, .delivery-roll-select):hover { background: var(--film-inset); }
.staff :is(.delivery-roll-branch, .delivery-roll-select) { margin: 0 8px 4px; }
.staff :is(.delivery-roll-branch > summary, .delivery-roll-select) { position: relative; display: flex; align-items: center; gap: 7px; padding: 8px; border-radius: 6px; }
.staff .delivery-roll-select { width: calc(100% - 16px); border: 0; background: transparent; font-family: inherit; text-align: start; }
.staff .delivery-roll-branch > summary::-webkit-details-marker { display: none; }
.staff :is(.delivery-roll-branch.is-current > summary, .delivery-roll-select[aria-pressed="true"]) { background: transparent; color: var(--delivery-blue-fg); }
.staff .delivery-roll-highlight { position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--delivery-blue-bg); pointer-events: none; }
.staff .delivery-roll-branch[open] > summary > .workbench-nav-chevron { transform: rotate(90deg); }
.staff .delivery-roll-tree-label { min-width: 0; }
.staff .delivery-generation svg { flex: none; width: 16px; height: 16px; }
.staff .delivery-roll-tree-label small { display: block; color: var(--film-muted); font-size: 11px; font-weight: 500; }
.staff .delivery-generation-list { display: grid; gap: 4px; margin-inline-start: 16px; padding: 4px 0 4px 6px; border-inline-start: 1px solid var(--film-border); }
.staff .delivery-generation { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 38px; min-width: 0; gap: 8px; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--film-ink); font: inherit; font-size: 12px; text-align: start; cursor: pointer; transition: background-color var(--motion-feedback) var(--motion-ease-feedback), border-color var(--motion-feedback) var(--motion-ease-feedback); }
.staff .delivery-generation:hover { background: var(--film-inset); }
.staff .delivery-generation[aria-pressed="true"] { border-color: var(--film-control-border); background: var(--film-accent-soft); }
.staff .delivery-generation small { margin-inline-start: auto; color: var(--film-muted); font-variant-numeric: tabular-nums; }
.staff .delivery-files-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.staff .delivery-files-header > div:first-child { min-width: 0; flex: 1 1 12rem; }
.staff .delivery-files-header .delivery-badge { flex: none; }
.staff .delivery-files-header .delivery-preview-filename { margin: 3px 0 0; color: var(--film-muted); overflow-wrap: anywhere; }
.staff .delivery-files-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11px; }
.staff .delivery-preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
.staff .delivery-preview p { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.staff :is(.delivery-preview-image, .delivery-preview-placeholder) { display: grid; place-content: center; justify-items: center; width: 100%; height: clamp(190px, 44dvh, 440px); background: var(--film-inset); border: 1px solid var(--film-border); border-radius: 8px; text-align: center; overflow: hidden; }
.staff .delivery-preview-image { grid-template: minmax(0, 1fr) / minmax(0, 1fr); align-items: center; padding: 8px; cursor: zoom-in; }
.staff .delivery-preview-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.staff .delivery-preview-placeholder { gap: 4px; padding: 10px; color: var(--film-ink); font-size: 13px; }
.staff .delivery-preview-placeholder span { color: var(--film-muted); font-size: 12px; }
.staff .delivery-thumbnails { display: flex; gap: 8px; overflow-x: auto; margin: 0; padding: 0 0 8px; list-style: none; }
.staff .delivery-thumbnails > li { flex: 0 0 76px; min-width: 0; }
.staff .delivery-thumbnail { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: 100%; height: 60px; padding: 3px; overflow: hidden; border: 1px solid var(--film-border); border-radius: 6px; background: var(--film-inset); color: var(--film-muted); cursor: pointer; }
.staff .delivery-thumbnail:hover { border-color: var(--film-control-border); }
.staff .delivery-thumbnail[aria-pressed="true"] { border-color: var(--film-focus); box-shadow: inset 0 0 0 1px var(--film-focus); background: var(--film-accent-soft); }
.staff .delivery-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.staff .delivery-thumbnail-placeholder { display: grid; gap: 2px; font-size: 11px; line-height: 1.15; }
.staff .delivery-thumbnail-placeholder small { font-size: 10px; }
.staff .delivery-file-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.modal.delivery-preview-dialog { width: min(100%, 1080px); max-height: calc(100dvh - 36px); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 10px; background: var(--film-surface); color: var(--film-ink); }
.delivery-preview-dialog :is(h2, p) { margin: 0; overflow-wrap: anywhere; }
.delivery-preview-dialog-image { grid-row: 3; display: grid; place-items: center; min-height: 0; overflow: auto; background: var(--film-inset); border-radius: 8px; }
.delivery-preview-dialog-image img:not([hidden]) { display: block; width: 100%; height: 100%; max-height: 75dvh; object-fit: contain; }
.delivery-preview-dialog-image p { padding: 16px; }
.delivery-preview-dialog footer { grid-row: 4; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.delivery-preview-dialog footer > .cancel-action { margin-inline-start: auto; border-color: var(--theme-danger-text, #a13b35); color: var(--theme-danger-text, #a13b35); }
.delivery-preview-dialog footer > .cancel-action:hover:not(:disabled) { border-color: var(--theme-danger-text, #a13b35); color: var(--theme-danger-text, #a13b35); background: var(--theme-danger-bg, #fff0ed); }
.staff .delivery-upload { margin: 0; padding: 0 16px; border-top: 1px solid var(--film-border); }
.staff .delivery-upload > summary { padding-inline: 0; }
.staff .delivery-upload > form { display: grid; gap: 10px; margin: 0; padding: 0 0 16px; }
.staff .delivery-upload input { min-width: 0; max-width: 100%; }
.staff .delivery-upload [type="submit"] { justify-self: start; }
.staff .delivery-properties dl { display: grid; gap: 0; margin: 0; padding: 0 14px 8px; }
.staff .delivery-properties dl > div { display: grid; grid-template-columns: minmax(55px, auto) minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 7px 0; border-top: 1px solid var(--film-border); }
.staff .delivery-properties dt { color: var(--film-muted); font-size: 11px; }
.staff .delivery-properties dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.staff .delivery-property-cloud, .staff .delivery-property-actions { padding: 0 14px 14px; }
.staff .delivery-property-cloud .delivery-cloud-group { padding-top: 9px; border-top: 1px solid var(--film-border); font-size: 12px; }
.staff .delivery-baidu-copy-details { display: grid; gap: 6px; margin-top: 6px; }
.staff .delivery-baidu-copy-details p { margin: 0; overflow-wrap: anywhere; font-size: 12px; }
.staff .delivery-baidu-copy-details .button { justify-self: start; }
.baidu-confirm-dialog .baidu-confirm-path { overflow-wrap: anywhere; }
.baidu-folder-picker { max-height: calc(100dvh - 36px); overflow: auto; background: var(--film-surface); color: var(--film-ink); }
.baidu-folder-picker p { margin: 0; overflow-wrap: anywhere; }
.baidu-folder-picker .actions { flex-wrap: wrap; margin: 0; }
.baidu-folder-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; max-height: min(40dvh, 300px); overflow-y: auto; }
.baidu-folder-list .button { width: 100%; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.baidu-confirm-dialog .actions > .baidu-confirm-cancel.cancel-action { order: 0; border-color: var(--theme-danger-text, #a13b35); color: var(--theme-danger-text, #a13b35); }
.baidu-confirm-dialog .actions > .baidu-confirm-cancel.cancel-action:hover:not(:disabled) { background: var(--theme-danger-bg, #fff0ed); }
.staff .delivery-workspace :is(button, input, summary, a, [tabindex="0"]):not(.app-back-button):focus-visible { outline: 2px solid var(--film-focus); outline-offset: -2px; }

@media (max-width: 950px) {
  .staff .delivery-archive-grid { grid-template-columns: minmax(140px, .65fr) minmax(0, 1fr); }
  .staff .delivery-archive-tree { border-radius: 12px 0 0 0; }
  .staff .delivery-properties { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--film-border); border-radius: 0 0 12px 12px; }
  .staff .delivery-properties dl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
}
@media (max-width: 600px) {
  .staff .delivery-archive-grid, .staff .delivery-properties dl { grid-template-columns: minmax(0, 1fr); }
  .staff .delivery-archive-tree { border-right: 0; border-bottom: 1px solid var(--film-border); border-radius: 12px 12px 0 0; }
  .staff .delivery-heading { flex-wrap: wrap; align-items: start; }
}
@media (max-width: 650px) {
  .staff .delivery-workspace { gap: 12px; }
  .staff .delivery-heading h1 { font-size: 23px; }
  .staff .delivery-ledger-search input { height: 44px; min-height: 44px; font-size: 16px; }
  .staff :is(.delivery-ledger-filter, .delivery-generation) { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .staff :is(.delivery-ledger-table tbody tr, .delivery-generation) { transition: none; }
}

/* System settings page */
.staff main:has(> .settings-page) { width: 100%; min-width: 0; max-width: none; }
.settings-page {
  container: settings / inline-size;
  --settings-pad: clamp(16px, 1.5vw, 24px);
  --settings-columns: clamp(200px, 32%, 420px) minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  max-width: none;
}
.settings-page .settings-heading { margin-bottom: 20px; }
.settings-page .settings-heading h1 { font-size: clamp(25px, 3vw, 32px); }
.settings-page .settings-index { margin-bottom: 20px; }
.settings-page .settings-index button { min-height: 36px; font-size: 13px; }
.settings-page .settings-content,
.settings-page .settings-delivery-form,
.settings-page .print-settings-form { display: grid; gap: 16px; min-width: 0; }
.settings-page .settings-group { min-width: 0; max-width: none; padding: 0; margin: 0; }
.settings-page .settings-group-heading {
  padding: 17px var(--settings-pad);
  border-bottom: 1px solid var(--film-border);
}
.settings-page .settings-group-heading h2 { margin: 0; font-size: 16px; }
.settings-page .settings-group-heading p { margin: 5px 0 0; }
.settings-page .system-preference-row,
.settings-page .settings-rows > .field {
  display: grid;
  grid-template-columns: var(--settings-columns);
  align-items: center;
  gap: 12px 20px;
}
.settings-page .system-preference-row,
.settings-page .settings-rows > .field,
.settings-page .settings-check-row {
  margin: 0;
  padding: 14px var(--settings-pad);
  border: 0;
  border-bottom: 1px solid var(--film-border);
}
.settings-page .system-preference-row:last-child { border-bottom: 0; }
.settings-page .system-preference-row strong,
.settings-page .settings-rows > .field { font-size: 14px; }
.settings-page .system-preference-row small { font-size: 12px; line-height: 1.45; }
.settings-page .settings-rows > .field > :is(input, select),
.settings-page .settings-select { min-width: 0; max-width: 100%; }
.settings-page .settings-rows > .field > input[type="number"] { width: min(100%, 144px); }
.settings-page .settings-choices { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.settings-page .settings-choice {
  min-height: 40px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--film-border);
  border-radius: 8px;
  background: var(--film-surface);
  color: var(--film-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.settings-page .settings-choice:hover { background: var(--film-inset); }
.settings-page .settings-choice[aria-pressed="true"] {
  border-color: var(--film-accent);
  background: var(--film-accent-soft);
  color: var(--film-accent);
}
.settings-page .settings-choice:focus-visible { outline: 2px solid var(--film-focus); outline-offset: 2px; }
.settings-page .settings-layout-options { display: grid; grid-template-columns: repeat(2, minmax(0, 145px)); }
.settings-page .settings-layout-choice { display: grid; gap: 6px; align-content: start; text-align: start; }
.settings-page .settings-layout-sketch {
  display: grid;
  gap: 4px;
  height: 48px;
  padding: 5px;
  border: 1px solid var(--film-border);
  border-radius: 5px;
  background: var(--film-inset);
}
.settings-page .settings-layout-sketch i {
  display: block;
  min-width: 0;
  border: 1px solid var(--film-border);
  border-radius: 3px;
  background: var(--film-surface);
}
.settings-page .settings-layout-sketch i:first-child { background: var(--film-accent-soft); }
.settings-page .settings-layout-sketch-split { grid-template-columns: 2fr 3fr; }
.settings-page .settings-layout-sketch-stacked { grid-template-rows: 2fr 3fr; }
.settings-page .settings-layout-sketch-focused { grid-template-rows: 1fr 2fr 1fr; }
.settings-page .settings-layout-sketch-table { grid-template-rows: repeat(4, 1fr); }
.settings-page .settings-form-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px var(--settings-pad); }
.settings-page .settings-form-actions > button { width: auto; }
.settings-page .settings-store-scope { margin: 0; padding: 12px var(--settings-pad); border-bottom: 1px solid var(--film-border); overflow-wrap: anywhere; }
.settings-page .settings-store-form { max-width: none; }
.settings-page .settings-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 16px 20px;
  padding: 16px var(--settings-pad);
}
.settings-page .settings-field-grid .field { min-width: 0; max-width: none; margin: 0; font-size: 14px; }
.settings-page .settings-field-grid .field > input { width: 100%; min-width: 0; }
.settings-page .settings-field-grid .settings-field-full { grid-column: 1 / -1; min-width: 0; }
.settings-page .scan-shortcut-help,
.settings-page [data-scan-shortcut-error] { margin: 12px var(--settings-pad) 0; }
.settings-page .settings-group > .notice { margin: 0 var(--settings-pad) 16px; }
.settings-page .settings-client-form { display: grid; gap: 16px; }
.settings-page .client-settings-channel { display: grid; gap: 8px; padding: 12px var(--settings-pad); border-bottom: 1px solid var(--film-border); }
.settings-page .client-settings-link { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.settings-page .client-settings-link .field { flex: 1 1 240px; min-width: 0; margin: 0; }
.settings-page .client-settings-link .button { width: auto; min-height: 40px; }
.orders-table .order-platform-number { display: block; margin-top: 4px; color: var(--film-muted); overflow-wrap: anywhere; }
.order-detail-meta .order-platform-number { overflow-wrap: anywhere; }
.settings-page .settings-delivery-methods {
  --delivery-card-min-height: 96px;
  --delivery-card-action-width: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  padding: 16px var(--settings-pad);
}
.settings-page .settings-delivery-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.settings-page .settings-delivery-method {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: var(--delivery-card-min-height);
}
.settings-page .settings-delivery-edit-actions {
  position: absolute;
  inset-block: 8px;
  inset-inline-end: 12px;
  width: var(--delivery-card-action-width);
  display: grid;
  gap: 6px;
  align-content: center;
}
.settings-page .settings-delivery-edit-actions > .button {
  margin: 0;
  min-height: 32px;
  white-space: nowrap;
}
.settings-page .settings-delivery-add { align-items: center; justify-content: center; grid-template-columns: auto auto; min-height: var(--delivery-card-min-height); border-style: dashed; color: var(--film-accent); }
.settings-page .settings-delivery-add > span { color: inherit; font-size: 20px; }
.settings-page .settings-delivery-feedback,
.settings-page .settings-delivery-inactive { margin: 0; padding: 14px var(--settings-pad); }
.settings-page .settings-delivery-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.settings-page .settings-delivery-inactive { border-top: 1px solid var(--film-border); }
.settings-page .settings-delivery-inactive h3 { margin: 0 0 8px; font-size: 14px; }
.settings-page .settings-delivery-inactive ul { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.settings-page .settings-delivery-inactive li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.settings-page .settings-delivery-inactive strong { min-width: 0; overflow-wrap: anywhere; }
.cloud-delivery-dialog { width: min(580px, 100%); max-height: calc(100dvh - 36px); overflow: auto; }
.cloud-delivery-dialog > header,
.cloud-delivery-link-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.cloud-delivery-dialog > header { margin-bottom: 12px; }
.cloud-delivery-dialog > header h2 { margin: 0; }
.cloud-delivery-dialog .field { min-width: 0; max-width: none; }
.cloud-delivery-dialog input, .cloud-delivery-dialog select { width: 100%; min-width: 0; }
.cloud-delivery-dialog .actions { flex-wrap: wrap; }
.cloud-delivery-provider:empty { display: none; }
.cloud-delivery-order-options { display: grid; gap: 8px; }
.cloud-delivery-order-options > button { justify-self: stretch; overflow-wrap: anywhere; }
.cloud-delivery-links { list-style: none; display: grid; gap: 10px; padding: 0; margin: 12px 0 0; }
.cloud-delivery-links li { min-width: 0; padding: 12px; border: 1px solid var(--film-border); border-radius: 8px; overflow-wrap: anywhere; }
.cloud-delivery-links p { margin: 8px 0; }
.cloud-delivery-error { color: var(--theme-danger-text, #a32d36); }
.cloud-delivery-order-entry { display: flex; justify-content: flex-start; }
@media (max-width: 650px) {
  .cloud-delivery-dialog input, .cloud-delivery-dialog select { font-size: 16px; }
  .cloud-delivery-dialog .button, .customer .cloud-delivery-order-entry .button { min-height: 44px; }
}
.settings-page .settings-delivery-card {
  grid-template-columns: minmax(0, 1fr) var(--delivery-card-action-width);
  align-items: center;
  gap: 8px 12px;
  padding: 14px 16px;
}
.settings-page .settings-delivery-card :is(.settings-device-identity, .settings-method-status) { grid-column: 1; }
.settings-page .settings-delivery-card-chevron { grid-column: 2; grid-row: 1 / 3; justify-self: end; width: 16px; height: 16px; color: var(--film-muted); }
.settings-page .settings-method-status { display: flex; align-items: center; gap: 7px; overflow-wrap: anywhere; }
.settings-page .settings-method-status > i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: currentColor; }
.settings-page .settings-method-status[data-tone="ready"] { color: var(--theme-success-text, #287544); }
.settings-page .settings-method-status:is([data-tone="checking"], [data-tone="configured"]) { color: var(--film-accent); }
.settings-page .settings-method-status[data-tone="warning"] { color: var(--theme-warning-text, #8b5a15); }
.baidu-settings-dialog { width: min(660px, 100%); max-height: calc(100dvh - 36px); overflow: auto; }
.baidu-settings-dialog .actions { flex-wrap: wrap; }
.baidu-settings-dialog .baidu-settings-body > p { overflow-wrap: anywhere; }
.baidu-settings-dialog .form-grid > .field { min-width: 0; }
.settings-page .print-settings, .settings-page .print-settings-form { margin: 0; padding: 0; }
.settings-page .print-settings-form > .panel { min-width: 0; margin: 0; }
.settings-page .print-settings-form > .panel:not(.settings-group) { padding: 18px var(--settings-pad); }
.settings-page .print-bag-layout { align-items: start; }
.settings-page :is(.print-layout-preview, .print-bag-preview) { max-width: 210px; }
.settings-page :is(.print-layout-preview, .print-bag-preview) > small { text-align: center; overflow-wrap: anywhere; }
.settings-page .print-profile-settings > .button { justify-self: start; }
.settings-page .print-mode-row { padding: 14px var(--settings-pad); border-bottom: 1px solid var(--film-border); }
.settings-page .settings-audit-panel { max-height: none; }
.settings-page .settings-audit-list { padding: 0; margin: 0; list-style: none; }
.settings-page .settings-audit-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 13px var(--settings-pad);
  border-bottom: 1px solid var(--film-border);
  overflow-wrap: anywhere;
}
.settings-page .settings-audit-list li:last-child { border-bottom: 0; }
.settings-page .settings-audit-list small { grid-column: 1 / -1; }
.settings-page .settings-audit-list :is(small, time) { color: var(--film-muted); font-size: 12px; }
.settings-page .settings-audit-empty { margin: 0; padding: 16px var(--settings-pad); }
@container settings (max-width: 700px) {
  .settings-page .system-preference-row,
  .settings-page .settings-rows > .field { grid-template-columns: minmax(0, 1fr); }
  .settings-page .settings-field-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-page .settings-index { flex-wrap: wrap; gap: 4px; padding: 7px; }
  .settings-page .settings-index button { padding-inline: 9px; }
  .settings-page .print-mode-row { grid-template-columns: minmax(0, 1fr); }
  .settings-page .print-connection-title { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 430px) {
  .settings-page .settings-audit-list li { grid-template-columns: minmax(0, 1fr); }
}

/* Browser-local print template library. */
.settings-page .print-template-library { margin: 0 0 16px; }
.print-template-library-heading,.print-template-card-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.print-template-library-heading { margin-bottom:16px; }
.print-template-library-heading h3 { margin:0; }
.print-template-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr)); gap:16px; }
.print-template-card { display:grid; grid-template-rows:auto 160px auto auto; gap:12px; min-width:0; padding:16px; border:1px solid var(--film-border); border-radius:10px; background:var(--film-surface); }
.print-template-card.is-applied { border-color:var(--theme-accent,#456e94); }
.print-template-card-heading { align-items:flex-start; font-size:13px; }
.print-template-card-heading strong { overflow-wrap:anywhere; }
.print-template-card-heading > span { flex-shrink:0; font-size:11px; }
.print-template-status { color:var(--theme-accent,#456e94); }
.print-template-thumbnail { display:flex; justify-content:center; align-items:center; min-width:0; padding:12px; background:var(--film-inset); border-radius:6px; }
.print-template-thumbnail > svg { width:auto; height:auto; max-width:100%; max-height:100%; background:white; }
.print-template-card > small { color:var(--film-muted); font-size:11px; line-height:1.6; }
.print-template-card-actions { display:flex; gap:8px; }
.print-template-card-actions .button { flex:1; }
.print-template-name-field { margin-bottom:14px; }
@media (max-width: 700px) {
  .settings-page :is(.print-layout-preview, .print-bag-preview) {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .settings-page :is(.print-layout-preview, .print-bag-preview) > small {
    width: 100%;
    min-width: 0;
    line-height: 1.6;
  }
  .roll-label-editor-controls .roll-label-visible input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
  }
}

 .printer-device-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr)); gap:16px; margin-bottom:16px; }
.printer-device-card { display:grid; gap:10px; padding:18px; min-width:0; text-align:start; font:inherit; color:var(--film-ink); background:var(--film-surface); border:1px solid var(--film-border); border-radius:10px; cursor:pointer; }
.printer-device-card strong { overflow-wrap:anywhere; }
.printer-device-card > span,.printer-device-card small { color:var(--film-muted); font-size:12px; }
.printer-device-card .printer-device-card-link { color:var(--film-accent); }
.printer-device-card:hover,.printer-device-card:focus-visible { border-color:var(--film-accent); }
.printer-settings-dialog { width:min(760px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); overflow:auto; }
.printer-settings-dialog .print-profile-settings { margin-top:18px; padding-top:16px; border-top:1px solid var(--film-border); }
.printer-settings-dialog .actions { justify-content:flex-end; }
.printer-settings-dialog .cancel-action { border-color:var(--theme-danger-text,#a13b35); color:var(--theme-danger-text,#a13b35); }
.print-template-thumbnail[data-overflow="true"] { outline:2px solid var(--theme-danger-text,#a13b35); outline-offset:2px; }

/* Browser-local scanner cards reuse settings rows, shared controls and Film Lab tokens. */
.settings-page .scanner-settings-note{margin:0;padding:16px var(--settings-pad);line-height:1.6;font-size:13px}
.settings-page .scanner-profile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:12px;padding:0 var(--settings-pad)}
.settings-page .scanner-profile-card{align-content:start;gap:8px;padding:16px;border-radius:10px}
.settings-page .scanner-profile-name{display:block;margin-top:4px;color:var(--film-muted);font-size:12px;overflow-wrap:anywhere}
.settings-page .scanner-profile-summary{overflow-wrap:anywhere;line-height:1.5}
.settings-page .settings-device-identity { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--film-ink); }
.settings-page .settings-device-identity strong { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.settings-page .settings-device-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--film-border); border-radius: 8px; background: var(--film-inset); color: var(--film-accent); }
.settings-page .settings-device-icon svg { width: 20px; height: 20px; }
.settings-page .settings-delivery-brand { background: #fff; }
.settings-page .external-printer-settings { display: grid; gap: 16px; }
.settings-page .external-printer-settings > [data-print-helper-management] { margin: 0; }
.settings-page .external-printer-content { display: grid; gap: 14px; padding: 16px var(--settings-pad); }
.settings-page .external-printer-content .print-connection-title { flex-wrap: wrap; }
.settings-page .external-printer-content .print-connection-title p { flex: 1 1 260px; margin: 0; }
/* Match order status native popovers. Keep menu elevation within the control,
   below body-mounted dialogs, rather than lifting background triggers. */
.scanner-settings-dropdown {z-index:0;transition:z-index var(--motion-panel) steps(1,end)}
.scanner-settings-dropdown[open] {z-index:1;transition-duration:0s}
.scanner-settings-dropdown>.create-order-platform-trigger {font:inherit}
.scanner-settings-dropdown>.scanner-settings-options {
  max-height:min(280px,52vh,var(--scanner-menu-height,52vh));overscroll-behavior:contain;
}
.scanner-settings-dropdown>.scanner-settings-options[inert] {pointer-events:none}
.scanner-settings-dropdown[data-side="above"]>.scanner-settings-options {top:auto;bottom:calc(100% + 6px)}
@media (prefers-reduced-motion:reduce) {
  .scanner-settings-dropdown {transition:none !important}
}
.scanner-settings-dialog{width:min(560px,100%);max-height:calc(100dvh - 36px);overflow:auto}
.scanner-settings-dialog h2{margin-bottom:18px}
.scanner-settings-dialog .settings-rows>.field{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:12px 0;border-bottom:1px solid var(--film-border)}
.scanner-settings-dialog .settings-check-row{padding:0 0 12px;border-bottom:1px solid var(--film-border)}
.scanner-settings-dialog .scanner-dialog-note{margin:12px 0;font-size:12px;line-height:1.6}
.scanner-settings-dialog .scanner-dialog-tools{display:flex;flex-wrap:wrap;gap:8px;padding:0}
.scanner-settings-dialog .actions{margin-top:20px;padding-top:16px;border-top:1px solid var(--film-border);flex-wrap:wrap}

.scanner-device-dialog .actions{justify-content:flex-end;gap:8px}
.scanner-device-dialog .actions>.button:is([data-device-scan-close],[data-cancel-action]){order:1;border-color:var(--theme-danger-text,#a13b35);color:var(--theme-danger-text,#a13b35)}
.scanner-device-dialog .actions>.button:is([data-device-scan-close],[data-cancel-action]):hover:not(:disabled){background:var(--theme-danger-bg,#fff4f2);color:var(--theme-danger-text,#a13b35);border-color:var(--theme-danger-text,#a13b35)}

.scan-share-page {
  width: min(46rem, calc(100% - 2rem));
  margin: 2rem auto;
}
.scan-share-page img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 1rem auto;
  object-fit: contain;
}
.scan-share-page [hidden] { display: none; }
.scan-share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-top: 1rem; }
.scan-share-grid article { min-width: 0; padding: 0.75rem; border: 1px solid var(--film-border, #d7dce2); border-radius: 8px; }
.scan-share-grid img { width: 100%; height: 12rem; margin: 0 0 0.75rem; }
.scan-share-grid h2 { font-size: 0.875rem; overflow-wrap: anywhere; }
.scan-share-page .button { min-height: 44px; }
