/* CliniqueSuite — theme Bootstrap bleu medical, lite & animé */
:root{
  --cl-navy:#0b3d66;
  --cl-navy-dark:#082a49;
  --cl-blue:#1671d8;
  --cl-blue-soft:#e8f1fc;
  --cl-cyan:#12b3c4;
  --cl-green:#1aa66b;
  --cl-green-soft:#e5f7ef;
  --cl-amber:#e8960c;
  --cl-amber-soft:#fef4e2;
  --cl-red:#d63548;
  --cl-red-soft:#fdeaec;
  --cl-ink:#1c2a3a;
  --cl-muted:#66788e;
  --cl-line:#e3e9f1;
  --cl-bg:#f4f7fb;
  --cl-card:#ffffff;
  --cl-radius:14px;
  --cl-shadow:0 2px 10px rgba(11,61,102,.06), 0 1px 2px rgba(11,61,102,.06);
  --cl-shadow-lg:0 12px 32px rgba(11,61,102,.12);
}

body{ background:var(--cl-bg); color:var(--cl-ink); font-family:'Manrope','Plus Jakarta Sans',system-ui,sans-serif; }
.cl-mono{ font-family:'JetBrains Mono',monospace; letter-spacing:.02em; }

/* ---------- Login gate ---------- */
.cl-gate{ min-height:100vh; display:flex; align-items:center; justify-content:center; background:
  radial-gradient(1200px 600px at 15% -10%, #12508c 0%, transparent 60%),
  radial-gradient(1000px 500px at 110% 10%, #0d9aa8 0%, transparent 55%),
  linear-gradient(160deg, var(--cl-navy-dark), var(--cl-navy) 60%, #0e4a7d);
  padding:24px; }
.cl-gate-card{ width:100%; max-width:920px; background:var(--cl-card); border-radius:20px; box-shadow:var(--cl-shadow-lg); overflow:hidden; display:grid; grid-template-columns:1.1fr 1fr; animation:cl-rise .5s ease both; }
.cl-gate-side{ background:linear-gradient(155deg, var(--cl-navy), var(--cl-blue) 120%); color:#fff; padding:40px 34px; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden; }
.cl-gate-side::after{ content:""; position:absolute; width:340px; height:340px; border-radius:50%; background:rgba(255,255,255,.08); right:-120px; bottom:-140px; animation:cl-float 6s ease-in-out infinite; }
.cl-gate-mark{ width:46px; height:46px; border-radius:12px; background:rgba(255,255,255,.16); display:flex; align-items:center; justify-content:center; font-size:20px; }
.cl-gate-side h2{ font-size:26px; font-weight:700; margin:18px 0 8px; line-height:1.25; }
.cl-gate-side p{ opacity:.85; font-size:14px; line-height:1.6; }
.cl-gate-badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.cl-gate-badges span{ font-size:11.5px; background:rgba(255,255,255,.14); padding:5px 10px; border-radius:999px; }
.cl-gate-form{ padding:40px 36px; }
.cl-gate-form h1{ font-size:21px; font-weight:800; margin-bottom:4px; }
.cl-gate-form p.sub{ color:var(--cl-muted); font-size:13.5px; margin-bottom:22px; }
.cl-role-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:18px; }
.cl-role-btn{ border:1.5px solid var(--cl-line); background:#fff; border-radius:10px; padding:9px 10px; font-size:12.5px; text-align:left; display:flex; align-items:center; gap:8px; transition:.15s; cursor:pointer; }
.cl-role-btn:hover{ border-color:var(--cl-blue); background:var(--cl-blue-soft); }
.cl-role-btn.active{ border-color:var(--cl-blue); background:var(--cl-blue-soft); box-shadow:0 0 0 3px rgba(22,113,216,.12); font-weight:700; }
.cl-role-btn i{ color:var(--cl-blue); }

/* ---------- Shell ---------- */
.cl-shell{ display:flex; min-height:100vh; }
.cl-sidebar{ width:264px; flex:none; background:linear-gradient(190deg, var(--cl-navy-dark), var(--cl-navy) 75%); color:#eaf2fb; display:flex; flex-direction:column; padding:20px 14px; position:sticky; top:0; height:100vh; overflow-y:auto; }
.cl-sidebar::-webkit-scrollbar{ width:5px; } .cl-sidebar::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.18); border-radius:4px; }
.cl-brand{ display:flex; align-items:center; gap:10px; padding:6px 8px 18px; }
.cl-brand-mark{ width:38px; height:38px; border-radius:10px; background:linear-gradient(135deg,var(--cl-cyan),var(--cl-blue)); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; }
.cl-brand strong{ display:block; font-size:15px; } .cl-brand span{ display:block; font-size:11px; opacity:.7; }
.cl-nav-group{ font-size:10.5px; text-transform:uppercase; letter-spacing:.08em; opacity:.55; padding:14px 10px 6px; }
.cl-nav-btn{ display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:transparent; border:none; color:#dce8f5; padding:9px 10px; border-radius:9px; font-size:13.2px; margin-bottom:2px; transition:.15s; position:relative; }
.cl-nav-btn i{ width:18px; text-align:center; opacity:.85; font-size:14px; }
.cl-nav-btn:hover{ background:rgba(255,255,255,.08); }
.cl-nav-btn.active{ background:rgba(255,255,255,.14); font-weight:700; box-shadow:inset 3px 0 0 var(--cl-cyan); }
.cl-nav-btn .cl-dot{ margin-left:auto; width:7px; height:7px; border-radius:50%; background:var(--cl-red); box-shadow:0 0 0 3px rgba(214,53,72,.25); }
.cl-sidebar-foot{ margin-top:auto; padding:14px 10px 4px; font-size:11px; opacity:.6; border-top:1px solid rgba(255,255,255,.1); padding-top:14px; }

.cl-main{ flex:1; min-width:0; padding:22px 26px 50px; }
.cl-topbar{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; flex-wrap:wrap; }
.cl-topbar h1{ font-size:19px; font-weight:800; margin:0 0 2px; }
.cl-kicker{ font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--cl-blue); font-weight:700; margin:0; }
.cl-top-actions{ display:flex; align-items:center; gap:10px; }

/* ---------- Notification bell ---------- */
.cl-bell-wrap{ position:relative; }
.cl-bell-btn{ width:40px; height:40px; border-radius:11px; border:1px solid var(--cl-line); background:#fff; display:flex; align-items:center; justify-content:center; position:relative; box-shadow:var(--cl-shadow); }
.cl-bell-btn i{ font-size:16px; color:var(--cl-navy); }
.cl-bell-badge{ position:absolute; top:-5px; right:-5px; background:var(--cl-red); color:#fff; font-size:10px; font-weight:800; min-width:17px; height:17px; border-radius:999px; display:flex; align-items:center; justify-content:center; padding:0 4px; animation:cl-pulse 1.8s infinite; }
.cl-bell-panel{ position:absolute; right:0; top:48px; width:360px; max-height:420px; overflow-y:auto; background:#fff; border-radius:14px; box-shadow:var(--cl-shadow-lg); border:1px solid var(--cl-line); z-index:60; animation:cl-drop .18s ease both; }
.cl-bell-head{ display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid var(--cl-line); }
.cl-bell-head strong{ font-size:13.5px; }
.cl-bell-item{ display:flex; gap:10px; padding:11px 14px; border-bottom:1px solid #f0f3f8; cursor:pointer; transition:.15s; }
.cl-bell-item:hover{ background:var(--cl-blue-soft); }
.cl-bell-item.unread{ background:#f7fbff; }
.cl-bell-ico{ width:30px; height:30px; border-radius:9px; flex:none; display:flex; align-items:center; justify-content:center; font-size:13px; }
.cl-bell-ico.info{ background:var(--cl-blue-soft); color:var(--cl-blue); }
.cl-bell-ico.warning{ background:var(--cl-amber-soft); color:var(--cl-amber); }
.cl-bell-ico.critical{ background:var(--cl-red-soft); color:var(--cl-red); }
.cl-bell-item p{ margin:0; font-size:12px; color:var(--cl-muted); line-height:1.4; }
.cl-bell-item strong{ font-size:12.5px; }
.cl-bell-item small{ color:#9aa9ba; font-size:10.5px; }
.cl-bell-empty{ padding:30px 14px; text-align:center; color:var(--cl-muted); font-size:12.5px; }

/* ---------- KPIs ---------- */
.cl-kpis{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-bottom:20px; }
.cl-kpi{ background:var(--cl-card); border-radius:var(--cl-radius); padding:16px 16px 14px; box-shadow:var(--cl-shadow); position:relative; overflow:hidden; animation:cl-rise .4s ease both; }
.cl-kpi::before{ content:""; position:absolute; inset:0; opacity:0; background:linear-gradient(120deg, transparent, rgba(22,113,216,.06), transparent); transition:.3s; }
.cl-kpi:hover::before{ opacity:1; }
.cl-kpi-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.cl-kpi-ico{ width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:14px; }
.cl-kpi strong{ display:block; font-size:24px; font-weight:800; line-height:1; }
.cl-kpi span{ display:block; font-size:12px; color:var(--cl-muted); margin-top:6px; }

/* ---------- Panels / cards ---------- */
.cl-panel{ background:var(--cl-card); border-radius:var(--cl-radius); padding:18px 18px 16px; box-shadow:var(--cl-shadow); margin-bottom:18px; animation:cl-rise .4s ease both; }
.cl-panel-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
.cl-panel-head h2{ font-size:15.5px; font-weight:800; margin:2px 0 0; }
.cl-grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.cl-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:1080px){ .cl-grid-2,.cl-grid-3{ grid-template-columns:1fr; } }

/* ---------- Badges ---------- */
.cl-badge{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; padding:4px 9px; border-radius:999px; }
.cl-badge-blue{ background:var(--cl-blue-soft); color:var(--cl-blue); }
.cl-badge-green{ background:var(--cl-green-soft); color:var(--cl-green); }
.cl-badge-amber{ background:var(--cl-amber-soft); color:#8a5b06; }
.cl-badge-red{ background:var(--cl-red-soft); color:var(--cl-red); }
.cl-badge-grey{ background:#eef1f5; color:var(--cl-muted); }
.cl-badge-vital{ background:var(--cl-red); color:#fff; animation:cl-pulse 1.6s infinite; }

/* ---------- Tables ---------- */
.cl-table thead th{ font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--cl-muted); border-bottom:1px solid var(--cl-line); font-weight:800; }
.cl-table td{ font-size:13px; vertical-align:middle; border-bottom:1px solid #f1f4f8; }
.cl-table tbody tr{ transition:.15s; }
.cl-table tbody tr:hover{ background:var(--cl-blue-soft); }

/* ---------- Forms ---------- */
.cl-panel input, .cl-panel select, .cl-panel textarea{ border:1.5px solid var(--cl-line); border-radius:9px; padding:8px 11px; font-size:13px; width:100%; margin-bottom:9px; background:#fbfdff; transition:.15s; }
.cl-panel input:focus, .cl-panel select:focus, .cl-panel textarea:focus{ outline:none; border-color:var(--cl-blue); box-shadow:0 0 0 3px rgba(22,113,216,.12); background:#fff; }
.cl-two{ display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.cl-btn{ border:none; border-radius:9px; padding:9px 16px; font-size:13px; font-weight:700; cursor:pointer; transition:.15s; display:inline-flex; align-items:center; gap:7px; }
.cl-btn:active{ transform:scale(.97); }
.cl-btn-primary{ background:var(--cl-blue); color:#fff; box-shadow:0 4px 12px rgba(22,113,216,.28); }
.cl-btn-primary:hover{ background:#125fbd; }
.cl-btn-light{ background:#eef2f8; color:var(--cl-ink); }
.cl-btn-light:hover{ background:#e2e9f2; }
.cl-btn-outline{ background:#fff; border:1.5px solid var(--cl-line); color:var(--cl-ink); }
.cl-btn-danger{ background:var(--cl-red); color:#fff; }
.cl-btn-success{ background:var(--cl-green); color:#fff; }
.cl-btn-sm{ padding:5px 10px; font-size:11.5px; border-radius:7px; }
.cl-btn-w{ width:100%; justify-content:center; }

/* ---------- Queue / ticket board ---------- */
.cl-queue-board{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; }
.cl-ticket{ border:1.5px solid var(--cl-line); border-radius:12px; padding:12px; position:relative; transition:.18s; background:#fff; }
.cl-ticket:hover{ box-shadow:var(--cl-shadow-lg); transform:translateY(-2px); }
.cl-ticket.vital{ border-color:var(--cl-red); background:linear-gradient(180deg,#fff,#fff5f6); }
.cl-ticket-num{ font-family:'JetBrains Mono',monospace; font-size:19px; font-weight:800; color:var(--cl-navy); }
.cl-ticket p{ margin:4px 0 2px; font-size:12.5px; color:var(--cl-muted); }
.cl-ticket .cl-badge{ margin-top:6px; }
.cl-ticket-actions{ display:flex; gap:6px; margin-top:10px; }

/* ---------- Signage preview ---------- */
.cl-signage{ background:linear-gradient(160deg,var(--cl-navy-dark),var(--cl-navy)); border-radius:16px; padding:26px; color:#fff; text-align:center; position:relative; overflow:hidden; }
.cl-signage::before{ content:""; position:absolute; inset:0; background:radial-gradient(400px 200px at 80% 0%, rgba(18,179,196,.25), transparent); }
.cl-signage .cl-signage-num{ font-family:'JetBrains Mono',monospace; font-size:64px; font-weight:800; animation:cl-signage-in .5s ease; letter-spacing:.02em; }
.cl-signage .cl-signage-sub{ opacity:.8; font-size:13px; margin-top:6px; }
.cl-signage .cl-signage-room{ display:inline-block; margin-top:14px; background:rgba(255,255,255,.12); padding:6px 16px; border-radius:999px; font-size:12.5px; }

/* ---------- Progress / gauges ---------- */
.cl-gauge-wrap{ display:flex; align-items:center; gap:12px; }
.cl-gauge{ width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; flex:none; background:conic-gradient(var(--cl-blue) calc(var(--v,0)*1%), #eef1f6 0); position:relative; }
.cl-gauge::before{ content:""; position:absolute; inset:5px; background:#fff; border-radius:50%; }
.cl-gauge span{ position:relative; z-index:1; }
.cl-bar{ height:8px; border-radius:999px; background:#eef1f6; overflow:hidden; }
.cl-bar i{ display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,var(--cl-blue),var(--cl-cyan)); transition:width .6s ease; }

/* ---------- Timeline (DPI parcours) ---------- */
.cl-timeline{ position:relative; padding-left:22px; }
.cl-timeline::before{ content:""; position:absolute; left:6px; top:4px; bottom:4px; width:2px; background:var(--cl-line); }
.cl-timeline-item{ position:relative; padding-bottom:16px; }
.cl-timeline-item::before{ content:""; position:absolute; left:-22px; top:3px; width:11px; height:11px; border-radius:50%; background:var(--cl-blue); box-shadow:0 0 0 3px var(--cl-blue-soft); }
.cl-timeline-item strong{ font-size:13px; } .cl-timeline-item p{ margin:2px 0 0; font-size:12px; color:var(--cl-muted); }

/* ---------- AI insights ---------- */
.cl-ai-box{ background:linear-gradient(155deg,#0e4a7d,#12b3c4 130%); border-radius:16px; padding:18px 20px; color:#fff; }
.cl-ai-box .cl-ai-tag{ display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.16); font-size:11px; padding:4px 10px; border-radius:999px; margin-bottom:10px; }
.cl-ai-box ul{ margin:0; padding-left:18px; font-size:13px; line-height:1.9; }
.cl-ai-box .cl-ai-note{ font-size:11px; opacity:.75; margin-top:10px; }

/* ---------- Toast ---------- */
.cl-toast{ position:fixed; bottom:22px; right:22px; background:var(--cl-navy); color:#fff; padding:12px 18px; border-radius:11px; font-size:13px; box-shadow:var(--cl-shadow-lg); z-index:80; animation:cl-toast-in .25s ease both; display:flex; align-items:center; gap:9px; }

/* ---------- Empty / loading ---------- */
.cl-skel{ background:linear-gradient(90deg,#eef1f6 25%,#f6f8fb 37%,#eef1f6 63%); background-size:400% 100%; animation:cl-shimmer 1.4s infinite; border-radius:8px; }
.cl-empty{ text-align:center; padding:30px; color:var(--cl-muted); font-size:13px; }

/* ---------- Counter animation helper ---------- */
.cl-count{ display:inline-block; }

/* ---------- Animations ---------- */
@keyframes cl-rise{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:translateY(0);} }
@keyframes cl-drop{ from{ opacity:0; transform:translateY(-6px);} to{ opacity:1; transform:translateY(0);} }
@keyframes cl-pulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(214,53,72,.45);} 50%{ box-shadow:0 0 0 6px rgba(214,53,72,0);} }
@keyframes cl-float{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-16px);} }
@keyframes cl-signage-in{ from{ opacity:0; transform:scale(.85);} to{ opacity:1; transform:scale(1);} }
@keyframes cl-toast-in{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:translateY(0);} }
@keyframes cl-shimmer{ 0%{ background-position:100% 0;} 100%{ background-position:0 0;} }

/* ---------- Responsive ---------- */
.cl-menu-toggle{ display:none; }
@media (max-width:960px){
  .cl-sidebar{ position:fixed; left:0; top:0; z-index:70; transform:translateX(-100%); transition:.25s; box-shadow:var(--cl-shadow-lg); }
  .cl-sidebar.open{ transform:translateX(0); }
  .cl-main{ padding:16px 14px 40px; }
  .cl-menu-toggle{ display:flex; }
  .cl-gate-card{ grid-template-columns:1fr; }
  .cl-gate-side{ display:none; }
  .cl-role-grid{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .cl-kpis{ grid-template-columns:1fr 1fr; }
  .cl-bell-panel{ width:88vw; right:-10px; }
}

/* ==========================================================
   Identité 2026 — interface clinique native, sans Bootstrap
   ========================================================== */
*,*::before,*::after{box-sizing:border-box}
html{font-size:16px;-webkit-font-smoothing:antialiased}
body{margin:0;background:#f3f7f8;color:#19353b}
button,input,select,textarea{font:inherit;color:inherit}
button{appearance:none}
h1,h2,h3,p{margin-top:0}
.table-responsive{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table{width:100%;border-collapse:collapse;border-spacing:0}
.table th,.table td{padding:12px 14px;text-align:left}

:root{
  --cl-navy:#123d42;--cl-navy-dark:#092e33;--cl-blue:#087f78;
  --cl-blue-soft:#e5f5f2;--cl-cyan:#19a69b;--cl-green:#2c9b69;
  --cl-green-soft:#e7f6ee;--cl-amber:#dc8b21;--cl-amber-soft:#fff3df;
  --cl-red:#d14a53;--cl-red-soft:#fdecee;--cl-ink:#19353b;
  --cl-muted:#6d8285;--cl-line:#dce8e7;--cl-bg:#f3f7f8;
  --cl-card:#fff;--cl-radius:18px;
  --cl-shadow:0 1px 2px rgba(16,54,59,.04),0 9px 26px rgba(16,54,59,.055);
  --cl-shadow-lg:0 24px 70px rgba(7,43,47,.18)
}

/* Connexion */
.cl-gate{position:relative;isolation:isolate;min-height:100vh;padding:clamp(20px,4vw,56px);background:#ecf5f3;overflow:hidden}
.cl-gate::before{content:"";position:absolute;inset:0;z-index:-3;background:linear-gradient(115deg,#0a393e 0%,#0d4c4e 52%,#edf6f4 52%,#f7faf9 100%)}
.cl-gate::after{content:"+";position:absolute;z-index:-2;left:5vw;bottom:-16vh;color:rgba(255,255,255,.025);font:800 45vw/1 Manrope;transform:rotate(-10deg)}
.cl-gate-orb{position:absolute;border-radius:50%;pointer-events:none;filter:blur(1px);z-index:-1}
.cl-gate-orb-one{width:280px;height:280px;left:38%;top:-140px;background:rgba(65,197,176,.18)}
.cl-gate-orb-two{width:180px;height:180px;right:2%;bottom:-80px;background:rgba(15,137,126,.1)}
.cl-gate-card{max-width:1120px;min-height:670px;border-radius:30px;grid-template-columns:1.12fr .88fr;background:#fff;box-shadow:0 34px 90px rgba(3,35,38,.25);border:1px solid rgba(255,255,255,.55)}
.cl-gate-side{padding:48px 52px;background:linear-gradient(145deg,rgba(8,54,59,.98),rgba(11,83,82,.96));isolation:isolate}
.cl-gate-side::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 85% 18%,rgba(59,203,179,.25),transparent 28%),linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:auto,42px 42px,42px 42px}
.cl-gate-side::after{width:360px;height:360px;right:-120px;bottom:-150px;border:1px solid rgba(255,255,255,.1);background:transparent;box-shadow:0 0 0 38px rgba(255,255,255,.025),0 0 0 76px rgba(255,255,255,.02)}
.cl-gate-brand{display:flex;align-items:center;gap:13px}
.cl-gate-brand strong{display:block;font-size:18px;letter-spacing:-.02em}.cl-gate-brand span{display:block;margin-top:2px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;opacity:.58}
.cl-gate-mark{width:48px;height:48px;border-radius:15px;background:#fff;color:#078177;box-shadow:0 8px 24px rgba(0,0,0,.15)}
.cl-gate-hero{max-width:500px;margin-top:100px}
.cl-gate-eyebrow{display:inline-flex;gap:8px;align-items:center;padding:7px 11px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(255,255,255,.07);font-size:11px;font-weight:700;letter-spacing:.04em}
.cl-gate-side h2{margin:24px 0 18px;font-size:clamp(36px,4vw,53px);line-height:1.09;letter-spacing:-.045em;font-weight:700}
.cl-gate-side h2 em{display:block;color:#6ee0cb;font-style:normal}
.cl-gate-side p{max-width:465px;font-size:15px;line-height:1.75;color:#c5dedd}
.cl-gate-badges{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:42px;padding-top:28px;border-top:1px solid rgba(255,255,255,.12)}
.cl-gate-badges div{min-width:0}.cl-gate-badges strong{display:block;font-size:21px;color:#79e5d2}.cl-gate-badges span{display:block;margin-top:4px;padding:0;background:none;border-radius:0;font-size:10px;line-height:1.35;color:#bdd5d3}
.cl-gate-form{display:flex;flex-direction:column;justify-content:center;padding:64px 60px;background:linear-gradient(155deg,#fff,#f9fcfb)}
.cl-form-heading{margin-bottom:30px}.cl-form-icon{display:grid;place-items:center;width:44px;height:44px;margin-bottom:19px;border-radius:14px;background:var(--cl-blue-soft);color:var(--cl-blue);font-size:19px}
.cl-gate-form h1{font-size:31px;letter-spacing:-.04em;color:var(--cl-navy-dark)}
.cl-gate-form p.sub{max-width:390px;margin:8px 0 0;font-size:13px;line-height:1.65}
.cl-field-label{display:block;margin:0 0 7px;font-size:11px;font-weight:800;letter-spacing:.055em;text-transform:uppercase;color:#526c6f}
.cl-input-wrap{position:relative;margin-bottom:19px}.cl-input-wrap>i:first-child{position:absolute;left:15px;top:50%;transform:translateY(-50%);z-index:1;color:#789091}
.cl-input-wrap input,.cl-input-wrap select{width:100%;height:52px;margin:0;padding:0 44px;border:1.5px solid #dbe7e5;border-radius:13px;background:#fff;outline:none;transition:.2s}
.cl-input-wrap select{appearance:none;cursor:pointer}.cl-input-wrap input:focus,.cl-input-wrap select:focus{border-color:#12a092;box-shadow:0 0 0 4px rgba(18,160,146,.1)}
.cl-select-arrow{position:absolute;right:16px;top:50%;transform:translateY(-50%);pointer-events:none;color:#789091;font-size:12px}
.cl-password-wrap input{padding-right:48px}.cl-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:9px;background:transparent;color:#6f898a;cursor:pointer}.cl-password-toggle:hover{background:var(--cl-blue-soft);color:var(--cl-blue)}
.cl-login-error{display:flex;align-items:center;gap:8px;margin:-4px 0 16px;padding:11px 13px;border:1px solid #f2cbd0;border-radius:11px;background:var(--cl-red-soft);color:#a52f3b;font-size:11.5px;font-weight:600}
.cl-access-note{display:flex;gap:10px;margin:0 0 22px;padding:12px 13px;border-radius:12px;background:#eef8f6;color:#557371;font-size:11px;line-height:1.45}.cl-access-note i{color:#128f84}
.cl-gate-form .cl-btn-primary{height:52px;border-radius:13px;background:linear-gradient(135deg,#087f78,#0b9a8e);box-shadow:0 10px 24px rgba(8,127,120,.25);font-size:13px}.cl-gate-form .cl-btn-primary:hover{background:linear-gradient(135deg,#076e68,#088a80);transform:translateY(-1px)}
.cl-gate-help{text-align:center;margin:19px 0 0!important;font-size:10.5px!important;color:#8ca09f!important}
.cl-auth-loading{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;background:#edf6f4;color:#496a6c;font-size:12px;font-weight:700;letter-spacing:.04em}.cl-auth-loading .cl-gate-mark{background:#087f78;color:#fff;animation:cl-pulse 1.5s infinite}

/* Application */
.cl-sidebar{width:276px;padding:24px 16px;background:linear-gradient(185deg,#092f34,#0d4749 78%,#0b5553)}
.cl-brand{padding:2px 10px 22px}.cl-brand-mark{width:43px;height:43px;border-radius:14px;background:linear-gradient(145deg,#59dac3,#13998d);box-shadow:0 8px 20px rgba(0,0,0,.18)}
.cl-brand strong{font-size:16px}.cl-brand span{margin-top:2px;text-transform:uppercase;letter-spacing:.09em;font-size:9px}
.cl-nav-group{padding:19px 11px 7px;font-size:9.5px;letter-spacing:.13em}
.cl-nav-btn{padding:10px 12px;border-radius:11px;font-size:12.5px}.cl-nav-btn i{font-size:15px}.cl-nav-btn.active{background:rgba(103,224,203,.13);color:#fff;box-shadow:inset 3px 0 #67dfca}.cl-nav-btn:hover{background:rgba(255,255,255,.07)}
.cl-main{padding:27px clamp(18px,3vw,42px) 60px;background:radial-gradient(circle at 100% 0,rgba(30,169,151,.06),transparent 24%),var(--cl-bg)}
.cl-topbar{margin-bottom:25px;padding-bottom:19px;border-bottom:1px solid #dfe9e8}.cl-topbar h1{font-size:24px;letter-spacing:-.035em;color:#153c40}.cl-kicker{color:#118b82;font-size:10px;letter-spacing:.11em}
.cl-panel,.cl-kpi{border:1px solid rgba(216,230,228,.85);box-shadow:var(--cl-shadow)}
.cl-panel{padding:21px 22px 19px}.cl-panel-head h2{font-size:16px;color:#173e42}
.cl-kpi{padding:18px}.cl-kpi-ico{width:38px;height:38px;border-radius:12px}.cl-kpi strong{font-size:27px;color:#153d41}
.cl-btn{border-radius:10px}.cl-btn-primary{background:#087f78;box-shadow:0 5px 14px rgba(8,127,120,.2)}.cl-btn-primary:hover{background:#076e68}.cl-btn-outline{border-color:#d7e5e3}.cl-panel input,.cl-panel select,.cl-panel textarea{border-color:#d9e6e4;border-radius:10px;background:#fbfdfd}.cl-panel input:focus,.cl-panel select:focus,.cl-panel textarea:focus{border-color:#14988d;box-shadow:0 0 0 3px rgba(20,152,141,.1)}
.cl-ticket{border-color:#dbe8e6;border-radius:14px}.cl-ticket-num{color:#0c6f6b}.cl-signage{background:linear-gradient(145deg,#092f34,#0c6460)}.cl-ai-box{background:linear-gradient(145deg,#0b4549,#0b9287 130%)}

@media(max-width:960px){
  .cl-gate{padding:18px;background:#edf6f4}.cl-gate::before{background:linear-gradient(155deg,#0a4245 0 26%,#edf6f4 26%)}
  .cl-gate-card{display:block;min-height:0;max-width:540px}.cl-gate-side{display:block;padding:28px 30px}.cl-gate-hero{margin-top:38px}.cl-gate-side h2{font-size:32px}.cl-gate-side p{display:none}.cl-gate-badges{display:none}.cl-gate-form{padding:38px 34px}
}
@media(max-width:560px){
  .cl-gate{padding:0;align-items:stretch}.cl-gate-card{border-radius:0;min-height:100vh}.cl-gate-side{padding:22px 24px}.cl-gate-hero{margin-top:28px}.cl-gate-side h2{font-size:27px;margin-bottom:2px}.cl-gate-form{padding:32px 24px}.cl-form-heading{margin-bottom:24px}.cl-gate-form h1{font-size:27px}
  .cl-main{padding:15px 12px 40px}.cl-kpis{gap:10px}.cl-kpi{padding:14px}.cl-panel{padding:16px}.cl-two{grid-template-columns:1fr}.cl-topbar h1{font-size:20px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* ---------- Expérience applicative enrichie ---------- */
.cl-topbar-title{display:flex;align-items:center;gap:12px}.cl-system-live{display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #dce9e7;border-radius:999px;background:rgba(255,255,255,.7);font-size:10px;font-weight:700;color:#597375}.cl-system-live i{width:7px;height:7px;border-radius:50%;background:#27a978;box-shadow:0 0 0 4px rgba(39,169,120,.12)}
.cl-user-block{display:flex;align-items:center;gap:10px;padding:5px 10px 5px 5px;border:1px solid #dce8e6;border-radius:13px;background:#fff}.cl-user-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:linear-gradient(145deg,#dff4ef,#edf9f6);color:#087f78;font-size:11px;font-weight:800}.cl-user-block strong,.cl-user-block span{display:block;white-space:nowrap}.cl-user-block strong{max-width:150px;overflow:hidden;text-overflow:ellipsis;font-size:11.5px;color:#24484c}.cl-user-block span{margin-top:2px;font-size:9px;color:#819597}.cl-logout{width:40px;height:40px;padding:0;justify-content:center}
.cl-page-intro{position:relative;display:flex;align-items:center;gap:18px;min-height:142px;margin-bottom:20px;padding:25px 28px;border-radius:22px;overflow:hidden;color:#fff;background:linear-gradient(120deg,#0a3a3e,#0b625f 70%,#11897f);box-shadow:0 14px 32px rgba(8,64,65,.14)}.cl-page-intro::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 76% 0,rgba(101,226,202,.22),transparent 32%),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:auto,38px 38px}.cl-page-intro::after{content:"+";position:absolute;right:-15px;bottom:-69px;font:700 190px/1 Manrope;color:rgba(255,255,255,.045)}.cl-page-intro>*{position:relative;z-index:1}.cl-page-intro-icon{display:grid;place-items:center;flex:none;width:58px;height:58px;border:1px solid rgba(255,255,255,.17);border-radius:17px;background:rgba(255,255,255,.1);font-size:24px;color:#7ce0cf}.cl-page-intro-copy{min-width:0}.cl-page-intro-copy>span{font-size:9.5px;text-transform:uppercase;letter-spacing:.13em;color:#8edbce}.cl-page-intro-copy h2{margin:5px 0 4px;font-size:23px;letter-spacing:-.035em}.cl-page-intro-copy p{margin:0;max-width:590px;color:#c8dddd;font-size:12px;line-height:1.55}.cl-page-intro-status{display:flex;gap:8px;margin-left:auto}.cl-page-intro-status>div{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:7px;min-width:96px;padding:11px 13px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.08);backdrop-filter:blur(4px)}.cl-page-intro-status i{grid-row:1/3;color:#72ddca}.cl-page-intro-status strong{font-size:16px;line-height:1}.cl-page-intro-status span{font-size:8.5px;text-transform:uppercase;letter-spacing:.06em;color:#b8d4d2}
.cl-kpis{gap:12px}.cl-kpi{min-height:132px;border-radius:17px;background:linear-gradient(155deg,#fff,#fbfdfd);transition:transform .2s,box-shadow .2s}.cl-kpi:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(14,66,68,.1)}.cl-kpi::after{content:"";position:absolute;width:72px;height:72px;right:-25px;top:-25px;border-radius:50%;background:var(--cl-blue-soft);opacity:.55}.cl-kpi-top{position:relative;z-index:1}.cl-kpi strong{margin-top:2px}.cl-kpi span{font-size:11px}.cl-kpi:nth-child(2) .cl-kpi-ico,.cl-kpi:nth-child(4) .cl-kpi-ico,.cl-kpi:nth-child(5) .cl-kpi-ico{transform:rotate(-3deg)}
.cl-panel{position:relative;border-radius:18px;background:linear-gradient(160deg,#fff 0%,#fff 72%,#fbfdfd 100%);transition:box-shadow .2s}.cl-panel:hover{box-shadow:0 12px 32px rgba(15,65,68,.075)}.cl-panel-head{padding-bottom:13px;border-bottom:1px solid #e7efee}.cl-panel-head h2{letter-spacing:-.018em}.cl-panel-head .cl-kicker{margin-bottom:4px}.cl-grid-2,.cl-grid-3{align-items:start}
.cl-table{border-collapse:separate;border-spacing:0}.cl-table thead th{padding:11px 13px;background:#f2f8f7;color:#567174;border-top:1px solid #e3edeb;border-bottom:1px solid #dbe8e6}.cl-table thead th:first-child{border-left:1px solid #e3edeb;border-radius:10px 0 0 10px}.cl-table thead th:last-child{border-right:1px solid #e3edeb;border-radius:0 10px 10px 0}.cl-table td{padding:13px;border-bottom-color:#eaf1f0;color:#3e595c}.cl-table tbody tr:hover{background:#f0f8f6}.cl-table tbody tr:last-child td{border-bottom:0}
.cl-panel form{padding-top:3px}.cl-panel input,.cl-panel select,.cl-panel textarea{min-height:43px;padding:10px 12px;margin-bottom:11px}.cl-panel textarea{min-height:78px;resize:vertical}.cl-panel input::placeholder,.cl-panel textarea::placeholder{color:#94a6a7}.cl-panel select{color:#415f62}.cl-btn{min-height:39px;padding:9px 15px}.cl-btn-primary{background:linear-gradient(135deg,#087f78,#0c9a8e)}.cl-btn-primary:hover{background:linear-gradient(135deg,#076b66,#07887f);box-shadow:0 8px 18px rgba(8,127,120,.25)}.cl-btn-success{background:#2c9b69}.cl-btn-light{background:#edf5f4;color:#31575a}.cl-badge{border:1px solid currentColor;border-color:color-mix(in srgb,currentColor 14%,transparent);font-size:9.5px;letter-spacing:.02em}
.cl-ticket{padding:16px;border-radius:16px;background:linear-gradient(145deg,#fff,#fbfdfd)}.cl-ticket::before{content:"";position:absolute;left:-1px;top:17px;width:3px;height:30px;border-radius:0 4px 4px 0;background:#24aa9d}.cl-ticket-num{font-size:21px}.cl-queue-board{gap:14px}.cl-signage{min-height:265px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 14px 32px rgba(8,62,64,.16)}
.cl-timeline::before{background:linear-gradient(#14988d,#d9e8e6)}.cl-timeline-item{padding:2px 0 21px 8px}.cl-timeline-item::before{left:-22px;width:12px;height:12px;background:#fff;border:3px solid #14988d;box-shadow:0 0 0 4px #e4f4f1}.cl-ai-box{position:relative;overflow:hidden;min-height:100%;box-shadow:0 14px 30px rgba(8,70,71,.14)}.cl-ai-box::after{content:"✦";position:absolute;right:22px;top:15px;color:rgba(255,255,255,.18);font-size:48px}.cl-ai-box li{padding-left:3px}.cl-gauge{width:64px;height:64px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.025)}
.cl-empty{margin:8px 0;border:1px dashed #d7e6e3;border-radius:13px;background:#f9fcfb}
@media(max-width:1080px){.cl-page-intro-status{display:none}.cl-system-live{display:none}}
@media(max-width:720px){.cl-user-block>div:last-child{display:none}.cl-user-block{padding-right:5px}.cl-page-intro{padding:21px;min-height:130px}.cl-page-intro-icon{width:48px;height:48px}.cl-page-intro-copy h2{font-size:19px}.cl-page-intro-copy p{font-size:11px}.cl-logout{display:none}}
@media(max-width:480px){.cl-page-intro{align-items:flex-start}.cl-page-intro-icon{display:none}.cl-top-actions{gap:6px}.cl-topbar{align-items:flex-start}.cl-kpis{grid-template-columns:1fr 1fr}.cl-kpi{min-height:120px}.cl-grid-2,.cl-grid-3{gap:12px}}

/* ---------- Formulaires en modales light ---------- */
.cl-modal-backdrop{position:fixed;inset:0;z-index:89;visibility:hidden;opacity:0;background:rgba(5,31,34,.48);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);transition:opacity .22s,visibility .22s}.cl-modal-backdrop.active{visibility:visible;opacity:1}.cl-modal-lock{overflow:hidden}
.cl-form-panel{min-height:104px;display:flex;align-items:center;padding:18px 20px;background:linear-gradient(135deg,#fff,#f5fbfa);border-style:dashed}.cl-form-panel>.cl-panel-head{width:100%;margin:0;padding:0;border:0}.cl-form-panel>:not(.cl-panel-head):not(.cl-modal-close){display:none!important}.cl-modal-launch{margin-left:auto;white-space:nowrap}.cl-modal-close{display:none}
.cl-form-panel::after{content:"";position:absolute;right:118px;bottom:0;width:90px;height:70px;background:radial-gradient(circle,#ccebe5 1.2px,transparent 1.5px);background-size:10px 10px;opacity:.55;pointer-events:none}
.cl-form-panel.cl-modal-open{position:fixed;z-index:90;display:block;left:50%;top:50%;width:min(620px,calc(100vw - 32px));max-height:calc(100vh - 40px);min-height:0;padding:0 28px 28px;overflow-y:auto;transform:translate(-50%,-50%);border:1px solid rgba(255,255,255,.75);border-radius:20px;background:#fff;box-shadow:0 30px 90px rgba(2,28,31,.35);animation:cl-modal-in .24s cubic-bezier(.2,.8,.2,1)}.cl-form-panel.cl-modal-open::after{display:none}.cl-form-panel.cl-modal-open>:not(.cl-panel-head):not(.cl-modal-close){display:revert!important}.cl-form-panel.cl-modal-open>.cl-panel-head{position:sticky;top:0;z-index:2;margin:0 -28px 22px;padding:23px 68px 18px 28px;width:auto;border-bottom:1px solid #e2ecea;background:rgba(255,255,255,.94);backdrop-filter:blur(12px)}.cl-form-panel.cl-modal-open .cl-modal-launch{display:none}.cl-form-panel.cl-modal-open .cl-modal-close{position:fixed;display:grid;place-items:center;right:18px;top:17px;z-index:4;width:36px;height:36px;padding:0;border:1px solid #dbe7e5;border-radius:10px;background:#f4f8f7;color:#526f71;cursor:pointer}.cl-form-panel.cl-modal-open .cl-modal-close:hover{background:#e8f4f1;color:#087f78}.cl-form-panel.cl-modal-open form{padding:0}.cl-form-panel.cl-modal-open form[style]{grid-template-columns:1fr!important}.cl-form-panel.cl-modal-open .cl-btn-w{margin-top:4px}.cl-form-panel.cl-modal-open input,.cl-form-panel.cl-modal-open select,.cl-form-panel.cl-modal-open textarea{background:#fbfdfd}
@keyframes cl-modal-in{from{opacity:0;transform:translate(-50%,-47%) scale(.97)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}

/* Statistiques de module : restent visibles et défilent sur petit écran */
.cl-page-intro-status{overflow-x:auto;max-width:47%;padding-bottom:2px}.cl-page-intro-status>div{flex:none;min-width:94px}.cl-page-intro-status strong{max-width:125px;overflow:hidden;text-overflow:ellipsis;font-size:14px}
@media(max-width:1080px){.cl-page-intro-status{display:flex;max-width:43%}}
@media(max-width:760px){.cl-page-intro{flex-wrap:wrap}.cl-page-intro-copy{flex:1}.cl-page-intro-status{width:100%;max-width:none;margin:3px 0 0}.cl-page-intro-status>div{flex:1}.cl-form-panel{min-height:92px}.cl-modal-launch span{display:none}.cl-modal-launch{width:40px;height:40px;padding:0;justify-content:center}}
@media(max-width:520px){.cl-form-panel.cl-modal-open{inset:10px;width:auto;max-height:none;transform:none;border-radius:17px;padding:0 20px 22px}.cl-form-panel.cl-modal-open>.cl-panel-head{margin:0 -20px 18px;padding:20px 60px 16px 20px}.cl-form-panel.cl-modal-open .cl-modal-close{position:absolute}.cl-form-panel.cl-modal-open .cl-two{grid-template-columns:1fr}@keyframes cl-modal-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}}
.cl-form-panel.cl-modal-open .cl-modal-close{position:absolute}

/* ---------- Répertoire patients ---------- */
.cl-patients-page{display:grid;gap:18px}.cl-patient-overview{display:grid;grid-template-columns:minmax(240px,1fr) minmax(390px,1.35fr) minmax(260px,.9fr);align-items:stretch;gap:14px}.cl-patient-overview>div:first-child{display:flex;align-items:center;gap:14px;padding:20px 22px;border:1px solid #dce9e7;border-radius:18px;background:linear-gradient(135deg,#fff,#f4faf8);box-shadow:var(--cl-shadow)}.cl-overview-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:15px;background:#def3ef;color:#078078;font-size:20px}.cl-patient-overview>div:first-child strong{font-size:14px;color:#173e42}.cl-patient-overview>div:first-child p{margin:4px 0 0;color:#708789;font-size:10.5px;line-height:1.45}.cl-patient-create{margin:0;min-height:0!important}.cl-patient-overview-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cl-patient-overview-metrics>div{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-content:center;column-gap:10px;padding:15px;border:1px solid #dce9e7;border-radius:17px;background:#fff;box-shadow:var(--cl-shadow)}.cl-patient-overview-metrics i{grid-row:1/3;align-self:center;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#ecf7f5;color:#148d83}.cl-patient-overview-metrics strong{font-size:17px;line-height:1;color:#173f43}.cl-patient-overview-metrics span{margin-top:3px;font-size:8.5px;text-transform:uppercase;letter-spacing:.05em;color:#7d9192}
.cl-patient-directory{padding:0;overflow:hidden}.cl-directory-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border-bottom:1px solid #e3edeb;background:linear-gradient(110deg,#fff,#f6fbfa)}.cl-directory-head h2{margin:3px 0 2px;font-size:18px;letter-spacing:-.025em;color:#163e42}.cl-directory-head>div:first-child>span{font-size:10px;color:#87999a}.cl-patient-search{position:relative;width:min(430px,45%)}.cl-patient-search>i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#789091}.cl-patient-search input{height:45px;margin:0;padding:0 42px;border-radius:13px;background:#fff}.cl-patient-search button{position:absolute;right:7px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:31px;height:31px;border:0;border-radius:8px;background:#edf5f3;color:#5e797b;cursor:pointer}
.cl-patient-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:20px 22px 24px;background:#f8fbfa}.cl-patient-card{position:relative;min-width:0;padding:17px;border:1px solid #dae8e5;border-radius:16px;background:#fff;box-shadow:0 3px 12px rgba(13,65,67,.04);transition:transform .2s,box-shadow .2s,border-color .2s}.cl-patient-card:hover{z-index:1;transform:translateY(-3px);border-color:#a9d8d1;box-shadow:0 13px 28px rgba(10,74,74,.11)}.cl-patient-card-top{display:flex;align-items:center;gap:11px}.cl-patient-avatar{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:13px;font-size:11px;font-weight:800}.cl-patient-avatar.female{color:#7b5892;background:#f1eaf7}.cl-patient-avatar.male{color:#277486;background:#e3f3f5}.cl-patient-identity{min-width:0;flex:1}.cl-patient-identity strong,.cl-patient-identity span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cl-patient-identity strong{font-size:13px;color:#183e42}.cl-patient-identity span{margin-top:3px;font-size:9px;color:#839697}.cl-patient-more{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:8px;background:transparent;color:#839697;cursor:pointer}.cl-patient-more:hover{background:#edf6f4;color:#087f78}.cl-patient-facts{display:flex;gap:7px;margin:15px 0 12px;padding:9px 0;border-top:1px solid #edf2f1;border-bottom:1px solid #edf2f1}.cl-patient-facts span{flex:1;color:#5d7779;font-size:10px}.cl-patient-facts i{margin-right:5px;color:#159288}.cl-patient-contact{display:grid;gap:7px;min-height:42px}.cl-patient-contact span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6d8385;font-size:9.5px}.cl-patient-contact i{display:inline-block;width:20px;color:#88a09f}.cl-patient-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px}.cl-patient-card-foot>div{display:flex;gap:4px;min-width:0}.cl-patient-card-foot>span{white-space:nowrap;color:#879a9b;font-size:9px}.cl-patient-card-foot>span i{color:#d49a36}
@media(max-width:1200px){.cl-patient-overview{grid-template-columns:1fr 1.25fr}.cl-patient-overview-metrics{grid-column:1/-1}.cl-patient-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.cl-patient-overview{grid-template-columns:1fr}.cl-patient-overview-metrics{grid-column:auto}.cl-directory-head{align-items:flex-start;flex-direction:column}.cl-patient-search{width:100%}.cl-patient-grid{grid-template-columns:1fr;padding:14px}.cl-patient-directory{border-radius:16px}.cl-directory-head{padding:18px}}

/* Vue cartes / tableau patients */
.cl-directory-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:1}.cl-view-switch{display:flex;gap:3px;padding:4px;border:1px solid #dce8e6;border-radius:12px;background:#edf5f3}.cl-view-switch button{display:flex;align-items:center;gap:6px;height:35px;padding:0 11px;border:0;border-radius:8px;background:transparent;color:#688083;font-size:10px;font-weight:700;cursor:pointer;transition:.18s}.cl-view-switch button:hover{color:#087f78}.cl-view-switch button.active{background:#fff;color:#087f78;box-shadow:0 2px 8px rgba(11,76,76,.1)}.cl-directory-tools .cl-patient-search{width:min(430px,60%);flex:1}
.cl-patient-table-wrap{padding:12px 22px 22px;background:#f8fbfa}.cl-patient-table{min-width:980px;background:#fff;border:1px solid #deebe9;border-radius:14px;overflow:hidden}.cl-patient-table thead th{border-radius:0!important;border-left:0!important;border-right:0!important}.cl-patient-table td{font-size:10.5px}.cl-table-patient{display:flex;align-items:center;gap:10px;min-width:150px}.cl-table-patient .cl-patient-avatar{width:34px;height:34px;border-radius:10px;font-size:9px}.cl-table-patient strong{font-size:11.5px;color:#1b4246}.cl-patient-table td>strong,.cl-patient-table td>small{display:block}.cl-patient-table td>small{max-width:180px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;color:#8a9c9d;font-size:8.5px}.cl-patient-table .cl-mono{white-space:nowrap;font-size:9px;color:#687f81}.cl-table-alerts{display:flex;gap:4px}.cl-muted-text{color:#91a1a2}.cl-points{white-space:nowrap;font-weight:700;color:#557174}.cl-points i{margin-left:3px;color:#d49a36}
@media(max-width:760px){.cl-directory-tools{width:100%;justify-content:space-between}.cl-directory-tools .cl-patient-search{width:auto}.cl-view-switch button span{display:none}.cl-view-switch button{width:34px;padding:0;justify-content:center}.cl-patient-table-wrap{padding:10px 12px 18px}}

/* ==========================================================
   Cockpit conforme CDC — pilotage visuel médico-économique
   ========================================================== */
.cl-cockpit{display:grid;gap:16px}.cl-dashboard-toolbar{display:flex;align-items:center;gap:16px;padding:12px 15px;border:1px solid #dce8e6;border-radius:14px;background:#fff;box-shadow:var(--cl-shadow)}.cl-dashboard-toolbar>div:first-child{margin-right:auto}.cl-dashboard-toolbar strong,.cl-dashboard-toolbar span{display:block}.cl-dashboard-toolbar strong{font-size:11.5px;color:#24494c}.cl-dashboard-toolbar span{margin-top:3px;font-size:8.5px;color:#829697}.cl-dashboard-toolbar span i,.cl-live-label i{display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#27aa76;box-shadow:0 0 0 3px rgba(39,170,118,.12)}.cl-period-switch{display:flex;gap:2px;padding:3px;border-radius:9px;background:#eff5f4}.cl-period-switch button{height:30px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:#6f8587;font-size:9px;font-weight:700;cursor:pointer}.cl-period-switch button.active{background:#fff;color:#087f78;box-shadow:0 2px 7px rgba(15,75,76,.1)}.cl-export-btn{height:36px;padding:0 12px;border:1px solid #d9e7e5;border-radius:9px;background:#fff;color:#31595b;font-size:9.5px;font-weight:700;cursor:pointer}.cl-export-btn i{margin-right:6px;color:#0c8a81}
.cl-dash-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.cl-dash-metric{position:relative;display:grid;grid-template-columns:auto 1fr;column-gap:11px;min-height:112px;padding:16px;overflow:hidden;border:1px solid #dce8e6;border-radius:16px;background:#fff;box-shadow:var(--cl-shadow)}.cl-dash-metric::after{content:"";position:absolute;right:-25px;top:-30px;width:80px;height:80px;border-radius:50%;background:#e8f6f3}.cl-dash-metric-icon{position:relative;z-index:1;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#e4f5f1;color:#0a8a80}.cl-dash-metric-copy{min-width:0}.cl-dash-metric-copy span,.cl-dash-metric-copy strong,.cl-dash-metric-copy small{display:block}.cl-dash-metric-copy span{font-size:8px;text-transform:uppercase;letter-spacing:.075em;color:#758b8d}.cl-dash-metric-copy strong{margin-top:4px;overflow:hidden;text-overflow:ellipsis;font-size:18px;line-height:1.1;color:#173d41;white-space:nowrap}.cl-dash-metric-copy small{margin-top:5px;font-size:8px;color:#8b9c9d}.cl-dash-metric-progress{position:absolute;left:16px;right:16px;bottom:11px;height:3px;overflow:hidden;border-radius:4px;background:#e9f0ef}.cl-dash-metric-progress i{display:block;height:100%;border-radius:4px;background:#15988c}.cl-dash-metric.green .cl-dash-metric-icon{background:#e7f6ee;color:#269564}.cl-dash-metric.amber .cl-dash-metric-icon{background:#fff2dc;color:#da8b20}.cl-dash-metric.red .cl-dash-metric-icon{background:#fdebed;color:#d64d59}.cl-dash-metric.blue .cl-dash-metric-icon{background:#e8f0fb;color:#397ec4}
.cl-dashboard-grid{display:grid;gap:14px}.cl-dashboard-grid.main{grid-template-columns:1.3fr .85fr 1fr}.cl-dashboard-grid.secondary{grid-template-columns:1fr 1.15fr 1fr}.cl-dash-card{min-width:0;padding:18px;border:1px solid #dae7e5;border-radius:17px;background:#fff;box-shadow:var(--cl-shadow)}.cl-dash-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:16px}.cl-dash-card-head span,.cl-dash-card-head h3{display:block}.cl-dash-card-head span{font-size:8px;text-transform:uppercase;letter-spacing:.1em;color:#148b82;font-weight:700}.cl-dash-card-head h3{margin:4px 0 0;font-size:13px;color:#1c4246}.cl-live-label{padding:5px 7px;border-radius:999px;background:#eef8f5}.cl-live-label i{margin-right:3px}
.cl-activity-bars{display:flex;align-items:flex-end;justify-content:space-around;gap:10px;height:174px;padding-top:23px;border-bottom:1px solid #dce8e6;background:repeating-linear-gradient(to bottom,#eef4f3 0,#eef4f3 1px,transparent 1px,transparent 42px)}.cl-activity-bar{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:14%;height:100%}.cl-bar-value{margin-bottom:4px;font-size:9px;font-weight:800;color:#526f71}.cl-bar-track{display:flex;align-items:flex-end;width:22px;height:120px}.cl-bar-track i{display:block;width:100%;min-height:7px;border-radius:5px 5px 1px 1px;transition:height .6s ease}.cl-activity-bar>span{width:65px;margin-top:7px;overflow:hidden;text-overflow:ellipsis;text-align:center;white-space:nowrap;font-size:7.5px;color:#728789}.cl-chart-caption{margin-top:11px;font-size:8px;color:#8a9b9c}.cl-chart-caption i{margin-right:5px;color:#15968b}
.cl-donut-widget{display:flex;align-items:center;justify-content:center;gap:20px;min-height:185px}.cl-donut{display:grid;place-items:center;flex:none;width:132px;height:132px;border-radius:50%;transform:rotate(-25deg);box-shadow:inset 0 0 0 1px rgba(0,0,0,.03)}.cl-donut>div{display:grid;place-items:center;width:82px;height:82px;border-radius:50%;background:#fff;transform:rotate(25deg);box-shadow:0 2px 8px rgba(10,68,69,.07)}.cl-donut strong{font-size:23px;line-height:1;color:#183e42}.cl-donut span{font-size:7.5px;color:#829496}.cl-donut-legend{display:grid;gap:8px;min-width:100px}.cl-donut-legend>div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px;font-size:8px;color:#687f81}.cl-donut-legend i{width:7px;height:7px;border-radius:2px}.cl-donut-legend strong{font-size:9px;color:#294e51}
.cl-alert-center .cl-dash-card-head>strong{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#fdebed;color:#d44d58;font-size:11px}.cl-alert-row{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:9px;padding:10px 0;border-bottom:1px solid #edf2f1}.cl-alert-row:last-child{border:0}.cl-alert-row>div{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#fff2db;color:#dc8e22}.cl-alert-row.critical>div{background:#fdebed;color:#d64e59}.cl-alert-row p{margin:0;min-width:0}.cl-alert-row p strong,.cl-alert-row p span{display:block}.cl-alert-row p strong{font-size:9.5px;color:#2d5053}.cl-alert-row p span{margin-top:2px;overflow:hidden;text-overflow:ellipsis;font-size:7.5px;color:#829596;white-space:nowrap}.cl-alert-row small{font-size:7px;color:#96a6a7;white-space:nowrap}
.cl-radial-row{display:flex;justify-content:space-around;gap:12px;padding:10px 0 4px}.cl-radial-row .cl-gauge-wrap{flex-direction:column;text-align:center}.cl-radial-row .cl-gauge{width:68px;height:68px}.cl-radial-row strong{font-size:9px!important;color:#3e6062}.cl-agenda-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #edf2f1}.cl-agenda-row:last-child{border:0}.cl-agenda-date{display:grid;place-items:center;width:35px;height:38px;border-radius:9px;background:#e9f6f3;color:#087f78}.cl-agenda-date strong{font-size:12px;line-height:1}.cl-agenda-date span{text-transform:uppercase;font-size:6.5px}.cl-agenda-row p{min-width:0;margin:0}.cl-agenda-row p strong,.cl-agenda-row p span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cl-agenda-row p strong{font-size:9.5px;color:#2d5154}.cl-agenda-row p span{margin-top:2px;font-size:7.5px;color:#819495}.cl-agenda-row time{font:8px JetBrains Mono;color:#5e787a}.cl-finance-total span,.cl-finance-total strong{display:block}.cl-finance-total span{font-size:8px;color:#819495}.cl-finance-total strong{margin-top:5px;font-size:21px;color:#183f43}.cl-finance-split{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}.cl-finance-split>div{display:grid;grid-template-columns:auto 1fr;gap:3px 7px;padding:10px;border-radius:10px;background:#f5f9f8}.cl-finance-split i{grid-row:1/3;width:7px;height:7px;margin-top:3px;border-radius:50%}.cl-finance-split i.paid{background:#26a06b}.cl-finance-split i.unpaid{background:#dc5962}.cl-finance-split span{font-size:7px;color:#829495}.cl-finance-split strong{font-size:9px;color:#36595b}.cl-stacked-bar{height:6px;margin-top:13px;border-radius:8px;background:#f3d9dc;overflow:hidden}.cl-stacked-bar i{display:block;height:100%;border-radius:8px;background:#31a477}
.cl-executive-ai{display:grid;grid-template-columns:270px 1fr;gap:25px;padding:22px 25px;border-radius:18px;overflow:hidden;color:#fff;background:linear-gradient(125deg,#093b40,#0b6f6a);box-shadow:0 13px 30px rgba(8,64,65,.16)}.cl-executive-ai-head>div{display:grid;place-items:center;width:35px;height:35px;margin-bottom:10px;border-radius:10px;background:rgba(255,255,255,.12);color:#72ddca}.cl-executive-ai-head>span{font-size:7.5px;text-transform:uppercase;letter-spacing:.11em;color:#79d9ca}.cl-executive-ai-head h3{margin:5px 0;font-size:14px}.cl-executive-ai-head p{margin:0;color:#bcd7d5;font-size:8px;line-height:1.5}.cl-executive-findings{display:grid;grid-template-columns:1fr 1fr;gap:7px 18px}.cl-executive-findings>div{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:start}.cl-executive-findings span{font:8px JetBrains Mono;color:#62cbbb}.cl-executive-findings p{margin:0;color:#d2e3e2;font-size:8px;line-height:1.45}.cl-ai-disclaimer{grid-column:2;padding-top:8px;border-top:1px solid rgba(255,255,255,.1);font-size:7px;color:#8fbab7}.cl-ai-disclaimer i{margin-right:5px}
@media(max-width:1250px){.cl-dash-metrics{grid-template-columns:repeat(3,1fr)}.cl-dashboard-grid.main{grid-template-columns:1.2fr 1fr}.cl-alert-center{grid-column:1/-1}.cl-dashboard-grid.secondary{grid-template-columns:1fr 1fr}.cl-finance-card{grid-column:1/-1}}
@media(max-width:800px){.cl-dashboard-toolbar{flex-wrap:wrap}.cl-dashboard-toolbar>div:first-child{width:100%}.cl-dash-metrics{grid-template-columns:1fr 1fr}.cl-dashboard-grid.main,.cl-dashboard-grid.secondary{grid-template-columns:1fr}.cl-alert-center,.cl-finance-card{grid-column:auto}.cl-executive-ai{grid-template-columns:1fr}.cl-ai-disclaimer{grid-column:1}.cl-executive-findings{grid-template-columns:1fr}}
@media(max-width:520px){.cl-dash-metrics{grid-template-columns:1fr}.cl-period-switch{order:3;width:100%}.cl-period-switch button{flex:1}.cl-export-btn{margin-left:auto}.cl-donut-widget{justify-content:flex-start}.cl-radial-row{flex-wrap:wrap}}
@media print{.cl-sidebar,.cl-topbar,.cl-page-intro,.cl-dashboard-toolbar,.cl-bell-panel{display:none!important}.cl-main{padding:0;background:#fff}.cl-cockpit{gap:10px}.cl-dash-card,.cl-dash-metric,.cl-executive-ai{break-inside:avoid;box-shadow:none}.cl-dashboard-grid.main,.cl-dashboard-grid.secondary{grid-template-columns:repeat(3,1fr)}.cl-dash-metrics{grid-template-columns:repeat(5,1fr)}}

/* Actions et dossier patient */
.cl-patient-actions{position:relative;display:inline-flex}.cl-patient-menu{position:absolute;z-index:25;right:0;top:35px;width:190px;padding:6px;border:1px solid #d9e6e4;border-radius:12px;background:#fff;box-shadow:0 15px 38px rgba(8,54,57,.18);animation:cl-drop .16s ease}.cl-patient-menu button{display:flex;align-items:center;gap:9px;width:100%;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:#3e5e61;text-align:left;font-size:10px;cursor:pointer}.cl-patient-menu button:hover{background:#eaf6f3;color:#087f78}.cl-patient-menu button i{width:16px;color:#168f85}.cl-patient-card:nth-last-child(-n+3) .cl-patient-menu,.cl-patient-table tr:nth-last-child(-n+2) .cl-patient-menu{top:auto;bottom:35px}.cl-patient-table-wrap{overflow:visible}
.cl-record-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:rgba(4,30,33,.5);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);animation:cl-fade-in .18s ease}.cl-record-modal>article{position:relative;width:min(610px,100%);max-height:calc(100vh - 40px);padding:28px;overflow-y:auto;border:1px solid rgba(255,255,255,.75);border-radius:21px;background:#fff;box-shadow:0 30px 90px rgba(2,28,31,.35);animation:cl-modal-in .22s ease}.cl-record-close{position:absolute;right:18px;top:18px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #dce8e6;border-radius:10px;background:#f4f8f7;color:#5d7779;cursor:pointer}.cl-record-close:hover{background:#e8f4f1;color:#087f78}.cl-record-hero{display:flex;align-items:center;gap:15px;padding:2px 50px 20px 0;border-bottom:1px solid #e4edec}.cl-record-hero .cl-patient-avatar{width:58px;height:58px;border-radius:17px;font-size:13px}.cl-record-hero span{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:#148c83}.cl-record-hero h2{margin:4px 0 2px;font-size:19px;color:#173e42}.cl-record-hero p{margin:0;font-size:10px;color:#798e90}.cl-record-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0}.cl-record-grid>div{padding:12px;border-radius:11px;background:#f3f8f7}.cl-record-grid span,.cl-record-grid strong{display:block}.cl-record-grid span{font-size:7.5px;text-transform:uppercase;letter-spacing:.07em;color:#7c9192}.cl-record-grid strong{margin-top:4px;font-size:10px;color:#385b5e}.cl-record-clinical{display:grid;gap:8px;margin-bottom:18px}.cl-record-clinical>div{display:grid;grid-template-columns:auto 1fr;gap:2px 9px;padding:12px;border:1px solid #e1ebe9;border-radius:11px}.cl-record-clinical i{grid-row:1/3;color:#d28a27}.cl-record-clinical span{font-size:8px;color:#809394}.cl-record-clinical strong{font-size:10px;color:#36585b}.cl-edit-heading{padding-right:50px;margin-bottom:20px}.cl-edit-heading span{font-size:8px;text-transform:uppercase;letter-spacing:.1em;color:#118a81}.cl-edit-heading h2{margin:5px 0 2px;font-size:19px;color:#173e42}.cl-edit-heading p{margin:0;font:9px JetBrains Mono;color:#829596}.cl-edit-patient input,.cl-edit-patient select,.cl-edit-patient textarea{width:100%;min-height:43px;margin-bottom:10px;padding:10px 12px;border:1.5px solid #d9e6e4;border-radius:10px;background:#fbfdfd;outline:none}.cl-edit-patient input:focus,.cl-edit-patient select:focus,.cl-edit-patient textarea:focus{border-color:#14988d;box-shadow:0 0 0 3px rgba(20,152,141,.1)}.cl-edit-patient textarea{min-height:75px;resize:vertical}@keyframes cl-fade-in{from{opacity:0}to{opacity:1}}
@media(max-width:760px){.cl-patient-table-wrap{overflow-x:auto}.cl-record-modal{padding:10px}.cl-record-modal>article{padding:22px;border-radius:17px}.cl-record-grid{grid-template-columns:1fr}.cl-patient-menu{position:fixed;left:20px;right:20px;bottom:20px!important;top:auto!important;width:auto;padding:10px}}

/* Dossier patient longitudinal */
.cl-record-modal-wide>article{width:min(1050px,100%);padding:0;overflow:hidden}.cl-record-header{display:flex;align-items:center;gap:14px;padding:22px 70px 19px 24px;border-bottom:1px solid #dfebe9;background:linear-gradient(110deg,#fff,#f1f9f7)}.cl-record-header .cl-patient-avatar{width:55px;height:55px;border-radius:16px}.cl-record-header>div:nth-child(2){min-width:0}.cl-record-header span{font-size:7.5px;text-transform:uppercase;letter-spacing:.11em;color:#128b82}.cl-record-header h2{margin:4px 0 2px;font-size:19px;color:#163d41}.cl-record-header p{margin:0;font-size:9px;color:#7b9091}.cl-record-header p b{font-family:JetBrains Mono;font-weight:500}.cl-record-header-actions{display:flex;gap:6px;margin-left:auto}.cl-record-header-actions button{height:34px;padding:0 11px;border:1px solid #d8e6e4;border-radius:9px;background:#fff;color:#476769;font-size:9px;font-weight:700;cursor:pointer}.cl-record-header-actions button i{margin-right:5px;color:#0d8980}.cl-record-header-actions button:last-child{width:34px;padding:0}.cl-record-header-actions button:last-child i{margin:0}
.cl-record-alert-strip{display:flex;gap:8px;padding:10px 24px;border-bottom:1px solid #e5eeec;background:#fbfdfd}.cl-record-alert-strip>div{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:7px;min-width:160px;padding:8px 10px;border:1px solid #dce8e6;border-radius:10px;background:#fff}.cl-record-alert-strip i{grid-row:1/3;color:#27a06e}.cl-record-alert-strip span{font-size:6.5px;text-transform:uppercase;color:#8a9b9c}.cl-record-alert-strip strong{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8.5px;color:#49696b}.cl-record-alert-strip .danger{border-color:#f1cdd1;background:#fff8f8}.cl-record-alert-strip .danger i{color:#d64e59}.cl-record-alert-strip .warning{border-color:#f0ddbd;background:#fffbf4}.cl-record-alert-strip .warning i{color:#d98b23}.cl-record-alert-strip .info i{color:#3988cc}
.cl-record-tabs{display:flex;gap:3px;padding:8px 24px 0;border-bottom:1px solid #dfeae8;background:#fff}.cl-record-tabs button{position:relative;display:flex;align-items:center;gap:6px;height:40px;padding:0 12px;border:0;background:transparent;color:#73898b;font-size:8.5px;font-weight:700;cursor:pointer}.cl-record-tabs button::after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:2px;border-radius:3px;background:transparent}.cl-record-tabs button.active{color:#087f78}.cl-record-tabs button.active::after{background:#0a9187}.cl-record-tabs button:hover{color:#087f78}.cl-record-content{height:min(570px,calc(100vh - 260px));min-height:360px;padding:20px 24px 25px;overflow-y:auto;background:#f7faf9}.cl-record-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.cl-record-section-title span{font-size:6.5px;text-transform:uppercase;letter-spacing:.1em;color:#158c83}.cl-record-section-title h3{margin:3px 0 0;font-size:12px;color:#23494c}
.cl-record-stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:16px}.cl-record-stat-grid>div{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;column-gap:8px;padding:12px;border:1px solid #dce8e6;border-radius:12px;background:#fff}.cl-record-stat-grid i{grid-row:1/3;display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#e9f6f3;color:#108b82}.cl-record-stat-grid strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#264b4e}.cl-record-stat-grid span{font-size:6.5px;text-transform:uppercase;color:#869899}.cl-record-summary-grid,.cl-record-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cl-record-summary-grid>section,.cl-record-columns>section{min-width:0;padding:16px;border:1px solid #dce8e6;border-radius:14px;background:#fff}.cl-record-info-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.cl-record-info-list>div{display:grid;grid-template-columns:auto 1fr;column-gap:7px;padding:10px;border-radius:9px;background:#f4f8f7}.cl-record-info-list i{grid-row:1/3;color:#168e85}.cl-record-info-list span{font-size:6.5px;color:#87999a}.cl-record-info-list strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8.5px;color:#466568}.cl-record-mini-timeline{display:grid;gap:2px}.cl-record-mini-timeline>div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid #edf2f1}.cl-record-mini-timeline>div:last-child{border:0}.cl-record-mini-timeline>div>i{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#e8f5f2;color:#108b82}.cl-record-mini-timeline p{min-width:0;margin:0}.cl-record-mini-timeline p strong,.cl-record-mini-timeline p span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cl-record-mini-timeline p strong{font-size:8.5px;color:#36585b}.cl-record-mini-timeline p span{font-size:7px;color:#819495}.cl-record-mini-timeline time{font:6.5px JetBrains Mono;color:#8da0a1}
.cl-record-full-timeline{position:relative;display:grid;gap:8px;padding-left:15px}.cl-record-full-timeline::before{content:"";position:absolute;left:30px;top:20px;bottom:20px;width:1px;background:#cfe1de}.cl-record-full-timeline article{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:11px 12px;border:1px solid #dce8e6;border-radius:12px;background:#fff}.cl-event-icon{z-index:1;display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#e8f5f2;color:#128b82;box-shadow:0 0 0 4px #fff}.cl-event-icon.red{background:#fdebed;color:#d34d58}.cl-event-icon.amber{background:#fff1dc;color:#d8881e}.cl-event-icon.purple{background:#f1eafb;color:#855eaa}.cl-record-full-timeline h4{margin:3px 0;font-size:9px;color:#3e6062}.cl-record-full-timeline article>div:nth-child(2)>span{font-size:7px;text-transform:uppercase;letter-spacing:.08em;color:#158c83}.cl-record-full-timeline p{margin:0;font:6.5px JetBrains Mono;color:#8b9d9e}
.cl-care-card,.cl-result-card{position:relative;margin-bottom:8px;padding:11px;border:1px solid #e0eae8;border-radius:11px;background:#fbfdfd}.cl-care-card>div,.cl-result-card>div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:7px}.cl-care-card>div i,.cl-result-card>div i{color:#118b82}.cl-care-card strong,.cl-result-card strong{font-size:9px;color:#36585b}.cl-care-card time,.cl-result-card time{font:6.5px JetBrains Mono;color:#8a9c9d}.cl-care-card p,.cl-result-card p{margin:8px 0 4px;font-size:8px;color:#607b7d}.cl-care-card>span{font-size:7px;color:#829596}.cl-care-card>.cl-badge,.cl-result-card>.cl-badge{position:absolute;right:10px;bottom:9px}.cl-result-card.critical{border-color:#efc4c9;background:#fff8f8}.cl-rx-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;margin-bottom:8px;padding:10px;border:1px solid #e0eae8;border-radius:11px}.cl-rx-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#f0eafb;color:#8561a5}.cl-rx-card strong,.cl-rx-card span,.cl-rx-card small{display:block}.cl-rx-card strong{font-size:9px;color:#36585b}.cl-rx-card span{margin-top:2px;font-size:7.5px;color:#6f8587}.cl-rx-card small{margin-top:3px;font-size:6.5px;color:#91a1a2}.cl-record-span{grid-column:1/-1}.cl-stay-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cl-stay-grid article{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;padding:11px;border:1px solid #e0eae8;border-radius:11px}.cl-stay-grid>article>i{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#fff1dc;color:#d88b22}.cl-stay-grid strong,.cl-stay-grid span,.cl-stay-grid small{display:block}.cl-stay-grid strong{font-size:9px;color:#36585b}.cl-stay-grid span{font-size:7.5px;color:#6f8587}.cl-stay-grid small{font-size:6.5px;color:#91a1a2}
.cl-finance-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.cl-finance-summary>div{padding:13px;border:1px solid #dce8e6;border-radius:11px;background:#fff}.cl-finance-summary span,.cl-finance-summary strong{display:block}.cl-finance-summary span{font-size:7px;text-transform:uppercase;color:#849798}.cl-finance-summary strong{margin-top:4px;font-size:13px;color:#244a4d}.cl-finance-summary strong.danger{color:#d44d58}.cl-invoice-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #e9f0ef}.cl-invoice-row>div strong,.cl-invoice-row>div span{display:block}.cl-invoice-row>div strong{font-size:8.5px;color:#36595b}.cl-invoice-row>div span{margin-top:2px;font-size:6.5px;color:#899b9c}.cl-invoice-row>div:nth-child(2){text-align:right}.cl-loyalty-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #e9f0ef}.cl-loyalty-row>i{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#fff3df;color:#d5942d}.cl-loyalty-row strong,.cl-loyalty-row span{display:block}.cl-loyalty-row strong{font-size:8.5px;color:#36595b}.cl-loyalty-row span{font-size:7px;color:#829596}.cl-loyalty-row time{font-size:7px;color:#8da0a1}.cl-record-empty{display:grid;place-items:center;min-height:100px;padding:20px;border:1px dashed #d7e4e2;border-radius:11px;color:#8ba0a1}.cl-record-empty i{font-size:18px}.cl-record-empty span{margin-top:6px;font-size:8px}
@media(max-width:800px){.cl-record-header-actions button:first-child{font-size:0}.cl-record-header-actions button:first-child i{margin:0;font-size:12px}.cl-record-alert-strip{overflow-x:auto}.cl-record-tabs{overflow-x:auto}.cl-record-tabs button{flex:none}.cl-record-stat-grid{grid-template-columns:repeat(3,1fr)}.cl-record-summary-grid,.cl-record-columns{grid-template-columns:1fr}.cl-record-span{grid-column:auto}.cl-record-content{height:calc(100vh - 245px)}.cl-finance-summary{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.cl-record-modal-wide{padding:0}.cl-record-modal-wide>article{height:100vh;max-height:none;border-radius:0}.cl-record-header{padding:18px 58px 15px 15px}.cl-record-header .cl-patient-avatar{width:44px;height:44px}.cl-record-header h2{font-size:16px}.cl-record-header-actions{display:none}.cl-record-alert-strip,.cl-record-tabs{padding-left:15px;padding-right:15px}.cl-record-content{height:calc(100vh - 225px);padding:15px}.cl-record-tabs button{padding:0 9px}.cl-record-tabs button span{display:none}.cl-record-tabs button i{font-size:14px}.cl-record-stat-grid{grid-template-columns:1fr 1fr}.cl-stay-grid{grid-template-columns:1fr}.cl-record-info-list{grid-template-columns:1fr}}
