:root {
  --primary: #0071e3; --secondary: #0077ed; --success: #28cd41; --success-bg: #e8f9ec;
  --warning: #ff9500; --warning-bg: #fff5e5; --danger: #ff3b30; --danger-bg: #ffeceb;
  --purple: #af52de; --purple-bg: #f7ebfc; --teal: #00c7be; --teal-bg: #e6faf9;
  --bg: #f5f5f7; --card-bg: #ffffff; --border: #d2d2d7; --text: #1d1d1f; --muted: #6e6e73;
  --shadow-ui: 0 12px 36px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
}
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { min-height: 100vh; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif; background: var(--bg); color: var(--text); letter-spacing: -0.012em; scroll-behavior: smooth; }
#flashBanner { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: rgba(29,29,31,0.92); backdrop-filter: blur(20px); color: white; padding: 10px 24px; border-radius: 999px; font-weight: 700; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); z-index: 10005; display: none; align-items: center; gap: 8px; }
#sandboxBanner { display: none; background: rgba(29,29,31,0.94); color: white; padding: 8px 16px; font-size: 12px; font-weight: 700; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; z-index: 9999; }

/* VUE 0 : VITRINE */
#vitrineSaas { display: none; min-height: 100vh; background: #f5f5f7; color: #1d1d1f; }
.vit-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.88); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.08); padding: 12px 24px; }
.vit-nav-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.vit-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: #1d1d1f; text-decoration: none; }
.vit-brand-badge { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #0071e3, #42a1ec); color: white; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.vit-mode-pill { display: inline-flex; background: #e8e8ed; padding: 4px; border-radius: 999px; gap: 4px; }
.vit-mode-btn { border: none; background: transparent; padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; cursor: pointer; color: #1d1d1f; }
.vit-mode-btn.active { background: #ffffff; color: #0071e3; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.vit-patient-hero { max-width: 820px; margin: 0 auto; padding: 54px 20px 44px 20px; text-align: center; }
.vit-pill-top { display: inline-flex; align-items: center; gap: 8px; background: #ffffff; border: 1px solid rgba(0,0,0,0.08); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.vit-patient-hero h1 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 800; line-height: 1.1; margin: 0 0 14px 0; }
.vit-patient-hero h1 span { background: linear-gradient(135deg, #0071e3, #00c7be); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.vit-patient-hero p { font-size: 16px; color: var(--muted); max-width: 640px; margin: 0 auto 26px auto; line-height: 1.5; }
.vit-spotlight-card { background: #ffffff; border-radius: 24px; padding: 24px; box-shadow: var(--shadow-ui); border: 1px solid rgba(0,0,0,0.05); text-align: left; }
.vit-search-bar-row { display: flex; gap: 10px; flex-wrap: wrap; }
.vit-search-input { flex: 1; min-width: 240px; padding: 14px 18px; border-radius: 14px; border: 1.5px solid #d2d2d7; background: #f5f5f7; font-size: 15px; font-weight: 600; }
.vit-search-results { display: none; margin-top: 14px; border-top: 1px solid #e5e5ea; padding-top: 10px; max-height: 280px; overflow-y: auto; }
.vit-search-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid #e5e5ea; background: #fbfbfd; margin-bottom: 8px; gap: 10px; flex-wrap: wrap; }
#vitrineProSection { display: none; border-top: 1px solid rgba(0,0,0,0.08); background: #ffffff; padding-top: 48px; }
.vit-pro-header { max-width: 960px; margin: 0 auto 32px auto; text-align: center; padding: 0 20px; }
.vit-segmented-control { display: inline-flex; background: #f5f5f7; padding: 4px; border-radius: 999px; border: 1px solid #e5e5ea; margin-bottom: 24px; gap: 4px; flex-wrap: wrap; justify-content: center; }
.vit-seg-btn { border: none; background: transparent; color: #1d1d1f; font-weight: 600; font-size: 13px; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.vit-seg-btn.active { background: #0071e3; color: #ffffff; }
.vit-visual-stage { max-width: 1160px; margin: 0 auto 50px auto; padding: 0 20px; }
.vit-devices-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 920px) { .vit-devices-grid { grid-template-columns: 1fr; } }
.mockup-mobile { background: #1d1d1f; border-radius: 36px; padding: 10px; border: 2px solid #3a3a3c; display: flex; flex-direction: column; }
.mockup-mobile-screen { background: #f5f5f7; border-radius: 28px; padding: 14px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.mockup-desktop { background: #1d1d1f; border-radius: 24px; padding: 10px; border: 2px solid #3a3a3c; display: flex; flex-direction: column; }
.mockup-desktop-screen { background: #ffffff; border-radius: 16px; overflow: hidden; flex: 1; display: flex; flex-direction: column; text-align: left; }
.mockup-top-bar { background: linear-gradient(135deg, #0071e3, #0051a8); color: white; padding: 9px 14px; display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 700; }
.vit-bento-grid { max-width: 1160px; margin: 0 auto 48px auto; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.vit-bento-card { background: #f5f5f7; border-radius: 20px; padding: 22px; }
.vit-pricing-section { max-width: 1140px; margin: 0 auto 52px auto; padding: 20px; text-align: center; }
.vit-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 22px; text-align: left; }
.vit-price-card { background: #f5f5f7; border: 1.5px solid #e5e5ea; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.vit-price-card.featured { background: #ffffff; border: 2px solid var(--primary); box-shadow: 0 18px 45px rgba(0,113,227,0.12); }
.vit-price-badge { position: absolute; top: -12px; right: 20px; background: var(--primary); color: white; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.vit-price-amount { font-size: 38px; font-weight: 800; margin: 10px 0 4px 0; }
.vit-price-amount span { font-size: 13px; font-weight: 500; color: var(--muted); }
.vit-feature-list { margin: 12px 0 20px 0; padding-left: 0; list-style: none; font-size: 13px; line-height: 1.7; }
.vit-onboarding-section { max-width: 1060px; margin: 0 auto 52px auto; padding: 0 20px; }
.vit-onboarding-card { background: linear-gradient(135deg, #1d1d1f, #2c2c2e); color: white; border-radius: 24px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
@media (max-width: 800px) { .vit-onboarding-card { grid-template-columns: 1fr; } }
.vit-form-box { background: white; color: #1d1d1f; border-radius: 16px; padding: 20px; }
.vit-footer { border-top: 1px solid #e5e5ea; background: white; padding: 20px; text-align: center; font-size: 12px; color: var(--muted); }

/* VUE 1 : PORTAIL PATIENT */
#patientPortal { min-height: 100vh; background: #f5f5f7; display: none; flex-direction: column; justify-content: space-between; padding: 16px 14px 40px 14px; }
.pat-shell { width: 100%; max-width: 640px; margin: 0 auto; }
.pat-samu-top { background: #ffffff; border: 1px solid #ffccc7; color: #d70015; font-size: 11.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; text-align: center; margin-bottom: 12px; }
.pat-header { text-align: center; margin-bottom: 12px; }
.pat-logo { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; font-size: 23px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.pat-header h1 { margin: 0; font-size: 21px; font-weight: 800; }
.pat-header p { margin: 3px 0 0 0; font-size: 12.5px; color: var(--muted); }
.pat-site-bar { background: #ffffff; border: 1px solid rgba(0,113,227,0.2); border-radius: 16px; padding: 10px 14px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pat-site-bar-btn { background: #f0f7ff; color: var(--primary); padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 12px; text-decoration: none; white-space: nowrap; }
.pat-card { background: #ffffff; border-radius: 22px; padding: 20px; box-shadow: var(--shadow-ui); }
.pat-step-title { font-size: 14.5px; font-weight: 700; margin: 0 0 12px 0; display: flex; align-items: center; gap: 8px; }
.pat-step-num { background: var(--primary); color: white; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.pat-choice-list { display: flex; flex-direction: column; gap: 10px; }
.pat-choice-card { border: 1.5px solid #e5e5ea; border-radius: 16px; padding: 13px 15px; display: flex; align-items: center; gap: 13px; cursor: pointer; background: #ffffff; }
.pat-choice-card.sel-urgence { border-color: var(--danger); background: #fff8f7; }
.pat-choice-card.sel-rdv { border-color: var(--primary); background: #f2f8ff; }
.pat-choice-card.sel-question { border-color: var(--purple); background: #fcf6ff; }
.pat-choice-icon { width: 40px; height: 40px; border-radius: 12px; background: #f5f5f7; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.pat-choice-title { font-weight: 700; font-size: 14px; display: block; }
.pat-choice-sub { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.pat-section { border-top: 1px solid #e5e5ea; padding-top: 16px; margin-top: 16px; }
.pat-q-block { background: #f5f5f7; border: 1.5px solid transparent; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.pat-q-block.q-answered { border-color: var(--success); background: #f2fcf5; }
.pat-q-block.q-missing, .pat-big-field.q-missing, .pat-legal-box.q-missing { border-color: var(--danger); background: #fff5f5; }
.pat-q-label { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; display: block; }
.pat-req-star { color: var(--danger); font-weight: 900; }
.pat-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pat-pill { padding: 9px 15px; border-radius: 999px; border: 1px solid #d2d2d7; background: #ffffff; font-weight: 600; font-size: 13px; cursor: pointer; }
.pat-pill.active { background: var(--primary); color: white; border-color: var(--primary); }
.pat-pill.active-danger { background: var(--danger); color: white; border-color: var(--danger); }
.pat-coord-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pat-big-field { background: #f5f5f7; border: 1.5px solid transparent; border-radius: 14px; padding: 10px 12px; }
.pat-big-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.pat-big-input { width: 100%; padding: 10px 12px; border: 1px solid #d2d2d7; border-radius: 10px; font-size: 16px !important; font-weight: 600; background: #fff; }
.pat-input { width: 100%; padding: 10px 12px; border: 1px solid #d2d2d7; border-radius: 10px; font-size: 15px !important; font-family: inherit; background: #fff; }
@media (max-width: 640px) { .pat-coord-grid, .pat-urg-grid-2 { grid-template-columns: 1fr !important; } .pat-site-bar { flex-direction: column; text-align: center; } }
.pat-legal-box { background: #f5f5f7; border: 1.5px solid transparent; border-radius: 12px; padding: 11px 13px; margin-top: 12px; }
.pat-check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; cursor: pointer; line-height: 1.4; }
.pat-check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.pat-security-strip { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: #007a72; background: #e8faf8; border-radius: 10px; padding: 7px 10px; margin-top: 10px; font-weight: 600; }
.pat-submit-btn { width: 100%; padding: 15px 18px; border: none; border-radius: 14px; background: var(--primary); color: white; font-size: 15.5px; font-weight: 700; cursor: pointer; margin-top: 12px; }
.pat-footer { margin-top: 18px; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.5; }
.pat-footer a { color: #1d1d1f; text-decoration: none; font-weight: 600; margin: 0 5px; }

/* VUE 2 : BACK-OFFICE CABINET */
@keyframes blinkRowAlert { 0%, 100% { background-color: #fff2f2 !important; box-shadow: inset 4px 0 0 #ff3b30; } 50% { background-color: #fff9db !important; box-shadow: inset 4px 0 0 #ff9500; } }
tr.row-unseen td { animation: blinkRowAlert 1.4s infinite; }
.role-unseen-pill { background: #ff3b30; color: white; border-radius: 999px; padding: 1px 6px; font-size: 10px; font-weight: 800; margin-left: 4px; display: inline-block; }
#unseenRoleBanner { display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 14px; background: #ff3b30; color: white; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.btn-vu-row { background: #ff3b30; color: white; border: none; padding: 5px 8px; border-radius: 8px; font-weight: 700; font-size: 11px; cursor: pointer; margin-bottom: 5px; width: 100%; }

#cabinetWrapper { height: 100vh; padding: 6px; display: none; overflow: hidden; flex-direction: column; }
#authOverlay, #modalDevis, #modalRgpd, #modalSuperAdmin, #modalParametresCabinet, #modalMonCompte, #modalResetMdp, #modalConnexionVitrine, #modalVerifDemoCode { position: fixed; inset: 0; background: rgba(0,0,0,0.48); backdrop-filter: blur(12px); z-index: 9990; display: none; align-items: center; justify-content: center; padding: 14px; }
#authOverlay { background: linear-gradient(135deg, #1d1d1f, #004080); z-index: 9995; }
#modalResetMdp { z-index: 10002; }
.auth-card { background: white; max-width: 440px; width: 100%; padding: 26px 24px; border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); text-align: center; }
.auth-input { width: 100%; padding: 12px; font-size: 15px; text-align: center; border: 1.5px solid var(--border); border-radius: 12px; margin-bottom: 10px; font-weight: 600; background: #f5f5f7; }
.modal-devis-card { background: white; max-width: 940px; width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 22px; padding: 20px 24px; box-shadow: 0 25px 60px rgba(0,0,0,0.28); }
.devis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mat-box { border: 1px solid #e5e5ea; border-radius: 14px; padding: 12px 14px; background: #f5f5f7; margin-bottom: 10px; }
.container { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; background: var(--card-bg); border-radius: 16px; box-shadow: var(--shadow-ui); border: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; overflow: hidden; }
header { background: linear-gradient(135deg, var(--primary), #0051a8); color: white; padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
header h1 { margin: 0; font-size: 14px; font-weight: 700; }
.header-controls { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.btn-aide-devis { background: #ffd60a; color: #1d1d1f; border: none; padding: 5px 10px; border-radius: 999px; font-weight: 700; font-size: 11px; cursor: pointer; }
.role-switch { display: flex; background: rgba(0,0,0,0.25); padding: 3px; border-radius: 999px; gap: 3px; }
.role-btn { border: none; background: transparent; color: rgba(255,255,255,0.85); padding: 5px 11px; border-radius: 999px; font-weight: 600; font-size: 11.5px; cursor: pointer; }
.role-btn.active-sec { background: white; color: var(--primary); font-weight: 700; }
.role-btn.active-ast { background: #30d5c8; color: #00332e; font-weight: 700; }
.role-btn.active-dr { background: #ffd60a; color: #1d1d1f; font-weight: 700; }
.lock-btn { border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.14); color: white; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; cursor: pointer; }

/* BARRE DE COMMUNICATION DIRECTE PERFECTIONNÉE EN HAUT */
#teamQuickBar { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f0f7ff; border-bottom: 1px solid #cce4ff; padding: 6px 14px; flex-shrink: 0; flex-wrap: wrap; }
.quick-patient-select { max-width: 210px; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--primary); font-weight: 700; font-size: 11.5px; background: #ffffff; color: #1d1d1f; }
.nav { display: flex; background: #f5f5f7; border-bottom: 1px solid #e5e5ea; padding: 4px 8px 0 8px; gap: 4px; flex-shrink: 0; }
.nav-btn { flex: 1; min-width: 110px; padding: 8px 10px; border: none; background: transparent; font-weight: 600; font-size: 12px; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 10px 10px 0 0; }
.nav-btn.active { background: #ffffff; color: var(--primary); font-weight: 700; border-bottom: 2.5px solid var(--primary); }
.badge-counter { background: var(--danger); color: white; border-radius: 999px; padding: 1px 6px; font-size: 10.5px; font-weight: 700; }
.badge-counter.orange { background: var(--warning); }
.content { padding: 10px 14px; flex-grow: 1; overflow-y: auto; background: #ffffff; }
.panel { display: none; height: 100%; }
.panel.active { display: flex; flex-direction: column; }
.card { border: none; padding: 2px; background: #fff; display: flex; flex-direction: column; height: 100%; }
.workspace-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; align-items: start; flex-grow: 1; }
.left-column { display: flex; flex-direction: column; gap: 8px; }
.right-column { background: #f5f5f7; border: 1px solid #e5e5ea; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; }
.step-card { border: 1px solid #e5e5ea; border-radius: 12px; padding: 9px 12px; background: #ffffff; }
.step-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.step-badge { background: var(--primary); color: white; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; }
.teleprompteur-box { background: #fffcf0; border: 1.5px solid #ffd60a; border-left: 5px solid #ff9500; border-radius: 12px; padding: 10px 12px; }
.teleprompteur-box.urgent { background: #fff5f5; border-color: #ffaba6; border-left-color: #ff3b30; }
.teleprompteur-title { font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: #b25000; margin-bottom: 4px; }
.teleprompteur-text { font-size: 12.5px; font-weight: 600; color: #1d1d1f; line-height: 1.4; }
.action-box { background: #f2f8ff; border: 1px solid #cce4ff; border-left: 5px solid var(--primary); border-radius: 12px; padding: 9px 11px; }
.action-box h4 { margin: 0 0 5px 0; color: var(--primary); font-size: 10.5px; text-transform: uppercase; }
.Interactive-check { display: flex; align-items: center; gap: 8px; background: #ffffff; border: 1px solid #e5e5ea; padding: 6px 9px; border-radius: 8px; margin-bottom: 4px; cursor: pointer; font-size: 11.5px; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
label { display: block; font-weight: 600; font-size: 11px; margin-bottom: 3px; color: #1d1d1f; }
input[type="text"], input[type="email"], input[type="password"], select, textarea { width: 100%; padding: 6px 9px; border: 1px solid #d2d2d7; border-radius: 8px; font-size: 12px; font-family: inherit; background: #fff; }
.choice-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.choice-grid-4, .choice-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.choice-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.choice-btn { border: 1.5px solid #e5e5ea; border-radius: 10px; padding: 8px 10px; cursor: pointer; background: white; text-align: left; display: flex; align-items: center; gap: 8px; }
.choice-btn .icon { font-size: 19px; flex-shrink: 0; }
.choice-btn .title { font-weight: 700; font-size: 11.5px; display: block; }
.choice-btn .sub { font-size: 10px; color: var(--muted); display: block; margin-top: 2px; }
.choice-btn.active-rdv { border-color: var(--primary); background: #f2f8ff; }
.choice-btn.active-urgence { border-color: var(--danger); background: #fff5f5; }
.choice-btn.active-question { border-color: var(--purple); background: #fcf6ff; }
.choice-btn.active-green { border-color: var(--success); background: #f2fcf5; }
.choice-btn.active-orange { border-color: var(--warning); background: #fffcf0; }
.yn-group { display: flex; gap: 5px; align-items: center; }
.yn-btn { padding: 5px 12px; border: 1px solid #d2d2d7; background: white; border-radius: 999px; font-weight: 700; font-size: 11px; cursor: pointer; }
.yn-btn.selected-oui { background: var(--danger) !important; color: white !important; border-color: var(--danger) !important; }
.yn-btn.selected-oui-green { background: var(--success) !important; color: white !important; border-color: var(--success) !important; }
.yn-btn.selected-non { background: #1d1d1f !important; color: white !important; border-color: #1d1d1f !important; }
.scale-group { display: flex; gap: 4px; flex-wrap: wrap; }
.scale-btn { width: 26px; height: 26px; border: 1px solid #d2d2d7; background: white; border-radius: 7px; font-weight: 700; font-size: 11px; cursor: pointer; padding: 0; }
.scale-btn.selected { background: var(--danger) !important; color: white !important; border-color: var(--danger) !important; }
.urgence-container { background: #fff8f7; border: 1.5px solid #ffaba6; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.q-row-compact { background: white; border: 1px solid #ffd1cf; border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.q-title { font-weight: 700; font-size: 11.5px; color: #d70015; }
.btn { background: var(--primary); color: white; border: none; padding: 8px 15px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn-success { background: #248a3d; }
.btn-danger { background: var(--danger); }
.btn-outline { background: white; color: #1d1d1f; border: 1px solid #d2d2d7; }
.btn-sm { padding: 5px 11px; font-size: 11px; border-radius: 999px; }

.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; justify-content: space-between; }
table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
th, td { border-bottom: 1px solid #e5e5ea; padding: 10px 8px; text-align: left; vertical-align: middle; word-wrap: break-word; }
th { background: #f5f5f7; color: #6e6e73; font-weight: 700; font-size: 10.5px; text-transform: uppercase; padding: 8px; }
tr.row-attente { background: #ffffff; }
tr.row-consigne { background: #fffdf5; }
tr.row-traite { background: #fafafa; opacity: 0.78; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.badge-urgence { background: var(--danger-bg); color: #d70015; }
.badge-rdv { background: var(--success-bg); color: #166534; }
.badge-delai { background: var(--warning-bg); color: #b25000; }
.badge-duree { background: #e8f2ff; color: #0055b3; }
.badge-question { background: var(--purple-bg); color: #7b2cbf; }
.badge-comptoir { background: #e0f2fe; color: #075985; }
.badge-fauteuil { background: var(--teal-bg); color: #006660; }
.badge-equipe { background: #eef2ff; color: #3730a3; }
.badge-web { background: #0071e3; color: #fff; font-size: 9.5px; margin-left: 4px; }
.status-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.st-attente { background: #ffeceb; color: #d70015; }
.st-consigne { background: #fff5e5; color: #b25000; }
.st-traite { background: #e8f9ec; color: #166534; }
.clin-pills-wrap { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.clin-pill { background: #f5f5f7; border: 1px solid #e5e5ea; border-radius: 6px; padding: 3px 7px; font-size: 11px; font-weight: 600; }
.clin-pill-alert { background: #ffeceb; border-color: #ffaba6; color: #d70015; font-weight: 700; }
.quick-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag-btn { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 5px 10px; font-size: 11px; cursor: pointer; color: #1d1d1f; font-weight: 600; transition: all 0.12s; }
.tag-btn:hover { background: #e8f2ff; border-color: var(--primary); color: var(--primary); }
.tag-btn-urg { background: #ffeceb; border-color: #ffaba6; color: #d70015; font-weight: 700; }
.tag-btn-urg:hover { background: #ff3b30; color: white; border-color: #ff3b30; }
.dec-grid-compact { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 5px; }
.filter-active { box-shadow: 0 0 0 2px var(--primary); font-weight: 700; }
.cust-tabs { display: flex; gap: 6px; margin-bottom: 12px; border-bottom: 1px solid #e5e5ea; padding-bottom: 8px; flex-wrap: wrap; }
.cust-tab-btn { padding: 7px 14px; border-radius: 999px; border: 1px solid #d2d2d7; background: #f5f5f7; font-weight: 700; font-size: 12px; cursor: pointer; color: #1d1d1f; }
.cust-tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* MODE LISTE SEULE (SMARTPHONE & TABLETTE) */
#cabinetWrapper.mode-liste-seule #teamQuickBar,
#cabinetWrapper.mode-liste-seule .nav,
#cabinetWrapper.mode-liste-seule .desktop-only-ctrl { display: none !important; }
#cabinetWrapper.mode-liste-seule #tableScrollWrapper { max-height: calc(100vh - 125px) !important; }

@media (max-width: 860px) {
  #cabinetWrapper { height: auto; min-height: 100vh; overflow: visible; padding: 0; }
  .container { border-radius: 0; border: none; min-height: 100vh; }
  #tableScrollWrapper { max-height: none !important; overflow: visible !important; }
  table, thead, tbody, th, td, tr { display: block; width: 100%; }
  thead tr { display: none; }
  tbody tr { margin-bottom: 12px; border: 1.5px solid #e5e5ea; border-radius: 16px; padding: 12px; background: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
  tbody tr td { border: none; padding: 4px 0; }
  .dec-grid-compact { grid-template-columns: 1fr; gap: 6px; }
  .tag-btn { padding: 9px 12px; font-size: 12.5px; text-align: left; }
}
