/* Nosvoisons - feuille de style de l'administration */
:root { --admin: #0F2F6B; }

.admin-body { background: #EDF1F8; }

.brandmark .glyph.admin-glyph {
  background: linear-gradient(150deg, #1E3A8A 0%, #2563EB 55%, #0F2F6B 100%);
}

.admin-appbar { background: rgba(255, 255, 255, .92); }
.admin-suffix { font-weight: 600; color: var(--ink-mute); font-size: 15px; }

.admin-auth {
  background:
    radial-gradient(1100px 520px at 50% -12%, #D7E2F7 0%, rgba(237, 241, 248, 0) 62%),
    #EDF1F8;
}
.admin-box { max-width: 440px; }
.admin-step {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px;
}
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-bottom: 10px;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-card strong { display: block; font-size: 24px; letter-spacing: -0.02em; }
.stat-card span { font-size: 12.5px; color: var(--ink-mute); }
.stat-card.warn .stat-icon { background: #FFF4E5; color: #B45309; }
.stat-card.ok .stat-icon { background: #E9F7EF; color: #047857; }

.admin-list { display: block; }
.admin-row {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.admin-row + .admin-row { margin-top: 12px; }
.admin-row-body { flex: 1; min-width: 0; }
.admin-row-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.admin-row-head strong { font-size: 15px; }
.admin-row p { margin: 0 0 4px; }
.admin-thumb { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; background: #E8EEF7; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.pill {
  font-size: 12px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #475569;
}
.pill-ok { background: #E9F7EF; color: #047857; }
.pill-off { background: #FEECEC; color: #B91C1C; }
.pill-info { background: var(--brand-soft); color: var(--brand-dark); }

.recent-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.recent-item:last-child { border-bottom: 0; }
.recent-item .avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.recent-item strong { font-size: 14.5px; display: block; }
.recent-item span { font-size: 12.5px; color: var(--ink-mute); }

.bars { display: flex; gap: 6px; height: 196px; }
.bar-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bar-plot { flex: 1; display: flex; align-items: flex-end; gap: 3px; }
.bar { flex: 1; border-radius: 6px 6px 0 0; background: var(--brand); min-height: 3px; }
.bar-msg { background: #7DD3FC; }
.bar-label { text-align: center; font-size: 11px; color: var(--ink-mute); padding-top: 6px; }

.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }
.legend-item { display: inline-flex; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; background: var(--brand); }
.dot-msg { background: #7DD3FC; }

.admin-tabbar .tab.active { color: var(--admin); background: #DDE6F7; }

@media (min-width: 640px) {
  .admin-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .admin-row { padding: 16px; }
  .bars { height: 230px; }
}

/* ---------- Ajustements sur petits ecrans ---------- */
.admin-row-head strong { min-width: 0; overflow-wrap: anywhere; }
.admin-row p { overflow-wrap: anywhere; }

@media (max-width: 639px) {
  .admin-suffix { font-size: 0; }
  .admin-suffix::before {
    content: " - Admin";
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-mute);
  }
}
