/* crm.owan.fr — kanban CRM — extension de owan.css (mêmes tokens/branding) */

/* ── Login ─────────────────────────────────────────────────────────────── */
.login-card{ max-width:420px; margin:14px auto 0; padding:24px 22px; }
.login-card .field-area{ margin-bottom:14px; }
.fld{
  width:100%; font-family:var(--font); font-size:15px; color:var(--ink);
  background:#fff; border:1.5px solid var(--line); border-radius:var(--radius);
  padding:13px 15px; outline:none; transition:border-color .18s, box-shadow .18s;
}
.fld:focus{ border-color:transparent; box-shadow:0 0 0 2px var(--focus-ring); }
.lbl{
  display:block; font-size:12px; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase; color:var(--muted-2); margin:0 0 8px 2px;
}
.login-card .cta{ margin-top:6px; }

/* ── Barre du haut ─────────────────────────────────────────────────────── */
.crm-body{ overflow-x:hidden; }
.topbar{
  position:sticky; top:0; z-index:5;
  display:flex; align-items:center; gap:14px;
  padding:12px 20px; background:rgba(255,255,255,.86);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--line);
}
.topbar-logo{ height:34px; width:auto; }
.topbar-mid{ flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.15; }
.topbar-co{ font-weight:800; font-size:16px; color:var(--ink); letter-spacing:-.01em; }
.topbar-sub{ font-size:12.5px; color:var(--muted-2); }
.topbar-out{
  flex:none; font-size:13px; font-weight:600; color:var(--muted);
  text-decoration:none; padding:8px 14px; border:1.5px solid var(--line);
  border-radius:10px; background:#fff; transition:border-color .15s, color .15s;
}
.topbar-out:hover{ border-color:var(--danger); color:var(--danger); }

/* ── Kanban (scroll horizontal) ────────────────────────────────────────── */
.kanban{
  display:flex; gap:14px; align-items:flex-start;
  padding:20px; overflow-x:auto; min-height:calc(100dvh - 60px);
  scroll-snap-type:x proximity;
}
.kcol{
  flex:0 0 288px; max-width:288px; scroll-snap-align:start;
  background:var(--card); border-radius:18px; padding:12px 11px 14px;
  border-top:3px solid var(--line);
  box-shadow:0 24px 50px -34px rgba(14,19,34,.18), inset 0 1px 0 rgba(255,255,255,.9);
}
.k-pipe{ border-top-color:var(--accent); }
.k-win{ border-top-color:var(--success); }
.k-term{ border-top-color:var(--danger); }
.k-other{ border-top-color:var(--warning); }

.kcol-head{ display:flex; align-items:center; gap:8px; padding:4px 4px 12px; }
.kcol-head h2{ flex:1; font-size:14px; font-weight:700; color:var(--ink); letter-spacing:-.01em; }
.kcol-count{
  flex:none; min-width:24px; height:22px; padding:0 8px;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; color:var(--muted);
  background:rgba(14,19,34,.05); border-radius:99px;
}
.kcol-list{ display:flex; flex-direction:column; gap:8px; }
.kempty{ text-align:center; color:var(--muted-2); font-size:13px; padding:10px; }

/* ── Carte ─────────────────────────────────────────────────────────────── */
.kcard{
  display:block; width:100%; text-align:left; cursor:pointer;
  background:#fff; border:1px solid var(--line); border-radius:13px;
  padding:11px 12px; font-family:var(--font);
  box-shadow:0 12px 26px -22px rgba(14,19,34,.2);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.kcard:hover{ transform:translateY(-2px); border-color:var(--focus);
  box-shadow:0 16px 30px -20px rgba(84,45,243,.35); }
.kc-name{ font-size:14.5px; font-weight:700; color:var(--ink); margin-bottom:4px; }
.kc-line{ display:block; font-size:12.5px; color:var(--muted); line-height:1.5; }
.kc-foot{ margin-top:6px; font-size:11px; color:var(--muted-2); }

/* ── Modale fiche client ───────────────────────────────────────────────── */
.fc-overlay{
  position:fixed; inset:0; z-index:20; display:flex; justify-content:center;
  align-items:flex-start; padding:32px 16px; overflow-y:auto;
  background:rgba(14,19,34,.42); backdrop-filter:blur(3px);
}
.fc-overlay[hidden]{ display:none; }
.fc-modal{
  position:relative; width:100%; max-width:620px;
  background:var(--card); border-radius:22px; padding:24px 24px 28px;
  box-shadow:0 40px 90px -30px rgba(14,19,34,.5); animation:rise .3s ease both;
}
.fc-close{
  position:absolute; top:16px; right:16px; width:34px; height:34px;
  border:none; border-radius:10px; background:rgba(14,19,34,.05);
  font-size:15px; color:var(--muted); cursor:pointer; transition:background .15s;
}
.fc-close:hover{ background:rgba(248,98,81,.14); color:var(--danger); }

.fc-head{ padding-right:40px; margin-bottom:18px; }
.fc-head h2{ font-size:22px; font-weight:800; color:var(--ink); letter-spacing:-.02em; }
.fc-statut{
  display:inline-block; margin-top:8px; padding:4px 12px; border-radius:99px;
  font-size:12.5px; font-weight:700;
  background:rgba(84,45,243,.10); color:var(--accent);
}
.fc-perdu, .fc-injoignable{ background:rgba(248,98,81,.12); color:var(--danger); }
.fc-paye{ background:rgba(154,213,103,.22); color:#4e7a1e; }

.fc-sec{ margin-top:18px; }
.fc-sec h3{
  font-size:11.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:var(--muted-2); margin-bottom:9px;
}
.fc-row{ display:flex; gap:9px; font-size:14.5px; color:var(--ink); padding:3px 0; word-break:break-word; }
.fc-row span{ flex:none; }
.fc-note{ margin-top:6px; font-size:13.5px; color:var(--muted); background:var(--unipro);
  border-radius:10px; padding:10px 12px; white-space:pre-wrap; }
.fc-none{ font-size:13.5px; color:var(--muted-2); }

.fc-doc{ background:var(--unipro); border-radius:12px; padding:11px 13px; margin-bottom:8px;
  position:relative; }
.fc-doc-main{ font-size:14px; color:var(--ink); padding-right:70px; }
.fc-doc-meta{ font-size:12.5px; color:var(--muted); margin-top:3px; }
.fc-chip{ display:inline-block; margin-left:6px; padding:2px 9px; border-radius:99px;
  font-size:11px; font-weight:700; background:rgba(84,45,243,.10); color:var(--accent); }
.fc-dl{
  position:absolute; top:11px; right:12px; font-size:12.5px; font-weight:700;
  color:#fff; text-decoration:none; background:var(--accent);
  padding:6px 11px; border-radius:9px; transition:filter .15s;
}
.fc-dl:hover{ filter:brightness(1.08); }

.fc-msg{ border-left:3px solid var(--line); padding:2px 0 8px 12px; margin-bottom:10px; }
.fc-sortant{ border-left-color:var(--accent); }
.fc-entrant{ border-left-color:var(--success); }
.fc-msg-head{ font-size:11.5px; color:var(--muted-2); margin-bottom:3px; }
.fc-msg-body{ font-size:14px; color:var(--ink); line-height:1.5; word-break:break-word; }

.fc-empty{ padding:30px; text-align:center; color:var(--muted); }

@media (max-width:640px){
  .fc-modal{ padding:20px 18px 24px; }
  .fc-head h2{ font-size:20px; }
}

/* Relances & tâches — statuts (11/07) */
.fc-tache-a_faire{ background:#fff3e0; color:#b45309; }
.fc-tache-faite{ background:#f1f5f9; color:#64748b; }
.fc-tache-echec{ background:#fee2e2; color:#b91c1c; }
.fc-tache-annulee{ background:#f1f5f9; color:#94a3b8; text-decoration:line-through; }

/* ── Back-office (19/07) ── */
.nav-tabs{display:flex;gap:6px;margin-left:auto;margin-right:14px}
.nav-tab{padding:7px 14px;border-radius:999px;font-size:13.5px;font-weight:700;
  color:var(--dark,#0E1322);text-decoration:none;border:1px solid rgba(14,19,34,.1);background:#fff}
.nav-tab.on{background:#542DF3;color:#fff;border-color:#542DF3}
.bo-wrap{max-width:1080px;margin:0 auto;padding:26px 18px 60px}
.bo-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px}
.bo-card{background:#fff;border:1px solid rgba(14,19,34,.08);border-radius:16px;padding:18px 20px;
  box-shadow:0 8px 30px rgba(14,19,34,.05)}
.bo-card .label{font-size:12.5px;font-weight:700;color:rgba(14,19,34,.56);text-transform:uppercase}
.bo-card .big{font-size:32px;font-weight:800;margin:6px 0 3px}
.bo-card .delta{font-size:12.5px;font-weight:700}
.bo-card .wait{color:#c98a1f}.bo-card .soft{color:rgba(14,19,34,.56)}
.bo-card.encaisse{border-top:4px solid #9AD567}
.bo-card.attente{border-top:4px solid #FFC05F}
.bo-card.devis{border-top:4px solid #542DF3}
.bo-grid{display:grid;grid-template-columns:5fr 7fr;gap:14px}
.bo-panel{background:#fff;border:1px solid rgba(14,19,34,.08);border-radius:16px;padding:20px;
  box-shadow:0 8px 30px rgba(14,19,34,.05)}
.bo-panel h2{font-size:15.5px;font-weight:800;margin:0 0 14px}
.funnel .step{margin-bottom:12px}
.funnel .row{display:flex;justify-content:space-between;font-size:13.5px;font-weight:700;margin-bottom:4px}
.funnel .bar{height:22px;border-radius:7px;background:linear-gradient(90deg,#542DF3,#7a5cf7)}
.bo-autos{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}
.bo-auto{background:#fff;border:1px solid rgba(14,19,34,.08);border-radius:16px;padding:16px 18px;
  box-shadow:0 8px 30px rgba(14,19,34,.05)}
.bo-auto.paused{opacity:.62}
.bo-auto-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.bo-on{color:#4d9a27;font-size:12px;font-weight:800}
.bo-off{color:#c98a1f;font-size:12px;font-weight:800}
.bo-trig{font-size:13.5px;font-weight:700;margin-bottom:4px}
.bo-conds{font-size:12.5px;color:rgba(14,19,34,.66);margin-bottom:4px}
.bo-acts{margin:6px 0 12px 18px;font-size:13px}
.bo-delai{color:rgba(14,19,34,.5);font-weight:600}
.bo-btns{display:flex;gap:8px}
.bo-btn{border:1px solid rgba(14,19,34,.14);background:#F5F7FB;border-radius:10px;
  padding:7px 12px;font-size:12.5px;font-weight:700;cursor:pointer;font-family:inherit}
.bo-btn.danger{color:#F86251;border-color:rgba(248,98,81,.4)}
.bo-empty,.bo-alert{background:#fff;border:1px solid rgba(14,19,34,.08);border-radius:16px;
  padding:22px;font-size:14px}
.bo-alert{border-color:rgba(248,98,81,.4);color:#a33}
.bo-okflash{background:#ecf7e2;border:1px solid #9AD567;border-radius:12px;padding:12px 16px;
  font-weight:700;font-size:13.5px;margin-bottom:14px}
.bo-cat{background:#fff;border:1px solid rgba(14,19,34,.08);border-radius:16px;
  padding:14px 18px;margin-bottom:12px}
.bo-cat summary{font-size:15px;font-weight:800;cursor:pointer}
.bo-count{color:rgba(14,19,34,.45);font-weight:700;font-size:13px}
.bo-tpls{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px;margin-top:12px}
.bo-tpl{display:block;border:1px solid rgba(14,19,34,.1);border-radius:12px;padding:12px 14px;
  text-decoration:none;color:inherit}
.bo-tpl:hover{border-color:#542DF3}
.bo-tpl b{display:block;font-size:13.5px;margin-bottom:4px}
.bo-tpl-prev{font-size:12px;color:rgba(14,19,34,.55);line-height:1.4}
.bo-back{display:inline-block;margin-bottom:12px;font-size:13.5px;font-weight:700;
  color:#542DF3;text-decoration:none}
.bo-ta{width:100%;font-family:inherit;font-size:14px;line-height:1.5;padding:12px;resize:vertical}
.bo-hint{font-size:12.5px;color:rgba(14,19,34,.55);margin:8px 0 14px}
@media(max-width:900px){.bo-cards,.bo-grid{grid-template-columns:1fr}
  .nav-tabs{flex-wrap:wrap}}
.kc-paid{font-size:11.5px;font-weight:800;color:#4d9a27;margin-top:4px}
.k-other .kcol-head h2{color:rgba(14,19,34,.5)}
.kc-ai{font-size:11.5px;font-weight:800;color:#542DF3;margin-top:4px}
.vue-switch{display:flex;border:1px solid rgba(14,19,34,.12);border-radius:999px;overflow:hidden;margin-right:12px}
.vs{padding:6px 13px;font-size:12.5px;font-weight:700;text-decoration:none;color:#0E1322;background:#fff}
.vs.on{background:#0E1322;color:#fff}
.lv-layout{display:grid;grid-template-columns:230px 1fr;gap:16px;max-width:1240px;margin:0 auto;padding:20px 18px 60px}
.lv-side{display:flex;flex-direction:column;gap:6px;position:sticky;top:14px;align-self:start}
.lv-item{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 13px;
  border:1px solid rgba(14,19,34,.09);border-radius:12px;background:#fff;text-decoration:none;
  color:#0E1322;font-size:13.5px;font-weight:700}
.lv-item.on{background:#542DF3;color:#fff;border-color:#542DF3}
.lv-item.on .lv-n{background:rgba(255,255,255,.22);color:#fff}
.lv-n{background:#F0F2F8;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:800}
.lv-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-content:start}
.lv-grid .kcard{width:100%}
@media(max-width:1000px){.lv-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.lv-layout{grid-template-columns:1fr}.lv-side{flex-direction:row;flex-wrap:wrap;position:static}.lv-grid{grid-template-columns:1fr 1fr}}
/* ── Barre CRM intégrée (19/07) ── */
.crm-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  max-width:1400px;margin:0 auto;padding:14px 18px 0}
.crm-bar-left{display:flex;align-items:center;font-size:15px;font-weight:800;color:#0E1322}
.crm-bar-count{font-size:13px;font-weight:700;color:#fff;background:#542DF3;
  border-radius:999px;padding:4px 11px;line-height:1}
.crm-bar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.crm-filter{display:flex;border:1px solid rgba(14,19,34,.12);border-radius:999px;overflow:hidden}
.cf{padding:6px 13px;font-size:12.5px;font-weight:700;text-decoration:none;color:#0E1322;background:#fff}
.cf.on{background:#EEF0F7;color:#542DF3}
/* ── Funnel conversions (Shopify-like) ── */
.funnel .conv{font-size:12px;font-weight:700;color:#111;margin:2px 0 8px 2px}
.funnel .step .n{font-weight:800}
/* ── Création automatisation ── */
.bo-tophead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.bo-sub{font-size:13.5px;color:rgba(14,19,34,.6);font-weight:600}
.cta-sm{padding:9px 16px;font-size:13.5px;width:auto;display:inline-flex}
.bo-form .lbl{display:block;margin:14px 0 5px;font-size:13px;font-weight:700}
.bo-form .fld{width:100%;padding:10px 12px;font-family:inherit;font-size:14px;border-radius:10px;border:1px solid rgba(14,19,34,.16)}
.bo-cond-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bo-form .cta{margin-top:18px}
@media(max-width:600px){.bo-cond-row{grid-template-columns:1fr}}
/* ── Réseaux sociaux (19/07) ── */
.rs-h2{font-size:16px;font-weight:800;margin:22px 0 12px}
.rs-notice{background:#EEF0F7;border:1px solid rgba(84,45,243,.25);border-radius:14px;
  padding:14px 18px;font-size:13.5px;font-weight:600;color:#3a2a8c;margin-bottom:6px}
.rs-nets{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.rs-net{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid rgba(14,19,34,.08);
  border-radius:16px;padding:16px 18px;box-shadow:0 8px 30px rgba(14,19,34,.05)}
.rs-net.off{opacity:.72}
.rs-logo{width:42px;height:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-size:20px;flex-shrink:0}
.rs-net-main{display:flex;flex-direction:column;gap:2px}
.rs-net-main b{font-size:14.5px}
.rs-on{color:#4d9a27;font-size:12.5px;font-weight:800}
.rs-off{color:#c98a1f;font-size:12.5px;font-weight:800}
.rs-grid3{grid-template-columns:repeat(3,1fr)}
.rs-statcard h3{font-size:14.5px;font-weight:800;margin-bottom:14px}
.rs-stats{display:flex;justify-content:space-between;gap:8px}
.rs-stat{text-align:center;flex:1}
.rs-stat-n{font-size:24px;font-weight:800}
.rs-stat-l{font-size:11.5px;font-weight:700;color:rgba(14,19,34,.55);margin-top:3px}
.rs-posts{display:flex;flex-direction:column;gap:10px}
.rs-post{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;
  background:#fff;border:1px solid rgba(14,19,34,.08);border-radius:12px;padding:12px 16px}
.rs-post-net{font-weight:800;font-size:12.5px}
.rs-post-when{font-size:12px;color:rgba(14,19,34,.5)}
@media(max-width:900px){.rs-nets,.rs-grid3{grid-template-columns:1fr}}

/* Réseaux — live Postiz (20/07) */
img.rs-logo{object-fit:cover;border-radius:10px}
.rs-window{font-size:.72rem;font-weight:600;color:#8A94A6;margin-left:.4rem}
.rs-src{font-size:.72rem;font-weight:500;color:#8A94A6}
.rs-delta{font-size:.72rem;color:#111;margin-left:.25rem;white-space:nowrap}
.rs-stat-empty{color:#8A94A6;font-size:.85rem;grid-column:1/-1}
