/*body{background:#0b1020;color:#e9f1ff;font-family:sans-serif;margin:0}
header{background:#141b2d;padding:16px 20px;border-bottom:1px solid #1e2740}
h1{margin:0;font-size:18px}
main{padding:20px}
table{width:100%;border-collapse:collapse}
th,td{padding:10px;border-bottom:1px solid #223}
th{text-align:left;color:#9fb0d0}
tr:hover{background:#10182d}

*/


:root {
  --bg: #0b1020;
  --card: #141b2d;
  --accent: #ff6f3c;
  --muted: #a0b0d8;
  --text: #e9f1ff;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, sans-serif;
  margin: 0;
}

.admin-header {
  background: #0d1326;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid #1e2740;
}

.admin-header .logo { font-weight: 600; font-size: 18px; color: var(--accent); }

.admin-header nav a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 20px;
  font-weight: 500;
}

.admin-header nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

.user-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

.user-info .logout {
  background: var(--accent);
  color: #000;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.admin-main {
  padding: 30px;
}

.card {
  background: var(--card);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

h1, h2, h3 { color: var(--accent); }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid #223;
}

th {
  color: var(--muted);
  font-weight: 600;
  text-align: left;
}

tr:hover { background: #10182d; }

.btn {
  background: var(--accent);
  border: none;
  color: #000;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-secondary {
  background: #1e2740;
  color: var(--muted);
}


/* Utility */
.muted { color: var(--muted); }

/* Notices */
.notice { padding: 12px 14px; border-radius: 8px; margin: 10px 0; }
.notice.success { background: #0f2a1b; border: 1px solid #1f7a46; }
.notice.error   { background: #2a1114; border: 1px solid #8a3a3f; }

/* Secondary / small buttons */
.btn-secondary { background: #1e2740; color: var(--muted); }
.btn--small    { padding: 6px 10px; font-size: 13px; }

/* Dashboard KPI grid */
.kpis { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
.kpi { background: var(--card); border: 1px solid #1e2740; border-radius: 12px; padding: 16px; }
.kpi h3 { margin: 0 0 6px 0; font-size: 14px; color: var(--muted); }
.kpi .n { font-size: 26px; font-weight: 700; }

/* Form rows */
.row { display: grid; gap: 10px; }
.row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .row.two { grid-template-columns: 1fr; } }


/* Actions & boutons complémentaires */
.actions { display:flex; gap:8px; flex-wrap:wrap }
.btn.small { padding:6px 10px; font-size:12px; border-radius:6px }
.btn.ghost { background:#1e2740; color:#cbd6ff }
.btn.danger { background:#ff6b6b; color:#000 }
.badge { display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px }
.badge.ok { background:#1b8642; color:#eafff0 }
.badge.off { background:#5c6275; color:#e2e6f7 }
.badge.arch { background:#7a4d00; color:#fff3d6 }
.row.two { display:grid; gap:12px; grid-template-columns: 1fr 1fr }
.row.three { display:grid; gap:12px; grid-template-columns: 1fr 1fr 1fr }
.notice { padding:10px 12px; border-radius:8px; margin:10px 0 }
.notice.success { background:#0f2b1d; color:#b8ffd7; border:1px solid #1d5f3f }
.notice.error   { background:#2c1111; color:#ffc2c2; border:1px solid #6b1d1d }
/* zone actions sous le formulaire login */
.login .actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

a.btn, a.btn-secondary, a.btn.ghost { display:inline-block; text-decoration:none; }

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ——— Sites: helpers layout ——— */
.hidden { display: none; }

.row {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.row.two {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
  .row.two { grid-template-columns: 1fr; }
}

.oh-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}
.oh-table th, .oh-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #223;
}
.oh-table input[type="time"] {
  width: 100%;
}

.btn.btn-secondary {
  background: #1e2740;
  color: var(--muted);
}

.notice{padding:10px 12px;border-radius:8px;margin:10px 0}
.notice.success{background:#0f2a18;color:#a6f3c0;border:1px solid #1f6c3c}
.notice.error{background:#2a1111;color:#ffc7c7;border:1px solid #7a2b2b}
.inline{display:inline}
.btn.action{padding:6px 10px;margin-right:6px}
.btn.action.warn{background:#ff6b6b;color:#1a0a0a}

.edit-row.hidden{display:none}
.edit-form input, .edit-form select{width:100%}

/*correction masque hidden sur samsung et certain affichage mobile*/
  /* rends l’attribut HTML hidden prioritaire (même sur <tr>) */
  [hidden] { display: none !important; }

  /* lien neutre (pas de bleu/violet) si besoin */
  .link-plain { color: inherit; text-decoration: none; }

.link-plain{color:inherit;text-decoration:none}
  .oh-table input[type="time"]{ width: 78px; }         /* champs compacts */
  .oh-table th, .oh-table td{ vertical-align: middle; white-space: nowrap; }
  .oh-row.is-closed{ opacity:.6; }
  .oh-hide{ display:none; }
  .oh-sep{ margin: 0 8px; color: #8aa; }