/* The signed-in overview follows the workbench's shared palette. */
.enterprise-shell .ie-home {
  --ie-panel-pad: clamp(1rem, 1.6vw, 1.5rem);
  --ie-space: 1rem;
  inline-size: 100%;
  max-inline-size: 100rem;
  min-inline-size: 0;
  line-height: 1.5;
}

.ie-home .ie-page-top {
  align-items: center;
  padding: 0;
  min-block-size: 4rem;
}

.ie-home .ie-page-top h1 { font-size: 1.625rem; line-height: 1.3; }
.ie-home .ie-page-top p { color: var(--ie-muted); font-size: .875rem; }
.ie-home .ie-page-date { flex-wrap: wrap; }
.ie-home .ie-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ie-space);
  overflow: visible;
  background: transparent;
  border: 0;
}

.ie-home .ie-kpis .ie-kpi {
  justify-items: stretch;
  align-content: space-between;
  gap: .5rem;
  min-inline-size: 0;
  min-block-size: 7.6rem;
  padding: 1rem 1.2rem;
  color: var(--ie-ink);
  background: var(--enterprise-surface);
  border: 1px solid var(--ie-line);
  border-radius: .75rem;
  box-shadow: 0 1px 2px var(--enterprise-shadow-subtle);
}

.ie-home .ie-kpis button.ie-kpi:hover { border-color: var(--enterprise-primary-border); background: var(--enterprise-primary-soft); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html[data-dashboard-motion="full"] .ie-home .ie-kpis button.ie-kpi:enabled {
    transition: transform 150ms ease-out, box-shadow 150ms ease-out;
  }
  html[data-dashboard-motion="full"] .ie-home .ie-kpis button.ie-kpi:enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--enterprise-shadow-raised);
  }
}
.ie-home .ie-kpi-head { justify-content: space-between; }
.ie-home .ie-kpi-head svg { flex: none; width: 1rem; height: 1rem; color: var(--ie-muted); }
.ie-home .ie-kpi > strong { font-size: 2rem; line-height: 1.15; font-weight: 680; letter-spacing: -.035em; }
.ie-home .ie-kpi > strong small { font-size: .8125rem; letter-spacing: normal; color: var(--ie-muted); }
.ie-home .ie-kpi-caption { overflow-wrap: anywhere; text-wrap: pretty; font-size: .8125rem; }
.ie-home .ie-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--ie-space);
  align-items: stretch;
}
.ie-home .ie-home-lower { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ie-home .ie-panel {
  min-inline-size: 0;
  padding: var(--ie-panel-pad);
  background: var(--enterprise-surface);
  border: 1px solid var(--ie-line);
  border-radius: .75rem;
  box-shadow: 0 1px 2px var(--enterprise-shadow-subtle);
}
.ie-home .ie-panel-head {
  padding: 0;
  margin-block-end: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .75rem;
}
.ie-home .ie-panel-head h2 { font-size: 1.125rem; line-height: 1.55; }
.ie-home .ie-panel-head p { font-size: .875rem; }
.ie-home .ie-panel-head :is(small, time) { font-size: .8125rem; color: var(--ie-muted); }
.ie-home .ie-panel-head .ghost-btn { margin: 0; padding-inline: .5rem; }

/* One set of date controls changes both the distribution and the detail table. */
.ie-home .ie-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  gap: .5rem;
  background: transparent;
  border: 0;
}
.ie-home .ie-days button {
  display: grid;
  gap: .25rem;
  padding: .65rem .75rem;
  min-height: 5.5rem;
  border: 1px solid var(--ie-line);
  border-radius: .5rem;
  background: var(--enterprise-surface);
  align-content: space-between;
}
.ie-home .ie-days button > span {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 .25rem;
}
.ie-home .ie-days button strong { font-size: .875rem; }
.ie-home .ie-days button time { font-size: .8125rem; white-space: nowrap; }
.ie-home .ie-days button > b { font-size: 1.375rem; line-height: 1.35; }
.ie-home .ie-days button small { margin-inline-start: .22rem; font-size: .8125rem; font-weight: 500; }
.ie-home .ie-days button:hover { background: var(--ie-faint); }
.ie-home .ie-days button[aria-pressed="true"] {
  color: var(--enterprise-primary-hover);
  border-color: var(--enterprise-primary);
  background: var(--ie-wash);
}
.ie-home .ie-day-bar {
  display: block;
  width: 100%;
  height: .3rem;
  overflow: hidden;
  background: var(--enterprise-chart-track);
  border-radius: 1rem;
}
.ie-home .ie-day-bar > i { display: block; height: 100%; background: var(--enterprise-primary); }
.ie-home .ie-day-summary {
  display: grid;
  gap: .4rem;
  margin-block: 1rem .65rem;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--ie-faint);
}
.ie-home .ie-day-summary h3 { font-size: .95rem; }
.ie-home .ie-kind-counts { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--ie-muted); font-size: .875rem; }
.ie-home .ie-kind-counts b { margin-inline-start: .2rem; color: var(--ie-ink); font-size: 1rem; }
.ie-home .ie-table-scroll {
  container: voyage / inline-size;
  max-inline-size: 100%;
  overflow: auto;
  overscroll-behavior-inline: contain;
}
.ie-home .ie-vessel-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
  color: var(--ie-ink);
}
.ie-home .ie-vessel-table :is(th, td) {
  position: static;
  padding: .55rem .45rem;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
  text-align: start;
  border: 0;
  box-shadow: none;
  background: transparent;
  font-size: .875rem;
  line-height: 1.5;
}
.ie-home .ie-vessel-table thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: var(--enterprise-surface);
  font-size: .8125rem;
  color: var(--ie-muted);
  border-block-end: 1px solid var(--ie-line);
  font-weight: 600;
}
.ie-home .ie-vessel-table th:nth-child(1) { width: 21%; }
.ie-home .ie-vessel-table th:nth-child(2) { width: 15%; }
.ie-home .ie-vessel-table th:nth-child(3) { width: 38%; }
.ie-home .ie-vessel-table tbody :is(td, th):first-child { font-weight: 650; }
.ie-home .ie-vessel-table tbody th strong { color: var(--ie-ink); }
.ie-home .ie-vessel-table tbody small { display: block; color: var(--ie-muted); font-weight: 400; }
.ie-home .ie-vessel-table tbody tr + tr > * { border-block-start: 1px solid var(--ie-line); }
.ie-home .ie-vessel-table tbody td:last-child { white-space: pre-line; }
.ie-home :is(.ie-source, .ie-source-notes) {
  margin: .65rem 0 0;
  color: var(--ie-muted);
  font-size: .8125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ie-home .ie-source-notes { color: var(--ie-ink); white-space: pre-line; }
.ie-home .ie-source ul, .ie-home .ie-source-notes ul { padding-inline-start: 1.35rem; }
.ie-home .ie-source svg { width: 1rem; height: 1rem; vertical-align: middle; }

/* Attention rows use the status text and retain the complete source context. */
.ie-home .ie-attention-list { margin: 0; padding: 0; list-style: none; }
.ie-home .ie-attention-list > li { padding: 0; border-block-start: 1px solid var(--ie-line); }
.ie-home .ie-attention-list > li > [hidden] { display: none; }
.ie-home .ie-attention-list > li > :is(button, span, a) {
  display: grid;
  justify-items: start;
  gap: .25rem;
  min-block-size: 3rem;
  inline-size: 100%;
  padding: .75rem .15rem;
  border: 0;
  background: transparent;
  color: var(--ie-ink);
  border-radius: .25rem;
  text-align: start;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ie-home .ie-attention-list button:hover { background: var(--ie-faint); }
.ie-home .ie-attention-list .ghost-btn:not([hidden]) {
  display: inline-flex;
  width: auto;
  min-height: 44px;
  color: var(--ie-accent);
}
.ie-home .ie-attention-list button strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  width: 100%;
}
.ie-home .ie-attention-list button strong svg { flex: none; width: 1rem; height: 1rem; color: var(--ie-accent); }
.ie-home .ie-attention-list small {
  padding: .08rem .36rem;
  border-radius: .25rem;
  color: var(--enterprise-info);
  background: var(--enterprise-info-soft);
  font-size: .8125rem;
}
.ie-home .ie-attention-list [data-nav="logistics"] small {
  color: var(--enterprise-warning);
  background: var(--enterprise-warning-soft);
}
.ie-home .ie-attention-list strong { font-size: .9375rem; }
.ie-home .ie-attention-list strong + span { font-size: .875rem; color: var(--ie-muted); }
.ie-home .ie-status-bar {
  display: flex;
  height: .65rem;
  overflow: hidden;
  margin-block: .75rem;
  background: var(--enterprise-chart-track);
  border-radius: 1rem;
}
.ie-home .ie-status-bar > i { display: block; height: 100%; }
.ie-home .ie-status-list-summary { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.ie-home .ie-status-list-summary span { display: inline-flex; align-items: baseline; gap: .25rem; font-size: .875rem; color: var(--ie-muted); }
.ie-home .ie-status-list-summary b { color: var(--ie-ink); }
.ie-home .ie-status-list-summary i { width: .45rem; height: .45rem; border-radius: 100%; align-self: center; }
.ie-home .ie-people-totals { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin-block: .75rem; }
.ie-home .ie-people-totals > div { display: grid; justify-items: start; gap: .125rem; }
.ie-home .ie-people-totals > div + div { border-inline-start: 1px solid var(--ie-line); padding-inline-start: 1.1rem; }
.ie-home .ie-people-totals strong { font-size: 1.55rem; font-weight: 650; line-height: 1.3; }
.ie-home .ie-people-totals span { font-size: .875rem; color: var(--ie-muted); }
.ie-home .ie-empty { margin: .65rem 0; color: var(--ie-muted); font-size: .875rem; }
.ie-home :is(button, a, [tabindex]):focus-visible { outline: 2px solid var(--enterprise-primary); outline-offset: 2px; }
.ie-home .ie-table-scroll:focus-visible { outline-offset: -2px; }

@media (max-width: 1199px) {
  .ie-home .ie-home-grid { grid-template-columns: minmax(0, 1fr); }
  .ie-home .ie-home-lower { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 767px) {
  .enterprise-shell .ie-home { --ie-space: .75rem; --ie-panel-pad: 1rem; }
  .ie-home .ie-page-top { flex-direction: column; align-items: start; justify-content: center; gap: .3rem; }
  .ie-home .ie-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ie-home .ie-kpis .ie-kpi { min-block-size: 6rem; padding: .75rem .85rem; gap: .25rem; }
  .ie-home .ie-kpi > strong { font-size: 1.75rem; }
  .ie-home .ie-kpi-head { font-size: .875rem; }
  .ie-home .ie-home-lower { grid-template-columns: minmax(0, 1fr); }
  .ie-home .ie-days { gap: .35rem; }
  .ie-home .ie-days button { padding: .5rem; min-height: 5rem; }
  .ie-home .ie-day-summary { padding-inline: .6rem; }
  .ie-home .ie-kind-counts { gap: .2rem .7rem; }
  .ie-home .ie-panel-head .ghost-btn { min-height: 44px; }
}

@container voyage (max-width: 31rem) {
  .ie-home .ie-vessel-table { table-layout: auto; }
  .ie-home .ie-vessel-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .ie-home .ie-vessel-table tbody { display: block; }
  .ie-home .ie-vessel-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: .5rem;
    padding: .6rem .1rem;
  }
  .ie-home .ie-vessel-table tbody tr + tr { border-block-start: 1px solid var(--ie-line); }
  .ie-home .ie-vessel-table tbody tr > :is(th, td) { display: block; padding: 0; width: auto; border: 0; }
  .ie-home .ie-vessel-table tbody :is(th, td):nth-child(2) { text-align: end; color: var(--enterprise-info); }
  .ie-home .ie-vessel-table tbody td:nth-child(n+3) { grid-column: 1/-1; }
  .ie-home .ie-vessel-table tbody td:nth-child(4) { color: var(--ie-muted); font-size: .8125rem; }
  .ie-home .ie-vessel-table .ie-row-note:not([data-has-note]) { display: none; }
  .ie-home .ie-vessel-table .ie-row-note[data-has-note]::before { content: "备注 · "; }
}

@media (forced-colors: active) {
  .ie-home .ie-days button[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
  .ie-home :is(.ie-day-bar, .ie-status-bar) { border: 1px solid CanvasText; }
}

.ie-home .dashboard-motion-switch{min-height:44px;font-size:.8125rem;color:var(--enterprise-primary);flex:none}
