/* Back-office Syli : compléments à console.css pour les éléments créés par admin.js. */

[hidden] { display: none !important; }
button { font: inherit; }

/* Menu latéral : les entrées sont des boutons */
.nav-item { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; }
.nav-item.actif { background: #1a3352; color: #fff; box-shadow: inset 3px 0 0 #22c06e; }
.logout { background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.side-foot .me { cursor: default; }
.btn.bloc { width: 100%; margin-top: 4px; }

/* Champs créés sans attribut type */
input:not([type]) {
  width: 100%; padding: 8px 11px; border: 1px solid #cfd7e3; border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
input:not([type]):focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(19, 138, 75, .14); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); }

/* Classes utilisées par admin.js */
.discret { color: var(--muted); font-size: 12px; }
.erreur { color: var(--danger); font-size: 12.5px; min-height: 1.2em; margin: 0 0 10px; }
.nombre { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.vide { text-align: center; color: var(--muted); padding: 28px; }
.tbl td { vertical-align: middle; }
tr.inactif td { opacity: .55; }
td input:not([type=checkbox]) { min-width: 9rem; }
.prix { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
td .prix input { width: 8rem; min-width: 0; text-align: right; }

button.petit, button.secondaire {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; cursor: pointer;
  font-weight: 600; font-size: 12px; line-height: 1.2; white-space: nowrap;
  background: var(--brand); border: 1px solid var(--brand); color: #fff;
}
button.petit:hover { background: var(--brand-2); }
button.secondaire { background: #fff; border-color: #cfd7e3; color: var(--ink); }
button.secondaire:hover { background: #f4f6f9; }
button:disabled { opacity: .5; cursor: wait; }

.pastille { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; white-space: nowrap; line-height: 18px; }
.pastille.actif { background: var(--ok-bg); color: var(--ok); }
.pastille.en_retard { background: var(--warn-bg); color: var(--warn); }
.pastille.suspendu { background: var(--danger-bg); color: var(--danger); }
.pastille.en_stock, .pastille.resilie, .pastille.retire { background: var(--neutral-bg); color: var(--neutral); }

/* PIN affichés une seule fois après un ajout */
#resultat-stock { margin: 0; }
#resultat-stock table { margin: 8px 0; }
#resultat-stock td { padding: 2px 16px 2px 0; }
#resultat-stock a { color: inherit; font-weight: 700; margin-right: 12px; }

/* Dialogue de paiement */
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(12, 26, 43, .5); }
dialog h3 { font-size: 16px; }
.btn-group.fin { justify-content: flex-end; }

/* Mobile : fond sombre derrière le menu ouvert */
@media (max-width: 820px) {
  .side.open + .main::before { content: ""; position: fixed; inset: 0; background: rgba(12, 26, 43, .45); z-index: 15; }
}
