﻿/* Warehouse purchase orders and temporary receipts */
.warehouse-receipts-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:18px 0 20px;padding:26px 30px;border:1px solid #cfe2f2;border-radius:20px;background:linear-gradient(115deg,#e7f3ff,#fff 76%);box-shadow:0 12px 28px #1b568414}
.warehouse-receipts-hero h2{margin:6px 0;color:#194b70;font-size:24px}.warehouse-receipts-hero p,.warehouse-orders-heading p{margin:0;color:#607f94;font-size:12px;line-height:1.9}
.warehouse-receipts-metrics{display:flex;gap:9px;flex-wrap:wrap}.warehouse-receipts-metrics span{display:grid;min-width:98px;padding:12px 15px;border:1px solid #d6e7f3;border-radius:12px;background:#fff;color:#57748a;font-size:11px;text-align:center}.warehouse-receipts-metrics b{color:#165b86;font-size:21px}
.warehouse-orders-panel{margin-bottom:25px}.warehouse-orders-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:15px}.warehouse-orders-heading h3{margin:0 0 5px;color:#1b506f;font-size:18px}
.warehouse-orders-search{display:flex;align-items:center;gap:9px;min-width:min(320px,100%);padding:0 12px;border:1px solid #c9dfea;border-radius:12px;background:#fff;color:#37799f}.warehouse-orders-search input{width:100%;min-width:0;height:42px;border:0;outline:0;background:transparent;color:#24485e;font-size:12px}.warehouse-orders-search:focus-within{outline:2px solid #6bb2d7}
.warehouse-order-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:14px}.warehouse-order-card{min-width:0;padding:19px;border:1px solid #d4e5ef;border-radius:17px;background:#fff;box-shadow:0 8px 24px #174e7612}.warehouse-order-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.warehouse-order-top h3{margin:5px 0;color:#194969;font-size:17px;overflow-wrap:anywhere}.warehouse-order-top p{margin:0;color:#738a9b;font-size:11px}.warehouse-order-state{max-width:135px;padding:7px 9px;border-radius:9px;background:#f1f5f8;color:#657c8e;font-size:10px;line-height:1.6;text-align:center}.warehouse-order-state.ready{background:#dff2fc;color:#14628c}
.warehouse-order-material{display:flex;align-items:center;gap:10px;margin:16px 0 13px;padding:11px 13px;border-radius:12px;background:#f3f8fc}.warehouse-order-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:10px;background:#dbeef9;color:#256d97;font-size:22px}.warehouse-order-material div{min-width:0;flex:1}.warehouse-order-material small,.warehouse-order-stats small{display:block;color:#7b91a0;font-size:10px}.warehouse-order-material strong{display:block;color:#244e68;font-size:12px;overflow-wrap:anywhere}.warehouse-order-unit{color:#587e96;font-size:11px}
.warehouse-order-progress{display:flex;height:7px;border-radius:99px;background:#e8f0f6;overflow:hidden}.warehouse-order-progress span{background:#287fae}.warehouse-order-progress i{background:#91bad5}.warehouse-order-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:13px 0}.warehouse-order-stats div{padding:10px;border:1px solid #e4edf4;border-radius:9px}.warehouse-order-stats strong{display:block;margin-top:5px;color:#234b65;font-size:14px}.warehouse-order-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding-top:13px;border-top:1px solid #e9eff4}.warehouse-order-actions>span{color:#6d8798;font-size:11px}.warehouse-order-actions button{white-space:normal}.warehouse-orders-empty{padding:24px;border:1px dashed #c6dbe8;border-radius:13px;background:#f8fbfd;color:#67859a;font-size:12px;text-align:center}
#dialog.warehouse-receipt-dialog{width:min(760px,calc(100vw - 22px));max-height:calc(100dvh - 24px);border:1px solid #ccdeeb;border-radius:20px;background:#f5f9fc;overflow:hidden}.warehouse-receipt-dialog #entity-form{display:flex;flex-direction:column;max-height:calc(100dvh - 24px);min-height:0;padding:0;overflow:hidden}.warehouse-receipt-dialog .modal-head{flex:none;margin:0;padding:19px 23px;border-bottom:1px solid #e1edf5;background:#fff}.warehouse-receipt-dialog #form-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;min-height:0;padding:19px 23px;overflow-y:auto;overscroll-behavior:contain}.warehouse-receipt-dialog #form-fields>.full{grid-column:1/-1}.warehouse-receipt-dialog #form-fields>label{display:grid;gap:7px;min-width:0;color:#375e77;font-size:12px;font-weight:700}.warehouse-receipt-dialog :is(input:not([type=hidden]),textarea){width:100%;min-width:0;min-height:43px;padding:10px 12px;border:1px solid #c9ddea;border-radius:10px;background:#fff;color:#24465b}.warehouse-receipt-dialog :is(input,textarea):focus{outline:2px solid #8ac4e0;outline-offset:1px}.warehouse-receipt-dialog .modal-actions{flex:none;display:flex;gap:10px;margin:0;padding:14px 23px 18px;border-top:1px solid #e1ebf3;background:#fff}.warehouse-receipt-dialog #form-error{margin:0;padding:0 23px;background:#fff}
.warehouse-receipt-intro{padding:19px 20px;border:1px solid #cce2f0;border-radius:14px;background:linear-gradient(110deg,#eaf6fd,#fff)}.warehouse-receipt-intro h3{margin:5px 0;color:#1b5478;font-size:20px}.warehouse-receipt-intro p{margin:0;color:#627f90;font-size:11px;line-height:1.8}.warehouse-receipt-intro>div{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:15px;padding:11px;border-radius:10px;background:#dceefa;color:#326481;font-size:11px}.warehouse-receipt-intro strong{color:#175c86;font-size:16px}.warehouse-receipt-section{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:9px;border-top:1px solid #dce9f1;color:#225d82;font-weight:700;font-size:13px}.warehouse-receipt-section small{color:#839aab;font-size:10px;font-weight:400}.warehouse-receipt-note{margin:0;padding:11px 13px;border-radius:10px;background:#ebf5fb;color:#4b728a;font-size:11px;line-height:1.9}
@media(max-width:760px){.warehouse-receipts-hero,.warehouse-orders-heading{flex-direction:column;align-items:stretch}.warehouse-receipts-hero{padding:19px}.warehouse-receipts-metrics span{flex:1}.warehouse-orders-search{min-width:0}.warehouse-order-grid{grid-template-columns:1fr}.warehouse-receipt-dialog #form-fields{grid-template-columns:1fr;padding:16px}.warehouse-receipt-dialog #form-fields>.full{grid-column:1}.warehouse-receipt-dialog .modal-actions{padding:12px 16px}.warehouse-receipt-section{align-items:flex-start;flex-direction:column}}

/* Dense purchase-order ledger; each goods line retains its own unit and balance. */
.warehouse-orders-table-wrap{max-height:min(72vh,760px);overflow:auto;overscroll-behavior:contain;border:1px solid #d3e4f0;border-radius:16px;background:#fff;box-shadow:0 9px 26px #174e7612;scrollbar-color:#accbdd transparent}
.warehouse-orders-table{width:100%;min-width:1020px;border-collapse:separate;border-spacing:0;text-align:start;color:#31546c;font-size:12px}
.warehouse-orders-table th{position:sticky;top:0;z-index:2;padding:15px 13px;border-bottom:1px solid #c8dfed;background:#eaf4fa;color:#28536e;text-align:start;font-size:11px;font-weight:800;white-space:nowrap}
.warehouse-orders-table td{padding:13px;border-bottom:1px solid #e6eef4;vertical-align:middle;line-height:1.8}
.warehouse-orders-table tbody tr:nth-child(even){background:#f8fbfe}.warehouse-orders-table tbody tr:hover{background:#eaf6fc}.warehouse-orders-table tbody tr:last-child td{border-bottom:0}
.warehouse-orders-table .warehouse-po-code{display:block;color:#17557d;direction:ltr;text-align:start;font-size:13px;white-space:nowrap}.warehouse-po-sub{display:block;color:#7692a3;font-size:10px;white-space:nowrap}
.warehouse-orders-table .warehouse-numeric{font-variant-numeric:tabular-nums;white-space:nowrap}.warehouse-orders-table .warehouse-numeric small{color:#8198a8;font-size:10px}.warehouse-orders-table .warehouse-remaining{background:#ecf6fc;color:#125b87;font-size:15px}.warehouse-orders-table .warehouse-remaining strong{font-weight:800}
.warehouse-orders-table .warehouse-order-state{display:inline-block;white-space:nowrap}.warehouse-orders-table .warehouse-table-action{white-space:nowrap}.warehouse-orders-table .warehouse-table-action button{border-radius:9px;padding:8px 11px;white-space:nowrap}.warehouse-readonly{display:inline-block;color:#7790a1;font-size:11px}
.warehouse-orders-table-wrap:focus-visible{outline:3px solid #61a9d4;outline-offset:2px}
@media(max-width:760px){.warehouse-orders-table-wrap{max-height:62vh}.warehouse-orders-table{min-width:990px}.warehouse-orders-table th,.warehouse-orders-table td{padding:10px 11px}}
