/* ============ Console d'administration ============ */

.vue-admin { padding-top: 24px; padding-bottom: 60px; max-width: 1080px; }

/* KPI */
.grille-kpi { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.kpi {
  background: var(--papier); border: 1px solid var(--bordure); border-radius: var(--rayon);
  box-shadow: var(--ombre); padding: 18px 20px;
}
.kpi .valeur { font-size: 32px; font-weight: bold; color: var(--accent); }
.kpi .libelle { color: var(--encre-douce); font-size: 15px; }

/* Tableaux */
.tableau-defilant { overflow-x: auto; background: var(--papier); border: 1px solid var(--bordure);
  border-radius: var(--rayon); box-shadow: var(--ombre); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--bordure); vertical-align: middle; }
th { background: var(--creme); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--encre-douce); }
tr:last-child td { border-bottom: none; }
td .sous { color: var(--encre-douce); font-size: 14px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 14px; }
.badge-vert { background: #e6f2ea; color: #2c6141; }
.badge-rouge { background: #fdecea; color: #c0392b; }
.badge-gris { background: #eee7db; color: var(--encre-douce); }
.badge-or { background: #fdf3d7; color: #8a6d1a; }

/* Solde de crédits dans la liste des comptes */
.solde-admin { font-size: 20px; font-weight: bold; color: var(--vert); white-space: nowrap; }
.solde-admin.bas { color: #c0392b; }
#table-tarifs input[type="number"] { padding: 6px 8px; border: 2px solid var(--bordure); border-radius: 8px; font-size: 16px; }
#table-tarifs input[type="checkbox"] { width: 20px; height: 20px; }

/* Actions des lignes */
.actions-ligne { display: flex; gap: 4px; flex-wrap: wrap; }
.actions-ligne button { background: none; border: 1px solid var(--bordure); border-radius: 8px;
  cursor: pointer; font-size: 15px; padding: 5px 8px; }
.actions-ligne button:hover { border-color: var(--accent); }

/* Formulaires admin */
.panneau-form {
  background: var(--papier); border: 1px solid var(--bordure); border-radius: var(--rayon);
  box-shadow: var(--ombre); padding: 22px; margin-bottom: 22px;
}
.panneau-form h3 { margin-bottom: 14px; }
.panneau-form label { display: block; margin: 10px 0 4px; color: var(--encre-douce); font-size: 15px; }
.panneau-form input, .panneau-form select, .panneau-form textarea {
  width: 100%; padding: 10px; font-size: 16px; border: 2px solid var(--bordure);
  border-radius: 8px; background: #fff;
}
.panneau-form .case { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.panneau-form .case input { width: auto; }
.ligne-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.boutons-saisie { margin-top: 16px; }

#recherche-utilisateur {
  padding: 10px 14px; font-size: 16px; border: 2px solid var(--bordure);
  border-radius: var(--rayon); min-width: 260px; background: #fff;
}
#recherche-utilisateur:focus { outline: none; border-color: var(--accent); }

/* Cartes formules */
.carte-plan {
  background: var(--papier); border: 1px solid var(--bordure); border-radius: var(--rayon);
  box-shadow: var(--ombre); padding: 20px 22px; margin-bottom: 16px;
}
.carte-plan .entete-plan { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.carte-plan h3 { font-size: 22px; }
.carte-plan .prix { font-size: 20px; color: var(--accent); font-weight: bold; }
.carte-plan .quotas { color: var(--encre-douce); margin: 8px 0; font-size: 15px; }

@media (max-width: 700px) {
  th, td { padding: 8px; font-size: 14px; }
  .entete > div { display: flex; }
}

/* Modèle IA éditable dans la grille */
.champ-modele { width: 250px; padding: 6px 8px; border: 2px solid var(--bordure);
  border-radius: 8px; font-size: 15px; font-family: inherit; }
.champ-modele:focus { outline: none; border-color: var(--accent); }
