/* Shared operational interface. Scoped away from access and the driver portal. */
/* Dense report header uses the same readable canvas as its register. */
.desk-shell[data-page=materials] .page-head{background:none;border:0;border-left:0;box-shadow:none;min-height:0;padding:0;margin-bottom:10px}.desk-shell[data-page=materials] .page-head h2{color:#143743}.desk-shell[data-page=materials] .page-head p{color:#506874}
/* Rows stay still under the pointer; scrolling never animates row geometry. */
.desk-shell .data-table tbody tr,.desk-shell .data-table tbody tr:hover{transform:none;transition:background-color .12s linear}
.desk-shell .content,.desk-shell .table-wrap{overflow-anchor:none;scrollbar-gutter:stable;overscroll-behavior:contain}
.desk-shell .data-table.grid-compact td{padding:4px 8px;line-height:1.25;font-size:12px}
.desk-shell .data-table.grid-compact td small{display:block;font-size:10px;margin-top:1px;line-height:1.2}
@media(min-width:761px){
 .desk-shell .content[data-grid-register]{display:flex;flex-direction:column;overflow:hidden}
 .desk-shell .content[data-grid-register]>.page-head{flex-shrink:0}
 .desk-shell .content[data-grid-register]>.catalog-panel,.desk-shell .content[data-grid-register] .catalog-result,.desk-shell .content[data-grid-register] .table-card{display:flex;flex-direction:column;flex:1;min-height:0}
 .desk-shell .content[data-grid-register]>.catalog-panel{padding:0;overflow:hidden}
 .desk-shell .content[data-grid-register] .catalog-toolbar,.desk-shell .content[data-grid-register] .catalog-count,.desk-shell .content[data-grid-register] .report-pagination{flex-shrink:0}
 .desk-shell .content[data-grid-register] .table-wrap{min-height:0;flex:1;height:auto;max-height:none;overflow:auto}
}
.desk-shell {
  --ink:#143743; --muted:#506874; --line:#d8e2e7; --canvas:#f3f6f8;
  --desktop-action:#006f83; --desktop-header:#123d4c;
  grid-template-columns:208px minmax(0,1fr); height:100dvh; min-height:0;
  overflow:hidden; background:var(--canvas); color:var(--ink);
}
.desk-shell *, .order-workbench * { scrollbar-color:#b8c9d1 transparent; scrollbar-width:thin; }
.desk-shell .admin-main { height:100dvh; min-height:0; display:flex; flex-direction:column; background:var(--canvas); }
.desk-shell .desk-sidebar.sidebar { width:208px; background:#fff; border-right:1px solid var(--line); }
.desk-shell .desk-sidebar .desk-brand { height:68px; flex-basis:68px; padding:13px 16px 9px; }
.desk-shell .desk-brand>span { margin-top:5px; font-size:9px; letter-spacing:.11em; color:#506874; }
.desk-shell .desk-nav.nav { padding:10px 10px; }
.desk-shell .desk-nav-group+.desk-nav-group { margin-top:15px; }
.desk-shell .desk-nav-group>p { margin:0 10px 6px; font-size:9px; letter-spacing:.1em; color:#536d79; }
.desk-shell .desk-nav.nav button { min-height:34px; padding:7px 10px; margin:1px 0; border-radius:4px; font-size:12px; color:#385562; line-height:1.25; }
.desk-shell .desk-nav.nav button svg { width:17px; height:17px; color:#55737f; }
.desk-shell .desk-nav.nav button.active { background:#e8f3f6; color:#005c73; font-weight:700; }
.desk-shell .desk-nav.nav button.active svg { color:#006e85; }
.desk-shell .desk-nav.nav button.active:before { left:-10px; top:7px; bottom:7px; width:3px; background:#0087a0; }
.desk-shell .desk-environment { padding:9px 16px; font-size:10px; }
.desk-shell .desk-sidebar .sidebar-foot { padding:10px 12px; background:#f6f9fa; }
.desk-shell .desk-sidebar .sidebar-foot strong { font-size:11px; color:#173e4c; }
.desk-shell .desk-sidebar .sidebar-foot span { font-size:10px; color:#506874; }
.desk-shell .desk-topbar.topbar { height:54px; min-height:54px; flex-shrink:0; padding:0 18px; gap:16px; align-items:center; box-shadow:none; }
.desk-shell .desk-breadcrumb { min-width:0; flex:1; gap:9px; }
.desk-shell .desk-breadcrumb>span { display:none; }
.desk-shell .desk-breadcrumb h1 { font-size:14px; font-weight:650; color:#163e4d; line-height:1.3; }
.desk-shell .desk-breadcrumb .panel-toggle { width:30px; height:30px; min-height:30px; color:#526f7d; }
.desk-shell .workspace-bar { padding:0; min-height:54px; border:0; align-self:stretch; flex-shrink:0; background:none; }
.desk-shell .workspace-tabs { gap:18px; }
.desk-shell .workspace-tabs>button { padding:0 3px; font-size:12px; color:#4f6976; gap:7px; }
.desk-shell .workspace-tabs>button.active { color:#006b83; }
.desk-shell .workspace-tabs>button.active:after { height:3px; border-radius:0; }
.desk-shell .workspace-tabs svg { width:16px; height:16px; }
.desk-shell .workspace-live { display:none; }
.desk-shell .desk-top-actions { gap:12px; }
.desk-shell .desk-search-trigger { min-width:0; width:32px; min-height:32px; padding:7px; background:#f5f8fa; border:1px solid #d8e2e7; color:#456674; }
.desk-shell .desk-search-trigger span,.desk-shell .desk-search-trigger kbd { display:none; }
.desk-shell .desk-search-trigger svg { width:16px; height:16px; }
.desk-shell .desk-date { font-size:11px; color:#4f6976; }
.desk-shell .desk-icon-button { width:28px; height:32px; color:#3c6070; }
.desk-shell .content { width:100%; max-width:none; margin:0; min-height:0; flex:1; overflow:auto; padding:16px 20px 20px; animation:none; }
.desk-shell .content>* { animation:none; }
.desk-shell .desk-footer { min-height:26px; padding:6px 20px; flex-shrink:0; background:#fff; font-size:9px; color:#506874; letter-spacing:.03em; }
.desk-shell .production-notice { flex-shrink:0; padding:7px 20px; font-size:11px; line-height:1.4; }
.desk-shell .page-head,.desk-shell .operation-page-head { gap:16px; align-items:center; margin:0 0 12px; }
.desk-shell .page-head h2,.desk-shell .operation-page-head h2 { font-size:23px; line-height:1.2; font-weight:650; letter-spacing:-.025em; margin:0; color:#123d4c; }
.desk-shell .operation-kicker,.desk-shell .page-head .eyebrow { font-size:10px; color:#4c6977; letter-spacing:.075em; }
.desk-shell .operation-page-head .operation-kicker { display:block; margin-bottom:5px; }
.desk-shell .operation-page-head>div>p:empty { display:none; }
.desk-shell .page-head p { margin:4px 0 0; font-size:12px; line-height:1.4; color:#4f6976; }
.desk-shell .operation-head-actions,.desk-shell .row-actions { gap:7px; }
.desk-shell .btn { min-height:34px; padding:7px 12px; font-size:12px; line-height:1.35; border-radius:4px; box-shadow:none; }
.desk-shell .btn.small { min-height:30px; padding:5px 9px; font-size:12px; }
.desk-shell .btn.primary { background:var(--desktop-action); border-color:var(--desktop-action); color:#fff; }
.desk-shell .btn.ghost { color:#284f60; border-color:#bdcdd6; background:#fff; }
.desk-shell .btn.secondary { color:#284f60; border-color:#bdcdd6; background:#fff; }
.desk-shell input,.desk-shell select,.desk-shell textarea { min-height:34px; font-size:13px; border-color:#b9ccd5; border-radius:4px; color:#163d4d; box-shadow:none; }
.desk-shell input::placeholder,.desk-shell textarea::placeholder { color:#5a7380; opacity:1; }
.desk-shell :is(button,a,input,select,textarea,summary):focus-visible { outline:2px solid #00849c; outline-offset:2px; }
.desk-shell .catalog-panel,.desk-shell .table-card,.desk-shell .programme-surface { border:1px solid var(--line); border-radius:5px; box-shadow:none; background:#fff; }
.desk-shell .catalog-toolbar,.desk-shell .programme-toolbar { padding:10px 12px; gap:8px; background:#fff; border-bottom:1px solid var(--line); margin:0; }
.desk-shell .data-table th { padding:9px 10px; font-size:11px; font-weight:600; letter-spacing:0; text-transform:none; line-height:1.35; background:var(--desktop-header); color:#fff; border-bottom:1px solid #123d4c; white-space:normal; }
.desk-shell .data-table th button { color:inherit; font:inherit; line-height:inherit; }
.desk-shell .data-table th:first-child { background:#123d4c!important; color:#fff; }
.desk-shell .data-table th .sort-arrow { color:#c4dbe5; }
.desk-shell .data-table td { padding:8px 10px; font-size:12px; line-height:1.35; color:#173b49; border-bottom:1px solid #e0e8ed; vertical-align:middle; }
.desk-shell .data-table td b { font-weight:600; }
.desk-shell .data-table td small { margin-top:2px; font-size:11px; line-height:1.3; color:#4d6977; }
.desk-shell .data-table tbody tr:nth-child(even) { background:#f6f9fb; }
.desk-shell .data-table tbody tr:hover { background:#eaf4f8; }
.desk-shell .grid-tools { min-height:30px; padding:5px 10px; gap:8px; border-block:0; background:#f8fafb; flex-shrink:0; }
.desk-shell .grid-tools :is(button,summary),.desk-shell .grid-result { font-size:11px; color:#45616f; }
.desk-shell .grid-footer { padding:5px 10px; min-height:32px; flex-shrink:0; background:#fff; font-size:11px; color:#45616f; }
.desk-shell .grid-footer select { min-height:28px; padding:4px 8px; font-size:11px; }
.desk-shell .data-table.grid-compact td { padding:4px 8px; }
.desk-shell .badge,.desk-shell .order-status,.desk-shell .phase-badge { font-size:11px; font-weight:600; border-radius:3px; padding:3px 6px; letter-spacing:0; line-height:1.3; }
.desk-shell .phase-badge { color:#3a5c6a; background:#edf2f5; }
.desk-shell .phase-planta { color:#775511; background:#fff4d8; }
.desk-shell .phase-ruta { color:#00647e; background:#e3f3fa; }
.desk-shell .phase-destino { color:#624984; background:#f0ebfa; }
.desk-shell .phase-entregado { color:#246241; background:#e9f5ee; }
.desk-shell .sap-state { color:#4c6977; font-size:11px; }.desk-shell .sap-state.success { color:#246241; }.desk-shell .sap-state.warn { color:#805011; }
/* One vertical scroller for each desktop register: the rows, not the page. */
@media(min-width:761px){
 .desk-shell .content:has(.abs-workspace,.order-table,.programme-surface) { display:flex; flex-direction:column; overflow:hidden; }
 .desk-shell .orders-workspace,.desk-shell .programme-surface { min-height:0; display:flex; flex-direction:column; flex:1; }
 .desk-shell .orders-workspace>.page-head,.desk-shell .orders-workspace>.catalog-tabs,.desk-shell .order-register-counts,.desk-shell .abs-command-bar,.desk-shell .programme-stages,.desk-shell .programme-caption,.desk-shell .programme-toolbar { flex-shrink:0; }
 .desk-shell .orders-workspace>.order-panel,.desk-shell #ordersResult,.desk-shell #absRows,.desk-shell #programmeResult,.desk-shell .programme-table,.desk-shell .orders-workspace .table-card { display:flex; flex-direction:column; min-height:0; flex:1; }
 .desk-shell .orders-workspace>.order-panel { padding:0; }
 .desk-shell .order-panel>.catalog-toolbar { flex-shrink:0; }
 .desk-shell .orders-workspace .table-wrap,.desk-shell .programme-table .table-wrap { min-height:0; height:auto; max-height:none; flex:1; overflow:auto; border-radius:0; }
 .desk-shell .content>.operation-page-head { flex-shrink:0; }
}
/* Supply: useful numbers first; explanations are available on demand. */
.desk-shell .supply-kpis { margin:0 0 12px; gap:0; background:#fff; border:1px solid var(--line); border-radius:5px; }
.desk-shell .supply-kpis>button { border:0; border-right:1px solid var(--line); border-radius:0; padding:12px 16px; gap:6px 12px; grid-template-columns:1fr auto; }
.desk-shell .supply-kpis>button:first-child { border-top:0; padding-top:12px; }
.desk-shell .supply-kpis>button:last-child { border-right:0; }
.desk-shell .supply-kpis>button>span { font-size:12px; color:#45616f; }
.desk-shell .supply-kpis strong { font-size:28px; font-weight:600; letter-spacing:-.025em; }
.desk-shell .supply-kpis svg { width:16px; color:#5c7c8c; }
.desk-shell .supply-dashboard { grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr); gap:12px; }
.desk-shell .otif-panel { background:#123d4c; border-radius:5px; padding:16px 20px; }
.desk-shell .otif-heading h3 { font-size:18px; font-weight:600; margin:5px 0 0; }
.desk-shell .otif-panel .operation-kicker { color:#c0dae3; }
.desk-shell .metric-period { color:#d3e6ec; font-size:11px; }
.desk-shell .otif-main { margin:14px 0; gap:22px; }
.desk-shell .otif-dial { width:110px; height:110px; padding:6px; }
.desk-shell .otif-dial>div { background:#123d4c; gap:5px; }.desk-shell .otif-dial strong { font-size:31px; font-weight:500; }
.desk-shell .otif-dial span { color:#d1e3eb; font-size:10px; }
.desk-shell .otif-explanation h4 { font-size:18px; font-weight:550; margin:0 0 8px; color:#fff; }
.desk-shell .otif-explanation p { font-size:12px; line-height:1.4; color:#d1e3eb; margin:0 0 8px; }
.desk-shell .otif-formula { font-size:11px; color:#d2edca; }
.desk-shell .otif-breakdown { padding:10px 0; gap:6px; }.desk-shell .otif-breakdown b { font-size:21px; }.desk-shell .otif-breakdown span { font-size:11px; color:#d1e3eb; }
.desk-shell .otif-definition { font-size:11px; color:#d1e3eb; margin-top:9px; line-height:1.5; }.desk-shell .otif-definition p { color:inherit; }
.desk-shell .supply-attention { padding:16px 20px; border-radius:5px; }
.desk-shell .supply-attention h3 { font-size:18px; font-weight:600; max-width:none; margin:5px 0 8px; }
.desk-shell .supply-attention>button { gap:12px; padding:13px 0; }.desk-shell .supply-attention>button>span { gap:0; }
.desk-shell .supply-attention b { font-size:12px; }.desk-shell .supply-attention strong { font-size:24px; font-weight:550; }
.desk-shell .supply-attention small { color:#4f6976; }
.desk-shell .supply-program { margin-top:18px; }.desk-shell .section-heading { margin-bottom:10px; }
.desk-shell .section-heading h3 { font-size:18px; margin:4px 0 0; font-weight:600; }.desk-shell .text-action { color:#006d83; font-size:12px; }
.desk-shell .supply-pipeline { border-radius:5px; padding:0; margin-bottom:10px; }.desk-shell .supply-pipeline>button { padding:10px 14px; gap:4px 7px; }
.desk-shell .supply-pipeline span { color:#486674; font-size:11px; }.desk-shell .supply-pipeline b { font-size:21px; }
.desk-shell .supply-live-list { border-radius:5px; }.desk-shell .supply-live-list>button { padding:10px 14px; gap:14px; grid-template-columns:112px minmax(130px,1fr) 110px 55px 12px; }
.desk-shell .supply-live-list small,.desk-shell .supply-live-list time { color:#4e6b78; font-size:11px; }.desk-shell .supply-live-list>button>div { gap:2px; }
/* Commercial and order register. No oversized summary tiles. */
.desk-shell .date-control { height:34px; border-color:#b9ccd5; }.desk-shell .date-control input { width:127px; font-size:12px; padding:5px; min-height:32px; }.desk-shell .date-control button { width:26px; }
.desk-shell .programme-search { border-color:#c4d3db; background:#fff; padding:0 10px; }.desk-shell .programme-search input { min-height:32px; padding:6px 0; font-size:12px; }
.desk-shell .programme-stages { padding:0; grid-template-columns:repeat(7,minmax(0,1fr)); }
.desk-shell .programme-stages>button { min-width:0; padding:10px 12px; display:flex; gap:7px; flex-wrap:wrap; border-right:1px solid #e2e9ed; align-items:center; }
.desk-shell .programme-stages strong { font-size:22px; color:#264e60; font-weight:550; letter-spacing:-.025em; }
.desk-shell .programme-stages>button>span { flex-basis:100%; font-size:11px; color:#486674; }
.desk-shell .programme-stages>button.active { background:#ebf5f8; }.desk-shell .programme-stages>button.active strong { color:#006c83; }
.desk-shell .programme-caption { min-height:34px; padding:5px 12px; gap:8px; font-size:11px; color:#486674; background:#fff; }
.desk-shell .segmented { background:#edf3f6; padding:2px; }.desk-shell .segmented button { font-size:11px; color:#3f5d6d; padding:5px 10px; min-height:28px; }
.desk-shell .programme-table { margin:0; border:0; border-top:1px solid var(--line); border-radius:0; }
.desk-shell .programme-table .data-table { min-width:1000px; }.desk-shell .programme-table td:nth-child(2) { min-width:195px; }
.desk-shell .programme-open { font-size:12px; color:#006d83; padding:4px 0; }
.desk-shell .journey-mini i { width:9px; background:#ccdbe3; }.desk-shell .journey-mini>span { color:#4d6977; font-size:10px; }
.desk-shell .catalog-empty,.desk-shell .programme-empty { padding:30px 18px; min-height:100px; color:#496875; }.desk-shell .programme-empty h3 { color:#284f60; }.desk-shell .programme-empty p { color:#496875; }
.desk-shell .order-register-counts { padding:10px 12px; margin:0 0 10px; gap:12px 24px; border:1px solid var(--line); border-radius:4px; background:#fff; }
.desk-shell .order-register-counts span { color:#486674; font-size:11px; }.desk-shell .order-register-counts b { font-size:18px; color:#173e4d; margin-right:5px; }
.desk-shell .orders-workspace>.catalog-tabs { gap:18px; margin:0 0 10px; }.desk-shell .catalog-tabs button { font-size:12px; padding:8px 2px; color:#486674; }
.desk-shell .orders-workspace>.catalog-tabs { width:100%; align-items:center; overflow:visible; }
.desk-shell .order-owner-filter { margin-left:auto; display:flex; align-items:center; gap:8px; min-width:0; color:#486674; font-size:12px; padding:0 0 5px; }
.desk-shell .order-owner-filter select { width:300px; max-width:100%; min-height:32px; padding:6px 28px 6px 9px; background-color:#fff; }
.desk-shell .creator-filter { display:flex; align-items:center; gap:7px; min-width:0; font-size:12px; color:#486674; }
.desk-shell .creator-filter select { width:270px; max-width:100%; min-height:32px; padding:6px 28px 6px 9px; background-color:#fff; }
.desk-shell .abs-command-bar,.desk-shell .abs-command-actions { flex-wrap:wrap; }
.desk-shell .audit-toolbar { gap:8px; padding-bottom:10px; }.desk-shell .audit-toolbar h2 { font-size:23px; }
.desk-shell .trip-toolbar { display:flex; flex-wrap:wrap; }.desk-shell .trip-toolbar>.search { flex:1; min-width:180px; }
.desk-shell .tracking-toolbar,.desk-shell .toolbar:has(#programCreator,#assignmentCreator) { display:flex; flex-wrap:wrap; }
.desk-shell .tracking-toolbar>.search,.desk-shell .toolbar:has(#programCreator,#assignmentCreator)>.search { flex:1; min-width:180px; }
.desk-shell .orders-workspace .order-toolbar { grid-template-columns:minmax(200px,1fr) 140px minmax(130px,180px) minmax(130px,160px) auto; }
.desk-shell .order-table { min-width:980px; }.desk-shell .order-table td:nth-child(2) { min-width:200px; }.desk-shell .order-table td .order-status { max-width:none; white-space:nowrap; }
.desk-shell .order-table .order-status.dispatch { color:#315969; background:#eef3f6; }
.desk-shell #ordersResult>.catalog-count { padding:6px 10px; min-height:0; flex-shrink:0; font-size:11px; line-height:1.3; }
.desk-shell .order-company-filter { font-size:12px; color:#486674; }.desk-shell .order-company-filter select { width:86px; min-height:34px; }
/* ABS retains its single-line register and a high-contrast contract on opening. */
.desk-shell .page-head.trip-page-head { padding:0; border:0; border-radius:0; background:none; }
.desk-shell .trip-page-head .row-actions { align-items:flex-end; }
.desk-shell .trip-page-head h2 { font-size:23px; }.desk-shell .trip-page-head p { margin-top:4px; font-size:12px; }
.desk-shell .trip-day-summary { margin:12px 0 8px; border-top:1px solid var(--line); border-radius:5px; }
.desk-shell .trip-day-summary>div { padding:10px 14px; gap:8px; }.desk-shell .trip-day-summary strong { font-size:23px; }.desk-shell .trip-day-summary span { font-size:12px; }
.desk-shell .trip-workflow-note { margin:8px 0 12px; font-size:11px; line-height:1.4; color:#4b6472; }
.desk-shell .trip-draft { margin:0 0 12px; border-radius:5px; box-shadow:none; }
.desk-shell .trip-draft-head { padding:12px 14px; gap:14px; background:#eef4f7; }.desk-shell .trip-time { font-size:20px; }.desk-shell .trip-time small { margin-top:4px; }
.desk-shell .trip-destination h3 { font-size:16px; }.desk-shell .trip-destination p { font-size:12px; }.desk-shell .trip-draft-total strong { font-size:20px; }
.desk-shell .trip-order-list { padding:5px 14px; }.desk-shell .trip-order-row { padding:7px 0; font-size:12px; gap:12px; }
.desk-shell .trip-resource-grid { padding:10px 14px 8px; gap:10px; }.desk-shell .trip-resource-grid label { font-size:11px; gap:5px; }
.desk-shell .trip-draft-actions { padding:9px 14px; gap:7px; }.desk-shell .trip-draft .btn.small { min-height:32px; }
.desk-shell .trip-capacity-line,.desk-shell .trip-observations { margin:4px 14px 10px; font-size:12px; }
.desk-shell .trip-toolbar input,.desk-shell .trip-toolbar select { min-height:34px; }
.desk-shell .content:has(>.abs-workspace) { min-height:0; padding:14px 20px 16px; }
.desk-shell .abs-command-bar { margin-bottom:9px; min-height:34px; gap:10px; }
.desk-shell .abs-queue-tabs button { padding:7px 10px; min-height:34px; font-size:12px; }
.desk-shell .abs-command-actions :is(.btn,select) { min-height:32px; font-size:12px; padding:6px 9px; }
.desk-shell .abs-workspace .abs-toolbar { padding:8px 10px; grid-template-columns:minmax(180px,1fr) 146px minmax(150px,195px) auto; }
.desk-shell .abs-toolbar :is(input,select,.btn) { min-height:34px; padding:6px 9px; font-size:12px; }
.desk-shell .abs-table { table-layout:auto; min-width:1000px; }
.desk-shell .abs-table th { background:#123d4c; color:#fff; padding:9px 10px; font-size:11px; white-space:nowrap; }
.desk-shell .abs-table th:nth-child(1) { width:105px; }.desk-shell .abs-table th:nth-child(2) { width:104px; }.desk-shell .abs-table th:nth-child(3) { width:95px; }.desk-shell .abs-table th:nth-child(4) { width:230px; }.desk-shell .abs-table th:nth-child(5) { width:105px; }.desk-shell .abs-table th:nth-child(6) { width:125px; }.desk-shell .abs-table th:nth-child(7) { width:auto; }.desk-shell .abs-table th:last-child { width:80px; background:#123d4c; }
.desk-shell .abs-table td { height:36px; padding:5px 10px; font-size:12px; line-height:1.3; }
.desk-shell .abs-table .abs-number { font-size:12px; }.desk-shell .abs-table .abs-cell-text { min-width:160px; max-width:340px; }
.desk-shell .abs-table .abs-observation-text { max-width:300px; min-width:100px; }
.desk-shell .abs-table .abs-status { padding:3px 5px; font-size:10px; }
.desk-shell .abs-table .btn { min-height:27px; font-size:11px; padding:4px 8px; }
.desk-shell .abs-table.grid-compact td { height:31px; padding:3px 10px; }
body:has(.desk-shell) .abs-editor-modal .abs-order-facts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; }
body:has(.desk-shell) .abs-editor-modal .abs-order-facts>.wide { grid-column:auto; }
/* Order entry keeps the same fields, quantity conversions, tabs and actions. */
.order-workbench.modal { background:#f4f7f9; grid-template-rows:44px 38px minmax(0,1fr) auto; }
.order-workbench .entry-topbar { background:#fff; padding:0 20px; }.order-workbench .entry-brand>span { color:#3e5c6a; }
.order-workbench .entry-tabs { padding:0 20px; background:#fff; }.order-workbench .entry-tabs h2 { font-size:17px; color:#143e4e; }
.order-workbench .entry-content { background:#fff; }.order-workbench .entry-layout { grid-template-columns:minmax(0,1fr) 232px; }
.order-workbench .entry-section { padding:10px 16px; }.order-workbench .entry-delivery-grid { gap:10px; }
.order-workbench .entry-grid-scroll { overflow:visible; max-height:none; }.order-workbench .order-line { padding-block:6px; }
.order-workbench .entry-material-head { background:#123d4c; color:#fff; padding-block:9px; }.order-workbench .entry-material-head span { color:#fff; }
.order-workbench .entry-summary { background:#f5f8fa; border-left:1px solid #d6e1e7; }.order-workbench .entry-section-heading h3 { font-size:14px; }
.order-workbench .entry-bottom { background:#fff; border-top:1px solid #c7d6df; }.order-workbench .entry-submit.primary { background:#006f83; color:#fff; box-shadow:none; }
.order-workbench .lookup-results button { min-height:35px; }.order-workbench .entry-dropdown { color:#006d83; background:#edf5f8; }
@media(min-width:851px){.desk-shell.sidebar-collapsed { grid-template-columns:0 minmax(0,1fr); }}
@media(max-width:1100px){
 .desk-shell .desk-topbar.topbar { padding:0 14px; gap:12px; }.desk-shell .desk-date { display:none; }.desk-shell .workspace-tabs { gap:12px; }
 .desk-shell .content { padding:14px; }.desk-shell .content:has(>.abs-workspace) { padding:12px 14px; }
 .desk-shell .supply-dashboard { grid-template-columns:minmax(0,1.15fr) minmax(260px,1fr); }.desk-shell .otif-panel,.desk-shell .supply-attention { padding:14px; }
 .desk-shell .otif-main { gap:14px; }.desk-shell .otif-dial { width:96px; height:96px; }.desk-shell .otif-explanation h4 { font-size:16px; }
 .desk-shell .orders-workspace .order-toolbar { grid-template-columns:minmax(180px,1fr) 140px minmax(130px,1fr); }.desk-shell .order-toolbar #orderSort { grid-column:2; }.desk-shell .order-toolbar #refreshOrders { grid-column:3; }
}
@media(max-width:850px){
 .desk-shell { display:block; }.desk-shell .desk-sidebar.sidebar { width:224px; }.desk-shell .desk-sidebar .desk-brand { padding-right:40px; }
 .desk-shell .desk-topbar.topbar { height:auto; min-height:50px; padding:8px 12px 0; flex-wrap:wrap; gap:4px 10px; }.desk-shell .desk-breadcrumb { min-height:32px; }
 .desk-shell .desk-top-actions { gap:8px; }.desk-shell .workspace-bar { order:3; width:100%; min-height:35px; }.desk-shell .workspace-tabs { gap:22px; min-height:35px; }
 .desk-shell .workspace-tabs>button { padding:7px 0; }.desk-shell .supply-dashboard { grid-template-columns:1fr; }.desk-shell .supply-attention { display:block; }
 .desk-shell .supply-attention>button { padding:10px 0; }.desk-shell .supply-attention h3 { margin-bottom:4px; }
 .order-workbench .entry-layout { grid-template-columns:minmax(0,1fr); }.order-workbench .entry-summary { border-left:0; }
}
@media(max-width:760px){
 .desk-shell .content,.desk-shell .content:has(>.abs-workspace) { padding:12px; overflow:auto; }
 .desk-shell .desk-footer { padding:6px 12px; }.desk-shell .desk-footer>span:first-child { display:none; }
 .desk-shell .page-head,.desk-shell .operation-page-head { flex-wrap:wrap; gap:10px; margin-bottom:12px; }.desk-shell .page-head h2,.desk-shell .operation-page-head h2 { font-size:21px; }
 .desk-shell .operation-head-actions { justify-content:flex-start; width:100%; gap:8px; }.desk-shell .supply-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .desk-shell .supply-kpis>button { padding:11px 13px; border-bottom:1px solid var(--line); }.desk-shell .supply-kpis>button:nth-child(2) { border-right:0; }.desk-shell .supply-kpis>button:nth-child(n+3) { border-bottom:0; }
 .desk-shell .supply-kpis strong { font-size:25px; }.desk-shell .otif-panel { padding:16px; }.desk-shell .supply-pipeline { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .desk-shell .supply-live-list>button { grid-template-columns:80px minmax(90px,1fr) 90px; gap:8px; padding:10px; }.desk-shell .supply-live-list>button>time,.desk-shell .supply-live-list>button>span:last-child { display:none; }
 .desk-shell .supply-live-list b,.desk-shell .supply-live-list strong { font-size:11px; }.desk-shell .supply-live-list small { font-size:10px; }
 .desk-shell .programme-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto auto; grid-template-areas:'date owner owner' 'search history export'; padding:9px; }
 .desk-shell .programme-toolbar .date-control { grid-area:date; }.desk-shell .programme-owner { grid-area:owner; }.desk-shell #programmeAll { grid-area:history; }.desk-shell #programmeExport { grid-area:export; }
 .desk-shell .programme-search { grid-area:search; min-width:0; }.desk-shell .programme-search input { width:100%; }
 .desk-shell .programme-stages { grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; }.desk-shell .programme-stages>button { padding:7px 8px; gap:5px; flex-wrap:nowrap; min-height:32px; }.desk-shell .programme-stages strong { font-size:16px; }.desk-shell .programme-stages>button>span { font-size:10px; flex-basis:auto; white-space:normal; }
 .desk-shell .programme-caption { padding:6px 9px; flex-wrap:wrap; }.desk-shell .programme-table .table-wrap { max-height:none; overflow:auto; }
 .desk-shell .orders-workspace>.order-panel { padding:0; }.desk-shell .orders-page-head .row-actions { justify-content:flex-start; flex-wrap:wrap; }
 .desk-shell .order-register-counts { gap:8px 14px; flex-wrap:wrap; padding:9px 10px; }.desk-shell .orders-workspace>.catalog-tabs { gap:10px; flex-wrap:wrap; }
 .desk-shell .order-owner-filter { width:100%; margin-left:0; }.desk-shell .order-owner-filter select { flex:1; width:0; }
 .desk-shell .creator-filter { width:100%; grid-column:1/-1; }.desk-shell .creator-filter select { width:0; flex:1; }.desk-shell .abs-command-actions { width:100%; }.desk-shell .operation-head-actions { flex-wrap:wrap; }
 .desk-shell .programme-toolbar:has(.creator-filter) { grid-template-areas:'date date date' 'owner owner owner' 'search history export'; }.desk-shell .programme-toolbar .creator-filter { grid-area:owner; }
 .desk-shell .orders-workspace .order-toolbar,.desk-shell .abs-workspace .abs-toolbar { grid-template-columns:minmax(0,1fr) minmax(0,1fr); padding:9px; }
 .desk-shell .order-toolbar .search,.desk-shell .abs-toolbar .search { grid-column:1/-1; }.desk-shell .order-toolbar #orderSort,.desk-shell .order-toolbar #refreshOrders { grid-column:auto; }
 .desk-shell .abs-command-bar { flex-wrap:wrap; gap:8px; }.desk-shell .abs-command-actions { margin:0; flex-wrap:wrap; }.desk-shell .abs-queue-tabs button { padding:7px 9px; }
 .desk-shell .abs-workspace .table-wrap { height:auto; min-height:0; max-height:none; }.desk-shell .abs-workspace .order-panel { overflow:visible; }
 .desk-shell .grid-tools { flex-wrap:wrap; padding:6px 9px; }.desk-shell .grid-tools :is(button,summary) { font-size:11px; min-height:28px; }.desk-shell .grid-tools>div { gap:3px; }
 .desk-shell .data-table th:last-child,.desk-shell .abs-table th:last-child { background:#123d4c; }
 .order-workbench .entry-topbar { padding:0 12px; }.order-workbench .entry-tabs { padding:0 12px; }.order-workbench .entry-section { padding:9px 12px; }
}
@media(max-width:600px){body:has(.desk-shell) .abs-editor-modal .abs-order-facts>.wide { grid-column:1/-1; }}
@media print {
 .desk-shell,.desk-shell .admin-main { display:block; height:auto; overflow:visible; }.desk-shell .workspace-bar { display:none; }
 .desk-shell .content,.desk-shell .content:has(.abs-workspace,.order-table,.programme-surface) { display:block; overflow:visible; padding:0; }
 .desk-shell .orders-workspace,.desk-shell .order-panel,.desk-shell .orders-workspace .table-card,.desk-shell .programme-table { display:block; }
 .desk-shell .orders-workspace .table-wrap,.desk-shell .programme-table .table-wrap { height:auto; max-height:none; overflow:visible; }
 .desk-shell .data-table th { background:#e4edf1; color:#143743; }
}
