/* Coque commune des pages admin DTF Swiss (16.10.2026, audit UI/UX du 15.10).
   Chargée APRÈS tailwind.css par les 6 pages admin. Une seule correction ici = les six pages.
   Contenu : barre de navigation (PC + téléphone), ligne « à faire », boutons, listes déroulantes et cases à cocher,
   bouton « copier » des identifiants techniques. */

/* Les pages admin sont sombres : le navigateur dessine ses contrôles natifs (listes, calendriers) en sombre aussi.
   Sans cette ligne, Safari iPhone affichait les listes déroulantes blanc sur blanc. */
:root{color-scheme:dark}

/* ===== Barre ===== */
.site-header{position:relative!important;background:rgba(17,24,39,.85);backdrop-filter:blur(12px) saturate(140%);border-bottom:1px solid rgba(255,255,255,.08)}
.admin-bar{display:flex;align-items:center;gap:.75rem 1rem;padding:.6rem 1rem;max-width:1600px;margin:0 auto}
.admin-brand{display:flex;align-items:center;flex:none}
.admin-brand img{height:2.5rem;width:auto}
.admin-title{font-weight:600;color:#f1f5f9;white-space:nowrap;display:flex;align-items:center;gap:.4rem;margin:0;font-size:1rem}
.admin-title .sep{color:#64748b;font-weight:400}
.admin-title .page{color:#f9a8d4}
.admin-nav{display:flex;flex-wrap:wrap;gap:.35rem .5rem;align-items:center;margin:0 auto}
.admin-nav a{padding:.5rem .9rem;border-radius:.6rem;color:#e5e7eb;text-decoration:none;transition:.15s;line-height:1.2;min-height:2.5rem;display:inline-flex;align-items:center;white-space:nowrap}
.admin-nav a:hover{background:rgba(255,255,255,.1)}
.admin-nav a[aria-current=page]{background:rgba(236,72,153,.18);color:#f9a8d4;font-weight:600}   /* rose clair sur rose sombre : 8:1 (avant 4:1) */
.admin-refresh{flex:none}
@media (max-width:767px){
  .admin-bar{flex-wrap:wrap;padding:.5rem .75rem;gap:.4rem .5rem}
  .admin-brand img{height:1.9rem}
  .admin-title{font-size:.95rem;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
  .admin-title > span:first-child,.admin-title .sep{display:none}   /* téléphone : seulement le nom de la page, à côté du logo */
  .admin-refresh{margin-left:auto;padding:.4rem .55rem;min-height:2.25rem}
  .admin-refresh span{display:none}                 /* icône seule : « Rafraîchir » n'occupe plus une ligne entière */
  .admin-nav{width:100%;order:3;justify-content:flex-start;gap:.25rem}   /* deux lignes, tout visible, rien à faire défiler */
  .admin-nav a{padding:.4rem .65rem;font-size:.85rem;min-height:2.25rem}
}

/* ===== Ligne « à faire » (sous la barre, sur toutes les pages) ===== */
.todo-strip{max-width:1600px;margin:0 auto;padding:.6rem 1rem 0;display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.todo-strip .todo-label{font-size:.72rem;color:#94a3b8;text-transform:uppercase;letter-spacing:.05em;margin-right:.15rem}
.todo-strip .todo-at{font-size:.72rem;color:#94a3b8;margin-left:auto}
.todo-item{display:inline-flex;align-items:center;gap:.45rem;padding:.35rem .75rem;border-radius:999px;border:1px solid rgba(148,163,184,.3);background:rgba(255,255,255,.04);color:#e2e8f0;text-decoration:none;font-size:.8rem;min-height:2.25rem;transition:.15s;line-height:1.2}
.todo-item:hover{background:rgba(255,255,255,.1);border-color:rgba(148,163,184,.5)}
.todo-item b{font-size:.95rem;font-weight:700;color:#fff}
.todo-item.is-zero{color:#cbd5e1}
.todo-item.is-zero b{color:#86efac}
.todo-item.is-warn{border-color:rgba(236,72,153,.55);background:rgba(236,72,153,.12)}
.todo-item.is-warn b{color:#f9a8d4}
.todo-item.is-amber{border-color:rgba(245,158,11,.5);background:rgba(245,158,11,.1)}
.todo-item.is-amber b{color:#fcd34d}
.todo-item.is-off{opacity:.65}
@media (max-width:767px){
  .todo-strip{padding:.45rem .75rem 0;gap:.3rem}
  .todo-item{font-size:.72rem;padding:.25rem .55rem;min-height:2rem;gap:.35rem}
  .todo-item b{font-size:.85rem}
  .todo-strip .todo-at{display:none}   /* l'heure du relevé est dans l'info-bulle des pastilles ; on garde la place */
}

/* ===== Boutons : un seul style secondaire (.pill, .btn, .btn-secondary) et un seul style principal (.btn-primary) ===== */
.btn,.pill,.btn-secondary{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:2.5rem;padding:.45rem .9rem;border-radius:.75rem;border:1px solid rgba(148,163,184,.35);background:rgba(255,255,255,.06);color:#e5e7eb;font-weight:500;cursor:pointer;transition:.15s;text-decoration:none;line-height:1.2}
.btn:hover,.pill:hover,.btn-secondary:hover{background:rgba(255,255,255,.12);border-color:rgba(148,163,184,.55)}
.btn:disabled,.pill:disabled,.btn-secondary:disabled{opacity:.5;cursor:default}
.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:2.5rem;padding:.45rem 1rem;border-radius:.75rem;border:1px solid transparent;background:#be185d;color:#fff;font-weight:600;cursor:pointer;transition:.15s;line-height:1.2}   /* blanc sur rose-700 : 5.9:1 (avant rose-600, 4.2:1) */
.btn-primary:hover{background:#db2777}
.btn-primary:disabled{opacity:.5;cursor:default}
.btn-sm{min-height:2rem;padding:.3rem .65rem;font-size:.8rem}
.btn.hidden,.pill.hidden,.btn-primary.hidden,.btn[hidden],.pill[hidden],.btn-primary[hidden]{display:none!important}   /* sinon display:inline-flex gagne sur la classe « hidden » de Tailwind */
.btn svg,.pill svg,.btn-primary svg{width:1rem;height:1rem;flex:none}

/* ===== Contrôles de formulaire ===== */
select{appearance:none;-webkit-appearance:none;background-color:#1e293b;color:#f1f5f9;min-height:2.5rem;padding-right:2rem!important;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");background-repeat:no-repeat;background-position:right .7rem center}
select option{background:#0f172a;color:#f1f5f9}
input[type=date],input[type=search],input[type=text],input[type=number]{color-scheme:dark}
input[type=search]::-webkit-search-cancel-button{filter:invert(.8)}
input[type=checkbox]{width:1.5rem;height:1.5rem;flex:none;accent-color:#ec4899;cursor:pointer;margin:0;border-radius:.3rem}   /* 24 px au doigt (avant 12 px) : minimum WCAG 2.5.8 */
label:has(> input[type=checkbox]){cursor:pointer}

/* ===== Identifiants techniques : derrière un bouton « copier » ===== */
.id-copy{display:inline-flex;align-items:center;gap:.3rem;font-size:.72rem;color:#94a3b8;border:1px dashed rgba(148,163,184,.4);border-radius:.5rem;padding:.2rem .55rem;background:transparent;cursor:pointer;min-height:1.9rem;line-height:1;font-family:inherit}
.id-copy:hover{color:#f1f5f9;border-color:rgba(148,163,184,.7);background:rgba(255,255,255,.05)}
.id-copy.copied{color:#86efac;border-color:rgba(134,239,172,.6)}
.id-copy svg{width:.8rem;height:.8rem;flex:none}
