:root{--red:#e91e2f;--red2:#ff6070;--dark:#151827;--muted:#667085;--line:#e8edf4;--bg:#f6f8fc;--shadow:0 18px 45px rgba(16,24,40,.08);--green:#16a34a;--blue:#2563eb;--orange:#f59e0b;--gray:#64748b}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--dark)}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{display:grid;grid-template-columns:270px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:24px;display:flex;flex-direction:column;gap:22px;position:sticky;top:0;height:100vh}.brand{font-size:23px;font-weight:950;letter-spacing:-.04em}.brand span{color:var(--red);font-size:34px}nav{display:grid;gap:9px}.navbtn{border:0;background:transparent;border-radius:16px;padding:14px 15px;display:flex;align-items:center;gap:12px;color:#475467;text-align:left}.navbtn:hover{background:#f7f9fc}.navbtn.active{background:linear-gradient(135deg,var(--red),var(--red2));color:white;box-shadow:0 12px 24px rgba(233,30,47,.22)}.navbtn span{font-size:20px}.navbtn em{margin-left:auto;background:#fff2;border-radius:999px;padding:3px 8px;font-style:normal;font-size:12px}.side-card{margin-top:auto;background:#f7f9fc;border:1px solid var(--line);border-radius:18px;padding:15px;display:grid;gap:8px}.side-card small{color:var(--muted)}.logout,.ghost{border:1px solid var(--line);background:#fff;color:#344054;border-radius:12px;padding:9px 12px;font-weight:850}.primary{border:0;border-radius:12px;background:linear-gradient(135deg,var(--red),var(--red2));color:white;padding:11px 15px;font-weight:900;box-shadow:0 12px 25px rgba(233,30,47,.18)}.full{width:100%}.main{padding:28px 34px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.topbar h1{font-size:36px;margin:0;letter-spacing:-.04em}.topbar p{margin:6px 0 0;color:var(--muted);font-weight:650}.user{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:11px 14px;box-shadow:var(--shadow)}.user span{font-size:24px}.user small{color:var(--muted)}.kpis{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px;margin-bottom:18px}.kpi{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;display:flex;gap:14px;box-shadow:var(--shadow);position:relative;overflow:hidden}.kpi:before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:var(--red)}.kpi.green:before{background:var(--green)}.kpi.blue:before{background:var(--blue)}.kpi.orange:before{background:var(--orange)}.kpi span{font-size:28px}.kpi small,.kpi em{display:block;color:var(--muted);font-style:normal;font-weight:750}.kpi b{font-size:32px;line-height:1.1}.section{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;margin-bottom:22px;box-shadow:var(--shadow)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section h2{margin:0;font-size:24px;letter-spacing:-.03em}.pill{display:inline-flex;border-radius:999px;background:#f1f5f9;color:#475467;font-weight:850;padding:7px 12px}.alert-ok{background:linear-gradient(135deg,#ecfdf3,#fff);border:1px solid #bbf7d0;border-radius:18px;padding:15px 18px;margin-bottom:18px;color:#047857;font-weight:850}.alert-band{background:linear-gradient(135deg,#fff1f2,#fff);border:1px solid #fecdd3;border-radius:20px;padding:16px 18px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;color:#991b1b;box-shadow:var(--shadow)}.alert-band small{display:block;margin-top:4px}.activity-layout{display:grid;grid-template-columns:1fr 360px;gap:18px;align-items:start}.activity-layout.full{display:block}.activity-layout.full .lanes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.lane{border:1px solid var(--line);border-radius:20px;padding:14px;min-height:290px;background:linear-gradient(180deg,#f8fafc,#fff)}.lane.green{background:linear-gradient(180deg,#ecfdf3,#fff)}.lane.blue{background:linear-gradient(180deg,#eff6ff,#fff)}.lane.orange{background:linear-gradient(180deg,#fff7ed,#fff)}.lane.red{background:linear-gradient(180deg,#fef2f2,#fff);border-color:#fecaca}.lane-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.lane-title b{font-size:18px}.lane-title span{border-radius:999px;background:#111827;color:#fff;font-weight:900;padding:4px 9px}.green .lane-title span{background:var(--green)}.blue .lane-title span{background:var(--blue)}.orange .lane-title span{background:var(--orange)}.red .lane-title span{background:var(--red)}.activity-card{background:#fff;border:1px solid var(--line);border-left:5px solid #cbd5e1;border-radius:16px;padding:14px;margin-bottom:12px;box-shadow:0 10px 25px rgba(16,24,40,.06)}.activity-card.important{border-left-color:var(--orange)}.activity-card.urgent{border-left-color:var(--red)}.activity-card.late-card{border-left-color:var(--red);background:linear-gradient(180deg,#fff,#fff7f7)}.activity-type{display:flex;align-items:center;gap:7px;color:var(--muted);font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.activity-card h3{font-size:19px;margin:8px 0 5px;letter-spacing:-.02em}.activity-card p{margin:5px 0;color:var(--muted);font-size:14px}.activity-card .client{color:#334155;font-weight:850}.activity-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.activity-meta b,.activity-meta em{background:#f1f5f9;border-radius:999px;padding:5px 8px;font-size:12px;font-style:normal}.activity-meta .late-badge{background:#fee2e2;color:#b91c1c}.activity-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:12px}.activity-actions button{border:0;border-radius:10px;padding:8px;font-weight:950}.done{background:#dcfce7;color:#15803d}.report{background:#dbeafe;color:#1d4ed8}.cancel{background:#fee2e2;color:#dc2626}.panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:var(--shadow)}.panel h2{margin:0 0 15px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:13px}.field label{font-weight:850;color:#344054;font-size:13px}.field input,.field textarea,.field select{border:1px solid #d7dfe9;border-radius:12px;padding:11px;background:#fff}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-bottom:12px}.quick button{border:1px solid var(--line);background:#f8fafc;border-radius:11px;padding:9px;font-weight:850}.done-zone{margin-top:20px}.done-grid,.history-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:12px}.done-card,.history-card{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:16px;padding:13px;background:#fff}.done-card{background:linear-gradient(135deg,#f0fdf4,#fff);border-color:#bbf7d0}.done-card small,.history-card small{display:block;color:var(--muted);margin-top:3px}.restore{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:10px;padding:8px 10px;font-weight:900}.history-card.done span{color:#16a34a}.history-card.cancelled span{color:#dc2626}.backup-grid{display:grid;grid-template-columns:repeat(4,minmax(230px,1fr));gap:16px}.backup-card{background:#fff;border:1px solid var(--line);border-top:5px solid #94a3b8;border-radius:20px;padding:17px;box-shadow:var(--shadow)}.backup-card.ok{border-top-color:var(--green)}.backup-card.warning,.backup-card.missed{border-top-color:var(--orange)}.backup-card.error{border-top-color:var(--red)}.backup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.backup-head h3{margin:6px 0 2px;font-size:18px}.backup-head small{color:var(--muted)}.pc{font-size:28px}.backup-head b{font-size:12px;border-radius:999px;padding:6px 9px;background:#f1f5f9}.backup-info{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.backup-info div{background:#f8fafc;border:1px solid var(--line);border-radius:13px;padding:9px}.backup-info span{display:block;color:var(--muted);font-size:11px;font-weight:850;text-transform:uppercase}.backup-info strong{font-size:13px}.alert-note{margin-top:12px;border-radius:12px;background:#fff7ed;color:#c2410c;padding:10px;font-weight:800;font-size:13px}.health{display:grid;grid-template-columns:280px 1fr;gap:18px;align-items:center;background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:16px}.health small{display:block;color:var(--muted);margin-top:4px}.bar{height:14px;border-radius:999px;background:#e2e8f0;overflow:hidden}.bar span{display:block;height:100%;background:linear-gradient(90deg,#22c55e,#16a34a)}.alert-item{display:flex;justify-content:space-between;gap:14px;align-items:center;border:1px solid var(--line);border-radius:16px;padding:13px;margin-bottom:10px}.alert-item.error{background:#fff5f5;border-color:#fecaca}.alert-item.missed,.alert-item.warning{background:#fff7ed;border-color:#fed7aa}.alert-item small{display:block;color:var(--muted);margin-top:3px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:18px}.row{display:flex;flex-wrap:wrap;gap:9px}.check{display:flex;align-items:center;gap:8px;margin:8px 0 15px;font-weight:850}.muted{color:var(--muted)}.log{border:1px solid var(--line);border-radius:12px;padding:10px;margin-bottom:8px;background:#f8fafc}.log small{display:block;color:var(--muted);margin-top:3px}.empty{border:1px dashed #cbd5e1;background:#f8fafc;border-radius:14px;padding:14px;color:var(--muted);font-weight:750}.empty.small{font-size:13px;text-align:center}.toast{position:fixed;right:24px;bottom:24px;background:#111827;color:#fff;border-radius:15px;padding:13px 16px;display:flex;align-items:center;gap:12px;box-shadow:var(--shadow);z-index:20}.toast-btn{border:0;background:#fff;color:#111827;border-radius:10px;padding:7px 10px;font-weight:900}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,#ffe8ea,transparent 30%),linear-gradient(135deg,#fff,#f6f9ff)}.login-card{width:min(420px,92vw);background:#fff;border:1px solid var(--line);border-radius:24px;padding:32px;box-shadow:var(--shadow)}.login-card h1{font-size:34px;margin:0}.login-card h1 span{color:var(--red)}.error-msg{background:#fee2e2;color:#991b1b;border-radius:12px;padding:10px;margin:12px 0;font-weight:850}@media(max-width:1300px){.kpis,.backup-grid{grid-template-columns:repeat(2,1fr)}.activity-layout,.settings-grid{grid-template-columns:1fr}.lanes,.activity-layout.full .lanes{grid-template-columns:repeat(2,1fr)}}@media(max-width:820px){.app{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.topbar{align-items:flex-start;flex-direction:column}.kpis,.backup-grid,.lanes,.activity-layout.full .lanes,.done-grid,.history-grid{grid-template-columns:1fr}.main{padding:20px}.health{grid-template-columns:1fr}}


/* V4.1 - affinage interface activité + sauvegardes */
.activity-card{padding:16px 16px 14px;border-radius:18px;border-left-width:6px;transition:.15s ease transform,.15s ease box-shadow}
.activity-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(16,24,40,.09)}
.activity-card h3{font-size:22px;line-height:1.15;margin:10px 0 6px;letter-spacing:-.035em;color:#101828}
.activity-type{font-size:11px;opacity:.9}
.activity-card p{font-size:14px;line-height:1.35}.activity-card .client{font-size:15px;color:#1e293b}
.activity-meta{margin-top:12px}.activity-meta b.time{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}.activity-meta b,.activity-meta em{font-size:13px;padding:6px 10px}
.activity-actions{display:flex;gap:8px;margin-top:14px}.activity-actions button{flex:1;min-width:38px;padding:8px 10px;border-radius:999px;font-size:16px;line-height:1}
.lane{padding:16px}.lane-title b{font-size:20px}.quick button{font-size:13px}
.backup-card{border-top:0;border-left:6px solid #94a3b8;border-radius:22px;padding:18px 18px 16px;background:linear-gradient(180deg,#fff,#fbfdff)}
.backup-card.ok{border-left-color:var(--green)}.backup-card.warning,.backup-card.missed{border-left-color:var(--orange)}.backup-card.error{border-left-color:var(--red)}
.backup-head{align-items:center}.backup-head h3{font-size:20px;margin:6px 0 3px;letter-spacing:-.025em}.backup-head b{font-size:12px;font-weight:950}
.backup-mainline{margin-top:15px;border-radius:16px;padding:14px;background:#f8fafc;border:1px solid var(--line)}
.backup-mainline span,.backup-timeline span{display:block;color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px}
.backup-mainline strong{font-size:16px;color:#111827}.backup-timeline{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.backup-timeline div{border-radius:16px;padding:13px;background:#fff;border:1px solid var(--line)}.backup-timeline strong{font-size:14px;color:#111827}
.backup-foot{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.backup-foot span{background:#f1f5f9;border:1px solid var(--line);border-radius:999px;padding:7px 10px;font-weight:850;color:#334155;font-size:13px}

/* =========================
   Z-Manager V4.2
   Sauvegardes : retour présentation V3.9
   ========================= */
.backup-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(260px,1fr));
  gap:16px;
}
.backup-card{
  border:1.5px solid var(--line) !important;
  border-top:0 !important;
  border-left:0 !important;
  border-radius:18px !important;
  background:#fff !important;
  padding:16px !important;
  min-height:275px;
  box-shadow:0 10px 24px rgba(15,23,42,.05) !important;
  position:relative;
  overflow:hidden;
}
.backup-card:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:#d7dde7;
}
.backup-card.ok{
  border-color:#91e7b3 !important;
  background:linear-gradient(180deg,#fff,#fbfffd) !important;
}
.backup-card.ok:before{background:#22c55e;}
.backup-card.warning,
.backup-card.missed{
  border-color:#fdcf85 !important;
  background:linear-gradient(180deg,#fff,#fffaf0) !important;
}
.backup-card.warning:before,
.backup-card.missed:before{background:#f59e0b;}
.backup-card.error{
  border-color:#ffaaa6 !important;
  background:linear-gradient(180deg,#fff,#fff5f4) !important;
}
.backup-card.error:before{background:#ef4444;}
.backup-card.unknown{
  border-color:#d7dde7 !important;
  background:linear-gradient(180deg,#fff,#f8fafc) !important;
}
.backup-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.backup-title{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.pcicon{
  width:54px;
  height:54px;
  flex:0 0 54px;
  border-radius:50%;
  background:#e5faee;
  display:grid;
  place-items:center;
  font-size:27px;
}
.backup-card.warning .pcicon,
.backup-card.missed .pcicon{background:#fff1d7;}
.backup-card.error .pcicon{background:#ffe2e1;}
.backup-card.unknown .pcicon{background:#eef2f7;}
.bname{
  font-weight:950;
  font-size:17px;
  line-height:1.2;
  color:#101828;
  letter-spacing:-.03em;
}
.bdevice{
  color:#667085;
  font-size:12px;
  font-weight:750;
  margin-top:2px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  padding:5px 10px;
  margin-top:7px;
}
.badge.ok{background:#dcfce7;color:#07883b;}
.badge.warning{background:#fff1cc;color:#d97706;}
.badge.error{background:#fee2e2;color:#dc2626;}
.badge.unknown{background:#eef2f7;color:#667085;}
.planning{
  margin-top:15px;
  color:#35415a;
  font-size:14px;
  line-height:1.45;
}
.planning b{
  color:#344054;
  font-size:14px;
}
.nextbox{
  margin-top:12px;
  padding:14px;
  border-radius:12px;
  text-align:center;
  font-weight:950;
  background:#f1f5f9;
  color:#475467;
  line-height:1.3;
}
.nextbox small{
  display:block;
  font-size:12px;
  color:inherit;
  opacity:.82;
  margin-bottom:4px;
}
.backup-card.ok .nextbox{background:#eafaf0;color:#14833c;}
.backup-card.warning .nextbox,
.backup-card.missed .nextbox{background:#fff3df;color:#d97706;}
.backup-card.error .nextbox{background:#fee7e7;color:#dc2626;}
.backup-details{
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr;
  gap:8px;
  margin-top:12px;
}
.backup-details div{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:12px;
  padding:9px 10px;
}
.backup-details span{
  display:block;
  color:#667085;
  font-size:11px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.03em;
  margin-bottom:4px;
}
.backup-details b{
  display:block;
  font-size:13px;
  color:#0f172a;
  line-height:1.25;
}
.backup-card.ok .backup-details div{background:#f3fff7;}
.backup-card.warning .backup-details div,
.backup-card.missed .backup-details div{background:#fff9ec;}
.backup-card.error .backup-details div{background:#fff3f3;}
.backup-foot{
  border-top:1px solid var(--line) !important;
  margin-top:14px !important;
  padding-top:12px !important;
  display:flex !important;
  justify-content:space-between !important;
  gap:10px;
  color:#465164;
  font-size:13px;
  font-weight:800;
}
.alert-note{
  margin-top:10px;
  padding:10px 12px;
  border-radius:11px;
  background:#fff7ed;
  color:#c2410c;
  font-weight:850;
  font-size:13px;
}
.backup-card.error .alert-note{background:#fee2e2;color:#b91c1c;}
@media(max-width:1500px){.backup-grid{grid-template-columns:repeat(3,minmax(260px,1fr));}}
@media(max-width:1150px){.backup-grid{grid-template-columns:repeat(2,minmax(260px,1fr));}}
@media(max-width:820px){.backup-grid{grid-template-columns:1fr;}.backup-details{grid-template-columns:1fr;}}

/* =========================
   Z-Manager V4.3.3
   Activite : lisibilite et ergonomie
   ========================= */
.dashboard-activity{
  width:100%;
}
.dashboard-activity .activity-layout.full{
  width:100%;
}
.activity-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(150px,1fr));
  gap:10px;
  margin:0 0 16px;
}
.activity-summary div{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
}
.activity-summary span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}
.activity-summary b{
  display:block;
  margin-top:3px;
  font-size:28px;
  line-height:1;
  color:#111827;
}
.activity-card{
  border-left-color:#cbd5e1;
  padding:12px 12px 11px;
  cursor:pointer;
}
.activity-card:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(16,24,40,.08);
}
.activity-card.selected{
  border-color:#bfdbfe;
  border-left-color:#2563eb;
  background:#f8fbff;
  box-shadow:0 0 0 2px rgba(37,99,235,.08),0 12px 26px rgba(37,99,235,.08);
}
.activity-card.normal{
  border-left-color:#94a3b8;
}
.activity-card.normal.selected{
  border-left-color:#2563eb;
}
.activity-card.important{
  border-left-color:#f59e0b;
}
.activity-card.important.selected{
  border-left-color:#2563eb;
}
.activity-card.urgent{
  border-left-color:#ef4444;
}
.activity-card.urgent.selected{
  border-left-color:#2563eb;
}
.activity-title{
  display:flex;
  align-items:flex-start;
  gap:8px;
}
.activity-icon{
  width:26px;
  height:26px;
  flex:0 0 26px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#f1f5f9;
  font-size:16px;
}
.activity-title h3{
  margin:0 0 2px;
  font-size:15px;
  line-height:1.22;
  font-weight:800;
  letter-spacing:0;
}
.activity-type{
  display:block;
  color:#64748b;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.activity-card p{
  margin:4px 0;
  font-size:13px;
  line-height:1.28;
}
.activity-card .client{
  font-size:13px;
}
.activity-meta:empty{
  display:none;
}
.activity-meta{
  gap:6px;
  margin-top:8px;
}
.activity-meta b,
.activity-meta em{
  font-size:11px;
  padding:4px 7px;
}
.activity-actions{
  display:flex;
  flex-wrap:nowrap;
  gap:6px;
  margin-top:10px;
}
.activity-actions button{
  flex:1 1 0;
  min-width:0;
  border:1px solid transparent;
  border-radius:999px;
  padding:6px 7px;
  font-size:11px;
  font-weight:950;
  line-height:1.1;
  white-space:nowrap;
}
.activity-actions .done{
  border-color:#bbf7d0;
}
.activity-actions .report{
  border-color:#bfdbfe;
}
.activity-actions .cancel{
  border-color:#fecaca;
}
.done-grid{
  grid-template-columns:repeat(3,minmax(240px,1fr));
}
.done-card{
  background:linear-gradient(180deg,#ffffff,#f7fef9);
  border-color:#d8f3df;
  box-shadow:0 8px 18px rgba(22,163,74,.06);
}
.done-info{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.done-info>span{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#dcfce7;
}
.done-info b{
  display:block;
  color:#102a1a;
}
.done-info small{
  color:#4b7160;
}
.restore{
  white-space:nowrap;
  border-radius:999px;
  padding:7px 10px;
  font-size:13px;
}
.done-section{
  margin-top:8px;
  margin-bottom:26px;
}
.done-zone.standalone{
  margin-top:0;
}
.done-zone.standalone .section-head{
  margin-bottom:16px;
}
.activity-form.editing{
  border-color:#bfdbfe;
  background:linear-gradient(180deg,#fff,#f8fbff);
}
.cancel-edit{
  margin-top:9px;
}
.dashboard-activity .done-zone{
  margin-top:16px;
  padding-top:0;
}
.dashboard-activity .lane{
  box-shadow:none;
}
.lane{
  max-height:68vh;
  overflow-y:auto;
}
.dashboard-activity .lane{
  max-height:520px;
}
.activity-layout:not(.full) .lane{
  max-height:72vh;
}
@media(max-width:900px){
  .activity-summary{grid-template-columns:1fr;}
  .activity-actions button{font-size:12px;padding:7px 6px;}
  .activity-title h3{font-size:15px;}
  .lane,.dashboard-activity .lane,.activity-layout:not(.full) .lane{max-height:none;}
}

/* =========================
   Z-Manager V4.3.8
   Dashboard pilotage + santé sauvegardes cohérente
   ========================= */
.dashboard-focus .section-head{
  margin-bottom:14px;
}
.dashboard-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:start;
}
.dash-block{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  padding:14px;
}
.dash-block.today{
  background:linear-gradient(180deg,#f8fafc,#fff);
}
.dash-block.late{
  border-color:#fed7aa;
  background:linear-gradient(180deg,#fff7ed,#fff);
}
.dash-block-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.dash-block-head h3{
  margin:0;
  font-size:17px;
}
.dash-block-head span{
  min-width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-weight:950;
}
.dash-block.today .dash-block-head span{background:#2563eb;}
.dash-block.late .dash-block-head span{background:#f59e0b;}
.dash-task{
  border:1px solid var(--line);
  border-left:5px solid #94a3b8;
  border-radius:14px;
  padding:10px;
  margin-bottom:9px;
  background:#fff;
}
.dash-task.important{border-left-color:#f59e0b;}
.dash-task.urgent{border-left-color:#ef4444;}
.dash-task-main{
  display:flex;
  gap:9px;
  align-items:flex-start;
}
.dash-task-main>span{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#f1f5f9;
  flex:0 0 26px;
}
.dash-task-main b{
  display:block;
  font-size:14px;
  line-height:1.25;
}
.dash-task-main small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-weight:750;
}
.activity-actions.compact{
  grid-template-columns:1fr 1fr;
  display:grid;
}
.activity-actions.compact button{
  font-size:11px;
  padding:6px 8px;
}
.dashboard-done{
  margin-top:16px;
}
.dashboard-done .done-grid{
  grid-template-columns:repeat(2,minmax(240px,1fr));
}
.upcoming-summary{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(3,minmax(140px,1fr)) auto;
  gap:10px;
  align-items:stretch;
}
.upcoming-summary div{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  background:#f8fafc;
}
.upcoming-summary span,
.backup-mini-stats span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}
.upcoming-summary b,
.backup-mini-stats b{
  display:block;
  margin-top:3px;
  font-size:26px;
  line-height:1;
}
.upcoming-summary small{
  color:var(--muted);
  font-weight:750;
}
.backup-mini-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(140px,1fr));
  gap:10px;
  margin-bottom:14px;
}
.backup-mini-stats div{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
}
.health.warning .bar span{
  background:linear-gradient(90deg,#f59e0b,#22c55e);
}
.backup-card.late,
.backup-card.unknown{
  border-color:#fdcf85 !important;
  background:linear-gradient(180deg,#fff,#fffaf0) !important;
}
.backup-card.late:before,
.backup-card.unknown:before{background:#f59e0b;}
@media(max-width:1050px){
  .dashboard-grid,.upcoming-summary,.backup-mini-stats{grid-template-columns:1fr;}
  .dashboard-done .done-grid{grid-template-columns:1fr;}
}

/* =========================
   Z-Manager V4.3.10
   Dashboard aujourd'hui : alignements améliorés
   ========================= */
.today-dashboard{
  display:grid;
  gap:16px;
}
.today-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
  align-items:stretch;
}
.today-main-grid > div,
.today-main-grid .dash-block{
  min-height:100%;
}
.dash-block.done{
  background:linear-gradient(180deg,#f7fff9,#fff);
}
.dashboard-done-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.dashboard-done-list .done-card{
  min-height:68px;
  align-items:center;
}
.dashboard-done-list .done-info{
  min-width:0;
}
.dashboard-done-list .done-info b,
.dashboard-done-list .done-info small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dashboard-late-strip{
  border:1px solid #fed7aa;
  border-radius:18px;
  background:linear-gradient(180deg,#fffaf3,#fff);
  padding:14px 16px;
}
.dashboard-late-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.dashboard-late-head b{
  font-size:16px;
}
.dashboard-late-head span{
  min-width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#f59e0b;
  color:#fff;
  font-weight:950;
}
.dashboard-late-list{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.late-chip{
  display:flex;
  align-items:flex-start;
  gap:8px;
  border:1px solid #fde1b5;
  border-radius:14px;
  background:#fff;
  padding:10px 12px;
}
.late-chip > span{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  flex:0 0 24px;
  border-radius:8px;
  background:#fff7ed;
}
.late-chip b{
  display:block;
  font-size:13px;
  line-height:1.25;
}
.late-chip small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-weight:700;
}
.upcoming-summary.aligned{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.upcoming-summary.aligned > div,
.upcoming-summary.aligned > .summary-cta{
  min-height:96px;
}
.summary-cta{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:900;
  font-size:20px;
  border-radius:16px;
  background:#fff;
}
@media(max-width:1200px){
  .today-main-grid,
  .dashboard-late-list,
  .dashboard-done-list,
  .upcoming-summary.aligned{
    grid-template-columns:1fr;
  }
  .upcoming-summary.aligned > div,
  .upcoming-summary.aligned > .summary-cta{
    min-height:auto;
  }
}

/* =========================
   Z-Manager V4.3.11
   Dashboard premium proche esquisse
   ========================= */
.premium-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(190px,1fr));
  gap:18px;
  margin-bottom:22px;
}
.premium-kpi{
  display:flex;
  align-items:center;
  gap:18px;
  min-height:122px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:22px 24px;
  box-shadow:0 14px 35px rgba(16,24,40,.08);
}
.premium-kpi-icon{
  width:64px;
  height:64px;
  flex:0 0 64px;
  border-radius:18px;
  display:grid;
  place-items:center;
  font-size:34px;
  background:#f1f5f9;
}
.premium-kpi.red .premium-kpi-icon{background:#fff1f2;color:#e11d48;}
.premium-kpi.green .premium-kpi-icon{background:#ecfdf3;color:#16a34a;}
.premium-kpi.blue .premium-kpi-icon{background:#eff6ff;color:#2563eb;}
.premium-kpi.orange .premium-kpi-icon{background:#fff7ed;color:#ea580c;}
.premium-kpi small{
  display:block;
  color:#475467;
  font-size:15px;
  font-weight:850;
}
.premium-kpi b{
  display:block;
  margin-top:5px;
  font-size:36px;
  line-height:1;
  letter-spacing:-.04em;
}
.premium-kpi.red b{color:#e11d48;}
.premium-kpi.green b{color:#16a34a;}
.premium-kpi.blue b{color:#2563eb;}
.premium-kpi.orange b{color:#ea580c;}
.premium-kpi em{
  display:block;
  margin-top:4px;
  color:#667085;
  font-style:normal;
  font-weight:700;
}
.premium-dashboard-section,
.premium-backups-section{
  padding:22px 24px;
}
.premium-section-head{
  border-bottom:0;
}
.premium-section-head h2{
  font-size:26px;
}
.premium-section-head p{
  margin:6px 0 0;
  color:var(--muted);
  font-weight:700;
}
.premium-today-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:22px;
  align-items:stretch;
}
.premium-block{
  height:100%;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:#fff;
  box-shadow:0 10px 25px rgba(16,24,40,.04);
}
.premium-block.today{
  background:linear-gradient(180deg,#fff,#fffafa);
}
.premium-block.done{
  background:linear-gradient(180deg,#fbfffc,#fff);
}
.premium-block-head{
  margin-bottom:16px;
}
.premium-block-head h3{
  font-size:18px;
  display:flex;
  align-items:center;
  gap:8px;
}
.premium-block.today .premium-block-head h3{color:#e11d48;}
.premium-block.done .premium-block-head h3{color:#16a34a;}
.premium-block-head span{
  min-width:30px;
  height:30px;
  background:#f1f5f9;
  color:#111827;
}
.premium-block.today .premium-block-head span{background:#fee2e2;color:#e11d48;}
.premium-block.done .premium-block-head span{background:#dcfce7;color:#16a34a;}
.premium-task-list{
  display:grid;
  gap:10px;
}
.premium-task{
  margin:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:12px;
  border-radius:14px;
  background:#fff;
  border:1px solid #edf1f7;
  border-left:0;
  box-shadow:0 6px 16px rgba(16,24,40,.035);
  cursor:pointer;
}
.premium-task:hover{
  border-color:#fecdd3;
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(16,24,40,.06);
}
.premium-task.important{background:linear-gradient(90deg,#fff7ed,#fff);}
.premium-task.urgent{background:linear-gradient(90deg,#fff1f2,#fff);}
.premium-task .dash-task-main{
  min-width:0;
}
.premium-task .dash-task-main>span{
  background:#fff1f2;
  color:#e11d48;
}
.premium-task .dash-task-main b{
  font-size:15px;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.premium-task .dash-task-main small{
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:420px;
}
.premium-task-side{
  display:flex;
  align-items:center;
  gap:10px;
}
.premium-task-side em{
  display:inline-flex;
  align-items:center;
  border:1px solid #fecdd3;
  background:#fff1f2;
  color:#e11d48;
  font-style:normal;
  font-weight:900;
  border-radius:9px;
  padding:6px 9px;
  white-space:nowrap;
  font-size:12px;
}
.premium-task-actions{
  display:flex;
  align-items:center;
  gap:7px;
}
.premium-task-actions button{
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  padding:7px 10px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.premium-task-actions .done{
  color:#15803d;
  background:#f0fdf4;
  border-color:#bbf7d0;
}
.premium-task-actions .report{
  color:#475467;
  background:#f8fafc;
}
.premium-task-actions .mini-edit{
  color:#475467;
  box-shadow:none;
}
.premium-done-list{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.premium-done-list .done-card{
  min-height:72px;
  background:#fbfffc;
  border-color:#bbf7d0;
  box-shadow:none;
}
.premium-done-list .done-info b,
.premium-done-list .done-info small{
  max-width:330px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.premium-late-panel{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
  border:1px solid #fecaca;
  border-radius:16px;
  padding:14px 16px;
  background:linear-gradient(90deg,#fff1f2,#fff);
  color:#991b1b;
}
.premium-late-panel b{
  display:block;
  font-size:16px;
}
.premium-late-panel small{
  display:block;
  margin-top:3px;
  color:#b91c1c;
  font-weight:650;
}
.premium-upcoming{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-top:22px;
}
.upcoming-card,
.premium-activity-cta{
  min-height:92px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px 18px;
  background:#fff;
  display:flex;
  align-items:center;
  gap:16px;
  box-shadow:0 10px 24px rgba(16,24,40,.045);
}
.upcoming-card>span,
.premium-activity-cta>span{
  width:48px;
  height:48px;
  flex:0 0 48px;
  display:grid;
  place-items:center;
  border-radius:14px;
  font-size:26px;
  background:#f1f5f9;
}
.upcoming-card.blue>span{background:#eff6ff;color:#2563eb;}
.upcoming-card.orange>span{background:#fff7ed;color:#ea580c;}
.upcoming-card.purple>span{background:#f5f3ff;color:#7c3aed;}
.upcoming-card small{
  display:block;
  font-size:14px;
  font-weight:850;
  color:#475467;
}
.upcoming-card b{
  display:block;
  margin-top:3px;
  font-size:26px;
  line-height:1;
  letter-spacing:-.03em;
}
.upcoming-card em{
  display:block;
  margin-top:3px;
  color:#667085;
  font-style:normal;
  font-weight:700;
}
.upcoming-card strong,
.premium-activity-cta strong{
  margin-left:auto;
  font-size:26px;
  color:#101828;
}
.premium-activity-cta{
  border:1.5px solid var(--red);
  color:var(--red);
  font-size:16px;
  font-weight:950;
  justify-content:flex-start;
}
.premium-activity-cta>span{
  background:#fff1f2;
}
.premium-activity-cta b{
  line-height:1.2;
}
.dashboard-backups-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(230px,1fr));
  gap:18px;
}
.dashboard-backup-card{
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  background:#fff;
  box-shadow:0 10px 24px rgba(16,24,40,.045);
}
.dashboard-backup-card.ok{background:linear-gradient(180deg,#fff,#fbfffc);border-color:#c9f3d5;}
.dashboard-backup-card.warning,
.dashboard-backup-card.late,
.dashboard-backup-card.missed,
.dashboard-backup-card.unknown{background:linear-gradient(180deg,#fff,#fffaf2);border-color:#fed7aa;}
.dashboard-backup-card.error{background:linear-gradient(180deg,#fff,#fff5f5);border-color:#fecaca;}
.dash-backup-top{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.dash-backup-top>span{
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:#eff6ff;
  font-size:24px;
}
.dash-backup-top b{
  display:block;
  font-size:15px;
  line-height:1.2;
}
.dash-backup-top small{
  display:block;
  margin-top:5px;
  color:#667085;
  font-weight:700;
  line-height:1.25;
}
.dash-backup-top em{
  margin-left:auto;
  border-radius:999px;
  padding:5px 9px;
  background:#dcfce7;
  color:#15803d;
  font-size:12px;
  font-weight:950;
  font-style:normal;
  white-space:nowrap;
}
.dashboard-backup-card.warning .dash-backup-top em,
.dashboard-backup-card.late .dash-backup-top em,
.dashboard-backup-card.missed .dash-backup-top em,
.dashboard-backup-card.unknown .dash-backup-top em{background:#fff7ed;color:#c2410c;}
.dashboard-backup-card.error .dash-backup-top em{background:#fee2e2;color:#dc2626;}
.dash-backup-next{
  margin-top:16px;
  border:1px solid var(--line);
  background:#f8fafc;
  border-radius:13px;
  padding:12px;
}
.dashboard-backup-card.ok .dash-backup-next{background:#f0fdf4;border-color:#bbf7d0;}
.dashboard-backup-card.warning .dash-backup-next,
.dashboard-backup-card.late .dash-backup-next,
.dashboard-backup-card.missed .dash-backup-next,
.dashboard-backup-card.unknown .dash-backup-next{background:#fff7ed;border-color:#fed7aa;}
.dashboard-backup-card.error .dash-backup-next{background:#fff1f2;border-color:#fecaca;}
.dash-backup-next small{
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:850;
}
.dash-backup-next b{
  display:block;
  margin-top:5px;
  font-size:14px;
}
.dash-backup-next span{
  display:inline-block;
  margin-top:6px;
  color:#667085;
  font-weight:850;
  font-size:12px;
}
.dash-backup-foot{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-top:12px;
  color:#475467;
}
.dash-backup-foot strong{
  border-radius:999px;
  padding:4px 8px;
  background:#f1f5f9;
  font-size:12px;
}
@media(max-width:1500px){
  .premium-kpis,.dashboard-backups-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .premium-today-grid{grid-template-columns:1fr;}
}
@media(max-width:1050px){
  .premium-upcoming{grid-template-columns:1fr 1fr;}
  .premium-task{grid-template-columns:1fr;}
  .premium-task-side{justify-content:space-between;}
}
@media(max-width:760px){
  .premium-kpis,.premium-upcoming,.dashboard-backups-grid{grid-template-columns:1fr;}
  .premium-task-side,.premium-task-actions{align-items:stretch;flex-direction:column;}
  .premium-task-actions button{width:100%;}
}

/* =========================
   Z-Manager V4.3.12
   Dashboard fait aujourd'hui sans restauration + suppression activité
   ========================= */
.dashboard-done-card{
  justify-content:flex-start;
  min-height:68px;
}
.dashboard-done-card .done-info{
  width:100%;
}
.dashboard-done-card .done-info b,
.dashboard-done-card .done-info small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.danger{
  border:1px solid #fecaca;
  background:#fff1f2;
  color:#dc2626;
  border-radius:12px;
  padding:10px 12px;
  font-weight:950;
}
.danger:hover{
  background:#fee2e2;
}
.delete-edit{
  margin-top:9px;
}

/* =========================
   Z-Manager V4.3.14
   Tri automatique + historique rangé + suppression anciennes tâches
   ========================= */
.history-section .section-head{
  align-items:flex-start;
}
.history-section .section-head p{
  margin:5px 0 0;
}
.history-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.danger.tiny{
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}
.history-card{
  align-items:center;
}
.history-card > div:nth-child(2){
  min-width:0;
}
.history-card > div:nth-child(2) b,
.history-card > div:nth-child(2) small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media(max-width:820px){
  .history-section .section-head{
    flex-direction:column;
    align-items:stretch;
  }
  .history-actions{
    width:100%;
    justify-content:flex-start;
  }
}

/* =========================
   Z-Manager V4.4
   Clients Axonaut
   ========================= */
.clients-section .section-head p{
  margin:5px 0 0;
}
.clients-toolbar{
  display:flex;
  gap:10px;
  margin-bottom:16px;
}
.clients-toolbar input{
  flex:1;
  border:1px solid #d7dfe9;
  border-radius:14px;
  padding:12px 14px;
  background:#fff;
}
.clients-layout{
  display:grid;
  grid-template-columns:minmax(320px,460px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.clients-list{
  display:grid;
  gap:10px;
  max-height:70vh;
  overflow:auto;
  padding-right:4px;
}
.client-card{
  border:1px solid var(--line);
  border-left:5px solid #cbd5e1;
  border-radius:17px;
  padding:13px 14px;
  background:#fff;
  display:grid;
  gap:8px;
  cursor:pointer;
  transition:.15s ease transform,.15s ease box-shadow,.15s ease border-color;
}
.client-card:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(16,24,40,.07);
}
.client-card.selected{
  border-color:#bfdbfe;
  border-left-color:#2563eb;
  background:#f8fbff;
  box-shadow:0 0 0 2px rgba(37,99,235,.08);
}
.client-card b{
  display:block;
  color:#101828;
  font-size:15px;
  line-height:1.25;
}
.client-card small,
.client-card em{
  display:block;
  color:var(--muted);
  font-style:normal;
  font-size:12px;
  font-weight:750;
}
.client-contact{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.client-contact span{
  color:#334155;
  font-size:12px;
  font-weight:800;
}
.client-detail{
  min-height:420px;
}
.empty-client{
  display:grid;
  place-content:center;
  text-align:center;
}
.client-detail-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}
.client-detail-head h2{
  margin:0 0 4px;
  font-size:26px;
  letter-spacing:-.03em;
}
.client-detail-head span{
  color:var(--muted);
  font-weight:800;
}
.client-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.client-fields div{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
}
.client-fields small{
  display:block;
  color:var(--muted);
  font-weight:850;
  font-size:12px;
}
.client-fields b{
  display:block;
  margin-top:3px;
  word-break:break-word;
}
.client-tasks{
  display:grid;
  gap:8px;
}
.client-tasks div{
  border:1px solid var(--line);
  border-radius:13px;
  padding:10px 12px;
  background:#fff;
}
.client-tasks b{
  display:block;
}
.client-tasks small{
  display:block;
  color:var(--muted);
  margin-top:3px;
}
@media(max-width:1050px){
  .clients-layout{
    grid-template-columns:1fr;
  }
  .clients-list{
    max-height:none;
  }
}
@media(max-width:720px){
  .clients-toolbar,.client-detail-head{
    flex-direction:column;
  }
  .client-fields{
    grid-template-columns:1fr;
  }
}

/* =========================
   Z-Manager V4.4.2
   Finitions Clients : suivi operationnel, pas facturation
   ========================= */
.premium-clients .section-head h2{
  margin-bottom:4px;
}
.premium-clients .section-head p{
  max-width:780px;
  line-height:1.35;
}
.client-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.client-card-chevron{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#f1f5f9;
  color:#64748b;
  font-size:24px;
  line-height:1;
  font-weight:800;
}
.client-card.selected .client-card-chevron{
  background:#dbeafe;
  color:#1d4ed8;
}
.client-card-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.client-badge{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  border-radius:999px;
  padding:4px 8px;
  background:#f1f5f9;
  color:#475569;
  font-size:11px;
  font-weight:900;
  line-height:1;
}
.client-badge.mairie{background:#fee2e2;color:#b91c1c;}
.client-badge.entreprise{background:#dbeafe;color:#1d4ed8;}
.client-badge.particulier{background:#dcfce7;color:#15803d;}
.client-badge.association{background:#fef3c7;color:#b45309;}
.client-badge.source{background:#eef2ff;color:#4338ca;}
.client-badge.active{background:#ecfdf3;color:#047857;}
.client-contact.compact{
  padding-top:2px;
}
.premium-client-detail{
  display:grid;
  gap:16px;
}
.client-detail-head.premium{
  margin-bottom:0;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.detail-badges{
  margin-bottom:10px;
}
.client-actions-row{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  align-items:center;
}
.client-link{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.premium-fields{
  margin-bottom:0;
}
.premium-fields a{
  color:#1d4ed8;
  text-decoration:none;
}
.premium-fields a:hover{
  text-decoration:underline;
}
.client-note{
  border:1px solid var(--line);
  border-radius:16px;
  background:#fffdf7;
  padding:13px 14px;
}
.client-note b{
  display:block;
  margin-bottom:5px;
}
.client-note p{
  margin:0;
  color:#475569;
  line-height:1.4;
}
.client-operational-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.client-task-block{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  padding:14px;
}
.client-task-block.todo{background:linear-gradient(180deg,#f8fafc,#fff);}
.client-task-block.done{background:linear-gradient(180deg,#f0fdf4,#fff);border-color:#d8f3df;}
.client-task-block.history{background:linear-gradient(180deg,#fff,#fbfdff);}
.client-task-block.backups{background:linear-gradient(180deg,#f8fbff,#fff);}
.client-subhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.client-subhead h3{
  margin:0;
  font-size:17px;
  letter-spacing:-.02em;
}
.client-subhead span{
  min-width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-size:12px;
  font-weight:950;
}
.client-task-block.todo .client-subhead span{background:#2563eb;}
.client-task-block.done .client-subhead span{background:#16a34a;}
.client-task-block.history .client-subhead span{background:#64748b;}
.client-task-block.backups .client-subhead span{background:#0f172a;}
.client-task-row{
  width:100%;
  border:1px solid var(--line);
  border-left:5px solid #94a3b8;
  border-radius:14px;
  background:#fff;
  padding:10px 11px;
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-bottom:8px;
  text-align:left;
  cursor:pointer;
}
.client-task-row:hover{
  border-color:#bfdbfe;
  box-shadow:0 8px 18px rgba(37,99,235,.07);
}
.client-task-row.important{border-left-color:#f59e0b;}
.client-task-row.urgent{border-left-color:#ef4444;}
.client-task-row.done{opacity:.88;}
.client-task-icon{
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  flex:0 0 27px;
  border-radius:9px;
  background:#f1f5f9;
}
.client-task-body{
  min-width:0;
}
.client-task-body b{
  display:block;
  color:#0f172a;
  font-size:13px;
  line-height:1.25;
}
.client-task-body small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-weight:750;
}
.client-backup-list{
  display:grid;
  gap:8px;
}
.client-backup-list div{
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  padding:10px 12px;
}
.client-backup-list b{
  display:block;
  color:#0f172a;
  font-size:13px;
}
.client-backup-list small{
  display:block;
  color:var(--muted);
  margin-top:3px;
  font-weight:750;
}
@media(max-width:1180px){
  .client-operational-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:720px){
  .client-actions-row{
    flex-direction:column;
    align-items:stretch;
  }
  .client-actions-row .ghost,
  .client-actions-row .primary{
    width:100%;
  }
}

/* =========================
   Z-Manager V4.4.3
   Clients : type corrigible manuellement
   ========================= */
.client-type-control{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f8fafc;
  padding:12px 14px;
  margin:14px 0;
}
.client-type-control label{
  font-weight:900;
  color:#344054;
}
.client-type-control select{
  border:1px solid #d7dfe9;
  border-radius:12px;
  background:#fff;
  padding:9px 12px;
  font-weight:850;
}
.client-type-control small{
  flex-basis:100%;
  color:var(--muted);
  font-weight:700;
}

/* =========================
   Z-Manager V4.4.4
   Clients : filtres par type
   ========================= */
.client-filter-bar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 16px;
}
.client-filter{
  border:1px solid var(--line);
  background:#fff;
  color:#475569;
  border-radius:999px;
  padding:8px 10px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-weight:900;
  transition:.15s ease background,.15s ease color,.15s ease border-color,.15s ease box-shadow;
}
.client-filter b{
  min-width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#f1f5f9;
  color:#334155;
  font-size:12px;
}
.client-filter:hover{
  border-color:#cbd5e1;
  background:#f8fafc;
}
.client-filter.active{
  border-color:#fecdd3;
  background:linear-gradient(135deg,var(--red),var(--red2));
  color:#fff;
  box-shadow:0 10px 22px rgba(233,30,47,.15);
}
.client-filter.active b{
  background:rgba(255,255,255,.22);
  color:#fff;
}
.client-filter.reset{
  margin-left:auto;
  background:#f8fafc;
  color:#64748b;
}
@media(max-width:720px){
  .client-filter-bar{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .client-filter{
    justify-content:space-between;
  }
  .client-filter.reset{
    margin-left:0;
    grid-column:1/-1;
    justify-content:center;
  }
}

/* =========================
   Z-Manager V4.4.6
   Clients : modifications clients : push Axonaut + protection synchro locale
   ========================= */
.secondary-actions{
  margin-top:-4px;
  margin-bottom:12px;
}
.client-edit-panel form{
  display:grid;
  gap:2px;
}
.client-edit-panel .row{
  margin-top:4px;
}
.sync-create-note{
  border:1px solid #bbf7d0;
  background:#f0fdf4;
  color:#166534;
  border-radius:14px;
  padding:11px 13px;
  font-weight:850;
  margin:4px 0 10px;
}
.sync-warning{
  margin:-6px 0 10px;
  font-size:13px;
}
.sync-check{
  border:1px solid #fed7aa;
  background:#fff7ed;
  border-radius:14px;
  padding:10px 12px;
  margin:4px 0 10px;
}
.client-sync{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  font-weight:950;
  background:#f1f5f9;
  color:#334155;
}
.client-sync.synced{
  background:#dcfce7;
  color:#15803d;
}
.client-sync.local{
  background:#fff7ed;
  color:#c2410c;
}
.client-sync.error{
  background:#fee2e2;
  color:#b91c1c;
}
.clients-toolbar .primary{
  white-space:nowrap;
}
@media(max-width:720px){
  .clients-toolbar{
    grid-template-columns:1fr;
  }
  .clients-toolbar .primary,
  .clients-toolbar .ghost{
    width:100%;
  }
}

/* =========================
   Z-Manager V4.5.4
   Google Calendar
   ========================= */
.activity-actions .calendar,
.calendar.full{
  border:0;
  border-radius:999px;
  padding:7px 10px;
  background:#eef2ff;
  color:#3730a3;
  font-weight:950;
  cursor:pointer;
}
.activity-actions .calendar.synced,
.calendar.full.synced{
  background:#dcfce7;
  color:#166534;
}
.calendar.full{
  width:100%;
  border-radius:14px;
  padding:10px 12px;
  margin-top:8px;
}
.calendar-link{
  display:inline-flex;
  justify-content:center;
  width:100%;
  margin-top:8px;
  text-decoration:none;
}
.calendar-hint{
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:16px;
  padding:12px;
  margin:10px 0;
  font-size:13px;
  color:#64748b;
}
.calendar-hint.ready{
  border-color:#c7d2fe;
  background:#eef2ff;
  color:#312e81;
}
.calendar-hint.ready b,
.calendar-hint.ready span{
  display:block;
  margin-bottom:4px;
}
.gcal-status{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
  font-weight:950;
  background:#f1f5f9;
  color:#475569;
  margin-bottom:10px;
}
.gcal-status.connected{
  background:#dcfce7;
  color:#166534;
}
.gcal-status.disconnected{
  background:#f8fafc;
  color:#64748b;
}
.mini-list{
  display:grid;
  gap:8px;
  margin-top:10px;
}
.calendar-choice{
  text-align:left;
  border:1px solid #e2e8f0;
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
}
.calendar-choice b,
.calendar-choice small{
  display:block;
}
.calendar-choice small{
  color:#64748b;
  margin-top:2px;
}

/* =========================
   Z-Manager V4.5.4
   Google Tasks
   ========================= */
.activity-actions .google-task,
.google-task.full{
  border:0;
  border-radius:999px;
  padding:7px 10px;
  background:#fef3c7;
  color:#92400e;
  font-weight:950;
  cursor:pointer;
}
.activity-actions .google-task.synced,
.google-task.full.synced{
  background:#dcfce7;
  color:#166534;
}
.google-task.full{
  width:100%;
  border-radius:14px;
  padding:10px 12px;
  margin-top:8px;
}

/* =========================
   Z-Manager V4.5.4
   Onglet Agenda Google
   ========================= */
.agenda-section .section-head{align-items:flex-start}
.agenda-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:14px 0 18px;
}
.agenda-toolbar label{
  display:flex;
  align-items:center;
  gap:8px;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}
.agenda-toolbar select{
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:9px 10px;
  background:#fff;
  font-weight:800;
  color:#0f172a;
}
.agenda-list{
  display:grid;
  gap:16px;
}
.agenda-day{
  border:1px solid #e2e8f0;
  background:#fff;
  border-radius:20px;
  padding:14px;
  box-shadow:0 12px 34px rgba(15,23,42,.06);
}
.agenda-day h3{
  margin:0 0 12px;
  font-size:15px;
  color:#0f172a;
  text-transform:capitalize;
}
.agenda-event{
  display:grid;
  grid-template-columns:130px 1fr;
  gap:14px;
  border-top:1px solid #f1f5f9;
  padding:12px 0;
}
.agenda-event:first-of-type{border-top:0;padding-top:0}
.agenda-event.cancelled{opacity:.55}
.agenda-time{
  border-radius:16px;
  background:#eef2ff;
  color:#312e81;
  padding:10px;
  align-self:start;
}
.agenda-time b,
.agenda-time small{display:block}
.agenda-time b{font-size:13px;font-weight:950}
.agenda-time small{font-size:11px;margin-top:3px;color:#64748b;font-weight:800}
.agenda-body{min-width:0}
.agenda-title{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.agenda-title b{font-size:15px;color:#0f172a}
.agenda-title a{
  white-space:nowrap;
  font-size:12px;
  font-weight:950;
  color:#2563eb;
  text-decoration:none;
}
.agenda-location{display:block;color:#475569;margin-top:4px;font-weight:800}
.agenda-body p{
  margin:8px 0 0;
  color:#64748b;
  font-size:13px;
  line-height:1.45;
  white-space:pre-wrap;
}
@media(max-width:720px){
  .agenda-event{grid-template-columns:1fr;gap:8px}
  .agenda-time{display:inline-block;width:max-content;max-width:100%}
}

/* =========================
   Z-Manager V4.5.4
   Activité premium : vue compacte façon cockpit
   ========================= */
:root{
  --z-blue:#2563eb;
  --z-blue2:#60a5fa;
  --z-navy:#101b2d;
  --z-navy2:#14263a;
  --z-soft:#f7faff;
}
.sidebar{
  background:linear-gradient(180deg,#111c2f 0%,#0e1a2a 100%) !important;
  color:#eaf2ff;
  border-right:0 !important;
  box-shadow:10px 0 35px rgba(15,23,42,.12);
}
.brand{color:#fff}.brand span{color:#60a5fa;text-shadow:0 8px 20px rgba(96,165,250,.4)}
.navbtn{color:#c8d4e6 !important}.navbtn:hover{background:rgba(255,255,255,.07) !important;color:#fff !important}.navbtn.active{background:linear-gradient(135deg,#1d4ed8,#3b82f6) !important;color:#fff !important;box-shadow:0 12px 24px rgba(37,99,235,.25) !important}.side-card{background:rgba(255,255,255,.07) !important;border-color:rgba(255,255,255,.11) !important;color:#eaf2ff}.side-card small{color:#a8b8cf}.logout{background:rgba(255,255,255,.09) !important;border-color:rgba(255,255,255,.15) !important;color:#fff !important}
body{background:#f4f7fb}.topbar{border-bottom:1px solid #e7edf5;padding-bottom:18px}.topbar h1{font-size:30px}.user{box-shadow:0 10px 30px rgba(15,23,42,.06)}
.activity-premium-page{display:grid;gap:16px}.activity-hero{background:#fff;border:1px solid #e3eaf4;border-radius:24px;padding:18px 20px;box-shadow:0 14px 40px rgba(15,23,42,.06);display:flex;align-items:center;justify-content:space-between;gap:18px}.activity-hero>div:first-child{display:flex;align-items:center;gap:14px}.activity-hero-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:16px;background:#eff6ff;border:1px solid #dbeafe;font-size:24px}.activity-hero h2{font-size:28px;letter-spacing:-.04em;margin:0;color:#0f172a}.activity-hero p{margin:4px 0 0;color:#64748b;font-weight:750}.activity-hero-stats{display:flex;gap:10px;flex-wrap:wrap}.activity-hero-stats span{display:flex;align-items:center;gap:6px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:8px 12px;color:#475569;font-weight:850}.activity-hero-stats b{color:#0f172a}
.activity-toolbar{display:grid;grid-template-columns:auto auto minmax(260px,1fr);align-items:center;gap:14px;background:#fff;border:1px solid #e3eaf4;border-radius:22px;padding:14px;box-shadow:0 12px 34px rgba(15,23,42,.05)}.activity-new-btn{background:linear-gradient(135deg,#1d4ed8,#3b82f6) !important;box-shadow:0 12px 25px rgba(37,99,235,.2) !important}.activity-range-group{display:flex;gap:8px}.activity-range{display:flex;align-items:center;gap:8px;border:1px solid #dbe3ef;background:#fff;color:#334155;border-radius:13px;padding:10px 13px;font-weight:900}.activity-range b{font-size:12px;background:#eef2f7;border-radius:999px;padding:3px 8px}.activity-range.active{background:#1d4ed8;color:#fff;border-color:#1d4ed8}.activity-range.active b{background:rgba(255,255,255,.2);color:#fff}.activity-search{display:flex;align-items:center;gap:9px;border:1px solid #dbe3ef;border-radius:15px;background:#f8fafc;padding:0 12px;min-height:44px}.activity-search input{border:0 !important;background:transparent !important;outline:0;width:100%;padding:10px 4px !important;color:#0f172a}.activity-search span{opacity:.7}
.activity-premium-layout{display:grid;grid-template-columns:minmax(0,1fr) 365px;gap:16px;align-items:start}.activity-stream{display:grid;gap:14px}.activity-stream-section,.activity-mini-card{background:#fff;border:1px solid #e3eaf4;border-radius:22px;box-shadow:0 12px 34px rgba(15,23,42,.05);overflow:hidden}.activity-stream-title{height:52px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eef2f7}.activity-stream-title>div{display:flex;align-items:center;gap:10px}.activity-stream-title span{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#f1f5f9}.activity-stream-title h3{margin:0;font-size:18px;letter-spacing:-.03em}.activity-stream-title b{background:#eef2f7;color:#334155;border-radius:999px;padding:4px 10px}.activity-stream-title.late span{background:#fee2e2}.activity-stream-title.today span{background:#ffedd5}.activity-stream-title.done span{background:#dcfce7}.activity-row-list{padding:8px 10px}.activity-row{display:grid;grid-template-columns:128px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:66px;padding:9px 8px;border-radius:16px;border-left:4px solid transparent;transition:.12s ease;cursor:pointer}.activity-row:hover{background:#f8fbff;transform:translateY(-1px)}.activity-row.selected{background:#eff6ff;border-left-color:#2563eb}.activity-row.urgent{border-left-color:#ef4444}.activity-row.important{border-left-color:#f59e0b}.activity-row.late-card{border-left-color:#ef4444;background:linear-gradient(90deg,#fff7f7,#fff)}.activity-row-left{display:flex;align-items:center;gap:10px}.activity-check{width:20px;height:20px;border:1px solid #d7e0eb;border-radius:7px;background:#fff;box-shadow:inset 0 0 0 2px #fff}.activity-datebox{min-width:84px;text-align:left}.activity-datebox b{display:block;font-size:17px;color:#1f2937;letter-spacing:-.03em}.activity-datebox small{display:block;color:#64748b;font-size:11px;font-weight:850;margin-top:2px}.activity-datebox.time b{color:#f97316}.activity-datebox.late b{color:#ef4444}.activity-datebox.late small{color:#ef4444}.activity-datebox.muted-box b{color:#94a3b8}.activity-row-main{min-width:0}.activity-row-head{display:flex;align-items:center;gap:10px;min-width:0}.activity-row h3{margin:0;font-size:16px;line-height:1.25;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.late-inline{border-radius:999px;background:#fee2e2;color:#b91c1c;font-size:11px;font-weight:900;padding:4px 7px;white-space:nowrap}.activity-row-sub{display:flex;gap:12px;flex-wrap:wrap;margin-top:4px;color:#64748b;font-size:13px;font-weight:700}.activity-row-sub span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px}.activity-row-pills{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:6px}.activity-pill{display:inline-flex;align-items:center;gap:5px;border-radius:8px;padding:4px 7px;font-size:12px;font-weight:850;background:#f1f5f9;color:#475569}.activity-pill.type.intervention{background:#eaf1ff;color:#1d4ed8}.activity-pill.type.call{background:#fff1f2;color:#be123c}.activity-pill.type.backup{background:#f3e8ff;color:#7e22ce}.activity-pill.type.order{background:#f1f5f9;color:#475569}.activity-pill.type.invoice{background:#ecfdf5;color:#047857}.activity-pill.type.meeting{background:#fef3c7;color:#92400e}.activity-pill.priority i{width:7px;height:7px;border-radius:999px;background:#94a3b8}.activity-pill.priority.important i{background:#f59e0b}.activity-pill.priority.urgent i{background:#ef4444}.activity-pill.sync{background:#eef6ff;color:#2563eb}.activity-row-actions{display:flex !important;align-items:center;gap:8px;margin:0 !important}.activity-row-actions button.icon{flex:0 0 auto !important;width:36px;height:36px;border:1px solid #dfe7f1;background:#fff;border-radius:12px;padding:0 !important;display:grid;place-items:center;font-size:15px;box-shadow:0 4px 10px rgba(15,23,42,.04)}.activity-row-actions button.done{color:#16a34a;background:#fff}.activity-row-actions button.report{color:#f97316;background:#fff}.activity-row-actions button.calendar{color:#2563eb;background:#fff}.activity-row-actions button.google-task{color:#16a34a;background:#fff}.activity-row-actions button.cancel{color:#ef4444;background:#fff}.activity-row-actions button.synced{box-shadow:inset 0 0 0 2px #bfdbfe}.activity-empty{margin:12px;padding:18px;border-radius:16px;background:#f8fafc;border:1px dashed #cbd5e1;color:#64748b;font-weight:800;text-align:center}.activity-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.activity-mini-card{min-height:260px}.activity-mini-list{padding:8px}.activity-row.compact{grid-template-columns:96px minmax(0,1fr) auto;min-height:58px;padding:8px}.activity-row.compact .activity-row-pills{display:none}.activity-row.compact .activity-row-sub{font-size:12px}.activity-row.compact .activity-row-actions .google-task,.activity-row.compact .activity-row-actions .cancel{display:none}.activity-row.compact h3{font-size:14px}.activity-done-row{display:grid;grid-template-columns:56px 1fr auto;align-items:center;gap:10px;padding:10px 8px;border-radius:14px}.activity-done-row:hover{background:#f8fafc}.activity-done-row>span{color:#16a34a;font-weight:950}.activity-done-row b{text-decoration:line-through;color:#475569}.activity-done-row small{display:block;color:#64748b;margin-top:2px}.activity-mini-foot{text-align:center;color:#475569;font-weight:850;padding:8px 0 12px}.activity-more{margin:8px 12px 12px;border:1px solid #dbe3ef;background:#fff;border-radius:12px;padding:9px 12px;font-weight:900;color:#2563eb}.activity-form{position:sticky;top:18px;border-radius:22px !important;box-shadow:0 12px 34px rgba(15,23,42,.06) !important}.activity-form h2{font-size:20px;letter-spacing:-.03em}.activity-form .field{margin-bottom:11px}.activity-form .field input,.activity-form .field textarea,.activity-form .field select{border-radius:13px !important;background:#fbfdff !important}.activity-form .primary{background:linear-gradient(135deg,#1d4ed8,#3b82f6) !important;box-shadow:0 12px 25px rgba(37,99,235,.18) !important}.history-section{margin-top:18px}
@media(max-width:1450px){.activity-premium-layout{grid-template-columns:1fr}.activity-form{position:relative;top:auto}.activity-mini-grid{grid-template-columns:1fr 1fr}.activity-toolbar{grid-template-columns:1fr}.activity-range-group{overflow:auto}.activity-row{grid-template-columns:112px minmax(0,1fr) auto}}
@media(max-width:850px){.activity-hero{align-items:flex-start;flex-direction:column}.activity-hero-stats{width:100%}.activity-mini-grid{grid-template-columns:1fr}.activity-row,.activity-row.compact{grid-template-columns:1fr}.activity-row-left{justify-content:space-between}.activity-row-actions{justify-content:flex-start}.activity-toolbar{padding:10px}.activity-range-group{display:grid;grid-template-columns:1fr 1fr 1fr}.activity-range{justify-content:center;padding:9px}.activity-search{min-width:0}}
