.outbound-detail-filters{display:none}
/* Incoming/outgoing desktop split; production and narrow drawers retain their behavior. */
@media(min-width:1024px){
 html[data-outbound-split]:is(html,#erp-pc-theme) body .outbound-history-layout{display:grid!important;grid-template-columns:minmax(0,2.5fr) minmax(360px,1fr);align-items:start;gap:16px;min-width:0;scroll-margin-top:calc(var(--erp-nav-h,80px) + 20px)}
 html[data-outbound-split]:is(html,#erp-pc-theme) body .outbound-history-layout>.inout-history,
 html[data-outbound-split]:is(html,#erp-pc-theme) body .outbound-history-layout>#inqpanel{box-sizing:border-box!important;min-width:0;height:calc(100dvh - var(--erp-nav-h,80px) - 48px)!important;min-height:440px;display:flex!important;flex-direction:column!important}
 html[data-outbound-split]:is(html,#erp-pc-theme) body .outbound-history-layout .inout-history>.cardhd{display:flex!important;flex-wrap:wrap;gap:10px;flex-shrink:0}
 html[data-outbound-split]:is(html,#erp-pc-theme) body .outbound-history-layout .inout-history .identifier-search{flex-basis:100%;min-width:0;max-width:none;order:2}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history .erp-filter-actions{margin-left:0;flex-wrap:wrap}
 html[data-outbound-split]:is(html,#erp-pc-theme) body[data-inout-mode="out"] .outbound-detail-filters{display:flex;gap:8px;padding:8px 14px;flex-wrap:wrap;border-bottom:1px solid var(--line);flex-shrink:0}
 html[data-outbound-split]:is(html,#erp-pc-theme) body .outbound-detail-filters button{width:auto;height:auto;min-height:34px;padding:6px 12px;margin:0;border:1px solid var(--line2);border-radius:8px;font:inherit;color:var(--ink2);background:var(--surface,#fff)}
 html[data-outbound-split]:is(html,#erp-pc-theme) body .outbound-detail-filters button.active{color:var(--brand);border-color:var(--brand)}
 html[data-outbound-split]:is(html,#erp-pc-theme) body .inout-history>.track{flex:1;min-height:100px;max-height:none!important;overflow:auto!important}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history .track>table{width:100%!important;min-width:1420px!important;table-layout:fixed!important}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history thead tr>th:last-child,
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history tr[data-rid]>td:last-child{display:none!important}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history th:nth-child(1){width:34px!important}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history th:nth-child(2){width:104px!important}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history th:nth-child(3){width:54px!important}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history th:nth-child(4){width:100px!important}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history th:nth-child(5),
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history th:nth-child(6){width:150px!important}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history th:nth-child(7){width:78px!important}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history th:nth-child(8),
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history th:nth-child(9){width:150px!important}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history :is(th,td){box-sizing:border-box;min-width:0!important;padding:10px 6px!important}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history td:nth-child(5),
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history td:nth-child(6),
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history td:nth-child(8),
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history td:nth-child(9){white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;overflow:hidden!important;text-overflow:ellipsis!important}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history .history-model-btn{max-width:100%;min-width:0;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;height:auto!important;line-height:1.4}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history thead{position:sticky!important;top:0!important;z-index:2}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history .foot{flex-shrink:0}
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel{position:sticky!important;top:calc(var(--erp-nav-h,80px) + 20px)!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%!important;max-width:100%!important;transform:none!important;translate:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;animation:none!important;transition:none!important;z-index:1!important;border-radius:16px!important;border-top:3px solid var(--brand)!important;overflow:hidden!important}
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqov,
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel .qh button,
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel .elpusk-modal-bottom-cancel,
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel .qbasic-grid .qrow.outbound-list-field,
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel.outbound-empty .qf{display:none!important}
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel .qh{flex-shrink:0;cursor:default!important;touch-action:auto!important}
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel .qb{min-height:0;flex:1;overflow:auto!important;padding:16px!important}
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel .qf{flex-shrink:0;flex-wrap:wrap;padding:12px!important;gap:8px}
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel .qf>span{display:none!important}
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel .qf>button{flex:1 1 90px!important;min-width:90px!important;width:auto!important;white-space:nowrap!important;padding:8px!important}
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel .qbasic-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel .qbasic-grid .qrow{min-width:0;padding:12px!important;border:1px solid var(--line);border-radius:8px;text-align:left!important;display:block!important}
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel .qbasic-grid .outbound-wide-field{grid-column:1/-1}
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel .qbasic-grid .qk{display:block;font-size:14px!important;line-height:1.4}
 html[data-outbound-split]:is(html,#erp-pc-theme) body .outbound-history-layout #inqpanel .qbasic-grid .qv{display:block;min-width:0;margin-top:6px;font-size:16px!important;line-height:1.5!important;text-align:left!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important}
 html[data-outbound-split]:is(html,#erp-pc-theme) body #inqpanel .annual-sum-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html[data-outbound-split]:is(html,#erp-pc-theme) body .outbound-detail-summary{margin-bottom:16px;line-height:1.5;overflow-wrap:anywhere}
 html[data-outbound-split]:is(html,#erp-pc-theme) body .outbound-detail-summary strong{display:block;font-size:18px}
 html[data-outbound-split]:is(html,#erp-pc-theme) body .outbound-detail-summary>div{margin-top:6px;color:var(--muted)}
 html[data-outbound-split]:is(html,#erp-pc-theme) body .outbound-empty-message{padding:24px 8px;color:var(--muted);line-height:1.6}
}


@media screen and (min-width:1024px){
 html[data-inbound-list]:is(html,#erp-pc-theme) body .inout-history .track>table{width:100%!important;min-width:760px!important;table-layout:fixed!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body .inout-history thead th:last-child,
 html[data-inbound-list]:is(html,#erp-pc-theme) body .inout-history tr[data-rid]>td:last-child{display:none!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body .inout-history th:first-child{width:34px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body .inout-history th:nth-child(2){width:104px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body .inout-history th:nth-child(3){width:58px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body .inout-history th[data-filter-source="fCat"]{width:100px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body .inout-history th[data-filter-source="fPum"]{width:100px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body .inout-history th[data-filter-source="fPart"]{width:220px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body .inout-history th.history-quantity{width:88px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body .inout-history th[data-filter-source="fVen"]{width:150px!important}
 html:is([data-inbound-list],[data-outbound-list]):is(html,#erp-pc-theme) body.inout-page .inout-history :is(th,td){box-sizing:border-box;min-width:0!important;padding:10px 6px!important}
 html:is([data-inbound-list],[data-outbound-list]):is(html,#erp-pc-theme) body.inout-page .inout-history tr[data-rid]>td{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;overflow:hidden!important;text-overflow:ellipsis!important}
 html[data-outbound-list]:is(html,#erp-pc-theme) body .inout-history th:nth-child(n+10){width:110px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body .inout-history thead{position:sticky!important;top:0!important;z-index:2}
}


/* Fixed pixel columns can consume the entire narrow sidebar and collapse the
   supplier/reason column to zero, making wrapped text inflate every row. */
@media screen and (min-width:1024px){
 html[data-outbound-split] body #inqpanel .elph-table th:nth-child(1){width:21%!important}
 html[data-outbound-split] body #inqpanel .elph-table th:nth-child(2){width:16%!important}
 html[data-outbound-split] body #inqpanel .elph-table th:nth-child(3){width:21%!important}
 html[data-outbound-split] body #inqpanel .elph-table th:nth-child(4){width:23%!important}
 html[data-outbound-split] body #inqpanel .elph-table th:nth-child(5){width:19%!important}
 html[data-outbound-split] body #inqpanel .elph-table :is(th,td){height:auto!important;padding:8px 6px!important;vertical-align:top!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.4!important}
}

/* On a very narrow sidebar, keep the explanatory fifth column on a full-width
   second line so names do not break into one-character vertical stacks. */
@media screen and (min-width:1024px){
 html[data-outbound-split] body #inqpanel .elph-table{container-type:inline-size;container-name:quick-part-history}
}
@container quick-part-history (max-width:440px){
 html[data-outbound-split] body #inqpanel .elph-table :is(table,thead,tbody){display:block!important}
 html[data-outbound-split] body #inqpanel .elph-table tr{display:grid!important;grid-template-columns:30% 21% 24% 25%}
 html[data-outbound-split] body #inqpanel .elph-table tr>:is(th,td):nth-child(n){display:block!important;width:auto!important;min-width:0!important;padding:6px 4px!important}
 html[data-outbound-split] body #inqpanel .elph-table tr>:last-child{grid-column:1/-1;text-align:left!important;padding-top:0!important}
 html[data-outbound-split] body #inqpanel .elph-table td:not(:last-child){border-bottom:0!important}
 html[data-outbound-split] body #inqpanel .elph-table td:first-child{white-space:nowrap!important;overflow-wrap:normal!important}
}

/* Keep the original one-row receipt table. Long names use their existing title tooltip. */
@media screen and (min-width:1024px){
 html[data-inbound-list]:is(html,#erp-pc-theme) body .outbound-history-layout{--receipt-vendor-extra:clamp(0px,calc(100vw - 1500px),100px);grid-template-columns:minmax(calc(min(60%,620px) + 72px),calc(min(58%,840px) + var(--receipt-vendor-extra) + 72px)) minmax(0,1fr)!important;gap:12px}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history .track>table{width:100%!important;min-width:0!important;table-layout:fixed!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #thead tr>th,
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #rows tr[data-rid]>td{box-sizing:border-box!important;min-width:0!important;padding:10px 4px!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:center!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #thead tr>th:nth-child(1){width:28px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #thead tr>th:nth-child(2){width:88px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #thead tr>th:nth-child(3){width:48px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #thead tr>th:nth-child(4){width:128px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #thead tr>th:nth-child(5){width:8.25rem!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #thead tr>th:nth-child(6){width:auto!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #thead tr>th:nth-child(7){width:80px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #thead tr>th:nth-child(8){width:calc(110px + var(--receipt-vendor-extra,0px))!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #thead tr>th[data-filter-source="fPart"],
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #rows tr[data-rid]>td.history-part-name{text-align:left!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #thead .erp-filter-toggle{width:18px!important;min-width:18px!important;margin-left:2px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #thead .erp-filter-toggle,
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #rows tr[data-rid]>td :is(.tag,.mi){white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #rows tr[data-rid]>td .tag{padding:3px 5px!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important;text-overflow:ellipsis!important;vertical-align:middle}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page #inqpanel .qh .inbound-detail-expand{display:inline-flex!important;align-items:center;justify-content:center;min-height:36px;width:auto!important;margin-left:auto;padding:7px 12px;border:1px solid var(--line2);border-radius:9px;background:var(--surface,#fff);color:var(--ink);font:inherit;font-weight:800;white-space:nowrap;cursor:pointer}
 html[data-inbound-list][data-inbound-detail-wide]:is(html,#erp-pc-theme) body .outbound-history-layout{grid-template-columns:minmax(0,1fr)!important}
 html[data-inbound-list][data-inbound-detail-wide]:is(html,#erp-pc-theme) body .outbound-history-layout>.inout-history{display:none!important}
}
.inbound-detail-expand{display:none}

/* A wide incoming history keeps the date compact; reclaimed space belongs to supplier/reason. */
@container quick-part-history (min-width:560px){
 html[data-inbound-list] body #inqpanel .elph-table th:nth-child(1){width:110px!important}
 html[data-inbound-list] body #inqpanel .elph-table th:nth-child(2){width:90px!important}
 html[data-inbound-list] body #inqpanel .elph-table th:nth-child(5){width:auto!important}
 html[data-inbound-list] body #inqpanel .elph-table .elph-mode{white-space:nowrap!important}
 html[data-inbound-list] body #inqpanel .elph-table td:nth-child(1){white-space:nowrap!important;overflow-wrap:normal!important}
}

/* Keep every incoming-history value readable without horizontal scrolling.
   Selected-row motion must not extend the table's scrollable width. */
@media screen and (min-width:1024px){
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #rows tr[data-rid]{transform:none!important;translate:none!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #rows tr[data-rid]>td:nth-child(n+4):nth-child(-n+8){white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-overflow:clip!important;line-height:1.45!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #rows tr[data-rid]>td:nth-child(n+4) :is(.mi,.history-model-btn){white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-overflow:clip!important;height:auto!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #rows tr[data-rid]>td:nth-child(7){white-space:nowrap!important;font-variant-numeric:tabular-nums}
}

/* Receipt split: cap the list so the part column stays near 420px on wide screens; give remaining space to details. */
@media screen and (min-width:1024px){
 html[data-inbound-list]:not([data-inbound-detail-wide]):is(html,#erp-pc-theme) body .outbound-history-layout{grid-template-columns:minmax(0,min(calc(100% - 332px),calc(1024px + var(--receipt-vendor-extra,0px)))) minmax(320px,1fr)!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body.inout-page .outbound-history-layout .inout-history #thead tr>th:nth-child(8){width:calc(132px + var(--receipt-vendor-extra,0px))!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body #inqpanel .qb{padding:10px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body #inqpanel .elph-title{font-size:15px!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body #inqpanel .qbasic-grid{grid-template-columns:minmax(0,1fr)!important}
}
@container quick-part-history (max-width:560px){
 html[data-inbound-list] body #inqpanel .elph-table :is(table,thead,tbody){display:block!important;width:100%!important;min-width:0!important}
 html[data-inbound-list] body #inqpanel .elph-table tr{display:grid!important;grid-template-columns:80px 54px minmax(0,1fr) minmax(0,1.15fr)!important}
 html[data-inbound-list] body #inqpanel .elph-table tr>:is(th,td):nth-child(n){display:block!important;box-sizing:border-box!important;width:auto!important;min-width:0!important;padding:6px 3px!important;font-size:12px!important;line-height:1.45!important}
 html[data-inbound-list] body #inqpanel .elph-table tr>:last-child{grid-column:1/-1!important;text-align:left!important;padding:0 6px 8px!important;overflow-wrap:anywhere!important}
 html[data-inbound-list] body #inqpanel .elph-table tbody tr>td:last-child::before{content:"업체·모델·사유 · ";color:var(--muted);font-weight:normal}
 html[data-inbound-list] body #inqpanel .elph-table td:not(:last-child){border-bottom:0!important}
 html[data-inbound-list] body #inqpanel .elph-table td:first-child{white-space:nowrap!important;overflow-wrap:normal!important}
 html[data-inbound-list] body #inqpanel .elph-table .elph-mode{font-size:11px!important;padding:3px 4px!important;white-space:nowrap!important}
}

@media screen and (min-width:1024px){
 html[data-inbound-list]:is(html,#erp-pc-theme) body #inqpanel .elph-table tr{transform:none!important;translate:none!important}
 html[data-inbound-list]:is(html,#erp-pc-theme) body #inqpanel .elph-kind-prefix{display:none!important}
}
