:root{font-family:system-ui,-apple-system,"Malgun Gothic",sans-serif;color:#19302b;background:#f4f7f6}*{box-sizing:border-box}body{margin:0}header{background:#123e34;color:white;padding:20px max(20px,calc((100vw - 1100px)/2));display:flex;justify-content:space-between;align-items:center}header div{display:flex;gap:20px;align-items:center}.brand{font-size:25px;font-weight:800}main{max-width:1100px;margin:32px auto;padding:0 20px}.card{background:white;border:1px solid #dce5e1;border-radius:14px;padding:24px;margin-bottom:20px}.narrow{max-width:440px;margin:60px auto 20px}h1{font-size:25px;margin:0 0 12px}h2{font-size:19px;margin:0}p{line-height:1.6;color:#50665f}label{display:flex;flex-direction:column;gap:8px;font-size:14px;margin-bottom:18px}input,button{font:inherit;border-radius:7px;padding:11px 13px}input{border:1px solid #b9c9c2;width:100%;min-width:0}button{background:#17654e;border:1px solid #17654e;color:white;cursor:pointer;min-height:44px}button:disabled{opacity:.55;cursor:wait}.narrow button{width:100%;margin-bottom:20px}a{color:#17654e;font-size:14px}.secondary,header button{background:white;color:#17654e}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.filters label{margin:0;flex:1;min-width:150px}.filters .search{flex:2}.order-heading{display:flex;justify-content:space-between;gap:20px;align-items:start}.badge{font-size:13px;background:#e8f3ec;border-radius:16px;padding:6px 12px;white-space:nowrap}.metadata{font-size:14px;line-height:1.9;color:#50665f;margin:16px 0}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:13px 10px;border-bottom:1px solid #e3ebe7}th{background:#f3f7f5;font-weight:600}td:last-child,th:last-child{text-align:right}#message{max-width:900px;margin:15px auto;color:#9c3427;white-space:pre-line}[hidden]{display:none!important}@media(max-width:600px){header{padding:16px}.brand{font-size:22px}header div{gap:12px;font-size:14px}main{margin:24px auto;padding:0 14px}.card{padding:18px}.narrow{margin-top:32px}.heading{align-items:start}h1{font-size:22px}.filters{gap:12px}.filters label{min-width:130px}.filters button{width:100%}.order-heading{gap:8px}h2{font-size:17px}}

.workflow-tabs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.workflow-tabs button{background:white;color:#1c5845;border:1px solid #d3e2da;display:flex;flex-direction:column;align-items:start;padding:20px}.workflow-tabs small{display:block;margin-top:8px;font-size:12px}.workflow-tabs .active{background:#226b50;color:white}.section-heading{margin:24px 0 4px}#stageTabs{display:flex;gap:8px;flex-wrap:wrap;padding:14px;border-radius:12px;background:#eaf1ed}#stageTabs button{border:1px solid #d5e2db;background:white;color:#2e5545;border-radius:25px;font-size:14px}#stageTabs .active{background:#226b50;color:white}#summaryCards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0}#summaryCards .summary-card{min-height:108px;background:white;border:1px solid #d6e3db;color:#19302b;text-align:left;padding:20px;border-radius:16px;box-shadow:0 6px 20px #143b2710}#summaryCards .summary-card span{display:block;color:#61776c;font-size:13px}#summaryCards .summary-card strong{display:block;font-size:26px;margin-top:12px}#summaryCards .active{background:#e3f1e9;border-color:#226b50}.order-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}.order-actions p{flex-basis:100%;margin:0}select{font:inherit;border:1px solid #b9c9c2;border-radius:7px;padding:11px 13px;min-height:44px;max-width:100%}td input[type=checkbox]{width:22px;height:22px;accent-color:#226b50}@media(max-width:800px){#summaryCards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:480px){#summaryCards{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-tabs button{padding:15px}.order-actions button{flex:1}#stageTabs button{font-size:12px;padding:9px 11px}}

.supplier-delivery-dialog{max-width:560px;width:calc(100% - 32px);border:1px solid #bfd2c6;border-radius:16px;padding:28px;color:#19302b}.supplier-delivery-dialog::backdrop{background:#0b2e2060}.supplier-delivery-dialog p{white-space:pre-line;overflow-wrap:anywhere}

.workflow-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}#summaryCards{grid-template-columns:repeat(6,minmax(0,1fr))}@media(max-width:900px){#summaryCards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:480px){#summaryCards{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-tabs{grid-template-columns:1fr}}

.store-unreceived-group{border:2px solid #b8d3c2;margin-top:24px}.store-unreceived-group>h2{font-size:23px;color:#15543e}.store-unreceived-group h3{margin:24px 0 10px}.store-quantity-summary td:nth-child(5){font-weight:800;color:#17654e;font-size:18px;white-space:nowrap}.store-quantity-summary td:last-child{text-align:left;min-width:180px}.store-order-details{margin-top:22px}.store-order-details>summary{cursor:pointer;color:#17654e;font-weight:700;padding:14px 0}.store-order-details .card{margin-top:14px;border-color:#dce5e1}

.store-quantity-summary td input[type=number]{min-width:110px;max-width:150px}.store-quantity-summary td input[type=checkbox]{width:22px;height:22px}.store-quantity-summary td:nth-child(5){font-size:14px;color:inherit;font-weight:normal}.store-quantity-summary td:nth-child(6){font-weight:700}

.store-shipment-history>h2{font-size:23px;color:#15543e}.store-shipment-history h3{padding:15px 0 8px;margin:18px 0 0;border-bottom:2px solid #d7e7dc}.shipment-batch{padding:4px 0 18px}.shipment-batch h4{color:#50665f;font-weight:600}.shipment-batch td:nth-child(5){font-weight:800;color:#17654e;white-space:nowrap}

.shipment-day-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.shipment-day-heading h3{flex:1}.supplier-statement-preview{position:fixed;inset:0;z-index:1000;background:#e8eeeb;overflow:auto;padding:20px}.statement-toolbar{max-width:210mm;margin:0 auto 16px;display:flex;gap:12px;justify-content:flex-end}.shipment-statement-sheet{background:white;color:#111;width:210mm;max-width:100%;margin:0 auto;padding:12mm;box-shadow:0 2px 16px #1233}.shipment-statement-sheet h1{text-align:center;font-size:28px;letter-spacing:8px}.statement-subtitle{text-align:center}.statement-parties{border:1px solid #888;padding:10px;margin:18px 0}.statement-parties p{margin:5px 0;color:#111}.shipment-statement-sheet table{table-layout:fixed;font-size:11px}.shipment-statement-sheet td,.shipment-statement-sheet th{padding:8px 4px;overflow-wrap:anywhere;border:1px solid #aaa}.shipment-statement-sheet th:nth-child(1){width:5%}.shipment-statement-sheet th:nth-child(2){width:11%}.shipment-statement-sheet th:nth-child(3){width:20%}.shipment-statement-sheet th:nth-child(4){width:10%}.shipment-statement-sheet th:nth-child(5){width:6%}.shipment-statement-sheet th:nth-child(6){width:10%}.shipment-statement-sheet th:nth-child(7){width:17%}.shipment-statement-sheet th:nth-child(8){width:21%}.shipment-statement-sheet td:nth-child(6){font-weight:800;text-align:right}.statement-totals{font-weight:bold;color:#111}.statement-signature{text-align:right;margin-top:30px}.shipment-statement-sheet>p{font-size:12px}.shipment-statement-sheet td:last-child,.shipment-statement-sheet th:last-child{text-align:left}
@media print{@page{size:A4 portrait;margin:12mm}body:has(>.supplier-statement-preview){background:white}body:has(>.supplier-statement-preview)>:not(.supplier-statement-preview){display:none!important}.supplier-statement-preview{position:static;display:block;background:white;overflow:visible;padding:0}.statement-toolbar{display:none!important}.shipment-statement-sheet{width:100%;max-width:none;box-shadow:none;padding:0;margin:0}.shipment-statement-sheet thead{display:table-header-group}.shipment-statement-sheet tr{break-inside:avoid}.shipment-statement-sheet h1{font-size:22pt}.shipment-statement-sheet table{font-size:9pt}.statement-signature{break-inside:avoid}}

.preparation-select-all{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.preparation-select-all input{width:22px;height:22px;accent-color:#226b50;margin:0}
