/* OGL uses the same surfaces, fields and action colors as the ERP. */
#ogl-pack{padding:0!important}
#ogl-pack [hidden]{display:none!important}
#oglPackApp{--ogl-border:var(--ui-border,#e4eaf3);--ogl-surface:var(--ui-surface,#fff);--ogl-text:var(--ui-text,#263b57);--ogl-muted:var(--ui-muted,#7c8da6);--ogl-accent:var(--ui-accent,#1677ff);color:var(--ogl-text)}
.ogl-shell{display:flex;flex-direction:column;min-height:min(680px,calc(100dvh - 180px));border:1px solid var(--ogl-border);border-radius:12px;background:var(--ogl-surface)}
.ogl-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid var(--ogl-border)}
.ogl-filters>:is(input,select){height:36px;min-width:138px;max-width:200px;padding:0 10px;border:1px solid var(--ogl-border);border-radius:7px;background:var(--ogl-surface);color:inherit;font-size:12px}
/* Keep the browser picker: opening these local filters creates no JS popup. */
html body.erp-system-ui #ogl-pack .ogl-filters>select[data-erp-native-select]{appearance:auto!important;-webkit-appearance:auto!important;background-image:none!important;cursor:pointer;touch-action:manipulation;transition:none!important}
.ogl-filters .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;white-space:nowrap}
.ogl-filters svg,.ogl-actions svg,.ogl-dialog svg{width:16px;height:16px;flex:none}
.ogl-filters .primary svg{color:inherit}
.ogl-dates{display:flex;align-items:center;gap:5px;width:252px;height:36px;padding:0 9px;border:1px solid var(--ogl-border);border-radius:7px;color:var(--ogl-muted)}
.ogl-dates input{width:96px;min-width:0;height:32px;padding:0!important;border:0!important;background:transparent!important;outline:none!important;box-shadow:none!important;color:var(--ogl-text);font-size:12px}
.ogl-dates svg{width:15px;margin-left:auto}
.ogl-message{margin:10px 14px 0;padding:8px 12px;border:1px solid color-mix(in srgb,var(--ogl-accent) 18%,var(--ogl-border));border-radius:8px;background:color-mix(in srgb,var(--ogl-accent) 4%,var(--ogl-surface));font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.ogl-message.is-error{color:var(--ui-warning,#b87322);border-color:color-mix(in srgb,#d99b38 30%,var(--ogl-border));background:color-mix(in srgb,#f8b54d 7%,var(--ogl-surface))}
.ogl-progress{margin:8px 14px 0;padding:8px 12px;border:1px solid var(--ogl-border);border-radius:8px;font-size:11px;color:var(--ogl-muted);background:var(--ogl-surface)}
.ogl-progress-line{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ogl-progress details{position:relative}
.ogl-progress summary{color:var(--ogl-accent);cursor:pointer;white-space:nowrap}
.ogl-shop-progress{position:absolute;right:0;top:24px;z-index:6;width:min(430px,calc(100vw - 65px));max-height:260px;overflow-y:auto;padding:8px 12px;border:1px solid var(--ogl-border);border-radius:9px;background:var(--ogl-surface);box-shadow:0 6px 24px #243f631c}
.ogl-shop-progress>div{display:grid;grid-template-columns:minmax(0,1fr) 65px 65px;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--ogl-border)}
.ogl-shop-progress>div:last-child{border-bottom:0}
.ogl-shop-progress>div>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ogl-text)}
.ogl-shop-progress b{text-align:right;font-weight:500;color:var(--ogl-accent)}
.ogl-progress-track{height:3px;margin-top:8px;overflow:hidden;border-radius:3px;background:color-mix(in srgb,var(--ogl-accent) 9%,var(--ogl-surface))}
.ogl-progress-track>span{display:block;height:100%;border-radius:3px;background:var(--ogl-accent);transition:width .2s ease}
.ogl-progress-track>.is-discovering{min-width:14%;opacity:.65}
.ogl-table-wrap{flex:1;min-height:350px;margin:12px 14px 0;border:1px solid var(--ogl-border);border-radius:9px;overflow-x:auto}
.ogl-table{width:100%;min-width:1120px;border-collapse:separate;border-spacing:0;table-layout:auto;font-size:12px}
.ogl-table th,.ogl-table td{padding:13px 10px;border-bottom:1px solid var(--ogl-border);text-align:center;vertical-align:middle;white-space:nowrap}
.ogl-table th{height:42px;background:color-mix(in srgb,var(--ogl-surface) 95%,#607caa);color:var(--ogl-text);font-weight:500}
.ogl-table th:last-child{min-width:210px}
.ogl-table tr:last-child td{border-bottom:0}
.ogl-table tbody tr:hover{background:color-mix(in srgb,var(--ogl-accent) 2%,var(--ogl-surface))}
.ogl-link{display:inline-flex;align-items:center;gap:4px;padding:1px 3px;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--ogl-accent);font:inherit;cursor:pointer;white-space:nowrap}
.ogl-link:hover{text-decoration:underline}
.ogl-link:disabled{color:var(--ogl-muted);opacity:.5;cursor:default;text-decoration:none}
.ogl-actions .ogl-link+.ogl-link{margin-left:8px}
.ogl-link.ogl-danger{color:var(--ui-danger,#ef5b6d)}
/* Dedicated classes keep the global solid-button colors off status labels. */
.ogl-badge{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:1px 6px;border:1px solid #e2e8f0;border-radius:4px;font-size:12px;font-weight:500;line-height:18px;white-space:nowrap;background:#f8fafc;color:#475569}
.ogl-badge--success{color:#15803d;background:#f0fdf4;border-color:#bbf7d0}
.ogl-badge--warning{color:#a16207;background:#fffbeb;border-color:#fde68a}
.ogl-badge--info{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}
.ogl-badge--danger{color:#c9283e;background:#fff1f2;border-color:#fecdd3}
html[data-erp-mode="dark"] .ogl-badge{color:#cbd5e1;background:#243246;border-color:#465870}
html[data-erp-mode="dark"] .ogl-badge--success{color:#86efac;background:#143325;border-color:#2d6a44}
html[data-erp-mode="dark"] .ogl-badge--warning{color:#fcd34d;background:#3b2f18;border-color:#806121}
html[data-erp-mode="dark"] .ogl-badge--info{color:#93c5fd;background:#172d48;border-color:#315e93}
html[data-erp-mode="dark"] .ogl-badge--danger{color:#fda4af;background:#3d2029;border-color:#7f3447}
.ogl-warehouse-name{display:block;max-width:220px;margin:auto;overflow:hidden;text-overflow:ellipsis}
.ogl-mode-tag{display:inline-flex;align-items:center;gap:4px;margin-top:6px;padding:2px 6px;border-radius:5px;background:color-mix(in srgb,var(--ogl-accent) 7%,var(--ogl-surface));color:var(--ogl-accent);font-size:10px;line-height:1.5}
.ogl-mode-tag.pickup{color:var(--ui-success,#1ba870);background:color-mix(in srgb,var(--ui-success,#1ba870) 7%,var(--ogl-surface))}
.ogl-mode-tag.unknown{color:var(--ogl-muted);background:var(--ui-field-surface,#f6f8fb)}
.ogl-mode-tag svg{width:12px;height:12px}
.ogl-empty{height:230px;text-align:center!important;color:var(--ogl-muted);white-space:normal!important}
.ogl-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;font-size:12px;color:var(--ogl-muted)}
.ogl-foot .erp-pagination{flex:1;margin:0;padding:0;border:0}
.ogl-dialog{width:min(960px,calc(100vw - 32px));max-height:88dvh;padding:0;border:1px solid var(--ogl-border);border-radius:14px;background:var(--ogl-surface);color:var(--ogl-text);box-shadow:0 18px 60px #1c355333}
.ogl-dialog::backdrop{background:#182b4055}
.ogl-dialog-head,.ogl-dialog-foot{display:flex;align-items:center;gap:10px;padding:16px 20px;border-bottom:1px solid var(--ogl-border)}
.ogl-dialog-head b{font-size:16px}
.ogl-heading-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--ui-accent-soft,#edf4ff);color:var(--ogl-accent)}
.ogl-close{display:grid;place-items:center;width:30px;height:30px;margin-left:auto;padding:5px!important}
.ogl-dialog-body{max-height:calc(88dvh - 140px);overflow-y:auto;padding:18px 20px;font-size:13px}
.ogl-dialog-foot{justify-content:flex-end;border-bottom:0;border-top:1px solid var(--ogl-border)}
.ogl-cancel-dialog{max-width:470px}
.ogl-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid var(--ogl-border);border-radius:10px}
.ogl-detail-grid>div{padding:12px;border-bottom:1px solid var(--ogl-border)}
.ogl-detail-grid span{display:block;margin-bottom:4px;color:var(--ogl-muted);font-size:12px}
.ogl-detail-grid b{font-weight:500;overflow-wrap:anywhere}
.ogl-detail-section{margin-top:16px;padding:14px;border:1px solid var(--ogl-border);border-radius:10px}
.ogl-detail-products{margin-top:12px;max-height:none;overflow:visible}
.ogl-detail-products table{width:100%;font-size:12px}
.ogl-detail-products th,.ogl-detail-products td{padding:10px;border-bottom:1px solid var(--ogl-border);text-align:left;vertical-align:middle}
.ogl-detail-products td:first-child{width:170px}
.ogl-section-heading{display:flex;align-items:center;gap:8px;color:var(--ogl-text)}
.ogl-section-heading>svg{padding:6px;box-sizing:content-box;border-radius:7px;background:var(--ui-accent-soft,#edf4ff);color:var(--ogl-accent)}
.ogl-vehicle-summary{display:flex;gap:16px;flex-wrap:wrap;margin-top:12px}
.ogl-contact-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.ogl-contact-summary>div{display:grid;gap:5px;min-width:0}
.ogl-contact-summary>div:last-child{grid-column:1/-1}
.ogl-contact-summary span{color:var(--ogl-muted);font-size:11px}
.ogl-contact-summary b{font-size:12px;font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere}
.ogl-detail-resume{display:inline-flex;align-items:center;gap:6px;margin-top:12px}
.ogl-muted{color:var(--ogl-muted);font-size:12px;line-height:1.7}
html[data-erp-mode="dark"] #oglPackApp{--ogl-surface:#172235;--ogl-text:#dbe5f4;--ogl-border:#2e405a;--ogl-muted:#9aaac1}
@media(prefers-reduced-motion:reduce){.ogl-progress-track>span{transition:none}}
@media(max-width:760px){
 .ogl-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px}
 .ogl-filters>:is(input,select),.ogl-filters .erp-select-host{width:100%;min-width:0;max-width:none}
 .ogl-filters .ogl-dates{grid-column:1/-1;width:100%}
 .ogl-dates input{width:calc(50% - 20px)}
 .ogl-table-wrap{margin:8px 10px 0;border:0;overflow:visible;min-height:300px}
 .ogl-table{min-width:0;display:block}
 .ogl-table thead{display:none}
 .ogl-table tbody{display:grid;gap:10px}
 .ogl-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;border:1px solid var(--ogl-border);border-radius:9px}
 .ogl-table td{display:block;min-width:0;padding:7px 8px;border:0!important;text-align:left;white-space:normal;overflow-wrap:anywhere}
 .ogl-table td:before{display:block;content:attr(data-label);font-size:10px;color:var(--ogl-muted);margin-bottom:5px}
 .ogl-table td:first-child,.ogl-table td:last-child{grid-column:1/-1}
 .ogl-table td:first-child{font-weight:500}
 .ogl-table .ogl-warehouse-name{margin:0;max-width:none}
 .ogl-table .ogl-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid var(--ogl-border)!important;margin-top:6px;padding-top:12px}
 .ogl-table .ogl-actions:before{display:none}
 .ogl-shell{min-height:calc(100dvh - 155px)}
 .ogl-foot{padding:10px;flex-wrap:wrap}
 .ogl-foot .erp-pagination{flex-basis:100%}
 .ogl-message,.ogl-progress{margin-left:10px;margin-right:10px}
 .ogl-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ogl-dialog-body{padding:12px}
 .ogl-dialog-head,.ogl-dialog-foot{padding:12px}
 .ogl-detail-products table{min-width:0;table-layout:fixed}
 .ogl-detail-products td:first-child{width:35%;overflow-wrap:anywhere}
}

@layer erpColorMode.overrides {
 html body.erp-system-ui #oglDetails .fb-order-center-products{display:grid;gap:12px}
 html body.erp-system-ui #oglDetails .fb-order-center-product{display:flex;align-items:center;gap:12px;min-width:0}
 html body.erp-system-ui #oglDetails .legacy-cell-lines{display:grid;gap:4px;min-width:0;flex:1;line-height:1.65}
 html body.erp-system-ui #oglDetails :is(.product-name-line,.offer-single-line,.sku-single-line){display:flex;align-items:baseline;gap:5px;min-width:0}
 html body.erp-system-ui #oglDetails :is(.legacy-prod-title,.fb-order-center-copy){min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html body.erp-system-ui #oglDetails :is(.fb-order-copy,.fb-order-center-copy),html body.erp-system-ui #oglPackApp .ogl-link{display:inline-flex!important;align-items:center!important;flex:0 1 auto!important;min-width:0!important;width:auto!important;max-width:100%!important;min-height:0!important;height:auto!important;margin:0!important;padding:0 3px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font:inherit!important;line-height:1.65!important;color:var(--ui-accent,#1677ff)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;cursor:pointer!important}
 html body.erp-system-ui #oglPackApp .ogl-actions .ogl-link+.ogl-link{margin-left:10px!important}
 html body.erp-system-ui #oglPackApp .ogl-link.ogl-danger{color:#ef5b6d!important}
 html body.erp-system-ui #oglPackApp .ogl-link:disabled{color:var(--ogl-muted)!important;cursor:default!important}
 html body.erp-system-ui #oglDetails :is(.fb-order-copy,.fb-order-center-copy):hover{ text-decoration:underline!important}
 html body.erp-system-ui #oglDetails .fb-thumb-button{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;flex:none!important;width:var(--erp-list-image-width,60px)!important;min-width:var(--erp-list-image-width,60px)!important;max-width:var(--erp-list-image-width,60px)!important;height:calc(var(--erp-list-image-width,60px)*4/3)!important;min-height:calc(var(--erp-list-image-width,60px)*4/3)!important;max-height:calc(var(--erp-list-image-width,60px)*4/3)!important;margin:0!important;padding:0!important;border:0!important;border-radius:7px!important;background:transparent!important;cursor:zoom-in!important}
 html body.erp-system-ui #oglDetails :is(.legacy-thumb,.legacy-ph){width:var(--erp-list-image-width,60px)!important;height:calc(var(--erp-list-image-width,60px)*4/3)!important;object-fit:contain!important;flex:none!important}
 html body.erp-system-ui #oglDetails .fb-order-quantity{color:var(--ui-accent,#1677ff)}
}


.ogl-version{font-size:12px;color:var(--ui-muted,#8290a3);white-space:nowrap;margin-left:4px}
