/* Overview Dashboard - Figma 600:17688.
   Colour values are tokens only: a hex outside eventkrowd_theme.css is a bug
   this project has a test for. */

.dashboard__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1.5rem;
}

.dashboard__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--wa-color-text-normal);
}

.dashboard__context {
  margin: 0 0 1.5rem;
  color: var(--wa-color-text-quiet);
}

.dashboard__empty {
  color: var(--wa-color-text-quiet);
}

.dashboard__section-title {
  margin: 2rem 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--wa-color-text-normal);
}

.dashboard__sample-tag,
.stat-card__sample-tag,
.alert__sample-tag {
  display: inline-block;
  margin-inline-start: 0.5rem;
  padding: 0.0625rem 0.375rem;
  border: 1px solid var(--wa-color-neutral-border-normal);
  border-radius: 0.25rem;
  background: var(--wa-color-neutral-fill-quiet);
  color: var(--wa-color-text-quiet);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ------------------------------------------------------------- stat cards */

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  border: 1px solid var(--wa-color-surface-border);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--wa-color-surface-default);
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-inline-end: 1px solid var(--wa-color-surface-border);
}

.stat-card:last-child {
  border-inline-end: none;
}

.stat-card__label {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--wa-color-text-normal);
}

.stat-card__content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.stat-card__value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--wa-color-text-normal);
}

/* A revenue card can now carry ONE FIGURE PER CURRENCY, because a multi-hotel
   event genuinely takes money in more than one and summing them would be a
   number in no unit. Two 1.5rem figures with margin:0 sit flush against each
   other and read as one wrapped value, so adjacent values get separated. */
.stat-card__value + .stat-card__value {
  margin-top: 0.25rem;
}

.stat-card__detail {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--wa-color-text-quiet);
}

.stat-card__badge {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.375rem;
  font-size: 1.125rem;
}

.stat-card__badge--blue {
  background: var(--wa-color-blue-95);
  border: 1px solid var(--wa-color-blue-80);
  color: var(--wa-color-blue);
}

.stat-card__badge--green {
  background: var(--wa-color-green-95);
  border: 1px solid var(--wa-color-green-80);
  color: var(--wa-color-green);
}

.stat-card__badge--amber {
  background: var(--wa-color-yellow-95);
  border: 1px solid var(--wa-color-yellow-80);
  color: var(--wa-color-yellow-50);
}

/* ----------------------------------------------------------------- alerts */

.alerts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-block-start: 1.5rem;
}

.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
}

.alert--danger {
  background: var(--wa-color-red-95);
  color: var(--wa-color-red-20);
}

.alert--neutral {
  background: var(--wa-color-neutral-fill-quiet);
  color: var(--wa-color-text-normal);
}

.alert__text {
  flex: 1;
  margin: 0;
  font-size: 0.875rem;
}

/* ----------------------------------------------------------------- charts */

.charts__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
}

.chart-card {
  padding: 1rem;
  border: 1px solid var(--wa-color-surface-border);
  border-radius: 0.5rem;
  background: var(--wa-color-surface-default);
}

.chart-card__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--wa-color-text-normal);
}

.chart-card__canvas {
  display: block;
  width: 100%;
  height: 16rem;
}

.chart-card__caption {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--wa-color-text-quiet);
}

/* ----------------------------------------------------------------- tables */

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--wa-color-surface-default);
  border: 1px solid var(--wa-color-surface-border);
  border-radius: 0.5rem;
}

.data-table th,
.data-table td {
  padding: 0.875rem 1rem;
  text-align: start;
  border-block-end: 1px solid var(--wa-color-surface-border);
}

.data-table thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wa-color-text-quiet);
  background: var(--wa-color-neutral-fill-quiet);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-block-end: none;
}

.data-table__row-header {
  font-weight: 600;
  color: var(--wa-color-text-normal);
}

.status-pill {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill--ok {
  background: var(--wa-color-blue-95);
  color: var(--wa-color-blue-20);
}

.status-pill--warning {
  background: var(--wa-color-yellow-95);
  color: var(--wa-color-yellow-20);
}

.status-pill--critical {
  background: var(--wa-color-red-95);
  color: var(--wa-color-red-20);
}

.dashboard-table__note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--wa-color-text-quiet);
}

@media (max-width: 60rem) {
  .charts__grid {
    grid-template-columns: 1fr;
  }
}
/* HMS-64 — the setup wizard stepper and form. */
.setup-wizard__stepper {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.setup-wizard__step {
  padding: 0.25rem 0.75rem;
  border-radius: var(--wa-border-radius-m);
  font-size: 0.8125rem;
  color: var(--wa-color-text-quiet);
}

.setup-wizard__step--current {
  background: var(--wa-color-brand-fill-quiet);
  color: var(--wa-color-text-normal);
  font-weight: 600;
}
