@font-face {
  font-family: 'Material Icons Outlined';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('./assets/fonts/material-icons-outlined.woff2') format('woff2');
}

.material-icons-outlined {
  font-family: 'Material Icons Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

:root {
  /* ── Hauteurs fixes ──────────────────────────────────── */
  --q-subheader-h:  85px;
  --q-searchhead-h: 70px;
  --q-footer-h:     135px;

  /* ── Couleur de marque (turquoise) ──────────────────── */
  --q-brand:          #37d6d3;   /* turquoise principal */
  --q-brand-deep:     #0b556b;   /* teal foncé — titres, icônes */
  --q-brand-mid:      #0b8e8b;   /* teal moyen — liens, vitals ok */
  --q-brand-bg:       #e2f7f6;   /* fond turquoise très léger */
  --q-brand-border:   #baeaea;   /* bordure turquoise légère */
  --q-brand-hover:    #e5fcfb;   /* hover turquoise */

  /* ── Neutrals (Tailwind Slate) ──────────────────────── */
  --q-gray-900:  #0f172a;
  --q-gray-800:  #1e293b;
  --q-gray-700:  #334155;
  --q-gray-600:  #475569;
  --q-gray-500:  #64748b;
  --q-gray-400:  #94a3b8;
  --q-gray-300:  #cbd5e1;
  --q-gray-200:  #e2e8f0;
  --q-gray-100:  #f1f5f9;
  --q-gray-50:   #f8fafc;

  /* ── Sémantiques ─────────────────────────────────────── */
  --q-danger:      #ef4444;
  --q-danger-bg:   #fee2e2;
  --q-danger-text: #b91c1c;
  --q-warn:        #f59e0b;
  --q-warn-bg:     #fff4e5;
  --q-warn-text:   #92400e;
  --q-ok:          #0b8e8b;
  --q-ok-bg:       #e6f6f6;
  --q-ok-text:     #067a7a;
}

/* ======= GLOBAL LIGHT THEME ======= */


html          { overflow-x: clip; }

#app          { overflow-x: clip; width: 100%; }

body {
  background: #ffffff;
  color: #0f172a;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  overflow-x: clip; width: 100%;
}

/* ======= HEADER ======= */

.q-header-light {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.q-header-light > div {
  justify-content: center;
}

.q-logo-big {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.q-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.q-app-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.q-app-sub {
  font-size: 0.8rem;
  color: #475569;
}

/* ======= MAIN CONTAINER ======= */

.q-main-light {
  padding: 1rem;
  max-width: 900px;
  margin: auto;
  margin-bottom:10px;
}

/* ======= TITRES DE SECTIONS ======= */

.q-section-title-light {
  font-size: 1rem;
  font-weight: 600;
  color: #0b556b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

/* ======= BLOC BIOMÉTRIQUE ======= */

.q-biometrics-light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
}


#weight-kg, #weight-g{
  width:85%;
}
#height-cm{
  width:85%;
}

.q-bio-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .q-bio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Champs */

.q-bio-field-light label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.2rem;
  display: block;
}

.q-inline-light {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Inputs */

.q-bio-field-light input {
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.9rem;
  color: #1e293b;
  width: 100%;
}

.q-bio-field-light input:focus {
  outline: none;
  border-color: #37d6d3;
  box-shadow: 0 0 0 2px rgba(55,214,211,0.3);
}

.q-unit-light {
  font-size: 0.85rem;
  color: #64748b;
}

/* Sexe */

.q-pill-toggle-light {
  display: inline-flex;
  background: #e2f7f6;
  border-radius: 999px;
  padding: 4px;
  border: 1px solid #baeaea;
}

.q-pill-btn-light {
  border: none;
  background: transparent;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  color: #0b556b;
  border-radius: 999px;
  cursor: pointer;
}

.q-pill-btn-light.active {
  background: #37d6d3;
  color: white;
}

/* MODE */

.q-pill-toggle-peach {
display: inline-flex;
background: #f1f5f9;
border-radius: 999px;
padding: 4px;
border: 1px solid #e2e8f0;
}

.q-pill-btn-peach {
border: none;
background: transparent;
padding: 0.3rem 0.8rem;
font-size: 0.85rem;
color: #475569;
border-radius: 999px;
cursor: pointer;
}

.q-pill-btn-peach.active {
background: #64748b;
color: white;
}

/* ── Bouton secondaire (Biométrie standard) ────────────────────────────────── */
/* Même forme que q-btn-primary-light, couleur slate au lieu de turquoise      */

.q-btn-secondary-light {
  background: #64748b !important;
}

.q-btn-secondary-light:hover {
  background: #475569 !important;
}


/* NEONAT */

/* ── Néonat toggle ─────────────────────────────────────────────────────────── */

.q-bio-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.q-bio-field-label-row label {
  /* override du margin-bottom du label générique */
  margin-bottom: 0 !important;
}

.q-neonat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  user-select: none;
}

.q-neonat-toggle input[type="checkbox"] {
  display: none;
}

.q-neonat-badge {
  background: #e2f7f6;
  color: #0b556b;
  border: 1.5px solid #baeaea;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.q-neonat-toggle input[type="checkbox"]:checked + .q-neonat-badge {
  background: #37d6d3;
  color: #fff;
  border-color: #37d6d3;
}

/* Chip */

.q-chip-light {
  margin-top: 0.4rem;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

/* Bouton principal */

.q-btn-primary-light {
  background: #37d6d3;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Profils */

.q-profiles-light {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.q-profile-chip-light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.4rem 0.8rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  cursor: pointer;
  text-align: left;
}

.q-profile-chip-name {
  font-weight: 600;
  color: #0f172a;
}

.q-profile-chip-meta {
  color: #64748b;
  font-size: 0.75rem;
}

.q-profiles-empty-light {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Quick age */

.q-quick-age-panel-light {
  margin-top: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.q-quick-age-header-light {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.q-icon-btn-light {
  border: none;
  background: transparent;
  cursor: pointer;
}

.q-quick-age-list-light {
  display: grid;
  gap: 0.5rem;
}

.q-quick-age-btn-light {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
}

/* ====== TUILES ====== */

.q-tile-grid-light {
  display: grid;
  gap: 1rem;
}

@media (min-width: 480px) {
  .q-tile-grid-light {
    grid-template-columns: repeat(2, 1fr);
  }
}

.q-tile-light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #1a1a1a;
  -webkit-tap-highlight-color: transparent;
}

.q-tile-light:hover {
  border-color: #37d6d3;
}

.q-tile-light .material-icons-outlined {
  font-size: 1.6rem;
  color: #1e293b;
}

.q-tile-danger-light {
  border-color: #fca5a5;
  color: #b91c1c;
  background: #fff8f8;
}


.q-quick-age-list-light {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.q-quick-age-btn-light {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.q-quick-age-btn-light:hover {
  border-color: #37d6d3;
  background: #e5fcfb;
}


/* Table Age – Light */

.q-quick-age-panel-light {
  margin-top: 0.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.8rem;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.q-age-table-header,
.q-age-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0.4rem 0;
  align-items: center;
}

.q-age-col {
  text-align: center;
  padding: 0.3rem;
  font-size: 0.85rem;
}

.q-age-label {
  font-weight: 600;
  color: #334155;
}

.q-age-cell {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
}

.q-age-cell:hover {
  border-color: #37d6d3;
  background: #e5fcfb;
}


/* ====== Onglets arrondis (Option B) ====== */

.q-tabs-rounded {
  position: sticky;
  top: 0;
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  background: #ffffff;
  z-index: 90;
}

.q-search-sticky {
  position: sticky;
  top: 0;
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  background: #ffffff;
  z-index: 90;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  width: calc(100% + 2rem);
  box-sizing: border-box;
}

.q-searchmeds-sticky {
  position: sticky;
  top: 0;
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  background: #ffffff;
  z-index: 90;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  width: calc(100% + 2rem);
  box-sizing: border-box;
}


/* Tabs sous un subheader sticky */
.q-main-with-subheader .q-tabs-rounded {
  top: var(--q-subheader-h);
}

/* Tabs sous un subheader sticky */
.q-main-with-subheader .q-search-sticky {
  top: var(--q-subheader-h);
}

/* Tabs sous un subheader sticky */
.q-main-with-subheader .q-searchmeds-sticky {
  top: var(--q-searchhead-h);
}

.q-tabs-rounded button {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.q-tabs-rounded button.active {
  background: #37d6d3;
  color: white;
  border-color: #37d6d3;
  font-weight: 600;
}

.q-tab-content {
  margin-top: 1rem;
}




/* Sous-header interne (pages Monitorage, Induction, etc.) */
.q-subheader {
  position: sticky;
  top: 3.2rem; /* juste sous le header principal */
  z-index: 40;
  background: #ffffff;
  padding: 0.6rem 0;
}

.q-subheader-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
}

.q-subheader-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

/* =========================
   CONTAINER
========================= */
/* =========================
   FOOTER NAV — PILL
========================= */
.q-footer-nav {
  position: fixed;
  bottom: max(48px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 48px));
  height: 44px;

  display: flex;
  align-items: center;
  padding: 4px;

  background: #f1f5f9;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(0,0,0,0.06);
  z-index: 200;

  /* Empêche les enfants de déborder et créer des artifacts */
  overflow: hidden;
}

/* =========================
   BUTTON BASE
========================= */
.q-footer-nav button {
  flex: 1;
  height: 100%;
  position: relative;

  border: none;
  /* Fond opaque identique au footer — jamais transparent */
  background: #f1f5f9;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  color: #94a3b8;

  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* =========================
   ICON — taille fixe
========================= */
.q-footer-nav .material-icons-outlined {
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(10px);  /* était 6px — trop bas */
  transition: transform 0.2s ease, font-variation-settings 0.2s ease;
}
/* =========================
   LABEL — toujours hors du flux
========================= */
.q-footer-label {
  position: absolute;
  top:6px;
  bottom: 4px;               /* était 2px — plus d'air sous le texte */
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
/* =========================
   INACTIVE
========================= */
.q-footer-nav button:not(.active) .material-icons-outlined {
  transform: translateY(5px);
}

.q-footer-nav button:not(.active) .q-footer-label {
  opacity: 1;
  transform: translateY(0);
  color: #94a3b8;
}

/* =========================
   ACTIVE
========================= */
.q-footer-nav button.active {
  /* Opaque — pas de rgba, pas de transparence */
  background: #e2e8f0;
  color: #0f172a;
}

.q-footer-nav button.active .material-icons-outlined {
  font-size: 1.55rem;        /* était 1.25rem fixe — on autorise le changement */
  transform: translateY(0);
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  transition: transform 0.2s ease, font-size 0.2s ease,
              font-variation-settings 0.2s ease;
}

.q-footer-nav button.active .q-footer-label {
  opacity: 0;
  transform: translateY(3px);
}

/* =========================
   PRESS FEEDBACK
========================= */
.q-footer-nav button:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Si ton contenu est trop court pour remplir l'écran, on fait en sorte que le main occupe tout l'espace */
.q-main-light {
  min-height: 100vh;
  padding-bottom: var(--q-footer-h);
  box-sizing: border-box;
}


/* Champs en erreur */
.q-input-error {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
}

.q-label-error {
  color: #dc2626 !important;
}

/* Tuiles désactivées */
.q-tile-disabled {
  opacity: 0.45;
  pointer-events: auto;
  background-color: #f8fafc;
}




.q-subheader-bio {
  display: flex;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
  justify-content: center;
}

.q-drug-card {
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.75rem;
  background: #ffffff;
}

.q-drug-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.q-drug-header-left {
  flex: 1;
  min-width: 0;
}

.q-drug-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.q-drug-chevron {
  color: #94a3b8;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
  display: inline-block;
}

.q-card-open .q-drug-chevron {
  transform: rotate(180deg);
}

.q-drug-body {
  display: none;
  margin-top: 0.5rem;
}

.q-card-open .q-drug-body {
  display: block;
}

.q-drug-name {
  font-weight: 600;
  color: #0f172a;
  background-color: transparent !important;
}

.q-drug-dose-chip {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.4rem 1rem;
  font-size: 1.0rem;
}

/* Couleurs proches étiquettes anesthésie */
.q-chip-opioid {
  background: #e0f2fe;
  color: #0369a1;
}
.q-chip-hypnotic {
  background: #fef9c3;
  color: #9e9522;
}
.q-chip-curare {
  background: #fee2e2;
  color: #b91c1c;
}

.q-chip-dexdor {
  background: #99eaf1;
  color: #147982;
}

.q-chip-bridion {
  background: #fa993f65;
  color: #FF8613;
}

.q-chip-other {
  background: #e5e7eb;
  color: #374151;
}

.q-chip-green {
  background: #67b381;
  color: #084503;
}

.q-chip-pink {
  background: #e39fd1;
  color: #ba0a8b;
}

.q-drug-posology,
.q-drug-meta {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  color: #475569;
}

.q-drug-alert {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #b91c1c;
}

/* Correction du logo à gauche du texte */
.q-subheader.sticky-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.q-logo-small {
  height: 30px;
  margin-right: 8px;
  margin-left: 10px;
}



/* Ajout de l'espace sous le header pour les onglets */
.q-main-with-subheader {
  margin-top: 80px; /* Ajuster cette valeur pour ne pas cacher les onglets */
}

/* Ajout de la couleur sur les noms des molécules */
.q-drug-name.q-chip-opioid {
  color: #1e3a8a; /* Bleu pour opiacés */
}

.q-drug-name.q-chip-hypnotic {
  color: #ca8a04; /* Jaune pour hypnotiques */
}

.q-drug-name.q-chip-curare {
  color: #dc2626; /* Rouge pour curares */
}

.q-drug-name.q-chip-other {
  color: #374151; /* Gris pour autres drogues */
}



/* ================================
   SEARCH (PWA OFFLINE) — UI
   ================================ */

.q-page-title{
  margin: 0 0 0.8rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
}

.q-search-head{
  position: sticky;
  top: 0;
  background: #ffffff;
  padding: 0.25rem 0.25rem 0.8rem;
  z-index: 900;
  border-radius: 15px;
    display: flex;           /* ← ajout */
  flex-direction: column;  /* ← ajout */
  width: 100%;             /* ← ajout */
  box-sizing: border-box;  /* ← ajout */
}

.q-searchbar{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    width: 95%;             /* ← ajout */
  box-sizing: border-box;  /* ← ajout */
}

.q-searchbar-ico{
  color: #64748b;
  font-size: 20px;
}

.q-searchbar-input{
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  color: #0f172a;
}

.q-searchbar-clear{
  border: none;
  background: transparent;
  cursor: pointer;
  color: #64748b;
}

.q-filter-row{
  margin-top: 0.8rem;
    width: 100%;   
}

.q-filter-title{
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}

.q-filter-chips{
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* SEARCH: respecter hidden sur les chips (sinon display:flex l'emporte) */
#qTypeChips[hidden]{
  display: none !important;
}

.q-chip{
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.q-chip.active,
.q-chip[aria-pressed="true"]{
  background: #37d6d3;
  border-color: #37d6d3;
  color: #ffffff;
}

.q-results{
  margin-top: 0.75rem;
}

.q-results-meta{
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.6rem;
}

.q-results-list{
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}

.q-result-card{
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  cursor: pointer;
}

.q-result-title{
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}

.q-result-sub{
  margin-top: 0.28rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.q-muted{
  color: #64748b;
  font-size: 0.78rem;
}

.q-badge{
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  background: #e2f7f6;
  color: #0b556b;
  border: 1px solid #baeaea;
}

.q-result-arrow{
  color: #94a3b8;
}

.q-mark{
  background: rgba(55,214,211,0.35);
  padding: 0 0.15rem;
  border-radius: 6px;
}

/* S'assurer que la bottom sheet passe au-dessus de tout */

/* Laisser de la place au footer sticky (sinon le bas des résultats est masqué) */
/* padding-bottom footer : centralisé via var(--q-footer-h) dans la règle principale .q-main-light */

/* Toggle filtres (mobile-friendly) */
.q-filter-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
    width: 100%;   
}

.q-filter-toggle {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.8rem;
  color: #475569;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.q-filter-toggle .material-icons-outlined{
  font-size: 18px;
  color: #64748b;
}

#qFilterToggle[hidden] {
  display: none !important;
}

/* Bottom sheet (détails médicament) */
/* Bottom sheet (détails médicament) */
.q-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2, 43, 43, 0.25);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--q-searchhead-h) 1rem 1rem;
  overflow: hidden;
}

.q-sheet-backdrop.open .q-sheet {
  transform: translateY(0);
  opacity: 1;
}

.q-sheet {
  width: min(820px, 100%);
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  padding: 0.85rem 0.95rem;
  transform: translateY(14px);
  opacity: 0.98;
  transition: transform 160ms ease, opacity 160ms ease;
  max-height: 78vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* IMPORTANT : respecter l'attribut hidden */
.q-sheet-backdrop[hidden] {
  display: none !important;
}

.q-sheet-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.q-sheet-title{
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.q-sheet-sub{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.q-link{
  color: #0b556b;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}

.q-link:hover{
  text-decoration: underline;
}

.q-sheet-body{
  display: grid;
  gap: 0.55rem;
}

.q-kv{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.q-k{
  font-size: 0.78rem;
  font-weight: 900;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.q-v{
  font-size: 0.9rem;
  color: #0f172a;
  white-space: pre-wrap;
}



/* ===========================
   MONITORAGE (scopé)
   =========================== */
.q-monitorage .q-kv-list{
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.q-monitorage .q-kv{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
}

.q-monitorage .q-k{
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
  line-height: 1.15;
}

.q-monitorage .q-v{
  font-weight: 800;
  color: #0f172a;
}

/* --- Pills "À surveiller" --- */
.q-monitorage .q-pill-grid{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.q-monitorage .q-pill{
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(2, 43, 43, 0.06);
  position: relative;
  overflow: hidden;
}

.q-monitorage .q-pill::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 6px;
  background: #cbd5e1;
}

.q-monitorage .q-pill-k{
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
}

.q-monitorage .q-pill-v{
  margin-top: 4px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
}

.q-monitorage .q-pill-ok::before{ background: #0b8e8b; }
.q-monitorage .q-pill-warn::before{ background: #f59e0b; }
.q-monitorage .q-pill-danger::before{ background: #ef4444; }

/* --- Paramètres vitaux : layout lisible + code couleur --- */
.q-monitorage .q-vitals-grid{
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.q-monitorage .q-vitals-block{
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(2, 43, 43, 0.06);
}

.q-monitorage .q-vitals-h{
  font-weight: 950;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.q-monitorage .q-vitals-line{
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
}

.q-monitorage .q-vitals-v{
  font-weight: 950;
  font-size: 1.05rem;
  color: #0f172a;
}

/* Badges (scopés) */
.q-monitorage .q-badge{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border: 1px solid #dbe7ef;
  background: #f1f5f9;
  color: #334155;
}

.q-monitorage .q-badge-danger{
  border-color: rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.10);
  color: #b91c1c;
}

.q-monitorage .q-badge-warn{
  border-color: rgba(245,158,11,0.35);
  background: rgba(245,158,11,0.12);
  color: #92400e;
}

/* Mobile: KV plus compact */
@media (max-width: 420px){
  .q-monitorage .q-kv{
    grid-template-columns: 140px 1fr;
  }
  .q-monitorage .q-pill-grid{
    grid-template-columns: 1fr;
  }
}


/* =======================
   WOW vitals table
=======================*/

.q-monitorage .q-vitals-table{
  margin-top:12px;
  display:grid;
  gap:6px;
}

.q-monitorage .q-vital-row{
  display:grid;
  grid-template-columns: 64px 1fr 1fr 1fr 48px;
  gap:6px;
  align-items:center;
  background:#ffffff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:8px 10px;
}

.q-monitorage .q-vital-name{
  font-weight:900;
  color:#0f172a;
}

.q-monitorage .q-vital-val{
  text-align:center;
  font-weight:900;
  padding:4px 6px;
  border-radius:8px;
}

.q-monitorage .q-vital-val.ok{
  background:#e6f6f6;
  color:#067a7a;
}

.q-monitorage .q-vital-val.warn{
  background:#fff4e5;
  color:#92400e;
}

.q-monitorage .q-vital-val.danger{
  background:#fee2e2;
  color:#b91c1c;
}

.q-monitorage .q-vital-unit{
  font-size:.75rem;
  color:#64748b;
  text-align:right;
}

@media(max-width:420px){
  .q-monitorage .q-vital-row{
    grid-template-columns: 54px 1fr 1fr 1fr 40px;
    font-size:.9rem;
  }
}


/* ===========================
   Voies Aériennes — Matériel et Réglages
   =========================== */

.q-monitorage .q-vitals-table {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.q-monitorage .q-vital-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background-color: #f3f4f6;
  padding: 12px;
  border-radius: 8px;
}


.q-monitorage .q-vitals-table {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.q-monitorage .q-vital-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background-color: #f3f4f6;
  padding: 12px;
  border-radius: 8px;
}






/* Header de section avec toggle */
.q-section-header-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.q-section-header-toggle .q-section-title-light {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Header cliquable pour le toggle biométrie */
.q-bio-header-clickable {
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  padding: 0.6rem 0.4rem 0.6rem 0;
  min-height: 3rem;
  align-items: center;
  transition: background 0.15s;
}
.q-bio-header-clickable:hover {
  background: #f1f5f9;
}

.q-bio-header-clickable .q-section-title-light {
  margin: 0;
  align-self: center;
}

/* Texte résumé (apparaît quand c'est caché) */
.q-bio-summary-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0b556b;
  margin-left: 0.6rem;
  flex: 1;
  text-align: center;
  align-self: center;
  animation: fadeIn 0.2s ease-out;
}

/* Icône toggle à droite du header patient */
.q-bio-toggle-icon {
  font-size: 1.2rem;
  color: #64748b;
  flex-shrink: 0;
  margin-left: 0.5rem;
  align-self: center;
}

.q-filter-toggle:hover {
  background: #e2f7f6;
  border-color: #baeaea;
  color: #0b556b;
}

.q-filter-toggle .material-icons-outlined {
  font-size: 1.1rem;
}

.q-bio-actions-light {
  margin-top: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}




/* --- Mise en forme SEARCH-STYLE --- */
.q-search-row-light {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.q-result-count {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0.4rem 0 1rem 0;
}

.q-filter-collapsible {
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Badges de contamination --- */
.q-atb-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}
.q-atb-badge.propre { background: #dcfce7; color: #166534; }
.q-atb-badge.contaminee { background: #fee2e2; color: #991b1b; }
.q-atb-badge.propre-contaminee { background: #fef9c3; color: #854d0e; }

/* --- Cartes ATB --- */
.q-atb-card {
    padding: 1rem !important;
    margin-bottom: 1rem;
    border-left: 4px solid #3b82f6;
}
.q-atb-card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.q-atb-spec { font-size: 0.7rem; color: #64748b; font-weight: 700; text-transform: uppercase; }
.q-atb-title { font-size: 1rem; font-weight: 800; color: #0f172a; margin-top: 2px; }

.q-atb-item {
    background: #f1f5f9;
    padding: 0.7rem;
    border-radius: 8px;
    margin-top: 0.6rem;
}
.q-atb-header { display: flex; justify-content: space-between; align-items: center; }
.q-atb-name { font-weight: 700; color: #2563eb; }
.q-atb-dose-final { font-weight: 900; background: white; padding: 2px 6px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.q-atb-details { font-size: 0.75rem; color: #475569; margin-top: 4px; line-height: 1.3; }

.q-atb-footer {
    margin-top: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}


/* ===========================
   APPORTS & PSL
   =========================== */

/* Panneau paramètres chirurgie */
.q-psl-params {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
}

.q-psl-params-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.q-psl-param-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.q-psl-param-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.q-psl-number-input {
  width: 64px;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

.q-psl-number-input:focus {
  outline: none;
  border-color: #37d6d3;
  box-shadow: 0 0 0 2px rgba(55,214,211,0.3);
}

/* Toggle 3 boutons pour les pertes chirurgicales */
.q-pill-toggle-3 {
  display: inline-flex;
  background: #e2f7f6;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid #baeaea;
  gap: 2px;
}

.q-pill-toggle-3 .q-pill-btn-light {
  font-size: 0.75rem;
  line-height: 1.2;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  text-align: center;
}

.q-pill-toggle-3 .q-pill-btn-light small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.8;
}

/* Cartes de calcul */
.q-psl-calc-card {
  border-left: 4px solid #37d6d3;
  background: #f0fdfc;
}

.q-psl-card-urgence {
  border-left-color: #ef4444;
  background: #fff5f5;
}

.q-psl-card-jeune {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.q-psl-card-ms {
  border-left-color: #8b5cf6;
  background: #faf5ff;
}

.q-psl-card-synthese {
  border-left-color: #37d6d3;
  background: #f0fdfc;
}

.q-psl-calc-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.6rem;
}

.q-psl-calc-rows {
  display: grid;
  gap: 0.35rem;
}

.q-psl-calc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.q-psl-calc-row:last-child {
  border-bottom: none;
}

.q-psl-calc-label {
  font-size: 0.82rem;
  color: #475569;
}

.q-psl-calc-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.q-psl-calc-sub {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: -0.2rem;
}

/* Widget Hb (CGR) */
.q-psl-hb-widget {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.q-psl-hb-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.q-psl-hb-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.q-psl-hb-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.q-psl-hb-arrow {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-top: 1rem;
}

.q-psl-hb-result {
  background: #2563eb;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-top: 1rem;
  white-space: nowrap;
}

.q-psl-hb-formula {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0.5rem 0 0;
  font-style: italic;
}

/* Drug indication */
.q-drug-indication {
  font-size: 0.82rem;
  color: #475569;
  margin: 0.25rem 0 0.1rem;
}












/* ============================================================
   MONITORAGE & VOIES AÉRIENNES — Redesign UI
   ============================================================ */

/* Section générique */
.q-mon-section {
  margin-bottom: 1.25rem;
}

.q-mon-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.6rem;
  padding-left: 2px;
}

/* ── Device cards (dispositifs) ─────────────────────────── */
.q-mon-device-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .q-mon-device-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.q-mon-device-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--accent, #37d6d3);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.q-mon-device-icon {
  font-size: 1.4rem;
  color: var(--accent, #37d6d3);
  flex-shrink: 0;
}

.q-mon-device-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.q-mon-device-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 1px;
}

/* ── Vitals table ────────────────────────────────────────── */
.q-mon-vital-header {
  display: grid;
  grid-template-columns: 1fr 90px 70px 70px;
  gap: 6px;
  padding: 0 10px 4px;
}

.q-mon-col-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 2px 4px;
  border-radius: 6px;
}

.q-mon-col-ok   { background: #e6f6f6; color: #067a7a; }
.q-mon-col-low  { background: #fff4e5; color: #92400e; }
.q-mon-col-high { background: #fee2e2; color: #b91c1c; }

.q-mon-vital-table {
  display: grid;
  gap: 5px;
}

.q-mon-vital-row {
  display: grid;
  grid-template-columns: 1fr 90px 70px 70px;
  gap: 6px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
}

.q-mon-vital-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
}

.q-mon-vital-icon {
  font-size: 1rem;
  color: #94a3b8;
}

.q-mon-vital-ok,
.q-mon-vital-low,
.q-mon-vital-high {
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 5px;
  border-radius: 8px;
  white-space: nowrap;
}

.q-mon-vital-ok {
  background: #e6f6f6;
  color: #067a7a;
}

.q-mon-vital-low {
  background: #fff4e5;
  color: #92400e;
}

.q-mon-vital-high {
  background: #fee2e2;
  color: #b91c1c;
}

.q-mon-vital-unit {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.75;
}

@media (max-width: 400px) {
  .q-mon-vital-header,
  .q-mon-vital-row {
    grid-template-columns: 1fr 80px 60px 60px;
    gap: 4px;
    font-size: 0.8rem;
  }
}

/* ── Bio cards ───────────────────────────────────────────── */
.q-mon-bio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .q-mon-bio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.q-mon-bio-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--accent, #37d6d3);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.q-mon-bio-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 4px;
}

.q-mon-bio-value {
  font-size: 0.88rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

/* ── SIT cards (voies aériennes) ─────────────────────────── */
.q-mon-sit-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.q-mon-sit-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.q-mon-sit-main {
  background: #0f172a;
  border-color: #0f172a;
}

.q-mon-sit-main .q-mon-sit-label,
.q-mon-sit-main .q-mon-sit-sub { color: #94a3b8; }
.q-mon-sit-main .q-mon-sit-value { color: #37d6d3; font-size: 2rem; }

.q-mon-sit-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.q-mon-sit-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  margin: 3px 0;
}

.q-mon-sit-sub {
  font-size: 0.62rem;
  color: #94a3b8;
}

/* ── Repères SIT ─────────────────────────────────────────── */
.q-mon-repere-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.q-mon-repere-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
}

.q-mon-repere-icon {
  font-size: 1.1rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.q-mon-repere-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.q-mon-repere-value {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
}

@media (max-width: 400px) {
  .q-mon-sit-grid      { grid-template-columns: 1fr 1fr 1fr; }
  .q-mon-repere-grid   { grid-template-columns: 1fr; }
  .q-mon-repere-card   { flex-direction: row; }
}

/* ── Stat cards (réglages ventilatoires) ─────────────────── */
.q-mon-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

@media (max-width: 400px) {
  .q-mon-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

.q-mon-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-bottom: 3px solid var(--accent, #37d6d3);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  text-align: center;
}

.q-mon-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 4px;
}

.q-mon-stat-value {
  font-size: 1.3rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.q-mon-stat-unit {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
}

/* ================================
   URGENCES — tile-grid + detail
   ================================ */

.q-urg-intro {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
  margin: 0.75rem 0 0.5rem;
}

.q-urg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.5rem 0 1rem;
}

.q-urg-tile {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.65rem 0.7rem 0.75rem;
  background: var(--urg-bg, #f8fafc);
  border: 1.5px solid var(--urg-border, #cbd5e1);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.12s;
  min-width: 0;
}

.q-urg-tile:active {
  opacity: 0.7;
}

.q-urg-tile-icon {
  font-size: 1.35rem;
  color: var(--urg-color, #475569);
  flex-shrink: 0;
}

.q-urg-tile-body {
  flex: 1;
  min-width: 0;
}

.q-urg-tile-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--urg-color, #0f172a);
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}

.q-urg-tile-count {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 1px;
}

.q-urg-chevron {
  font-size: 1.1rem;
  color: var(--urg-border, #cbd5e1);
  flex-shrink: 0;
}

.q-urg-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: #0b8e8b;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 0 0.75rem;
  -webkit-tap-highlight-color: transparent;
}

.q-urg-back .material-icons-outlined {
  font-size: 1.1rem;
}

.q-urg-detail-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--urg-bg, #f8fafc);
  border: 1.5px solid var(--urg-border, #cbd5e1);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.q-urg-detail-icon {
  font-size: 1.5rem;
  color: var(--urg-color, #475569);
}

.q-urg-detail-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--urg-color, #0f172a);
}

.q-urg-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ======= CROISSANCE PAGE ======= */

.q-card-light {
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 0.9rem;
  background: #ffffff;
}

.q-card-title-light {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.6rem;
}

.q-card-title-light .material-icons-outlined {
  font-size: 1.1rem;
  color: #64748b;
}

.q-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}

.q-stat-row:last-child {
  border-bottom: none;
}

.q-stat-label {
  color: #64748b;
  flex-shrink: 0;
}

.q-stat-value {
  font-weight: 600;
  color: #1e293b;
  text-align: right;
}

.q-stat-comment {
  font-weight: 400;
  font-size: 0.78rem;
  color: #94a3b8;
}

.q-curve-legend {
  font-size: 0.78rem;
  color: #94a3b8;
  padding: 0.3rem 0.5rem 0.5rem;
  text-align: center;
}

/* ======= PAGE TRANSITIONS ======= */

@keyframes q-fadein {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.q-page-anim {
  animation: q-fadein 0.18s ease;
}

/* ======= BOUTON RETOUR DANS LE HEADER ======= */

.q-back-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  margin-right: 0.4rem;
  color: #0b556b;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px;
}

.q-back-btn:active {
  background: #f1f5f9;
}

.q-back-btn .material-icons-outlined {
  font-size: 22px;
}

/* ======= TOAST ======= */

.q-toast {
  position: fixed;
  bottom: calc(var(--q-footer-h) + 0.8rem);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1e293b;
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}

.q-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ======= PROFIL — bouton suppression individuel ======= */

.q-profile-chip-light {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.q-profile-chip-content {
  flex: 1;
  text-align: left;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  min-width: 0;
}

.q-profile-chip-del {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.q-profile-chip-del:hover,
.q-profile-chip-del:active {
  color: #dc2626;
  background: #fee2e2;
}

.q-profile-chip-del .material-icons-outlined {
  font-size: 16px;
}

/* ======= VERSION DONNÉES (page Infos) ======= */

.q-info-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e2f7f6;
  color: #0b8e8b;
  border: 1px solid #baeaea;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 10px;
}

/* ======= BANDEAU DE MISE À JOUR PWA ======= */

.q-update-banner {
  position: fixed;
  bottom: calc(var(--q-footer-h) + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 32px));
  z-index: 9000;
  background: var(--q-gray-800);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22), 0 1px 4px rgba(0,0,0,0.12);
  animation: q-update-slide-up 0.28s ease;
}

.q-update-banner[hidden] {
  display: none !important;
}

.q-update-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.q-update-content .material-icons-outlined {
  font-size: 20px;
  color: var(--q-brand);
  flex-shrink: 0;
  margin-top: 1px;
}

.q-update-text {
  flex: 1;
  min-width: 0;
}

.q-update-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.q-update-text ul {
  margin: 4px 0 0;
  padding-left: 15px;
  font-size: 0.78rem;
  opacity: 0.8;
}

.q-update-text li {
  margin-bottom: 2px;
}

.q-update-btn {
  flex-shrink: 0;
  background: var(--q-brand);
  color: #0b2a2a;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.q-update-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@keyframes q-update-slide-up {
  from { transform: translateX(-50%) translateY(16px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}



/* ═══════════════════════════════════════════════════════════
   SCORES CLINIQUES — styles déplacés depuis scores.js
   ═══════════════════════════════════════════════════════════ */
 
/* ── Layout ── */
.q-scores-layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.q-scores-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
  position: sticky;
  top: 110px;
}
.q-scores-sidebar-head {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
}
.q-scores-sidebar-list {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.q-scores-main {
  flex: 1;
  min-width: 0;
}
 
/* ── Liste sidebar ── */
.q-score-list-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, border-color 0.12s;
}
.q-score-list-item:hover {
  background: #f8fafc;
  border-left-color: #cbd5e1;
}
.q-score-list-item.active {
  background: #e2f7f6;
  border-left-color: #37d6d3;
}
.q-score-list-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.q-score-list-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-score-list-item.active .q-score-list-title { color: #0b556b; }
.q-score-list-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
/* ── Tags ── */
.q-score-tag {
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.q-score-tag-teal    { background: #e2f7f6; color: #0b556b; border: 1px solid #baeaea; }
.q-score-tag-orange  { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.q-score-tag-red     { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.q-score-tag-green   { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.q-score-tag-purple  { background: #f5f3ff; color: #5b21b6; border: 1px solid #ddd6fe; }
.q-score-tag-blue    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
 
/* ── Filtre tags ── */
.q-scores-filter-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
 
/* ── Placeholder ── */
.q-score-placeholder {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.q-score-placeholder .material-icons-outlined {
  font-size: 2.5rem;
  color: #37d6d3;
  margin-bottom: 0.75rem;
}
.q-score-placeholder h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.4rem;
}
.q-score-placeholder p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}
 
/* ── Score detail ── */
.q-score-detail {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.q-score-detail-header {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}
.q-score-detail-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}
.q-score-detail-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.q-score-detail-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}
.q-score-detail-desc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}
.q-score-detail-ref {
  font-size: 0.72rem;
  color: #94a3b8;
  font-style: italic;
}
 
.q-score-detail-body {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
 
.q-score-detail-actions {
  padding: 0.5rem 1rem 0.9rem;
  display: flex;
  justify-content: flex-end;
}
 
/* ── Cat blocks ── */
.q-score-cat-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}
.q-score-cat-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.5rem;
}
 
/* ── Radio items ── */
.q-score-radio-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.3rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
}
.q-score-radio-item:last-child { margin-bottom: 0; }
.q-score-radio-item:hover { border-color: #37d6d3; background: #f0fdfc; }
.q-score-radio-item.selected { border-color: #37d6d3; background: #e2f7f6; }
 
.q-score-radio-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.q-score-radio-dot.selected {
  border-color: #37d6d3;
  box-shadow: inset 0 0 0 4px #37d6d3;
}
.q-score-radio-label {
  flex: 1;
  font-size: 0.85rem;
  color: #334155;
}
 
/* ── Checkbox items ── */
.q-score-checkbox-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.3rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
}
.q-score-checkbox-item:last-child { margin-bottom: 0; }
.q-score-checkbox-item:hover { border-color: #37d6d3; background: #f0fdfc; }
.q-score-checkbox-item.selected { border-color: #37d6d3; background: #e2f7f6; }
 
.q-score-checkbox {
  width: 18px; height: 18px; border-radius: 5px;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, border-color 0.12s;
}
.q-score-checkbox.selected {
  background: #37d6d3;
  border-color: #37d6d3;
}
 
/* ── Points badge ── */
.q-score-pts {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}
.q-score-pts.active { background: #e2f7f6; color: #0b556b; }
 
/* ── Segment buttons ── */
.q-score-segment-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}
.q-score-segment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.q-score-segment-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}
.q-score-segment-btns {
  display: flex;
  gap: 0.35rem;
}
.q-score-seg-btn {
  flex: 1;
  padding: 0.45rem 0.25rem;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.12s;
}
.q-score-seg-btn:hover { border-color: #37d6d3; color: #0b556b; }
.q-score-seg-btn.selected {
  background: #37d6d3;
  border-color: #37d6d3;
  color: #ffffff;
}
.q-score-segment-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.4rem;
  font-style: italic;
}
.q-score-segment-desc-empty { color: #cbd5e1; }
 
/* ── Visual scale ── */
.q-score-scale-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.3rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s;
}
.q-score-scale-item:last-child { margin-bottom: 0; }
.q-score-scale-item:hover { border-color: #37d6d3; background: #f0fdfc; }
.q-score-scale-item.selected { border-color: #37d6d3; background: #e2f7f6; }
.q-score-scale-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: #94a3b8;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.12s;
}
.q-score-scale-num.selected { color: #0b556b; }
 
/* ── Oui/Non ── */
.q-score-ouinon-btn {
  flex: 1;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.12s;
}
.q-score-ouinon-btn.selected-non { border-color: #22c55e; background: #f0fdf4; color: #166534; }
.q-score-ouinon-btn.selected-oui { border-color: #ef4444; background: #fef2f2; color: #b91c1c; }
 
/* ── Résultat ── */
.q-score-result {
  margin: 0 1rem 0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
}
.q-score-result-ok      { background: #e2f7f6; border-color: #baeaea; }
.q-score-result-warn    { background: #fffbeb; border-color: #fde68a; }
.q-score-result-danger  { background: #fee2e2; border-color: #fecaca; }
.q-score-result-empty   { background: #f8fafc; border-color: #e2e8f0; }
 
.q-score-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.q-score-result-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.q-score-result-value {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.q-score-result-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
}
.q-score-result-max {
  font-size: 0.85rem;
  color: #94a3b8;
}
.q-score-result-extra {
  font-size: 0.78rem;
  color: #475569;
  margin-left: 0.5rem;
}
.q-score-result-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.5;
}
.q-score-result-pending { color: #94a3b8; font-weight: 400; }
 
/* ── Reset button ── */
.q-score-reset-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.12s;
}
.q-score-reset-btn:hover { background: #e2e8f0; color: #334155; }
.q-score-reset-btn .material-icons-outlined { font-size: 16px; }
 
/* ── Responsive (mobile: liste en haut) ── */
@media (max-width: 600px) {
  .q-scores-layout { flex-direction: column; }
  .q-scores-sidebar {
    width: 100%;
    position: static;
    max-height: none;
  }
  .q-scores-sidebar-list { max-height: 200px; }
}
 
/* ── Searchbar scores ── */
.q-scores-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.q-scores-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  color: #0f172a;
}
.q-scores-search .material-icons-outlined { color: #94a3b8; font-size: 20px; }
 
/* ═══════════════════════════════════════════════════════════
   CLASSIFICATION ASA
   ═══════════════════════════════════════════════════════════ */
 
.q-score-asa-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  margin-bottom: 0.35rem;
  transition: border-color 0.12s, background 0.12s;
}
.q-score-asa-item:last-child { margin-bottom: 0; }
.q-score-asa-item:hover { border-color: #37d6d3; background: #f0fdfc; }
.q-score-asa-item.selected { border-color: #37d6d3; }
 
.q-score-asa-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.q-score-asa-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
  letter-spacing: 0.02em;
}
.q-score-asa-def {
  font-size: 0.85rem;
  color: #475569;
  flex: 1;
  transition: color 0.12s, font-weight 0.12s;
}
 
.q-score-asa-examples-wrap {
  margin-top: 0.3rem;
  padding: 0.5rem 0.65rem;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
}
.q-score-asa-examples-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}
.q-score-asa-examples {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.75;
}
 

.q-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}

.q-modal-overlay[hidden] {
  display: none !important;
}

.q-modal-box {
  background: var(--surface, #fff);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 320px; width: 90%;
  display: flex; flex-direction: column; gap: .75rem;
  pointer-events: auto;  /* ← ajouter */
}
.q-modal-box ul { padding-left: 1.2rem; margin: 0; }
.q-update-dismiss {
  background: none; border: none;
  font-size: 1.1rem; cursor: pointer;
  color: var(--on-surface-variant, #666);
  padding: .25rem .5rem;
}
.q-update-actions { display: flex; align-items: center; gap: .5rem; }