/* Dense dashboard: one row is two lines, regardless of text length. */
body #containers-table { --table-font:14px; font-size:14px; border-spacing:0; }
body #containers-table :is(th,td),body #containers-sticky-header th { box-sizing:border-box; }
body #containers-table tbody tr[data-container-row] { height:56px; }
body #containers-table tbody tr[data-container-row]>td { height:56px; padding:2px 6px!important; vertical-align:middle!important; line-height:19px; font-size:14px; overflow:hidden; }
body #containers-table td[data-shared-anchor=true] { overflow:visible!important; }
body #containers-table tbody .view-value,body #containers-table .rc59-two-lines {
 display:-webkit-box!important; -webkit-box-orient:vertical; -webkit-line-clamp:2!important;
 max-height:38px!important; overflow:hidden!important; text-overflow:ellipsis!important;
 white-space:normal!important; overflow-wrap:anywhere; word-break:normal; line-height:19px;
}
body #containers-table td[data-col=notes] .view-value { white-space:pre-wrap!important; max-height:38px!important; }
body #containers-table td[data-col=messages] { text-align:center; }
body #containers-table .workspace-pin-controls { display:flex; height:28px; align-items:center; justify-content:center; gap:2px; margin:0!important; }
body #containers-table .workspace-priority-slot { display:inline-flex; }
body #containers-table .shipment-stage-badge { display:table!important; margin:1px auto 0!important; height:18px; max-width:100%; line-height:15px; padding:0 4px; font-size:11px; white-space:nowrap; }
body #containers-table .workspace-hover-action { opacity:0; pointer-events:none; transition:opacity .1s; }
body #containers-table :is(td[data-col=messages]:hover,td[data-col=messages]:focus-within) .workspace-hover-action,
body #containers-table .workspace-hover-action[aria-pressed=true] { opacity:1; pointer-events:auto; }
@media(hover:none){body #containers-table .workspace-hover-action{opacity:1;pointer-events:auto}}
body :is(#containers-table,#containers-sticky-header) :is([data-col=pin],[data-col=priority],[data-col-definition=pin],[data-col-definition=priority]),
body :is([data-column-card=pin],[data-column-card=priority]) { display:none!important; }
body #containers-table .cad-compact { gap:0; }
body #containers-table .cad-compact-row { height:24px; gap:4px; }
body #containers-table .cad-file-label { font-size:12px; line-height:20px; }
body #containers-table :is(.official-tracking-actions,.table-font-button) { display:none!important; }
body #containers-table .eta-value-line { display:block; }
body #containers-table .identifier-copy,body #containers-table .container-copy-number { cursor:copy; text-decoration:underline dotted #c1cbd2; text-underline-offset:3px; }
body #containers-table td[data-col] a:not([data-pending-sort] a) { color:#2b6489; text-decoration:underline; text-decoration-color:#a2bdcf; text-underline-offset:2px; }
body #containers-table .direct-date-value { min-height:19px; border-bottom:1px dashed #bdcbd4; cursor:text; border-radius:0; }
body #containers-table td[data-col=notes][data-notes-editable=true] .view-value { cursor:text; border-bottom:1px dashed #bdcbd4; min-height:19px; }
body #containers-table .notes-inline-editor { display:block!important; width:100%; height:46px; max-height:46px; min-height:0; margin:0; padding:2px; border:1px solid #81a9c3; border-radius:3px; resize:none; line-height:19px; font:14px/19px Arial,sans-serif; }
.notes-save-status { position:absolute; right:3px; bottom:1px; font-size:10px; line-height:12px; background:#fff; color:#4f7560; pointer-events:none; }
.notes-save-status[data-error=true] { color:#ad2832; }
body #containers-table td[data-col=notes] { position:relative; }
.rc59-fulltext { position:fixed; z-index:2147483646; pointer-events:none; white-space:pre-wrap; overflow-wrap:anywhere; max-width:min(480px,90vw); max-height:50vh; overflow:hidden; padding:9px 11px; background:#223d50; color:white; border-radius:5px; box-shadow:0 3px 12px #0002; font:13px/1.5 Arial,sans-serif; }
/* A single, fixed hit target replaces the stretched pair of sort arrows. */
body :is(#containers-table,#containers-sticky-header) thead tr:first-child th { padding:5px 6px; min-height:30px; text-align:center; position:relative; }
body :is(#containers-table,#containers-sticky-header) .sort-links { position:absolute; right:4px; top:50%; transform:translateY(-50%); display:block!important; width:24px; height:26px; margin:0!important; opacity:0; pointer-events:none; }
body :is(#containers-table,#containers-sticky-header) th:is(:hover,:focus-within) .sort-links,
body :is(#containers-table,#containers-sticky-header) th[data-sort-active=true] .sort-links { opacity:1; pointer-events:auto; }
body :is(#containers-table,#containers-sticky-header) .sort-links a { display:none!important; width:24px; height:26px; min-width:24px; min-height:26px; padding:0; margin:0; font-size:17px; align-items:center; justify-content:center; box-sizing:border-box; background:#edf3f8; }
body :is(#containers-table,#containers-sticky-header) .sort-links a[data-next-sort=true] { display:flex!important; }
body :is(#containers-table,#containers-sticky-header) .sort-priority { display:none!important; }
body :is(#containers-table,#containers-sticky-header) th[data-col=selection],body :is(#containers-table,#containers-sticky-header) th[data-col=row_menu] { padding:4px; }
body .date-tools-row { display:flex!important; width:100%; align-items:center; justify-content:center; gap:4px; flex-wrap:nowrap; }
body .table-filter-row th .date-tools-row .date-range-filter { display:inline-flex!important; flex:0 0 26px; width:26px; min-width:0; margin:0!important; overflow:hidden; }
body .table-filter-row th .date-tools-row :is(.date-filter-button,.time-precision-button) { display:inline-flex; align-items:center; justify-content:center; width:26px; min-width:26px; height:26px; min-height:26px; margin:0!important; padding:2px!important; }
body .table-filter-row th .date-tools-row .time-precision-button { flex:0 0 26px; }
body .date-tools-row .date-filter-button { font-size:0!important; }
/* Only the table toolbar and headings stick. Other controls stay in document flow. */
body .dashboard-primary-tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:5px 0; }
body .dashboard-primary-tools .operational-mode-tabs { display:flex; flex-wrap:wrap; gap:3px; margin:0!important; padding:0!important; border:0; }
body .dashboard-primary-tools .operational-mode-tabs a { padding:4px 7px; min-height:28px; box-sizing:border-box; border-radius:4px; font-size:12px; }
body .dashboard-primary-tools #dashboard-query-toolbar { margin:0!important; padding:0; display:flex; align-items:center; gap:5px; }
body .dashboard-primary-tools .active-query-summary { display:none; }
body .dashboard-view-controls:empty { display:none!important; }
body .dashboard-view-controls { margin:0!important; padding:0!important; min-height:0; border:0; }
body .shipment-selection-toolbar { padding:5px 7px!important; gap:6px; min-height:40px; border-radius:5px 5px 0 0; }
body .shipment-selection-toolbar button,body .shipment-selection-toolbar summary { min-height:28px; padding:3px 7px; font-size:12px; }
body .table-layout-controls { display:flex; align-items:center; gap:5px; margin-left:0; }
body .table-layout-controls :is(button,summary,select) { box-sizing:border-box; font:12px/18px Arial,sans-serif; min-height:28px; margin:0; padding:3px 6px; border:1px solid #c6d3df; border-radius:4px; background:white; color:#294961; }
body .table-layout-controls label { display:flex; align-items:center; gap:4px; margin:0; font-size:12px; }
body .shipment-selection-toolbar .active-query-summary { display:flex; gap:3px; margin:0; max-height:29px; overflow:hidden; flex-wrap:nowrap; flex:1 1 140px; min-width:0; }
body .shipment-selection-toolbar .active-query-summary:has([data-order-stale]) { max-height:none; }
body .shipment-selection-toolbar .query-chip { flex:none; padding:2px 4px; font-size:11px; }
body .shipment-selection-toolbar #dashboard-result-summary { font-size:11px; white-space:nowrap; }
body #shipment-action-dock { margin:3px 0 0; min-height:40px; }
body .dashboard-card-heading { padding:0!important; min-height:25px; gap:6px; }
body .dashboard-card-heading button { min-height:25px; padding:1px 0; font-size:12px; }
body .dashboard-card-panel { margin:0 0 3px; padding:0; border:0; }
body .dashboard-card-panel:has(#dashboard-cards-body[hidden]) { margin:0; padding:0; }
body .dashboard-card-heading small { font-size:11px; }
body .dashboard-card-panel .dashboard { gap:6px; margin:4px 0; }
body .dashboard-card-panel .card { padding:8px; }
body .workflow-dropdown-button { min-height:28px; margin:0; padding:3px 8px; border:1px solid #c6d3df; border-radius:4px; background:#fff; color:#294961; font-size:12px; }
body .workflow-dropdown-panel { padding:10px; border:1px solid #b6cbd8; border-radius:6px; background:white; box-shadow:0 5px 18px #172b3b26; }
body .workflow-dropdown-panel .workflow-tabs,body .workflow-dropdown-panel .workflow-task-tabs { display:flex; flex-direction:column; align-items:stretch; gap:3px; margin:4px 0; padding:0; }
body .workflow-dropdown-panel .workflow-task-tabs { border-top:1px solid #d8e3ec; margin-top:8px; padding-top:7px; }
body .workflow-dropdown-panel .stage-tab { display:block; width:100%; border:1px solid transparent; border-radius:4px; font-size:12px; padding:5px 7px; box-sizing:border-box; }
body .workflow-dropdown-panel .workflow-guide { display:none; }
/* Authenticated header: title, one-line clock, language and the collapsed menu. */
body.compact-app-shell .app-header { display:flex; align-items:center; gap:12px; margin:0 0 4px; padding:0 0 4px; min-height:36px; }
body.compact-app-shell .app-header h1 { font-size:20px; line-height:28px; margin:0; white-space:nowrap; }
body.compact-app-shell .system-brand-logo { max-height:28px; max-width:90px; }
body.compact-app-shell .header-right { display:flex; align-items:center; justify-content:flex-end; gap:10px; width:auto; margin-left:auto; }
body.compact-app-shell .locale-switcher { display:flex; gap:7px; margin:0; font-size:12px; white-space:nowrap; }
body.compact-app-shell .current-clock { display:flex; align-items:center; gap:6px; margin:0; padding:0; background:transparent; border:0; }
body.compact-app-shell .current-clock-top { display:flex; align-items:center; margin:0; }
body.compact-app-shell .current-clock-label { display:none; }
body.compact-app-shell #global-current-time { font-size:12px; line-height:20px; white-space:nowrap; }
body.compact-app-shell .current-clock-timezone { font-size:10px; margin:0; }
body.compact-app-shell .current-clock-mode { min-height:25px; padding:2px 3px; margin:0; font-size:11px; }
.shell-menu-button { width:30px; min-height:28px; margin:0; padding:1px; font-size:18px; border:1px solid #c6d3df; border-radius:4px; background:white; color:#294961; }
.shell-menu-panel { padding:12px; border:1px solid #b6cbd8; border-radius:7px; background:white; box-shadow:0 5px 18px #172b3b26; }
.shell-menu-panel[hidden] { display:none; }
body .shell-menu-panel :is(.header-account,.main-entry-nav,.workspace-tabs) { display:flex; flex-direction:column; align-items:stretch; gap:7px; margin:0; padding:8px 0; text-align:left; }
body .shell-menu-panel .header-account>span { max-width:none; white-space:normal; }
body .shell-menu-panel .workspace-tabs { border-top:1px solid #dde6ed; }
body .shell-menu-panel .app-version-link { display:block; margin:8px 0 0; font-size:11px; }
@media(max-width:900px){body.compact-app-shell .app-header{flex-wrap:wrap}body.compact-app-shell .header-right{gap:6px}body.compact-app-shell .current-clock-timezone{display:none}body .shipment-selection-toolbar{flex-wrap:wrap!important}}
body #containers-table .rc59-cell-content { max-height:50px; overflow:hidden; }
body #containers-table .view-value[hidden] { display:none!important; }
body #containers-table td[data-col=notes] .view-value:empty:before { content:attr(data-placeholder); color:#8b9aa4; font-size:12px; }
body .dashboard-primary-tools .dashboard-workflow-queues { margin:0; }
body .dashboard-primary-tools .saved-search-group :is(button,select) { min-height:28px; font-size:12px; padding:3px 6px; }
body .dashboard-primary-tools .saved-search-group { min-height:28px; }
body :is(#containers-table,#containers-sticky-header) thead tr:first-child th { white-space:normal!important; overflow-wrap:anywhere; }
body .dashboard-primary-tools+.dashboard-view-controls { padding:0!important; border:0; }
body .section>.toolbar { margin:0; padding:0; min-height:0; }
.notes-conflict-dialog { width:min(650px,90vw); max-height:85vh; overflow:auto; border:1px solid #b6cbd8; border-radius:7px; }
.notes-conflict-dialog pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:22vh; overflow:auto; background:#f3f6f8; padding:8px; }
body #containers-table-wrapper { scroll-padding-inline:54px; scroll-padding-block:110px 20px; }
body #containers-table tbody :is(button,a,[tabindex]) { scroll-margin-top:120px; scroll-margin-bottom:30px; scroll-margin-inline:54px; }
body :is(#containers-table,#containers-sticky-header) thead tr:first-child th>div:first-child { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; max-height:36px; line-height:18px; overflow:hidden; }
body #containers-table :is(.identifier-copy,.container-copy-number),body #containers-table .view-value>a { display:-webkit-box!important; -webkit-box-orient:vertical; -webkit-line-clamp:2; max-height:38px; overflow:hidden!important; line-height:19px; }
body #containers-table td:not([data-col=messages]):not([data-col=cad_workflow]) .rc59-cell-content { max-height:38px; }

/* User-confirmed ECS toolbar alignment, now part of the image. */
body #shipment-selection-toolbar { align-items:center; gap:8px; }
body #shipment-selection-toolbar > * { order:4; }
body #shipment-selection-toolbar > #open-create-shipment { order:0; flex:none; margin:0; }
body #shipment-selection-toolbar > #dashboard-result-summary { order:1; flex:0 1 auto; width:auto; margin:0 0 0 6px; font-size:12px; }
body #shipment-selection-toolbar > .active-query-summary { order:2; flex:0 1 auto; }
body #shipment-selection-toolbar > .table-action-spacer { order:3; flex:1; }
.carrier-prefix-suggestion[hidden] { display:none!important; }
#containers-table thead .carrier-prefix-suggestion { display:none!important; }
.header-departments { display:inline-flex;align-items:center;gap:0;flex:none;border:1px solid #b8cbd8;border-radius:4px;overflow:hidden; }
.header-departments .workspace-tab { padding:4px 7px;margin:0;border:0;border-radius:0;font-size:12px;line-height:18px;text-decoration:none;color:#31516b;background:white;white-space:nowrap; }
.header-departments .workspace-tab.active { background:#2d648a;color:white; }
.header-departments .workspace-tab+.workspace-tab { border-left:1px solid #b8cbd8; }
.shell-menu-panel { overflow-wrap:anywhere; }
.staff-service-roles { display:grid;grid-template-columns:1fr;gap:8px;grid-column:1/-1; }
.staff-service-roles label { display:flex;align-items:center;gap:7px; }
.automatic-assignment-rules { padding-left:22px;line-height:1.65; }

.header-departments [aria-disabled=true]{opacity:.55;cursor:not-allowed;background:#f2f4f5}
