/* Private ops dashboard */
:root {
  --dash-bg: #0f1f1c;
  --dash-panel: #162a26;
  --dash-border: #2a4540;
  --dash-text: #e8f0ee;
  --dash-muted: #9bb0aa;
  --dash-accent: #3d8f7a;
  --dash-warn: #c9a227;
  --dash-danger: #c45c5c;
  --dash-ok: #3a9a6a;
}

body.dashboard-body {
  margin: 0;
  background: var(--dash-bg);
  color: var(--dash-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
}

.dash-wrap { max-width: 1100px; margin: 0 auto; padding: 1rem; }

.dash-header {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  justify-content: space-between; margin-bottom: 1rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--dash-border);
}
.dash-header h1 { margin: 0; font-size: 1.25rem; }
.dash-header .meta { color: var(--dash-muted); font-size: 0.85rem; }

.dash-tabs {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem;
}
.dash-tabs button {
  background: var(--dash-panel); color: var(--dash-text); border: 1px solid var(--dash-border);
  border-radius: 999px; padding: 0.45rem 0.85rem; cursor: pointer; font-weight: 600; font-size: 0.85rem;
}
.dash-tabs button.active { background: var(--dash-accent); border-color: var(--dash-accent); }

.dash-panel {
  background: var(--dash-panel); border: 1px solid var(--dash-border);
  border-radius: 12px; padding: 1rem; margin-bottom: 1rem;
}
.dash-panel h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.dash-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.65rem;
}
.stat-card {
  background: #1c332e; border-radius: 10px; padding: 0.75rem; text-align: center;
}
.stat-card .n { font-size: 1.6rem; font-weight: 700; color: var(--dash-accent); }
.stat-card .l { font-size: 0.78rem; color: var(--dash-muted); }

.dash-row {
  display: grid; gap: 0.5rem; padding: 0.75rem 0;
  border-bottom: 1px solid var(--dash-border);
}
@media (min-width: 720px) {
  .dash-row.kitten-row { grid-template-columns: 1.1fr 1fr 1fr 1.1fr; align-items: start; }
  .dash-row.wait-row { grid-template-columns: 1.2fr 1fr 0.8fr 1fr; align-items: start; }
}

.dash-label { font-size: 0.75rem; color: var(--dash-muted); }
.dash-name { font-weight: 700; }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.5rem;
  border-radius: 6px; text-transform: uppercase;
}
.badge-available { background: #1e5c3a; }
.badge-reserved { background: #5c4a1e; color: #ffe6a0; }
.badge-matching { background: #3a4550; }
.badge-sold, .badge-placed { background: #444; }
.badge-active { background: #1e4a5c; }

.dash-btn {
  background: var(--dash-accent); color: #fff; border: none; border-radius: 8px;
  padding: 0.45rem 0.75rem; font-weight: 600; cursor: pointer; font-size: 0.85rem;
}
.dash-btn.secondary { background: transparent; border: 1px solid var(--dash-border); color: var(--dash-text); }
.dash-btn.danger { background: var(--dash-danger); }
.dash-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.dash-input, .dash-select, .dash-textarea {
  width: 100%; box-sizing: border-box; background: #0f1f1c; color: var(--dash-text);
  border: 1px solid var(--dash-border); border-radius: 8px; padding: 0.45rem 0.55rem; font-size: 0.9rem;
}
.dash-textarea { min-height: 70px; resize: vertical; }

.photo-strip { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.photo-strip img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--dash-border);
}
.photo-add {
  width: 72px; height: 72px; border-radius: 8px; border: 1px dashed var(--dash-border);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--dash-muted); font-size: 0.7rem; text-align: center; padding: 0.25rem;
}
.photo-add input { display: none; }

.login-card {
  max-width: 420px; margin: 15vh auto; text-align: center;
}
.hidden { display: none !important; }
.muted { color: var(--dash-muted); font-size: 0.85rem; }
.reminder-item { padding: 0.5rem 0; border-bottom: 1px solid var(--dash-border); font-size: 0.9rem; }
.reminder-item strong { color: var(--dash-warn); }

.toast {
  position: fixed; bottom: 1rem; right: 1rem; background: #1e5c3a; color: #fff;
  padding: 0.65rem 1rem; border-radius: 8px; z-index: 50; display: none;
}
.toast.show { display: block; }

.inv-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
  margin-bottom: 0.75rem;
}
@media (min-width: 720px) {
  .inv-grid { grid-template-columns: 1fr 1fr; }
}
.inv-check {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.9rem; margin: 0.35rem 0; color: var(--dash-text);
}
.ga-bars {
  display: flex; align-items: flex-end; gap: 0.35rem;
  min-height: 100px; padding: 0.5rem 0 0.25rem;
  overflow-x: auto;
}
.ga-bar-col {
  flex: 1; min-width: 28px; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
}
.ga-bar {
  width: 70%; max-width: 18px; background: var(--dash-accent);
  border-radius: 4px 4px 0 0;
}
.ga-bar-label {
  margin-top: 0.3rem; font-size: 0.62rem; color: var(--dash-muted);
  transform: rotate(-40deg); transform-origin: top left; white-space: nowrap;
}

.inv-result {
  margin-top: 1rem; background: #0a1513; color: #b8f0d0;
  padding: 0.75rem; border-radius: 8px; overflow: auto; font-size: 0.8rem;
  border: 1px solid var(--dash-border);
}
