/* Scoped presentation for Sales Order row previews. */
#page-customerorders .tl-soq-invoices-cell{min-width:145px;max-width:240px;vertical-align:top}
#page-customerorders .tl-soq-items-cell{min-width:210px;max-width:340px;vertical-align:top}
#page-customerorders .tl-soq-invoice-list{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
#page-customerorders .tl-soq-invoice{display:inline-block;border:1px solid #cae4ec;border-radius:5px;background:#f0f9fc;color:#087392;padding:3px 7px;font-size:11px;font-weight:700;line-height:1.4;overflow-wrap:anywhere;max-width:100%}
#page-customerorders .tl-soq-summary-item{display:flex;align-items:baseline;gap:9px;max-width:340px;font-size:11px;line-height:1.55;color:#18374b;margin-bottom:3px}
#page-customerorders .tl-soq-summary-item>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:285px}
#page-customerorders .tl-soq-summary-item>b{flex:none;font-size:11px;font-weight:700}
#page-customerorders .tl-soq-more{display:block;margin:3px 0;color:#60778b;font-size:10px}
#page-customerorders .tl-soq-empty{font-size:11px;color:#657c90}
#page-customerorders .tl-soq-warning{display:block;flex-basis:100%;font-size:11px;line-height:1.5;color:#9b6314;margin:4px 0}
#page-customerorders .tl-soq-trigger{display:inline-flex;align-items:center;padding:4px 8px;margin-top:5px;min-height:27px;border:1px solid #c7dce8;border-radius:5px;color:#0d5268;background:#fff;font-family:inherit;font-size:10px;font-weight:700;line-height:1.4;cursor:pointer;text-transform:none;letter-spacing:0}
#page-customerorders .tl-soq-trigger:hover,#page-customerorders .tl-soq-trigger[aria-expanded="true"]{background:#eaf5f9;border-color:#72acbd;color:#12374d}
#page-customerorders .tl-soq-trigger:focus-visible,#page-customerorders .tl-soq-close:focus-visible{outline:3px solid #60b0c4;outline-offset:2px}
#page-customerorders .tl-soq-popover{position:fixed;z-index:2200;display:flex;flex-direction:column;box-sizing:border-box;width:610px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);border:1px solid #c7dce8;border-radius:12px;background:#fff;color:#18374b;box-shadow:0 15px 50px #09283830;font-family:Arial,Helvetica,sans-serif;outline:none;overflow:hidden;text-align:left;text-transform:none;letter-spacing:0}
#page-customerorders:not(.on) .tl-soq-popover{display:none!important}
#page-customerorders .tl-soq-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 20px;background:#10344d;color:#fff;flex:none}
#page-customerorders .tl-soq-eyebrow{display:block;font-size:10px;line-height:1.4;font-weight:700;color:#b4d1df;letter-spacing:.5px;text-transform:uppercase}
#page-customerorders .tl-soq-head h3{margin:5px 0 4px;font-size:18px;line-height:1.25;color:#fff;overflow-wrap:anywhere}
#page-customerorders .tl-soq-head p{margin:0;font-size:12px;line-height:1.5;color:#e2eef3;overflow-wrap:anywhere}
#page-customerorders .tl-soq-close{display:none;flex:none;width:31px;height:31px;align-items:center;justify-content:center;border:1px solid #78919f;border-radius:6px;background:transparent;color:#fff;cursor:pointer;font:24px/1 Arial,sans-serif}
#page-customerorders .tl-soq-popover.is-pinned .tl-soq-close{display:flex}
#page-customerorders .tl-soq-content{padding:16px 20px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}
#page-customerorders .tl-soq-meta{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;margin:0 0 16px;padding:12px;border:1px solid #e2ecf2;border-radius:8px;background:#f5f9fc}
#page-customerorders .tl-soq-meta>div{min-width:0}
#page-customerorders .tl-soq-meta dt{color:#6b7f92;font-size:10px;font-weight:700;line-height:1.4;margin-bottom:5px}
#page-customerorders .tl-soq-meta dd{margin:0;color:#16364e;font-size:12px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
#page-customerorders .tl-soq-section+.tl-soq-section{margin-top:16px}
#page-customerorders .tl-soq-section h4{margin:0 0 9px;color:#12364e;font-size:12px;font-weight:700;line-height:1.4;text-transform:none;letter-spacing:0}
#page-customerorders .tl-soq-section p{margin:6px 0}
#page-customerorders .tl-soq-item-list{list-style:none;margin:0;padding:0;border:1px solid #dce8f0;border-radius:8px;overflow:hidden}
#page-customerorders .tl-soq-item-list>li{padding:12px;background:#fff;break-inside:avoid}
#page-customerorders .tl-soq-item-list>li+li{border-top:1px solid #e1ebf2}
#page-customerorders .tl-soq-item-list>li:nth-child(even){background:#f8fbfd}
#page-customerorders .tl-soq-line{display:flex;align-items:baseline;gap:14px;justify-content:space-between}
#page-customerorders .tl-soq-line strong{font-size:12px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
#page-customerorders .tl-soq-qty{flex:none;font-size:11px;font-weight:700;color:#0c7289;white-space:nowrap}
#page-customerorders .tl-soq-code{margin-top:4px;font-size:11px;color:#60788c;line-height:1.4;overflow-wrap:anywhere}
#page-customerorders .tl-soq-details{margin-top:5px;font-size:11px;line-height:1.5;color:#50697b;white-space:pre-wrap;overflow-wrap:anywhere}
#page-customerorders .tl-soq-footer{padding:10px 20px;border-top:1px solid #e1ebf2;color:#687f92;background:#fafcfd;font-size:10px;line-height:1.4;flex:none}
@media(max-width:599px){
 #page-customerorders .tl-soq-popover{left:12px!important;right:12px!important;top:auto!important;bottom:12px!important;width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}
 #page-customerorders .tl-soq-trigger{padding:7px 10px;min-height:36px}
 #page-customerorders .tl-soq-head{padding:14px 16px}
 #page-customerorders .tl-soq-head h3{font-size:17px}
 #page-customerorders .tl-soq-content{padding:14px}
 #page-customerorders .tl-soq-meta{grid-template-columns:1fr 1fr;gap:12px}
 #page-customerorders .tl-soq-meta>div:first-child{grid-column:1 / -1}
 #page-customerorders .tl-soq-close{width:36px;height:36px}
}
@media print{#page-customerorders .tl-soq-popover,#page-customerorders .tl-soq-trigger{display:none!important}}

/* Keep both scrollbars within the Sales Orders viewport. */
#page-customerorders .tw:has(>.tl-customer-orders-table){max-width:100%;min-width:0;max-height:70vh;max-height:70dvh;overflow:auto!important;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#7395a9 #edf3f7;direction:ltr;-webkit-overflow-scrolling:touch}
#page-customerorders .tl-customer-orders-table{min-width:1900px;width:100%}
#page-customerorders .tw:has(>.tl-customer-orders-table)::-webkit-scrollbar{width:14px;height:14px}
#page-customerorders .tw:has(>.tl-customer-orders-table)::-webkit-scrollbar-track{background:#edf3f7}
#page-customerorders .tw:has(>.tl-customer-orders-table)::-webkit-scrollbar-thumb{background:#7395a9;border:3px solid #edf3f7;border-radius:8px}
#page-customerorders .tl-customer-orders-table>thead{position:sticky;top:0;z-index:2;background:#0b2f4a}
@media print{#page-customerorders .tw:has(>.tl-customer-orders-table){max-height:none;overflow:visible!important}#page-customerorders .tl-customer-orders-table{min-width:0}#page-customerorders .tl-customer-orders-table>thead{position:static}}
