/* Overview */
.dash-body {
  --dash-rule: #dce4ed;
  --dash-text: #19334e;
  --dash-secondary: #4c6278;
  --dash-pad: clamp(17px, 2.1vw, 26px);
  container: dash / inline-size;
  display: grid;
  gap: 22px;
  min-width: 0;
}

.dash-heading-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.dash-heading-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}

.dash-team {
  color: #315474;
}

.dash-team:hover {
  color: #003976;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.dash-heading-actions .dash-create {
  background: #003976;
  color: #fff;
  padding-inline: 16px;
  border-radius: 7px;
  border: 1px solid #003976;
}

.dash-heading-actions .dash-create:hover {
  background: #002a59;
}

.dash-kpis,
.dash-panel {
  background: #fff;
  color: var(--dash-text);
  border: 1px solid var(--dash-rule);
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(22, 49, 77, .035);
  min-width: 0;
}

.dash-kpis,
.task-list,
.update-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dash-kpis {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding-block: 18px;
}

.dash-kpis > li {
  display: flex;
  min-width: 0;
}

.dash-kpis > li + li {
  border-inline-start: 1px solid var(--dash-rule);
}

.dash-kpi {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: start;
  gap: 9px;
  min-width: 0;
  padding: 3px var(--dash-pad);
  color: var(--dash-text);
  text-decoration: none;
}

.dash-kpi:hover,
.dash-kpi:focus-visible {
  background: #f4f8fc;
  color: #003976;
}

.kpi-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--dash-secondary);
  font-size: .875rem;
  font-weight: 550;
  line-height: 1.4;
}

.kpi-label svg {
  flex: none;
  color: #426e98;
}

.dash-kpi strong {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

.dash-kpis[data-count="1"] .dash-kpi {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.dash-panel {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.dash-columns > .dash-updates:has(.dash-empty) {
  align-self: stretch;
}

.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 60px;
  margin: 0 var(--dash-pad);
  padding-block: 15px;
  border-bottom: 1px solid var(--dash-rule);
}

.dash-panel .dash-panel-head h2 {
  margin: 0;
  color: var(--dash-text);
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.022em;
}

.updates-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #285883;
  font-size: .8rem;
  font-weight: 620;
  text-decoration: none;
}

.updates-link:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.task-list,
.update-list {
  margin: 0 var(--dash-pad);
}

.task-list > li + li,
.update-list > li + li {
  border-top: 1px solid #e8edf2;
}

.task-list a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 13px;
  min-height: 59px;
  padding-block: 10px;
  font-size: .92rem;
  font-weight: 560;
  line-height: 1.4;
  color: var(--dash-text);
  text-decoration: none;
}

.task-list > li:last-child,
.update-list > li:last-child {
  padding-bottom: 4px;
}

.task-symbol,
.empty-symbol {
  display: grid;
  place-items: center;
  color: #315f8b;
  background: #edf3f9;
}

.task-symbol {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.task-list a > svg {
  color: #698098;
}

.task-list a:hover,
.update-link:hover {
  background: #f5f8fc;
  color: #003976;
}

.update-link {
  display: grid;
  gap: 3px;
  padding-block: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  color: var(--dash-text);
  text-decoration: none;
}

.update-title {
  font-size: .91rem;
  font-weight: 625;
}

.update-detail {
  color: var(--dash-secondary);
  font-size: .84rem;
}

.update-link time {
  color: #586d82;
  font-variant-numeric: tabular-nums;
  font-size: .75rem;
}

.dash-empty {
  flex: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 11px;
  min-height: 142px;
  padding: 20px;
  text-align: center;
}

.empty-symbol {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.dash-empty p {
  margin: 0;
  color: var(--dash-secondary);
  font-size: .88rem;
}

@container dash (max-width: 750px) {
  .dash-columns { gap: 14px; }
  .dash-kpi { padding-inline: 14px; }
  .task-list a { gap: 9px; }
}

@container dash (max-width: 635px) {
  .dash-columns { grid-template-columns: minmax(0, 1fr); }
  .dash-kpis[data-count="4"],
  .dash-kpis[data-count="5"] {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 0;
  }
  .dash-kpis:is([data-count="4"], [data-count="5"]) > li { padding-block: 11px; }
  .dash-kpis:is([data-count="4"], [data-count="5"]) > li:nth-child(odd) { border-inline-start: 0; }
  .dash-kpis:is([data-count="4"], [data-count="5"]) > li:nth-child(n+3) { border-top: 1px solid var(--dash-rule); }
  .dash-kpis[data-count="5"] > li:last-child { grid-column: 1 / -1; }
  .dash-kpis[data-count="5"] > li:last-child .dash-kpi { display: flex; align-items: center; justify-content: space-between; }
}

@container dash (max-width: 450px) {
  .dash-kpis { padding-block: 13px; }
  .dash-kpi { padding-inline: 12px; }
  .kpi-label { font-size: .79rem; }
  .kpi-label > svg { display: none; }
  .dash-kpi strong { font-size: 1.9rem; }
  .dash-empty { min-height: 108px; gap: 7px; padding: 15px; }
}

@media (max-width: 520px) {
  .dash-body { gap: 14px; }
  .dash-heading-actions { gap: 12px; }
}
