:root{--ink:#0a0a0a;--muted:#6b6b6b;--line:#dedede;--soft:#f5f5f3;--paper:#fff;--danger:#a31621;--success:#176b3a;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}html{background:#fff}body{margin:0;background:#fff;color:var(--ink);font-size:15px;line-height:1.45}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #111;outline-offset:3px}.skip-link{position:fixed;left:1rem;top:-100px;z-index:100;background:#fff;border:2px solid #000;padding:.75rem}.skip-link:focus{top:1rem}.topbar{position:sticky;top:0;z-index:30;height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#000;color:#fff;font-size:12px;font-weight:800;letter-spacing:.03em}.brand strong{display:block;font-size:13px;line-height:1;letter-spacing:.08em}.brand small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.topbar-actions{display:flex;align-items:center;gap:14px}.environment-badge{border:1px solid var(--line);border-radius:999px;padding:5px 9px;font-size:9px;font-weight:700;letter-spacing:.12em}.user-label{font-size:13px;font-weight:600}.shell{display:grid;grid-template-columns:230px minmax(0,1fr);max-width:1680px;margin:auto;min-height:calc(100vh - 68px)}.sidebar{display:flex;position:sticky;top:68px;height:calc(100vh - 68px);flex-direction:column;justify-content:space-between;padding:28px 18px;border-right:1px solid var(--line);background:#fff}.nav-caption{margin:0 10px 10px;color:#8a8a8a;font-size:10px;font-weight:700;letter-spacing:.15em;text-transform:uppercase}.nav-section{margin-top:32px}.nav-link{display:flex;align-items:center;gap:13px;padding:10px 11px;border-radius:8px;color:#555;font-size:14px}.nav-link span{width:20px;color:#aaa;font-size:10px;font-variant-numeric:tabular-nums}.nav-link:hover{background:var(--soft);color:#000}.nav-link.active{background:#000;color:#fff;font-weight:650}.nav-link.active span{color:#bbb}.system-state{display:grid;grid-template-columns:10px 1fr;gap:2px 8px;padding:14px;border:1px solid var(--line);border-radius:12px;font-size:12px}.system-state small{grid-column:2;color:var(--muted)}.status-dot{width:8px;height:8px;margin-top:4px;border-radius:50%;background:#27a55f;box-shadow:0 0 0 4px #e8f6ed}.content{min-width:0;padding:36px 42px 72px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}.eyebrow{margin:0 0 8px;color:#777;font-size:10px;font-weight:750;letter-spacing:.15em;text-transform:uppercase}.page-head h1,.auth-card h2{margin:0;letter-spacing:-.035em}.page-head h1{font-size:clamp(28px,4vw,42px);line-height:1.07}.page-head p{max-width:720px;margin:9px 0 0;color:var(--muted)}.page-actions{display:flex;flex-wrap:wrap;gap:9px}.button{display:inline-flex;min-height:40px;align-items:center;justify-content:center;border:1px solid #bbb;border-radius:9px;background:#fff;padding:8px 14px;color:#111;font-weight:650;cursor:pointer}.button:hover{border-color:#000;background:#fafafa}.button-primary{border-color:#000;background:#000;color:#fff}.button-primary:hover{background:#242424;color:#fff}.button-quiet{min-height:34px;padding:5px 10px;font-size:12px}.button-wide{width:100%;min-height:46px}.button-danger{border-color:#b24;color:#90152a}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--line);gap:1px}.metric{background:#fff;padding:22px}.metric-link{display:block;transition:background .15s ease}.metric-link:hover{background:#f8f8f6}.metric-value{font-size:34px;font-weight:700;letter-spacing:-.04em}.metric-label{margin-top:7px;font-weight:650}.metric-note{margin-top:4px;color:var(--muted);font-size:12px}.grid-main{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.75fr);gap:22px;margin-top:22px}.stack{display:grid;gap:20px}.card{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff}.card-dark{background:#0b0b0b;color:#fff;border-color:#0b0b0b}.card-pad{padding:20px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 20px;border-bottom:1px solid var(--line)}.card-head h2,.card h2{margin:0;font-size:16px}.card-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.text-link{text-decoration:underline;text-underline-offset:4px;font-size:12px;font-weight:650}.list-row{display:grid;grid-template-columns:90px 100px minmax(130px,1fr) 155px 68px;align-items:center;gap:12px;padding:15px 20px;border-top:1px solid #eee}.list-row:first-child{border-top:0}.list-row:hover{background:#fafafa}.mono{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}.strong{font-weight:700}.muted{color:var(--muted)}.small{font-size:12px}.pill{display:inline-flex;width:max-content;align-items:center;border:1px solid var(--line);border-radius:999px;padding:5px 9px;font-size:11px;white-space:nowrap}.pill-dark{border-color:#000;background:#000;color:#fff}.pill-success{border-color:#82bc98;color:#176b3a;background:#f1faf4}.pill-warning{border-color:#d4b579;color:#7d5410;background:#fffaf0}.table-card{overflow:auto;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#aaa #f3f3f1;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:14px}.data-table{width:100%;border-collapse:collapse;white-space:nowrap}.data-table th{text-align:left;padding:12px 16px;border-bottom:1px solid var(--line);background:#f8f8f7;color:#777;font-size:10px;letter-spacing:.08em;text-transform:uppercase}.data-table td{padding:14px 16px;border-bottom:1px solid #eee}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fbfbfa}.searchbar{display:flex;gap:9px;margin-bottom:18px}.searchbar input,.form-stack input,.form-stack select,.form-stack textarea,.field input,.field select,.field textarea{width:100%;min-height:43px;border:1px solid #cfcfcf;border-radius:8px;background:#fff;padding:9px 11px;color:#111}.searchbar input{max-width:440px}.form-stack input:focus,.form-stack select:focus,.form-stack textarea:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#000}.form-stack{display:grid;gap:16px;margin-top:22px}.form-stack label,.field label{display:grid;gap:6px;font-size:12px;font-weight:650}.form-stack p{display:grid;gap:6px;margin:0}.form-stack ul.errorlist,.field ul.errorlist{margin:3px 0 0;padding:0;color:var(--danger);font-size:12px;list-style:none}.form-errors{padding:11px 13px;border:1px solid #dfadb3;border-radius:8px;background:#fff5f6;color:#861726}.checkbox-field{display:grid!important;grid-template-columns:20px 1fr;align-items:start;gap:9px!important;color:#444;font-weight:500!important;line-height:1.35}.checkbox-field input{width:18px!important;min-height:18px!important;margin:1px 0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.form-grid .full{grid-column:1/-1}.form-section{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}.form-section h2{margin:0 0 14px;font-size:17px}.form-row-card{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(110px,1fr));gap:12px;padding:14px;border:1px solid var(--line);border-radius:10px;margin-top:10px}.helptext{color:var(--muted);font-size:11px}.messages{display:grid;gap:8px;margin-bottom:18px}.message{padding:11px 14px;border:1px solid var(--line);border-radius:9px;background:#f8f8f7}.message.success{border-color:#9ecbab;background:#f3faf5}.message.warning{border-color:#dfc691;background:#fffaf0}.message.error{border-color:#dfadb3;background:#fff5f6}.definition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}.definition-grid>div{padding:15px 17px;border-bottom:1px solid var(--line)}.definition-grid>div:nth-child(odd){border-right:1px solid var(--line)}.definition-grid dt{color:var(--muted);font-size:11px}.definition-grid dd{margin:5px 0 0;font-weight:600}.empty-state{padding:48px 20px;text-align:center;color:var(--muted)}.empty-state strong{display:block;margin-bottom:5px;color:#111;font-size:18px}.trace-result{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:28px;margin-top:22px}.qr-image{width:220px;height:220px;border:1px solid var(--line);border-radius:12px;padding:10px;image-rendering:pixelated}.integration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.integration-card{padding:17px;border:1px solid var(--line);border-radius:12px}.integration-card h2{margin:0 0 10px;font-size:15px}.auth-page{background:#0b0b0b}.auth-shell{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(480px,1.1fr);min-height:100vh}.auth-brand-panel{display:flex;flex-direction:column;justify-content:space-between;padding:48px;color:#fff;background:#0a0a0a}.brand-light small{color:#aaa}.brand-mark.inverse{background:#fff;color:#000}.auth-brand-panel h1{margin:15px 0;font-size:clamp(48px,7vw,88px);line-height:.92;letter-spacing:-.065em}.auth-brand-panel p{max-width:520px;color:#aaa;font-size:16px}.eyebrow.light{color:#aaa}.auth-form-panel{display:grid;place-items:center;padding:28px;background:#f4f4f1}.auth-card{width:min(100%,460px);padding:38px;border:1px solid #ddd;border-radius:18px;background:#fff;box-shadow:0 22px 70px rgba(0,0,0,.09)}.auth-card h2{font-size:34px}.auth-card>.muted{margin:10px 0 0}.security-note{margin:20px 0 0;padding-top:17px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.totp-qr{display:block;margin:20px auto;border:1px solid var(--line);border-radius:12px}.secret-code{display:block;overflow:auto;margin-top:8px;padding:10px;background:#f3f3f1;font-size:12px}.mobile-only{display:none}.icon-button{width:40px;height:40px;border:1px solid var(--line);border-radius:8px;background:#fff}.danger-text{color:var(--danger)}@media(max-width:1080px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-main{grid-template-columns:1fr}.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:28px 26px 64px}}@media(max-width:820px){.mobile-only{display:inline-grid;place-items:center}.topbar{padding:0 14px;gap:10px}.topbar>.brand{margin-right:auto}.brand small,.environment-badge,.user-label{display:none}.shell{display:block}.sidebar{display:none;position:fixed;z-index:25;top:68px;left:0;width:min(86vw,300px);height:calc(100vh - 68px);box-shadow:18px 0 50px rgba(0,0,0,.12)}.sidebar.open{display:flex}.content{padding:24px 16px 56px}.page-head{align-items:flex-start;flex-direction:column}.metrics{grid-template-columns:1fr 1fr}.metric{padding:17px}.metric-value{font-size:28px}.list-row{grid-template-columns:74px minmax(0,1fr) 55px}.list-row>*:nth-child(2),.list-row>*:nth-child(4){display:none}.form-grid,.definition-grid,.integration-grid{grid-template-columns:1fr}.definition-grid>div:nth-child(odd){border-right:0}.form-row-card{grid-template-columns:1fr 1fr}.form-row-card>:first-child{grid-column:1/-1}.trace-result{grid-template-columns:1fr}.auth-shell{display:block}.auth-brand-panel{display:none}.auth-form-panel{min-height:100vh;padding:18px}.auth-card{padding:27px 22px}.auth-card h2{font-size:29px}.data-table{font-size:13px}}@media(max-width:420px){.metrics{grid-template-columns:1fr}.page-actions,.page-actions .button{width:100%}.topbar-actions{gap:4px}.form-row-card{grid-template-columns:1fr}.form-row-card>:first-child{grid-column:auto}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
.mapping-inline-form{display:flex;align-items:center;gap:8px}.mapping-inline-form select{min-width:260px;min-height:36px;border:1px solid #cfcfcf;border-radius:8px;background:#fff;padding:6px 9px}
.queue-live{display:flex;align-items:center;gap:8px;color:var(--success);font-size:12px}.queue-live .status-dot{margin-top:0}.queue-offline .queue-live{color:var(--danger)}.queue-offline .queue-live .status-dot{background:var(--danger);box-shadow:0 0 0 4px #fbe9eb}.pill-danger{border-color:#dfadb3;color:var(--danger);background:#fff5f6}.data-table tbody tr.queue-row-overdue td{background:#fff8f8}.data-table tbody tr.queue-row-overdue:hover td{background:#fff1f2}
.brand-logo{display:block;width:42px;height:42px;flex:0 0 42px;object-fit:contain}.auth-brand-logo{border-radius:50%;background:#fff;padding:4px}.nav-link{gap:0}
.order-journey{overflow:visible}.journey-list{padding:0 20px}.journey-step{display:grid;grid-template-columns:18px minmax(0,1fr);gap:14px;position:relative;padding:19px 0;border-top:1px solid var(--line)}.journey-step:first-child{border-top:0}.journey-step:not(:last-child)::before{content:"";position:absolute;left:8px;top:34px;bottom:-20px;width:1px;background:var(--line)}.journey-marker{position:relative;z-index:1;width:17px;height:17px;margin-top:3px;border:4px solid #fff;border-radius:50%;background:#aaa;box-shadow:0 0 0 1px #aaa}.journey-step-done .journey-marker,.journey-step-skipped .journey-marker{background:var(--success);box-shadow:0 0 0 1px var(--success)}.journey-step-active .journey-marker{background:#111;box-shadow:0 0 0 1px #111}.journey-step-attention .journey-marker{background:#b57a13;box-shadow:0 0 0 1px #b57a13}.journey-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.journey-title h3{margin:0;font-size:15px}.journey-summary{margin:7px 0 0;font-weight:650}.journey-detail,.journey-next{margin:4px 0 0;color:var(--muted);font-size:12px}.journey-next strong{color:#333}.journey-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}.journey-pill-done,.journey-pill-skipped{border-color:#82bc98;color:var(--success);background:#f1faf4}.journey-pill-active{border-color:#222;background:#111;color:#fff}.journey-pill-attention{border-color:#d4b579;color:#7d5410;background:#fffaf0}.journey-pill-pending{color:var(--muted);background:#fafafa}@media(max-width:760px){.order-journey .card-head,.journey-title{align-items:flex-start;flex-direction:column}.journey-list{padding:0 16px}.journey-step{gap:11px}.journey-actions,.journey-actions .button,.journey-actions form{width:100%}}
.help-quick-grid{margin-top:14px}.help-quick-card{display:flex;min-height:154px;flex-direction:column}.help-quick-card .text-link{margin-top:auto}.help-search{margin:14px 0}.help-manual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.help-manual-card{display:flex;min-height:245px;flex-direction:column}.help-manual-card h2{margin-top:15px}.help-manual-card .page-actions{margin-top:auto}.help-manual-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}.help-document-facts{margin-bottom:22px}.help-document-facts .help-hash{grid-column:1/-1;border-right:0}.help-document-facts .help-hash dd{overflow-wrap:anywhere}.manual-source{overflow:auto}.manual-source pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.65 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#222}@media(max-width:760px){.help-manual-grid{grid-template-columns:1fr}.help-manual-meta{align-items:flex-start;flex-direction:column}.help-manual-card{min-height:0}.help-search{flex-wrap:wrap}.help-search input{max-width:none}.help-document-facts .help-hash{grid-column:auto}}
.uat-filters{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(210px,1fr) minmax(210px,1fr) auto auto;align-items:end;gap:10px;margin-bottom:16px}.uat-filters label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:650}.uat-filters input,.uat-filters select{width:100%;min-height:43px;border:1px solid #cfcfcf;border-radius:8px;background:#fff;padding:9px 11px;color:#111}.uat-table td:nth-child(4){max-width:360px;white-space:normal}.pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:18px}.uat-card-head{margin:-20px -20px 20px}.uat-assessment-grid{margin-top:0}.uat-assessment-grid .help-hash{grid-column:1/-1;border-right:0}.uat-assessment-grid .help-hash dd{overflow-wrap:anywhere}@media(max-width:1080px){.uat-filters{grid-template-columns:1fr 1fr}.uat-filters label:first-child{grid-column:1/-1}}@media(max-width:760px){.uat-filters{grid-template-columns:1fr}.uat-filters label:first-child{grid-column:auto}.uat-filters .button{width:100%}.uat-card-head{align-items:flex-start;flex-direction:column}.uat-table td:nth-child(4){max-width:none}}
.uat-readiness-pill{width:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.list-filters{display:grid;grid-template-columns:minmax(230px,1.5fr) repeat(4,minmax(145px,1fr)) auto auto;align-items:end;gap:10px;margin:16px 0}.list-filters label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:650}.list-filters input,.list-filters select{width:100%;min-height:43px;border:1px solid #cfcfcf;border-radius:8px;background:#fff;padding:9px 11px;color:#111}.list-filters input:focus,.list-filters select:focus{border-color:#000}@media(max-width:1280px){.list-filters{grid-template-columns:repeat(3,minmax(170px,1fr)) auto}.list-filters label:first-child{grid-column:span 2}}@media(max-width:760px){.list-filters{grid-template-columns:1fr}.list-filters label:first-child{grid-column:auto}.list-filters .button{width:100%}.pagination{flex-wrap:wrap}}
.job-actions{display:flex;align-items:flex-start;gap:7px}.job-cancel>summary{list-style:none}.job-cancel>summary::-webkit-details-marker{display:none}.job-cancel[open]{min-width:300px}.job-cancel[open]>form{display:grid;width:300px;gap:10px;margin-top:8px;padding:13px;border:1px solid var(--line);border-radius:10px;background:#fff;white-space:normal}.job-cancel label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:650}.job-cancel textarea{width:100%;min-height:68px;resize:vertical;border:1px solid #cfcfcf;border-radius:8px;padding:8px;color:#111}@media(max-width:760px){.job-actions{min-width:270px}.job-cancel[open],.job-cancel[open]>form{width:270px;min-width:270px}}

/* Operational lists: compact actions and desktop-safe tables. */
.button-action{min-height:44px;border-radius:12px;padding:9px 18px;background:linear-gradient(180deg,#1c1c1c 0%,#050505 100%);box-shadow:0 8px 20px rgba(0,0,0,.13),inset 0 1px rgba(255,255,255,.12)}
.button-action:hover{background:linear-gradient(180deg,#303030 0%,#111 100%);box-shadow:0 10px 24px rgba(0,0,0,.17)}
.button-filter{min-width:132px;border-color:#d8c5a5;border-radius:11px;background:linear-gradient(180deg,#fbf7ef 0%,#f1e7d7 100%);color:#392b1c;box-shadow:0 4px 12px rgba(75,52,25,.08)}
.button-filter::after{content:"→";margin-left:10px;font-size:16px;line-height:1}
.button-filter:hover{border-color:#a98755;background:#efe0c8;color:#24180d}
.button-reset{border-color:transparent;background:#f3f3f1;color:#555}
.button-reset:hover{border-color:#d2d2cf;background:#ececea;color:#111}
.list-filters.operational-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
.operational-filters label{flex:1 1 160px;min-width:0}
.operational-filters label:first-child{flex:1.45 1 250px}
.operational-filters>.button{flex:0 0 auto}
.table-card-fit{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain}
.table-card::-webkit-scrollbar{width:10px;height:10px}
.table-card::-webkit-scrollbar-track{background:#f3f3f1}
.table-card::-webkit-scrollbar-thumb{border:2px solid #f3f3f1;border-radius:999px;background:#aaa}
.table-card::-webkit-scrollbar-thumb:hover{background:#777}
.operations-table{width:100%;min-width:1024px;table-layout:fixed;white-space:normal}
.operations-table th,.operations-table td{vertical-align:top;overflow-wrap:anywhere}
.operations-table th{padding:11px 12px}
.operations-table td{padding:13px 12px}
.operations-table .date-cell{white-space:normal;overflow-wrap:normal}
.operations-table .quantity-cell{white-space:normal;overflow-wrap:anywhere;font-size:13px}
.operations-table .pill{width:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.operations-table .button{max-width:100%;min-width:0;white-space:normal;text-align:center}
.table-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px}
.orders-table{min-width:900px;font-size:14px}
.orders-table th,.orders-table td{padding-inline:10px}
.orders-table th:nth-child(1){width:14%}.orders-table th:nth-child(2){width:12%}.orders-table th:nth-child(3){width:18%}.orders-table th:nth-child(4){width:34%}.orders-table th:nth-child(5){width:11%}.orders-table th:nth-child(6){width:11%}
.order-products{display:grid;gap:5px;margin:0;padding:0;list-style:none}.order-products li{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.order-products li>span:first-child{min-width:0;overflow-wrap:anywhere}.order-products li>span:last-child{flex:0 0 auto}.order-scope-nav{display:flex;flex-wrap:wrap;gap:9px;margin:-10px 0 20px}
.warehouse-table th:nth-child(1){width:10%}.warehouse-table th:nth-child(2){width:15%}.warehouse-table th:nth-child(3){width:9%}.warehouse-table th:nth-child(4){width:13%}.warehouse-table th:nth-child(5){width:13%}.warehouse-table th:nth-child(6){width:12%}.warehouse-table th:nth-child(7){width:9%}.warehouse-table th:nth-child(8){width:9%}.warehouse-table th:nth-child(9){width:10%}
.production-task-table th:nth-child(1){width:11%}.production-task-table th:nth-child(2){width:11%}.production-task-table th:nth-child(3){width:23%}.production-task-table th:nth-child(4){width:17%}.production-task-table th:nth-child(5){width:10%}.production-task-table th:nth-child(6){width:7%}.production-task-table th:nth-child(7){width:10%}.production-task-table th:nth-child(8){width:11%}
.demand-table th:nth-child(1){width:13%}.demand-table th:nth-child(2){width:11%}.demand-table th:nth-child(3){width:10%}.demand-table th:nth-child(4){width:25%}.demand-table th:nth-child(5){width:15%}.demand-table th:nth-child(6){width:17%}.demand-table th:nth-child(7){width:9%}
.replenishment-table th:nth-child(1){width:11%}.replenishment-table th:nth-child(2){width:21%}.replenishment-table th:nth-child(3){width:13%}.replenishment-table th:nth-child(4){width:11%}.replenishment-table th:nth-child(5){width:12%}.replenishment-table th:nth-child(6){width:12%}.replenishment-table th:nth-child(7){width:12%}.replenishment-table th:nth-child(8){width:8%}
.packaging-queue-table{min-width:1240px}
.packaging-queue-table th:nth-child(1){width:10%}.packaging-queue-table th:nth-child(2){width:8%}.packaging-queue-table th:nth-child(3){width:8%}.packaging-queue-table th:nth-child(4){width:7%}.packaging-queue-table th:nth-child(5){width:16%}.packaging-queue-table th:nth-child(6){width:13%}.packaging-queue-table th:nth-child(7),.packaging-queue-table th:nth-child(8),.packaging-queue-table th:nth-child(9){width:10%}.packaging-queue-table th:nth-child(10){width:8%}
.packaging-queue-table .order-products li{display:grid;gap:3px}.packaging-queue-table .order-products li+li{border-top:1px solid var(--line);padding-top:8px}.packaging-queue-table .order-products li>span:last-child{white-space:normal}
.order-source-cards{margin:0 0 22px}.order-source-cards .is-selected{background:#f3f7f4;box-shadow:inset 0 -3px var(--success)}
.recipe-deleted-rows:not([hidden]){display:flex;flex-wrap:wrap;gap:8px}.recipe-deleted-rows .button{white-space:normal;text-align:left}
[data-recipe-calculator] tr[hidden]{display:none!important}
.packages-table th:nth-child(1){width:25%}.packages-table th:nth-child(2){width:15%}.packages-table th:nth-child(3){width:20%}.packages-table th:nth-child(4){width:10%}.packages-table th:nth-child(5){width:15%}.packages-table th:nth-child(6){width:15%}
@media(max-width:1200px){.operational-filters label{flex-basis:210px}}
@media(max-width:760px){.operational-filters label,.operational-filters label:first-child{flex:1 1 100%}.operational-filters>.button{flex:1 1 100%}.button-filter::after{margin-left:12px}}

/* Ozon exact master-data review: bounded bulk approval with visible safeguards. */
.ozon-bulk-review{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(380px,1.15fr);gap:24px;margin:18px 0;padding:20px;border:1px solid #d4b579;border-radius:14px;background:linear-gradient(135deg,#fffaf0 0%,#fff 68%)}
.ozon-bulk-review h3{margin:0;font-size:18px}
.ozon-bulk-review p:not(.eyebrow){margin:8px 0 0;color:#665640;font-size:13px}
.ozon-bulk-review-form{display:grid;gap:11px}
.ozon-bulk-review-form>label:not(.checkbox-field){display:grid;gap:6px;color:#665640;font-size:11px;font-weight:650}
.ozon-bulk-review-form textarea{width:100%;min-height:70px;resize:vertical;border:1px solid #cdbb9d;border-radius:9px;background:#fff;padding:9px 11px;color:#111}
.ozon-bulk-review-form .checkbox-field{padding:10px 12px;border:1px solid #ead8b9;border-radius:9px;background:rgba(255,255,255,.75)}
@media(max-width:900px){.ozon-bulk-review{grid-template-columns:1fr}.ozon-bulk-review-form .button{width:100%}}

/* Responsive shell: scroll the navigation, keep status visible, and reserve mobile controls. */
.sidebar{min-height:0;justify-content:flex-start;overflow:hidden}
.sidebar>nav{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding-right:4px}
.sidebar>nav::-webkit-scrollbar{width:8px}
.sidebar>nav::-webkit-scrollbar-thumb{border:2px solid #fff;border-radius:999px;background:#b8b8b5}
.system-state{flex:0 0 auto;margin-top:16px}
.icon-button{flex:0 0 40px;min-width:40px}
.topbar,.topbar>.brand,.topbar-actions{min-width:0}

@media(max-width:1280px){
  .mobile-only{display:inline-grid;place-items:center}
  .topbar{padding:0 14px;gap:10px}
  .topbar>.brand{margin-right:auto}
  .brand small,.environment-badge,.user-label{display:none}
  .shell{display:block}
  .sidebar{display:none;position:fixed;z-index:25;top:68px;left:0;width:min(86vw,300px);height:calc(100vh - 68px);box-shadow:18px 0 50px rgba(0,0,0,.12)}
  .sidebar.open{display:flex}
  .page-head{align-items:flex-start;flex-direction:column}
}

@media(max-width:600px){
  .topbar>.brand{flex:0 0 42px;gap:0}
  .topbar>.brand>span{display:none}
  .topbar-actions{flex:0 0 auto;gap:4px}
  .topbar-actions .shift-link{flex:0 0 96px;width:96px;max-width:96px}
  .topbar-actions .notification-link{flex:0 0 56px;width:56px;justify-content:center}
  .topbar-actions>form{flex:0 0 58px;width:58px}
  .topbar-actions>form .button{width:100%;padding-inline:8px}
  .operational-section-head{align-items:flex-start;flex-direction:column}
}

/* Long reconciliation reasons stay readable without widening the whole table. */
.ozon-catalog-gap-reason{white-space:normal}
.ozon-catalog-gap-reason .pill{width:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.production-execution-table{white-space:normal;min-width:1180px}
.production-execution-table td{vertical-align:top}
.production-execution-table tbody tr.execution-pending td:nth-child(5){background:#fff4bf}
.production-execution-table tbody tr.execution-pending:hover td:nth-child(5){background:#ffed9a}

/* Recipe and receiving self-service: touch-safe choices without horizontal page drift. */
.recipe-self-service-page,.inventory-self-service-page{width:100%;max-width:100%;min-width:0;overflow-x:clip}
.recipe-self-service-page .page-head>div,.recipe-self-service-page .card-head>div,.inventory-self-service-page .page-head>div,.inventory-self-service-page .card-head>div{min-width:0}
.recipe-create-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0;padding:0;list-style:none}
.recipe-create-steps li{display:grid;align-content:start;gap:6px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fafaf8}
.recipe-create-steps span{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.recipe-output-picker{min-width:0;margin:0;padding:0;border:0}
.recipe-output-picker legend{margin-bottom:7px;font-size:12px;font-weight:650}
.recipe-output-picker>label,.recipe-list-search>label,.visually-secondary-label{display:block;margin-bottom:6px;font-size:12px;font-weight:650}
.recipe-output-picker>input,.recipe-list-search>input,.catalog-choice-field>input[type="search"]{width:100%;min-height:44px;border:1px solid #cfcfcf;border-radius:8px;background:#fff;padding:9px 11px;color:#111}
.recipe-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:320px;margin-top:10px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:10px;background:#fff;padding:6px;gap:4px}
.recipe-choice-option{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:9px;min-height:46px;padding:8px 10px;border-radius:8px;cursor:pointer;overflow-wrap:anywhere}
.recipe-choice-option[hidden]{display:none}
.recipe-choice-option:hover{background:var(--soft)}
.recipe-choice-option:has(input:checked){background:#f1faf4;box-shadow:inset 0 0 0 1px #82bc98}
.recipe-choice-option input{width:20px!important;min-height:20px!important;margin:0}
.recipe-output-picker:not(.is-enhanced) .recipe-choice-list,.recipe-output-picker:not(.is-enhanced) .recipe-selection-summary{display:none}
.enhanced-native-select{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.recipe-selection-summary{margin-top:9px;color:var(--success);font-size:12px;font-weight:650}
.recipe-selection-summary.is-empty{color:var(--danger)}
.recipe-choice-empty{margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:9px;color:var(--muted);font-size:12px}
.recipe-factor-guide{display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px;margin-top:8px;padding:10px 12px;border:1px solid #d4b579;border-radius:9px;background:#fffaf0;font-size:12px}
.recipe-factor-guide code{padding:3px 6px;border-radius:5px;background:#fff;font-weight:700}
.recipe-factor-guide span{width:100%;color:#665640}
.recipe-volume-calculator{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fafaf8}
.recipe-volume-calculator>label{display:grid;gap:6px;font-size:12px;font-weight:650}
.recipe-volume-input{display:flex;align-items:center;gap:7px}
.recipe-volume-input input{width:150px;min-width:0;flex:1 1 150px}
.recipe-volume-input>span{flex:0 0 auto;white-space:nowrap}
.recipe-volume-calculator>.field-help{flex:1 1 260px;margin:0}
.recipe-ingredient-table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid var(--line);border-radius:10px}
.recipe-ingredient-table{width:100%;min-width:1040px;border:0;border-collapse:collapse;table-layout:fixed}
.recipe-ingredient-table th,.recipe-ingredient-table td{padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:top;white-space:normal}
.recipe-ingredient-table th{background:#f7f7f5;font-size:11px;text-align:left}
.recipe-ingredient-table th:nth-child(1){width:84px}
.recipe-ingredient-table th:nth-child(2){width:260px}
.recipe-ingredient-table th:nth-child(3),.recipe-ingredient-table th:nth-child(4){width:135px}
.recipe-ingredient-table th:nth-child(5){width:190px}
.recipe-ingredient-table th:nth-child(6),.recipe-ingredient-table th:nth-child(7){width:115px}
.recipe-ingredient-table input,.recipe-ingredient-table select{width:100%;min-width:0}
.recipe-calculated-quantity{font-variant-numeric:tabular-nums}
.recipe-calculated-quantity strong,.recipe-calculated-quantity small{display:block}
.recipe-calculated-quantity small{margin-top:4px;color:var(--muted)}
.recipe-ingredient-options>td{padding:7px 10px 12px;background:#fcfcfa}
.recipe-ingredient-options summary,.recipe-advanced-settings>summary{cursor:pointer}
.recipe-ingredient-options .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.recipe-advanced-settings[open]>summary{margin-bottom:14px}
.recipe-form-errors{margin-bottom:24px;scroll-margin-top:100px;overflow-wrap:anywhere}
.recipe-form-errors h2{margin:0 0 8px;font-size:20px}
.recipe-form-errors ul{margin:12px 0 0;padding-left:22px;display:grid;gap:8px}
.recipe-form-errors a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.recipe-form-errors:focus{outline:2px solid var(--danger);outline-offset:4px}
.recipe-ingredient-picker .combobox-results{position:static;max-height:260px;margin:8px 0;box-shadow:none}
.recipe-ingredient-picker .combobox-option{white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.4}
.recipe-workspace-table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid var(--line);border-radius:12px;background:#fff}
.recipe-workspace-table{width:100%;min-width:1700px;border-collapse:collapse;table-layout:fixed}
.recipe-workspace-table th,.recipe-workspace-table td{padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.recipe-workspace-table th{background:#f7f7f5;font-size:11px;text-align:left;line-height:1.35}
.recipe-workspace-table th:nth-child(1){width:270px}.recipe-workspace-table th:nth-child(2){width:140px}.recipe-workspace-table th:nth-child(3){width:140px}.recipe-workspace-table th:nth-child(4){width:110px}.recipe-workspace-table th:nth-child(5){width:210px}.recipe-workspace-table th:nth-child(6){width:280px}.recipe-workspace-table th:nth-child(7){width:220px}.recipe-workspace-table th:nth-child(8){width:190px}
.recipe-stage-add-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.recipe-stage-add-actions .button{padding:8px;font-size:12px}
.recipe-workspace-stage-row td{border-top:2px solid #c8b75b;background:#fff9d8}.recipe-workspace-table label{display:block;margin-bottom:6px;font-size:12px}
.recipe-workspace-table input,.recipe-workspace-table select,.recipe-workspace-table textarea{width:100%;min-width:0}
.recipe-workspace-table textarea{min-height:92px;resize:vertical}
@media(max-width:380px){.topbar{padding-inline:10px;gap:6px}.topbar>.brand{flex-basis:36px}.topbar .brand-logo{width:32px;height:32px}.topbar-actions .shift-link{flex-basis:64px;width:64px;max-width:64px}}
.packing-workspace{border-color:#d4c575;scroll-margin-top:100px}.packing-scan-form{display:flex;gap:16px;align-items:flex-start}.packing-scan-form .field{flex:1;min-width:0}.packing-progress-row{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--line)}.packing-progress-row>div{min-width:0;overflow-wrap:anywhere}.packing-workspace[aria-busy=true]{opacity:.8}.production-batch-picker{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:700px){.packing-scan-form,.packing-progress-row{flex-direction:column;gap:10px}.packing-scan-form .field,.packing-scan-form>button{width:100%}.recipe-workspace-table{display:block;min-width:0}.recipe-workspace-table thead{display:none}.recipe-workspace-table tbody{display:block}.recipe-workspace-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:2px solid var(--line)}.recipe-workspace-table tr[hidden]{display:none}.recipe-workspace-table td{display:block;min-width:0}.recipe-workspace-table td::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.recipe-workspace-table td:first-child,.recipe-workspace-table td:nth-child(n+5){grid-column:1/-1}.recipe-workspace-table td:nth-child(4){grid-column:1/-1}.recipe-workspace-table-wrap{overflow-x:visible}.recipe-stage-add-actions{flex-wrap:wrap}}
.recipe-workspace-stage-row{background:#f3faf5}.recipe-workspace-control-row{background:#fffaf0}.recipe-workspace-ingredient-row{background:#fff}
.recipe-workspace-row .pill{display:inline-flex;margin-bottom:7px}
.recipe-mass-readout{display:grid;gap:3px;margin-top:6px;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.recipe-calculated-quantity [data-recipe-calculated-mass]{margin-top:5px;line-height:1.35}
.recipe-control-range{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.recipe-control-range[hidden]{display:none}
.recipe-control-range label{display:grid;gap:3px;color:var(--muted);font-size:10px}
.recipe-delete-row{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:12px}.recipe-delete-row input{width:20px!important;min-height:20px!important;margin:0}
.recipe-row-settings>summary{cursor:pointer;font-size:12px;font-weight:650}.recipe-row-settings-panel{display:grid;gap:9px;margin-top:8px}.recipe-row-settings-panel .field{min-width:260px}
.recipe-workspace-actions{flex-wrap:wrap}.recipe-table-scroll-hint{margin:12px 0 0}
.recipe-list-search{display:grid;max-width:720px;gap:0;margin-bottom:20px}
.recipe-list-search .field-help{margin-top:6px}
.recipe-output-summary{display:grid;gap:6px;margin:9px 0 0;padding:0;list-style:none}
.recipe-output-summary li{display:flex;flex-wrap:wrap;gap:4px 8px;min-width:0;overflow-wrap:anywhere}
.recipe-filter-empty{border:1px solid var(--line);border-radius:14px}
.catalog-choice-field .field-help{margin:6px 0 8px}
.recipe-self-service-page .button,.inventory-self-service-page .button,.recipe-self-service-page input,.inventory-self-service-page input,.recipe-self-service-page select,.inventory-self-service-page select{min-height:44px}
@media(max-width:760px){.recipe-create-steps,.recipe-choice-list{grid-template-columns:1fr}.recipe-self-service-page .card-head,.inventory-self-service-page .card-head{align-items:flex-start;flex-direction:column}.recipe-self-service-page .card-head .page-actions,.inventory-self-service-page .card-head .page-actions{width:100%}.recipe-self-service-page .card-head .page-actions .button,.inventory-self-service-page .card-head .page-actions .button{flex:1 1 100%}.recipe-output-summary li{display:grid;gap:2px}.recipe-self-service-page .table-card,.inventory-self-service-page .table-card{width:100%;max-width:100%;min-width:0}.recipe-ingredient-options .form-grid{grid-template-columns:1fr}.recipe-workspace-actions .button{flex:1 1 100%}}
@media(max-width:420px){.recipe-self-service-page .card-pad,.inventory-self-service-page .card-pad{padding:16px}.recipe-self-service-page .card-head,.inventory-self-service-page .card-head{padding:15px}.recipe-create-steps li{padding:14px}.recipe-factor-guide{align-items:flex-start;flex-direction:column}.recipe-factor-guide span{width:auto}}

/* Customer worksheet: the same eight columns and merged stage cells at every width. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.production-operator-workspace{width:100%;max-width:100%;min-width:0;overflow-x:clip}
.shell:has([data-production-execution]){max-width:2400px}
.production-execution-heading{align-items:flex-start;padding-inline:0}
.production-execution-heading>div{min-width:0}
.production-execution-stop{margin-top:14px}
.production-table-scroll-hint{margin:10px 0 6px}
.production-execution-shell{width:100%;max-width:100%;min-width:0;max-height:76vh;max-height:76dvh;overflow:auto;overscroll-behavior-inline:contain;scrollbar-gutter:stable;position:relative;isolation:isolate;border-radius:8px}
.production-operator-workspace .production-execution-table{width:100%;min-width:1560px;table-layout:fixed;white-space:normal;border-collapse:separate;border-spacing:0}
.production-operator-workspace .production-execution-table th,.production-operator-workspace .production-execution-table td{min-width:0;padding:12px 10px;vertical-align:top;overflow-wrap:break-word;word-break:normal;border-right:1px solid #d7d7d1;border-bottom:1px solid #d7d7d1;line-height:1.5;font-size:14px}
.production-execution-table col.worksheet-ingredient{width:14%}
.production-execution-table col.worksheet-number{width:7%}
.production-execution-table col.worksheet-grams{width:7%}
.production-execution-table col.worksheet-fact{width:16%}
.production-execution-table col.worksheet-technology{width:19%}
.production-execution-table col.worksheet-control{width:15%}
.production-execution-table col.worksheet-control-fact{width:15%}
.production-execution-table caption{text-align:left;font-size:22px;font-weight:750;padding:18px 12px;color:#111;background:#fff}
.production-operator-workspace .production-execution-table thead th{position:sticky;top:0;z-index:2;background:#f6f6f2;color:#24241f;text-transform:none;letter-spacing:0;font-weight:750;font-size:13px;box-shadow:0 1px #a7a797}
.production-execution-table thead small{display:block;font-size:12px;font-weight:500;margin-top:4px}
.production-execution-table thead th:nth-child(2),.production-execution-table thead th:nth-child(3),.production-execution-table thead th:nth-child(4){font-size:12px}
.production-operator-workspace .production-execution-table .worksheet-total-row th,.production-operator-workspace .production-execution-table .worksheet-stage-heading th,.production-operator-workspace .production-execution-table .worksheet-basis-row th{text-transform:none;letter-spacing:0;color:#24241f}
.production-operator-workspace .production-execution-table .worksheet-stage-heading th{background:#fff28b;color:#252312;font-size:16px;text-align:left;padding:10px 12px;border-top:1px solid #c8b75b}
.worksheet-stage-heading .pill{margin-left:14px;font-size:11px;background:#fffbe1}
.production-operator-workspace .production-execution-table .worksheet-basis-row>*{background:#fff9d8;font-weight:650}
.production-operator-workspace .production-execution-table .worksheet-total-row>*{background:#fafaf7;font-weight:600}
.production-operator-workspace .production-execution-table .worksheet-total-row .small{font-weight:400}
.production-operator-workspace .production-execution-table .worksheet-loss-row>*{border-bottom:2px solid #b8b8ae}
.production-operator-workspace .production-execution-table .worksheet-instructions{background:#fff;line-height:1.65}
.production-operator-workspace .worksheet-control-entry{padding:10px;border-radius:8px}
.production-operator-workspace .worksheet-control-entry + .worksheet-control-entry{margin-top:16px;border-top:1px solid var(--line)}
.production-operator-workspace .worksheet-stage-instructions td{background:#fffdf1;line-height:1.6}
.worksheet-mobile-ingredient,.worksheet-view-toggle{display:none}
@media(max-width:900px){.worksheet-mobile-ingredient{display:block;font-size:12px;margin-bottom:8px}}
.worksheet-navigation{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.worksheet-navigation .button{font-size:13px;padding:10px 14px}
.recipe-worksheet-calculator{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}
.recipe-worksheet-calculator label{display:grid;gap:6px;max-width:240px;font-size:13px;font-weight:650}
.recipe-worksheet-calculator input{width:100%;min-height:44px;border:1px solid #bbb;border-radius:8px;padding:10px;font:inherit}
.recipe-worksheet-calculator p{flex:1 1 260px;margin:0}
@media screen and (max-width:900px){
  .worksheet-view-toggle{display:inline-flex;margin-top:12px}
  .production-operator-workspace:not(.worksheet-wide-view) .worksheet-navigation,
  .production-operator-workspace:not(.worksheet-wide-view) .production-table-scroll-hint,
  .production-operator-workspace:not(.worksheet-wide-view) .worksheet-mobile-ingredient{display:none}
  .production-operator-workspace:not(.worksheet-wide-view) .production-execution-shell{max-height:none;overflow:visible;scrollbar-gutter:auto;border:0}
  .production-operator-workspace:not(.worksheet-wide-view) .production-execution-table{display:block;min-width:0;width:100%}
  .production-operator-workspace:not(.worksheet-wide-view) .production-execution-table colgroup,
  .production-operator-workspace:not(.worksheet-wide-view) .production-execution-table thead{display:none}
  .production-operator-workspace:not(.worksheet-wide-view) .production-execution-table caption,
  .production-operator-workspace:not(.worksheet-wide-view) .production-execution-table tbody{display:block;width:100%}
  .production-operator-workspace:not(.worksheet-wide-view) .production-execution-table tr{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));border:1px solid #d7d7d1;border-radius:10px;margin-bottom:14px;overflow:hidden}
  .production-operator-workspace:not(.worksheet-wide-view) .production-execution-table tr>*{display:block;grid-column:span 12;width:auto;max-width:100%;border-right:0;white-space:normal;font-size:15px;padding:12px;overflow-wrap:anywhere}
  .production-operator-workspace:not(.worksheet-wide-view) .production-execution-table td[data-label]::before{content:attr(data-label);display:block;font:600 11px/1.4 Arial,sans-serif;color:#68685f;margin-bottom:6px}
  .production-operator-workspace:not(.worksheet-wide-view) .production-material-row>td:nth-child(2),
  .production-operator-workspace:not(.worksheet-wide-view) .production-material-row>td:nth-child(3),
  .production-operator-workspace:not(.worksheet-wide-view) .production-material-row>td:nth-child(4){grid-column:span 4;padding:10px 8px;background:#f8f8f4;font-size:14px}
  .production-operator-workspace:not(.worksheet-wide-view) .production-material-row>td:nth-child(2)::before{content:'Норма на 1 л / базу'}
  .production-operator-workspace:not(.worksheet-wide-view) .production-material-row>td:nth-child(3)::before{content:'На партию, кг'}
  .production-operator-workspace:not(.worksheet-wide-view) .production-material-row>td:nth-child(4)::before{content:'На партию, г'}
  .production-operator-workspace:not(.worksheet-wide-view) .worksheet-total-row>td:nth-child(2)::before{content:'Норма';display:block;color:#68685f;font-size:11px}
  .production-operator-workspace:not(.worksheet-wide-view) .worksheet-total-row:not(.worksheet-loss-row)>td:nth-child(3)::before{content:'На партию, кг';display:block;color:#68685f;font-size:11px}
  .production-operator-workspace:not(.worksheet-wide-view) .worksheet-total-row:not(.worksheet-loss-row)>td:nth-child(4)::before{content:'На партию, г';display:block;color:#68685f;font-size:11px}
  .production-operator-workspace:not(.worksheet-wide-view) .worksheet-total-row:not(.worksheet-loss-row)>td:nth-child(5)::before{content:'Факт';display:block;color:#68685f;font-size:11px}
  .production-operator-workspace:not(.worksheet-wide-view) .worksheet-total-row:not(.worksheet-loss-row)>td:nth-child(n+2):nth-child(-n+5){grid-column:span 6}
  .production-operator-workspace:not(.worksheet-wide-view) .production-execution-table .worksheet-stage-heading{border-radius:8px;margin-top:24px}
  .production-operator-workspace:not(.worksheet-wide-view) .production-execution-table .button{width:100%;min-height:48px}
  .production-operator-workspace:not(.worksheet-wide-view) .operator-stage-action{display:grid;width:100%;max-width:none}
}
.production-operator-workspace .production-execution-table input,.production-operator-workspace .production-execution-table textarea,.production-operator-workspace .production-execution-table select{font-size:16px}
.production-operator-workspace .production-execution-table .pill{width:auto;max-width:100%;white-space:normal;line-height:1.3}
.production-operator-workspace .production-execution-table .operator-cell-pending{background:#fff4bf;box-shadow:inset 3px 0 #d49b24}
.production-operator-workspace .production-execution-table tr:hover .operator-cell-pending{background:#ffed9a}
.production-operator-workspace .production-execution-table .operator-cell:not(.operator-cell-pending) .pill-success{background:#f1faf4}
.production-control-line+.production-control-line{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
.operator-inline-action{display:grid;min-width:0;gap:8px;margin-top:10px}
.operator-inline-action>div,.operator-inline-action label{display:grid;min-width:0;gap:5px;margin:0;color:var(--muted);font-size:11px;font-weight:650}
.operator-inline-action input,.operator-inline-action select,.operator-inline-action textarea{width:100%;max-width:100%;min-height:44px;border:1px solid #cfcfcf;border-radius:8px;background:#fff;padding:8px;color:#111}
.operator-output-count{display:grid;min-width:0;gap:5px;margin-top:10px;color:var(--muted);font-size:11px;font-weight:700}
.operator-output-count input{width:100%;max-width:160px;min-height:44px;border:1px solid #b98320;border-radius:8px;background:#fff;padding:8px;color:#111;font:inherit}
.operator-inline-action .button,.production-operator-workspace .button{min-width:0;min-height:44px;white-space:normal;text-align:center}
.operator-stage-action{display:flex;align-items:end;flex-wrap:wrap;gap:10px;min-width:0;max-width:600px}
.operator-stage-action label{display:grid;flex:1 1 240px;min-width:0;gap:5px;color:var(--muted);font-size:11px;font-weight:650}
.operator-stage-action input,.operator-stage-action textarea{width:100%;max-width:100%;min-height:44px;border:1px solid #cfcfcf;border-radius:8px;background:#fff;padding:8px;color:#111}
.production-stage-action-row td{background:#fafaf8}
.production-label-print-toolbar{justify-content:center}
.production-label-sheet-head{margin-bottom:20px;text-align:center}
.production-label-sheet-head h1{margin:0;font-size:28px}
.production-label-sheet-head p:not(.eyebrow){margin:6px 0 0;color:var(--muted)}
.production-label-grid{display:grid;grid-template-columns:repeat(auto-fill,20mm);justify-content:center;gap:6mm}
.production-label-card{display:block;width:20mm;height:20mm;min-width:0;break-inside:avoid-page;padding:0;border:0;background:#fff}
.production-label-card img{display:block;width:20mm;height:20mm;object-fit:contain;image-rendering:pixelated}
.production-label-copy{display:grid;min-width:0;gap:4px}
.production-label-copy span,.production-label-copy strong{overflow-wrap:anywhere}
.production-label-code{font-size:10px}

@media(max-width:560px){
  .production-operator-workspace .production-execution-table .button{width:100%;padding:10px 8px}
  .production-operator-workspace .production-execution-table .operator-stage-action{max-width:240px}
  .production-label-grid{grid-template-columns:repeat(auto-fill,20mm)}
}

.production-focus-header{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.production-focus-header .page-actions{margin-left:auto}
.operator-completion-form{display:grid;gap:12px;max-width:600px}
.operator-completion-form label{display:grid;gap:6px;min-width:0}
.operator-completion-form input,.operator-completion-form textarea{max-width:100%;width:100%;min-height:44px;border:1px solid #bbb;border-radius:8px;padding:10px;background:#fff;font-size:16px}
.operator-completion-form input[type=hidden]{display:none}
.operator-completion-form .button{justify-self:start}
.production-completion-row td{background:#fffdf1}
@media(max-width:900px){.production-focus-header .page-actions{margin-left:0;width:100%}.operator-completion-form .button{width:100%}}
@page production-mini-label{size:20mm 20mm;margin:0}

@media print{
  .worksheet-navigation,.recipe-worksheet-calculator{display:none!important}
  .production-execution-shell{max-height:none;overflow:visible}
  .production-operator-workspace .production-execution-table{min-width:0}
  .production-operator-workspace .production-execution-table th,.production-operator-workspace .production-execution-table td{font-size:8px;padding:4px}
  .production-operator-workspace .production-execution-table thead th{position:static}
  .production-label-print-toolbar{display:none!important}
  body:has(.production-label-sheet),body:has(.production-label-sheet) .shell,body:has(.production-label-sheet) .content{display:block;width:auto;max-width:none;min-height:0;margin:0!important;padding:0!important;border:0}
  .production-label-sheet{display:block;width:20mm;max-width:none;margin:0!important;padding:0!important;border:0!important;border-radius:0}
  .production-label-grid{display:block;margin:0;padding:0}
  .production-label-card{page:production-mini-label;display:block;width:20mm;height:20mm;margin:0;padding:0;border:0;border-radius:0;break-inside:avoid-page;break-after:page}
  .production-label-card:last-child{break-after:auto}
  .production-label-card img{width:20mm;height:20mm}
  .production-label-sheet-head,body:has(.production-label-sheet) .messages,body:has(.production-label-sheet) .table-scroll-hint{display:none!important}
}

/* Receipt intake: searchable catalog, phone-first scanning and printable package labels. */
[data-searchable-select]{position:relative}
.catalog-choice-field{position:relative;min-width:0}
.catalog-choice-field .combobox-results{top:44px}
.combobox-results{position:absolute;z-index:12;top:76px;right:0;left:0;max-height:300px;overflow:auto;border:1px solid #aaa;border-radius:10px;background:#fff;box-shadow:0 16px 36px rgba(0,0,0,.14)}
.combobox-option{display:block;width:100%;min-height:44px;border:0;border-bottom:1px solid #eee;background:#fff;padding:10px 12px;text-align:left;cursor:pointer}
.combobox-option:last-child{border-bottom:0}
.combobox-option:hover,.combobox-option:focus-visible{background:#f3f3f1}
.receipt-kind-panel[hidden]{display:none!important}
.receipt-calculation{padding:14px;border:1px solid #cfcfcf;border-radius:10px;background:#f8f8f7;font-size:16px}
.receipt-progress{height:14px;overflow:hidden;border-radius:999px;background:#e8e8e5}
.receipt-progress>span{display:block;width:var(--receipt-progress);height:100%;border-radius:inherit;background:#176b3a;transition:width .2s ease}
.receipt-scan-field{flex:1 1 360px}
.receipt-scanner-card .searchbar{align-items:end;margin-bottom:0}
.receipt-package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.receipt-package-card{display:grid;gap:8px;min-width:0;padding:15px;border:1px solid #dfc691;border-radius:12px;background:#fffaf0}
.receipt-package-card.is-scanned{border-color:#9ecbab;background:#f3faf5}
.receipt-package-card>div{display:flex;align-items:center;gap:9px}
.receipt-package-card p{margin:0;overflow-wrap:anywhere}
.receipt-package-number{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:#111;color:#fff;font-weight:700}
.receipt-print-labels{display:grid;grid-template-columns:repeat(auto-fill,43mm);gap:8mm;align-items:start}
.receipt-print-label{display:grid;grid-template-columns:21mm minmax(0,1fr);align-items:center;gap:1mm;width:43mm;height:25mm;padding:1mm;border:0;outline:1px solid #ddd;background:#fff;color:#000;break-inside:avoid-page}
.receipt-print-label img{width:21mm;height:21mm;object-fit:contain;image-rendering:pixelated}
.receipt-print-caption{display:grid;gap:.7mm;min-width:0;font-size:5.5pt;line-height:1.15}
.receipt-print-caption span,.receipt-print-caption strong{overflow-wrap:anywhere}
.receipt-print-name{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;font-size:6pt}

@media(max-width:900px){
  .receipt-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .receipt-scanner-card .searchbar{align-items:stretch;flex-direction:column}
  .receipt-scanner-card .searchbar .button{width:100%}
  .receipt-package-grid{grid-template-columns:1fr}
  .receipt-print-labels{grid-template-columns:1fr}
}
@media print{
  .no-print,.topbar,.sidebar{display:none!important}
  .shell{display:block;max-width:none;min-height:0}
  .content{padding:0}
  .receipt-print-labels{display:block;margin:0;padding:0}
  .receipt-print-label{page:receipt-label;outline:0;page-break-inside:avoid;break-inside:avoid-page;break-after:page}
  .receipt-print-label:last-child{break-after:auto}
}
@page receipt-label{size:43mm 25mm;margin:0}
