/* A. S. Bookbinding ERP V38.28 — Customer Components & Bindery Workflow */
.bw-page-head{display:flex;gap:18px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}.bw-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#64748b;font-weight:800}.bw-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:10px;background:#eef3f8;border:1px solid #d8e1eb;border-radius:12px;margin-bottom:14px}.bw-tabs button{border-radius:999px}.bw-tabs button.active{background:#1f4f84;color:#fff;border-color:#1f4f84}.bw-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.bw-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.bw-card{border:1px solid #dbe3ed;border-radius:12px;padding:15px;background:#fff}.bw-card h3{margin:0 0 8px}.bw-card p{color:#667085;margin:4px 0}.bw-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.bw-metric{border:1px solid #dbe3ed;background:#fff;border-radius:12px;padding:15px}.bw-metric b{display:block;font-size:25px;color:#204f85}.bw-metric span{font-size:12px;color:#667085}.bw-table-wrap{overflow:auto;max-height:620px;scrollbar-gutter:stable;border:1px solid #dbe3ed;border-radius:10px}.bw-table-wrap table{min-width:980px}.bw-table-wrap thead th{position:sticky;top:0;z-index:2;background:#eef3f8}.bw-owner{display:inline-block;padding:3px 8px;border-radius:999px;font-size:11px;background:#eaf3ff;color:#245b91;font-weight:700}.bw-owner.as{background:#e9f8f0;color:#147847}.bw-owner.customer{background:#fff4dc;color:#8c5c00}.bw-stock-good{color:#147847;font-weight:800}.bw-stock-low{color:#b45309;font-weight:800}.bw-stock-empty{color:#b91c1c;font-weight:800}.bw-location{display:inline-flex;gap:4px;flex-wrap:wrap}.bw-location span{padding:2px 6px;background:#eef3f8;border-radius:5px;font-size:11px}.bw-status{display:inline-block;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:800;background:#eef3f8;color:#475569}.bw-status.reserved{background:#fff4dc;color:#8c5c00}.bw-status.consumed,.bw-status.completed{background:#e9f8f0;color:#147847}.bw-status.short{background:#fee2e2;color:#b91c1c}.bw-workflow{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:9px;align-items:stretch}.bw-step{position:relative;border:1px solid #dbe3ed;border-radius:11px;background:#fff;padding:13px}.bw-step b{display:block;margin-bottom:4px}.bw-step small{color:#667085}.bw-step:not(:last-child)::after{content:'→';position:absolute;right:-11px;top:50%;transform:translateY(-50%);z-index:2;color:#64748b;font-size:18px}.bw-note{border-left:4px solid #b68a37;background:#fff9e9;padding:12px 14px;border-radius:8px}.bw-good{border-left:4px solid #147847;background:#e9f8f0;padding:12px 14px;border-radius:8px}.bw-danger{border-left:4px solid #b91c1c;background:#fff1f2;padding:12px 14px;border-radius:8px}.bw-form-section{border:1px solid #dbe3ed;border-radius:11px;padding:14px;margin:12px 0}.bw-form-section>h3{margin:0 0 10px}.bw-check-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.bw-check{display:flex;align-items:center;gap:7px;border:1px solid #dbe3ed;border-radius:8px;padding:8px;background:#fafcff}.bw-check input{width:auto}.bw-recipe-row,.bw-allocation-row,.bw-unit-row{display:grid;gap:8px;align-items:end;border:1px solid #dbe3ed;border-radius:10px;padding:10px;margin:8px 0;background:#fbfcfe}.bw-recipe-row{grid-template-columns:1.1fr 1.8fr .7fr 1fr 1fr auto}.bw-allocation-row{grid-template-columns:1.1fr 1.5fr 1.6fr .7fr .7fr auto}.bw-unit-row{grid-template-columns:.8fr .9fr 1.2fr 1.2fr 1fr auto}.bw-recipe-row .field,.bw-allocation-row .field,.bw-unit-row .field{margin:0}.bw-visibility-row{display:flex;gap:12px;flex-wrap:wrap;padding-top:8px}.bw-visibility-row label{display:flex;align-items:center;gap:5px;font-size:12px}.bw-visibility-row input{width:auto}.bw-capacity{font-size:18px;font-weight:800;color:#204f85}.bw-shortage{background:#fff1f2!important}.bw-preset-bar{display:flex;gap:8px;flex-wrap:wrap;background:#eef6ff;border:1px solid #cfe0f2;border-radius:10px;padding:10px;margin:10px 0}.bw-component-trace{margin-top:14px;border:1px solid #dbe3ed;border-radius:10px;padding:12px}.bw-component-trace h4{margin:0 0 8px}.bw-component-trace table{font-size:12px}.bw-unit-code{font:12px Consolas,monospace;background:#eef3f8;border-radius:5px;padding:3px 6px}.bw-document-choice{display:flex;gap:8px;align-items:flex-start;padding:8px;border-bottom:1px solid #e7edf4}.bw-document-choice input{width:auto;margin-top:3px}.bw-document-choice strong{display:block}.bw-document-choice small{color:#667085}.bw-inline-select{min-width:150px}.bw-compact-action{white-space:nowrap}.bw-upgrade-category{font-weight:800;color:#204f85}.bw-upgrade-option{display:flex;gap:7px;align-items:center}.bw-upgrade-option input{width:auto}.bw-empty{text-align:center;color:#667085;padding:30px}.bw-print-customer-label .pl-barcode,.bw-print-customer-label .pl-source,.bw-print-customer-label .pl-due{display:none!important}.bw-customer-item-label{text-align:center;display:flex;flex-direction:column;justify-content:center;height:100%;line-height:1.1}.bw-customer-item-label .number{font-size:1.18em;font-weight:900}.bw-customer-item-label .he{font-size:1.1em;font-weight:800;direction:rtl}.bw-customer-item-label .en{font-size:.83em}.bw-customer-item-label .meta{font-size:.72em;margin-top:3px}.bw-stage-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.bw-stage-column{border:1px solid #dbe3ed;border-radius:10px;background:#f8fafc;min-height:130px}.bw-stage-column h4{margin:0;padding:9px;background:#eef3f8;border-bottom:1px solid #dbe3ed}.bw-stage-card{margin:8px;padding:8px;border:1px solid #dbe3ed;border-radius:8px;background:#fff;font-size:12px}.bw-receipt-title{display:flex;gap:8px;align-items:center}.bw-source-code{font:12px Consolas,monospace;color:#475569}.bw-qty{font-variant-numeric:tabular-nums}.bw-hide{display:none!important}
@media(max-width:1050px){.bw-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.bw-grid-3{grid-template-columns:1fr 1fr}.bw-workflow{grid-template-columns:1fr 1fr}.bw-step::after{display:none}.bw-recipe-row,.bw-allocation-row{grid-template-columns:1fr 1fr}.bw-unit-row{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.bw-grid,.bw-grid-3,.bw-summary,.bw-workflow,.bw-recipe-row,.bw-allocation-row,.bw-unit-row,.bw-check-grid{grid-template-columns:1fr}.bw-page-head{display:block}.bw-page-head .toolbar{margin-top:10px}.bw-table-wrap{max-height:520px}.bw-tabs{overflow-x:auto;flex-wrap:nowrap}.bw-tabs button{white-space:nowrap}.bw-step::after{display:none}}
@media print{.bw-no-print{display:none!important}.bw-component-trace{break-inside:avoid}}
