*{box-sizing:border-box}body{margin:0;font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,select,input,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}input,select,textarea{min-height:48px;padding:10px 12px;border-radius:5px;width:100%}input[type=hidden]{display:none}input[type=checkbox]{width:24px;min-height:24px;height:24px}h1,h2,h3,p{margin-top:0}.erp-content{width:100%;max-width:none;margin:0;padding:12px}.panel{border:1px solid var(--border);border-radius:7px;padding:14px;margin:12px 0;min-width:0}.button{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;min-height:48px;border:1px solid var(--border);border-radius:5px;gap:8px}.button-row,.batch-actions{display:flex;flex-wrap:wrap;gap:8px}.record-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.record-form label{display:grid;gap:6px;min-width:0}.record-form>p,.record-form>h2,.record-form>h3,.record-form>fieldset,.record-form>.button-row,.record-form>.table-scroll{grid-column:1/-1}fieldset{min-width:0;border:1px solid var(--border);border-radius:6px;padding:12px}legend{padding:0 6px;font-weight:700}.table-scroll{max-width:100%;max-height:48dvh;overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:10px;text-align:left;border-bottom:1px solid var(--border);overflow-wrap:anywhere}td small{display:block}.messages{list-style:none;padding:0}.messages li,[role=alert]:not(:empty){padding:10px 12px;border:1px solid var(--warning);border-radius:5px}.status{padding:4px 8px;border:1px solid var(--border);border-radius:5px}details>summary{cursor:pointer;padding:10px;font-weight:700}.pagination{display:flex;gap:12px;align-items:center;margin:12px 0}.summary-grid,.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.summary-grid>div{padding:10px;border:1px solid var(--border);border-radius:5px}.summary-grid dt{color:var(--muted)}.summary-grid dd{margin:6px 0 0;font-weight:700}.production-allocation{display:grid;gap:12px}.terminal-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;position:relative;gap:12px;align-items:center;padding:10px 12px;min-height:78px}.terminal-brand{min-width:160px}.terminal-module{display:grid;gap:4px;min-width:190px;flex:1}.terminal-module>span,.terminal-operator>span{font-size:14px;color:var(--muted)}.terminal-operator{display:grid;min-width:130px;gap:4px}.terminal-header nav{display:flex;gap:8px}.terminal-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:14px 0}.terminal-heading h1{font-size:28px;margin:0}.terminal-heading p{margin:5px 0 0;color:var(--muted)}.terminal-workspace{min-width:0}.terminal-source-select{margin:0 0 12px}.terminal-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.terminal-tool-grid a{padding:24px;border:1px solid var(--border);border-radius:7px;font-size:22px;font-weight:700}.terminal-feedback{margin:12px 0;padding:12px;border:1px solid var(--warning);border-radius:5px}.terminal-scene-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.terminal-scene-heading h2{margin:0;font-size:22px}@media(max-width:760px){.record-form,.summary-grid,.form-grid{grid-template-columns:1fr}.terminal-tool-grid{grid-template-columns:1fr 1fr}.terminal-header nav{width:100%}.terminal-module{min-width:140px}.terminal-heading{flex-wrap:wrap}}

.operation-brief{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;padding:12px!important}.operation-secondary{grid-column:1/-1;margin:0}.operation-secondary>summary{padding:14px 18px;background:#fff;border:1px solid #cbd5e1;border-radius:8px;cursor:pointer;font-weight:650}.operation-secondary>.panel{margin-top:10px}.allocation-panel{padding:16px!important}.allocation-panel>h2{margin:0 0 6px!important;font-size:20px}.allocation-panel>p{margin:0 0 10px!important;font-size:14px}.production-allocation{display:grid;grid-template-columns:minmax(210px,1fr) minmax(0,3fr);gap:12px}.production-allocation>div{min-width:0}.production-allocation h3{font-size:16px;margin:0 0 8px}.allocation-pool{display:flex;flex-direction:column;gap:6px;height:420px;max-height:48dvh;overflow:auto;padding-right:4px;align-self:start}.allocation-panel [hidden]{display:none!important}.allocation-pool button{display:block!important;flex:none!important;width:100%;height:auto!important;min-width:0;white-space:normal!important;overflow-wrap:anywhere;text-align:left;padding:8px!important;min-height:44px!important;font-size:14px}.allocation-pool small{display:block;font-size:12px;overflow-wrap:anywhere}.allocation-pool label{font-size:13px;position:sticky;top:0;background:white;z-index:1;padding:2px 0}.allocation-pool input{min-height:36px!important}.allocation-panel [data-allocation-rows]{height:420px;max-height:48dvh;overflow:auto;padding-right:4px}.allocation-row{position:relative;border:1px solid #cbd5e1;padding:10px;margin:0 0 8px;border-radius:6px}.allocation-row h4{font-size:14px;margin:0 95px 8px 0;overflow-wrap:anywhere}.allocation-row .record-form{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.1fr) minmax(70px,.5fr);gap:8px;margin:0!important;padding:0!important;max-width:none!important;align-items:end}.allocation-row label{font-size:12px;margin:0!important;min-width:0}.allocation-row input,.allocation-row select{min-height:36px!important;padding:6px!important;font-size:14px}.allocation-row .unit-choice{grid-column:1/-1}.allocation-row [data-remove-allocation]{position:absolute;right:8px;top:8px;min-height:28px!important;padding:4px 8px!important;font-size:12px}.allocation-row details{grid-column:1/-1;font-size:13px}.allocation-row details>summary{cursor:pointer;padding:6px 0;font-weight:650}.allocation-row details label{display:block;margin-top:6px!important}.allocation-panel [data-allocation-form=report_batch] .record-form{grid-template-columns:repeat(3,minmax(0,1fr))}.allocation-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid #e2e8f0;padding:10px 0 0;margin-top:10px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px}.allocation-footer [role=alert]{font-size:13px;margin:0}.allocation-footer button{min-height:44px!important;margin:0!important}.receiver-panel{padding:12px 16px!important}.receiver-panel h2{font-size:16px;margin:0 0 4px!important}.receiver-panel p{font-size:13px;margin:4px 0!important}.receiver-layout{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;align-items:end}.receiver-layout label{margin:0;font-size:13px}.receiver-tools{display:flex;gap:6px;align-items:center}.receiver-tools input{min-width:0;flex:1;min-height:36px!important}.receiver-tools button{min-height:36px!important;padding:6px 10px!important;font-size:13px}.receiver-panel select{min-height:36px!important}
@media(max-width:760px){.production-allocation{grid-template-columns:1fr}.allocation-pool{height:190px;max-height:25dvh}.allocation-panel [data-allocation-rows]{height:auto;max-height:48dvh;min-height:120px}.allocation-row .record-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.allocation-panel [data-allocation-form=report_batch] .record-form{grid-template-columns:repeat(3,minmax(0,1fr))}.receiver-layout{grid-template-columns:1fr}.receiver-panel [data-receiver-message]:empty{display:none}.allocation-footer{align-items:stretch;flex-direction:column}.allocation-panel{padding:12px!important}.operation-brief{font-size:13px}.operation-secondary>summary{font-size:14px}}
.allocation-pool [data-carrier-find] input{width:100%}.allocation-pool button[aria-pressed=true],.allocation-select[aria-expanded=true]{background:#eaf3fb;border-color:#1769aa}.allocation-select{width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:8px 10px;border:1px solid #cbd5e1;border-radius:4px;background:#f8fafc;color:#173249;font-size:16px;min-height:44px}.allocation-summary{margin:6px 0;font-size:15px;overflow-wrap:anywhere}.allocation-row [data-remove-allocation]{position:static;justify-self:end;font-size:14px!important;min-height:44px!important}.allocation-row .record-form{grid-template-columns:repeat(2,minmax(0,1fr))}.allocation-pool small{font-size:14px;padding:3px 0}.allocation-fact{padding:6px 10px;border-bottom:1px solid #e2e8f0;font-size:15px;overflow-wrap:anywhere}.allocation-fact strong{display:block}.allocation-fact p{margin:4px 0}.allocation-panel [data-material-projection]{max-height:240px;overflow:auto;margin-bottom:12px}.allocation-pool label{position:static}.allocation-row label{font-size:14px}.allocation-row input,.allocation-row select{font-size:16px!important}.allocation-row{padding:12px}.allocation-panel [data-allocation-rows]:empty{height:auto;min-height:0}.allocation-row .record-form>label:nth-child(-n+2){grid-column:auto}.allocation-panel [data-allocation-form=report_batch] .record-form{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:760px){.allocation-row .record-form,.allocation-panel [data-allocation-form=report_batch] .record-form{grid-template-columns:1fr}}
.allocation-edit-line{display:flex;align-items:center;gap:8px;min-width:0}.allocation-edit-line .allocation-summary{flex:1;min-width:80px}.allocation-quantity{display:flex;align-items:center;gap:6px;white-space:nowrap}.allocation-quantity input{width:100px}.allocation-quantity>span{max-width:70px;white-space:normal;overflow-wrap:anywhere}.allocation-edit-line [data-remove-allocation]{flex:none}.allocation-carrier{border:1px solid #cbd5e1;border-radius:5px;padding:10px}.allocation-carrier>[data-add-carrier]{border:0!important;background:transparent!important;padding:0!important;min-height:0!important}.allocation-carrier>[data-select-carrier]{font-size:16px;text-align:left;width:100%;min-height:44px;border:0;background:#f8fafc;color:#173249}.allocation-carrier[aria-current=true]{border-color:#1769aa;background:#eaf3fb}.allocation-carrier [data-carrier-facts]{font-size:14px;padding:4px 0}.allocation-fact .allocation-select{border:0;background:transparent}.allocation-fact[aria-current=true]{background:#eaf3fb}.allocation-fact>button[data-add-material]{min-height:44px}.allocation-panel dialog{width:min(720px,calc(100% - 24px))}dialog[data-picking-confirmation]{width:min(860px,calc(100% - 24px));padding:16px;border:1px solid #cbd5e1;border-radius:8px}dialog[data-picking-confirmation]::backdrop{background:#10283a88}@media(max-width:760px){.allocation-edit-line{gap:4px}.allocation-quantity input{width:64px}.allocation-quantity>span{max-width:36px}.allocation-edit-line [data-remove-allocation]{padding:4px!important;font-size:13px!important}.allocation-quantity{font-size:13px}.allocation-edit-line .allocation-summary{font-size:14px}}
.allocation-pool{height:auto;max-height:none;overflow:visible}.allocation-carrier-list{display:flex;flex-direction:column;gap:6px;max-height:48dvh;height:420px;overflow:auto}.allocation-carrier-list:empty{height:auto}@media(min-width:761px){.allocation-carrier-list{max-height:min(48dvh,calc(100dvh - 540px))}}@media(max-width:760px){.allocation-carrier-list{height:190px;max-height:25dvh}}
.operation-modes{display:flex;gap:8px;align-items:center;margin:12px 0}.operation-modes .button[aria-pressed=true]{color:#fff;background:#1769aa}.operation-mode-panel[hidden]{display:none!important}.allocation-panel [data-material-projection]{height:420px;max-height:min(48dvh,calc(100dvh - 540px));overflow:auto}.allocation-edit-line>.allocation-select{flex:1;min-width:80px;width:auto;border:0;background:transparent;padding:4px;text-align:left;font-size:15px}.allocation-edit-line>.allocation-summary{flex:none;min-width:0;max-width:55%;font-size:14px}.allocation-row{margin-top:6px;padding:8px;border-color:#e2e8f0}.allocation-edit-line{gap:6px}.allocation-quantity>span{max-width:70px}.allocation-panel [data-allocation-rows]{height:420px;max-height:min(48dvh,calc(100dvh - 540px))}.allocation-fact{padding:10px}.allocation-fact>[data-group-title]{text-align:left;font-size:16px;font-weight:650}.allocation-panel [data-allocation-rows]:empty{height:auto}@media(max-width:760px){.allocation-panel [data-material-projection],.allocation-panel [data-allocation-rows]{height:auto;max-height:64dvh}.allocation-edit-line>.allocation-select{min-width:64px;font-size:14px}.allocation-edit-line>.allocation-summary{font-size:13px}.allocation-quantity>span{max-width:36px}.allocation-edit-line{gap:4px}}

.production-allocation{grid-template-columns:repeat(2,minmax(0,1fr))}.allocation-scan{margin:12px 0}.allocation-scan label{display:block}.allocation-scan input{width:100%;max-width:520px}.allocation-carrier-list,.allocation-panel [data-material-projection]{height:420px;max-height:48dvh}.allocation-fact{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;padding:8px}.allocation-fact>[data-group-title]{padding:4px;font-size:15px}.allocation-fact>[data-add-material]{padding:4px 8px!important;font-size:14px}.allocation-fact>p,.allocation-fact>div{grid-column:1/-1;margin:0;font-size:14px}.allocation-fact [data-group-facts] p{margin:2px 0}.allocation-carrier [data-carrier-drafts] button{padding:4px!important;min-height:32px!important;border:0;text-align:left;background:transparent;color:#173249}.allocation-carrier [data-carrier-drafts] button:focus-visible{outline:2px solid #1769aa}.allocation-panel [data-material-find]{margin:0 0 6px}.allocation-panel [data-material-search]{width:100%}.allocation-carrier{padding:8px}.allocation-carrier>[data-select-carrier]{min-height:36px!important}.allocation-carrier>[data-add-carrier]{font-size:14px}.allocation-edit-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px}.allocation-edit-line>.allocation-select{min-width:0;font-size:14px}.allocation-edit-line>.allocation-summary{max-width:none}.allocation-quantity{font-size:14px;gap:4px}.allocation-quantity input{width:64px}.allocation-quantity>span{max-width:44px}.allocation-edit-line [data-remove-allocation]{padding:4px!important;font-size:13px!important;white-space:nowrap}@media(max-width:760px){.production-allocation{grid-template-columns:1fr}.allocation-carrier-list,.allocation-panel [data-material-projection]{height:280px;max-height:35dvh}}

.h5-production [hidden]{display:none!important}
.h5-production :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.h5-production .workspace-steps{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.h5-production .workspace-steps [aria-pressed=true]{background:var(--accent);color:white}
.h5-production .record-form>button.primary{align-self:end}
.h5-production .incoming-inspection>p{margin:6px 0}
.h5-production .incoming-inspection>h2{margin:10px 0}
.h5-production .incoming-inspection>form{border-top:1px solid var(--line);padding:12px 0;margin:0}
.h5-production .expense-actions{position:sticky;bottom:0;background:white;border-top:1px solid var(--line);padding:12px;z-index:2}
@media(min-width:761px){
 .h5-production .record-form:not(.incoming-inspection){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
 .h5-production .record-form>label{min-width:0;margin:0}
 .h5-production .record-form>label>textarea{min-height:80px}
 .h5-production .record-form>:is(h2,h3,p,fieldset,section,details,.button-row,.batch-actions,.table-scroll){grid-column:1/-1}
 .h5-production .record-form>fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .h5-production .record-form>fieldset>:is(legend,p,details){grid-column:1/-1}
 .h5-production .location-form .record-form>fieldset{grid-column:auto}
 .h5-production .location-form .record-form>fieldset>label{grid-column:1/-1}
 .h5-production .location-form .record-form>:is(section,details){grid-column:auto}
 .h5-production .location-form .workflow-purpose{margin:8px 0;padding:8px 12px}
 .h5-production .location-form .workflow-purpose small{font-size:14px}
 .h5-production .location-form .record-form p{margin:4px 0}
 .h5-production [data-expense-form]>.panel:first-of-type .record-form{grid-template-columns:2fr 1fr 1fr}
 .h5-production [data-expense-invoice] .record-form{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:761px){
 .h5-production .location-form .record-form>fieldset{display:block}
 .h5-production .location-form .record-form>fieldset label{display:block;margin-bottom:10px}
 .h5-production .location-form .location-code-preview{grid-column:1/-1}
 .h5-production .location-form .location-code-preview h2{font-size:16px;margin:4px 0}
 .h5-production .location-form .location-code-preview p{margin:4px 0}
 .h5-production .expense-actions>p{margin:8px 0;font-size:15px}
 .h5-production .expense-actions .record-form{padding:8px;margin:0}
 .h5-production .expense-actions .button-row{gap:8px}
}

@media(min-width:761px){.h5-production [data-expense-form]>.panel:first-of-type{margin-bottom:4px}.h5-production [data-expense-invoice]>p{margin:8px 12px}.h5-production .expense-actions{padding:8px}.h5-production .expense-actions>p{margin:6px 0}}
.h5-production [data-primary-secondary]>summary{padding:12px}
.h5-production [data-primary-secondary]>.workspace-steps{padding:0 12px}
@media(min-width:761px){.h5-production .allocation-pool,.h5-production .allocation-panel [data-allocation-rows]{height:auto;max-height:calc(100dvh - 430px)}}
@media(min-width:761px){
 .h5-production [data-input-sources],.h5-production [data-input-output]{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .h5-production [data-input-sources]>:is(h2,p,.production-allocation),.h5-production [data-input-output]>:is(h3,p,.table-scroll){grid-column:1/-1}
 .h5-production [data-input-output] .table-scroll{max-height:180px}
 .h5-production [data-input-output] label{min-width:0}
}

.h5-production [data-carrier-board-grid]{grid-column:1/-1}.h5-production [data-carrier-board-grid]>section{min-width:0}.h5-production [data-carrier-board-grid]>section:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.h5-production [data-carrier-board-grid] h3,.h5-production [data-carrier-board-grid] p{grid-column:1/-1}.h5-production [data-carrier-board-grid] .allocation-pool [aria-pressed=true]{background:#eaf3fb;border-color:#1769aa}

.h5-production [data-carrier-board-grid]>[data-input-output]{grid-column:auto}
@media(min-width:761px){
 .h5-production .erp-content{padding:10px 12px}
 .h5-production .h5-production-navigation{padding:8px 12px}
 .h5-production .h5-production-navigation strong,.h5-production .h5-production-navigation span{display:inline;margin:0 12px 0 0;font-size:16px}
 .h5-production .page-heading{margin:8px 0}
 .h5-production .page-heading h1{font-size:24px;margin:0}
 .h5-production .operation-modes{margin:8px 0;gap:8px}
 .h5-production .allocation-panel{padding:12px!important}
 .h5-production .allocation-pool{min-height:180px}
 .h5-production .allocation-pool .allocation-scan{margin-bottom:8px}
 .h5-production .allocation-pool .allocation-scan label{display:block;font-size:16px}
 .h5-production .allocation-pool .allocation-scan input{display:block;width:100%;min-height:48px!important;font-size:16px}
 .h5-production .allocation-footer{margin-top:8px;padding-top:8px}
 .h5-production [data-primary-picking]+.operation-secondary,.h5-production [data-primary-report]+.operation-secondary{margin-top:8px}
}

.h5-production .allocation-carrier-list{height:auto;max-height:calc(100dvh - 470px)}
.h5-production[data-work-mode=report] .operation-modes{display:none}
.h5-production .h5-report-entry{display:flex;gap:12px;align-items:end;margin-bottom:12px;flex-wrap:wrap}
.h5-production .h5-report-entry label{display:grid;gap:8px;flex:1;min-width:220px}
.h5-production .h5-report-entry input{min-height:56px;font-size:24px;width:100%}
.h5-production .h5-report-entry>p{flex-basis:100%;margin:0}
.h5-production [data-carrier-board-grid] [data-input-sources] .production-allocation{grid-template-columns:1fr}
.h5-production [data-carrier-board-grid] [data-input-sources] .allocation-pool{min-height:0}
.h5-production [data-input-report][data-h5-report-flow] button[value=input]{display:none}
.h5-production [data-input-report][data-h5-report-flow] [data-input-output]>h3{margin:6px 0}

:root{color-scheme:dark;--bg-app:#10171c;--bg-surface:#172126;--bg-muted:#1e2b31;--bg-sidebar:#111b20;--border:#354750;--border-strong:#667b85;--text:#e8f0f3;--text-primary:#e8f0f3;--text-secondary:#adbec5;--text-inverse:#f0f5f7;--muted:#adbec5;--accent:#f6b634;--accent-dark:#f6b634;--accent-soft:#3e3827;--accent-ink:#f6b634;--accent-hover:#ffc64d;--accent-contrast:#f0f5f7;--line:#354750;--surface:#172126;--warning:#ffd16a;--warning-soft:#392e18;--danger:#ff7278;--danger-soft:#372227;--success:#69c8a8;--info:#8acbff}
body.h5-production,.h5-stage,.h5-app{background:var(--bg-app);color:var(--text)}
.h5-app .h5-topbar,.h5-production .h5-production-navigation{background:var(--bg-surface);border:1px solid var(--border);border-radius:7px}
.h5-production .panel,.h5-production .operation-secondary>summary,.h5-production .allocation-footer,.h5-production .expense-actions{background:var(--bg-surface);color:var(--text);border-color:var(--border)}
.h5-production .button,.h5-app .button{background:#223139;color:var(--text);border-color:var(--border)}
.h5-production .button.primary,.h5-app .button.primary,.h5-production .workspace-steps [aria-pressed=true],.h5-production .operation-modes [aria-pressed=true]{background:var(--accent);color:#172126;border-color:var(--accent);font-weight:700}
.h5-app .h5-topbar .topbar-switch{background:#223139;color:var(--text);border-color:var(--border)}
.h5-production :is(input,select,textarea),.h5-app :is(input,select,textarea){background:#202f36;color:var(--text);border:1px solid #455a64}
.h5-production :is(input,textarea)::placeholder,.h5-app :is(input,textarea)::placeholder{color:#a8b7be}
.h5-production :is(input,select,textarea):focus,.h5-app :is(input,select,textarea):focus{outline:2px solid var(--accent);outline-offset:2px}
.h5-production table,.h5-production tr,.h5-production td,.h5-production th{background:transparent;color:var(--text);border-color:var(--border)}
.h5-production th{background:#111d23;color:var(--muted)}
.h5-production .allocation-carrier,.h5-production .allocation-fact,.h5-production .allocation-row,.h5-production .allocation-select{background:#1d2b32;color:var(--text);border-color:var(--border)}
.h5-production .allocation-carrier [data-carrier-drafts] button{color:var(--text)}
.h5-production .allocation-pool button[aria-pressed=true],.h5-production [data-carrier-board-grid] .allocation-pool [aria-pressed=true]{background:#4a412d;border-color:var(--accent);color:var(--text)}
.h5-production [data-group-title],.h5-production [data-row-title],.h5-production .allocation-summary,.h5-production .receiver-panel{color:var(--text)}
.h5-production .operation-brief,.h5-production .detail-section,.h5-production .form-block{background:var(--bg-surface);border-color:var(--border)}
.h5-production .h5-production-navigation strong{color:var(--accent)}
.h5-production .h5-production-navigation span{color:var(--text)}
.h5-production .h5-report-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.h5-report-metrics>div{background:#101c22;border:1px solid var(--border);padding:14px;border-radius:6px}
.h5-report-metrics span{display:block;color:var(--muted);margin-bottom:8px;font-size:16px}
.h5-report-metrics strong{font-size:38px;line-height:1.1}
.h5-production .h5-report-home{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;min-height:390px}
.h5-production .h5-report-context,.h5-production .h5-report-entry{margin:0;padding:16px;border:1px solid var(--border);border-radius:6px;background:#101c22;display:block}
.h5-production .h5-report-entry label{display:block;font-size:18px;color:var(--muted)}
.h5-production .h5-report-entry input{margin:12px 0 18px;min-height:112px;font-size:52px;font-weight:700;background:#1e2c33}
.h5-production .h5-report-entry .button{width:100%;min-height:80px;font-size:22px}
.h5-report-operation{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--border)}
.h5-report-operation>span{color:var(--muted)}
.h5-report-operation>strong{grid-row:2;font-size:18px}
.h5-report-context h3{font-size:18px;margin:18px 0 10px}
.h5-report-linked{max-height:250px;overflow:auto}
.h5-report-linked article{display:grid;gap:8px;padding:12px;margin:8px 0;background:#24343b;border:1px solid #455a64;border-radius:5px}
.h5-report-linked article span{color:var(--muted)}
.h5-production form.record-form[data-h5-report-flow]{display:block}
.h5-production .h5-report-allocation{width:calc(100vw - 24px);max-width:1320px;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:16px;background:var(--bg-surface);color:var(--text);border:1px solid var(--accent);border-radius:8px}
.h5-report-allocation[open]{display:flex;flex-direction:column;gap:12px}
.h5-report-allocation::backdrop{background:rgba(0,0,0,.78)}
.h5-report-allocation>header{display:flex;justify-content:space-between;gap:12px;align-items:center}
.h5-report-allocation h2{font-size:28px;margin:0}
.h5-production .h5-report-allocation>.production-allocation{flex:1;min-height:0;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);align-items:stretch}
.h5-report-allocation .production-allocation>div,.h5-report-allocation .production-allocation>section{min-height:0;overflow:auto;padding:12px;border:1px solid var(--border);border-radius:6px;background:#101b21}
.h5-production .h5-report-allocation .allocation-pool{height:auto;max-height:none;min-height:0}
.h5-production .h5-report-allocation .allocation-carrier-list,.h5-production .h5-report-allocation [data-material-projection],.h5-production .h5-report-allocation [data-allocation-rows]{height:auto;max-height:none;min-height:0}
.h5-production .h5-report-allocation .allocation-footer{flex:none;margin:0;padding:10px 0 0;gap:12px;position:static}
.h5-report-allocation .allocation-footer .button.primary{min-width:260px;min-height:56px;font-size:20px}
.h5-production .h5-operation-tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.h5-operation-tabs .button{flex:1;min-width:160px;white-space:normal}
.h5-production[data-work-mode=report] .erp-content>.operation-secondary:not(:has([data-primary-report])){display:none}
.h5-production[data-work-mode=report] [data-secondary-operation]>.panel:not([data-primary-report]){display:none}
.h5-production[data-work-mode=report] .erp-content>section[aria-label="任务辅料需求"]{display:none}
.h5-production[data-work-mode=report] .page-heading h1{font-size:34px;line-height:1.2}
.h5-production[data-work-mode=report] .page-heading{margin:12px 0}
.h5-production .production-allocation{grid-template-columns:minmax(260px,.8fr) minmax(0,2fr)}
@media(max-width:760px){.h5-production .h5-report-home{grid-template-columns:1fr}.h5-report-metrics strong{font-size:28px}.h5-production .h5-report-allocation>.production-allocation{grid-template-columns:1fr;overflow:auto}.h5-report-allocation>header{flex-wrap:wrap}.h5-production .production-allocation{grid-template-columns:1fr}}
.h5-production .allocation-carrier[aria-current=true],.h5-production .allocation-fact[aria-current=true]{background:#49412d;border-color:var(--accent);color:var(--text)}
.h5-production .allocation-carrier>[data-select-carrier],.h5-production .allocation-pool label{background:transparent;color:var(--text)}
.h5-production .allocation-pool button[aria-pressed=true],.h5-production .allocation-carrier>[data-select-carrier][aria-pressed=true]{background:#49412d;color:var(--text);border-color:var(--accent)}
.h5-production .allocation-carrier>[data-add-carrier],.h5-production .allocation-fact>[data-group-title]{color:var(--text)}
.h5-production .record-form .unit-choice{min-height:44px;display:flex;gap:8px;align-items:center}
.h5-production .record-form .unit-choice input[type=checkbox]{width:24px;height:24px;min-height:24px;flex:none}
.h5-production[data-work-mode=picking] .operation-modes{display:none}
.h5-production[data-work-mode=picking] .erp-content>.operation-secondary{display:none}
.h5-production .h5-pick-summary{display:flex;gap:8px;flex-wrap:wrap}
.h5-pick-summary>div{min-width:100px;padding:8px 12px;background:#202e35;border:1px solid var(--border);border-radius:5px}
.h5-pick-summary span{display:block;color:var(--muted);font-size:16px}
.h5-pick-summary strong{display:block;font-size:24px;line-height:1.3}
.h5-production .h5-report-quality{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.h5-production .h5-report-quality label{font-size:16px}
.h5-production .h5-report-quality input{font-size:34px;min-height:72px;margin:8px 0}
.h5-production .h5-report-main-actions{display:grid;grid-template-columns:minmax(120px,.65fr) minmax(0,1fr);gap:12px}
.h5-production .h5-report-main-actions .button{min-height:80px;font-size:20px}
.h5-production .h5-material-exception{width:min(960px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:20px;background:var(--bg-surface);color:var(--text);border:1px solid var(--accent);border-radius:8px;overflow:auto}
.h5-material-exception::backdrop{background:rgba(0,0,0,.78)}
.h5-material-exception>header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.h5-material-exception>select{width:100%;min-height:48px;font-size:18px;margin:10px 0}
.h5-production .allocation-carrier{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:4px;align-items:center;padding:8px}
.h5-production .allocation-carrier>[data-select-carrier]{grid-column:1;grid-row:1;font-size:16px;min-height:48px!important}
.h5-production .allocation-carrier>[data-add-carrier]{grid-column:2;grid-row:1}
.h5-production .allocation-carrier>[data-carrier-facts],.h5-production .allocation-carrier>[data-carrier-drafts]{grid-column:1/-1}
.h5-production .allocation-arrow{width:48px;min-height:48px!important;font-size:28px!important;padding:0!important;text-align:center!important;color:var(--accent)!important}
.h5-production .allocation-source-controls{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0}
.h5-production .allocation-source-controls label{display:grid;gap:6px;min-width:0;font-size:16px}
.h5-production .allocation-source-controls select{width:100%;min-width:0;min-height:48px;font-size:16px}
.h5-production [data-primary-picking] .allocation-pool{max-height:none;overflow:visible}
.terminal-page .operation-modes{display:none}
.terminal-screen{min-width:0}
.terminal-empty{padding:32px;border:1px solid var(--border);border-radius:7px;text-align:center}
.terminal-shell[data-scene=picking] [data-primary-picking] button[value=loss],.terminal-shell[data-scene=picking] [data-primary-picking] [data-loss-field]{display:none}
.terminal-shell[data-scene=replenish] button[value=pick]{display:none}
.terminal-screen>div>.panel{margin-top:0}
.terminal-category-tabs{margin-bottom:12px}
.terminal-source-dialog{width:min(1000px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:20px;background:var(--bg-surface);color:var(--text);border:1px solid var(--accent);border-radius:8px}
.terminal-source-dialog::backdrop{background:rgba(0,0,0,.78)}
.terminal-source-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.terminal-source-dialog h2{margin:0;font-size:26px}
.terminal-source-cards{display:grid;gap:10px;max-height:65dvh;overflow:auto}
.terminal-source-cards .button{justify-content:flex-start;white-space:normal;text-align:left;padding:16px}
.terminal-inspection-standard article{padding:10px;border:1px solid var(--border);border-radius:5px;margin:6px 0}
.terminal-inspection-standard p{margin:6px 0}
.h5-app .terminal-brand{display:grid;gap:4px;min-width:170px}
.h5-app .terminal-brand strong{color:var(--accent);font-size:20px}
.h5-app .terminal-brand small{color:var(--muted);font-size:14px}
.h5-app .terminal-module{flex:1;min-width:200px}
.h5-app .terminal-header-actions{display:flex;gap:8px}
.h5-app .h5-topbar-tools{flex:none}
.h5-app .h5-content{padding:14px 12px}
.h5-workbench-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px}
.h5-workbench-heading h1{font-size:30px;margin:0}
.h5-workbench-heading p{margin:6px 0 0;color:var(--muted)}
.h5-home-screen .h5-content-h5-home .h5-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(130px,1fr));gap:12px;flex:1}
.h5-app .h5-action-card{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-height:130px;padding:24px;border:1px solid var(--border);border-radius:7px;background:var(--bg-surface);color:var(--text);text-align:left}
.h5-app .h5-action-card strong{font-size:27px;margin-bottom:10px}
.h5-app .h5-action-card span{font-size:16px;color:var(--muted)}
.h5-app .h5-content-h5-home{min-height:calc(100dvh - 90px);display:flex;flex-direction:column}
@media(max-width:760px){.h5-home-screen .h5-content-h5-home .h5-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none}.h5-app .h5-action-card{padding:18px}.h5-app .h5-action-card strong{font-size:22px}}
.terminal-filter{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end;margin-bottom:12px}
.terminal-filter label{display:grid;gap:6px;min-width:0}
.terminal-record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.terminal-record-card{margin:0;display:flex;flex-direction:column;gap:8px;min-width:0;min-height:220px}
.terminal-record-card>header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.terminal-record-card h2{font-size:22px;margin:0;overflow-wrap:anywhere}
.terminal-record-card p{margin:4px 0}
.terminal-record-card>footer{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:auto}
@media(max-width:760px){.terminal-filter{grid-template-columns:1fr 1fr}.terminal-record-grid{grid-template-columns:1fr}}
.terminal-search-bar{display:flex;gap:12px;align-items:end}
.terminal-search-bar>label{display:grid;gap:6px;flex:1;min-width:0}
.terminal-unit-overview{display:grid;grid-template-columns:minmax(250px,.6fr) minmax(0,1.4fr);gap:12px}
.terminal-unit-overview .panel{margin-top:0}
.terminal-unit-overview img{max-width:100%;height:auto}
.terminal-detail-tabs{margin:12px 0}
.terminal-source-dialog [data-invoice-source-choice]{display:grid;gap:8px;margin:14px 0}
.terminal-source-dialog select[multiple]{width:100%;min-height:260px;max-height:55dvh}
@media(max-width:760px){.terminal-unit-overview{grid-template-columns:1fr}.terminal-search-bar{flex-wrap:wrap}}
.terminal-picker-trigger{width:100%;justify-content:space-between;text-align:left;white-space:normal}
.terminal-source-dialog>[data-terminal-search]{margin:14px 0}

@media(min-width:761px){
 .terminal-page .terminal-inspection-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin-bottom:12px}
 .terminal-page .terminal-inspection-summary h2{grid-column:1/-1;margin:8px 0}
 .terminal-page .terminal-inspection-summary p{margin:0}
 .terminal-page [data-expense-form]{display:grid;grid-template-columns:300px minmax(0,1fr);gap:12px;align-items:start}
 .terminal-page [data-expense-form]>.panel:first-of-type{grid-column:1;grid-row:1/3}
 .terminal-page [data-expense-form]>.panel:first-of-type .record-form{grid-template-columns:1fr}
 .terminal-page [data-expense-form]>.workspace-steps{grid-column:2;margin:0}
 .terminal-page [data-expense-form]>[data-expense-invoice]{grid-column:2;margin:0}
 .terminal-page [data-expense-form]>.expense-actions{grid-column:1/-1;position:static}
}
.h5-app .h5-content-h5-home{min-height:0;flex:1}

.terminal-page .terminal-category-tabs{margin:6px 0}.terminal-page .incoming-inspection{padding:12px}

.terminal-workspace>.incoming-inspection:last-child{margin-bottom:0}

.terminal-page .terminal-inspection-summary h2{margin:0}
[data-stockin-history] .table-scroll{max-height:60dvh;overflow:auto}

.h5-picking-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:8px}
.h5-picking-modes>.button{min-height:64px;font-size:20px;font-weight:700;white-space:normal}
.h5-picking-range{margin:0 0 12px;font-size:16px}
.picking-operation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.picking-operation-grid>.button{min-height:76px;font-size:20px;white-space:normal;text-align:center}
.picking-operation-dialog footer{justify-content:space-between;align-items:center}
@media(max-width:760px){.picking-operation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.h5-picking-modes>.button{font-size:18px}}

[data-picking-mix]>div{max-height:55dvh;overflow:auto;margin:16px 0}
[data-picking-mix]>.button{min-height:56px;margin-right:8px}

.h5-production .picking-carrier-pages{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center}
.h5-production .picking-carrier-pages .button{width:auto;min-width:0;padding-inline:8px}

.h5-app .button.report-home-link,.report-home-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:56px;padding:10px 16px;border:2px solid var(--accent);border-radius:6px;color:var(--accent);font-weight:700}@media(min-width:761px){.terminal-shell:has(.report-home-link)>.terminal-header,.h5-app:has(.report-home-link)>.terminal-header{position:sticky;top:0;z-index:10;background:var(--surface,#111c23)}}

.h5-app .h5-report-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.h5-app .h5-report-choice-grid .h5-action-card{min-height:132px;padding:18px;gap:8px;justify-content:center}.h5-app .h5-report-choice-grid .h5-action-card strong{font-size:24px}.h5-app .h5-operation-locked{border-style:dashed;background:var(--surface);cursor:default}.h5-operation-locked .button:disabled{opacity:.55;cursor:not-allowed}@media(max-width:760px){.h5-app .h5-report-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:760px){.carrier-detail-page .short-column-scroll>table{min-width:760px}.carrier-detail-page .short-column-scroll :is(th,td){min-width:88px}}

@media(max-width:600px){.h5-app .h5-operation-grid{grid-template-columns:1fr}}

.h5-app span.terminal-brand{position:relative;padding-left:48px;min-width:220px;min-height:40px}
.h5-app span.terminal-brand::before{content:"";position:absolute;left:0;top:50%;width:40px;height:40px;transform:translateY(-50%);border-radius:8px;background:url("../mes-brand.083881bb928a.jpg") center/contain no-repeat}

.h5-app .h5-action-card .h5-operation-name{display:-webkit-box;max-width:100%;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}

.terminal-header>.terminal-module,.h5-app .terminal-header>.terminal-module{min-width:0}
.terminal-header-menu{position:relative;align-self:center}
.terminal-header-menu>summary{min-height:48px;display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 14px;border:1px solid var(--border);border-radius:5px;background:#223139;color:var(--text);list-style:none}
.terminal-header-menu>summary::-webkit-details-marker{display:none}
.terminal-header-menu>summary::after{content:"▾"}
.terminal-header-menu[open]>summary::after{content:"▴"}
.terminal-header-menu>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.terminal-menu-content{position:absolute;right:0;top:calc(100% + 8px);z-index:30;width:min(360px,calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));max-height:calc(100dvh - 150px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;padding:12px;border:1px solid var(--border);border-radius:7px;background:var(--bg-surface);box-shadow:0 8px 24px #0008}
.terminal-header-menu[open]>.terminal-menu-content{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.terminal-menu-content>p{grid-column:1/-1;margin:0 0 4px;overflow-wrap:anywhere;font-size:16px}
.terminal-menu-content>.button{white-space:normal}
@media(max-width:760px){
 .terminal-page,.h5-stage{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
 .h5-app{min-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
 .terminal-page .erp-content,.h5-app .h5-content{padding:12px 12px 16px}
 .terminal-shell>.terminal-header,.h5-app>.terminal-header{position:relative;top:auto;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;min-height:0;padding:8px;align-items:center}
 .terminal-header>.terminal-brand,.h5-app .terminal-header>.terminal-brand{min-width:0;max-width:140px;display:block}
 .terminal-header .terminal-brand strong{font-size:16px}
 .h5-app .terminal-header>span.terminal-brand{width:44px;max-width:44px;min-height:44px;padding-left:44px}
 .h5-app .terminal-header>span.terminal-brand strong{display:none}
 .terminal-header .terminal-brand small{display:none}
 .terminal-header>.report-home-link,.h5-app .terminal-header>.report-home-link{min-height:44px;padding:8px;gap:6px;font-size:16px;white-space:nowrap}
 .terminal-header .report-home-link svg{width:18px;height:18px}
 .terminal-header>.terminal-module{grid-column:2;grid-row:1;margin:0}
 .terminal-header>.terminal-module select{min-height:44px;font-size:16px;padding:8px 4px;width:100%;min-width:0}
 .terminal-header>.terminal-header-menu{grid-column:3;grid-row:1}
 .terminal-header-menu>summary{min-height:44px;padding:8px;font-size:16px}
 .terminal-header>.operator-chip,.terminal-header>.terminal-operator{grid-column:1/-1;grid-row:2;display:flex;align-items:center;min-width:0;max-width:none;width:100%;min-height:32px;gap:8px;margin:0;padding:0 4px;border:0;font-size:16px}
 .terminal-header .terminal-operator-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .terminal-header .operator-session-time{display:flex;align-items:baseline;gap:6px;font-size:16px}
 .terminal-header .operator-session-time small,.terminal-header .terminal-operator>span{font-size:14px;white-space:nowrap;color:var(--muted)}
 .h5-app,.h5-production{font-size:16px;line-height:1.5}
 .h5-app .operator-auth-backdrop{padding:calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left))}
 .h5-app .operator-auth-dialog{max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:16px}
 .h5-app :is(.page-header,.h5-workbench-heading),.terminal-heading,.terminal-scene-heading{gap:8px;align-items:start;flex-wrap:wrap;margin:12px 0}
 .h5-app :is(h1,.h5-workbench-heading h1),.h5-production .terminal-heading h1,.h5-production[data-work-mode=report] .page-heading h1{font-size:22px;line-height:1.35;overflow-wrap:anywhere}
 .h5-app h2,.h5-production h2,.terminal-record-card h2,.terminal-source-dialog h2{font-size:20px;line-height:1.4;overflow-wrap:anywhere}
 .h5-app h3,.h5-production h3{font-size:18px;line-height:1.4}
 .h5-app :is(p,legend,dd),.h5-production :is(p,legend,dd){overflow-wrap:anywhere}
 .h5-app .h5-task header{align-items:start;flex-wrap:wrap}
 .h5-app .h5-task header>strong{min-width:0;flex:1;overflow-wrap:anywhere}
 .h5-app .h5-task header>.status{align-self:start}
 .h5-app .card-body,.h5-production .panel{padding:12px}
 .h5-app .page-header p,.h5-production .terminal-heading p{font-size:16px}
 .h5-app .field>span,.h5-production .record-form label{font-size:16px}
 .h5-app .field-help,.h5-production small{font-size:14px}
 .h5-app :is(input,select,textarea),.h5-production :is(input,select,textarea){font-size:16px;min-width:0}
 .h5-app .button,.h5-production .button{font-size:16px;min-height:44px;white-space:normal;overflow-wrap:anywhere;max-width:100%;padding:10px 12px}
 .h5-app .h5-action-card,.h5-app .h5-report-choice-grid .h5-action-card{min-height:100px;padding:14px;gap:6px}
 .h5-app .h5-action-card strong,.h5-app .h5-report-choice-grid .h5-action-card strong{font-size:20px;margin-bottom:4px}
 .h5-app .h5-action-card span{font-size:14px}
 .h5-app .h5-content-h5-home{min-height:0}
 .h5-app .h5-content-h5-tasks .h5-task-list{max-height:none;overflow:visible}
 .terminal-record-card{min-height:0}
 .terminal-filter{grid-template-columns:minmax(0,1fr)}
 .terminal-record-card :is(header,footer),.terminal-search-bar,.h5-production .h5-material-exception>header{flex-wrap:wrap}
 .h5-production :is(.table-scroll,.short-column-scroll),.h5-app .table-scroll{max-width:100%;overflow:auto;overscroll-behavior-x:contain}
 .h5-production .table-scroll>table{min-width:620px}
 .h5-production .table-scroll :is(th,td){min-width:88px}
 .h5-production .h5-report-home{grid-template-columns:minmax(0,1fr);min-height:0}
 .h5-production .h5-report-entry label{min-width:0}
 .h5-production .h5-report-operation,.h5-production .h5-report-quality{grid-template-columns:repeat(2,minmax(0,1fr))}
 .h5-production .h5-report-entry input,.h5-production .h5-report-quality input{min-height:64px;font-size:32px}
 .h5-production .h5-report-entry .button,.h5-production .h5-report-main-actions .button{min-height:52px;font-size:18px}
 .h5-production .expense-actions,.h5-production .allocation-footer,.h5-app .sticky-action{position:static;padding-bottom:12px}
 .h5-production .h5-report-allocation .allocation-footer .button.primary{min-width:0;width:100%}
 :is(.h5-app,.h5-production) dialog:not(.h5-input-panel),.h5-report-confirmation,.ibi-camera-dialog{inset:calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));margin:auto;max-width:calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;padding:12px}
 :is(.h5-app,.h5-production) dialog :is(header,footer){flex-wrap:wrap;gap:8px}
 .ibi-camera-dialog video{max-height:40dvh;margin-bottom:12px}
}

.terminal-home-narrow{display:none!important}
.terminal-previous{min-height:48px;white-space:nowrap}
.quality-reason-choices{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;padding:10px;border:1px solid var(--border)}
.quality-reason-choices legend{font-size:16px}
.quality-reason-choices label{display:flex!important;align-items:center;gap:6px;min-height:44px;padding:6px 10px;border:1px solid var(--border);border-radius:5px;cursor:pointer}
.quality-reason-choices input[type=checkbox]{width:20px!important;min-height:20px!important;height:20px;margin:0}
@media(max-width:760px){.terminal-header>.terminal-home-wide,.h5-app .terminal-header>.terminal-home-wide{display:none!important}.terminal-home-narrow{display:flex!important}.terminal-header>.terminal-previous{grid-column:1;grid-row:1;min-height:44px;padding:8px;font-size:16px}}
@media(min-width:761px){.terminal-header:has(>.terminal-previous){grid-template-columns:auto auto minmax(0,1fr) auto auto}}
