/* Screen-only module alignment. Print layouts and business calculations are unchanged. */
@media screen {
body .sample-page .supplier-table tr[hidden]{display:none!important}
body .sample-page .supplier-table .all-order-children>td{max-width:none!important;padding:0!important;white-space:normal;overflow:visible}
body .sample-page .all-lines-panel{width:100%;min-width:0;box-sizing:border-box;padding:12px}
body .sample-page .all-line-product-titles{display:grid;gap:5px;min-width:0;flex:1}
body .sample-page .all-line-product-title{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.6}
body .sample-page .all-line-detail>header{align-items:flex-start;gap:12px}
body .sample-page .all-line-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:12px 0;width:100%}
body .sample-page .all-line-steps>li{width:auto;min-width:0;white-space:normal}
body .sample-page .all-node-pop{overflow-wrap:anywhere;max-width:100%;box-sizing:border-box}
body .po-page .po-inline-host{padding:14px;min-width:0;background:var(--c-panel,#f5f8fd)}
body .po-page .po-form{display:flex;flex-direction:column;gap:10px;min-width:0;max-width:100%}
body .po-page .po-form>.po-group{margin:0;min-width:0;border:1px solid var(--c-border,#dce5f1);border-radius:8px}
body .po-page .po-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-height:36px}
body .po-document-page>.po-title h2{font-size:22px;letter-spacing:0;margin:0}
body .po-document-page>.po-title>a{position:static;margin-left:auto}
body .po-page .po-document-meta{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;padding:12px!important;margin:12px 0!important;background:var(--c-panel,#f5f8fd);border:1px solid var(--c-border,#dce5f1);border-radius:8px}
body .po-page .po-document-scroll{width:100%;max-width:100%;overflow:auto}
body .po-page .po-document-table{width:100%;min-width:880px;table-layout:fixed;background:var(--c-card,#fff)}
body .po-page .po-document-table :is(th,td){width:auto;max-width:none;min-width:0;padding:9px 10px;line-height:1.55;white-space:normal;overflow-wrap:anywhere;vertical-align:middle;text-align:left}
body .po-page .po-document-table :is(th,td).po-document-select{width:32px;text-align:center;padding-inline:6px}
body .po-page .po-document-table .po-document-number{font-variant-numeric:tabular-nums;text-align:right}
body .po-page .po-document-material{vertical-align:top}
body .po-page .po-document-material strong{display:block;line-height:1.6;overflow-wrap:anywhere}
body .po-page .po-form>.po-document-total{margin:0;padding:12px;border:1px solid var(--c-border,#dce5f1);border-radius:7px}
body .po-page .po-form>.po-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;align-items:center;clear:both;margin:0;padding:10px 0;min-width:0;border:0}
body .po-page .po-actions :is(button,a){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;line-height:20px;padding:6px 12px;white-space:nowrap}
body .po-page .po-form>.po-history{margin:0;padding:12px;border:1px solid var(--c-border,#dce5f1);border-radius:7px;background:var(--c-card,#fff)}
body .po-page .po-history :is(p,details){min-width:0;overflow-wrap:anywhere}
body .po-page .po-message{margin:0;min-width:0}
body :is(.fin-report,.report-center){width:100%;max-width:none;min-width:0;margin:0;color:var(--c-text,#25405f);font-size:13px;line-height:1.6}
body :is(.fin-report .page-head,.report-head){display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid var(--c-border,#dce5f1)}
body :is(.fin-report .page-head h2,.report-head h2){font-size:22px;line-height:1.4;margin:0;color:var(--c-text-strong,#173552)}
body :is(.fin-filter,.report-filter){display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;min-width:0;max-width:100%;box-sizing:border-box}
body :is(form.fin-filter,.report-filter){padding:12px;border:1px solid var(--c-border,#dce5f1);border-radius:8px;background:var(--c-card,#fff)}
body :is(.fin-filter,.report-filter)>label{min-width:0;display:flex;gap:5px;flex-direction:column;font-size:12px;color:var(--c-text-sub,#64748b)}
body :is(.fin-filter,.report-filter) label>input:not([type=checkbox]):not([type=radio]){flex:0 0 auto;height:34px;min-height:34px;max-height:34px;width:100%;box-sizing:border-box}
body .fin-filter>label:has(input[type=checkbox]){flex-direction:row;align-items:center;align-self:center;white-space:nowrap}
body :is(.fin-report,.report-center) :is(.btn-sub,.btn-primary,.fin-payrec-btn){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 12px;border-radius:6px;line-height:20px;font-size:12px;white-space:nowrap;box-sizing:border-box;text-decoration:none}
body :is(.fin-report,.report-center) :is(button,a)>:is(.fas,.far,.fab){display:inline-block;flex:none;width:1.15em;text-align:center;line-height:1}
body :is(.fin-stats,.report-cards){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:12px;margin:16px 0}
body .fin-stat{display:flex;align-items:center;gap:12px;min-width:0;min-height:102px;padding:16px;border-radius:8px;border-color:var(--c-border,#dce5f1);box-shadow:0 2px 8px #18395f05;box-sizing:border-box}
body .fin-stat .fi{display:grid;place-items:center;width:42px;height:42px;min-width:42px;flex:none;line-height:1;border-radius:9px}
body .fin-stat .fi>i{display:block;line-height:1;margin:0;text-align:center}
body .fin-stat>div{min-width:0;flex:1}
body .fin-stat :is(.fl,.fs){white-space:normal;overflow-wrap:anywhere;line-height:1.5}
body .fin-stat .fv{font-size:clamp(16px,1.25vw,20px);line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body .report-cards article{justify-content:center;gap:7px;min-height:102px;padding:16px;border-radius:8px;box-sizing:border-box}
body .report-cards :is(strong,button){font-size:22px;line-height:1.3;font-variant-numeric:tabular-nums}
body :is(.fin-card,.report-panel){padding:16px;border-radius:8px;border-color:var(--c-border,#dce5f1);box-shadow:0 2px 8px #18395f05;min-width:0}
body :is(.fin-card>h3,.report-panel>header){min-height:26px;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;line-height:1.5}
body .fin-card .pos-edit-bar{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;margin-left:auto}
body :is(.fin-scroll,.report-scroll){max-width:100%;overflow:auto;overscroll-behavior:contain}
body :is(.fin-table,.report-table){font-size:12px;line-height:1.6;font-variant-numeric:tabular-nums}
body :is(.fin-table,.report-table) :is(th,td){padding:9px 10px;vertical-align:middle}
body :is(.fin-table,.report-table) th{background:var(--c-panel,#f1f5fb);color:var(--c-text-sub,#496789);font-size:12px}
body .fin-table .num{text-align:right;font-variant-numeric:tabular-nums}
body :is(.fin-filter,.report-tabs) .pill{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 10px;border-radius:6px;line-height:20px;box-sizing:border-box}
body :is(.report-pagination,.fin-report .order-pagination){align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.qc-upload{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;max-width:220px}
.qc-upload-pick{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:32px;padding:5px 9px;border:1px solid var(--c-border,#d6e2f5);border-radius:5px;background:var(--c-primary-soft,#edf4ff);color:var(--c-primary,#285cd8);font-size:12px;line-height:20px;box-sizing:border-box}
.qc-upload-pick input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;padding:0!important;margin:0;cursor:pointer}
.qc-upload-pick:focus-within{outline:2px solid var(--c-primary,#285cd8);outline-offset:2px}
.qc-upload-clear{border:1px solid var(--c-border,#d6e2f5);border-radius:5px;background:#fff;color:var(--c-text-sub,#64748b);padding:5px 8px;min-height:32px;font:inherit;font-size:12px;line-height:20px}
.qc-upload-names{display:block;flex-basis:100%;min-width:0;max-width:100%;font-size:11px;color:var(--c-text-sub,#64748b);overflow-wrap:anywhere;line-height:1.5}
.qc-upload.is-disabled .qc-upload-pick{opacity:.6;cursor:default}.qc-upload [hidden]{display:none!important}
.qc-upload :disabled{cursor:default}
body .qc-table{table-layout:fixed}.qc-table td{min-width:0;overflow-wrap:anywhere}
body .qc-table th{white-space:normal;line-height:1.45;padding:6px 5px}
body .qc-table :is(th,td):nth-child(1){width:4%}body .qc-table :is(th,td):nth-child(2){width:20%}
body .qc-table :is(th,td):nth-child(3){width:9%}body .qc-table :is(th,td):nth-child(4){width:10%}
body .qc-table :is(th,td):nth-child(5),body .qc-table :is(th,td):nth-child(7){width:6%}
body .qc-table :is(th,td):nth-child(6){width:12%}
body .qc-table :is(th,td):nth-child(8),body .qc-table :is(th,td):nth-child(9),body .qc-table :is(th,td):nth-child(10){width:11%}
body .qc-table .qc-result :is(select,input,button){max-width:100%;box-sizing:border-box}
body .qc-table .qc-result :is(select,input){min-height:30px;border:1px solid var(--c-border,#d6e2f5);border-radius:5px;background:#fff;padding:4px 6px;font:inherit}
body .qc-msg p{margin:4px 0;white-space:normal;overflow-wrap:anywhere}
.stock-qty-input:disabled{background:var(--c-panel,#f1f5fb);color:var(--c-text-weak,#8696ac);cursor:not-allowed}
@media(max-width:760px){
 body .sample-page .supplier-table .all-order-children{display:block!important;padding:0;width:100%;margin:0;border:0}
 body .sample-page .supplier-table .all-order-children[hidden]{display:none!important}
 body .sample-page .supplier-table .all-order-children>td{display:block!important;width:100%;border:0;padding:0!important}
 body .sample-page .supplier-table .all-order-children>td:before{display:none!important}
 body .sample-page .all-lines-panel{padding:10px}.sample-page .all-line-detail>header{flex-wrap:wrap}
 body .sample-page .all-line-steps{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:18px}
 body .po-page .po-inline-host{padding:8px}.po-page .po-actions>button{flex:1 1 auto}
 body :is(.fin-report .page-head,.report-head){align-items:flex-start}
 body :is(.fin-stats,.report-cards){grid-template-columns:repeat(2,minmax(0,1fr))}
 body .fin-stat{display:grid;grid-template-columns:36px minmax(0,1fr);padding:12px;gap:7px 9px;align-items:start}
 body .fin-stat>div{display:contents}body .fin-stat .fi{grid-column:1;grid-row:1;width:36px;height:36px;min-width:36px}
 body .fin-stat .fl{grid-column:2;grid-row:1;align-self:center;margin:0}
 body .fin-stat :is(.fv,.fs,.fbar){grid-column:1/-1;margin:0}body .fin-stat .fv{font-size:15px}
 body :is(.fin-card,.report-panel){padding:12px}.fin-report .fin-filter>input{min-width:0!important;max-width:100%}
 body :is(.fin-filter,.report-filter)>label{flex:1 1 140px}
 body .qc-table{table-layout:auto;min-width:1040px}.qc-table{display:table}
 .qc-table-wrap{max-width:100%;overflow:auto}.qc-upload{max-width:190px}
}
}
