.core-kpis{display:grid;grid-template-columns:repeat(var(--core-count),minmax(0,1fr));gap:10px;margin:24px 0 18px}.core-kpi{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:12px 14px;text-align:left;min-width:0;min-height:90px;color:var(--ink)}.core-kpi>span,.core-kpi>small{display:block;font-size:12px;line-height:18px;color:var(--muted);white-space:normal}.core-kpi>strong{display:block;font-size:23px;line-height:30px;margin:5px 0;font-weight:650;letter-spacing:-.5px}.core-kpi.active{border-color:var(--ink);background:var(--soft)}
.core-status-tabs{display:flex;gap:2px;border-bottom:1px solid var(--border);overflow:auto;white-space:nowrap;margin-bottom:16px}.core-status-tabs>button{border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font-size:13.5px;padding:7px 10px 9px;display:flex;gap:5px;align-items:center}.core-status-tabs>button.active{border-bottom-color:var(--ink);color:var(--ink);font-weight:600}.core-status-tabs b{font-size:11px;background:var(--soft);padding:0 4px;border-radius:3px}.core-status-tabs .active b{background:var(--ink);color:var(--surface)}
.core-filters,.core-period,.core-map-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0}.core-filters .control{min-width:110px;width:auto;height:32px;padding:0 10px}.core-search{position:relative;min-width:220px;max-width:370px;flex:1}.core-search>.icon{position:absolute;left:10px;top:8px;width:16px;height:16px;color:var(--faint)}.core-search .control{padding-left:32px;width:100%}.core-period{margin:0;gap:6px}.core-period input{width:136px!important}.core-check{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.core-check input{accent-color:var(--ink)}.core-view-toggle{display:flex;gap:6px;margin:12px 0}.core-notice{font-size:13px;padding:10px 12px;border-radius:6px;background:var(--soft);margin-top:18px}.core-notice .btn{display:inline-flex}.core-export{display:flex;justify-content:flex-end;margin-top:-2px}
.core-table{margin-top:12px}.core-table-tools{display:flex;align-items:center;justify-content:space-between;position:relative;gap:10px;font-size:12px;color:var(--muted);padding:0 0 8px}.core-table-tools>div:not(.core-column-pop){display:flex;gap:2px}.core-table-tools .btn{font-size:12px;min-height:25px;border-color:transparent;background:transparent;padding:0 9px}.core-table-tools .btn.active{border-color:var(--border);background:var(--surface);color:var(--ink)}.core-table-scroll{overflow:auto;border:1px solid var(--border);border-radius:8px}.core-table-scroll table{width:100%;border-collapse:collapse;min-width:720px;background:var(--surface);font-variant-numeric:tabular-nums}.core-table-scroll th{font-size:12.5px;font-weight:500;text-align:left;background:var(--soft);color:var(--muted);padding:8px 12px;white-space:nowrap;border-bottom:1px solid var(--border)}.core-table-scroll td{padding:10px 12px;border-bottom:1px solid var(--border);font-size:13.5px;line-height:20.25px;white-space:nowrap;color:var(--ink);font-weight:400}.core-table-scroll tr:last-child td{border-bottom:0}.core-table-scroll td strong{font-weight:500}.core-table-scroll td small{display:block;font-size:12px;line-height:18px;color:var(--muted)}.core-table-scroll tbody tr[data-action]{cursor:pointer}.core-table-scroll tbody tr:hover{background:var(--soft)}.core-dense .core-table-scroll td{padding-top:5px;padding-bottom:5px}.core-column-pop{position:absolute;right:0;top:29px;z-index:30;background:var(--surface);border:1px solid var(--border);box-shadow:0 8px 25px #0002;padding:12px;width:240px;max-height:430px;overflow:auto;border-radius:8px}.core-column-pop>b{display:block;margin-bottom:7px;color:var(--ink)}.core-column-pop label{display:flex;align-items:center;gap:8px;padding:5px 2px;font-size:12.5px;color:var(--ink)}.core-column-pop input{accent-color:var(--ink)}.core-urgent{font-size:11px;display:inline-block;padding:1px 5px;border-radius:3px;background:#fff0ed;color:#ba5347;margin-left:5px}.core-record-link{font-variant-numeric:tabular-nums}.core-danger{color:#bd5549}.core-empty{text-align:center!important;padding:32px!important;color:var(--muted)!important}.core-bulk{display:flex;align-items:center;gap:8px;background:var(--soft);border:1px solid var(--border);border-radius:6px;padding:10px;margin-top:10px}
.core-panel{border:1px solid var(--border);border-radius:9px;padding:20px;background:var(--surface);margin:18px 0}.core-panel>header{display:flex;justify-content:space-between;gap:12px;margin-bottom:16px}.core-panel h2{font-size:15px;font-weight:600;line-height:22.5px;margin:0}.core-panel h3{font-size:13.5px;line-height:20.25px;margin:0 0 10px}.core-panel>header p{font-size:12px;line-height:18px;color:var(--muted);margin:3px 0 0}.core-panel>.core-table-scroll{border:0}.core-analytics{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.core-analytics p{display:flex;justify-content:space-between;font-size:13px;padding:8px 0;border-bottom:1px solid var(--border)}.core-breadcrumb{font-size:12px;color:var(--muted);margin:0 0 10px}.core-breadcrumb .btn{padding:0!important;min-height:22px!important;border:0!important;background:none!important;color:inherit}.core-detail-badges{display:flex;gap:6px;margin:10px 0}.core-flow{display:flex;list-style:none;gap:0;margin:20px 0 24px;padding:18px 12px;border:1px solid var(--border);border-radius:8px;background:var(--soft)}.core-flow>li{flex:1;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.core-flow b{width:24px;height:24px;border:1px solid var(--border);border-radius:50%;display:grid;place-items:center;background:var(--surface)}.core-flow .done{color:var(--ink);font-weight:600}.core-flow .done b{background:var(--ink);color:var(--surface)}.core-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.core-detail-grid>.core-panel{min-width:0}.core-detail-grid .core-panel:first-child{margin-top:0}.core-detail-grid>div,.core-detail-grid>aside{min-width:0}.core-detail-grid table{min-width:600px}.core-dl{display:grid;grid-template-columns:80px 1fr;font-size:13px;line-height:20px;gap:10px 12px;margin:0}.core-dl dt{color:var(--muted)}.core-dl dd{margin:0;overflow-wrap:anywhere}.core-timeline p{position:relative;border-left:1px solid var(--border);padding:0 0 16px 18px;margin:0 0 0 4px}.core-timeline p:before{content:'';position:absolute;left:-4px;top:6px;width:7px;height:7px;border-radius:50%;background:var(--faint)}.core-timeline strong{display:block;font-size:13px;font-weight:500}.core-timeline small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.core-stock-tabs{display:flex;gap:6px;margin:14px 0}
.core-create{max-width:1050px}.core-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}.core-one{grid-template-columns:1fr}.core-field{display:flex;flex-direction:column;gap:6px;font-size:13px}.core-field>span{font-weight:500}.core-field>span>b{color:#bb594e}.core-field .control{width:100%;height:38px;min-width:0;padding:0 11px}.core-field textarea.control{height:auto;padding:10px 11px;resize:vertical}.core-span{grid-column:1/-1}.core-create .core-panel{padding:24px}.core-item-add{display:flex;gap:8px;margin-bottom:15px}.core-item-add select{flex:1}.core-create .core-table-scroll input{min-width:90px;width:100%;max-width:170px;height:32px}.core-create-footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:18px 0 30px}.core-create-footer>span{margin-right:auto;color:var(--muted);font-size:12px}.core-muted{font-size:12px;color:var(--muted);line-height:19px}.core-conversation article{border:1px solid var(--border);border-radius:8px;padding:15px;margin:12px 0}.core-conversation article>b{font-size:13px}.core-conversation article small{font-size:11px;color:var(--muted);font-weight:400}.core-conversation article p{white-space:pre-wrap;font-size:14px;line-height:22px}.core-conversation+#core-reply{margin-top:18px}#core-reply textarea{width:100%;min-height:100px;margin-bottom:10px}#core-reply>.btn{display:flex;margin-left:auto}
.core-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}.core-lane{background:var(--soft);border:1px solid var(--border);border-radius:8px;padding:12px;min-height:350px}.core-lane>header{display:flex;align-items:center;justify-content:space-between;padding:0 4px 10px;font-size:13px}.core-lane>header small{margin-left:5px;color:var(--muted)}.core-task{background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:14px;margin-bottom:10px;cursor:grab}.core-task>strong{font-size:14px;line-height:21px;font-weight:550}.core-task>p{margin:8px 0;font-size:12px}.core-task>small{font-size:11px;color:var(--muted)}.core-task>div{display:flex;gap:4px;justify-content:flex-end;margin-top:9px}.core-task>div .btn{font-size:10px;min-height:22px;padding:0 4px}.core-map-toolbar{justify-content:space-between}.core-map-toolbar>div:last-child{display:flex;gap:5px}.core-map-legend{display:flex;justify-content:flex-end;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.core-map-legend i{width:13px;height:13px;border:1px solid var(--border);background:#b6c9b5}.core-map-legend i.high{background:#596c56}.core-zone{border:1px solid var(--border);border-radius:10px;margin:16px 0;padding:16px}.core-zone h2{font-size:14px;line-height:21px;margin:0 0 12px}.core-map-bins{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.core-map-bins>button{background:var(--soft);border:1px solid var(--border);border-radius:5px;height:64px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:var(--ink)}.core-map-bins>button strong{font-size:11px;font-weight:600}.core-map-bins>button small{font-size:11px;line-height:16px}.core-map-bins>.filled{background:#d2ddd0;color:#304b2a;border-color:#a4b99d}.core-map-bins>.high{background:#6e8565;color:#fff;border-color:#5c7653}.core-map-bins>.alert{background:#fae4bf;border-color:#d7b880;color:#77551c}.core-map-bins>.unmatched{opacity:.18}.core-location-items{display:grid;gap:8px}.source-layout .dialog.core-side-dialog{position:fixed;inset:0 0 0 auto;width:min(660px,100vw);height:100dvh;max-height:100dvh;max-width:100vw;border-radius:0;margin:0}.core-side-dialog .core-kpis{grid-template-columns:repeat(3,1fr)}
.core-kpi{min-height:116px}.core-kpi>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.core-kpi>small{font-size:11.5px}.core-screen-orders .page-heading{display:block}.core-screen-orders .page-heading .page-subtitle{max-width:690px}.core-screen-orders .heading-actions{justify-content:flex-start;margin-top:16px}.core-screen-orders .core-kpis{margin-top:18px}
@media(max-width:1300px){.core-detail-grid{grid-template-columns:minmax(0,1fr) 270px}}
@media(max-width:900px){.core-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.core-detail-grid{grid-template-columns:1fr}.core-detail-grid>aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.core-analytics{grid-template-columns:1fr}.core-map-bins{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:640px){.core-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.core-kpi{min-height:90px;padding:10px 12px}.core-kpi strong{font-size:22px}.core-filters .control{max-width:100%}.core-period{width:100%;gap:5px}.core-period input{width:130px!important}.core-detail-grid>aside{display:block}.core-form-grid{grid-template-columns:1fr}.core-span{grid-column:1}.core-create .core-panel{padding:16px}.core-create-footer{flex-wrap:wrap}.core-create-footer>span{width:100%;margin-bottom:10px}.core-board{grid-template-columns:repeat(3,minmax(250px,1fr));overflow:auto}.core-flow{overflow:auto}.core-flow>li{min-width:100px}.core-map-bins{grid-template-columns:repeat(3,minmax(0,1fr))}.core-map-toolbar>div:last-child{overflow:auto;max-width:100%}}
.core-map-page{--map-shade-0:var(--surface);--map-shade-1:#e5e6e6;--map-shade-2:#c6c8c8;--map-shade-3:#969a99;--map-shade-4:#646967;--map-shade-5:#333936;min-width:0}.core-map-page .page-heading{align-items:flex-end}.core-map-page .page-subtitle{max-width:650px}.core-map-page .heading-actions{flex-shrink:0}.core-map-page .heading-actions .control{min-width:158px;height:33px;font-size:12.5px}
.core-map-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border:1px solid var(--border);border-radius:7px;margin:22px 0 15px;overflow:hidden;background:var(--surface)}.core-map-summary>div{position:relative;min-width:0;min-height:74px;padding:12px 13px;border-right:1px solid var(--border)}.core-map-summary>div:last-child{border:0}.core-map-summary>div>span{display:flex;align-items:center;gap:5px;font-size:11.5px;line-height:18px;color:var(--muted);white-space:normal}.core-map-summary strong{display:inline-block;font-size:19px;line-height:26px;font-weight:600;letter-spacing:-.3px;margin-top:2px}.core-map-summary small{font-size:11px;color:var(--faint);margin-left:5px}.core-map-summary-bar{display:block;height:4px;background:var(--soft);border-radius:3px;margin-top:5px;overflow:hidden}.core-map-summary-bar em{display:block;height:100%;background:#739c8c;border-radius:3px}
.core-map-page .core-map-toolbar{gap:12px;justify-content:space-between;margin:0}.core-map-modes{display:flex;gap:0;padding:3px;border-radius:5px;background:var(--soft)}.core-map-modes .btn{background:transparent;border:0;font-size:12px;min-height:26px;padding:3px 10px;white-space:nowrap;color:var(--muted);box-shadow:none}.core-map-modes .btn.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px #0000000d}.core-map-page .core-map-toolbar .core-search{flex:0 1 255px;min-width:180px;max-width:300px}.core-map-page .core-map-toolbar .core-search .control{height:32px;font-size:12px;padding-left:31px}.core-map-description{font-size:11.5px;color:var(--faint);line-height:18px;margin:10px 0 12px}
.core-map-canvas{width:100%;min-width:0;overflow:auto;border:1px solid var(--border);border-radius:10px;background:var(--surface);isolation:isolate}.core-map-floorplan{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,1fr);gap:38px;padding:5px;min-width:680px;background-image:linear-gradient(to right,var(--border) 1px,transparent 1px),linear-gradient(to bottom,var(--border) 1px,transparent 1px);background-size:32px 32px;background-color:var(--surface)}.core-map-left,.core-map-right{min-width:0}.core-map-left{display:flex;flex-direction:column;gap:38px}.core-map-working{display:grid;grid-template-columns:1.2fr 1.2fr .8fr;gap:22px;align-items:start}.core-map-zone{min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:5px;padding:7px}.core-map-zone>header{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:8px;line-height:16px}.core-map-zone>header strong{font-size:10.5px;font-weight:400;color:var(--muted);min-width:0;white-space:nowrap}.core-map-zone>header strong b{color:var(--ink);font-weight:600;margin-right:4px}.core-map-zone>header>span{font-size:9.5px;color:var(--faint);white-space:nowrap}.core-map-zone.map-workarea{border-style:dashed;padding:6px;background:var(--surface)}.core-map-working .core-map-zone>header{flex-wrap:wrap;margin-bottom:8px;gap:0}.core-map-working .core-map-zone>header strong{font-size:9.5px}.core-map-working .core-map-zone>header>span{font-size:8.5px;margin-left:auto}.core-map-racks{display:grid;grid-template-columns:repeat(var(--rack-columns),minmax(0,1fr));gap:15px 9px}.core-map-rack{min-width:0}.core-map-rack-cells{display:grid;grid-template-columns:repeat(var(--rack-bins),minmax(0,1fr));gap:3px}.core-map-bin{position:relative;display:block;border:1px solid var(--border);border-radius:1px;width:100%;min-width:0;height:22px;padding:0;color:var(--ink);cursor:pointer;outline-offset:2px;background:var(--surface)}.core-map-zone-B .core-map-bin{height:27px}.core-map-bin:hover,.core-map-bin:focus-visible{outline:2px solid var(--primary);z-index:4}.core-map-rack-label{display:flex;justify-content:space-between;border-top:2px solid var(--faint);margin-top:3px;padding-top:1px;color:var(--faint);font-size:8px;line-height:12px}.core-map-flat-bins{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.core-map-flat-bins .core-map-bin{height:31px;display:flex;align-items:center;justify-content:center;font-size:8.5px}.core-map-zone-RTN .core-map-flat-bins{grid-template-columns:repeat(2,minmax(0,1fr))}.core-map-zone-HLD{max-width:260px}.core-map-zone-HLD .core-map-flat-bins{grid-template-columns:repeat(4,minmax(0,1fr))}.core-map-bin-missing{display:block;min-height:22px;opacity:0;pointer-events:none}.core-map-other-zones{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.map-custom-floor .core-map-left{grid-column:1/-1}.map-custom-floor .core-map-other-zones{grid-template-columns:repeat(2,minmax(0,1fr))}
.map-shade-0{background:var(--map-shade-0,var(--surface))!important}.map-shade-1{background:var(--map-shade-1,#e5e6e6)!important}.map-shade-2{background:var(--map-shade-2,#c6c8c8)!important}.map-shade-3{background:var(--map-shade-3,#969a99)!important}.map-shade-4{background:var(--map-shade-4,#646967)!important}.map-shade-5{background:var(--map-shade-5,#333936)!important}.core-map-bin.map-shade-4,.core-map-bin.map-shade-5{color:#fff}.core-map-bin.map-held:after{content:'';position:absolute;right:2px;bottom:2px;width:5px;height:5px;border-radius:50%;background:#df6b6b}.core-map-bin.map-expiry:before{content:'';position:absolute;left:0;top:0;border-top:7px solid #df9b45;border-right:7px solid transparent}.core-map-bin.map-expired{background:#e8a9a4!important}.core-map-bin.map-disabled{opacity:.55;background:repeating-linear-gradient(135deg,var(--surface),var(--surface) 3px,var(--border) 3px,var(--border) 4px)!important}.core-map-bin.map-unmatched{opacity:.16}.core-map-tooltip{display:none;position:absolute;top:calc(100% + 7px);left:50%;transform:translateX(-50%);width:205px;max-width:none;padding:9px 11px;border:1px solid var(--border);border-radius:6px;background:var(--surface);box-shadow:0 6px 20px #0002;color:var(--ink);text-align:left;z-index:6;pointer-events:none;white-space:normal}.core-map-tooltip b{display:block;font-size:12px;font-weight:600;line-height:18px}.core-map-tooltip small{display:block;font-size:10.5px;color:var(--muted);line-height:16px;margin-top:1px}.core-map-bin:hover>.core-map-tooltip,.core-map-bin:focus-visible>.core-map-tooltip{display:block}
.core-map-page .core-map-legend{display:flex;justify-content:flex-end;align-items:center;gap:7px 10px;flex-wrap:wrap;font-size:10px;line-height:16px;margin-top:12px;color:var(--muted)}.core-map-legend>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.core-map-legend i{display:inline-block;flex:0 0 auto;width:12px;height:12px;border:1px solid var(--border);border-radius:1px}.core-map-scale{gap:1px!important}.core-map-dot,.core-map-legend i.core-map-dot{display:inline-block;width:6px;height:6px;background:#df6b6b;border:0;border-radius:50%;flex:0 0 auto}.core-map-corner,.core-map-legend i.core-map-corner{display:inline-block;width:0;height:0;background:none;border:0;border-top:8px solid #df9b45;border-right:8px solid transparent;border-radius:0;flex:0 0 auto}.core-map-legend i.core-map-work-symbol{background:var(--surface);border-style:dashed;border-radius:3px;width:16px;height:13px}.core-map-legend i.map-disabled{background:repeating-linear-gradient(135deg,var(--surface),var(--surface) 3px,var(--border) 3px,var(--border) 4px)}
.core-map-detail-sub{font-size:12.5px;line-height:20px;color:var(--muted);margin:0 0 18px}.core-map-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:12px 0}.core-map-detail-summary span{display:block;color:var(--muted);font-size:11.5px}.core-map-detail-summary b{display:block;font-size:19px;margin-top:5px;font-weight:600}.core-map-dialog h3{font-size:14px;margin-top:24px}.core-map-dialog .core-table-scroll{max-width:100%}.core-map-dialog .core-table-scroll table{min-width:650px}.core-map-dialog .core-table-scroll .btn.text{padding:0;min-height:20px;font-size:13px}
@media(max-width:1100px){.core-map-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.core-map-summary>div{border-bottom:1px solid var(--border)}.core-map-summary>div:nth-child(3){border-right:0}.core-map-summary>div:nth-child(n+4){border-bottom:0}.core-map-floorplan{gap:24px}.core-map-working{gap:12px}}
@media(max-width:700px){.core-map-page .page-heading{align-items:flex-start;gap:14px}.core-map-page .heading-actions{align-self:flex-start}.core-map-summary{margin-top:16px}.core-map-summary>div{padding:10px;min-height:71px}.core-map-summary>div>span{font-size:10.5px}.core-map-summary strong{font-size:18px}.core-map-page .core-map-toolbar{align-items:stretch;gap:10px}.core-map-page .core-map-toolbar>div:last-child{overflow:visible;max-width:100%}.core-map-page .core-map-toolbar .core-search{min-width:0;flex:1 1 100%;max-width:none}.core-map-modes{width:max-content;max-width:100%;flex-wrap:wrap}.core-map-modes .btn{font-size:11.5px;padding:3px 9px}.core-map-floorplan{min-width:660px;gap:20px}.core-map-page .core-map-legend{justify-content:flex-start}.core-map-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.core-map-dialog .core-table-scroll table{min-width:570px}}
.theme-dark .core-map-page{--map-shade-1:#303d35;--map-shade-2:#4b5b51;--map-shade-3:#687e70;--map-shade-4:#8da694;--map-shade-5:#b5cbbd}.theme-dark .core-map-bin.map-shade-4,.theme-dark .core-map-bin.map-shade-5{color:#15231a}.theme-dark .core-map-bin.map-expired{background:#884b48!important;color:#fff}
.core-screen-inventory .core-kpi.active[data-value=""]{background:var(--surface);border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.core-urgent-switch input[role="switch"]{appearance:none;-webkit-appearance:none;position:relative;display:inline-block;flex-shrink:0;width:30px;height:18px;margin:0;border:0;border-radius:999px;background:var(--border);cursor:pointer;vertical-align:middle;transition:background .12s}.core-urgent-switch input[role="switch"]:before{content:'';position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:var(--surface);box-shadow:0 1px 2px #0002;transition:transform .12s}.core-urgent-switch input[role="switch"]:checked{background:var(--ink)}.core-urgent-switch input[role="switch"]:checked:before{transform:translateX(12px)}.core-inbound-difference-notice{padding:13px 16px;background:#fcf5de;border-radius:8px;font-size:13px;color:var(--ink);margin:18px 0 20px}.theme-dark .core-inbound-difference-notice{background:#393322}.core-inbound-line-delta{color:var(--red)!important}.core-inbound-differences{padding:16px}.core-inbound-difference-tags{display:flex;align-items:center;gap:7px;margin-bottom:14px;font-size:12px}.core-inbound-difference-line{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:12.5px}.core-inbound-difference-line>div{min-width:0;flex:1}.core-inbound-difference-line strong,.core-inbound-difference-line small{display:block}.core-inbound-difference-line small{font-size:11.5px;color:var(--muted);margin-top:3px}.core-inbound-difference-line>b{font-size:12px;color:var(--amber);font-weight:500}.core-inbound-differences>p{margin:14px 0 0;font-size:12px;line-height:1.75;color:var(--muted)}.core-panel tfoot td,.core-panel tfoot th{font-weight:600;border-top:1px solid var(--border);background:var(--soft)}@media(max-width:640px){.core-inbound-difference-line{flex-wrap:wrap}.core-inbound-difference-line>div{flex-basis:100%}.core-inbound-difference-notice{font-size:12px}}
.core-field>small,.core-urgent-switch>span>small{display:block;color:var(--muted);font-size:12px;font-weight:400;line-height:18px}.core-urgent-switch>span{display:flex;flex-direction:column;gap:4px}.core-item-search{position:relative;margin-bottom:14px}.core-item-search>.control{width:100%;height:38px}.core-item-results{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:25;background:var(--surface);border:1px solid var(--border);border-radius:6px;box-shadow:0 4px 14px #00000014;max-height:330px;overflow:auto;padding:4px}.core-item-results[hidden],.core-create-shortage[hidden]{display:none}.core-item-results>button{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:var(--ink);padding:10px 12px;text-align:left;border-radius:4px;font:inherit;font-size:13px;cursor:pointer}.core-item-results>button:hover,.core-item-results>button:focus-visible{background:var(--soft);outline:0}.core-item-results code{color:var(--muted);font-size:12px;min-width:82px}.core-item-results small{color:var(--muted);font-size:12px;margin-left:auto;white-space:nowrap}.core-create-lines tfoot th,.core-create-lines tfoot td{font-size:12.5px;padding:10px 12px}.core-create-shortage{color:var(--red);font-size:12px;line-height:19px;margin:12px 0 0}.core-method{align-self:flex-start}.core-method .btn{font-size:12px;min-height:28px;padding:0 12px}.core-method .btn.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px #0001}.core-create .core-create-lines .icon-btn{width:26px;height:26px;min-height:26px;padding:4px;color:var(--muted)}@media(max-width:640px){.core-item-results>button{gap:8px;padding:10px 8px}.core-item-results code{min-width:65px;font-size:11px}.core-item-results>button>span{min-width:0;white-space:normal}.core-item-results small{font-size:11px}}
.core-create-shortage,.core-inbound-line-delta{color:var(--source-text-red,var(--red))!important}.core-field>span>b{color:var(--source-text-red,var(--red))}.core-urgent{color:var(--source-text-red,var(--red))}.core-inbound-difference-line>b{color:var(--source-text-orange,var(--amber))}
.source-layout .dialog.core-task-dialog{width:512px;max-width:min(512px,96vw)}

/* Source-observed record details: order and inbound use different side columns. */
.core-record-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px;min-width:0}.core-record-heading>div:first-child{min-width:0}.core-record-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.core-record-title h1{margin:0;font-size:30px;line-height:37.5px;letter-spacing:-1px;font-weight:700}.core-record-title .core-detail-badges{margin:0;align-items:center;gap:6px}.core-record-title .core-urgent{margin:0}.core-record-heading>div>p{margin:8px 0 0;font-size:13.5px;line-height:20.25px;color:var(--muted)}.core-record-heading .heading-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.core-record-detail>.core-breadcrumb{margin-bottom:14px}.core-record-detail .core-detail-grid{grid-template-columns:minmax(0,1fr);gap:20px}.core-record-inbound .core-detail-grid{gap:16px}.core-record-detail .core-detail-grid>aside{display:block}.core-record-detail .core-panel{padding:16px;margin:0 0 16px}.core-record-detail .core-panel h2{font-size:14.5px;line-height:21.75px}.core-record-detail .core-panel>header{margin-bottom:14px}.core-record-detail .core-dl{grid-template-columns:72px minmax(0,1fr);font-size:13.5px;line-height:20.25px;gap:10px 12px}.core-record-order .core-record-items{border:0;padding:0;background:transparent;border-radius:0;margin-bottom:20px}.core-record-order .core-record-items>.core-table-scroll{border:1px solid var(--border)}.core-record-order .core-record-items table{min-width:760px}.core-record-order .core-record-items td{padding:6px 12px;white-space:normal}.core-record-inbound .core-record-items{padding:0;overflow:hidden}.core-record-inbound .core-record-items>header{padding:12px 16px;border-bottom:1px solid var(--border);margin:0}.core-record-inbound .core-record-items>.core-table-scroll{border-radius:0}.core-record-inbound .core-record-items table{min-width:580px}.core-record-inbound .core-record-items td{padding:8px 12px}.core-record-metrics{margin:20px 0;grid-template-columns:repeat(2,minmax(0,1fr))}.core-record-metrics .core-kpi{min-height:100px}
.core-order-progress{border:1px solid var(--border);border-radius:8px;margin:20px 0;overflow:hidden}.core-order-flow{padding:16px 12px;margin:0;border:0;border-radius:0;background:transparent;align-items:flex-start;overflow:visible}.core-order-flow>li{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:0;text-align:center;color:var(--faint);font-size:12px;font-weight:400}.core-order-flow>li>i{position:absolute;right:50%;top:11px;width:100%;height:1px;background:var(--border)}.core-order-flow>li>b{position:relative;z-index:1;width:23px;height:23px;border:1px solid var(--border);border-radius:50%;font-size:11.5px;line-height:1;background:var(--surface);color:var(--faint)}.core-order-flow>li>b .icon{width:12px;height:12px}.core-order-flow>li>span{margin-top:6px;line-height:18px}.core-order-flow>li>small{font-size:11px;line-height:16.5px;color:var(--source-text-yellow,#a77a14)}.core-order-flow>li.done>i,.core-order-flow>li.current>i{background:var(--ink)}.core-order-flow>li.done>b{background:var(--ink);color:var(--surface);border-color:var(--ink)}.core-order-flow>li.done>span{color:var(--ink);font-weight:400}.core-order-flow>li.current>b{background:var(--surface);color:var(--ink);border-color:var(--ink)}.core-order-flow>li.current>span{color:var(--ink);font-weight:600}.core-order-progress-info{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;padding:10px 16px;border-top:1px solid var(--border);background:var(--soft);font-size:13px;line-height:19.5px;color:var(--muted)}.core-order-progress-info.late{color:var(--source-text-red,var(--red))}.core-inbound-flow{border:0;border-radius:0;background:transparent;margin:16px 0 20px;padding:0;gap:4px;overflow:auto;align-items:center}.core-inbound-flow>li{flex:0 0 auto;min-width:0;gap:4px;font-size:12.5px;color:var(--faint);font-weight:400}.core-inbound-flow>li>i{display:block;width:32px;height:1px;background:var(--border)}.core-inbound-flow>li>span{display:flex;align-items:center;gap:6px;border-radius:999px;padding:2px 8px;line-height:18.75px}.core-inbound-flow b{width:auto;height:auto;border:0;background:none!important;color:inherit!important;font-size:11px;line-height:18.75px;font-weight:500}.core-inbound-flow>li.current>span{background:var(--ink);color:var(--surface);font-weight:500}.core-inbound-flow>li.done{color:var(--ink)}
.source-layout .dialog.core-order-edit-dialog{width:512px;max-width:min(512px,96vw)}.core-order-edit-dialog .dialog-header{padding:16px 20px 8px;min-height:48px;align-items:flex-start;border-bottom:0}.core-order-edit-dialog .dialog-header h2{font-size:16px;line-height:24px}.core-order-edit-dialog .dialog-body{padding:20px}.core-order-edit-dialog .core-form-grid{gap:12px}.core-order-edit-dialog .core-field{font-size:12.5px;line-height:18.75px;gap:6px}.core-order-edit-dialog .core-field>.control{height:32px;font-size:13.5px;padding:0 10px}.core-order-edit-dialog .core-field>small{font-size:12px;line-height:18px}.core-order-edit-dialog .core-urgent-switch{align-self:end;min-height:32px;color:var(--ink);font-size:12.5px}.core-order-edit-dialog .core-urgent-switch>span{display:inline}.core-order-edit-dialog .dialog-footer{padding:12px 20px}
.core-inbound-edit .core-panel{padding:16px}.core-inbound-edit .core-panel>header{margin-bottom:14px}.core-inbound-edit .core-form-grid{gap:14px 16px}.core-inbound-edit .core-field>.control{height:32px}.core-inbound-edit textarea.control{height:auto;min-height:76px}.core-inbound-edit .core-create-footer{padding-top:0}
@media(min-width:1024px){.core-record-order .core-detail-grid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}.core-record-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1280px){.core-record-inbound .core-detail-grid{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:640px){.core-record-heading{align-items:flex-start;flex-direction:column;gap:12px}.core-record-heading .heading-actions{justify-content:flex-start}.core-record-title h1{font-size:25px;line-height:32px}.core-record-detail .core-panel{padding:14px}.core-record-order .core-record-items,.core-record-inbound .core-record-items{padding:0}.core-record-inbound .core-record-items>header{padding:12px 14px}.core-record-metrics .core-kpi{min-height:86px}.core-order-flow{padding:16px 8px}.core-order-flow>li{min-width:0;font-size:11px}.core-order-flow>li>span{white-space:nowrap}.core-order-flow>li>small{font-size:10px}.core-inbound-flow>li{min-width:0}.core-inbound-flow>li>i{width:16px}.core-order-edit-dialog .core-form-grid{grid-template-columns:minmax(0,1fr);gap:12px}.core-order-edit-dialog .core-field{min-width:0}.core-order-edit-dialog .core-span{grid-column:1}.core-inbound-edit .core-form-grid{grid-template-columns:minmax(0,1fr)}}

/* Source order editor uses a borderless 512px panel and 24px close control. */
.source-layout .dialog.core-order-edit-dialog{border:0}.core-order-edit-dialog .dialog-header>.icon-btn{width:24px;height:24px;min-height:24px;padding:4px}

/* Source task editor: subtitle belongs to its header, with full-width type/title rows. */
.source-layout .dialog.core-task-dialog{border:0;border-radius:12px}.core-task-dialog .dialog-header{padding:16px 20px 8px;align-items:flex-start;border:0;gap:12px}.core-task-dialog .dialog-header>div{flex:1;min-width:0}.core-task-dialog .dialog-header h2{font-size:16px;line-height:24px}.core-task-dialog .dialog-header .core-muted{font-size:13px;line-height:21.125px;margin:4px 0 0}.core-task-dialog .dialog-header>.icon-btn{width:24px;height:24px;min-height:24px;padding:4px;margin-right:-4px}.core-task-dialog .dialog-body{padding:12px 20px}.core-task-dialog .core-form-grid{gap:12px}.core-task-dialog .core-field{font-size:12.5px;line-height:18.75px;gap:4px}.core-task-dialog .core-field>.control{height:32px;font-size:13.5px;padding:0 10px}.core-task-dialog .dialog-footer{padding:12px 20px}

/* Requests have their own source-observed conversation and 640px card view. */
.core-request-detail .core-detail-grid{grid-template-columns:minmax(0,1fr);gap:20px}.core-request-detail .core-detail-grid>aside{display:block}.core-request-detail .core-panel{padding:16px}.core-request-detail .core-panel h2{font-size:14.5px;line-height:21.75px}.core-request-detail h1,.core-request-detail .core-conversation article p{overflow-wrap:anywhere}.core-request-detail #core-reply{display:block}.core-reply-compose{display:flex;min-width:0;align-items:flex-end;gap:8px;border:1px solid var(--ink);border-radius:12px;padding:8px}.core-reply-compose>.control{flex:1;min-width:0;width:0;height:34px;min-height:34px;padding:6px;font-size:13.5px;line-height:21.9375px;border:0;border-radius:0;box-shadow:none;background:transparent;resize:vertical}.core-reply-compose>.btn{height:28px;min-height:28px;border-radius:6px;font-size:13px;line-height:20px;font-weight:400;padding:0 9px;gap:5px;flex-shrink:0;background:var(--surface);color:var(--ink)}.core-reply-compose>.btn .icon{width:14px;height:14px}.core-request-detail #core-reply>.core-muted{margin:8px 0 0}.core-request-controls{display:flex;flex-direction:column;gap:16px;font-size:12.5px;line-height:18.75px}.core-request-assignee>div{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px}.core-request-assignee>div>.btn{height:18px;font-size:12px;line-height:18px;font-weight:400}.core-request-assignee>.control{width:100%;height:32px;font-size:13.5px}.core-request-urgency>span{display:block;margin-bottom:4px}.core-request-priority{display:inline-flex;padding:2px;background:var(--soft);border-radius:6px;gap:0}.core-request-priority>.btn{border:0;border-radius:5px;height:24px;min-height:24px;font-size:12px;line-height:18px;font-weight:400;padding:0 8px;background:transparent;color:var(--muted)}.core-request-priority>.btn.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px #0001}.core-request-detail .core-dl{font-size:12.5px;line-height:18.75px;gap:10px 12px}.core-request-detail .core-dl dd{overflow-wrap:anywhere}.core-request-cards{display:none}
@media(min-width:1024px){.core-request-detail .core-detail-grid{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:639.98px){.core-request-detail h1{font-size:26px;line-height:32.5px}.core-table-requests>.core-table-scroll{display:none}.core-request-cards{display:block;border:1px solid var(--border);border-radius:8px;overflow:hidden}.core-request-card{display:block;padding:12px 14px;border-bottom:1px solid var(--border);color:var(--ink)}.core-request-card:last-child{border-bottom:0}.core-request-card-top{display:flex;align-items:center;gap:6px;min-width:0}.core-request-card-top>strong{font-size:14px;line-height:21px;font-weight:500;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.core-request-card-top>.status{flex-shrink:0}.core-request-card .status,.core-request-card-urgent{font-size:12px;line-height:17px;height:21px;padding:2px 6px;border-radius:4px;white-space:nowrap}.core-request-card-urgent{color:var(--source-text-red,var(--red));background:var(--status-red-bg,#fdebec);font-size:12px}.core-request-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:6px;font-size:12px;line-height:18px;color:var(--muted)}}

.core-request-detail #core-reply .core-reply-compose>textarea.control{width:0;height:34px;min-height:34px;margin-bottom:0}

/* B2B registration shares canonical order state but has observed compact form panels. */
.core-task .core-task-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px}
.core-task .core-task-reference{font:11.5px/17.25px ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--muted);text-decoration:underline;text-decoration-color:var(--border);text-underline-offset:2px;overflow-wrap:anywhere}
.core-task a.core-task-reference:hover{color:var(--ink)}.core-task .core-task-reference.is-unresolved{text-decoration:none}
.core-b2b-create .core-panel{padding:0;border-radius:8px;overflow:hidden}.core-b2b-create .core-panel>header{padding:12px 16px;border-bottom:1px solid var(--border);margin:0}.core-b2b-create .core-panel>header h2{font-size:14.5px;line-height:21.75px;margin:0}.core-b2b-panel-body{padding:16px;min-width:0}.core-b2b-panel-note{font-size:12.5px;line-height:18.75px;color:var(--muted);margin:0 0 12px}.core-b2b-create .core-field>.control{height:32px;min-height:32px;font-size:13.5px;line-height:20.25px;padding:0 10px}.core-b2b-create select[name="owner"],.core-b2b-create select[name="warehouse"]{max-width:224px;width:100%}.core-b2b-create .core-field>textarea.control{height:64px;min-height:64px;padding:8px 10px}.core-b2b-create .core-item-search>.control{height:32px;font-size:13.5px}.core-b2b-create .core-panel .core-create-lines input.control{height:32px}

/* Source-observed request analysis: independent cards, six-pixel ranked bars. */
.core-request-analytics{min-width:0;margin-top:32px}.core-request-analytics>h2{font-size:15px;line-height:22.5px;font-weight:600;color:var(--strong,var(--ink));margin:0 0 8px}.core-request-analytics-grid{display:grid;min-width:0;grid-template-columns:minmax(0,1fr);gap:16px}.core-request-chart{min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--surface);overflow:hidden}.core-request-chart>header{min-width:0;border-bottom:1px solid var(--border);padding:12px 16px}.core-request-chart h3{font-size:14.5px;line-height:21.75px;font-weight:600;color:var(--strong,var(--ink));margin:0}.core-request-chart>header>p{font-size:12.5px;line-height:18.75px;color:var(--muted);margin:2px 0 0;overflow-wrap:anywhere}.core-request-chart-body{min-width:0;padding:16px}.core-request-chart ul{list-style:none;padding:0;margin:0;min-width:0}.core-request-chart li{min-width:0;margin-top:10px}.core-request-chart li:first-child{margin-top:0}.core-request-rank-line{display:flex;min-width:0;align-items:baseline;justify-content:space-between;gap:12px;font-size:13px;line-height:19.5px;color:var(--ink);margin-bottom:4px}.core-request-rank-line>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.core-request-rank-value{flex-shrink:0;white-space:nowrap;font-variant-numeric:tabular-nums}.core-request-rank-value>small{font-size:11.5px;line-height:17.25px;color:var(--faint);margin-left:6px}.core-request-rank-track{width:100%;height:6px;overflow:hidden;border-radius:999px;background:var(--soft)}.core-request-rank-track>i{display:block;height:100%;border-radius:999px}.core-request-rank-note{font-size:11.5px;line-height:17.25px;color:var(--faint);margin:2px 0 0}.core-request-analysis-empty{font-size:12.5px;line-height:18.75px;color:var(--muted);padding:12px 0;text-align:center}
@media(min-width:1024px){.core-request-analytics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Verified request detail: compact progress, origin-aware conversation and editable processing information. */
.core-request-heading{margin:0 0 20px}.core-request-heading h1{font-size:30px;line-height:37.5px;letter-spacing:-.02em;color:var(--strong,var(--ink));font-weight:700;margin:0;overflow-wrap:anywhere}.core-request-heading>div>p.core-request-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px;line-height:22.75px;margin:6px 0 0}.core-request-meta .core-urgent{margin:0}.core-request-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.core-request-heading .heading-actions{gap:8px}.core-request-heading .heading-actions>.btn{height:32px;min-height:32px;padding:0 12px;font-size:13.5px}.core-request-heading .heading-actions>.btn.danger{color:var(--source-text-red,var(--red));border-color:var(--status-red-border,#efc9c7);background:var(--surface)}.core-request-flow{display:flex;align-items:center;gap:4px;min-width:0;overflow-x:auto;list-style:none;margin:0 0 20px;padding:0}.core-request-flow>li{display:flex;align-items:center;gap:4px;flex-shrink:0;font-size:12.5px;line-height:18.75px;color:var(--faint)}.core-request-flow>li>i{height:1px;width:32px;background:var(--border);display:block}.core-request-flow>li>span{display:flex;align-items:center;gap:6px;padding:2px 8px;border-radius:999px}.core-request-flow b{display:grid;place-items:center;flex-shrink:0;box-sizing:border-box;height:16px;width:16px;border:1px solid var(--border);border-radius:50%;font-size:10px;line-height:1;font-weight:400}.core-request-flow .current>span{background:var(--strong,var(--ink));color:var(--surface);font-weight:500}.core-request-flow .current b{border-color:transparent;background:#ffffff30}.core-request-flow .done{color:var(--ink)}.core-request-flow .done b{background:var(--ink);color:var(--surface);border-color:var(--ink)}.core-request-flow .done>i,.core-request-flow .current>i{background:var(--ink)}.core-request-overdue{border-radius:8px;background:var(--status-red-bg,#fdebec);padding:12px 14px;margin:0 0 16px;font-size:13.5px;line-height:21.9375px;color:var(--ink);overflow-wrap:anywhere}.core-request-detail .core-panel{padding:0;border-radius:8px;margin:0 0 16px;overflow:hidden}.core-request-detail .core-panel>header{padding:12px 16px;border-bottom:1px solid var(--border);margin:0}.core-request-detail .core-panel>header p{font-size:12.5px;line-height:18.75px;margin:2px 0 0}.core-request-conversation-body{padding:16px;min-width:0}.core-request-messages{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px;min-width:0}.core-request-message{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.core-request-message.is-warehouse{align-items:flex-end}.core-request-message-meta{display:flex;align-items:center;gap:6px;max-width:100%;padding:0 4px;margin:0 0 4px;font-size:12px;line-height:18px;min-width:0}.core-request-message.is-warehouse .core-request-message-meta{flex-direction:row-reverse}.core-request-message-meta>b{font-size:12px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.core-request-message-meta>span{font-size:11px;line-height:16.5px;padding:0 4px;background:var(--soft);border-radius:3px;color:var(--muted);flex-shrink:0}.core-request-message-meta>time{color:var(--faint);font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0}.core-request-message-bubble{max-width:min(560px,92%);min-width:0;box-sizing:border-box;border-radius:12px 12px 12px 2px;background:var(--soft);padding:10px 14px;overflow-wrap:anywhere;white-space:pre-wrap}.core-request-message.is-warehouse .core-request-message-bubble{border-radius:12px 2px 12px 12px;background:var(--press,var(--soft))}.core-request-message-bubble>small{display:block;font-size:11.5px;line-height:17.25px;color:var(--faint);margin-bottom:4px}.core-request-message-bubble>p{font-size:13.5px;line-height:21.9375px;color:var(--ink);margin:0}.core-request-detail #core-reply{margin-top:20px}.core-request-detail .core-reply-compose{border-color:var(--border)}.core-request-detail .core-reply-compose:focus-within{border-color:var(--ink)}.core-request-detail .core-reply-compose>.control{resize:none;max-height:160px}.core-request-detail .core-reply-compose>.btn{border:1px solid var(--border);font-weight:500}.core-request-detail .core-reply-compose>.btn.primary{background:var(--strong,var(--ink));color:var(--surface);border-color:var(--strong,var(--ink))}.core-request-detail .core-reply-compose>.btn:disabled{opacity:.55;cursor:not-allowed}.core-request-detail #core-reply>.core-muted{margin:4px 4px 0;font-size:11.5px;line-height:17.25px;color:var(--faint)}.core-request-controls{padding:16px;min-width:0}.core-request-due{display:block;min-width:0}.core-request-due>span{display:block;margin-bottom:4px;color:var(--muted);font-weight:500}.core-request-due>.control{width:100%;min-width:0;height:32px;font-size:13.5px}.core-request-detail .core-dl{grid-template-columns:minmax(84px,auto) minmax(0,1fr);border-top:1px solid var(--border);padding-top:12px;font-size:13.5px;line-height:20.25px;gap:8px 16px}.core-request-closed{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;padding:0 4px;color:var(--muted);font-size:12.5px;line-height:18.75px}
@media(max-width:639.98px){.core-request-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}.core-request-heading h1{font-size:26px;line-height:32.5px}.core-request-heading .heading-actions{justify-content:flex-start}.core-request-flow>li>i{width:16px}.core-request-message-bubble{max-width:92%}.core-request-message-meta{gap:4px}.core-request-message-meta>time{font-size:11px}.core-request-detail .core-dl{gap:8px 12px}}
.source-layout .dialog.core-request-dialog{width:672px;max-width:calc(100vw - 32px);max-height:92dvh;border-radius:12px;display:flex;flex-direction:column;overflow:hidden}.core-request-dialog .dialog-header{flex-shrink:0;align-items:flex-start;padding:16px 20px 8px;border-bottom:0}.core-request-dialog .dialog-header h2{font-size:16px;line-height:24px;font-weight:600}.core-request-form-subtitle{margin:4px 0 0;font-size:13px;line-height:21.125px;color:var(--muted)}.core-request-dialog .dialog-body{padding:12px 20px;min-height:0;overflow-y:auto}.core-request-dialog .dialog-footer{padding:12px 20px;flex-shrink:0;background:var(--soft);border-top:1px solid var(--border)}.core-request-dialog .dialog-footer>.btn{height:32px;min-height:32px;font-size:13.5px}.core-request-form-fields{display:flex;flex-direction:column;gap:16px;min-width:0}.core-request-form-fields .core-field{font-size:12.5px;gap:4px;min-width:0}.core-request-form-fields .core-field>span{color:var(--muted)}.core-request-form-fields .core-field .control{height:32px;font-size:13.5px;padding:0 10px}.core-request-form-fields .core-field textarea.control{height:auto;min-height:80px;padding:8px 10px;line-height:21.9375px}.core-request-owner{width:240px;max-width:100%}.core-request-types{margin:0;padding:0;border:0;min-width:0}.core-request-types>legend{font-size:12.5px;line-height:18.75px;font-weight:500;color:var(--muted);padding:0;margin-bottom:6px}.core-request-types>legend>b{color:var(--source-text-red,var(--red))}.core-request-types>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.core-request-types button{min-width:0;text-align:left;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--ink);padding:10px 12px;cursor:pointer;overflow-wrap:anywhere}.core-request-types button:hover{background:var(--soft)}.core-request-types button.active{border-color:var(--ink);background:var(--soft)}.core-request-types button>strong{font-size:13.5px;line-height:20.25px;font-weight:600;color:var(--strong,var(--ink));display:block}.core-request-types button>small{display:block;margin-top:2px;font-size:12px;line-height:16.5px;color:var(--muted)}.core-request-reference-field{min-width:0}.core-request-reference-field>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:4px}.core-request-reference-field>div:first-child>span{font-size:12.5px;line-height:18.75px;font-weight:500;color:var(--muted)}.core-request-reference-picker{border:1px solid var(--border);border-radius:6px;overflow:hidden;min-width:0}.core-request-reference-picker>div:first-child{padding:6px;border-bottom:1px solid var(--border)}.core-request-reference-picker .control{width:100%;height:32px;min-width:0;font-size:13.5px}.core-request-reference-picker #core-request-reference-results{max-height:192px;padding:4px;overflow-y:auto;min-width:0}.core-request-reference-picker button{display:flex;align-items:center;gap:12px;width:100%;min-width:0;border:0;border-radius:6px;background:var(--surface);color:var(--ink);padding:6px 8px;text-align:left;cursor:pointer}.core-request-reference-picker button:hover,.core-request-reference-picker button.active{background:var(--soft)}.core-request-reference-picker button>strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12.5px;line-height:18.75px;font-weight:500;max-width:60%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}.core-request-reference-picker button>span{font-size:12px;line-height:18px;color:var(--muted);white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.core-request-reference-picker .core-muted{margin:8px}.core-request-form-bottom{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px 24px;min-width:0}.core-request-form-bottom>.core-field .control{width:160px;max-width:100%}.core-request-form-bottom small{font-size:12px;color:var(--faint);line-height:18px}.core-request-form-urgency>span{display:block;font-size:12.5px;font-weight:500;color:var(--muted);margin-bottom:4px}.core-request-form-urgency>label{height:32px;display:flex;align-items:center;gap:8px;font-size:13.5px;cursor:pointer}.core-request-form-urgency input{appearance:none;width:32px;height:18px;flex-shrink:0;border-radius:999px;position:relative;background:var(--border);cursor:pointer;margin:0}.core-request-form-urgency input:after{content:'';position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0002;transition:transform .12s}.core-request-form-urgency input:checked{background:var(--ink)}.core-request-form-urgency input:checked:after{transform:translateX(14px)}.core-request-form-urgency input:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
@media(max-width:639.98px){.source-layout .dialog.core-request-dialog{width:100%;max-width:100%;max-height:92dvh;border-radius:12px 12px 0 0;margin:auto 0 0}.core-request-owner{width:100%}.core-request-types>div{grid-template-columns:repeat(2,minmax(0,1fr))}.core-request-dialog .dialog-header{padding-left:20px;padding-right:20px}.core-request-form-bottom>.core-field{max-width:100%}}

/* Source stock availability: safety quantity at the middle of an84px track. */
.core-stock-available{width:84px;margin-left:auto;text-align:right}.core-stock-available>strong{display:block;font-size:13.5px;line-height:20.25px;font-weight:500;color:var(--strong,var(--ink))}.core-stock-available.is-low>strong{color:var(--source-text-orange,#c4610b)}.core-stock-safety-track{position:relative;width:100%;height:4px;margin-top:4px;border-radius:999px;overflow:hidden;background:var(--soft)}.core-stock-safety-track>i{display:block;height:100%;border-radius:999px;background:#e1904a}.core-stock-available.is-low .core-stock-safety-track>i{background:var(--source-text-orange,#c4610b)}.core-stock-safety-track>b{position:absolute;top:0;bottom:0;left:50%;width:1px;background:var(--control-border,var(--border))}

/* Source-native hint targets and adjacent task controls. */
.core-request-stale{color:var(--source-text-red,#c4423d);font-weight:500}.core-task-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;margin-top:8px}.core-task-footer>small{font-size:12.5px;line-height:18.75px;color:var(--muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.core-task-moves{display:flex;align-items:center;gap:2px;flex-shrink:0}.core-task-moves .btn.core-task-step{display:inline-flex;width:24px;height:24px;min-height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted)}.core-task-moves .btn.core-task-step:hover{background:var(--soft);color:var(--ink)}.core-task-step .icon{width:14px;height:14px}.core-task-step.is-back .icon{transform:rotate(180deg)}
@media(min-width:768px){.core-task-moves{opacity:0}.core-task:hover .core-task-moves,.core-task:focus-within .core-task-moves{opacity:1}}

/* Serial order details and its source-observed multiline editor. */
.core-order-serials{list-style:none;margin:0;padding:0}.core-order-serials>li{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border)}.core-order-serials>li:last-child{border-bottom:0}.core-order-serials>li>div{flex:1;min-width:0}.core-order-serials strong{font-size:13.5px;font-weight:500}.core-order-serials p{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 0;font-size:12.5px}.core-order-serial-value{font-family:monospace;overflow-wrap:anywhere}.core-order-serial-count{font-size:12.5px;color:var(--muted);white-space:nowrap}.core-order-serial-count.is-complete{color:var(--source-text-green,#4e936f)}.core-order-scan-warning{color:var(--source-text-orange,#c4610b)}.core-order-scan-note{display:block;margin-top:3px;color:var(--muted);font-size:12px}.core-order-serial-dialog{width:min(512px,calc(100vw - 32px))}.core-order-serial-dialog .dialog-header{align-items:flex-start}.core-order-serial-intro{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.6}.core-order-serial-text{display:block;min-height:160px;width:100%;font-family:monospace;resize:vertical}.core-order-serial-counter{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:8px;color:var(--muted);font-size:12.5px}#core-order-serial-duplicates{color:var(--source-text-orange,#c4610b)}
@media(max-width:600px){.core-order-serials>li{flex-wrap:wrap}.core-order-serials>li>div{flex-basis:calc(100% - 76px)}.core-order-serial-dialog{width:100%;max-width:100%;max-height:92dvh;border-radius:12px 12px 0 0;margin:auto 0 0}}

.core-tracking-barcode{min-width:0;max-width:100%}.core-tracking-barcode .x-doc-barcode{display:block;width:100%;height:64px;max-width:100%}

.core-order-movements{list-style:none;padding:0;margin:0}.core-order-movements li{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:10px 16px;border-bottom:1px solid var(--border);font-size:12.5px}.core-order-movements li:last-child{border-bottom:0}

/* Source-observed related-order and linked return rows; no additional business records. */
.core-record-detail .core-panel.core-order-related{min-width:0;padding:0;overflow:hidden}.core-order-related>header{padding:12px 16px;border-bottom:1px solid var(--border);margin-bottom:0!important}.core-related-orders{min-width:0;padding:12px 16px}.core-related-order-label{margin-bottom:6px;font-size:12px;line-height:18px;font-weight:500;color:var(--muted)}.core-related-orders ul,.core-related-returns{list-style:none;padding:0;margin:0}.core-related-orders li{display:flex;min-width:0;align-items:center;gap:8px;font-size:13px;line-height:19.5px}.core-related-orders li+li{margin-top:6px}.core-related-order-link{flex-shrink:0;font-size:13px;font-weight:500;color:var(--ink);text-decoration:none}.core-related-order-link:hover{text-decoration:underline}.core-related-order-link:focus-visible,.core-related-returns a:focus-visible{outline:2px solid var(--ink);outline-offset:2px}.core-related-order-summary{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.core-related-orders .status,.core-related-returns .status{flex-shrink:0;white-space:nowrap}.core-related-returns.has-orders{border-top:1px solid var(--border)}.core-related-returns>li+li{border-top:1px solid var(--border)}.core-related-returns a{display:flex;min-width:0;align-items:center;gap:8px;padding:10px 16px;font-size:13px;line-height:19.5px;color:var(--ink);text-decoration:none}.core-related-returns a:hover{background:var(--hover,var(--soft))}.core-related-returns a>span:first-child{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.core-related-external{width:12px;height:12px;flex-shrink:0;color:var(--faint)}
