.information-context,.information-panel *{box-sizing:border-box}
.modal.information-context,.prod-dialog.information-context{width:min(1080px,calc(100vw - 32px));max-width:100%;margin-left:auto;margin-right:0;padding:0;max-height:calc(100dvh - 24px);overflow:auto;border-radius:12px}
.information-preserved[hidden],.info-fields[hidden]{display:none!important}
.order-entry [hidden],.info-tools[hidden]{display:none!important}
.information-panel{padding:20px 24px;background:#fff;color:#273634;text-align:left}
.information-panel header,.information-panel footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0;border:0}
.information-panel h3{font-size:20px;margin:3px 0 0}.info-eyebrow{font-size:12px;color:#087f7b}.info-summary{background:#eff7f6;border-radius:6px;padding:9px 12px;margin:12px 0;font-size:13px;overflow-wrap:anywhere}
.info-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 14px}.info-field{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#46534f}.info-field input,.info-field select{width:100%;min-width:0;height:34px;border:1px solid #d9e1df;border-radius:5px;padding:5px 8px;background:white;font-size:13px;color:#213833}.info-field input:focus,.info-field select:focus{outline:2px solid #a8d9d4;border-color:#087f7b}.info-span{grid-column:span 2}.info-field input[readonly],.info-field select:disabled{background:#f6f8f7;color:#46534f}
.info-tools{display:flex;align-items:center;gap:18px;margin:12px 0;font-size:12px}.info-calculation{padding:10px;background:#f4f7f6;font-size:12px;border-radius:6px;line-height:1.6}.info-error{color:#b42318;font-size:13px;min-height:20px}.information-panel footer>span{flex:1;font-size:12px;color:#697770}.info-die-browser{height:330px}.info-die-results{max-height:260px;overflow:auto}.info-die-choice{display:block;width:100%;padding:10px;text-align:left;background:white;border:1px solid #d9e1df}.info-die-choice:hover{background:#eff7f6}

.sales-production-pane[hidden]{display:none!important}
.modal:has(.sales-dual-body){width:min(1840px,calc(100vw - 32px));max-width:none}
.sales-dual-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.sales-entry-pane,.sales-production-pane{min-width:0}
.sales-production-pane{border-left:1px solid #d9e1df;padding-left:24px}
.sales-production-pane .information-panel{padding:0}
.sales-production-pane .definition-tabs{position:static;top:auto;z-index:auto}
.info-fields.info-production-rows{display:flex;flex-direction:column;gap:10px}
.info-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.info-fields.info-production-rows .info-row-four{grid-template-columns:repeat(4,minmax(0,1fr))}
.info-row[hidden]{display:none!important}
.info-fields.info-production-rows .info-row-full{grid-template-columns:minmax(0,1fr)}
.info-row .info-field{grid-column:auto;min-width:0}
.info-printing-field{display:grid;gap:8px;min-width:0;align-self:start}
.info-label-dispensing[hidden]{display:none!important}
.info-customer-feed .info-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.info-customer-feed .info-row-full{grid-template-columns:minmax(0,1fr)}
.info-customer-feed .info-row-four{grid-template-columns:repeat(4,minmax(0,1fr))}
.info-fields.info-production-rows .info-row-core{grid-template-columns:repeat(4,minmax(0,1fr))}
.info-customer-feed .info-field[hidden]{display:none!important}
.info-row [data-info-die],.info-row [data-manage-dies]{height:34px;min-height:34px;padding:4px 8px;font-size:12px;white-space:nowrap}
.info-row [data-info-die-status]:empty{display:none}
.sales-production-pane .info-tools{gap:12px;flex-wrap:wrap;margin:10px 0}
.sales-production-pane .info-error:empty{display:none}
.sales-production-pane .info-calculation{display:block;margin-top:12px}
.sales-production-pane [data-info-print]{padding:4px 8px;min-height:28px;font-size:12px}
.sales-production-pane .info-summary{margin:10px 0}
@media(min-width:1001px){
 .modal:has(.sales-dual-body) .order-header-grid{grid-template-columns:150px minmax(0,2fr) minmax(0,1fr)}
 .modal:has(.sales-dual-body) .order-primary-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
 .modal:has(.sales-dual-body) #real-order-specification-fields{grid-column:1/-1}
}
@media(min-width:1001px) and (max-height:850px){
 .modal:has(.sales-dual-body) .modal-body{padding:12px 20px}
 .sales-dual-body .order-entry-section{padding:8px 10px}
 .sales-dual-body .order-entry{gap:6px}
 .sales-dual-body .form-grid{gap:8px 12px}
 .sales-dual-body .field{gap:3px}
 .sales-dual-body .field input,.sales-dual-body .field select{height:32px;min-height:32px;padding:4px 8px;font-size:13px}
 .sales-dual-body textarea{min-height:36px;height:36px}
 .sales-dual-body .order-product-confirmation{padding:4px 8px;min-height:0;margin-top:4px}
 .sales-dual-body .order-product-confirmation strong{display:none}
 .sales-dual-body .field-hint,.sales-dual-body .order-specification-actions{font-size:11px;margin-top:3px}
 .sales-dual-body .order-header-grid{grid-template-columns:130px minmax(0,2fr) minmax(0,1fr)!important}
 .sales-dual-body .info-fields{gap:8px}
 .sales-dual-body .info-field{line-height:16px}
 .sales-dual-body .info-summary{margin:6px 0;padding:6px 10px}
 .sales-dual-body .info-tools{margin:6px 0}
 .sales-dual-body .notice{padding:8px;font-size:12px}
}
@media(max-width:1000px){.sales-dual-body{grid-template-columns:minmax(0,1fr)}.sales-production-pane{border-left:0;border-top:1px solid #d9e1df;padding:16px 0 0}}
.information-panel .info-production-notes textarea{width:100%;min-height:58px;height:58px;padding:7px 8px;border:1px solid #d9e1df;border-radius:5px;background:white;color:#213833;font-size:13px;line-height:20px;resize:vertical;white-space:pre-wrap;box-sizing:border-box}
@media(max-width:700px){
 .information-panel{padding:14px}.info-tools{flex-wrap:wrap}.information-panel footer{flex-wrap:wrap}
 .info-row{gap:8px}.info-field input,.info-field select{padding:4px;font-size:12px}
 .modal:has(.sales-dual-body) .order-header-grid,.modal:has(.sales-dual-body) .order-primary-grid{grid-template-columns:minmax(0,1fr)}
 .modal:has(.sales-dual-body) .field.span-2{grid-column:auto}
}

.order-header-grid .field:has(#real-order-customer-search){position:relative}
.order-header-grid .field:has(#real-order-customer-search)>.link-button{position:absolute;right:0;top:0;font-size:11px;padding:0}
@media(min-width:1001px) and (max-height:850px){
 .modal:has(.sales-dual-body){max-height:calc(100dvh - 24px)}
 .modal:has(.sales-dual-body) .modal-head,.modal:has(.sales-dual-body) .modal-foot{padding:10px 20px}
 .sales-dual-body .info-fields.info-production-rows{gap:6px}
 .sales-dual-body .info-field input,.sales-dual-body .info-field select{height:32px}
}

.info-row [data-upload-artwork]{height:34px;min-height:34px;padding:4px 8px}
[data-info-artwork-status]:empty{display:none}
.info-die-browser .info-tools{display:flex;align-items:center;gap:12px}
.info-die-browser .info-tools>input,.info-die-browser .info-tools>button{box-sizing:border-box;height:40px;min-height:40px;padding:8px 12px;border:1px solid #d9e1df;border-radius:6px;font:inherit}
.info-die-browser .info-tools>input{width:240px;max-width:100%;min-width:0}
.info-die-browser .info-die-results{max-height:360px;overflow:auto}
.info-die-browser{height:auto;min-height:330px}
button.sales-information-action{border:0;cursor:pointer;font-family:inherit}
button.sales-information-action:focus-visible{outline:2px solid #087f7b;outline-offset:2px}
body .sales-order-table:has([data-information-status]){min-width:1100px}
body .sales-order-table:has([data-information-status]) th:nth-child(1){width:14%}
body .sales-order-table:has([data-information-status]) th:nth-child(2){width:16%}
body .sales-order-table:has([data-information-status]) th:nth-child(3){width:9%}
body .sales-order-table:has([data-information-status]) th:nth-child(4){width:17%}
body .sales-order-table:has([data-information-status]) th:nth-child(5){width:8%}
body .sales-order-table:has([data-information-status]) th:nth-child(6){width:9%}
body .sales-order-table:has([data-information-status]) th:nth-child(7){width:9%}
body .sales-order-table:has([data-information-status]) th:nth-child(8){width:7%}
body .sales-order-table:has([data-information-status]) th:nth-child(9){width:11%}
body .sales-order-table:has([data-information-status]) .ui-row-actions{min-width:0;flex-wrap:wrap;justify-content:center}

body .sales-order-table button.sales-completion-action{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:32px;min-width:76px;margin:0;padding:5px 9px;border:1px solid #f0cf97;border-radius:5px;background:var(--warning-soft);color:var(--warning);font-family:inherit;font-size:12px;font-weight:500;line-height:20px;white-space:nowrap;cursor:pointer}
body .sales-order-table button.sales-completion-action:is(:hover,:focus-visible){background:#ffebc7;color:#784a08;border-color:#dba34a}
.sales-information-progress{margin-top:4px;font-size:12px}
.sales-product-information{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;line-height:1.5;text-align:center}
.sales-product-information .sales-information-action{padding:2px 0;white-space:nowrap;font-size:13px}
.sales-product-information>span{white-space:nowrap}
[data-perfect-information][hidden]{display:none}

.modal.source-information-modal,.prod-dialog.source-information-modal{width:min(1080px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
.source-information-modal .information-panel{padding:0}
.source-information-modal .definition-tabs{position:static;top:auto;z-index:auto}
.source-information-modal .information-panel>header,.source-information-modal .info-calculation{display:none}
.source-information-modal .info-summary{padding:16px 18px;margin:0 0 18px;border:1px solid #cbe4e1}
.info-order-identity,.info-order-details{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 20px}
.info-order-identity strong{font-size:18px;color:#165f5b}
.info-order-product{font-size:17px;font-weight:600;margin:10px 0}
.info-order-details{font-size:14px}
.source-information-modal .info-error:empty{display:none}
.editable-combobox{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 36px}
.editable-combobox>input{min-width:0;border-radius:6px 0 0 6px}
.editable-combobox>[data-combo-toggle]{border:1px solid #ccd9d7;border-left:0;border-radius:0 6px 6px 0;background:#fff;color:#42515d;cursor:pointer}
.editable-combobox-options{position:absolute;z-index:80;top:calc(100% + 4px);left:0;right:0;max-height:240px;overflow:auto;padding:5px;border:1px solid #ccd9d7;border-radius:7px;background:#fff;box-shadow:0 12px 28px rgba(20,34,48,.15)}
.editable-combobox-options[hidden]{display:none}.editable-combobox-options button{display:block;width:100%;padding:8px 10px;border:0;border-radius:5px;background:#fff;text-align:left;font:inherit;color:#27343e;cursor:pointer}.editable-combobox-options button:hover,.editable-combobox-options button:focus{background:#eaf6f3;outline:none}.editable-combobox-options button[hidden]{display:none}.editable-combobox-options [data-combo-empty]{display:block;padding:8px 10px;color:#75808d}.editable-combobox-options [data-combo-empty][hidden]{display:none}

.stock-entry-dialog{width:min(1180px,calc(100vw - 32px))}.stock-entry-fields{margin-bottom:18px}.stock-entry-dialog .information-panel{padding:0}.stock-entry-dialog .info-calculation{display:none}

.stock-entry-dialog .info-summary{display:none}.stock-entry-dialog .information-panel>header{margin:0 0 10px}.stock-entry-dialog .information-panel h3{font-size:16px}.stock-entry-dialog .info-fields{gap:7px}.stock-entry-dialog .stock-entry-fields{margin-bottom:12px}.stock-entry-dialog .prod-body{padding:16px 20px}.stock-entry-dialog .info-field{gap:3px}
@media(min-width:1000px){.stock-entry-dialog .stock-entry-fields{grid-template-columns:2fr 1fr 1fr 1fr;gap:12px}.stock-entry-dialog .stock-entry-fields .prod-wide{grid-column:auto}}

.order-entry input.stock-not-required{background:#f1f3f5;color:#687780;border-color:#dce2e5}.order-entry input.stock-not-required::placeholder{color:#687780;opacity:1}

.information-line-picker{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.information-line-picker select{width:100%;height:38px;padding:6px 10px;border:1px solid #ccd9d7;border-radius:6px;background:white}

.source-information-modal:has([data-information-select]) .info-summary{padding:12px 16px;margin-bottom:12px}.source-information-modal:has([data-information-select]) .info-order-product{margin:6px 0}.source-information-modal:has([data-information-select]) .info-fields{gap:7px}

.info-die-actions{display:flex;gap:8px;flex-wrap:wrap}.info-field [data-derived-status]{font-size:12px;color:#9a6700}.info-field [data-restore]{align-self:flex-end}

.product-information-editor .information-panel{padding:0}
.product-information-editor .information-panel>header,.product-information-editor .information-panel>.info-summary{display:none}
.product-information-editor .info-tools{display:flex;flex-wrap:wrap;gap:8px}
.product-information-editor [data-information-panes]{margin-top:12px}
.product-information-editor .order-edit-reason{margin-top:16px}

/* Keep the line overview visible in the editor without a second list mode. */
.sales-entry-pane>.order-edit-lines{margin-bottom:10px}
.order-edit-lines .panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:0;border:0}
.order-edit-lines .panel-head h3{margin:0;font-size:16px}
.order-edit-lines .table-wrap{max-height:250px;overflow:auto;border:0;border-radius:6px}
.order-edit-lines table{width:100%;min-width:580px;table-layout:auto;font-size:12px}
.order-edit-lines th,.order-edit-lines td{padding:10px 6px;text-align:center!important;vertical-align:middle!important;overflow-wrap:anywhere}
.order-edit-lines th{position:sticky;top:0;z-index:1;background:var(--surface-soft,#f4f7f7);font-weight:500}
.order-edit-lines th:nth-child(1){width:20%}.order-edit-lines th:nth-child(2){width:16%}.order-edit-lines th:nth-child(3){width:6%}.order-edit-lines th:nth-child(4){width:11%}.order-edit-lines th:nth-child(5){width:14%}.order-edit-lines th:nth-child(6){width:17%}.order-edit-lines th:nth-child(7){width:16%}
.order-edit-lines td.number{white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
.order-edit-lines tr.is-editing td{background:#e8f5f2}
.order-line-actions{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.order-line-actions .link-button,.order-line-selected{font-size:12px;white-space:nowrap}
.order-line-selected{color:var(--primary,#087f7b);font-weight:600}
.order-edit-lines [hidden]{display:none!important}
.order-edit-table-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.modal-foot>.order-edit-reason{display:flex;align-items:center;gap:12px;flex:0 1 640px;min-width:0;margin:0 auto 0 0}
.modal-foot>.order-edit-reason>span{white-space:nowrap}
.modal-foot>.order-edit-reason>input{min-width:0;flex:1;height:38px}
/* Required fields are marked without relying on color alone. */
.information-panel .info-required { color: #b64732; }
.information-panel [aria-invalid="true"] { border: 1px solid #b42318; background: #fff4f2; box-shadow: 0 0 0 1px #b42318; }
.information-panel .info-field-error { display: block; color: #b42318; font-size: 12px; line-height: 1.5; margin-top: 4px; }
/* Calculation reminders stay independent from red save-time validation. */
[data-calculation-warning="true"]:not([aria-invalid="true"]){border-color:#d3a64d!important;background:#fff8df!important;box-shadow:0 0 0 1px #ecd89f}
.information-panel [data-derived-status]{display:block;line-height:1.6;overflow-wrap:anywhere;white-space:normal}

/* Machine suggestions stay beside production inputs without widening the order editor. */
.info-preassignment{border:1px solid var(--border,#dbe5e8);border-radius:6px;padding:8px 10px;background:#f4fafa;min-width:0}
.info-preassignment[hidden]{display:none}
.info-preassignment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px;font-size:13px}
.info-preassignment-heading>span{font-size:12px;color:#8b641b;font-weight:400}
.info-preassignment-machines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 8px;padding:6px 0;border-top:1px solid var(--border,#dbe5e8)}
.info-preassignment .info-field{gap:3px;min-width:0}
.info-preassignment-machines select{width:100%;min-width:0;height:32px;padding:4px 6px}
.info-preassignment-footer{display:flex;align-items:center;gap:8px;margin-top:2px}
.info-preassignment-footer>.link-button{flex-shrink:0;font-size:12px;white-space:nowrap}
.info-preassignment-hint{margin:0;font-size:12px;color:#667a8a}

@media screen and (min-width:1001px){
 .sales-dual-body{gap:14px}
 .sales-production-pane{padding-left:14px}
 .modal:has(.sales-dual-body){max-height:calc(100dvh - 24px)}
 .modal:has(.sales-dual-body) .modal-body{padding:12px 16px}
 .modal:has(.sales-dual-body) .modal-head,.modal:has(.sales-dual-body) .modal-foot{padding:10px 16px}
 .sales-dual-body .order-entry-section{padding:8px 10px}
 .sales-dual-body .order-entry{gap:8px}
 .sales-dual-body .order-header-grid:has(#real-order-delivery-mode) :is(input,select){height:32px;min-height:32px;padding:4px 8px}
 .sales-dual-body .form-grid{gap:8px 10px}
 .sales-dual-body .field{gap:4px}
 .sales-dual-body .field input,.sales-dual-body .field select{height:32px;min-height:32px;padding:4px 8px;font-size:13px}
 .sales-dual-body .order-product-confirmation{padding:5px 8px;min-height:0;margin-top:4px}
 .sales-dual-body .info-fields.info-production-rows{gap:7px}
 .sales-dual-body .info-row{gap:8px}
 .info-fields.info-production-rows .info-row:has([data-info="process"]){grid-template-columns:minmax(0,.8fr) minmax(176px,1.5fr) minmax(0,.7fr) minmax(0,1fr)}
 .sales-dual-body .info-tools{margin:6px 0}
 .sales-dual-body .info-summary{margin:6px 0;padding:6px 10px}
 .sales-dual-body .info-field input,.sales-dual-body .info-field select{height:32px}
 .sales-dual-body .notice{padding:8px;font-size:12px}
 .order-edit-lines table{min-width:0;table-layout:fixed}
 .order-edit-lines th,.order-edit-lines td{padding:8px 4px}
 .order-edit-lines th:nth-child(1){width:19%}.order-edit-lines th:nth-child(2){width:16%}.order-edit-lines th:nth-child(3){width:6%}.order-edit-lines th:nth-child(4){width:10%}.order-edit-lines th:nth-child(5){width:13%}.order-edit-lines th:nth-child(6){width:18%}.order-edit-lines th:nth-child(7){width:18%}
 .order-line-actions{gap:4px;flex-wrap:wrap}
 .order-edit-lines td.number{white-space:normal;overflow-wrap:anywhere}
 .order-line-actions>*{max-width:100%;white-space:normal}
 .source-information-modal .info-summary{padding:10px 12px;margin-bottom:10px}
 .source-information-modal .info-order-identity strong{font-size:16px}
 .source-information-modal .info-order-product{font-size:15px;margin:6px 0}
 .source-information-modal .info-order-details{font-size:13px}
 .information-panel .info-calculation{margin-top:8px;line-height:1.5}
 .info-field:has([data-derived]){position:relative;padding-bottom:19px}
 .info-field:has([data-derived])>[data-restore]{position:absolute;right:0;bottom:0;font-size:12px;line-height:18px}
 .info-field:has([data-derived])>[data-derived-status]{padding-right:86px;line-height:18px}
}
