.po-page{display:grid;gap:18px}.po-hero,.po-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.po-hero{padding:26px 28px;border:1px solid #dce7e1;border-radius:18px;background:linear-gradient(135deg,#f7fbf8,#eef6f2)}.po-hero h1,.po-section-head h1,.po-section-head h2{margin:4px 0 8px}.po-hero p,.po-section-head p{margin:0;color:#617069}.po-eyebrow{font-size:11px;letter-spacing:.18em;color:#587567;font-weight:700}.po-hero-actions,.po-detail-actions,.po-row-actions{display:flex;gap:8px;flex-wrap:wrap}.po-button{border:1px solid #b9cbc2;background:#fff;color:#173f31;padding:9px 14px;border-radius:9px;font-weight:700;cursor:pointer}.po-button:hover{border-color:#537c69}.po-button:disabled{opacity:.45;cursor:not-allowed}.po-button.primary{background:#173f31;color:#fff;border-color:#173f31}.po-button.secondary{background:#f4f8f6}.po-button.ghost{background:transparent}.po-button.danger{color:#9d2d2d;border-color:#e4b4b4;background:#fff7f7}.po-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.po-summary section{background:#fff;border:1px solid #e0e7e3;border-radius:13px;padding:15px;display:grid;gap:5px}.po-summary span{font-size:12px;color:#64736c}.po-summary strong{font-size:24px}.po-summary small{color:#89938e}.po-card,.po-catalog{background:#fff;border:1px solid #dde5e1;border-radius:15px;padding:18px}.po-card h2,.po-card h3,.po-catalog h3{margin-top:0}.po-toolbar{display:flex;gap:10px;margin-bottom:14px}.po-toolbar input{flex:1}.po-toolbar input,.po-toolbar select,.po-order-meta input,.po-order-meta select,.po-color input{border:1px solid #ccd8d2;border-radius:8px;padding:9px 11px;background:#fff}.po-table-wrap{overflow:auto}.po-table{width:100%;border-collapse:collapse}.po-table th,.po-table td{padding:11px 10px;border-bottom:1px solid #edf1ef;text-align:left;white-space:nowrap}.po-table th{font-size:12px;color:#607068;background:#fafcfb}.po-link{border:0;background:none;color:#1c6748;padding:3px 0;cursor:pointer;font-weight:700}.po-link.danger{color:#ad3434}.po-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700}.po-status.open{background:#fff1ce;color:#7b5600}.po-status.done{background:#e7f4ec;color:#256140}.po-warn{color:#a86300;font-weight:700}.po-over{color:#b33030;font-weight:700}.po-empty{padding:30px;text-align:center;color:#748078}.po-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:380px;overflow:auto}.po-product{border:1px solid #e1e8e4;border-radius:12px;padding:10px;display:grid;grid-template-columns:56px 1fr auto;gap:10px;align-items:center}.po-product img,.po-image-empty{width:56px;height:56px;border-radius:8px;object-fit:cover;background:#f1f4f2;display:grid;place-items:center;font-size:11px;color:#89938e}.po-product-main{min-width:0;display:grid;gap:2px}.po-product-main span,.po-product-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.po-product-main small{color:#718078}.po-factory-lock{margin-bottom:12px;padding:9px 11px;background:#eef6f2;border-radius:8px;color:#345e4b}.po-order-row{border:1px solid #e1e8e4;border-radius:12px;padding:14px;margin:12px 0}.po-order-row-head{display:flex;justify-content:space-between;gap:15px}.po-order-row-head>div:first-child{display:grid}.po-order-row-head small{color:#75827b;margin-top:3px}.po-color{display:flex;align-items:center;gap:8px;margin:14px 0 10px}.po-color span,.po-order-meta span{font-size:12px;color:#637069}.po-size-inputs{display:grid;grid-template-columns:repeat(15,minmax(52px,1fr));gap:6px;overflow:auto}.po-size-inputs label{display:grid;gap:4px;text-align:center;font-size:12px}.po-size-inputs input{width:100%;box-sizing:border-box;border:1px solid #ccd7d1;border-radius:6px;padding:7px 3px;text-align:center}.po-row-total{text-align:right;margin-top:8px;font-weight:700}.po-order-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.po-order-meta label{display:grid;gap:5px}.po-order-meta .wide{grid-column:span 2}.po-submit{display:flex;justify-content:space-between;align-items:center;margin-top:18px;padding-top:15px;border-top:1px solid #e3e9e6}.po-order-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.po-order-stats span{padding:13px 15px;border:1px solid #e0e7e3;border-radius:10px;background:#fff;display:flex;justify-content:space-between}.po-receive-groups{display:grid;gap:12px}.po-receive-item{border:1px solid #e1e8e4;border-radius:10px;padding:12px}.po-receive-item h4{margin:0 0 10px}.po-receive-matrix{display:grid;grid-template-columns:repeat(15,minmax(74px,1fr));gap:6px;overflow:auto}.po-receive-matrix label{display:grid;gap:3px;padding:7px;background:#f7faf8;border-radius:7px;text-align:center}.po-receive-matrix label.over{background:#fff0f0}.po-receive-matrix small{font-size:10px;color:#6f7b75}.po-receive-matrix input{width:100%;box-sizing:border-box;border:1px solid #cbd7d1;border-radius:5px;padding:6px;text-align:center}.po-lookup{max-width:820px}.po-print-root{background:#fff;border:1px solid #dfe6e2;border-radius:12px;padding:18px;margin:14px 0}.po-print-title{display:flex;justify-content:space-between;align-items:end;border-bottom:2px solid #222;padding-bottom:8px}.po-print-title h1{margin:0;font-size:24px}.po-print-title span{font-weight:800}.po-print-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:6px 18px;padding:10px 0;font-size:12px}.po-print-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:10px}.po-print-table th,.po-print-table td{border:1px solid #333;padding:4px 2px;text-align:center;word-break:break-all}.po-print-table th:nth-child(1){width:68px}.po-print-table th:nth-child(2){width:55px}.po-print-table th:nth-child(3){width:52px}.po-print-table th:nth-child(4){width:48px}.po-print-table th:nth-child(5){width:52px}.po-print-table th:nth-child(n+6):nth-child(-n+8){width:54px}.po-print-table img{width:42px;height:42px;object-fit:contain}.po-print-table .qty{font-weight:700}.po-print-note{border:1px solid #333;border-top:0;padding:7px}.po-signatures{display:flex;justify-content:space-around;padding-top:20px}.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.error{margin:10px 0}.po-detail .po-section-head h2{display:inline-block;margin-right:10px}.po-cycle-head{display:flex;justify-content:space-between;gap:16px;align-items:start}.po-cycle-head h2{margin-bottom:5px}.po-cycle-head p{margin:0;color:#68766f}.po-cycle-head>span{background:#edf5f1;color:#315c49;border-radius:999px;padding:5px 9px;white-space:nowrap}
@media(max-width:1050px){.po-summary{grid-template-columns:repeat(2,1fr)}.po-catalog-grid{grid-template-columns:1fr 1fr}.po-order-meta{grid-template-columns:1fr 1fr}.po-hero{display:grid}.po-print-root{overflow:auto}.po-print-table{min-width:1200px}}
@media(max-width:680px){.po-summary,.po-catalog-grid,.po-order-meta,.po-order-stats{grid-template-columns:1fr}.po-toolbar,.po-section-head{display:grid}.po-product{grid-template-columns:48px 1fr}.po-product .po-button{grid-column:1/-1}.po-order-meta .wide{grid-column:auto}.po-submit{align-items:stretch;gap:12px;flex-direction:column}}
@page{size:A4 landscape;margin:8mm}
@media print{body *{visibility:hidden!important}.po-print-root,.po-print-root *{visibility:visible!important}.po-print-root{position:absolute;left:0;top:0;width:100%;box-sizing:border-box;border:0;border-radius:0;padding:0;margin:0}.po-print-title h1{font-size:17pt}.po-print-table{font-size:7pt}.po-print-table th,.po-print-table td{padding:2px 1px}.po-print-table img{width:34px;height:34px}.po-print-table thead{display:table-header-group}.po-print-table tr{break-inside:avoid}.po-print-meta{font-size:8pt}.po-print-note,.po-signatures{font-size:8pt}.no-print{display:none!important}}
.po-product-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:14px 0;padding:12px;border-radius:10px;background:#f7faf8}.po-product-fields label{display:grid;gap:5px}.po-product-fields span{font-size:12px;color:#637069}.po-product-fields input{min-width:0;border:1px solid #ccd8d2;border-radius:8px;padding:9px 10px;background:#fff}.po-print-table th:nth-child(n+6):nth-child(-n+9){width:48px}
@media(max-width:1050px){.po-product-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.po-print-table{min-width:1250px}}
@media(max-width:680px){.po-product-fields{grid-template-columns:1fr}}
.po-catalog-count{margin:-2px 0 12px;color:#62726a;font-size:12px}
.po-sync-state{display:flex;gap:10px;align-items:center;padding:12px 15px;border-radius:11px;border:1px solid #ead69a;background:#fff9e8;color:#765611}.po-sync-state.ok{border-color:#bddbcb;background:#edf8f2;color:#245b42}.po-sync-state span{font-size:13px}
.po-order-styles{display:flex;gap:4px;flex-wrap:wrap;max-width:240px}.po-order-styles span{display:inline-flex;padding:3px 6px;border-radius:5px;background:#eef5f1;color:#285b43;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}.po-partial-badge{display:block;margin-top:5px;color:#9a6700;font-size:10px}.po-arrival-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.po-arrival-head h3{margin:0 0 5px}.po-arrival-head p{margin:0;color:#6d7b74}.po-arrival-summary{display:flex;gap:8px;flex-wrap:wrap}.po-arrival-summary span{padding:8px 11px;border-radius:8px;background:#f2f6f4;color:#53655d;white-space:nowrap}.po-arrival-summary b{margin-left:4px;color:#173f31}.po-arrival-table{width:100%;min-width:1220px;border-collapse:separate;border-spacing:0;font-size:12px}.po-arrival-table th,.po-arrival-table td{padding:8px 7px;border-right:1px solid #e6ece9;border-bottom:1px solid #e6ece9;text-align:center;white-space:nowrap}.po-arrival-table th{background:#f7faf8;color:#5d6e65}.po-arrival-table th:first-child,.po-arrival-table td:first-child{position:sticky;left:0;z-index:2;min-width:92px;text-align:left}.po-arrival-table th:nth-child(2),.po-arrival-table td:nth-child(2){position:sticky;left:92px;z-index:2;min-width:88px;text-align:left}.po-arrival-table th:nth-child(3),.po-arrival-table td:nth-child(3){position:sticky;left:180px;z-index:2;min-width:70px}.po-arrival-table th:nth-child(-n+3){z-index:3}.po-arrival-table tr.ordered td{background:#fafcfb;border-top:2px solid #cfdad5}.po-arrival-table tr.received td{background:#eef8f2;color:#236343}.po-arrival-table tr.unreceived td{background:#fff7e8;color:#895d00;font-weight:700}.po-arrival-table td.qty{font-weight:800}.po-arrival-table td.total{font-size:13px}
@media(max-width:680px){.po-arrival-head{display:grid}.po-arrival-summary{justify-content:flex-start}}

