:root{--crm-bg:#f1f2f3;--crm-panel:#fff;--crm-ink:#243240;--crm-muted:#72808e;--crm-line:#e7eaee;--crm-head:#eaf1fb;--crm-accent:#61ded2;--crm-accent-dark:#20b9ad;--crm-coral:#ff7d72;--crm-sidebar:220px}*{box-sizing:border-box}html,body{min-height:100%;background:var(--crm-bg);color:var(--crm-ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px}.crm-shell{display:flex;min-height:100vh}.crm-sidebar{width:var(--crm-sidebar);background:#fff;position:fixed;inset:0 auto 0 0;border-right:1px solid #eef0f2;z-index:1040;transition:.2s}.crm-main{min-width:0;margin-left:var(--crm-sidebar);width:calc(100% - var(--crm-sidebar));transition:.2s}.crm-brand{height:74px;display:flex;align-items:center;gap:10px;padding:0 20px;font-size:24px;font-weight:800;color:#a2a2a2}.crm-brand-mark{width:38px;height:38px;border:3px solid #17d8c9;border-radius:12px 12px 18px 18px;transform:rotate(45deg);display:inline-block;position:relative}.crm-brand-mark:after{content:"";position:absolute;inset:5px;border:2px solid #17d8c9;border-radius:8px}.crm-brand-text{letter-spacing:-1px}.crm-new{display:flex;margin:12px 18px 18px;height:44px;border-radius:24px;background:linear-gradient(90deg,#63e6cd,#58d8e1);color:#fff;text-decoration:none;align-items:center;justify-content:center;font-weight:700}.crm-nav{padding:5px 10px 24px}.crm-nav-title{padding:12px 16px;color:#777;font-size:13px;border-bottom:1px solid var(--crm-line);margin-bottom:12px}.crm-nav a{display:flex;align-items:center;gap:12px;color:#47515c;text-decoration:none;padding:12px 15px;margin:3px 0;border-radius:25px}.crm-nav a:hover,.crm-nav a.active{background:#f0f0f0}.crm-nav a.active{color:var(--crm-coral)}.crm-nav i{font-size:18px;width:22px;text-align:center}.crm-topbar{height:50px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 20px;position:sticky;top:0;z-index:1030;border-bottom:1px solid #eceff2}.crm-top-left,.crm-top-right{display:flex;align-items:center;gap:20px}.crm-page-label{border-bottom:1px solid #444;padding:12px 6px 6px;color:#222}.crm-content{padding:38px 24px}.toolbar{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-bottom:10px}.toolbar-actions{display:flex;gap:10px;align-items:center}.btn-crm{border:1px solid #d6e2ee;background:#fff;color:#3d4e5f;border-radius:11px;padding:.6rem .9rem}.btn-crm:hover{background:#f8fbff}.btn-accent{background:var(--crm-accent);border-color:var(--crm-accent);color:#fff}.btn-accent:hover{background:var(--crm-accent-dark);border-color:var(--crm-accent-dark);color:#fff}.crm-card{background:#fff;border:0;border-radius:20px;box-shadow:0 0 0 1px rgba(0,0,0,.015);overflow:hidden}.crm-card-title{height:50px;display:flex;align-items:center;gap:10px;padding:0 18px;font-size:18px;border-bottom:1px solid var(--crm-line)}.crm-card-title .plus{color:#0d6efd}.crm-table-wrap{overflow:auto;padding:16px 10px 10px}.crm-table{min-width:100%;margin:0}.crm-table thead th{background:var(--crm-head);color:#36506c;font-weight:500;border-color:#dfe7f1;white-space:nowrap;padding:.72rem .85rem}.crm-table tbody td{padding:.75rem .85rem;border-color:#edf0f2;vertical-align:middle;white-space:nowrap}.crm-table tbody tr:nth-child(even){background:#fcfcfc}.crm-table tbody tr:hover{background:#eef5ff}.crm-table tfoot td{color:#858585;background:#fff}.table-action{border:1px solid #d8e4f0;background:#fff;border-radius:12px;padding:.35rem .7rem;color:#41566d;text-decoration:none;display:inline-flex;gap:5px;align-items:center}.status-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:6px;padding:4px 9px;line-height:1.2;color:#111;min-width:76px}.smart-view{background:#fff;border-radius:18px;padding:18px 16px;position:sticky;top:74px}.smart-view h6{color:#999}.smart-item{display:flex;justify-content:space-between;align-items:center;padding:5px 0;color:#868686;text-decoration:none}.smart-item:hover{color:#222}.smart-count{font-variant-numeric:tabular-nums}.filter-box{background:#fff;border-radius:18px;padding:18px;margin-bottom:15px;border:1px solid #edf0f2}.metric-card{background:#fff;border-radius:18px;padding:20px;height:100%;border:1px solid #edf0f2}.metric-label{color:#798693;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.metric-value{font-size:30px;font-weight:700;margin-top:6px}.metric-sub{font-size:12px;color:#98a1aa}.lead-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.lead-contact{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.info-box{background:#f8fafc;border:1px solid #eef2f6;border-radius:12px;padding:12px}.info-box small{display:block;color:#8a96a2;margin-bottom:4px}.timeline{position:relative;padding-left:20px}.timeline:before{content:"";position:absolute;left:5px;top:5px;bottom:5px;width:2px;background:#e7eaee}.timeline-item{position:relative;padding:0 0 18px 13px}.timeline-item:before{content:"";position:absolute;left:-20px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--crm-accent-dark)}.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px}.setting-tile{display:block;background:#fff;border:1px solid #e7ebef;border-radius:18px;padding:20px;color:#334150;text-decoration:none}.setting-tile:hover{border-color:#b8d5d1;transform:translateY(-1px)}.setting-tile i{font-size:26px;color:var(--crm-accent-dark)}.pagination{margin:16px 0}.pagination li a,.pagination li span{border:1px solid #e0e4e8;padding:7px 10px;text-decoration:none;color:#4e5a66;background:#fff}.pagination li.active a,.pagination li.active span{background:#292929;color:#fff}.form-control,.form-select{border-color:#dfe4e9;border-radius:10px}.form-control:focus,.form-select:focus{border-color:#89ddd5;box-shadow:0 0 0 .2rem rgba(97,222,210,.16)}.alert{border-radius:12px}.scroll-shadow{box-shadow:inset -15px 0 15px -18px #333}.mobile-toggle{display:none}.sidebar-collapsed .crm-sidebar{width:76px}.sidebar-collapsed .crm-main{margin-left:76px;width:calc(100% - 76px)}.sidebar-collapsed .crm-brand-text,.sidebar-collapsed .crm-nav span,.sidebar-collapsed .crm-nav-title,.sidebar-collapsed .crm-new span{display:none}.sidebar-collapsed .crm-nav a{justify-content:center}.sidebar-collapsed .crm-new{width:44px;margin-left:6px}@media(max-width:900px){.crm-sidebar{transform:translateX(-100%);width:230px}.crm-main{margin-left:0;width:100%}.sidebar-open .crm-sidebar{transform:translateX(0)}.mobile-toggle{display:inline-flex}.crm-content{padding:20px 12px}.lead-contact{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.toolbar-actions{flex-wrap:wrap}.crm-top-left{gap:8px}.hide-mobile{display:none}}@media print{.crm-sidebar,.crm-topbar,.toolbar-actions,.btn{display:none!important}.crm-main{margin:0;width:100%}.crm-content{padding:0}.crm-card{box-shadow:none}}


/* ===== Conversium V4 premium theme ===== */
:root{
  --crm-bg:#f5f5f3;
  --crm-panel:#ffffff;
  --crm-ink:#161616;
  --crm-muted:#737373;
  --crm-line:#e8e8e5;
  --crm-soft:#fbfbfa;
  --crm-dark:#0f1013;
  --crm-dark-2:#17181d;
  --crm-accent:#262626;
  --crm-success:#1d8f56;
  --crm-sidebar:260px;
  --radius:20px;
  --shadow:0 6px 20px rgba(0,0,0,.04);
}
*{box-sizing:border-box}
html,body{min-height:100%;background:var(--crm-bg);color:var(--crm-ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px}
a{color:inherit}
.crm-shell{display:flex;min-height:100vh}
.crm-sidebar{width:var(--crm-sidebar);background:#fff;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--crm-line);z-index:1040;transition:.25s;display:flex;flex-direction:column}
.crm-main{min-width:0;margin-left:var(--crm-sidebar);width:calc(100% - var(--crm-sidebar));transition:.25s}
.crm-brand{height:72px;background:linear-gradient(180deg,var(--crm-dark),#131417);display:flex;align-items:center;padding:0 22px;border-bottom:1px solid rgba(255,255,255,.06)}
.crm-brand-logo{max-width:165px;height:auto;display:block}
.crm-nav{padding:18px 14px;display:flex;flex-direction:column;gap:6px}
.crm-nav a{display:flex;align-items:center;gap:12px;color:#282828;text-decoration:none;padding:14px 16px;border-radius:14px;font-weight:500}
.crm-nav a:hover{background:#f5f5f2}
.crm-nav a.active{background:var(--crm-dark);color:#fff;box-shadow:var(--shadow)}
.crm-nav i{font-size:18px;width:22px;text-align:center}
.crm-nav-divider{height:1px;background:var(--crm-line);margin:10px 4px}
.crm-sidebar-footer{margin-top:auto;padding:26px 22px 24px;color:#8d8d8d;font-size:11px;letter-spacing:.18em;text-transform:uppercase;line-height:1.6}
.crm-footer-line{display:block;width:28px;height:1px;background:#7f7f7f;opacity:.8;margin-bottom:14px}
.crm-topbar{height:70px;background:linear-gradient(90deg,var(--crm-dark),var(--crm-dark-2));display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:1030;border-bottom:1px solid rgba(255,255,255,.05)}
.crm-top-left,.crm-top-right{display:flex;align-items:center;gap:18px}
.crm-search-wrap{width:min(540px,48vw);background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:0 14px;display:flex;align-items:center;gap:10px;color:#c9c9c9}
.crm-search-wrap i{font-size:16px}
.crm-search{border:0;background:transparent;outline:none;color:#fff;height:40px;width:100%}
.crm-search::placeholder{color:#a7a7a7}
.crm-icon-link{color:#fff;font-size:18px;position:relative}
.crm-userbox{display:flex;align-items:center;gap:10px;color:#fff}
.crm-avatar{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#1f1f1f;font-weight:700}
.crm-user-meta{display:flex;flex-direction:column;line-height:1.2}
.crm-user-meta strong{font-size:14px}
.crm-user-meta span{font-size:12px;color:#cfcfcf}
.crm-content{padding:30px 28px 42px}
.crm-page-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.crm-page-head h1{margin:0;font-size:28px;font-weight:800;letter-spacing:-.03em}
.crm-page-head p{margin:4px 0 0;color:#737373;font-size:18px;font-weight:400}
.crm-page-actions{display:flex;align-items:center;gap:18px}
.crm-date{color:#616161;font-weight:500}
.wave{font-size:24px}
.crm-card{background:#fff;border:1px solid rgba(15,16,19,.05);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.crm-card-header-flex{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 0}
.crm-card-header-flex h3{margin:0;font-size:17px;font-weight:800;letter-spacing:-.02em}
.metric-card{background:#fff;border-radius:var(--radius);padding:20px;border:1px solid rgba(0,0,0,.06);height:100%;box-shadow:var(--shadow)}
.metric-card.v4{padding:18px 20px 16px}
.metric-icon{width:48px;height:48px;border-radius:12px;background:#f4f4f2;display:flex;align-items:center;justify-content:center;font-size:24px;margin-bottom:14px}
.metric-label.plain{color:#292929;font-size:16px;font-weight:600;text-transform:none;letter-spacing:0;margin-bottom:4px}
.metric-value{font-size:28px;font-weight:800;line-height:1.1}
.metric-trend{margin-top:10px;color:#8a8a8a;font-size:13px}
.metric-trend span{color:var(--crm-success);font-weight:700;margin-right:6px}
.crm-panel-lg,.crm-panel-side{padding-bottom:18px}
.crm-chart-mock{position:relative;padding:16px 20px 0}
.crm-chart-mock svg{width:100%;height:240px;display:block;position:relative;z-index:2}
.crm-chart-mock .chart-grid{position:absolute;inset:16px 20px 34px;background:linear-gradient(to bottom,transparent 24%,#f0f0ec 25%,transparent 26%,transparent 49%,#f0f0ec 50%,transparent 51%,transparent 74%,#f0f0ec 75%,transparent 76%),linear-gradient(to right,transparent 19%,#f0f0ec 20%,transparent 21%,transparent 39%,#f0f0ec 40%,transparent 41%,transparent 59%,#f0f0ec 60%,transparent 61%,transparent 79%,#f0f0ec 80%,transparent 81%);z-index:1;border-radius:14px}
.crm-chart-mock path{fill:none!important;stroke-linecap:round;stroke-linejoin:round;stroke-width:4}
.crm-chart-mock .line-main{stroke:#111}
.crm-chart-mock .line-mid{stroke:#707070}
.crm-chart-mock .line-light{stroke:#bbbbbb}
.crm-chart-legend{display:flex;gap:18px;flex-wrap:wrap;padding:6px 20px 0;color:#6e6e6e;font-size:13px}
.dot{width:10px;height:10px;border-radius:50%;display:inline-block;margin-right:6px;vertical-align:middle}
.dot.dark{background:#111}.dot.gray{background:#6d6d6d}.dot.light{background:#c2c2c2}
.campaign-mini-list{padding:16px 20px 0;display:grid;gap:12px}
.campaign-mini-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid var(--crm-line);padding-top:12px}
.campaign-mini-item small{display:block;color:#7c7c7c;margin-top:3px}
.campaign-pill{background:#111;color:#fff;border-radius:999px;padding:8px 12px;font-weight:700;min-width:58px;text-align:center}
.agenda-list,.task-list{padding:12px 20px 0}
.agenda-item{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-top:1px solid var(--crm-line)}
.agenda-item:first-child,.task-item:first-child{border-top:0}
.agenda-item .time{width:52px;font-weight:800;display:inline-block;color:#121212}
.agenda-item small{display:block;color:#7b7b7b;margin-top:2px}
.task-item{display:flex;gap:10px;align-items:center;padding:14px 0;border-top:1px solid var(--crm-line);color:#333}
.task-item input{accent-color:#111}
.crm-table-wrap{overflow:auto;padding:16px 20px 22px}
.crm-table{min-width:100%;margin:0}
.crm-table thead th{background:#f4f4f2;color:#4f4f4f;font-weight:600;border-color:#ebeae6;white-space:nowrap;padding:.85rem .95rem}
.crm-table tbody td{padding:.85rem .95rem;border-color:#f0f0ec;vertical-align:middle;white-space:nowrap}
.crm-table tbody tr:hover{background:#fafaf8}
.lead-mini-ident{display:flex;align-items:center;gap:12px}
.lead-mini-avatar{width:34px;height:34px;border-radius:50%;background:#111;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}
.lead-mini-ident small{display:block;color:#8b8b8b}
.table-action{border:1px solid #ddddda;background:#fff;border-radius:12px;padding:.42rem .8rem;color:#202020;text-decoration:none;display:inline-flex;gap:6px;align-items:center}
.btn-dark{background:#111;border-color:#111;border-radius:12px}
.btn-dark:hover{background:#000;border-color:#000}
.btn-outline-light{border-color:rgba(255,255,255,.25)}
.btn-outline-light:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.38);color:#fff}
.form-control,.form-select{border-color:#dbdbd8;border-radius:12px;padding:.72rem .9rem}
.form-control:focus,.form-select:focus{border-color:#989898;box-shadow:0 0 0 .2rem rgba(17,17,17,.08)}
.alert{border-radius:14px}
.mobile-toggle{display:none}
.crm-login-body{background:linear-gradient(180deg,#0f1013,#17181d 38%,#efefec 38%,#efefec 100%)}
.crm-login-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.crm-login-card{width:min(460px,100%);background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:24px;box-shadow:0 20px 60px rgba(0,0,0,.18);padding:32px}
.crm-login-brand{background:linear-gradient(180deg,#0f1013,#17181d);border-radius:18px;padding:26px 20px;margin-bottom:24px}
.crm-login-logo{max-width:240px;width:100%;height:auto;display:block;margin:0 auto 14px}
.crm-login-brand p{color:#d4d4d4;margin:0;font-size:14px}
.crm-login-footer{margin-top:16px;color:#8c8c8c;text-align:center;font-size:12px}
.toolbar,.toolbar-actions,.smart-view,.filter-box,.metric-sub,.lead-head,.lead-contact,.info-box,.timeline,.settings-grid,.setting-tile,.scroll-shadow{ }
/* v5.8.1: desktop burger fully hides the menu to maximize the lead workspace. */
.sidebar-collapsed .crm-sidebar{width:var(--crm-sidebar);transform:translateX(-100%)}
.sidebar-collapsed .crm-main{margin-left:0;width:100%}
.sidebar-collapsed .crm-brand{padding:0 12px;justify-content:center}
.sidebar-collapsed .crm-brand-logo{max-width:44px}
.sidebar-collapsed .crm-nav span,.sidebar-collapsed .crm-sidebar-footer{display:none}
.sidebar-collapsed .crm-nav a{justify-content:center}
@media (max-width: 1100px){
  .crm-page-head{flex-direction:column;align-items:flex-start}
  .crm-page-actions{width:100%;justify-content:space-between}
}
@media(max-width:900px){
  .crm-sidebar{transform:translateX(-100%);width:230px}
  .crm-main{margin-left:0;width:100%}
  .sidebar-open .crm-sidebar{transform:translateX(0)}
  .mobile-toggle{display:inline-flex}
  .crm-content{padding:18px 12px 26px}
  .crm-topbar{padding:0 12px;height:64px}
  .crm-search-wrap{width:auto;min-width:0;flex:1}
  .crm-user-meta{display:none}
}
@media print{
  .crm-sidebar,.crm-topbar,.btn,.table-action{display:none!important}
  .crm-main{margin:0;width:100%}
  .crm-content{padding:0}
  .crm-card,.metric-card{box-shadow:none}
}

/* Final monochrome Conversium controls */
.btn-accent{background:#111!important;border-color:#111!important;color:#fff!important;border-radius:12px}.btn-accent:hover{background:#000!important;border-color:#000!important;color:#fff!important}
.btn-crm{border:1px solid #d9d9d6;background:#fff;color:#262626;border-radius:12px}.btn-crm:hover{background:#f4f4f1;border-color:#c9c9c5;color:#111}
.filter-box,.smart-view{border:1px solid #e8e8e5;background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.025)}
.setting-tile{border:1px solid #e8e8e5;color:#1d1d1d}.setting-tile i{color:#111}.setting-tile:hover{border-color:#bdbdb8;box-shadow:0 6px 18px rgba(0,0,0,.04)}
.crm-card-title{font-weight:700;color:#181818;background:#fff}.crm-card-title .plus{color:#111}
.pagination li.active a,.pagination li.active span{background:#111;border-color:#111;color:#fff}

/* ===== V4.1.2 table system =====
   Keep data readable instead of squeezing wide CRM tables into the viewport. */
.crm-table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding:0;
  background:#fff;
  border-top:1px solid #ecece8;
  scrollbar-width:thin;
  scrollbar-color:#b9b9b4 #f2f2ef;
  -webkit-overflow-scrolling:touch;
}
.crm-table-wrap::-webkit-scrollbar{height:11px}
.crm-table-wrap::-webkit-scrollbar-track{background:#f2f2ef;border-top:1px solid #e5e5e1}
.crm-table-wrap::-webkit-scrollbar-thumb{background:#b9b9b4;border:3px solid #f2f2ef;border-radius:999px}
.crm-table-wrap::-webkit-scrollbar-thumb:hover{background:#8f8f89}
.crm-table-wrap-wide{position:relative}

.crm-table{
  width:100%;
  min-width:980px;
  margin:0!important;
  border-collapse:separate;
  border-spacing:0;
  table-layout:auto;
  font-size:13px;
  color:#222;
}
.crm-table > :not(caption) > * > *{box-shadow:none!important}
.crm-table thead th{
  position:relative;
  background:#f3f3f1!important;
  color:#454545!important;
  font-size:12px;
  line-height:1.2;
  font-weight:700!important;
  letter-spacing:.01em;
  text-transform:none;
  white-space:nowrap;
  padding:12px 14px!important;
  border-top:0!important;
  border-right:1px solid #e8e8e4!important;
  border-bottom:1px solid #deded9!important;
  vertical-align:middle;
}
.crm-table thead th:first-child{border-left:0!important}
.crm-table thead th:last-child{border-right:0!important}
.crm-table tbody td{
  height:52px;
  padding:10px 14px!important;
  background:#fff;
  border-top:0!important;
  border-right:1px solid #f0f0ed!important;
  border-bottom:1px solid #ecece8!important;
  vertical-align:middle!important;
  white-space:nowrap;
  line-height:1.3;
}
.crm-table tbody td:last-child{border-right:0!important}
.crm-table tbody tr:nth-child(even) td{background:#fdfdfc}
.crm-table tbody tr:hover td{background:#f7f7f4!important}
.crm-table tbody tr.table-warning td{background:#fff8e8!important}
.crm-table tbody tr.table-warning:hover td{background:#fff3d4!important}
.crm-table tfoot td{
  padding:10px 14px!important;
  background:#fafaf8!important;
  color:#7d7d78!important;
  font-size:12px;
  font-weight:600;
  border-top:1px solid #e3e3df!important;
  border-bottom:0!important;
  white-space:nowrap;
}
.crm-table a:not(.table-action){color:#222;text-decoration:none}
.crm-table a:not(.table-action):hover{text-decoration:underline}
.crm-table strong{font-weight:700;color:#181818}
.crm-table input[type="checkbox"]{width:15px;height:15px;accent-color:#111;vertical-align:middle}

/* Wide lead list: horizontal scroll is intentional and always readable. */
.crm-leads-table{min-width:2240px}
.crm-leads-table th:nth-child(1),.crm-leads-table td:nth-child(1){width:42px;min-width:42px;text-align:center}
.crm-leads-table th:nth-child(2),.crm-leads-table td:nth-child(2){min-width:170px}
.crm-leads-table th:nth-child(3),.crm-leads-table td:nth-child(3){min-width:180px}
.crm-leads-table th:nth-child(4),.crm-leads-table td:nth-child(4){min-width:125px}
.crm-leads-table th:nth-child(5),.crm-leads-table td:nth-child(5){min-width:125px}
.crm-leads-table th:nth-child(6),.crm-leads-table td:nth-child(6){min-width:145px;font-variant-numeric:tabular-nums}
.crm-leads-table th:nth-child(7),.crm-leads-table td:nth-child(7){min-width:235px;max-width:300px;overflow:hidden;text-overflow:ellipsis}
.crm-leads-table th:nth-child(8),.crm-leads-table td:nth-child(8){min-width:150px}
.crm-leads-table th:nth-child(9),.crm-leads-table td:nth-child(9){min-width:130px}
.crm-leads-table th:nth-child(10),.crm-leads-table td:nth-child(10){min-width:190px}
.crm-leads-table th:nth-child(11),.crm-leads-table td:nth-child(11),
.crm-leads-table th:nth-child(12),.crm-leads-table td:nth-child(12){min-width:165px;font-variant-numeric:tabular-nums}
.crm-leads-table th:nth-child(13),.crm-leads-table td:nth-child(13),
.crm-leads-table th:nth-child(14),.crm-leads-table td:nth-child(14),
.crm-leads-table th:nth-child(15),.crm-leads-table td:nth-child(15){min-width:150px}
.crm-leads-table th:last-child,.crm-leads-table td:last-child{min-width:126px}

/* Users table: readable account data and compact actions. */
.crm-users-table{min-width:1420px}
.crm-users-table th:nth-child(1),.crm-users-table td:nth-child(1){min-width:220px}
.crm-users-table th:nth-child(2),.crm-users-table td:nth-child(2){min-width:220px}
.crm-users-table th:nth-child(3),.crm-users-table td:nth-child(3){min-width:220px}
.crm-users-table th:nth-child(4),.crm-users-table td:nth-child(4){min-width:150px}
.crm-users-table th:nth-child(5),.crm-users-table td:nth-child(5){min-width:95px}
.crm-users-table th:nth-child(6),.crm-users-table td:nth-child(6){min-width:150px}
.crm-users-table th:nth-child(7),.crm-users-table td:nth-child(7){min-width:155px}
.crm-users-table th:nth-child(8),.crm-users-table td:nth-child(8){min-width:70px;text-align:center}
.crm-users-table th:last-child,.crm-users-table td:last-child{min-width:330px}
.crm-user-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.crm-user-actions form{margin:0}
.crm-password-action{display:flex;align-items:center;gap:6px}
.crm-password-action .form-control{width:125px;min-width:125px;height:32px;padding:.3rem .55rem;font-size:12px;border-radius:9px}
.crm-users-table .btn-sm{height:32px;padding:.28rem .62rem;font-size:11px;white-space:nowrap;border-radius:9px}

/* The action column stays visible while scrolling wide data tables. */
.crm-table--sticky-actions th:last-child,
.crm-table--sticky-actions td:last-child{
  position:sticky;
  right:0;
  z-index:4;
  background:#fff!important;
  box-shadow:-10px 0 18px -18px rgba(0,0,0,.55);
}
.crm-table--sticky-actions thead th:last-child{z-index:7;background:#f3f3f1!important}
.crm-table--sticky-actions tbody tr:nth-child(even) td:last-child{background:#fdfdfc!important}
.crm-table--sticky-actions tbody tr:hover td:last-child{background:#f7f7f4!important}
.crm-table--sticky-actions tfoot td:last-child{background:#fafaf8!important}

.status-pill{
  min-width:0;
  max-width:180px;
  padding:5px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  border:1px solid rgba(0,0,0,.06);
}
.table-action{
  min-height:32px;
  padding:.35rem .68rem;
  border:1px solid #d8d8d4;
  border-radius:9px;
  background:#fff;
  color:#242424;
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
}
.table-action:hover{background:#111;color:#fff;border-color:#111;text-decoration:none}

/* Keep the leads toolbar from colliding with the table header on medium screens. */
.crm-card-title{min-height:52px;height:auto;padding:10px 18px;flex-wrap:wrap}
.crm-card-title>.ms-auto{margin-left:auto!important;flex-wrap:wrap}

@media (max-width:1200px){
  .crm-table{font-size:12.5px}
  .crm-table thead th{font-size:11.5px}
  .crm-table tbody td{height:48px;padding:9px 12px!important}
  .crm-table thead th,.crm-table tfoot td{padding-left:12px!important;padding-right:12px!important}
}
@media (max-width:900px){
  .crm-table-wrap{border-radius:0 0 14px 14px}
  .crm-users-table{min-width:1280px}
  .crm-leads-table{min-width:2140px}
  .crm-card-title>.ms-auto{width:100%;margin-left:0!important}
  .crm-card-title>.ms-auto .form-select{flex:1 1 140px;width:auto!important;min-width:130px}
  .crm-card-title>.ms-auto .btn{flex:0 0 auto}
}

/* CRM CSS EOF v4.1.3 */

/* v4.2.2 — server-side sortable data tables */
.crm-list-hint{font-size:11px;font-weight:500;color:#8a8a84}
.crm-sortable-table thead th{padding:0!important;vertical-align:middle}
.crm-sortable-table thead th:first-child:not(:has(.crm-sort-link)),
.crm-sortable-table thead th:last-child:not(:has(.crm-sort-link)){padding:11px 14px!important}
.crm-sort-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:42px;
  padding:10px 14px;
  color:#363632!important;
  text-decoration:none!important;
  white-space:nowrap;
  user-select:none;
}
.crm-sort-link:hover{background:#e9e9e5;color:#111!important;text-decoration:none!important}
.crm-sort-link.active{background:#ecece8;color:#111!important;font-weight:800}
.crm-sort-link i{font-size:13px;line-height:1;color:#111}
.crm-sort-link .crm-sort-muted{color:#a6a6a1;opacity:.7}
.crm-sortable-table thead th:has(.crm-sort-link.active){box-shadow:inset 0 -2px 0 #111}
.crm-campaigns-table{min-width:2200px}
.crm-campaigns-table th:nth-child(1),.crm-campaigns-table td:nth-child(1){min-width:150px}
.crm-campaigns-table th:nth-child(2),.crm-campaigns-table td:nth-child(2){min-width:110px}
.crm-campaigns-table th:nth-child(3),.crm-campaigns-table td:nth-child(3){min-width:160px}
.crm-campaigns-table th:nth-child(4),.crm-campaigns-table td:nth-child(4){min-width:120px}
.crm-campaigns-table th:nth-child(5),.crm-campaigns-table td:nth-child(5){min-width:150px}
.crm-campaigns-table th:nth-child(6),.crm-campaigns-table td:nth-child(6){min-width:125px}
.crm-campaigns-table th:nth-child(7),.crm-campaigns-table td:nth-child(7){min-width:170px}
.crm-campaigns-table th:nth-child(8),.crm-campaigns-table td:nth-child(8){min-width:190px}
.crm-campaigns-table th:nth-child(9),.crm-campaigns-table td:nth-child(9),
.crm-campaigns-table th:nth-child(10),.crm-campaigns-table td:nth-child(10){min-width:125px}
.crm-campaigns-table th:nth-child(11),.crm-campaigns-table td:nth-child(11){min-width:110px}
.crm-campaigns-table th:nth-child(n+12):nth-child(-n+16),
.crm-campaigns-table td:nth-child(n+12):nth-child(-n+16){min-width:150px;text-align:right;font-variant-numeric:tabular-nums}
.crm-campaigns-table th:last-child,.crm-campaigns-table td:last-child{min-width:170px}
.crm-bulk-actions{align-items:center}
@media(max-width:900px){.crm-list-hint{display:none}.crm-bulk-actions{width:100%;margin-left:0!important}}

/* Conversium V5 workflow refinements */
.filtered-total,.filtered-total-bottom{font-size:12px;color:#65655f;font-weight:600}
.filtered-total strong,.filtered-total-bottom strong{color:#111}
.call-link{display:inline-flex;align-items:center;gap:7px;border-radius:10px;background:#111;color:#fff!important;padding:8px 12px;text-decoration:none!important;font-weight:700}
.call-link:hover{background:#2a2a2a}
#crmCalendar{min-height:640px}
#crmCalendar .fc-button-primary{background:#111;border-color:#111}
#crmCalendar .fc-button-primary:hover,#crmCalendar .fc-button-primary:focus{background:#292929;border-color:#292929;box-shadow:none}
#crmCalendar .fc-button-primary:not(:disabled).fc-button-active{background:#555;border-color:#555}
#crmCalendar .fc-toolbar-title{font-size:1.15rem;font-weight:800}
#crmCalendar .fc-event{border-radius:6px;padding:2px 4px;font-size:12px}
.meta-status-imported{color:#18794e;font-weight:700}.meta-status-error,.meta-status-unmapped{color:#b42318;font-weight:700}

/* Conversium v5.8.0 — Scorelead-like workspace */
.sidebar-toggle{display:inline-flex;align-items:center;justify-content:center}
.crm-nav-sub{margin:-2px 0 6px 32px;padding-left:10px;border-left:1px solid #eceeea}
.crm-nav-sub a{padding:6px 10px;margin:1px 0;border-radius:9px;font-size:11px;color:#7a817d}
.crm-nav-sub a i{font-size:12px;width:14px}
.crm-nav-sub a:hover{background:#f7f7f4;color:#111}
.sidebar-collapsed .crm-nav-sub{display:none}
.sidebar-collapsed .crm-brand{padding-left:10px;padding-right:10px}
.sidebar-collapsed .crm-new{margin-left:auto;margin-right:auto}
.crm-content{max-width:none}
.crm-card,.filter-box,.toolbar{max-width:none}
.crm-leads-table{min-width:2050px}
.crm-calendar-table{min-width:1050px}
.campaign-user-list{max-height:280px;overflow:auto;border:1px solid #eceeea;border-radius:12px;padding:10px}
@media(max-width:900px){.sidebar-toggle{display:inline-flex}.crm-nav-sub{margin-left:25px}}


/* Conversium v5.8.1 — full desktop sidebar close */
@media(min-width:901px){
  body.sidebar-collapsed .crm-sidebar{transform:translateX(-100%)!important;width:var(--crm-sidebar)!important}
  body.sidebar-collapsed .crm-main{margin-left:0!important;width:100%!important}
}

/* Conversium v5.8.3 — Scorelead Smart View: Agent / Client / Qualité */
.crm-smart-col{min-width:240px}
.smart-view-scorelead{
  padding:20px 14px 14px;
  max-height:calc(100vh - 78px);
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#8f8f8f transparent;
}
.smart-view-scorelead::-webkit-scrollbar{width:7px}
.smart-view-scorelead::-webkit-scrollbar-thumb{background:#8f8f8f;border-radius:10px}
.smart-view-scorelead::-webkit-scrollbar-track{background:transparent}
.smart-view-title{
  color:#9b9b9b;
  font-size:17px;
  font-weight:500;
  margin:0 0 28px 18px;
}
.smart-group{margin:0 0 24px}
.smart-group-title{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:10px;
  align-items:center;
  margin:0 0 8px;
  color:#9b9b9b;
  font-size:14px;
  white-space:nowrap;
}
.smart-group-title span{height:1px;background:#a9a9a5}
.smart-group-title strong{font-weight:700;letter-spacing:.01em}
.smart-view-scorelead .smart-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  min-height:34px;
  margin:0 -4px;
  padding:5px 8px;
  border-radius:4px;
  color:#969696;
  font-size:15px;
  line-height:1.25;
}
.smart-view-scorelead .smart-item:hover{background:#f3f3f1;color:#555}
.smart-view-scorelead .smart-item.active{background:#ededeb;color:#555;font-weight:700}
.smart-view-scorelead .smart-name{min-width:0;overflow-wrap:anywhere}
.smart-view-scorelead .smart-count{
  color:#666;
  font-size:14px;
  font-weight:500;
  font-variant-numeric:tabular-nums;
  text-align:right;
  min-width:34px;
}
.smart-view-scorelead .smart-item.active .smart-count{color:#222;font-weight:700}
.smart-reset{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:4px;
  padding:10px 8px 2px;
  border-top:1px solid #dededb;
  color:#777;
  text-decoration:none;
  font-size:12px;
  font-weight:600;
}
.smart-reset:hover{color:#111}
@media(max-width:1199px){
  .crm-smart-col{min-width:0}
  .smart-view-scorelead{position:static;max-height:none}
}
