/* Enhanced Air Dispatch board: dense legacy capability inside the modern shell. */
.ad-enhanced-board{display:grid;gap:7px;margin-top:0}.ad-board-toolbar,.ad-board-subtoolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:6px 7px;box-shadow:var(--shadow-sm)}.ad-board-toolbar label,.ad-board-subtoolbar label{font-size:8.5px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;display:flex;align-items:center;gap:4px}.ad-board-toolbar select,.ad-board-toolbar input,.ad-board-subtoolbar select,.ad-board-subtoolbar input{height:27px;border:1px solid var(--border);border-radius:5px;background:var(--panel);color:var(--text);padding:0 6px;font-size:9.5px}.ad-board-toolbar select{min-width:92px}.ad-board-toolbar input[type=date]{width:126px}.ad-board-search{min-width:170px;flex:1}.ad-board-btn{height:28px;border:1px solid var(--border);border-radius:5px;background:var(--panel);color:var(--text);padding:0 8px;font-size:9px;font-weight:800;display:inline-flex;align-items:center;gap:5px;cursor:pointer;white-space:nowrap}.ad-board-btn:hover{background:var(--soft)}.ad-board-btn:disabled{opacity:.45;cursor:not-allowed}.ad-board-btn.red{background:var(--red);border-color:var(--red);color:#fff}.ad-board-btn.blue{background:#2563eb;border-color:#2563eb;color:#fff}.ad-board-btn.green{background:#059669;border-color:#059669;color:#fff}.ad-board-btn.purple{background:#7c3aed;border-color:#7c3aed;color:#fff}.ad-board-btn.active{box-shadow:0 0 0 2px rgba(220,38,38,.14);border-color:var(--red);color:var(--red)}.ad-board-spacer{flex:1}.ad-board-check{display:inline-flex!important;align-items:center;gap:4px!important;text-transform:none!important;letter-spacing:0!important;font-size:9px!important;color:var(--muted)!important;white-space:nowrap}.ad-board-check input{width:auto!important;height:auto!important}.ad-board-table-card{background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-sm);overflow:hidden}.ad-board-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:5px 7px;border-bottom:1px solid var(--border);font-size:9px;color:var(--muted)}.ad-board-table-wrap{overflow:auto;max-height:calc(100vh - 250px);min-height:260px}.ad-board-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:8.7px}.ad-board-table th{position:sticky;top:0;z-index:5;background:#4b5565;color:#fff;border-right:1px solid rgba(255,255,255,.14);border-bottom:1px solid var(--border);padding:4px 5px;height:23px;white-space:nowrap;text-transform:uppercase;font-size:7.8px;letter-spacing:.02em;cursor:pointer;user-select:none}.ad-board-table th[draggable=true]{cursor:grab}.ad-board-table th.ad-col-dragging{opacity:.5}.ad-board-table th.ad-col-drop{box-shadow:inset 3px 0 0 var(--red);background:#374151}.ad-layout-locked .ad-board-table th{cursor:pointer}.ad-board-table td{padding:4px 5px;height:24px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);white-space:nowrap;max-width:190px;overflow:hidden;text-overflow:ellipsis}.ad-board-table tbody tr:hover{background:var(--soft)}.ad-board-table tbody tr.ad-selected{background:rgba(220,38,38,.08)}.ad-board-table td.ad-notes,.ad-board-table td.ad-address{max-width:220px}.ad-board-table input[type=checkbox]{accent-color:var(--red)}.ad-status{display:inline-flex;padding:2px 5px;border-radius:999px;background:var(--soft);font-weight:800}.ad-status.in_transit,.ad-status.out_for_delivery,.ad-status.en_route{color:#3b82f6;background:rgba(59,130,246,.12)}.ad-status.completed,.ad-status.delivered,.ad-status.recovered{color:#10b981;background:rgba(16,185,129,.12)}.ad-status.exception,.ad-status.late,.ad-status.alerted{color:#ef4444;background:rgba(239,68,68,.12)}.ad-special{color:#f59e0b;font-weight:900}.ad-board-empty{text-align:center;padding:36px;color:var(--muted);font-size:11px}.ad-board-panel{position:fixed;right:18px;top:calc(var(--topbar) + 12px);width:min(430px,calc(100vw - 30px));max-height:calc(100vh - var(--topbar) - 24px);overflow:auto;z-index:240;background:var(--panel);border:1px solid var(--border);border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.28);display:none}.ad-board-panel.open{display:block}.ad-board-panel-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--border);font-size:12px;font-weight:800}.ad-board-panel-body{padding:10px}.ad-board-cols{display:grid;grid-template-columns:1fr 1fr;gap:5px}.ad-board-cols label{display:flex;align-items:center;gap:6px;padding:6px;border:1px solid var(--border);border-radius:5px;font-size:9.5px}.ad-panel-note{margin:0 0 8px;color:var(--muted);font-size:9.5px;line-height:1.45}.ad-board-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ad-board-action-grid label{font-size:9px;font-weight:800;color:var(--muted);text-transform:uppercase}.ad-board-action-grid select,.ad-board-action-grid input,#adNewViewName{width:100%;height:30px;margin-top:4px;border:1px solid var(--border);border-radius:5px;background:var(--panel);color:var(--text);padding:0 7px}.ad-board-panel-foot{display:flex;justify-content:flex-end;gap:6px;padding:9px 10px;border-top:1px solid var(--border)}body.ad-board-fullscreen .main{margin-left:0;padding:6px}body.ad-board-fullscreen .sidebar,body.ad-board-fullscreen .topbar,body.ad-board-fullscreen .page-head{display:none}body.ad-board-fullscreen .ad-board-table-wrap{max-height:calc(100vh - 94px)}@media(max-width:1100px){.ad-board-spacer{display:none}.ad-board-search{min-width:150px}.ad-board-table-wrap{max-height:calc(100vh - 310px)}}


/* 2026-10-08 dispatcher density + unmistakable column movement. */
.ad-board-table th{height:20px!important;padding:3px 4px!important;font-size:7.4px!important}
.ad-board-table td{height:20px!important;padding:2px 4px!important;font-size:8.2px!important;line-height:1.15!important}
.ad-board-table input[type=checkbox]{width:13px!important;height:13px!important}
.ad-status{
  min-height:16px!important;padding:1px 5px!important;border-radius:4px!important;
  font-size:7.5px!important;font-weight:900!important;letter-spacing:.055em!important;
  text-transform:uppercase!important;line-height:14px!important
}
#adHead th[draggable="true"]{position:relative;padding-left:13px!important}
#adHead th[draggable="true"]::before{
  content:'⋮⋮';position:absolute;left:3px;top:50%;transform:translateY(-52%);
  color:rgba(255,255,255,.58);font-size:8px;letter-spacing:-2px
}
#adHead th.ad-col-dragging{opacity:.38!important;background:#172033!important}
#adHead th.ad-col-drop,#adHead th.ad-visual-drag-over{
  outline:2px solid #60a5fa!important;outline-offset:-2px!important;background:#1d4f7d!important
}
#adHead th.ad-col-drop::after,#adHead th.ad-visual-drag-over::after{
  content:'';position:absolute;left:-2px;top:0;bottom:0;width:4px;background:#f8fafc
}
.ad-board-cols{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
.ad-board-cols label{min-height:31px!important;background:var(--panel)!important}
.ad-board-panel{width:min(520px,calc(100vw - 30px))!important}
.ad-board-panel .ad-panel-note{padding:8px 9px;border:1px solid var(--border);border-radius:7px;background:var(--soft)}


/* 2026-10-10: Fleet embedded Dispatch — compact shipment data rows.
   Child controls must not expand rows above the 25px target. */
.ad-board-table tbody tr{height:25px!important;max-height:25px!important}
.ad-board-table tbody td{height:25px!important;max-height:25px!important;padding:1px 4px!important;line-height:16px!important;vertical-align:middle!important}
.ad-board-table tbody td button,
.ad-board-table tbody td .btn,
.ad-board-table tbody td [role="button"]{height:20px!important;min-height:20px!important;max-height:20px!important;padding:0 5px!important;font-size:9px!important;line-height:18px!important;vertical-align:middle!important}
.ad-board-table tbody td input[type="checkbox"]{width:13px!important;height:13px!important;margin:0!important;vertical-align:middle!important}
.ad-board-table tbody td .ad-status{min-height:16px!important;line-height:14px!important;padding:1px 5px!important;vertical-align:middle!important}
.ad-board-table tbody td svg,.ad-board-table tbody td i{vertical-align:middle}


/* Classic dispatch density — one-line table like the legacy grid reference. */
.ad-board-table{font-family:Arial,Inter,sans-serif!important;font-size:10px!important;border-spacing:0!important;table-layout:auto}
.ad-board-table thead th{height:21px!important;min-height:21px!important;padding:2px 5px!important;background:#a6a6a6!important;color:#20252c!important;font-size:10px!important;font-weight:700!important;text-transform:none!important;letter-spacing:0!important;line-height:16px!important;border-right:1px solid #888!important;border-bottom:1px solid #858585!important;white-space:nowrap!important}
.ad-board-table tbody tr{height:22px!important;max-height:22px!important}
.ad-board-table tbody td{height:22px!important;max-height:22px!important;padding:1px 4px!important;line-height:17px!important;font-size:10px!important;vertical-align:middle!important;text-overflow:ellipsis!important;white-space:nowrap!important;border-right:1px solid var(--border)!important}
.ad-board-table tbody tr:nth-child(even){background:#eeeee6}
.ad-board-table tbody tr:nth-child(odd){background:#fff}
.ad-board-table tbody tr:hover{background:#dfeaf9!important}
.ad-board-table tbody td .ad-status{font-size:9px!important;line-height:14px!important;min-height:16px!important;letter-spacing:0!important}
.ad-board-table tbody td button,.ad-board-table tbody td .btn,.ad-board-table tbody td [role="button"]{height:18px!important;min-height:18px!important;max-height:18px!important;padding:0 4px!important;line-height:16px!important}
.ad-board-table tbody td input[type="checkbox"]{width:12px!important;height:12px!important;margin:0!important}
html[data-theme="dark"] .ad-board-table thead th{background:#596371!important;color:#fff!important;border-color:#46505e!important}
html[data-theme="dark"] .ad-board-table tbody tr:nth-child(even){background:#202c3c}
html[data-theme="dark"] .ad-board-table tbody tr:nth-child(odd){background:#172033}
html[data-theme="dark"] .ad-board-table tbody tr:hover{background:#32455f!important}
@media(max-width:900px){.ad-board-table tbody td{font-size:9.5px!important}}

/* Shipment actions: classic, compact icons without taller rows. */
.ad-board-table .ad-actions-heading{width:98px!important;min-width:98px!important;padding:2px 3px!important;text-align:center!important}
.ad-board-table td.ad-row-actions{width:98px!important;min-width:98px!important;max-width:98px!important;padding:1px 2px!important;overflow:visible!important;white-space:nowrap!important;text-align:center!important}
.ad-board-table .ad-row-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:22px!important;height:18px!important;min-height:18px!important;margin:0 1px!important;padding:0!important;border:1px solid transparent!important;border-radius:2px!important;background:transparent!important;color:inherit!important;cursor:pointer!important}
.ad-board-table .ad-row-actions button:hover,.ad-board-table .ad-row-actions button:focus-visible{border-color:#568ac8!important;background:rgba(62,132,216,.18)!important}
.ad-board-table .ad-row-actions button i{font-size:11px!important}

/* 2026-10-10: classic compact shipment actions */
.ad-board-table .ad-actions-heading,
.ad-board-table td.ad-row-actions{
  width:76px!important;min-width:76px!important;max-width:76px!important;
  padding:0 1px!important;text-align:center!important;white-space:nowrap!important;
}
.ad-board-table td.ad-row-actions{vertical-align:middle!important;overflow:visible!important}
.ad-board-table .ad-row-actions button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;width:16px!important;height:16px!important;
  min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;
  margin:0 1px!important;padding:0!important;line-height:1!important;
  border:1px solid transparent!important;border-radius:2px!important;
  background:transparent!important;color:inherit!important;box-shadow:none!important;
  cursor:pointer!important;
}
.ad-board-table .ad-row-actions button i{font-size:10px!important;line-height:1!important}
.ad-board-table .ad-row-actions button:hover{background:rgba(96,165,250,.15)!important;border-color:rgba(96,165,250,.6)!important}
.ad-board-table .ad-row-actions button:focus-visible{outline:2px solid #60a5fa!important;outline-offset:1px!important}

/* Distinct, crisp 4-action SVG strip matching the classic dispatch grid. */
.ad-board-table .ad-actions-heading,.ad-board-table td.ad-row-actions{width:78px!important;min-width:78px!important;max-width:78px!important;padding:0!important}
.ad-board-table td.ad-row-actions{font-size:0!important;white-space:nowrap!important;line-height:19px!important}
.ad-board-table .ad-row-actions button{width:19px!important;min-width:19px!important;max-width:19px!important;height:19px!important;min-height:19px!important;max-height:19px!important;margin:0!important;padding:1px!important;border-radius:2px!important;color:#17283b!important;vertical-align:middle!important}
.ad-board-table .ad-row-actions svg{display:block!important;width:16px!important;height:16px!important;stroke:currentColor!important;stroke-width:1.85!important;fill:none!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.ad-board-table .ad-row-actions button[data-row-action="send"]{color:#1265a8!important}
.ad-board-table .ad-row-actions button[data-row-action="bol"]{color:#374151!important}
.ad-board-table .ad-row-actions button[data-row-action="label"]{color:#146b52!important}
html[data-theme="dark"] .ad-board-table .ad-row-actions button{color:#ecf4ff!important}
html[data-theme="dark"] .ad-board-table .ad-row-actions button[data-row-action="send"]{color:#8fc7ff!important}
html[data-theme="dark"] .ad-board-table .ad-row-actions button[data-row-action="label"]{color:#88e2bb!important}

/* Dispatch board fills remaining viewport instead of leaving a dead area below rows. */
body:has(.ad-enhanced-board):not(.ad-board-fullscreen) .main{
  height:100dvh!important;min-height:0!important;
  display:flex!important;flex-direction:column!important;
  overflow:hidden!important;box-sizing:border-box!important;
  padding-bottom:5px!important;
}
body:has(.ad-enhanced-board) .ad-enhanced-board{
  display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;
  flex:1 1 auto!important;min-height:0!important;max-height:100%!important;
  width:100%!important;
}
body:has(.ad-enhanced-board) .ad-board-table-card{
  display:flex!important;flex-direction:column!important;
  min-height:0!important;overflow:hidden!important;
}
body:has(.ad-enhanced-board) .ad-board-meta{flex:0 0 auto!important}
body:has(.ad-enhanced-board) .ad-board-table-wrap{
  flex:1 1 auto!important;height:100%!important;min-height:0!important;
  max-height:none!important;overflow:auto!important;overscroll-behavior:contain!important;
}
body.ad-board-fullscreen:has(.ad-enhanced-board) .main{height:100dvh!important;padding:6px!important}

/* Header-only column resize: narrow handles with a clear hover affordance. */
.ad-board-table th[data-col]{position:sticky!important}
.ad-board-table th .ad-col-resize-handle{position:absolute!important;right:0;top:0;bottom:0;width:8px;z-index:8;cursor:col-resize;touch-action:none;border-right:2px solid transparent}
.ad-board-table th .ad-col-resize-handle:hover,.ad-board-table th .ad-col-resize-handle:focus-visible{border-right-color:#53b9e0;background:rgba(83,185,224,.20);outline:0}
.ad-board-table th[data-col],.ad-board-table td[data-col]{box-sizing:border-box!important}
.ad-board-table th[data-col]{background:#657f9b!important;color:#fff!important;border-right-color:#89a0b8!important}
html[data-theme="dark"] .ad-board-table th[data-col]{background:#506c8b!important;color:#f6fbff!important;border-right-color:#6a84a2!important}
html[data-ad-scheme] .ad-board-table th[data-col]{background:var(--scheme-header,#657f9b)!important;color:var(--scheme-header-text,#fff)!important}

/* Align the checkbox and four row actions as one compact uniform strip. */
.ad-board-table th[data-col="select"],.ad-board-table td[data-col="select"]{
  width:23px!important;min-width:23px!important;max-width:23px!important;
  padding:0!important;text-align:center!important;vertical-align:middle!important;
}
.ad-board-table th[data-col="select"] input[type="checkbox"],
.ad-board-table td[data-col="select"] input[type="checkbox"]{
  display:block!important;position:static!important;
  width:13px!important;height:13px!important;min-width:13px!important;
  padding:0!important;margin:0 auto!important;vertical-align:middle!important;
}
.ad-board-table .ad-actions-heading,
.ad-board-table td.ad-row-actions{
  width:80px!important;min-width:80px!important;max-width:80px!important;
  padding:0!important;text-align:center!important;vertical-align:middle!important;
}
.ad-board-table td.ad-row-actions{font-size:0!important;line-height:20px!important;white-space:nowrap!important}
.ad-board-table td.ad-row-actions button{
  display:inline-flex!important;vertical-align:middle!important;
  width:19px!important;height:19px!important;
  min-width:19px!important;max-width:19px!important;
  min-height:19px!important;max-height:19px!important;
  margin:0!important;padding:1px!important;
  box-sizing:border-box!important;align-items:center!important;justify-content:center!important;
}
.ad-board-table td.ad-row-actions svg{width:16px!important;height:16px!important;flex:none!important}

/* Distinct colored shipment controls; align with one compact row. */
.ad-board-table .ad-actions-heading,.ad-board-table td.ad-row-actions{width:91px!important;min-width:91px!important;max-width:91px!important;padding:0 2px!important;text-align:center!important}
.ad-board-table td.ad-row-actions{font-size:0!important;white-space:nowrap!important}
.ad-board-table td.ad-row-actions button{
 width:21px!important;min-width:21px!important;max-width:21px!important;
 height:19px!important;min-height:19px!important;max-height:19px!important;
 margin:0!important;padding:1px!important;border-radius:2px!important;
 border:1px solid transparent!important;vertical-align:middle!important;
 opacity:1!important;cursor:pointer!important;box-shadow:none!important;
}
.ad-board-table td.ad-row-actions button svg{width:16px!important;height:16px!important;stroke-width:2.2!important}
.ad-board-table td.ad-row-actions button[data-row-action="edit"]{background:#e1ebff!important;color:#214a9a!important;border-color:#a8bfef!important}
.ad-board-table td.ad-row-actions button[data-row-action="send"]{background:#e1f3ff!important;color:#00699e!important;border-color:#9bd5ed!important}
.ad-board-table td.ad-row-actions button[data-row-action="bol"]{background:#fff0d9!important;color:#915900!important;border-color:#e6c58c!important}
.ad-board-table td.ad-row-actions button[data-row-action="label"]{background:#def7eb!important;color:#086747!important;border-color:#9bdcbf!important}
.ad-board-table td.ad-row-actions button:hover{filter:brightness(.90)!important;outline:1px solid currentColor!important}
.ad-board-table td.ad-row-actions button:active{transform:translateY(1px)!important}

/* Keep dispatch controls on one line, with status filters in a compact popover. */
.ad-enhanced-board .ad-board-subtoolbar{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:4px!important;overflow:visible!important;min-width:0!important;padding:5px 6px!important}
.ad-enhanced-board .ad-board-subtoolbar>.ad-board-btn{flex:0 0 auto!important;white-space:nowrap!important;padding-left:7px!important;padding-right:7px!important}
.ad-enhanced-board .ad-board-subtoolbar .ad-board-spacer{flex:1 1 auto!important;min-width:0!important}
.ad-enhanced-board .ad-hide-states{position:relative;flex:0 0 auto;z-index:40}
.ad-enhanced-board .ad-hide-states>summary{display:inline-flex!important;align-items:center;gap:6px;list-style:none;cursor:pointer!important;white-space:nowrap}
.ad-enhanced-board .ad-hide-states>summary::-webkit-details-marker{display:none}
.ad-enhanced-board .ad-hide-states-menu{position:absolute;top:calc(100% + 5px);right:0;width:180px;display:grid;gap:3px;padding:8px;background:var(--panel,#fff);border:1px solid var(--border,#cbd5e1);border-radius:7px;box-shadow:0 10px 30px rgba(0,0,0,.18);z-index:200}
.ad-enhanced-board .ad-hide-states-menu label{display:flex;align-items:center;gap:8px;padding:5px;font-size:11px;cursor:pointer;white-space:nowrap}
.ad-enhanced-board .ad-hide-states-menu label:hover{background:var(--soft,#eef4f8)}
.ad-enhanced-board .ad-hide-states-menu input{margin:0;width:14px;height:14px}
@media(max-width:1250px){.ad-enhanced-board .ad-board-subtoolbar{overflow-x:auto!important;scrollbar-width:thin}.ad-enhanced-board .ad-hide-states-menu{position:fixed;top:auto;right:15px}}

/* Dark theme: retain semantic icon hues with darker filled backgrounds. */
html[data-theme="dark"] .ad-enhanced-board .ad-board-table td.ad-row-actions button[data-row-action="edit"]{background:#173866!important;border-color:#3776bb!important;color:#a8d7ff!important}
html[data-theme="dark"] .ad-enhanced-board .ad-board-table td.ad-row-actions button[data-row-action="send"]{background:#08475d!important;border-color:#2087a5!important;color:#a3edff!important}
html[data-theme="dark"] .ad-enhanced-board .ad-board-table td.ad-row-actions button[data-row-action="bol"]{background:#65420c!important;border-color:#ab7a21!important;color:#ffe0a0!important}
html[data-theme="dark"] .ad-enhanced-board .ad-board-table td.ad-row-actions button[data-row-action="label"]{background:#105339!important;border-color:#328b62!important;color:#a1f6c5!important}
html[data-theme="dark"] .ad-enhanced-board .ad-board-table td.ad-row-actions button:hover{filter:brightness(1.23)!important}


/* 2026-10-14: Split Dispatch settings from operational controls.
   Data and layout utilities belong on the roomy filter row, not in the
   densely packed actions. Keep export choices readable in light/dark mode. */
.ad-enhanced-board .ad-board-toolbar{
  position:relative!important;overflow:visible!important;
  column-gap:9px!important;row-gap:7px!important;
  padding:6px 9px!important;align-items:center!important;
}
.ad-enhanced-board .ad-board-toolbar:has(#adExportMenu[open]){z-index:100!important}
.ad-enhanced-board .ad-board-utilities{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  flex:0 0 auto!important;flex-wrap:nowrap!important;gap:9px!important;
  margin-left:auto!important;min-width:0!important;
}
.ad-enhanced-board .ad-board-utilities>.ad-board-btn,
.ad-enhanced-board .ad-board-utilities .ad-export-menu>summary{
  height:30px!important;min-height:30px!important;padding:0 10px!important;
  display:inline-flex!important;align-items:center!important;gap:6px!important;
  border:1px solid var(--border)!important;border-radius:6px!important;
  background:var(--panel)!important;color:var(--text)!important;
  font-size:10px!important;font-weight:800!important;
  white-space:nowrap!important;cursor:pointer!important;
}
.ad-enhanced-board .ad-board-utilities>.ad-board-btn:hover,
.ad-enhanced-board .ad-board-utilities .ad-export-menu>summary:hover{
  background:var(--soft)!important;
}
.ad-enhanced-board .ad-board-utilities .ad-export-menu{position:relative;z-index:101}
.ad-enhanced-board .ad-board-utilities .ad-export-menu>summary{list-style:none}
.ad-enhanced-board .ad-board-utilities .ad-export-menu>summary::-webkit-details-marker{display:none}
.ad-enhanced-board .ad-board-utilities .ad-export-options{
  position:absolute;right:0;top:calc(100% + 7px);z-index:500;
  min-width:265px;width:max-content;max-width:min(320px,94vw);
  display:grid;gap:3px;padding:7px;
  border:1px solid var(--border);border-radius:9px;
  background:var(--panel);color:var(--text);
  box-shadow:0 14px 32px rgba(8,20,35,.28);
}
.ad-enhanced-board .ad-board-utilities .ad-export-options button{
  display:flex;align-items:center;gap:10px;width:100%;
  min-height:51px;text-align:left;cursor:pointer;
  border:0;border-radius:7px;padding:7px 10px;
  background:transparent;color:var(--text);
}
.ad-enhanced-board .ad-board-utilities .ad-export-options button:hover,
.ad-enhanced-board .ad-board-utilities .ad-export-options button:focus-visible{
  background:var(--soft);outline:2px solid var(--border);
}
.ad-enhanced-board .ad-board-utilities .ad-export-options button i{font-size:17px;min-width:21px;color:var(--red)}
.ad-enhanced-board .ad-board-utilities .ad-export-options button span{display:grid;gap:3px}
.ad-enhanced-board .ad-board-utilities .ad-export-options button strong{font-size:11px;font-weight:800}
.ad-enhanced-board .ad-board-utilities .ad-export-options button small{font-size:9.5px;line-height:1.25;color:var(--muted)}
.ad-enhanced-board .ad-board-subtoolbar.ad-board-subtoolbar{
  gap:9px!important;padding:6px 9px!important;
  min-height:46px!important;align-items:center!important;
}
.ad-enhanced-board .ad-board-subtoolbar>.ad-board-btn{
  min-height:30px!important;height:30px!important;
  padding:0 9px!important;font-size:10px!important;
}
.ad-enhanced-board .ad-board-subtoolbar>.ad-hide-states>summary,
.ad-enhanced-board .ad-board-subtoolbar>.ad-quick-select>summary{
  min-height:30px!important;height:30px!important;padding:0 9px!important;
  font-size:10px!important;
}
@media(max-width:1450px){
 .ad-enhanced-board .ad-board-utilities{flex-basis:100%!important;justify-content:flex-end!important}
}
@media(max-width:790px){
 .ad-enhanced-board .ad-board-utilities{justify-content:flex-start!important;flex-wrap:wrap!important}
 .ad-enhanced-board .ad-board-subtoolbar.ad-board-subtoolbar{gap:7px!important}
}

/* Unrestricted per-user Dispatch column widths. The board scrolls horizontally
   rather than forcing oversized columns to squeeze adjacent columns. */
.ad-enhanced-board .ad-board-table-wrap{overflow-x:auto!important;overflow-y:auto!important}
.ad-enhanced-board .ad-board-table{
  width:max-content!important;min-width:100%!important;
  table-layout:fixed!important;
}
.ad-enhanced-board .ad-board-table thead th[data-col],
.ad-enhanced-board .ad-board-table tbody td[data-col]{
  overflow:hidden!important;
}
.ad-enhanced-board .ad-board-table th .ad-col-resize-handle{
  cursor:col-resize!important;
}

/* Shipment attention engine: separate operational status from non-destructive
   automated row highlighting. Scoped after theme rules for both modes. */
.ad-enhanced-board .ad-board-table tbody tr[data-shipment-highlight][data-highlight-mode="row"]>td,
html[data-ad-scheme] body .ad-enhanced-board .ad-board-table tbody tr[data-shipment-highlight][data-highlight-mode="row"]>td,
html[data-theme="dark"] body .ad-enhanced-board .ad-board-table tbody tr[data-shipment-highlight][data-highlight-mode="row"]>td{
  background:var(--shipment-highlight)!important;color:#152638!important;
}
.ad-enhanced-board .ad-board-table tbody tr[data-shipment-highlight][data-highlight-mode="row"]>td,
.ad-enhanced-board .ad-board-table tbody tr[data-shipment-highlight][data-highlight-mode="row"]>td :is(a,span:not(.ad-status),small){
  color:#152638!important;
}
.ad-enhanced-board .ad-board-table tbody tr[data-shipment-highlight][data-highlight-mode="row"]:hover>td{
  filter:brightness(.94);
}
.ad-enhanced-board .ad-board-table tbody tr[data-shipment-highlight][data-highlight-mode="stripe"]>td:first-child{
  box-shadow:inset 6px 0 0 var(--shipment-highlight)!important;
}
html[data-theme="dark"] .ad-enhanced-board .ad-board-table tr[data-shipment-highlight][data-highlight-mode="row"]>td .ad-status,
html[data-ad-scheme-mode="dark"] .ad-enhanced-board .ad-board-table tr[data-shipment-highlight][data-highlight-mode="row"]>td .ad-status{
  border:1px solid rgba(15,23,42,.20);
}
#adPanel .ad-shipment-rule-config .ad-display-color input[type="color"]{
  width:37px!important;height:27px!important;cursor:pointer;
}
#adPanel .ad-shipment-toggle{
  display:flex;align-items:center;gap:8px;font-weight:750;font-size:10px;
  margin:6px 0 10px;color:var(--text);
}
#adPanel .ad-shipment-toggle input{accent-color:#2563eb}
#adPanel .ad-shipment-rule-config .ad-display-grid{margin-bottom:7px}
#adPanel .ad-shipment-rule-config input[type="number"],
#adPanel .ad-shipment-rule-config select{
  display:block;width:100%;min-height:30px;box-sizing:border-box;
  background:var(--panel);border:1px solid var(--border);color:var(--text);
  border-radius:5px;padding:4px 6px;
}

/* App Msg handshake (driverDispatch.ackStatus). The single source of App Msg styling.
   Crown-style: a small, flat, outlined code. Colour is a quiet text tint, not a filled badge.
   Per-code colours are CSS variables so themes / the colour customizer can override them. */
.ad-enhanced-board{--ack-ns:var(--muted,#6b7280);--ack-snt:#475569;--ack-dlv:#0e7490;--ack-wait:#b45309;--ack-acc:#15803d;--ack-accpt:var(--ack-acc);--ack-pu:#1d4ed8;--ack-rcv:#047857;--ack-pod:#15803d;--ack-upd:#6d28d9;--ack-cxl:#b91c1c}
html[data-theme="dark"] .ad-enhanced-board{--ack-snt:#cbd5e1;--ack-dlv:#67e8f9;--ack-wait:#fbbf24;--ack-acc:#4ade80;--ack-accpt:var(--ack-acc);--ack-pu:#93c5fd;--ack-rcv:#6ee7b7;--ack-pod:#4ade80;--ack-upd:#c4b5fd;--ack-cxl:#fca5a5}
.ad-enhanced-board .ad-board-table tbody td .ad-app-msg{
 display:inline-block!important;box-sizing:border-box!important;min-width:34px!important;max-width:100%!important;
 padding:0 4px!important;border:1px solid currentColor!important;border-radius:3px!important;background:transparent!important;
 font:700 9px/13px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;letter-spacing:.03em!important;
 text-align:center!important;white-space:nowrap!important;vertical-align:middle!important;cursor:help;opacity:.92;
 color:var(--ack-ns)!important
}
.ad-enhanced-board .ad-board-table tbody td .ad-app-msg.ack-ns,.ad-app-msg.ack-uns{border-style:dashed!important;opacity:.7}
.ad-enhanced-board .ad-board-table tbody td .ad-app-msg.ack-snt{color:var(--ack-snt)!important}
.ad-enhanced-board .ad-board-table tbody td .ad-app-msg.ack-dlv{color:var(--ack-dlv)!important}
.ad-enhanced-board .ad-board-table tbody td .ad-app-msg.ack-wait{color:var(--ack-wait)!important}
.ad-enhanced-board .ad-board-table tbody td .ad-app-msg.ack-acc,.ad-app-msg.ack-accpt{color:var(--ack-accpt)!important}
.ad-enhanced-board .ad-board-table tbody td .ad-app-msg.ack-pu{color:var(--ack-pu)!important}
.ad-enhanced-board .ad-board-table tbody td .ad-app-msg.ack-rcv{color:var(--ack-rcv)!important}
.ad-enhanced-board .ad-board-table tbody td .ad-app-msg.ack-pod{color:var(--ack-pod)!important}
.ad-enhanced-board .ad-board-table tbody td .ad-app-msg.ack-upd{color:var(--ack-upd)!important}
.ad-enhanced-board .ad-board-table tbody td .ad-app-msg.ack-cxl{color:var(--ack-cxl)!important;text-decoration:line-through}
/* 2026-10-24 Service Date: compact "This date only" toggle beside View Date. */
.ad-enhanced-board #adDateOnlyWrap{display:inline-flex!important;align-items:center!important;gap:4px!important;height:24px!important;min-height:24px!important;padding:0 6px!important;border:1px solid var(--border,#cfd6df)!important;border-radius:3px!important;background:var(--panel,#fff)!important;font-size:10px!important;font-weight:700!important;text-transform:none!important;letter-spacing:0!important;color:var(--text,#1f2937)!important;white-space:nowrap!important;cursor:pointer}
.ad-enhanced-board #adDateOnlyWrap input{margin:0!important;width:13px!important;height:13px!important;accent-color:#1454a3}
.ad-enhanced-board #adDateOnlyWrap:has(input:checked){border-color:#1454a3!important;color:#1454a3!important}
html[data-adc-dark="1"] .ad-enhanced-board #adDateOnlyWrap{background:#252e3c!important;color:#dfe5ee!important;border-color:#3d4859!important}
body .ad-enhanced-board #adOperationalViewbar #adDateOnlyWrap{gap:3px!important;padding:0 2px!important;font-size:10px!important}
/* Below 1600px the View Date / Date Range captions collapse (kept as tooltips + aria-labels) so the top toolbar stays on one row. */
@media (max-width:1599px){
body .ad-enhanced-board #adOperationalViewbar label:has(>#adDate),
body .ad-enhanced-board #adOperationalViewbar label:has(>#adDateWindow){font-size:0!important;gap:0!important}
}
