.po-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.po-head h1{margin:4px 0}.po-head h1 span{font-size:12px;background:#fee2e2;color:#b91c1c;padding:4px 8px;border-radius:99px}.po-head p{margin:0;color:var(--muted)}.po-stats{margin-bottom:14px}.po-filter{display:flex;gap:10px;margin-bottom:14px}.po-filter>*{flex:1}.po-line-list{display:grid;gap:14px;margin:14px 0}.po-line-card{border:1px solid #dbe4ee;border-radius:12px;padding:14px;background:#f8fafc;min-width:0}.po-line-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.po-line-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px 12px}.po-field{display:block;min-width:0}.po-field[hidden],.po-line-card [hidden]{display:none!important}.po-field>span{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:5px}.po-field input,.po-field select{width:100%;min-width:0}.po-field input+input{margin-top:6px}.po-span-2{grid-column:span 2}.po-span-3{grid-column:span 3}.po-span-4{grid-column:span 4}.po-span-6{grid-column:span 6}.po-ac{position:relative}.po-ac-menu{position:absolute;z-index:40;top:calc(100% + 3px);left:0;right:0;max-height:300px;overflow-y:auto;background:#fff;border:1px solid #cbd5e1;border-radius:9px;box-shadow:0 12px 28px rgba(15,23,42,.18);padding:4px}.po-ac-menu button{display:block;width:100%;padding:9px 10px;text-align:left;border:0;background:#fff;color:#0f172a;border-radius:6px;font-weight:400}.po-ac-menu button:hover,.po-ac-menu button:focus{background:#eaf4ff}.po-money{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:end;gap:12px;margin:16px 0}.po-money label{font-size:12px}.po-money input{display:block;max-width:130px}.po-money b{font-size:18px}.po-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:16px}.po-actions .danger{background:#b91c1c}.po-audit{border-left:3px solid #cbd5e1;padding:2px 12px;margin:12px 0}.po-audit span,.po-audit p,td small{display:block;color:var(--muted);font-size:12px}.po-red{box-shadow:inset 4px 0 #dc2626}.po-yellow{box-shadow:inset 4px 0 #eab308}.po-white{box-shadow:inset 4px 0 #e2e8f0}@media(max-width:900px){.po-span-2,.po-span-3{grid-column:span 4}.po-span-4,.po-span-6{grid-column:span 6}}@media(max-width:760px){.po-head,.po-filter{align-items:stretch;flex-direction:column}.po-head button{width:100%}.po-stats{grid-template-columns:1fr 1fr!important}.po-line-grid{grid-template-columns:1fr}.po-span-2,.po-span-3,.po-span-4,.po-span-6{grid-column:1}.po-money{justify-content:stretch}.po-money label,.po-money input{max-width:none;width:100%}.po-actions>*{width:100%}}

/* v69-8 — gom đơn và bản in/PDF */
.po-print-order{display:none}.po-print-order table{width:100%;border-collapse:collapse}.po-print-order th,.po-print-order td{border:1px solid #777;padding:6px;text-align:left;vertical-align:top}
@media print{body>*{display:none!important}main,#app,.po-print-order{display:block!important}aside,header,.po-actions,.ghost,button{display:none!important}.po-print-order{font:12px Arial;color:#000}.po-print-order h1{text-align:center;font-size:18px}.po-print-order table{page-break-inside:auto}.po-print-order tr{page-break-inside:avoid}}
.po-history-filter{display:grid;grid-template-columns:2fr repeat(2,1fr);gap:10px;margin-bottom:12px}.po-history-filter label{display:grid;gap:4px}.po-history-filter select[multiple]{min-height:100px}@media(max-width:800px){.po-history-filter{grid-template-columns:1fr}}
/* v69-10 — biểu Vật tư giấy và nhận hàng */
.po-paper-cards{display:grid;gap:14px;margin-top:16px}.po-paper-card{border:1px solid #cbd5e1;border-radius:12px;padding:14px;background:#f8fafc}.po-paper-card h3{margin:0 0 12px}.po-source-badge{font-size:11px;color:#166534;background:#dcfce7;border-radius:99px;padding:4px 8px}.po-paper-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.po-paper-grid label{display:grid;gap:4px;font-size:12px;color:var(--muted)}.po-paper-grid input{width:100%;min-width:0}.po-paper-grid input[readonly]{background:#eef2f7;color:#475569}.po-wide{grid-column:span 2}.po-paper-metrics{display:flex;flex-wrap:wrap;gap:14px;margin-top:12px;padding:10px;background:#fff;border-radius:8px}.po-receipt{display:grid;grid-template-columns:repeat(4,1fr) auto;gap:8px;margin-top:12px}.po-receipt small{grid-column:1/-1}@media(max-width:900px){.po-paper-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.po-receipt{grid-template-columns:1fr 1fr}.po-receipt button,.po-receipt small{grid-column:1/-1}}@media(max-width:600px){.po-paper-grid,.po-receipt{grid-template-columns:1fr}.po-wide{grid-column:auto}}
/* v69-22 — pricing per LSX proposal line and editable delivery suggestions */
.lpc-delivery-picker{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.lpc-money-output{display:flex;align-items:center;min-height:40px;padding:8px 10px;border:1px solid #d5dde8;border-radius:8px;background:#f8fafc;font-weight:700;color:#334155}.lpc-total{color:#0f6b3e;background:#ecfdf5;border-color:#a7f3d0}@media(max-width:760px){.lpc-delivery-picker{grid-template-columns:1fr}.lpc-delivery-picker button{width:100%}}
/* v69-23 — keep size unmistakably visible on every proposal line */
.lpc-size-wrap{padding:10px 12px;border:2px solid #93c5fd;border-radius:10px;background:#eff6ff}.lpc-size-wrap>span{color:#1d4ed8;font-size:13px}.lpc-size-wrap input{background:#fff}
/* v69-25: compact two-line LSX proposal composer and visible conversion formula */
.lpc-title-kind{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.lpc-title-kind select{min-width:190px;font-weight:700}.lpcFormula{background:#f4f8ff;border:1px solid #c9daf5;border-radius:8px;padding:9px 12px}.lpcFormula output{display:block;color:#174a7e;font-weight:700;margin-top:4px}
.lpcFilmInventory{padding:10px 12px;border:2px solid #86efac;border-radius:10px;background:#f0fdf4}.lpcFilmInventory>span{color:#166534;font-size:13px}.lpcFilmInventory small{display:block;margin-top:5px;color:#166534}.lpcDifferentDate>span{display:flex;align-items:center;gap:8px}.lpcDifferentDate input[type=checkbox]{width:auto;min-height:auto}.lpcDifferentDate small{color:#64748b}.lpcFilmNeed output{font-size:13px}
/* v69-31: full LSX proposal overview */
.po-overview-wrap{overflow-x:auto;max-width:100%}
.po-overview-table{min-width:2200px;white-space:nowrap}
.po-overview-table th:first-child,.po-overview-table td:first-child{position:sticky;left:0;background:#fff;z-index:2;min-width:220px}
.po-overview-table th:nth-child(2),.po-overview-table td:nth-child(2){position:sticky;left:220px;background:#fff;z-index:2;min-width:180px}
.po-overview-table thead th:first-child,.po-overview-table thead th:nth-child(2){z-index:3}
/* v69-32 — LSX proposal status + ordered material tracking */
.po-status-filters,.po-tracking-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.po-status-filters .active,.po-tracking-tabs .active{background:#0b6fa4;color:#fff;border-color:#0b6fa4}
.po-proposal-state,.po-due-badge{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}
.po-proposal-state.none{background:#fee2e2;color:#991b1b}.po-proposal-state.pending{background:#fef3c7;color:#92400e}.po-proposal-state.approved,.po-proposal-state.received{background:#dcfce7;color:#166534}.po-proposal-state.ordered{background:#dbeafe;color:#1e40af}.po-proposal-state.partial{background:#ffedd5;color:#9a3412}
.po-lsx-none{background:#fff7f7}.poCreateQuick{background:#dc2626;color:#fff;border-color:#dc2626}
.po-tracking-tabs{margin:0 0 14px}.po-tracking-tabs button{padding:10px 16px;border-radius:10px}
.po-tracking-table{min-width:1900px;white-space:nowrap}.po-track-soon{background:#fffbeb}.po-track-due,.po-track-overdue{background:#fef2f2}.po-track-partial{background:#fff7ed}.po-track-warehouse{background:#eff6ff}
.po-due-badge.soon{background:#fef3c7;color:#92400e}.po-due-badge.due,.po-due-badge.overdue{background:#fee2e2;color:#991b1b}.po-due-badge.partial{background:#ffedd5;color:#9a3412}.po-due-badge.warehouse{background:#dbeafe;color:#1e40af}.po-due-badge.normal{background:#ecfdf5;color:#166534}
.po-warehouse-post{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;margin-top:10px}.po-warehouse-done{display:block;margin-top:10px;color:#166534;font-weight:700}
@media(max-width:720px){.po-status-filters,.po-tracking-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:6px}.po-status-filters button,.po-tracking-tabs button{flex:0 0 auto}.po-warehouse-post{grid-template-columns:1fr}}

/* v69-34: product/customer identity in LSX list */
.po-product-customer{min-width:220px}.po-product-customer strong{display:block;font-size:16px;line-height:1.3;color:#153a5b}.po-product-customer span{display:block;margin-top:4px;font-size:14px;font-weight:400;color:#334155}
/* v69-40 approval batch */
.po-approval-batch small{display:block;color:var(--muted,#64748b);margin-top:.25rem}.po-approval-batch .po-incomplete{background:#fff7ed}.po-approval-batch table{min-width:1280px}.po-approval-batch input[type=checkbox]{width:1.15rem;height:1.15rem}
@media(max-width:760px){.po-approval-batch{padding:.5rem}.po-approval-batch .tableWrap{overflow:auto}.po-head>div:last-child{display:flex;flex-wrap:wrap;gap:.4rem}.po-head>div:last-child input{flex:1 1 100%}}
/* v69-41 supplier consolidation and purchase-order form */
.po-supplier-group{margin:14px 0;border:1px solid #dbe3ec;border-radius:12px;overflow:hidden}.po-supplier-group>header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#f5f8fc}.po-order-form{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px}.po-order-form .wide{grid-column:span 2}.po-order-totals{margin-left:auto;max-width:420px}.po-order-totals td:last-child{text-align:right;font-weight:700}@media(max-width:800px){.po-order-form{grid-template-columns:1fr}.po-order-form .wide{grid-column:auto}}
/* v69-42 — split paper/film dimensions and provenance */
.lpc-split-size{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) 82px;gap:8px;align-items:center}.lpc-split-size>b{font-size:20px;color:var(--muted);text-align:center}.lpc-size-source{display:block;margin-top:5px;color:#475569}.lpc-size-source:not(:empty){padding-left:8px;border-left:3px solid #38bdf8}@media(max-width:600px){.lpc-split-size{grid-template-columns:1fr auto 1fr}.lpc-split-size select{grid-column:1/-1}}
/* v69-42 — supplier remains visible on consolidation rows */
#cgNeeds .cgSupplierName{min-width:180px;font-weight:650;color:#334155}@media(max-width:700px){#cgNeeds table{min-width:820px}#cgNeeds .cgSupplierName{min-width:150px;white-space:normal}}
/* v69-43 purchase order form */
.po-order-form h2{margin-top:22px}.po-order-lines{min-width:1800px}.po-order-lines input{min-width:110px}.po-cost-panel{margin:22px 0;padding:20px;border:1px solid #dbe4ef;border-radius:18px;background:linear-gradient(145deg,#f8fafc,#eef6ff);box-shadow:0 10px 28px rgba(15,23,42,.06)}.po-cost-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.po-cost-heading h2{margin:0}.po-cost-heading p{margin:5px 0 0;color:#64748b;font-size:13px}.po-cost-badge{padding:7px 11px;border-radius:999px;background:#fff7ed;color:#9a3412;font-size:12px;font-weight:700}.po-order-costs{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px;margin:0}.po-order-costs label{display:grid;gap:7px;padding:12px;border:1px solid #dbe4ef;border-radius:13px;background:#fff}.po-order-costs label span{font-size:13px;font-weight:700;color:#334155}.po-order-costs input{font-weight:800}.po-order-costs .po-cost-readonly{background:#f1f5f9}.po-order-costs .po-cost-readonly input{background:#e2e8f0;color:#475569}.po-order-costs .po-cost-edit{border-color:#93c5fd;box-shadow:inset 0 0 0 1px #dbeafe}.po-order-costs .po-cost-edit input:not([readonly]){background:#fff;border-color:#60a5fa}.po-order-costs .po-cost-total{grid-column:span 2;background:#0f766e;border-color:#0f766e}.po-order-costs .po-cost-total span{color:#ccfbf1}.po-order-costs .po-cost-total input{background:#fff;color:#0f766e;font-size:18px}.po-cost-reason{display:grid;gap:7px;margin-top:15px}.po-cost-reason span{font-weight:700}.po-cost-reason b{color:#dc2626}.po-cost-reason textarea{min-height:78px;background:#fff;border-color:#f59e0b}.po-preview{margin-top:16px;padding:16px;border:1px dashed var(--line,#cbd5e1);border-radius:12px;background:#f8fafc}@media(max-width:1000px){.po-order-costs{grid-template-columns:repeat(2,minmax(140px,1fr))}}@media(max-width:560px){.po-cost-panel{padding:14px}.po-cost-heading{align-items:flex-start;flex-direction:column}.po-order-costs{grid-template-columns:1fr}.po-order-costs .po-cost-total{grid-column:auto}}
/* v69-44 Purchase order PDF preview */
.po-pdf-modal{position:fixed;inset:0;background:#0f172acc;z-index:9999;padding:24px;overflow:auto}.po-pdf-toolbar{position:sticky;top:0;z-index:2;display:flex;gap:10px;justify-content:flex-end;background:#e2e8f0;padding:10px;max-width:1120px;margin:auto}.po-pdf-sheet{background:#fff;color:#111827;width:1120px;min-height:790px;margin:auto;padding:28px 34px;box-shadow:0 8px 30px #0005;font:13px Arial,sans-serif}.po-pdf-header{display:grid;grid-template-columns:1fr 1.2fr 1fr;border-bottom:2px solid #0f4775;padding-bottom:12px}.po-pdf-header h1{text-align:center;color:#0f4775}.po-pdf-meta{text-align:right}.po-pdf-info{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:14px 0}.po-pdf-info>div{border:1px solid #94a3b8;padding:10px}.po-pdf-sheet table{width:100%;border-collapse:collapse;font-size:11px}.po-pdf-sheet th,.po-pdf-sheet td{border:1px solid #64748b;padding:5px}.po-pdf-sheet th{background:#dbeafe}.po-pdf-summary{margin:12px 0 12px auto;width:420px}.po-pdf-summary div{display:flex;justify-content:space-between;border-bottom:1px solid #cbd5e1;padding:4px}.po-pdf-signatures{display:grid;grid-template-columns:repeat(4,1fr);text-align:center;margin-top:28px;min-height:90px}.po-pdf-note{border:1px solid #94a3b8;padding:8px}.po-pdf-foot{text-align:center;color:#64748b;margin-top:12px}@media print{body>*:not(.po-pdf-modal){display:none!important}.po-pdf-modal{position:static;padding:0;background:#fff}.po-pdf-toolbar{display:none}.po-pdf-sheet{box-shadow:none;width:auto;margin:0;padding:8mm}@page{size:A4 landscape;margin:7mm}}
/* v69-45 — PDF preview viewport-safe toolbar and page containment */
.po-pdf-modal{padding:0!important;overflow:auto!important;overscroll-behavior:contain}.po-pdf-toolbar{position:sticky!important;top:0!important;left:0;right:0;z-index:10001!important;box-sizing:border-box;display:flex!important;align-items:center;gap:10px;width:100%!important;max-width:none!important;min-height:58px;margin:0!important;padding:9px max(14px,calc((100vw - 1120px)/2))!important;background:#f8fafc!important;border-bottom:1px solid #cbd5e1;box-shadow:0 3px 12px #0f172a40}.po-pdf-toolbar-spacer{flex:1}.po-pdf-toolbar button{white-space:nowrap;min-height:40px}.po-pdf-page-wrap{box-sizing:border-box;width:max-content;min-width:100%;padding:20px 24px 40px}.po-pdf-sheet{box-sizing:border-box!important;position:relative;margin:0 auto!important;padding:30px 34px!important;overflow:hidden}.po-pdf-header{box-sizing:border-box;margin:0!important;padding:0 0 12px!important;min-height:76px}.po-pdf-header>div:first-child{padding-left:0}.po-pdf-header p{margin:8px 0 0}.po-pdf-header h1{margin:8px 0}.po-pdf-meta{padding-right:0}
@media(max-width:760px){.po-pdf-toolbar{overflow-x:auto;justify-content:flex-start;padding:8px 10px!important}.po-pdf-toolbar-spacer{display:none}.po-pdf-page-wrap{padding:14px}}
@media print{.po-pdf-toolbar{display:none!important}.po-pdf-page-wrap{padding:0!important;width:auto!important}.po-pdf-modal{overflow:visible!important}.po-pdf-sheet{overflow:visible!important}}

/* v69-46 required field feedback */
.po-field-error,[aria-invalid="true"]{border-color:#dc2626!important;box-shadow:0 0 0 2px rgba(220,38,38,.14)!important}.po-validation-errors{margin:10px 0;padding:10px 14px;border:1px solid #fca5a5;background:#fef2f2;color:#991b1b;border-radius:10px}

/* v69-57: cảnh báo hạn + bộ lọc NCC gọn */
.po-stat-soon{background:#facc15!important;color:#422006}.po-stat-due{background:#dc2626!important;color:#fff}.po-stat-overdue{background:#b91c1c!important;color:#fde047}.po-stat-soon small,.po-stat-due small,.po-stat-overdue small{color:inherit}.po-track-soon{background:#fef08a!important}.po-track-due{background:#dc2626!important;color:#fff}.po-track-overdue{background:#b91c1c!important;color:#fde047}.po-track-due td,.po-track-overdue td{color:inherit}.po-track-due .ghost,.po-track-overdue .ghost{background:#fff;color:#991b1b}.po-due-badge.soon{background:#eab308;color:#422006}.po-due-badge.due{background:#991b1b;color:#fff;border:1px solid #fff}.po-due-badge.overdue{background:#7f1d1d;color:#fde047;border:1px solid #fde047;white-space:normal;line-height:1.35}
.po-history-filter{align-items:end}.po-supplier-filter{position:relative}.po-multi{position:relative}.po-multi-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;background:#fff;color:#0f172a;border:1px solid #cbd5e1;font-weight:600}.po-multi-panel{position:absolute;z-index:80;top:calc(100% + 5px);left:0;min-width:320px;max-width:92vw;background:#fff;border:1px solid #cbd5e1;border-radius:12px;padding:10px;box-shadow:0 18px 45px rgba(15,23,42,.2)}.po-multi-panel[hidden]{display:none}.po-multi-panel>input{width:100%;margin-bottom:8px}.po-multi-all{padding:8px 4px;font-weight:700}.po-multi-clear{float:right;margin-top:-38px}.po-multi-panel #phSupOptions{max-height:240px;overflow:auto;border-top:1px solid #e2e8f0;margin-top:5px;padding-top:5px}.po-multi-panel #phSupOptions label{display:block;padding:8px;border-radius:7px}.po-multi-panel #phSupOptions label:hover{background:#f1f5f9}.po-multi-panel input[type=checkbox]{width:auto;margin-right:7px}
.tp-warehouse-tabs{display:flex;gap:8px;margin-bottom:14px}.tp-warehouse-tabs button.active{background:#1d4ed8;color:#fff}.tp-warehouse-pane[hidden]{display:none}
/* v69-58 Nhập kho NVL */
.tp-receive-card small{display:block;color:#64748b;margin-top:4px}.tp-receive-event{border:1px solid #dbeafe;border-radius:12px;padding:12px;margin:10px 0;background:#f8fafc}.tp-receive-event p{margin:6px 0}.tp-danger{color:#b91c1c}.tp-variance-preview{background:#eff6ff;border:1px solid #93c5fd;border-radius:12px;padding:10px 14px;margin:12px 0}.tp-variance-preview p{margin:5px 0}.tp-over-confirm{display:block;background:#fee2e2;color:#991b1b;padding:10px;border-radius:10px;margin:10px 0}.button{display:inline-block;text-decoration:none;padding:7px 10px;border-radius:8px}.tp-warehouse-tabs{display:flex;gap:8px;margin-bottom:14px}
/* v69-66: làm nổi bật cụm trích xuất từ kho */
.lpcStockExtract,.lpcPurchaseQty{background:#eef8ff!important;border:2px solid #2488d8!important;border-radius:12px!important;padding:12px!important;box-shadow:0 5px 14px #2488d81f}.lpcStockExtract>span,.lpcPurchaseQty>span{font-size:14px!important;font-weight:800!important;color:#075f9f!important}.lpcStockExtract input,.lpcPurchaseQty output{min-height:46px!important;font-size:20px!important;font-weight:800!important;background:#fff!important}.lpcStockExtract small{font-weight:700!important;color:#08745e!important}.rp-period{display:flex;align-items:end;gap:12px;margin-bottom:16px}.rp-period label{display:flex;flex-direction:column;gap:6px;font-weight:750}.rp-period input{min-width:180px}.rp-arrow{padding-bottom:10px;font-size:22px}@media(max-width:680px){.rp-period{align-items:stretch;flex-direction:column}.rp-arrow{display:none}.rp-period input{width:100%}}
/* v69-88 — status dashboard and combined date filters */
.po-status-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 14px}.po-status-card{position:relative;min-height:126px;border:2px solid transparent;border-radius:16px;padding:16px;text-align:left;color:#fff;overflow:hidden;box-shadow:0 6px 16px #0f172a18;transition:.18s transform,.18s box-shadow}.po-status-card:hover{transform:translateY(-2px)}.po-status-card.active{border-color:#fff;box-shadow:0 0 0 3px #0f172a33,0 10px 24px #0f172a35;transform:translateY(-3px)}.po-status-icon{display:block;font-size:30px;line-height:1;margin-bottom:12px}.po-status-label{display:block;font-size:13px;font-weight:800;line-height:1.2;min-height:31px}.po-status-card strong{display:block;font-size:28px;margin-top:4px}.po-status-all{background:linear-gradient(135deg,#2563eb,#1d4ed8)}.po-status-none{background:linear-gradient(135deg,#ef4444,#b91c1c)}.po-status-pending{background:linear-gradient(135deg,#f59e0b,#d97706)}.po-status-approved{background:linear-gradient(135deg,#22c55e,#15803d)}.po-status-ordered{background:linear-gradient(135deg,#8b5cf6,#6d28d9)}.po-status-received{background:linear-gradient(135deg,#14b8a6,#0f766e)}.po-filter-modern{display:grid;grid-template-columns:minmax(260px,2fr) minmax(165px,1fr) minmax(165px,1fr);align-items:end}.po-filter-modern label{min-width:0}.po-filter-modern label>span{display:block;font-size:12px;font-weight:800;color:var(--muted);margin:0 0 6px}.po-filter-modern input{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px}@media(max-width:1100px){.po-status-cards{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.po-status-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.po-status-card{min-height:112px;padding:13px}.po-filter-modern{grid-template-columns:1fr}.po-status-icon{font-size:26px}.po-status-card strong{font-size:24px}}
/* v69-248: các cột tài chính ở Chờ duyệt / Đã duyệt; bảng rộng được kéo ngang */
.po-lsx-status-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.po-lsx-status-table{min-width:1480px}
.po-lsx-status-table .po-purchase-metric{vertical-align:top;white-space:nowrap}
.po-purchase-metric-line{display:block;min-height:24px;padding:2px 0;border-bottom:1px solid rgba(148,163,184,.18)}
.po-purchase-metric-line:last-child{border-bottom:0}

/* Procurement requirement snapshots: distinct corresponding rows, no ellipsis. */
.po-lsx-status-table .po-purchase-metric-line{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
.po-lsx-status-table .po-size-metric{min-width:150px}
.po-lsx-status-table .po-spec-metric{min-width:260px;max-width:360px;white-space:normal}
.po-line-card textarea[data-k="itemName"]{width:100%;min-height:80px;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere}

/* Scoped proposal dashboard: compact specifications, intact numeric tokens. */
.po-lsx-status-wrap{max-width:100%;min-width:0;overflow-x:auto}
.po-lsx-status-table{table-layout:fixed;width:2920px;min-width:2920px}
.po-lsx-status-table th,.po-lsx-status-table td{box-sizing:border-box;vertical-align:top}
.po-lsx-status-table th:nth-child(1){width:150px}.po-lsx-status-table th:nth-child(2){width:220px}
.po-lsx-status-table th:nth-child(3){width:95px}.po-lsx-status-table th:nth-child(4){width:220px}
.po-lsx-status-table th:nth-child(5){width:85px}.po-lsx-status-table th:nth-child(6){width:180px}
.po-lsx-status-table th:nth-child(7){width:320px}.po-lsx-status-table th:nth-child(8){width:360px}
.po-lsx-status-table th:nth-child(9),.po-lsx-status-table th:nth-child(10),.po-lsx-status-table th:nth-child(11),.po-lsx-status-table th:nth-child(12),.po-lsx-status-table th:nth-child(13),.po-lsx-status-table th:nth-child(14){width:190px}
.po-lsx-status-table th:nth-child(15){width:150px}
.po-lsx-status-table .po-size-metric{min-width:0}
.po-lsx-status-table .po-spec-metric{min-width:0;max-width:360px}
.po-lsx-status-table .po-purchase-metric-line{box-sizing:border-box;white-space:nowrap;overflow-wrap:normal;word-break:normal;line-height:20px;margin:0;padding:4px 0}
.po-lsx-status-table .po-spec-metric .po-purchase-metric-line{white-space:pre-wrap;overflow-wrap:anywhere}
.po-overview-table td:nth-child(2){white-space:pre-wrap;overflow-wrap:anywhere;max-width:300px}

/* Scoped purchase form: major blocks stack; only fields use responsive columns. */
.po-order-form{grid-template-columns:minmax(0,1fr);min-width:0}
.po-order-form>*{min-width:0;max-width:100%}
.po-order-form>.formGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.po-order-form .tableWrap{width:100%;overflow-x:auto}
.po-order-form .po-order-costs{grid-template-columns:repeat(4,minmax(0,1fr))}
.po-order-form .po-order-costs label,.po-order-form .field{min-width:0}
.po-order-form input,.po-order-form textarea{max-width:100%;box-sizing:border-box}
.po-order-form .po-actions{display:flex;flex-wrap:wrap;gap:8px}
.po-order-form .po-actions button{white-space:normal}
@media(max-width:1000px){.po-order-form .po-order-costs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.po-order-form>.formGrid,.po-order-form .po-order-costs{grid-template-columns:minmax(0,1fr)}.po-order-form .po-cost-total{grid-column:auto}.po-order-form .po-cost-heading{flex-direction:column;align-items:flex-start}}
.po-order-form .po-order-costs input{width:100%;min-width:0}

/* Exact-LSX outsourced operations below the unchanged proposal status. */
.po-outsource-stage-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px;max-width:220px;white-space:normal}
.po-outsource-stage-chip{display:inline-block;background:#e0f2fe;color:#164e63;border:1px solid #bae6fd;border-radius:5px;padding:2px 7px;font-size:12px;font-weight:600;line-height:1.45;white-space:normal;overflow-wrap:anywhere}

/* Supplier, dimensions and specification wrap; corresponding item heights are
   synchronized by alignProposalLines across all dashboard status filters. */
.po-lsx-status-table td:nth-child(6) .po-purchase-metric-line,
.po-lsx-status-table .po-size-metric .po-purchase-metric-line{white-space:pre-wrap;overflow-wrap:anywhere}
.po-lsx-status-table td:nth-child(n+9){white-space:nowrap;overflow-wrap:normal;word-break:normal}
.po-overview-table td:nth-child(5){white-space:pre-wrap;overflow-wrap:anywhere;min-width:300px;max-width:360px}
