/* List first, forms on demand. Never hide print output or change accounting behavior. */
.bw-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:4px 0 20px}.bw-heading h2{font-size:25px;margin:0 0 6px;color:var(--ink,#17243b)}.bw-heading p,.bw-help{font-size:12px;color:#718096;margin:0}.bw-tabs{display:flex;gap:24px;border-bottom:1px solid #dce4ee;margin-bottom:20px;overflow:auto}.bw-tabs button{border:0;background:transparent;font:600 14px inherit;color:#64748b;white-space:nowrap;padding:12px 0;border-bottom:3px solid transparent;cursor:pointer}.bw-tabs button.active{color:var(--accent,#315be8);border-bottom-color:var(--accent,#315be8)}.bw-entry-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:16px 0}.bw-entry-heading h3{margin:0}.bw-list-tools{padding:12px 0}.bw-list-tools input,.bw-list-tools select{border:1px solid #d5deeb;border-radius:8px;padding:9px 12px;font:13px inherit}.bw-list-tools input{width:320px;max-width:100%}.bw-list-tools .bw-help{margin-left:auto}.co-brief{display:flex;gap:10px;justify-content:space-between;font-size:13px;color:#64748b;margin-top:10px}.co-brief span:first-child{min-width:0;overflow-wrap:anywhere}.co-details summary{cursor:pointer;color:var(--accent,#315be8);font-size:13px;padding:12px 0 4px}.co-details[open] summary{margin-bottom:12px}.co-details .customer-order-actions{border-top:1px solid #e2e8f0;padding-top:12px}.customer-order-row{padding:18px 20px}#coEntry{max-width:1000px;margin:auto}#legacyProductionPanel>#orderCard{max-width:1000px;margin-left:auto;margin-right:auto}#legacyProductionPanel>#orderFormActions{max-width:1000px;margin-left:auto;margin-right:auto}.bw-tabs button:focus-visible,.co-details summary:focus-visible{outline:3px solid #b6c8ff;outline-offset:3px}
@media screen{
 #page-order:not([data-order-mode="new"]) #coEntry,#page-order[data-order-mode="new"] #customerOrderList,#page-order[data-order-mode="new"] #coListTools{display:none!important}
 #page-order:not([data-order-mode="production"]) #legacyProductionPanel,#page-order:not([data-order-mode="history"]) #productionHistoryCard{display:none!important}
 #page-order[data-order-mode="production"] #customerOrderCenter,#page-order[data-order-mode="history"] #customerOrderCenter{display:none!important}
 #page-track[data-track-view="records"] #trackMonthlyCard,#page-track[data-track-view="statistics"] #trackRecordsCard,#page-track[data-track-view="statistics"] .track-filters{display:none!important}
}
@media(max-width:700px){.bw-heading{align-items:flex-start;flex-direction:column;gap:12px}.bw-heading h2{font-size:22px}.bw-heading .ui-action-group{width:100%}.bw-heading .btn{flex:1}.bw-tabs{gap:20px;margin-bottom:14px}.bw-list-tools input{width:100%}.bw-list-tools .bw-help{margin-left:0}.bw-entry-heading{align-items:flex-start;flex-wrap:wrap}.customer-order-row{padding:14px}.co-brief{flex-direction:column;gap:4px}}
/* Shipping availability remains visible even when stock is not ready. */
.co-shipping-hint{padding:10px 12px;margin:10px 0;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;color:#9a3412;font-size:13px;line-height:1.6}
.co-delivery-link{border:0;background:transparent;color:inherit;padding:4px 0;text-align:left;cursor:pointer;text-decoration:underline;text-underline-offset:3px;font:inherit}
.customer-order-btn:disabled{opacity:.55;cursor:not-allowed}

/* Production list uses the same compact cards as the former customer list. */
#page-order #coEntry{display:none!important}
.production-order-row .history-order-link{font-size:16px;font-weight:700;border:0;background:transparent;padding:0;color:inherit;cursor:pointer;text-align:left}
#historyList>.production-order-row{margin-bottom:12px}
.production-order-row .vw-shipping-progress{margin-top:10px}
.production-order-row .customer-order-actions{display:flex;flex-wrap:wrap;gap:8px}
.production-order-row .vw-order-copy{min-width:0}
.production-order-row .co-brief{overflow-wrap:anywhere}
