/* Canonical Portal and module dashboard geometry. Product CSS may add data
   sections and module colours, but not redefine these shared components. */
.alx-dashboard-shell {
  display: block;
  /* Time also carries the legacy .shell class. Reset its old grid alignment
     so direct children such as the shared footer span the content width. */
  place-items: normal;
  justify-items: stretch;
  align-items: normal;
  width: min(100%, var(--alx-content-max));
  max-width: var(--alx-content-max);
  min-height: 100vh;
  margin-inline: auto;
  padding: 0 var(--alx-page-gutter) 40px;
}

.alx-dashboard-shell .dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--alx-page-gutter);
  padding: 54px 0 40px;
}

.alx-dashboard-shell .dashboard-welcome .eyebrow {
  display: block;
  margin: 0;
  color: #39799d;
  font-size: var(--alx-eyebrow-size);
  font-weight: 800;
  letter-spacing: .12em;
  line-height: normal;
  text-transform: uppercase;
}

.alx-dashboard-shell .dashboard-welcome h1 {
  margin: 7px 0;
  color: #17243b;
  font-size: var(--alx-title-size);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.alx-dashboard-shell .dashboard-welcome p:not(.eyebrow) {
  margin: 0;
  color: #66778b;
  font-size: 17px;
  line-height: 1.35;
}

.alx-dashboard-shell .portal-section,
.alx-dashboard-shell .dashboard-actions-section { margin: 0 0 35px; }

.alx-dashboard-shell .section-heading,
.alx-dashboard-shell .dashboard-section-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.alx-dashboard-shell .section-heading h2,
.alx-dashboard-shell .dashboard-section-heading h2 {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #17243b;
  font-size: var(--alx-section-title-size);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.alx-dashboard-shell .section-heading > span,
.alx-dashboard-shell .dashboard-section-heading > span {
  color: #8392a3;
  font-size: 12px;
  line-height: 1.35;
}

.alx-dashboard-shell .app-grid,
.alx-dashboard-shell .dashboard-action-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--alx-dashboard-grid-gap);
  padding: 0;
}

.alx-dashboard-shell .app-card,
.alx-dashboard-shell .dashboard-action-card {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 15px;
  min-height: 150px;
  padding: var(--alx-dashboard-card-padding);
  border: 1px solid #dfe7f0;
  border-radius: var(--alx-dashboard-card-radius);
  background: #fff;
  box-shadow: var(--alx-dashboard-shadow);
  color: #17243b;
  text-decoration: none;
  transform: none;
}

.alx-dashboard-shell .app-card:hover,
.alx-dashboard-shell .dashboard-action-card:hover {
  border-color: #dfe7f0;
  box-shadow: var(--alx-dashboard-shadow);
  transform: none;
}

.alx-dashboard-shell .app-icon,
.alx-dashboard-shell .dashboard-action-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

.alx-dashboard-shell .app-card > div:nth-child(2),
.alx-dashboard-shell .dashboard-action-card > span:nth-child(2) {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: start;
  row-gap: 5px;
  min-width: 0;
}

/* Action-card product labels use the same eyebrow treatment as Portal cards. */
.alx-dashboard-shell .dashboard-action-card small {
  display: block;
  margin: 0;
  color: #39799d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 12px;
  text-transform: uppercase;
}

.alx-dashboard-shell .app-card h3,
.alx-dashboard-shell .dashboard-action-card strong {
  display: block;
  margin: 0;
  color: #17243b;
  font-size: var(--alx-card-title-size);
  font-weight: 700;
  line-height: 1.2;
}

.alx-dashboard-shell .app-card p,
.alx-dashboard-shell .dashboard-action-card em {
  display: block;
  margin: 0;
  color: #7a899a;
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.alx-dashboard-shell .app-card small {
  display: block;
  min-height: 0;
  margin: 0;
  color: #39799d;
  font-size: 12px;
  line-height: 1.35;
}


.alx-dashboard-shell .app-card > strong,
.alx-dashboard-shell .dashboard-action-card > b {
  color: #417f99;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

/* Information cards and data panels use the same surface language as
   application cards while allowing a denser data-oriented layout. */
.alx-dashboard-shell .alx-dashboard-info-section { margin: 35px 0; }

.alx-dashboard-shell .alx-dashboard-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.alx-dashboard-shell .alx-dashboard-info-card {
  min-height: 120px;
  padding: 22px;
  border: 1px solid #dfe7f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px #1e426312;
  color: #526078;
  font-size: 14px;
}

.alx-dashboard-shell .alx-dashboard-info-card strong {
  display: block;
  margin-top: 7px;
  color: #17243b;
  font-size: 17px;
  line-height: 1.2;
}

.alx-dashboard-shell .alx-dashboard-panel {
  margin: 35px 0;
  padding: 22px;
  border: 1px solid #dfe7f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px #1e426312;
}

.alx-dashboard-shell .alx-dashboard-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.alx-dashboard-shell .alx-dashboard-panel-heading h2 {
  margin: 7px 0 0;
  color: #17243b;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.alx-dashboard-shell .alx-dashboard-panel-heading > span {
  color: #8392a3;
  font-size: 12px;
}

@media (max-width: 1000px) and (min-width: 761px) {
  .alx-dashboard-shell .app-grid,
  .alx-dashboard-shell .dashboard-action-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .alx-dashboard-shell { width: 100%; padding: 0 16px 40px; }
  .alx-dashboard-shell .dashboard-welcome { align-items: flex-start; gap: 20px; padding: 34px 0 28px; }
  .alx-dashboard-shell .dashboard-welcome h1 { font-size: var(--alx-title-size); }
  .alx-dashboard-shell .app-grid,
  .alx-dashboard-shell .dashboard-action-list { grid-template-columns: 1fr; gap: 16px; }
  .alx-dashboard-shell .app-card,
  .alx-dashboard-shell .dashboard-action-card { min-height: 122px; padding: 18px; border-radius: 18px; }
  .alx-dashboard-shell .alx-dashboard-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alx-dashboard-shell .alx-dashboard-panel { padding: 18px; }
}
