/* Emboss ERP operations home (Dashboard 2.0). Presentation only. Target: the approved dashboard image.
   Scoped to .dash2 and .dash2-pal, plus two body.dash-home rules that hide the application's top navigation.
   Colorway: Emboss Green #2E4034, Ink #2B3B4E, Cream #F6F3ED, Off-white #FBFAF7, Band #EFEBE3, Taupe #8C7F6D,
   White Gold #DCD4C0. Status colours only for status. One UI family: Plus Jakarta Sans (already loaded). */

body.dash-home #topnav,
body.dash-home #main > .topbar { display: none !important; }
body.dash-home #content { padding: 0 !important; max-width: none !important; margin: 0 !important; }
body.dash-home { padding-top: 0 !important; }
body.dash-home #main { padding-top: 0 !important; margin-top: 0 !important; }

.dash2, .dash2-pal {
  --green: #2E4034;
  --green-2: #3A5143;
  --ink: #2B3B4E;
  --char: #1E2A36;
  --cream: #F6F3ED;
  --off: #FBFAF7;
  --band: #EFEBE3;
  --taupe: #8C7F6D;
  --taupe-2: #A8A39A;
  --gold: #DCD4C0;
  --line: #E4DDCF;
  --line-2: #EEE9DE;
  --ok: #2E6B47;
  --ok-soft: #E2EFE5;
  --info: #3D5068;
  --info-soft: #E6ECF2;
  --warn: #8A5A14;
  --warn-soft: #F6E8CB;
  --bad: #9A3B2B;
  --bad-soft: #F5E0DA;
  --blue: #2F78C4;
  --shadow: 0 1px 2px rgba(31, 30, 28, .04), 0 8px 22px -14px rgba(31, 30, 28, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  color: var(--char);
  -webkit-font-smoothing: antialiased;
}
.dash2 *, .dash2 *::before, .dash2 *::after, .dash2-pal *, .dash2-pal *::before { box-sizing: border-box; }
.dash2 h1, .dash2 h2, .dash2 p, .dash2 dl, .dash2 dd, .dash2 dt, .dash2 strong { margin: 0; }
:where(.dash2, .dash2-pal) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.dash2 button:focus-visible, .dash2 [tabindex]:focus-visible, .dash2 input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 10px; }
.dash2 svg { display: block; }
.dash2-num { font-variant-numeric: tabular-nums lining-nums; }

/* Shell */
.dash2 { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(180deg, #F8F5EF 0%, #F3EFE6 100%); }

/* Sidebar: Emboss green, one white line-icon system, cream active row, wave-line decoration, ERP Live footer */
.dash2-rail {
  position: sticky; top: 0; height: 100vh; z-index: 40; display: flex; flex-direction: column; overflow: hidden;
  padding: 26px 16px 22px; color: #fff;
  background: linear-gradient(180deg, #2E4034 0%, #243428 100%);
  
}
.dash2-rail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none;
  background: url("../../../assets/dashboard/sidebar-lines.svg") center bottom / cover no-repeat; opacity: .9;
}
.dash2-brand { display: flex; align-items: center; gap: 10px; padding: 0 0 28px; position: relative; z-index: 2; }
.dash2-brand-mark { flex: 0 0 auto; display: grid; place-items: center; min-height: 44px; max-width: 64px; padding: 5px 7px; background: #FBFAF7; border: 1px solid #DCD4C0; border-radius: 12px; box-shadow: 0 1px 2px rgba(31, 30, 28, .10); }
.dash2-brand-logo { display: block; width: auto; height: 34px; max-width: 50px; object-fit: contain; }
.dash2-brand-fallback { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #EFEBE3; color: #2E4034; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.dash2-brand-mark svg { width: 30px; height: 30px; }
.dash2-brand-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.dash2-brand-sub { display: none; }
.dash2-nav { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 2; }
.dash2-nav-item { width: 100%; height: 44px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: center; padding: 0 14px; border-radius: 10px; text-align: left; color: rgba(246, 243, 237, .88); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease); }
.dash2-nav-item:hover { background: rgba(246, 243, 237, .08); color: #fff; }
.dash2-nav-item.is-selected { background: var(--off); color: var(--green); font-weight: 700; box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .45); }
.dash2-nav-ic { display: grid; place-items: center; width: 24px; height: 24px; }
.dash2-nav-ic svg { width: 20px; height: 20px; }
.dash2-rail-foot { margin-top: auto; position: relative; z-index: 2; padding: 0 6px; }
.dash2-live { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #fff; }
.dash2-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #5DBE7C; flex: 0 0 10px; box-shadow: 0 0 0 4px rgba(93, 190, 124, .16); }

/* Workspace */
.dash2-main { min-width: 0; padding: 16px 28px 22px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .85fr); gap: 16px; align-content: start; max-width: 1540px; }
.dash2-greet { grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;  }
.dash2-title { font-size: 38px; font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: #1B2A38; }
.dash2-sub { margin-top: 5px; font-size: 15px; color: #5E6B68; }
.dash2-greet-r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 2px; }
.dash2-search { display: flex; align-items: center; gap: 12px; width: min(500px, 42vw); min-width: 300px; height: 46px; padding: 0 12px 0 16px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.dash2-search:focus-within { border-color: #9FB0A4; box-shadow: 0 0 0 4px rgba(46, 64, 52, .08), var(--shadow); }
.dash2-search-ic { color: #6E6557; display: grid; flex: 0 0 auto; }
.dash2-search-input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--char); outline: none; }
.dash2-search-input::placeholder { color: #7F786C; }
.dash2-search-input::-webkit-search-cancel-button { display: none; }
.dash2-kbd { font: 700 12px "Plus Jakarta Sans", sans-serif; color: #6E6557; background: var(--band); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.dash2-date { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: #3E4B4F; white-space: nowrap; padding: 12px 0; }
.dash2-date svg { color: #5E6B68; }
.dash2-user-wrap { position: relative; flex: 0 0 auto; }
.dash2-avatar { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--green); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(31,30,28,.10); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease); }
.dash2-avatar:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31,30,28,.14); }
.dash2-avatar:focus-visible { outline: 3px solid rgba(46,64,52,.22); outline-offset: 3px; }
.dash2-avatar[aria-expanded="true"] { background: #24352A; }
.dash2-user-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 80; width: 230px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 42px rgba(31,30,28,.16); }
.dash2-user-menu[hidden] { display: none !important; }
.dash2-user-menu-head { display: grid; gap: 3px; padding: 10px 10px 11px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dash2-user-menu-head span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #81796D; }
.dash2-user-menu-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--char); }
.dash2-user-item { width: 100%; display: flex; align-items: center; min-height: 40px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--char); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.dash2-user-item:hover, .dash2-user-item:focus-visible { background: var(--band); outline: none; }
.dash2-user-danger { color: #A33A32; }
.dash2-user-danger:hover, .dash2-user-danger:focus-visible { background: #FCEDEA; }

/* Cards: off-white, warm border, soft shadow */
.dash2-card { background: var(--off); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); min-width: 0; display: grid; gap: 12px; align-content: start; padding: 16px 18px 14px; }
.dash2-card-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash2-card-hd h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: #1B2A38; min-width: 0; }
.dash2-hd-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; color: var(--green); }
.dash2-hd-ic svg { width: 22px; height: 22px; }
.dash2-hd-ic.dash2-tone-warn { color: var(--warn); }
.dash2-count { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 700; }
.dash2-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--green); padding: 6px 8px; border-radius: 8px; white-space: nowrap; transition: background-color .2s var(--ease); }
.dash2-link:hover { background: var(--band); }
.dash2-card-foot { display: flex; justify-content: flex-end; }
.dash2-hint { margin-top: 4px; font-size: 14px; color: #6E7673; }
.dash2-foot { font-size: 13px; color: #6E7673; line-height: 1.5; }
.dash2-empty { display: flex; align-items: center; gap: 10px; padding: 16px 4px; color: #6E7673; font-size: 14px; }
.dash2-empty-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: 0 0 10px; }
.dash2-meta { font-size: 14px; color: #6E7673; }
.dash2-hz-note { font-size: 14px; font-weight: 500; color: #6E7673; }

/* KPI row: five distinct cards, line icon, label, value, context, status dot */
.dash2-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.dash2-kpi { display: grid; gap: 6px; align-content: start; min-height: 96px; padding: 14px 18px 12px; text-align: left; min-width: 0; background: var(--off); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);  }
.dash2-kpi:nth-child(1) {  }
.dash2-kpi:nth-child(2) {  }
.dash2-kpi:nth-child(3) {  }
.dash2-kpi:nth-child(4) {  }
.dash2-kpi:nth-child(5) {  }
.dash2-kpi:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(31, 30, 28, .05), 0 14px 28px -16px rgba(31, 30, 28, .25); border-color: var(--gold); }
.dash2-kpi-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash2-kpi-ic { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; color: var(--green); }
.dash2-kpi-ic svg { width: 22px; height: 22px; }
.dash2-kpi-label { font-size: 15px; font-weight: 600; color: #2A3A47; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dash2-kpi-value { font-size: 28px; font-weight: 700; line-height: 1.05; letter-spacing: -.025em; color: #16222D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash2-kpi-sub { font-size: 13px; color: #5E6B68; line-height: 1.4; min-width: 0; }
.dash2-kpi-sub .dash2-dot-s { margin-right: 6px; vertical-align: 1px; }
.dash2-kpi-sub b { font-weight: 700; color: #2A3A47; }
.dash2-dot-s { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: 0 0 9px; }
.dash2-dot-s.dash2-tone-warn { background: #D9941F; }
.dash2-dot-s.dash2-tone-bad { background: #C0503A; }
.dash2-dot-s.dash2-tone-ok { background: var(--ok); }
.dash2-tx-bad { color: var(--bad); }
.dash2-tone-ok { color: var(--ok); }
.dash2-tone-bad { color: var(--bad); }
.dash2-tone-warn { color: var(--warn); }
.dash2-tone-rest, .dash2-tone-neutral, .dash2-muted { color: #7C7568; }
.dash2-kpi--sk { min-height: 132px; }

/* Shipment Control Tower: the centrepiece */
.dash2-tower { grid-column: 1 / -1; gap: 12px; padding: 16px 18px 12px; background: linear-gradient(180deg, #FBFAF7 0%, #F8F5EE 100%);  }
.dash2-tower-hd { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.dash2-tower-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dash2-tower-ic { display: grid; place-items: center; width: 40px; height: 40px; color: var(--green); }
.dash2-tower-ic svg { width: 34px; height: 34px; }
.dash2-tower-title h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: #1B2A38; }
.dash2-tower-title .dash2-hint { margin-top: 2px; font-size: 14px; }
.dash2-filters { display: inline-flex; flex-wrap: wrap; gap: 0; padding: 4px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.dash2-chip-f { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #3E4B4F; transition: background-color .2s var(--ease), color .2s var(--ease); }
.dash2-chip-f:hover { background: var(--band); }
.dash2-chip-f.is-active { background: var(--green); color: #fff; }
.dash2-chip-f span:last-child { opacity: .8; font-weight: 500; }
.dash2-legs { display: grid; gap: 12px; }
.dash2-legs.is-swapping { opacity: 0; transform: translateX(-6px); transition: opacity .14s var(--ease), transform .14s var(--ease); }
.dash2-legs.is-entering {  }
.dash2-tower-foot { display: flex; justify-content: flex-end; padding: 0 4px; }
.dash2-tower-more { font-size: 14px; }

/* One shipment row: identity | vessel | route + timeline | status + ETA */
.dash2-ship {
  display: grid; grid-template-columns: minmax(270px, 290px) 130px minmax(0, 1fr) 150px; align-items: center; gap: 20px;
  min-height: 104px; padding: 10px 16px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(31, 30, 28, .03);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease); 
}
.dash2-legs .dash2-ship:nth-child(1) {  }
.dash2-legs .dash2-ship:nth-child(2) {  }
.dash2-legs .dash2-ship:nth-child(3) {  }
.dash2-ship:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -16px rgba(31, 30, 28, .28); border-color: var(--gold); }
.dash2-ident { display: flex; align-items: center; gap: 18px; min-width: 0; }
.dash2-liner { display: inline-flex; flex: 0 0 auto; }
.dash2-shipinfo { display: grid; gap: 3px; min-width: 0; }
.dash2-shipinfo strong { font-size: 16px; font-weight: 700; color: #1B2A38; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash2-shipinfo small { font-size: 13px; color: #4F5B5E; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash2-contline { display: flex; align-items: center; gap: 6px; color: #2A3A47 !important; font-weight: 600; }
.dash2-boxic { width: 16px; height: 16px; flex: 0 0 16px; color: #6E6557; }
.dash2-vessel { display: flex; align-items: center; justify-content: center; min-width: 0; }
.dash2-vessel img { width: 124px; height: auto; max-height: 56px; object-fit: contain; }
.dash2-route { display: grid; gap: 10px; min-width: 0; }
.dash2-routetop { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #1F2E3B; min-width: 0; }
.dash2-place { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash2-pin { width: 16px; height: 16px; flex: 0 0 16px; color: #3E6A55; }
.dash2-routearrow { font-style: normal; color: #7C7568; font-size: 16px; line-height: 1; }
.dash2-progress { position: relative; height: 24px; margin: 0 8px; }
.dash2-base, .dash2-fill { position: absolute; left: 0; right: 0; top: 9px; height: 5px; border-radius: 99px; }
.dash2-base { background: #DAD4C7; }
.dash2-fill { left: 0; right: auto; width: 100%; background: var(--green); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.dash2-nodes { position: absolute; left: 0; right: 0; top: 4px; display: grid; grid-template-columns: repeat(5, 1fr); }
.dash2-nodew { display: flex; justify-content: center; }
.dash2-node { width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; border: 3px solid #CFC8BB; }
.dash2-nodew.is-done .dash2-node { background: var(--green); border-color: var(--green); }
.dash2-nodew.is-current .dash2-node { width: 21px; height: 21px; background: #FFFFFF; border: 5px solid var(--green); box-shadow: 0 0 0 4px rgba(46, 64, 52, .14); }
.dash2-ship-risk .dash2-fill { background: #B07B25; }
.dash2-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.dash2-stage { display: grid; gap: 2px; justify-items: center; text-align: center; font-size: 12.5px; color: #8A8378; min-width: 0; overflow: visible; }
.dash2-stage b { font-size: 12.5px; font-weight: 600; color: #6E6557; white-space: nowrap; max-width: none; }
.dash2-stage span { font-size: 12.5px; }
.dash2-stage.is-done b, .dash2-stage.is-done span { color: #3E4B4F; }
.dash2-stage.is-current b { color: var(--char); font-weight: 700; }
.dash2-status { display: grid; justify-items: stretch; gap: 10px; }
.dash2-statuspill { justify-self: center; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.stGreen { background: var(--ok-soft); color: var(--ok); }
.stBlue { background: var(--info-soft); color: var(--info); }
.stAmber { background: var(--warn-soft); color: var(--warn); }
.dash2-eta { display: grid; justify-items: center; gap: 2px; padding: 10px 12px 9px; border: 1px solid var(--gold); border-radius: 12px; background: #F7F1E3; box-shadow: var(--shadow); }
.dash2-eta-l { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #5E6B68; }
.dash2-calic { width: 14px; height: 14px; color: #5E6B68; }
.dash2-eta strong { font-size: 24px; font-weight: 700; line-height: 1.15; color: #16222D; letter-spacing: -.02em; }
.dash2-eta span:last-child { font-size: 13px; color: #6E6557; }
.dash2-ship-risk .dash2-eta { border-color: #E6C9A4; }
.dash2-ship-risk .dash2-eta strong { color: var(--bad); }
.dash2-eta.is-changed { animation: dash2-flash 1.4s var(--ease) both; }

/* Liner identity: real controlled logos, shown large enough to read */
.dash2-mark { display: inline-grid; place-items: center; width: 84px; height: 62px; flex: 0 0 auto; padding: 6px; border-radius: 12px; overflow: hidden; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(31, 30, 28, .06); transition: transform .22s var(--ease); }
.dash2-mark img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.dash2-mark-neutral { background: var(--band); color: #6E6557; }
.dash2-mark-neutral svg { width: 28px; height: 28px; }
.dash2-liner-s { display: inline-flex; }
.dash2-liner-s .dash2-mark { width: 74px; height: 50px; padding: 4px; border-radius: 10px; }
.dash2-ship:hover .dash2-mark { transform: scale(1.02); }

/* Needs Attention */
.dash2-attn { grid-column: 1; }
.dash2-att { display: grid; }
.dash2-att-row { display: grid; gap: 2px; width: 100%; min-height: 50px; padding: 7px 2px; text-align: left; border-top: 1px solid var(--line-2);  transition: background-color .2s var(--ease); }
.dash2-att-row:first-child { border-top: 0; }
.dash2-att-row:hover { background: #F4F0E7; }
.dash2-att-row:nth-child(1) {  }
.dash2-att-row:nth-child(2) {  }
.dash2-att-row:nth-child(3) {  }
.dash2-att-row:nth-child(4) {  }
.dash2-att-row:nth-child(5) {  }
.dash2-att-line1 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.dash2-att-party { font-size: 15px; font-weight: 600; color: #1B2A38; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dash2-att-amt { font-size: 15px; font-weight: 700; color: #1B2A38; white-space: nowrap; flex: 0 0 auto; }
.dash2-att-line2 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash2-pill { display: inline-flex; align-items: center; flex: 0 0 auto; height: 24px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.dash2-pill-red { background: var(--bad-soft); color: var(--bad); }
.dash2-pill-amber { background: var(--warn-soft); color: var(--warn); }
.dash2-pill-neutral { background: var(--band); color: #6E6557; }
.dash2-pill-blue { background: var(--info-soft); color: var(--info); }
.dash2-att-meta { flex: 1 1 auto; min-width: 0; font-size: 13px; color: #6E7673; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash2-att-due { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--bad); white-space: nowrap; }
.dash2-att-na { font-size: 13px; font-weight: 600; color: #7C7568; white-space: nowrap; }
.dash2-card-foot { padding-top: 2px; }

/* Inventory Replenishment */
.dash2-repl { grid-column: 2; }
.dash2-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dash2-table th { text-align: left; font-size: 13px; font-weight: 600; color: #6E7673; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dash2-table td { font-size: 14.5px; font-weight: 600; color: #1F2E3B; padding: 14px 6px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.dash2-table tr:last-child td { border-bottom: 0; }
.dash2-r { text-align: right !important; }
.dash2-table tbody tr { transition: background-color .18s var(--ease); }
.dash2-table tbody tr:hover { background: #F4F0E7; }
.dash2-item-name { display: block; font-weight: 600; color: #1B2A38; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash2-item-sku { display: block; font-size: 12.5px; color: #7C7568; font-weight: 500; margin-top: 2px; }
.dash2-table td.dash2-incoming, .dash2-table td.dash2-tone-ok { color: var(--ok); font-weight: 700; }
.dash2-repl .dash2-foot { margin-top: auto; }

/* Cash Horizon */
.dash2-cash { grid-column: 3; }
.dash2-cash-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash2-cash-sum > div { display: grid; gap: 4px; padding: 10px 2px; min-width: 0; }
.dash2-cash-sum .dash2-kpi-label { font-size: 14px; font-weight: 500; color: #4F5B5E; white-space: nowrap; }
.dash2-cash-sum b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: #16222D; white-space: nowrap; }
.dash2-mir { display: grid; gap: 0; }
.dash2-mir-row { display: grid; grid-template-columns: 116px minmax(0, 1fr) 96px; align-items: center; gap: 12px; padding: 6px 2px; }
.dash2-mir-label { font-size: 14px; font-weight: 500; color: #3E4B4F; white-space: nowrap; }
.dash2-bar-track { display: block; height: 10px; border-radius: 99px; background: #ECE7DC; overflow: hidden; }
.dash2-bar { display: block; height: 100%; width: var(--w, 0%); border-radius: 99px; background: var(--green); }
.dash2-bar-ar { background: var(--green); }
.dash2-bar-ap { background: #A89B86; }
.dash2-mir-val { display: grid; justify-items: end; font-size: 14px; font-weight: 700; color: #1B2A38; white-space: nowrap; }
.dash2-mir-val small { font-size: 11.5px; font-weight: 600; color: #7C7568; }
.dash2-net { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 12px; background: #F1E8D6; border: 1px solid #E5D6B6; }
.dash2-net-l { display: grid; gap: 3px; font-size: 16px; font-weight: 700; color: #2A3A47; }
.dash2-net-l small { font-size: 12.5px; font-weight: 500; color: #6E6557; }
.dash2-net-v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.dash2-net-v.dash2-tone-ok { color: var(--ok); }
.dash2-net-v.dash2-tone-bad { color: var(--bad); }
.dash2-net-v.dash2-tone-rest { color: var(--taupe); }

/* Bottom row: Next Arrivals and Recent Operational Changes (no heavier than the tower) */
.dash2-arrivals-card { grid-column: 1 / span 2; }
.dash2-arrivals { table-layout: fixed; }
.dash2-arrivals th:nth-child(1), .dash2-arrivals td:nth-child(1) { width: 15%; }
.dash2-arrivals th:nth-child(2), .dash2-arrivals td:nth-child(2) { width: 12%; }
.dash2-arrivals th:nth-child(3), .dash2-arrivals td:nth-child(3) { width: 13%; }
.dash2-arrivals th:nth-child(4), .dash2-arrivals td:nth-child(4) { width: 24%; }
.dash2-arrivals th:nth-child(5), .dash2-arrivals td:nth-child(5) { width: 16%; }
.dash2-arrivals th:nth-child(6), .dash2-arrivals td:nth-child(6) { width: 20%; }
.dash2-arrivals td { font-size: 14px; font-weight: 500; color: #2A3A47; white-space: normal; line-height: 1.35; }
.dash2-arrivals td strong { font-size: 14.5px; font-weight: 700; color: #1B2A38; }
.dash2-arrivals tbody tr { cursor: pointer; }
.dash2-arrivals .dash2-pill { height: 28px; }
.dash2-activity { grid-column: 3; }
.dash2-stream { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.dash2-stream::before { content: ""; position: absolute; left: 96px; top: 12px; bottom: 14px; width: 1px; background: #D6CFBF; }
.dash2-ev { position: relative; display: grid; grid-template-columns: 82px 20px minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 0;  }
.dash2-ev:nth-child(1) {  }
.dash2-ev:nth-child(2) {  }
.dash2-ev:nth-child(3) {  }
.dash2-ev:nth-child(4) {  }
.dash2-ev-time { font-size: 13.5px; color: #5E6B68; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.dash2-ev-rail { position: relative; z-index: 1; display: flex; justify-content: center; }
.dash2-ev-dot { display: block; width: 11px; height: 11px; border-radius: 50%; background: #FFFFFF; border: 2px solid #B9B2A4; }
.dash2-ev:nth-child(-n+2) .dash2-ev-dot { background: #2E8A5A; border-color: #2E8A5A; }
.dash2-ev-msg { font-size: 14.5px; color: #1F2E3B; line-height: 1.35; overflow-wrap: anywhere; }
.dash2-ev.is-new { animation: dash2-flash 1.4s var(--ease) both; }

/* Search dropdown: smooth command-palette open; appended to the body */
.dash2-pal { position: fixed; z-index: 1200; display: none; flex-direction: column; overflow: hidden; max-height: min(70vh, 520px); background: var(--off); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 22px 55px rgba(31, 30, 28, .16); transform-origin: top center; }
.dash2-pal:not([hidden]) { display: flex; }
.dash2-pal.is-open { animation: dash2-pal-in .2s var(--ease) both; }
.dash2-pal.is-closing { animation: dash2-pal-out .15s var(--ease) both; }
.dash2-pal-body { overflow-y: auto; padding: 8px; }
.dash2-pal-group + .dash2-pal-group { border-top: 1px solid var(--band); }
.dash2-pal-gh { padding: 8px 9px 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7C7568; }
.dash2-pal-item { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-size: 14px; transition: background-color .14s var(--ease); }
.dash2-pal-item.is-active { background: var(--band); }
.dash2-pal-id { font-weight: 700; color: var(--char); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash2-pal-sub { color: #6E7673; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: 13px; }
.dash2-pal-status { font-size: 12px; font-weight: 700; color: var(--info); background: var(--info-soft); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.dash2-pal-actions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.dash2-pal-action { border: 1px solid #cbd8e7; border-radius: 999px; padding: 5px 9px; background: #fff; color: #315e7d; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; }
.dash2-pal-action:hover, .dash2-pal-action:focus-visible { border-color: #16858c; background: #effafa; color: #0f6b72; outline: none; }
.dash2-pal-empty { display: grid; align-content: center; gap: 8px; min-height: 190px; padding: 40px 24px; text-align: center; color: #6E7673; font-size: 14px; }
.dash2-pal-empty strong { color: var(--ink); font-size: 15px; }
.dash2-pal-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 9px 12px; border-top: 1px solid var(--band); font-size: 12.5px; color: #6E7673; background: var(--cream); }
.dash2-pal-foot kbd { font: 700 12px "Plus Jakarta Sans", sans-serif; color: var(--ink); background: var(--off); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; margin-right: 3px; }

/* Placement: tower and KPIs full width; lower row 1 / 1.06 / 1; bottom row arrivals wide, activity narrow */
.dash2-col, .dash2-grid { display: contents; }

/* Motion: page entrance once, KPI stagger, track draws once, the current milestone pulses once, bars grow once */
@keyframes dash2-side { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes dash2-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dash2-kpi-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dash2-section { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dash2-ship { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dash2-row { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes dash2-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes dash2-draw { from { transform: scaleX(0); } to { transform: scaleX(var(--p, 0)); } }
@keyframes dash2-pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 120, 196, .28); } 75% { box-shadow: 0 0 0 8px rgba(47, 120, 196, 0); } 100% { box-shadow: 0 0 0 4px rgba(47, 120, 196, .14); } }
@keyframes dash2-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dash2-flash { from { background-color: #F6E8CB; } to { background-color: transparent; } }
@keyframes dash2-pal-in { from { opacity: 0; transform: translateY(-4px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes dash2-pal-out { from { opacity: 1; } to { opacity: 0; } }
.dash2--enter .dash2-nodew.is-done .dash2-node {  }
.dash2--enter .dash2-nodew.is-done:nth-child(1) .dash2-node {  }
.dash2--enter .dash2-nodew.is-done:nth-child(2) .dash2-node {  }
.dash2--enter .dash2-nodew.is-done:nth-child(3) .dash2-node {  }
.dash2--enter .dash2-nodew.is-current .dash2-node {  }
.dash2--enter .dash2-mir-row {  }
.dash2 .dash2-bar { transform-origin: left center;  }
.dash2 .dash2-bar-ar, .dash2 .dash2-bar-ap { width: var(--w, 0%); }
.dash2 .is-changed { animation: dash2-flash 1.4s var(--ease) both; }
.dash2-sk { display: block; height: 14px; margin: 10px 0; border-radius: 7px; background: linear-gradient(90deg, var(--band), #E7E0D2, var(--band)); background-size: 200% 100%; animation: dash2-shimmer 1.6s linear infinite; }
@keyframes dash2-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Reduced motion: no entrance, no track drawing, no pulses, no number or palette motion. Layout is unchanged. */
@media (prefers-reduced-motion: reduce) {
  .dash2 *, .dash2 *::before, .dash2 *::after, .dash2-pal, .dash2-pal *, .dash2-pal *::before, .dash2-pal *::after {
    animation: none !important;
    transition: none !important;
  }
  .dash2 .dash2-fill { transform: scaleX(var(--p, 0)); }
  .dash2 .dash2-bar { transform: none; }
  .dash2 .dash2-kpi:hover, .dash2 .dash2-card:hover, .dash2 .dash2-card:active, .dash2 .dash2-ship:hover, .dash2 .dash2-nav-item:hover { transform: none; }
  .dash2 .dash2-card:hover .dash2-hd-ic { transform: none; }
  .dash2-legs.is-swapping { opacity: 1; transform: none; }
}

/* Narrower desktops (below 1280px): the layout remains, with the lower row and shipment columns tightened */
@media (max-width: 1279px) {
  .dash2 { grid-template-columns: 200px minmax(0, 1fr); }
  .dash2-main { padding: 22px 22px 30px; }
  .dash2-ship { grid-template-columns: minmax(250px, 280px) 130px minmax(0, 1fr) 150px; gap: 16px; }
  .dash2-vessel img { width: 120px; }
  .dash2-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash2-search { min-width: 240px; }
}

/* ── Density pass (1440 first viewport): two primary rows; lower cards visible without scrolling ── */
.dash2-main { padding: 14px 28px 20px; gap: 12px; }
.dash2-greet { gap: 12px 24px; }
.dash2-title { font-size: 36px; }
.dash2-sub { margin-top: 4px; font-size: 14.5px; }
.dash2-search { height: 42px; }
.dash2-kpis { gap: 14px; }
.dash2-kpi { min-height: 0; padding: 12px 16px 10px; gap: 4px; }
.dash2-kpi-top { gap: 8px; }
.dash2-kpi-ic { width: 22px; height: 22px; flex-basis: 22px; }
.dash2-kpi-ic svg { width: 20px; height: 20px; }
.dash2-kpi-label { font-size: 14px; }
.dash2-kpi-value { font-size: 28px; line-height: 1.1; }
.dash2-kpi-sub { font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash2-tower { gap: 8px; padding: 14px 16px 10px; }
.dash2-tower-hd { gap: 10px 20px; }
.dash2-tower-title h2 { font-size: 22px; }
.dash2-tower-title .dash2-hint { font-size: 13px; }
.dash2-tower-ic { width: 36px; height: 36px; }
.dash2-tower-ic svg { width: 30px; height: 30px; }
.dash2-chip-f { height: 32px; padding: 0 12px; font-size: 13px; }
.dash2-legs { gap: 8px; }
.dash2-ship { min-height: 0; padding: 8px 14px; gap: 16px; grid-template-columns: minmax(270px, 300px) 120px minmax(0, 1fr) 150px; }
.dash2-mark { width: 80px; height: 58px; }
.dash2-liner-s .dash2-mark { width: 70px; height: 46px; }
.dash2-ident { gap: 14px; }
.dash2-shipinfo { gap: 1px; }
.dash2-shipinfo strong { font-size: 15px; }
.dash2-shipinfo small { font-size: 12.5px; line-height: 1.3; }
.dash2-boxic { width: 14px; height: 14px; flex-basis: 14px; }
.dash2-vessel img { width: 112px; max-height: 50px; }
.dash2-route { gap: 6px; }
.dash2-routetop { font-size: 14px; gap: 8px; }
.dash2-pin { width: 14px; height: 14px; flex-basis: 14px; }
.dash2-progress { height: 20px; }
.dash2-base, .dash2-fill { top: 7px; height: 5px; }
.dash2-nodes { top: 2px; }
.dash2-node { width: 14px; height: 14px; border-width: 2px; }
.dash2-nodew.is-current .dash2-node { width: 19px; height: 19px; border-width: 4px; }
.dash2-stages { gap: 2px; }
.dash2-stage { font-size: 12px; line-height: 1.25; }
.dash2-stage b { font-size: 12px; }
.dash2-stage span { font-size: 12px; }
.dash2-status { gap: 6px; }
.dash2-statuspill { height: 22px; padding: 0 10px; font-size: 12px; }
.dash2-eta { padding: 6px 10px 5px; gap: 0; }
.dash2-eta-l { font-size: 12px; line-height: 1.2; gap: 4px; }
.dash2-calic { width: 12px; height: 12px; }
.dash2-eta strong { font-size: 22px; line-height: 1.12; }
.dash2-eta span:last-child { font-size: 12px; line-height: 1.2; }
.dash2-card { gap: 8px; padding: 12px 16px 10px; }
.dash2-card-hd h2 { font-size: 17px; }
.dash2-hd-ic { width: 24px; height: 24px; flex-basis: 24px; }
.dash2-hd-ic svg { width: 20px; height: 20px; }
.dash2-link { font-size: 13px; padding: 4px 6px; }
.dash2-att { gap: 0; }
.dash2-att-row { min-height: 44px; padding: 5px 2px; gap: 2px; }
.dash2-att-party { font-size: 14px; }
.dash2-att-amt { font-size: 14px; }
.dash2-att-line2 { gap: 8px; }
.dash2-pill { height: 21px; padding: 0 8px; font-size: 11.5px; }
.dash2-att-meta { font-size: 12px; }
.dash2-att-due { font-size: 12px; }
.dash2-card-foot { padding-top: 0; }
.dash2-table td { padding: 8px 6px; font-size: 13.5px; }
.dash2-table th { padding: 7px 10px; font-size: 12px; }
.dash2-item-sku { font-size: 11.5px; }
.dash2-mir-row { padding: 4px 2px; }
.dash2-mir-label { font-size: 13px; }
.dash2-mir-val { font-size: 13px; }
.dash2-cash-sum > div { padding: 6px 2px; }
.dash2-cash-sum b { font-size: 22px; }
.dash2-net { padding: 10px 14px; }
.dash2-net-v { font-size: 22px; }
.dash2-net-l { font-size: 14px; }
/* Density: Cash Horizon amounts on one line; trimmed summary and net boxes; shipment rows slightly tighter */
.dash2-mir-val { display: flex; flex-direction: row; align-items: baseline; justify-content: flex-end; gap: 6px; }
.dash2-mir-val small { font-size: 11px; }
.dash2-mir-row { padding: 3px 2px; }
.dash2-cash-sum { gap: 10px; }
.dash2-cash-sum > div { padding: 2px 2px; gap: 0; }
.dash2-net { padding: 8px 14px; }
.dash2-ship { padding: 6px 14px; }
/* Density: fit the lower cards inside the first 900px viewport at 1440 */
.dash2-main { padding-top: 10px; gap: 10px; }
.dash2-kpi { padding: 10px 14px 8px; }
.dash2-tower { padding: 10px 14px 8px; gap: 6px; }
.dash2-legs { gap: 6px; }
.dash2-tower-foot { min-height: 0; }
.dash2-tower-more { padding: 2px 6px; }
.dash2-card { padding: 10px 14px 8px; }


/* ════════════════════════════════════════════════════════════════════════════════════════════════════
   MOTION SYSTEM. Timing tokens, named keyframes, and two scoped states only:
     .dash2--enter           first dashboard entry in this app lifecycle (set once in index.js)
     .dash2-reveal.is-revealed  scroll reveal, once per section (one IntersectionObserver in index.js)
   Entrance fills are "backwards", so hover transforms are never held back by an animation end state.
   ════════════════════════════════════════════════════════════════════════════════════════════════════ */
.dash2, .dash2-pal {
  --motion-fast: 180ms;
  --motion-ui: 260ms;
  --motion-card: 450ms;
  --motion-track: 850ms;
  --motion-normal: 280ms;
  --motion-slow: 480ms;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-spring: cubic-bezier(.25, 1.12, .4, 1);
  --motion-track-ease: cubic-bezier(.45, 0, .2, 1);
}

/* Search: clear control, press feedback, palette groups and selected rows */
.dash2-search-clear { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--band); color: #6E6557; font-size: 16px; line-height: 1; transition: background-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease), transform 80ms var(--motion-ease); }
.dash2-search-clear:hover { background: var(--gold); color: var(--char); }
.dash2-search-clear:active { transform: scale(.9); }
.dash2-search-clear[hidden] { display: none; }
.dash2-search-clear:not([hidden]) { animation: m-clear-in 140ms var(--motion-ease) backwards; }
.dash2-pal-item { transition: background-color 120ms var(--motion-ease), color 120ms var(--motion-ease), box-shadow 120ms var(--motion-ease); }
.dash2-pal-item.is-active { box-shadow: inset 2px 0 0 var(--green); color: var(--char); }
.dash2-pal.is-open .dash2-pal-group { animation: m-result-row 170ms var(--motion-ease) backwards; }
.dash2-pal.is-open .dash2-pal-group:nth-child(2) { animation-delay: 20ms; }
.dash2-pal.is-open .dash2-pal-group:nth-child(3) { animation-delay: 40ms; }
.dash2-pal.is-open .dash2-pal-group:nth-child(4) { animation-delay: 60ms; }
.dash2-pal.is-open .dash2-pal-group:nth-child(n+5) { animation-delay: 80ms; }

/* Sidebar: hover nudge; the active cream row transitions rather than snapping */
.dash2-nav-item { transition: background-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease); }
.dash2-nav-item:hover { transform: translateX(2px); }
.dash2-nav-ic { transition: transform var(--motion-fast) var(--motion-ease), opacity var(--motion-fast) var(--motion-ease); opacity: .92; }
.dash2-nav-item:hover .dash2-nav-ic { opacity: 1; transform: scale(1.06); }
.dash2-live-dot { animation: m-live-halo 2.8s ease-in-out infinite; }

/* KPI cards: tactile hover, vector layer with its own motion */
.dash2-kpi { transition: transform 200ms var(--motion-spring), box-shadow 200ms var(--motion-ease), border-color 200ms var(--motion-ease), background-color 200ms var(--motion-ease); }
.dash2-kpi:hover { transform: translateY(-5px); box-shadow: 0 4px 8px rgba(31, 30, 28, .07), 0 26px 44px -22px rgba(31, 30, 28, .36); border-color: var(--taupe); }
.dash2-kpi:hover .dash2-kpi-ic { background: #E4DDCC; color: #1B2A22; transform: scale(1.04); }
.dash2-kpi:active { transform: translateY(-1px) scale(.99); transition-duration: 90ms; }
.dash2-kpi-ic { transition: background-color 200ms var(--motion-ease), color 200ms var(--motion-ease), transform 200ms var(--motion-spring); }
/* Every card responds to the pointer: a small lift and a deeper shadow. Reduced motion turns this off below. */
.dash2-card { transition: transform 240ms var(--motion-spring), box-shadow 240ms var(--motion-ease), border-color 240ms var(--motion-ease); }
.dash2-card:hover { transform: translateY(-5px); box-shadow: 0 4px 8px rgba(31, 30, 28, .07), 0 26px 44px -22px rgba(31, 30, 28, .36); border-color: var(--taupe); }
.dash2-card .dash2-hd-ic { transition: transform 240ms var(--motion-spring), background-color 200ms var(--motion-ease); }
.dash2-card:hover .dash2-hd-ic { transform: scale(1.12) rotate(-4deg); }
.dash2-card:active { transform: translateY(-2px) scale(.995); transition-duration: 120ms; }
.dash2-kpi { position: relative; overflow: hidden; }
.dash2-kpi > * { position: relative; z-index: 1; }
.dash2-kpis .dash2-kpi:nth-child(1) { --kpi-d: 120ms; }
.dash2-kpis .dash2-kpi:nth-child(2) { --kpi-d: 200ms; }
.dash2-kpis .dash2-kpi:nth-child(3) { --kpi-d: 280ms; }
.dash2-kpis .dash2-kpi:nth-child(4) { --kpi-d: 360ms; }
.dash2-kpis .dash2-kpi:nth-child(5) { --kpi-d: 440ms; }

/* Shipment rows: hover lift on the row, vessel nudge on hover (no looping) */
.dash2-ship { transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease); }
.dash2-ship:hover { transform: translateY(-2px); }
.dash2-vessel img { transition: transform var(--motion-fast) var(--motion-ease); }
.dash2-ship:hover .dash2-vessel img { transform: translateX(2px); }
.dash2-statuspill.is-changed { animation: m-badge 320ms var(--motion-ease) backwards; }
.dash2-eta.is-changed { animation: m-highlight 1100ms var(--motion-ease) backwards; }

/* Lower-card rows: hover band, amount shift, pill contrast */
.dash2-att-row { transition: background-color 160ms var(--motion-ease); }
.dash2-att-row:hover { background: rgba(239, 235, 227, .6); }
.dash2-att-row:hover .dash2-att-amt { transform: translateX(-2px); }
.dash2-att-row:hover .dash2-pill { filter: contrast(1.08); }
.dash2-att-amt, .dash2-att-due { transition: transform 160ms var(--motion-ease); }
.dash2-pill { transition: filter 160ms var(--motion-ease); }

/* ── Dashboard sections: one choreography per Dashboard entry; each section reveals once per generation ── */
.dash2-reveal:not(.is-revealed) { opacity: 0; transform: translateY(14px); }
.dash2-attn.dash2-reveal:not(.is-revealed) { opacity: 0; transform: translateY(14px) scale(.99); }
.dash2-reveal.is-revealed { animation: m-reveal 430ms var(--motion-ease) var(--sec-d, 0ms) backwards; }
.dash2-attn.is-revealed { animation: m-attn 420ms var(--motion-ease) var(--sec-d, 0ms) backwards; }
/* Already revealed in this generation (same-route rerender, data update): final state, no replay */
.dash2-noanim, .dash2-noanim * { animation: none !important; }
.dash2-noanim .dash2-incoming.is-changed { animation: m-highlight 1200ms var(--motion-ease) backwards !important; }
.dash2-noanim .dash2-ev.is-new { animation: dash2-flash 1.4s var(--ease) both !important; }

/* ── One-time entrance (first render in this app lifecycle only) ───────────────────────────────── */
.dash2--enter .dash2-rail { animation: m-side 320ms var(--motion-ease) backwards; }
.dash2--enter .dash2-brand-mark { animation: m-plate 300ms var(--motion-ease) backwards; }
.dash2--enter .dash2-brand-name { animation: m-text 320ms var(--motion-ease) 160ms backwards; }
.dash2--enter .dash2-greet-l { animation: m-up 300ms var(--motion-ease) 40ms backwards; }
.dash2--enter .dash2-greet-r { animation: m-down 320ms var(--motion-ease) 110ms backwards; }
.dash2--enter .dash2-kpi { animation: m-kpi-surface 420ms var(--motion-ease) var(--kpi-d) backwards; }
.dash2--enter .dash2-kpi-ic { animation: m-kpi-icon 320ms var(--motion-spring) calc(var(--kpi-d) + 40ms) backwards; }
.dash2--enter .dash2-kpi-label { animation: m-kpi-label 260ms var(--motion-ease) calc(var(--kpi-d) + 80ms) backwards; }
.dash2--enter .dash2-kpi-value { animation: m-kpi-value 350ms var(--motion-ease) calc(var(--kpi-d) + 160ms) backwards; }
.dash2--enter .dash2-kpi-sub { animation: m-kpi-sub 260ms var(--motion-ease) calc(var(--kpi-d) + 230ms) backwards; }
.dash2--enter .dash2-tower { animation: m-tower 520ms var(--motion-ease) 600ms backwards; }
.dash2--enter .dash2-ship { animation: m-row 420ms var(--motion-ease) var(--row-d) backwards; }
.dash2--enter .dash2-legs .dash2-ship:nth-child(1) { --row-d: 800ms; }
.dash2--enter .dash2-legs .dash2-ship:nth-child(2) { --row-d: 900ms; }
.dash2--enter .dash2-liner { animation: m-plate 260ms var(--motion-ease) calc(var(--row-d) + 0ms) backwards; }
.dash2--enter .dash2-shipinfo { animation: m-left5 300ms var(--motion-ease) calc(var(--row-d) + 40ms) backwards; }
.dash2--enter .dash2-vessel img { animation: m-vessel 420ms var(--motion-ease) calc(var(--row-d) + 80ms) backwards; }
.dash2--enter .dash2-routetop { animation: m-down3 280ms var(--motion-ease) calc(var(--row-d) + 120ms) backwards; }
.dash2--enter .dash2-fill { animation: m-draw 900ms var(--motion-track-ease) calc(var(--row-d) + 120ms) backwards; }
.dash2--enter .dash2-nodew .dash2-node { animation: m-node 220ms var(--motion-ease) calc(var(--row-d) + var(--node-d)) backwards; }
.dash2--enter .dash2-nodew:nth-child(1) { --node-d: 180ms; }
.dash2--enter .dash2-nodew:nth-child(2) { --node-d: 280ms; }
.dash2--enter .dash2-nodew:nth-child(3) { --node-d: 380ms; }
.dash2--enter .dash2-nodew:nth-child(4) { --node-d: 480ms; }
.dash2--enter .dash2-nodew:nth-child(5) { --node-d: 580ms; }
.dash2--enter .dash2-nodew.is-current .dash2-node { animation: m-node 220ms var(--motion-ease) calc(var(--row-d) + var(--node-d)) backwards, m-pulse 600ms ease-out calc(var(--row-d) + 1020ms) backwards; }
.dash2--enter .dash2-stage { animation: m-text 240ms var(--motion-ease) calc(var(--row-d) + 200ms) backwards; }
.dash2--enter .dash2-status { animation: m-eta 360ms var(--motion-ease) calc(var(--row-d) + 1040ms) backwards; }

/* ── Section contents (inside an entering section; delays are relative to the section delay --sec-d) ── */
/* Needs Attention: heading, count badge (+50ms), View All (+110ms), rows as units (45ms stagger) */
.dash2-attn.is-revealed .dash2-card-hd h2 { animation: m-text 260ms var(--motion-ease) var(--sec-d, 0ms) backwards; }
.dash2-attn.is-revealed .dash2-count { animation: m-badge-in 250ms var(--motion-spring) calc(var(--sec-d, 0ms) + 50ms) backwards; }
.dash2-attn.is-revealed .dash2-card-hd > .dash2-link { animation: m-text 240ms var(--motion-ease) calc(var(--sec-d, 0ms) + 110ms) backwards; }
.dash2-attn.is-revealed .dash2-att-row { animation: m-row-x 280ms var(--motion-ease) backwards; animation-delay: calc(var(--sec-d, 0ms) + 140ms); }
.dash2-attn.is-revealed .dash2-att-row:nth-child(2) { animation-delay: calc(var(--sec-d, 0ms) + 185ms); }
.dash2-attn.is-revealed .dash2-att-row:nth-child(3) { animation-delay: calc(var(--sec-d, 0ms) + 230ms); }
.dash2-attn.is-revealed .dash2-att-row:nth-child(4) { animation-delay: calc(var(--sec-d, 0ms) + 275ms); }
.dash2-attn.is-revealed .dash2-att-row:nth-child(5) { animation-delay: calc(var(--sec-d, 0ms) + 320ms); }

/* Inventory Replenishment: heading, View All (+60ms), header row once, rows (45ms stagger), incoming (+70ms after its row), projected (+35ms after incoming) */
.dash2-repl.is-revealed .dash2-card-hd h2 { animation: m-text 260ms var(--motion-ease) var(--sec-d, 0ms) backwards; }
.dash2-repl.is-revealed .dash2-card-hd > .dash2-link { animation: m-text 240ms var(--motion-ease) calc(var(--sec-d, 0ms) + 60ms) backwards; }
.dash2-repl.is-revealed thead { animation: m-down3 240ms var(--motion-ease) calc(var(--sec-d, 0ms) + 80ms) backwards; }
.dash2-repl.is-revealed tbody tr { animation: m-up6 300ms var(--motion-ease) backwards; animation-delay: calc(var(--sec-d, 0ms) + 120ms); }
.dash2-repl.is-revealed tbody tr:nth-child(2) { animation-delay: calc(var(--sec-d, 0ms) + 165ms); }
.dash2-repl.is-revealed tbody tr:nth-child(3) { animation-delay: calc(var(--sec-d, 0ms) + 210ms); }
.dash2-repl.is-revealed tbody tr:nth-child(4) { animation-delay: calc(var(--sec-d, 0ms) + 255ms); }
.dash2-repl.is-revealed tbody tr:nth-child(5) { animation-delay: calc(var(--sec-d, 0ms) + 300ms); }
.dash2-repl.is-revealed .dash2-incoming { animation: m-incoming 240ms var(--motion-ease) backwards; animation-delay: calc(var(--sec-d, 0ms) + 190ms); }
.dash2-repl.is-revealed tbody tr:nth-child(2) .dash2-incoming { animation-delay: calc(var(--sec-d, 0ms) + 235ms); }
.dash2-repl.is-revealed tbody tr:nth-child(3) .dash2-incoming { animation-delay: calc(var(--sec-d, 0ms) + 280ms); }
.dash2-repl.is-revealed tbody tr:nth-child(4) .dash2-incoming { animation-delay: calc(var(--sec-d, 0ms) + 325ms); }
.dash2-repl.is-revealed tbody tr:nth-child(5) .dash2-incoming { animation-delay: calc(var(--sec-d, 0ms) + 370ms); }
.dash2-repl.is-revealed .dash2-proj { animation: m-fade 240ms var(--motion-ease) backwards; animation-delay: calc(var(--sec-d, 0ms) + 225ms); }
.dash2-repl.is-revealed tbody tr:nth-child(2) .dash2-proj { animation-delay: calc(var(--sec-d, 0ms) + 270ms); }
.dash2-repl.is-revealed tbody tr:nth-child(3) .dash2-proj { animation-delay: calc(var(--sec-d, 0ms) + 315ms); }
.dash2-repl.is-revealed tbody tr:nth-child(4) .dash2-proj { animation-delay: calc(var(--sec-d, 0ms) + 360ms); }
.dash2-repl.is-revealed tbody tr:nth-child(5) .dash2-proj { animation-delay: calc(var(--sec-d, 0ms) + 405ms); }

/* Cash Horizon: heading, Money In / Money Out tiles, four bars (90ms stagger, left origin), Net Position last */
.dash2-cash.is-revealed .dash2-card-hd h2 { animation: m-text 260ms var(--motion-ease) var(--sec-d, 0ms) backwards; }
.dash2-cash.is-revealed .dash2-cash-sum > div:nth-child(1) { animation: m-up4 260ms var(--motion-ease) calc(var(--sec-d, 0ms) + 40ms) backwards; }
.dash2-cash.is-revealed .dash2-cash-sum > div:nth-child(2) { animation: m-up4 260ms var(--motion-ease) calc(var(--sec-d, 0ms) + 100ms) backwards; }
.dash2-cash.is-revealed .dash2-mir-row:nth-child(1) .dash2-bar { animation: m-bar 700ms var(--motion-track-ease) calc(var(--sec-d, 0ms) + 220ms) backwards; }
.dash2-cash.is-revealed .dash2-mir-row:nth-child(2) .dash2-bar { animation: m-bar 700ms var(--motion-track-ease) calc(var(--sec-d, 0ms) + 310ms) backwards; }
.dash2-cash.is-revealed .dash2-mir-row:nth-child(3) .dash2-bar { animation: m-bar 700ms var(--motion-track-ease) calc(var(--sec-d, 0ms) + 400ms) backwards; }
.dash2-cash.is-revealed .dash2-mir-row:nth-child(4) .dash2-bar { animation: m-bar 700ms var(--motion-track-ease) calc(var(--sec-d, 0ms) + 490ms) backwards; }
.dash2-cash.is-revealed .dash2-net { animation: m-up4 280ms var(--motion-ease) calc(var(--sec-d, 0ms) + 1200ms) backwards; }

/* Next Arrivals: heading, View All (+60ms), header row once, rows (55ms stagger), carrier logo (+60ms in row), days (+120ms in row) */
.dash2-arrivals-card.is-revealed .dash2-card-hd h2 { animation: m-text 260ms var(--motion-ease) var(--sec-d, 0ms) backwards; }
.dash2-arrivals-card.is-revealed .dash2-card-hd > .dash2-link { animation: m-text 240ms var(--motion-ease) calc(var(--sec-d, 0ms) + 60ms) backwards; }
.dash2-arrivals-card.is-revealed thead { animation: m-down3 230ms var(--motion-ease) calc(var(--sec-d, 0ms) + 60ms) backwards; }
.dash2-arrivals-card.is-revealed tbody tr { animation: m-up7 280ms var(--motion-ease) backwards; animation-delay: calc(var(--sec-d, 0ms) + 100ms); }
.dash2-arrivals-card.is-revealed tbody tr:nth-child(2) { animation-delay: calc(var(--sec-d, 0ms) + 155ms); }
.dash2-arrivals-card.is-revealed tbody tr:nth-child(3) { animation-delay: calc(var(--sec-d, 0ms) + 210ms); }
.dash2-arrivals-card.is-revealed tbody tr:nth-child(4) { animation-delay: calc(var(--sec-d, 0ms) + 265ms); }
.dash2-arrivals-card.is-revealed tbody tr:nth-child(1) .dash2-mark { animation: m-scale88 240ms var(--motion-ease) calc(var(--sec-d, 0ms) + 160ms) backwards; }
.dash2-arrivals-card.is-revealed tbody tr:nth-child(2) .dash2-mark { animation: m-scale88 240ms var(--motion-ease) calc(var(--sec-d, 0ms) + 215ms) backwards; }
.dash2-arrivals-card.is-revealed tbody tr:nth-child(3) .dash2-mark { animation: m-scale88 240ms var(--motion-ease) calc(var(--sec-d, 0ms) + 270ms) backwards; }
.dash2-arrivals-card.is-revealed tbody tr:nth-child(4) .dash2-mark { animation: m-scale88 240ms var(--motion-ease) calc(var(--sec-d, 0ms) + 325ms) backwards; }
.dash2-arrivals-card.is-revealed tbody tr:nth-child(1) .dash2-pill { animation: m-in-x4 230ms var(--motion-ease) calc(var(--sec-d, 0ms) + 220ms) backwards; }
.dash2-arrivals-card.is-revealed tbody tr:nth-child(2) .dash2-pill { animation: m-in-x4 230ms var(--motion-ease) calc(var(--sec-d, 0ms) + 275ms) backwards; }
.dash2-arrivals-card.is-revealed tbody tr:nth-child(3) .dash2-pill { animation: m-in-x4 230ms var(--motion-ease) calc(var(--sec-d, 0ms) + 330ms) backwards; }
.dash2-arrivals-card.is-revealed tbody tr:nth-child(4) .dash2-pill { animation: m-in-x4 230ms var(--motion-ease) calc(var(--sec-d, 0ms) + 385ms) backwards; }

/* Recent Operational Changes: heading, the stream line draws top to bottom, dots (70ms), each item as one unit (55ms) */
.dash2-activity.is-revealed .dash2-card-hd h2 { animation: m-text 260ms var(--motion-ease) var(--sec-d, 0ms) backwards; }
.dash2-activity.is-revealed .dash2-stream::before { transform-origin: top center; animation: m-scaley 550ms var(--motion-track-ease) var(--sec-d, 0ms) backwards; }
.dash2-activity.is-revealed .dash2-ev-dot { animation: m-dot 240ms var(--motion-ease) calc(var(--sec-d, 0ms) + 80ms) backwards; }
.dash2-activity.is-revealed .dash2-ev:nth-child(2) .dash2-ev-dot { animation-delay: calc(var(--sec-d, 0ms) + 150ms); }
.dash2-activity.is-revealed .dash2-ev:nth-child(3) .dash2-ev-dot { animation-delay: calc(var(--sec-d, 0ms) + 220ms); }
.dash2-activity.is-revealed .dash2-ev:nth-child(4) .dash2-ev-dot { animation-delay: calc(var(--sec-d, 0ms) + 290ms); }
.dash2-activity.is-revealed .dash2-ev { animation: m-in-x6 280ms var(--motion-ease) backwards; animation-delay: calc(var(--sec-d, 0ms) + 100ms); }
.dash2-activity.is-revealed .dash2-ev:nth-child(2) { animation-delay: calc(var(--sec-d, 0ms) + 155ms); }
.dash2-activity.is-revealed .dash2-ev:nth-child(3) { animation-delay: calc(var(--sec-d, 0ms) + 210ms); }
.dash2-activity.is-revealed .dash2-ev:nth-child(4) { animation-delay: calc(var(--sec-d, 0ms) + 265ms); }

/* Hover: Needs Attention rows move 2px on a warm surface; clickable Next Arrivals rows take the same warm surface */
.dash2-att-row { transition: background-color 180ms var(--motion-ease), transform 180ms var(--motion-ease); }
.dash2-att-row:hover { transform: translateX(2px); }
.dash2-arrivals tbody tr { transition: background-color 180ms var(--motion-ease); }
.dash2-arrivals tbody tr:hover { background: #F4F0E7; }

/* ── Filter switch: rows leave, then the new set enters; the pill colours transition ───────────── */
.dash2-chip-f { transition: background-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease); }
.dash2-legs.is-swapping { opacity: 0; transform: translateY(-5px); transition: opacity 150ms var(--motion-ease), transform 150ms var(--motion-ease); }
.dash2-legs.is-entering .dash2-ship { animation: m-up7 240ms var(--motion-ease) backwards; }
.dash2-legs.is-entering .dash2-ship:nth-child(2) { animation-delay: 30ms; }

/* ── Keyframes ────────────────────────────────────────────────────────────────────────────────── */
@keyframes m-side { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes m-plate { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes m-text { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes m-up4 { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes m-up5 { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes m-up6 { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes m-up7 { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes m-up3 { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes m-left6 { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes m-up8 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes m-up12 { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes m-down { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes m-down3 { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@keyframes m-left5 { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: none; } }
@keyframes m-attn { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes m-row-x { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes m-scale88 { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes m-badge-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes m-in-x4 { from { opacity: 0; transform: translateX(4px); } to { opacity: 1; transform: none; } }
@keyframes m-in-x6 { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
@keyframes m-incoming { from { opacity: .25; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-kpi-surface { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes m-kpi-icon { from { opacity: 0; transform: scale(.72) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes m-kpi-label { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes m-kpi-value { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes m-kpi-sub { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes m-tower { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes m-row { from { opacity: 0; transform: translate(-12px, 6px); } to { opacity: 1; transform: none; } }
@keyframes m-vessel { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes m-draw { 0% { transform: scaleX(0); filter: brightness(1.22) saturate(1.5); } 80% { filter: brightness(1.08) saturate(1.2); } 100% { transform: scaleX(var(--p, 0)); filter: none; } }
@keyframes m-node { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes m-pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 120, 196, .42); } 100% { box-shadow: 0 0 0 9px rgba(47, 120, 196, 0); } }
@keyframes m-eta { from { opacity: 0; transform: translateX(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes m-badge { from { opacity: .35; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes m-highlight { 0% { background-color: rgba(220, 212, 192, .75); } 100% { background-color: transparent; } }
@keyframes m-reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes m-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes m-scale94 { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes m-scaley { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes m-dot { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes m-result-row { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes m-clear-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes m-live-halo { 0% { box-shadow: 0 0 0 0 rgba(93, 190, 124, .32); } 70% { box-shadow: 0 0 0 6px rgba(93, 190, 124, 0); } 100% { box-shadow: 0 0 0 0 rgba(93, 190, 124, 0); } }

/* ── Reduced motion: final states immediately; no translation, scale, draw, pulse, stagger, count or scroll wait ── */
@media (prefers-reduced-motion: reduce) {
  .dash2 *, .dash2 *::before, .dash2 *::after, .dash2-pal, .dash2-pal *, .dash2-pal *::before, .dash2-pal *::after {
    animation: none !important;
    transition: none !important;
  }
  .dash2-reveal:not(.is-revealed) { opacity: 1; transform: none; }
  .dash2 .dash2-fill { transform: scaleX(var(--p, 0)); }
  .dash2 .dash2-bar { transform: none; }
  .dash2 .dash2-kpi:hover, .dash2 .dash2-card:hover, .dash2 .dash2-card:active, .dash2 .dash2-ship:hover, .dash2 .dash2-nav-item:hover { transform: none; }
  .dash2 .dash2-card:hover .dash2-hd-ic { transform: none; }
}

/* Search palette: opens with a short translate and scale (190ms) */
.dash2-pal.is-open { animation: m-pal 220ms var(--motion-spring) backwards; }
@keyframes m-pal { from { opacity: 0; transform: translateY(-8px) scale(.975); box-shadow: 0 2px 8px rgba(31, 30, 28, .03); } to { opacity: 1; transform: none; box-shadow: 0 22px 55px rgba(31, 30, 28, .16); } }
