/* Dashboard styles — Sloane design system */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 48px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Banner */
.banner {
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 0.9rem;
}
.banner--warning {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  color: var(--charcoal);
}
.banner--error {
  background: #fde8e8;
  border: 1px solid #e53e3e;
  color: #c53030;
}
.banner code {
  background: rgba(0,0,0,0.08);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85em;
}

/* Section */
.section { display: flex; flex-direction: column; gap: 16px; }
.section__header { display: flex; align-items: baseline; justify-content: space-between; }
.section__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* Stat grid */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--stone); }
.stat-card__value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--charcoal); }

/* Table */
.table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.table th { text-align: left; padding: 10px 14px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone); background: var(--cream); border-bottom: 1px solid var(--border); }
.table td { padding: 12px 14px; font-size: 0.875rem; color: var(--charcoal); border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--sage-light); }

/* Badge */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}
.badge--paid { background: var(--sage-light); color: var(--sage); border: 1px solid var(--sage); }
.badge--pending { background: var(--gold-light); color: #8a6d3b; border: 1px solid var(--gold); }
.badge--refunded { background: #fde8e8; color: #c53030; border: 1px solid #e53e3e; }
.badge--partially_refunded { background: var(--gold-light); color: #8a6d3b; }
.badge--voided { background: var(--cream); color: var(--stone); border: 1px solid var(--border); }
.badge--unknown { background: var(--cream); color: var(--stone); }

/* Alert grid */
.alert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.alert-card {
  background: white;
  border: 1px solid var(--border);
  border-left: 3px solid #e53e3e;
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.alert-card__name { font-size: 0.875rem; color: var(--charcoal); font-weight: 500; }
.alert-card__count { font-size: 0.875rem; color: #c53030; font-weight: 600; }

/* Empty state */
.empty-state { font-size: 0.9rem; color: var(--stone); padding: 8px 0; }

/* Link */
.link { font-size: 0.875rem; color: var(--gold); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* Page header */
.page-header { margin-bottom: 8px; }
.page-header__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.page-header__subtitle { font-size: 0.875rem; color: var(--stone); }

/* Inventory specific */
.inventory-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.inv-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
}
.inv-card__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
}
.inv-card__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone); }

/* Customer avatar initials */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .page { padding: 90px 20px 40px; }
  .stat-grid { grid-template-columns: 1fr; }
  .inventory-summary { grid-template-columns: repeat(2, 1fr); }
}