.ldcrm-wrap{font-family:Arial,sans-serif;background:#f5f7fb;padding:10px}.ldcrm-top{background:#061a2f;color:#fff;padding:18px 24px;border-radius:8px;display:flex;justify-content:space-between;align-items:center}.ldcrm-top h2{margin:0}.ldcrm-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:16px;margin:16px 0}.ldcrm-card{background:#fff;border-radius:8px;padding:18px;box-shadow:0 2px 12px #0001}.ldcrm-card label{display:block;font-weight:600;margin:8px 0}.ldcrm-card input,.ldcrm-card textarea{width:100%;padding:10px;border:1px solid #d9dee8;border-radius:5px;box-sizing:border-box}.primary{background:#16a34a;color:#fff;border:0;border-radius:5px;padding:10px 16px;margin-top:10px;cursor:pointer}button{cursor:pointer}.refs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.table-head{display:flex;justify-content:space-between;align-items:center}.ldcrm-table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th{background:#061a2f;color:#fff}td,th{border:1px solid #e5e7eb;padding:10px;text-align:center}.edit{background:#1677ff;color:#fff;border:0;padding:7px 10px;border-radius:4px}.delete{background:#ef4444;color:#fff;border:0;padding:7px 10px;border-radius:4px}.ldcrm-modal{display:none;position:fixed;inset:0;background:#0008;z-index:99999;align-items:center;justify-content:center}.ldcrm-modal-box{background:#fff;width:min(760px,94vw);max-height:90vh;overflow:auto;border-radius:10px;padding:20px;position:relative}.close{position:absolute;right:14px;top:10px;background:transparent;border:0;font-size:26px}.msg-block{border:1px solid #e5e7eb;border-radius:8px;padding:12px;margin:12px 0}.send-gmail{background:#2563eb;color:#fff;border:0;border-radius:5px;padding:8px 12px;margin-top:8px}
.copy-linkedin{background:#0a66c2;color:#fff;border:0;border-radius:5px;padding:8px 12px;margin-top:8px}.copy-note{font-size:12px;color:#475569;margin-top:6px}


/* ===== Responsive Update v1.4 ===== */
.ldcrm-wrap,
.ldcrm-wrap *{
    box-sizing:border-box;
}

.ldcrm-card input,
.ldcrm-card textarea,
.ldcrm-card select{
    max-width:100%;
}

#ldcrm-form{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px 18px;
}

#ldcrm-form h3,
#ldcrm-form input[type="hidden"],
#ldcrm-form .primary,
#ldcrm-form #ldcrm-reset{
    grid-column:auto;
}

#ldcrm-form h3{
    grid-column:1 / -1;
}

#ldcrm-form .primary,
#ldcrm-form #ldcrm-reset{
    width:max-content;
}

.ldcrm-table-wrap{
    width:100%;
    -webkit-overflow-scrolling:touch;
}

#ldcrm-table{
    min-width:1100px;
}

.ldcrm-modal-box textarea{
    min-height:90px;
    resize:vertical;
}

@media (max-width: 1024px){
    .ldcrm-grid{
        grid-template-columns:1fr;
    }

    .ldcrm-top{
        gap:14px;
        flex-wrap:wrap;
    }

    #ldcrm-form{
        grid-template-columns:1fr 1fr;
    }

    .refs{
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width: 768px){
    .ldcrm-wrap{
        padding:8px;
    }

    .ldcrm-top{
        padding:16px;
        align-items:flex-start;
    }

    .ldcrm-top h2{
        font-size:22px;
        line-height:1.25;
    }

    .ldcrm-top p{
        font-size:14px;
        margin:5px 0 0;
    }

    .ldcrm-top button,
    #ldcrm-export{
        width:100%;
        padding:12px;
    }

    .ldcrm-card{
        padding:14px;
        border-radius:10px;
    }

    #ldcrm-form{
        grid-template-columns:1fr;
        gap:8px;
    }

    #ldcrm-form .primary,
    #ldcrm-form #ldcrm-reset{
        width:100%;
        margin-top:6px;
        padding:12px;
    }

    .refs{
        grid-template-columns:1fr;
    }

    .table-head{
        display:block;
    }

    .table-head h3{
        margin-bottom:10px;
    }

    #ldcrm-search{
        width:100%;
        padding:12px;
    }

    .ldcrm-table-wrap{
        border:1px solid #e5e7eb;
        border-radius:8px;
        overflow-x:auto;
    }

    #ldcrm-table{
        min-width:980px;
        font-size:13px;
    }

    #ldcrm-table td,
    #ldcrm-table th{
        padding:8px;
        white-space:nowrap;
    }

    .ldcrm-modal{
        align-items:flex-end;
    }

    .ldcrm-modal-box{
        width:100vw;
        max-width:100vw;
        max-height:92vh;
        border-radius:16px 16px 0 0;
        padding:16px;
    }

    .msg-block{
        padding:10px;
    }

    .send-gmail,
    .copy-linkedin,
    #save-messages{
        width:100%;
        padding:12px;
    }

    .close{
        top:8px;
        right:10px;
    }
}

@media (max-width: 480px){
    .ldcrm-top h2{
        font-size:19px;
    }

    .ldcrm-card h3{
        font-size:17px;
    }

    .ldcrm-card label{
        font-size:13px;
    }

    .ldcrm-card input,
    .ldcrm-card textarea{
        font-size:14px;
        padding:11px;
    }

    #ldcrm-table{
        min-width:900px;
        font-size:12px;
    }

    .edit,
    .delete{
        padding:7px 8px;
        display:block;
        width:100%;
        margin:3px 0;
    }

    .ldcrm-modal-box h3{
        font-size:17px;
        padding-right:28px;
    }
}

/* Optional mobile helper: show scroll hint */
@media (max-width: 768px){
    .ldcrm-table-wrap:before{
        content:"Swipe left/right to view full table";
        display:block;
        font-size:12px;
        color:#64748b;
        padding:8px;
        background:#f8fafc;
        border-bottom:1px solid #e5e7eb;
    }
}

.date-cell{text-align:left!important;line-height:1.45;font-size:12px;min-width:170px}.msg-block input[type='date']{max-width:220px}


/* ===== Status / Response Tracking v1.6 ===== */
.status-cell{
    text-align:left!important;
    min-width:170px;
    line-height:1.5;
}
.badge{
    display:inline-block;
    padding:5px 9px;
    border-radius:999px;
    background:#e2e8f0;
    color:#0f172a;
    font-size:12px;
    font-weight:700;
    margin-bottom:4px;
}
.badge.overall{
    background:#dcfce7;
    color:#166534;
}
.status-btn{
    background:#7c3aed;
    color:#fff;
    border:0;
    padding:7px 10px;
    border-radius:4px;
    margin:3px;
}
.status-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.status-grid select{
    width:100%;
    padding:10px;
    border:1px solid #d9dee8;
    border-radius:5px;
}
@media (max-width:768px){
    .status-grid{
        grid-template-columns:1fr;
    }
    .status-btn,.edit,.delete{
        width:100%;
        margin:3px 0;
    }
}


/* ===== Colorful Readability Update v1.7 ===== */
#ldcrm-table tbody tr:nth-child(even){background:#f8fbff;}
#ldcrm-table tbody tr:hover{background:#eef6ff;}
#ldcrm-table td{color:#0f172a;font-weight:500;}
.cell-name{color:#111827!important;font-weight:800!important;}
.cell-business{color:#7c2d12!important;font-weight:700!important;}
.cell-website{color:#334155!important;}
.cell-email a,.open-email{color:#2563eb!important;background:#eff6ff;padding:5px 8px;border-radius:999px;text-decoration:none!important;font-weight:700;display:inline-block;}
.cell-email a:before{content:"✉ ";}
.cell-whatsapp{color:#15803d!important;font-weight:700!important;}
.cell-linkedin a,.open-linkedin{color:#0a66c2!important;background:#e8f1fb;padding:5px 8px;border-radius:999px;text-decoration:none!important;font-weight:800;display:inline-block;}
.cell-linkedin a:before{content:"in ";font-weight:900;}
.social-link{display:inline-block;padding:5px 8px;border-radius:999px;text-decoration:none!important;font-size:12px;font-weight:800;}
.social-link.twitter{color:#075985!important;background:#e0f2fe;}
.social-link.instagram{color:#be185d!important;background:#fce7f3;}
.social-link.facebook{color:#1d4ed8!important;background:#dbeafe;}
.cell-ref{color:#6d28d9!important;font-weight:700!important;background:#f5f3ff;}
.date-cell{background:#fff7ed;color:#9a3412!important;border-left:3px solid #fb923c!important;}
.date-cell strong{color:#c2410c;}
.status-cell{background:#f0fdf4;border-left:3px solid #22c55e!important;}
.status-cell small{color:#166534;font-weight:700;}
.edit{background:#2563eb!important;}
.delete{background:#dc2626!important;}
.status-btn{background:#7c3aed!important;}
#ldcrm-table th{background:#071a2f!important;color:#ffffff!important;font-weight:800;}
.ldcrm-card h3{color:#0f172a;}
.ldcrm-top{background:linear-gradient(135deg,#061a2f,#0f2f57)!important;}
@media (max-width:768px){
  #ldcrm-table td{font-size:12px;}
  .cell-email a,.open-email,.open-linkedin,.social-link{padding:4px 7px;}
}


/* ===== Save Button Fix v1.8 ===== */
#ldcrm-save-lead{
    background:#16a34a;
    color:#fff;
    border:0;
    border-radius:5px;
    padding:10px 16px;
    margin-top:10px;
    cursor:pointer;
    font-weight:700;
}
#ldcrm-save-lead:disabled{
    opacity:.65;
    cursor:not-allowed;
}


/* ===== Smart CRM Update v1.9 ===== */
.ldcrm-summary{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:12px;
    margin:16px 0;
}
.sum-card{
    background:#fff;
    border-radius:12px;
    padding:14px;
    box-shadow:0 2px 12px #0001;
    border-left:5px solid #64748b;
}
.sum-card span{
    display:block;
    font-size:12px;
    color:#64748b;
    font-weight:700;
}
.sum-card strong{
    display:block;
    font-size:26px;
    color:#0f172a;
    margin-top:4px;
}
.sum-card.total{border-left-color:#2563eb}
.sum-card.contacted{border-left-color:#0ea5e9}
.sum-card.replied{border-left-color:#7c3aed}
.sum-card.interested{border-left-color:#16a34a}
.sum-card.converted{border-left-color:#15803d}
.sum-card.overdue{border-left-color:#ef4444}
.ldcrm-filters{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:10px;
    background:#fff;
    padding:14px;
    border-radius:12px;
    box-shadow:0 2px 12px #0001;
    margin-bottom:16px;
}
.ldcrm-filters select,.ldcrm-filters button{
    padding:10px;
    border:1px solid #d9dee8;
    border-radius:7px;
    background:#fff;
}
#clear-filters{
    background:#0f172a;
    color:#fff;
    border:0;
    font-weight:700;
}
.due-row{
    outline:2px solid #fb923c;
    background:#fff7ed!important;
}
.due-row td:first-child:before{
    content:"⚠ ";
}
@media(max-width:1024px){
    .ldcrm-summary{grid-template-columns:repeat(3,1fr);}
    .ldcrm-filters{grid-template-columns:1fr 1fr;}
}
@media(max-width:600px){
    .ldcrm-summary{grid-template-columns:1fr 1fr;}
    .ldcrm-filters{grid-template-columns:1fr;}
    .sum-card strong{font-size:22px;}
}


/* ===== CSV Import Update v2.0 ===== */
.ldcrm-top-actions{
    display:flex;
    gap:10px;
    align-items:center;
}
#ldcrm-import-open{
    background:#7c3aed;
    color:#fff;
    border:0;
    border-radius:5px;
    padding:10px 16px;
    font-weight:700;
}
.ldcrm-import-box label{
    display:block;
    margin:12px 0;
    font-weight:700;
}
.ldcrm-import-box input,
.ldcrm-import-box select{
    width:100%;
    padding:11px;
    border:1px solid #d9dee8;
    border-radius:7px;
    margin-top:6px;
}
.import-help{
    background:#f5f3ff;
    color:#5b21b6;
    padding:10px;
    border-radius:8px;
    font-size:13px;
}
.import-success{
    background:#dcfce7;
    color:#166534;
    padding:12px;
    border-radius:8px;
    margin-top:12px;
    font-weight:700;
}
.import-error{
    background:#fee2e2;
    color:#991b1b;
    padding:12px;
    border-radius:8px;
    margin-top:12px;
    font-weight:700;
}
.import-loading{
    background:#eff6ff;
    color:#1d4ed8;
    padding:12px;
    border-radius:8px;
    margin-top:12px;
    font-weight:700;
}
.close-import{
    position:absolute;
    right:14px;
    top:10px;
    background:transparent;
    border:0;
    font-size:26px;
}
@media(max-width:768px){
    .ldcrm-top-actions{
        width:100%;
        flex-direction:column;
    }
    #ldcrm-import-open,
    #ldcrm-export{
        width:100%;
    }
}


/* =========================================================
   v2.5 Stable Sidebar + Add Lead Popup + No Blank Gap
   ========================================================= */
html body .ldcrm-wrap.ldcrm-v25{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  background:#f6f8fc!important;
  display:grid!important;
  grid-template-columns:220px minmax(0,1fr)!important;
  min-height:720px!important;
  overflow:hidden!important;
  font-family:Inter,Arial,sans-serif!important;
}
.ldcrm-v25 .ldcrm-sidebar-v25{
  background:linear-gradient(180deg,#071326,#0a1830)!important;
  color:#fff!important;
  padding:16px 12px!important;
  min-height:720px!important;
}
.ldcrm-v25 .side-brand{display:flex!important;align-items:center!important;gap:10px!important;margin-bottom:22px!important}
.ldcrm-v25 .side-logo{width:38px!important;height:38px!important;border-radius:10px!important;background:linear-gradient(135deg,#2563eb,#7c3aed)!important;display:grid!important;place-items:center!important;font-weight:900!important}
.ldcrm-v25 .side-brand strong{display:block!important;color:#fff!important;font-size:15px!important;line-height:1.1!important}
.ldcrm-v25 .side-brand small{display:block!important;color:#c4b5fd!important;font-size:12px!important}
.ldcrm-v25 .ldcrm-sidebar-v25 nav{display:flex!important;flex-direction:column!important;gap:6px!important}
.ldcrm-v25 .ldcrm-sidebar-v25 nav a{color:#e5e7eb!important;text-decoration:none!important;padding:10px 12px!important;border-radius:9px!important;font-size:13px!important;font-weight:700!important}
.ldcrm-v25 .ldcrm-sidebar-v25 nav a.active,.ldcrm-v25 .ldcrm-sidebar-v25 nav a:hover{background:linear-gradient(135deg,#4f46e5,#7c3aed)!important;color:#fff!important}
.ldcrm-v25 .side-stats{margin-top:70px!important;background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:12px!important;padding:12px!important}
.ldcrm-v25 .side-stats h4{color:#fff!important;margin:0 0 10px!important;font-size:13px!important}
.ldcrm-v25 .side-stats p{display:flex!important;justify-content:space-between!important;margin:9px 0!important;color:#e5e7eb!important;font-size:12px!important}
.ldcrm-v25 .side-stats b{color:#f59e0b!important}
.ldcrm-v25 .ldcrm-content-v25{min-width:0!important;padding:16px!important;box-sizing:border-box!important}

/* top area */
.ldcrm-v25 .ldcrm-top{background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0!important;margin:0 0 14px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
.ldcrm-v25 .ldcrm-top h2{color:#0f172a!important;font-size:22px!important;margin:0!important}
.ldcrm-v25 .ldcrm-top p{color:#475569!important;font-size:12px!important;margin:3px 0 0!important}
.ldcrm-v25 .ldcrm-top-actions{display:flex!important;gap:8px!important}
.ldcrm-v25 #ldcrm-import-open{background:#fff!important;color:#6d28d9!important;border:1px solid #a78bfa!important}
.ldcrm-v25 #ldcrm-export{background:#fff!important;color:#334155!important;border:1px solid #cbd5e1!important}
.ldcrm-v25 #ldcrm-add-open{background:linear-gradient(135deg,#4f46e5,#7c3aed)!important;color:#fff!important}
.ldcrm-v25 #ldcrm-import-open,.ldcrm-v25 #ldcrm-export,.ldcrm-v25 #ldcrm-add-open{height:36px!important;padding:0 12px!important;border-radius:8px!important;font-size:12px!important;font-weight:800!important}

/* compact main widgets */
.ldcrm-v25 .ldcrm-summary{grid-template-columns:repeat(6,minmax(120px,1fr))!important;gap:10px!important;margin:10px 0 12px!important}
.ldcrm-v25 .sum-card{min-height:62px!important;padding:12px!important;border-radius:12px!important}
.ldcrm-v25 .sum-card:before{width:34px!important;height:34px!important;border-radius:10px!important;left:12px!important;top:14px!important}
.ldcrm-v25 .sum-card span{margin-left:48px!important;font-size:11px!important;line-height:1.1!important}
.ldcrm-v25 .sum-card strong{margin-left:48px!important;font-size:22px!important;line-height:1.1!important}
.ldcrm-v25 .ldcrm-filters{padding:10px!important;gap:8px!important;margin-bottom:12px!important;border-radius:12px!important}
.ldcrm-v25 .ldcrm-filters select,.ldcrm-v25 .ldcrm-filters button,.ldcrm-v25 #ldcrm-search{height:36px!important;min-height:36px!important;border-radius:8px!important;font-size:12px!important;padding:0 10px!important}
.ldcrm-v25 .ldcrm-table-card,.ldcrm-v25 .ldcrm-card:last-of-type{border-radius:12px!important;overflow:hidden!important}
.ldcrm-v25 .table-head{padding:12px 14px!important;gap:10px!important}
.ldcrm-v25 .table-head h3{font-size:20px!important;margin:0!important}
.ldcrm-v25 #ldcrm-table{min-width:1120px!important;font-size:12px!important}
.ldcrm-v25 #ldcrm-table th{padding:10px 8px!important;font-size:12px!important}
.ldcrm-v25 #ldcrm-table td{padding:10px 8px!important;font-size:12px!important}

/* Add lead popup */
.ldcrm-v25 .ldcrm-add-modal-v25{
  display:none;
  position:fixed!important;
  inset:0!important;
  background:rgba(15,23,42,.55)!important;
  z-index:999999!important;
  align-items:center!important;
  justify-content:center!important;
  gap:14px!important;
  padding:18px!important;
  margin:0!important;
  grid-template-columns:1.2fr .9fr!important;
}
.ldcrm-v25 .ldcrm-add-modal-v25 .ldcrm-card{
  max-height:90vh!important;
  overflow:auto!important;
  border-radius:14px!important;
  box-shadow:0 24px 80px rgba(0,0,0,.22)!important;
}
.ldcrm-v25 .ldcrm-add-modal-v25 form.ldcrm-card{
  width:min(720px,58vw)!important;
}
.ldcrm-v25 .ldcrm-add-modal-v25 > .ldcrm-card:not(form){
  width:min(460px,36vw)!important;
}
.ldcrm-v25 .panel-title{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:10px!important}
.ldcrm-v25 .panel-title h3{font-size:20px!important;margin:0!important;color:#0f172a!important}
.ldcrm-v25 #ldcrm-add-close{width:34px!important;height:34px!important;border-radius:50%!important;border:1px solid #e5e7eb!important;background:#fff!important;font-size:20px!important;line-height:1!important}
.ldcrm-v25 #ldcrm-form{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px 12px!important}
.ldcrm-v25 #ldcrm-form .panel-title,.ldcrm-v25 #ldcrm-form input[type="hidden"]{grid-column:1/-1!important}
.ldcrm-v25 #ldcrm-form label{font-size:12px!important;margin:4px 0!important}
.ldcrm-v25 #ldcrm-form input{height:36px!important;border-radius:8px!important;font-size:12px!important}
.ldcrm-v25 #ldcrm-save-lead{height:38px!important;border-radius:8px!important;font-size:12px!important}
.ldcrm-v25 #ldcrm-reset{height:38px!important;border-radius:8px!important;font-size:12px!important}

/* responsive */
@media(max-width:1100px){
  html body .ldcrm-wrap.ldcrm-v25{grid-template-columns:72px minmax(0,1fr)!important}
  .ldcrm-v25 .side-brand div,.ldcrm-v25 .side-stats{display:none!important}
  .ldcrm-v25 .ldcrm-sidebar-v25 nav a{font-size:0!important;text-align:center!important;padding:11px 6px!important}
  .ldcrm-v25 .ldcrm-sidebar-v25 nav a::first-letter{font-size:17px!important}
  .ldcrm-v25 .ldcrm-summary{grid-template-columns:repeat(3,1fr)!important}
}
@media(max-width:760px){
  html body .ldcrm-wrap.ldcrm-v25{display:block!important}
  .ldcrm-v25 .ldcrm-sidebar-v25{min-height:auto!important;padding:10px!important}
  .ldcrm-v25 .ldcrm-sidebar-v25 nav{flex-direction:row!important;overflow-x:auto!important}
  .ldcrm-v25 .ldcrm-sidebar-v25 nav a{white-space:nowrap!important;font-size:12px!important;text-align:left!important}
  .ldcrm-v25 .ldcrm-content-v25{padding:10px!important}
  .ldcrm-v25 .ldcrm-top{flex-direction:column!important;align-items:stretch!important;gap:10px!important}
  .ldcrm-v25 .ldcrm-summary{grid-template-columns:repeat(2,1fr)!important}
  .ldcrm-v25 .ldcrm-add-modal-v25{display:none;align-items:flex-end!important;padding:0!important}
  .ldcrm-v25 .ldcrm-add-modal-v25 form.ldcrm-card,.ldcrm-v25 .ldcrm-add-modal-v25 > .ldcrm-card:not(form){width:100%!important;max-width:100%!important}
  .ldcrm-v25 .ldcrm-add-modal-v25{flex-direction:column!important;overflow:auto!important}
  .ldcrm-v25 #ldcrm-form{grid-template-columns:1fr!important}
}


/* =========================================================
   v2.6 Icon Links + Popup Design Fix
   ========================================================= */

/* Database link buttons: icon only */
.ldcrm-v25 .icon-only-link,
.ldcrm-v25 .open-email.icon-only-link,
.ldcrm-v25 .open-linkedin.icon-only-link,
.ldcrm-v25 .social-link{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    padding:0!important;
    border-radius:50%!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:14px!important;
    font-weight:900!important;
    line-height:1!important;
    text-decoration:none!important;
    margin:0 2px!important;
    box-shadow:0 4px 12px rgba(15,23,42,.08)!important;
}
.ldcrm-v25 .open-email.icon-only-link{
    background:#eaf3ff!important;
    color:#2563eb!important;
    border:1px solid #bfdbfe!important;
}
.ldcrm-v25 .open-email.icon-only-link:before,
.ldcrm-v25 .open-linkedin.icon-only-link:before{
    content:""!important;
}
.ldcrm-v25 .open-linkedin.icon-only-link{
    background:#e8f1ff!important;
    color:#0a66c2!important;
    border:1px solid #bfdbfe!important;
    font-family:Arial,sans-serif!important;
}
.ldcrm-v25 .social-link.twitter{
    background:#e0f2fe!important;
    color:#0284c7!important;
}
.ldcrm-v25 .social-link.instagram{
    background:#fce7f3!important;
    color:#db2777!important;
}
.ldcrm-v25 .social-link.facebook{
    background:#dbeafe!important;
    color:#1d4ed8!important;
    font-family:Arial,sans-serif!important;
}
.ldcrm-v25 #ldcrm-table td{
    text-align:center!important;
}
.ldcrm-v25 #ldcrm-table .cell-name,
.ldcrm-v25 #ldcrm-table .cell-business,
.ldcrm-v25 #ldcrm-table .date-cell,
.ldcrm-v25 #ldcrm-table .status-cell{
    text-align:left!important;
}

/* Close buttons: always visible, small, fixed corner */
.ldcrm-close-btn,
.ldcrm-v25 .close,
.ldcrm-v25 .close-import,
.ldcrm-v25 #ldcrm-add-close{
    position:absolute!important;
    top:12px!important;
    right:12px!important;
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    border-radius:50%!important;
    border:1px solid #e2e8f0!important;
    background:#ffffff!important;
    color:#334155!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:18px!important;
    line-height:1!important;
    font-weight:700!important;
    padding:0!important;
    opacity:1!important;
    visibility:visible!important;
    z-index:20!important;
    box-shadow:0 4px 12px rgba(15,23,42,.08)!important;
}
.ldcrm-close-btn:hover,
.ldcrm-v25 .close:hover,
.ldcrm-v25 .close-import:hover,
.ldcrm-v25 #ldcrm-add-close:hover{
    background:#f1f5f9!important;
    color:#0f172a!important;
}

/* Global modal polish */
.ldcrm-v25 .ldcrm-modal,
#ldcrm-modal,
#ldcrm-import-modal{
    background:rgba(15,23,42,.62)!important;
    backdrop-filter:blur(5px)!important;
    padding:18px!important;
    align-items:center!important;
    justify-content:center!important;
}
.ldcrm-v25 .ldcrm-modal-box,
.ldcrm-modal-box{
    width:min(820px,94vw)!important;
    max-height:88vh!important;
    overflow:auto!important;
    border-radius:18px!important;
    background:#fff!important;
    border:1px solid #e5e7eb!important;
    padding:24px 24px 18px!important;
    box-shadow:0 30px 90px rgba(15,23,42,.32)!important;
    position:relative!important;
}
.ldcrm-v25 .ldcrm-modal-box h3,
.ldcrm-modal-box h3{
    margin:0 42px 16px 0!important;
    font-size:22px!important;
    line-height:1.25!important;
    font-weight:900!important;
    color:#0f172a!important;
}

/* Email / LinkedIn message popup */
.ldcrm-v25 .msg-block,
.ldcrm-modal-box .msg-block{
    border:1px solid #e6edf5!important;
    border-radius:14px!important;
    padding:14px!important;
    margin:12px 0!important;
    background:linear-gradient(180deg,#ffffff,#f8fbff)!important;
}
.ldcrm-v25 .msg-block label,
.ldcrm-modal-box .msg-block label{
    display:block!important;
    color:#334155!important;
    font-size:12px!important;
    font-weight:800!important;
    margin:8px 0!important;
}
.ldcrm-v25 .msg-block input,
.ldcrm-v25 .msg-block textarea,
.ldcrm-modal-box .msg-block input,
.ldcrm-modal-box .msg-block textarea{
    width:100%!important;
    min-height:38px!important;
    border:1px solid #dbe3ee!important;
    border-radius:10px!important;
    padding:9px 11px!important;
    font-size:13px!important;
    color:#0f172a!important;
    box-shadow:none!important;
    background:#fff!important;
}
.ldcrm-v25 .msg-block textarea,
.ldcrm-modal-box .msg-block textarea{
    min-height:96px!important;
    resize:vertical!important;
}
.ldcrm-v25 .send-gmail,
.ldcrm-v25 .copy-linkedin,
.ldcrm-modal-box .send-gmail,
.ldcrm-modal-box .copy-linkedin{
    height:38px!important;
    border:0!important;
    border-radius:10px!important;
    padding:0 14px!important;
    font-size:13px!important;
    font-weight:800!important;
    color:#fff!important;
}
.ldcrm-v25 .send-gmail{
    background:#2563eb!important;
}
.ldcrm-v25 .copy-linkedin{
    background:#0a66c2!important;
}
.ldcrm-v25 #save-messages,
.ldcrm-modal-box #save-messages{
    background:#16a34a!important;
    color:#fff!important;
    border:0!important;
    border-radius:10px!important;
    height:40px!important;
    padding:0 16px!important;
    font-size:13px!important;
    font-weight:900!important;
    margin-top:10px!important;
}

/* Import popup */
.ldcrm-v25 .ldcrm-import-box .import-help,
.ldcrm-import-box .import-help{
    background:#f5f3ff!important;
    color:#5b21b6!important;
    border:1px solid #ddd6fe!important;
    padding:12px!important;
    border-radius:12px!important;
    font-size:13px!important;
    line-height:1.55!important;
}
.ldcrm-v25 .ldcrm-import-box input,
.ldcrm-v25 .ldcrm-import-box select,
.ldcrm-import-box input,
.ldcrm-import-box select{
    height:42px!important;
    border:1px solid #dbe3ee!important;
    border-radius:10px!important;
    padding:8px 11px!important;
}
.ldcrm-v25 .ldcrm-import-box .primary,
.ldcrm-import-box .primary{
    background:#16a34a!important;
    color:#fff!important;
    border-radius:10px!important;
    height:40px!important;
    padding:0 16px!important;
    font-weight:900!important;
}

/* Add lead popup */
.ldcrm-v25 .ldcrm-add-modal-v25{
    background:rgba(15,23,42,.62)!important;
    backdrop-filter:blur(5px)!important;
}
.ldcrm-v25 .ldcrm-add-modal-v25 .ldcrm-card{
    position:relative!important;
    border-radius:18px!important;
    border:1px solid #e5e7eb!important;
    box-shadow:0 30px 90px rgba(15,23,42,.28)!important;
}
.ldcrm-v25 .ldcrm-add-modal-v25 form.ldcrm-card,
.ldcrm-v25 .ldcrm-add-modal-v25 > .ldcrm-card:not(form){
    padding:24px!important;
}
.ldcrm-v25 .panel-title{
    margin:0 42px 16px 0!important;
}
.ldcrm-v25 .panel-title h3{
    font-size:22px!important;
    font-weight:900!important;
    color:#0f172a!important;
}
.ldcrm-v25 .refs{
    gap:8px 14px!important;
}
.ldcrm-v25 .refs label{
    background:#f8fafc!important;
    border:1px solid #edf2f7!important;
    border-radius:10px!important;
    padding:8px 10px!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    margin:0!important;
    color:#334155!important;
}

@media(max-width:760px){
    .ldcrm-v25 .ldcrm-modal-box,
    .ldcrm-modal-box{
        width:100%!important;
        max-width:100%!important;
        max-height:92vh!important;
        border-radius:18px 18px 0 0!important;
        padding:22px 16px 16px!important;
    }
    .ldcrm-v25 .ldcrm-add-modal-v25{
        align-items:flex-end!important;
    }
}


/* =========================================================
   v2.7 Social Media Combined Column + Smaller Action Buttons
   ========================================================= */

/* One social media column with only icons */
.ldcrm-v25 .cell-social-media{
    white-space:nowrap!important;
    text-align:center!important;
}
.ldcrm-v25 .cell-social-media .social-link{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    margin:0 2px!important;
    font-size:12px!important;
    border-radius:50%!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
    text-decoration:none!important;
    line-height:1!important;
}

/* Make action buttons smaller and cleaner */
.ldcrm-v25 .status-btn,
.ldcrm-v25 .edit,
.ldcrm-v25 .delete,
.ldcrm-v25 #ldcrm-table .status-btn,
.ldcrm-v25 #ldcrm-table .edit,
.ldcrm-v25 #ldcrm-table .delete{
    height:28px!important;
    min-height:28px!important;
    padding:0 8px!important;
    font-size:11px!important;
    line-height:28px!important;
    border-radius:6px!important;
    margin:2px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-weight:800!important;
}
.ldcrm-v25 #ldcrm-table td:last-child{
    white-space:nowrap!important;
    min-width:120px!important;
}

/* Keep table more compact after merging social columns */
.ldcrm-v25 #ldcrm-table{
    min-width:1040px!important;
}
.ldcrm-v25 #ldcrm-table th,
.ldcrm-v25 #ldcrm-table td{
    padding-left:7px!important;
    padding-right:7px!important;
}


/* =========================================================
   v2.8 Compact Dates/Status with Hover Details
   ========================================================= */
.ldcrm-v25 .compact-info-cell{
    min-width:110px!important;
    max-width:150px!important;
    text-align:center!important;
    line-height:1!important;
    background:transparent!important;
    border-left:0!important;
}
.ldcrm-v25 .date-cell.compact-info-cell,
.ldcrm-v25 .status-cell.compact-info-cell{
    background:#fff!important;
}
.ldcrm-v25 .compact-pill{
    position:relative!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    max-width:140px!important;
    min-height:28px!important;
    padding:6px 9px!important;
    border-radius:999px!important;
    font-size:11px!important;
    font-weight:900!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    cursor:help!important;
}
.ldcrm-v25 .date-pill{
    background:#fff7ed!important;
    color:#c2410c!important;
    border:1px solid #fed7aa!important;
}
.ldcrm-v25 .status-pill{
    background:#dcfce7!important;
    color:#166534!important;
    border:1px solid #bbf7d0!important;
}
.ldcrm-v25 .compact-pill:hover::after{
    content:attr(data-tooltip)!important;
    position:fixed!important;
    z-index:9999999!important;
    min-width:230px!important;
    max-width:320px!important;
    white-space:pre-line!important;
    text-align:left!important;
    background:#0f172a!important;
    color:#fff!important;
    border-radius:12px!important;
    padding:12px 14px!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.55!important;
    box-shadow:0 18px 45px rgba(15,23,42,.28)!important;
    transform:translate(-50%, -110%)!important;
    left:50%!important;
    top:50%!important;
}
.ldcrm-v25 .compact-pill:hover::before{
    content:""!important;
    position:fixed!important;
    z-index:9999999!important;
    width:10px!important;
    height:10px!important;
    background:#0f172a!important;
    transform:translate(-50%, -45%) rotate(45deg)!important;
    left:50%!important;
    top:50%!important;
}
.ldcrm-v25 #ldcrm-table{
    min-width:980px!important;
}
.ldcrm-v25 #ldcrm-table th:nth-last-child(3),
.ldcrm-v25 #ldcrm-table th:nth-last-child(2){
    min-width:115px!important;
}


/* =========================================================
   v2.9 Fix: Social icons stay in Social Media column only
   ========================================================= */
.ldcrm-v25 .cell-social-media{
    white-space:nowrap!important;
    text-align:center!important;
    min-width:105px!important;
}
.ldcrm-v25 .cell-ref{
    text-align:center!important;
    color:#6d28d9!important;
    background:#f5f3ff!important;
    font-weight:800!important;
}
.ldcrm-v25 #ldcrm-table th:nth-child(8),
.ldcrm-v25 #ldcrm-table td:nth-child(8){
    text-align:center!important;
}
.ldcrm-v25 #ldcrm-table th:nth-child(10),
.ldcrm-v25 #ldcrm-table td:nth-child(10){
    text-align:center!important;
}


/* =========================================================
   v3.0 Fixed CRM Height + Database Only Scroll
   ========================================================= */

/* Full screen CRM area. If WP admin bar is visible, reduce height. */
html body .ldcrm-wrap.ldcrm-v25{
    height:100vh!important;
    max-height:100vh!important;
    min-height:100vh!important;
    overflow:hidden!important;
}
body.admin-bar .ldcrm-wrap.ldcrm-v25{
    height:calc(100vh - 32px)!important;
    max-height:calc(100vh - 32px)!important;
    min-height:calc(100vh - 32px)!important;
}

/* Sidebar stays full height, only sidebar content scrolls if needed */
.ldcrm-v25 .ldcrm-sidebar-v25{
    height:100%!important;
    min-height:0!important;
    overflow-y:auto!important;
}

/* Main dashboard becomes a fixed-height flex layout */
.ldcrm-v25 .ldcrm-content-v25{
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
}

/* Top sections stay fixed/visible */
.ldcrm-v25 .ldcrm-top,
.ldcrm-v25 .ldcrm-summary,
.ldcrm-v25 .ldcrm-filters{
    flex:0 0 auto!important;
}

/* Database card uses remaining screen height */
.ldcrm-v25 .ldcrm-table-card,
.ldcrm-v25 .ldcrm-content-v25 > .ldcrm-card:last-of-type{
    flex:1 1 auto!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
}

/* Table title/search fixed inside database card */
.ldcrm-v25 .table-head{
    flex:0 0 auto!important;
}

/* Only data/table area scrolls vertically and horizontally */
.ldcrm-v25 .ldcrm-table-wrap{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:auto!important;
    max-height:none!important;
    border-top:1px solid #edf2f7!important;
}

/* Keep table header visible while scrolling data */
.ldcrm-v25 #ldcrm-table thead th{
    position:sticky!important;
    top:0!important;
    z-index:5!important;
}

/* Prevent page/body scroll caused by plugin */
html body:has(.ldcrm-wrap.ldcrm-v25){
    overflow:hidden;
}

/* WordPress admin bar mobile height */
@media(max-width:782px){
    body.admin-bar .ldcrm-wrap.ldcrm-v25{
        height:calc(100vh - 46px)!important;
        max-height:calc(100vh - 46px)!important;
        min-height:calc(100vh - 46px)!important;
    }
}

/* Smaller screens: keep same behavior */
@media(max-width:760px){
    html body .ldcrm-wrap.ldcrm-v25{
        height:100vh!important;
        max-height:100vh!important;
        overflow:hidden!important;
    }
    .ldcrm-v25 .ldcrm-sidebar-v25{
        max-height:120px!important;
        overflow:auto!important;
    }
    .ldcrm-v25 .ldcrm-content-v25{
        height:calc(100vh - 120px)!important;
    }
    body.admin-bar .ldcrm-v25 .ldcrm-content-v25{
        height:calc(100vh - 166px)!important;
    }
}


/* =========================================================
   v3.1 CMS Column + Reference Site Icons
   ========================================================= */
.ldcrm-v25 .cell-cms{
    text-align:center!important;
    font-weight:800!important;
    color:#166534!important;
    background:#f0fdf4!important;
    min-width:80px!important;
}
.ldcrm-v25 .ref-icons-cell{
    white-space:nowrap!important;
    text-align:center!important;
    min-width:120px!important;
}
.ldcrm-v25 .ref-icon{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    border-radius:50%!important;
    margin:0 2px!important;
    background:#f5f3ff!important;
    color:#6d28d9!important;
    border:1px solid #ddd6fe!important;
    font-size:10px!important;
    font-weight:900!important;
    line-height:1!important;
    cursor:help!important;
    box-shadow:0 4px 12px rgba(109,40,217,.08)!important;
}
.ldcrm-v25 #cms_platform::placeholder{
    color:#94a3b8!important;
}
.ldcrm-v25 #ldcrm-table{
    min-width:1060px!important;
}


/* =========================================================
   v3.2 CMS Dropdown + Remove Dates Column
   ========================================================= */
.ldcrm-v25 .cell-cms{
    text-align:center!important;
    font-weight:800!important;
    color:#166534!important;
    background:#f0fdf4!important;
    min-width:88px!important;
}
.ldcrm-v25 #cms_platform{
    height:36px!important;
    border-radius:8px!important;
    border:1px solid #dbe3ee!important;
    font-size:12px!important;
    padding:7px 10px!important;
    background:#fff!important;
    color:#0f172a!important;
}
.ldcrm-v25 #ldcrm-table{
    min-width:980px!important;
}
.ldcrm-v25 .status-cell.compact-info-cell{
    min-width:110px!important;
    max-width:130px!important;
}


/* =========================================================
   v3.3 Table Alignment Fix
   ========================================================= */
.ldcrm-v25 #ldcrm-table th,
.ldcrm-v25 #ldcrm-table td{
    vertical-align:middle!important;
}
.ldcrm-v25 .cell-cms{
    text-align:center!important;
    min-width:82px!important;
}
.ldcrm-v25 #ldcrm-table{
    min-width:1020px!important;
}


/* =========================================================
   v3.4 CMS Icon Only
   ========================================================= */
.ldcrm-v25 .cell-cms{
    text-align:center!important;
    background:#fff!important;
}
.ldcrm-v25 .cms-icon{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    border-radius:50%!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#ecfdf5!important;
    color:#15803d!important;
    border:1px solid #bbf7d0!important;
    font-size:10px!important;
    font-weight:900!important;
    line-height:1!important;
    cursor:help!important;
    box-shadow:0 4px 12px rgba(21,128,61,.08)!important;
}


/* =========================================================
   v3.5 Official-style CMS Icons + Button Position Fix
   ========================================================= */

/* Official-looking CMS badges */
.ldcrm-v25 .cms-icon{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    border-radius:50%!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:10px!important;
    font-weight:900!important;
    line-height:1!important;
    cursor:help!important;
    letter-spacing:-.03em!important;
    box-shadow:0 5px 14px rgba(15,23,42,.10)!important;
}
.ldcrm-v25 .cms-wordpress{
    background:#21759b!important;
    color:#fff!important;
    border:1px solid #1b5f7d!important;
    font-family:Georgia,serif!important;
    font-size:15px!important;
}
.ldcrm-v25 .cms-shopify{
    background:#95bf47!important;
    color:#fff!important;
    border:1px solid #7aa33a!important;
    font-size:15px!important;
}
.ldcrm-v25 .cms-wix{
    background:#111827!important;
    color:#fff!important;
    border:1px solid #111827!important;
    font-size:9px!important;
}
.ldcrm-v25 .cms-squarespace{
    background:#000!important;
    color:#fff!important;
    border:1px solid #000!important;
    font-size:15px!important;
}
.ldcrm-v25 .cms-webflow{
    background:#146ef5!important;
    color:#fff!important;
    border:1px solid #0b5bd3!important;
    font-size:15px!important;
}
.ldcrm-v25 .cms-custom{
    background:#334155!important;
    color:#fff!important;
    border:1px solid #1e293b!important;
    font-size:10px!important;
}
.ldcrm-v25 .cms-woocommerce{
    background:#7f54b3!important;
    color:#fff!important;
    border:1px solid #6b459b!important;
    font-size:8px!important;
}
.ldcrm-v25 .cms-magento{
    background:#f26322!important;
    color:#fff!important;
    border:1px solid #d65318!important;
    font-size:15px!important;
}
.ldcrm-v25 .cms-unknown,
.ldcrm-v25 .cms-default{
    background:#e2e8f0!important;
    color:#334155!important;
    border:1px solid #cbd5e1!important;
}

/* Save/Reset buttons bottom-left in Add Lead popup */
.ldcrm-v25 #ldcrm-form{
    align-items:end!important;
}
.ldcrm-v25 #ldcrm-save-lead{
    grid-column:1!important;
    grid-row:auto!important;
    justify-self:start!important;
    width:auto!important;
    min-width:105px!important;
    order:98!important;
}
.ldcrm-v25 #ldcrm-reset{
    grid-column:2!important;
    justify-self:start!important;
    width:auto!important;
    min-width:90px!important;
    order:99!important;
    background:#2563eb!important;
    color:#fff!important;
    border:0!important;
}
@media(max-width:760px){
    .ldcrm-v25 #ldcrm-save-lead,
    .ldcrm-v25 #ldcrm-reset{
        grid-column:auto!important;
        width:100%!important;
    }
}


/* =========================================================
   v3.6 Bulk Delete
   ========================================================= */
.ldcrm-v25 .bulk-actions{
    display:flex!important;
    gap:8px!important;
    align-items:center!important;
}
.ldcrm-v25 #ldcrm-select-all,
.ldcrm-v25 #ldcrm-bulk-delete{
    height:32px!important;
    border-radius:8px!important;
    padding:0 10px!important;
    font-size:12px!important;
    font-weight:800!important;
    border:0!important;
    cursor:pointer!important;
}
.ldcrm-v25 #ldcrm-select-all{
    background:#eef2ff!important;
    color:#4338ca!important;
}
.ldcrm-v25 #ldcrm-bulk-delete{
    background:#dc2626!important;
    color:#fff!important;
}
.ldcrm-v25 #ldcrm-bulk-delete:disabled{
    opacity:.65!important;
    cursor:not-allowed!important;
}
.ldcrm-v25 .ldcrm-row-check,
.ldcrm-v25 #ldcrm-check-all{
    width:16px!important;
    height:16px!important;
    cursor:pointer!important;
}
.ldcrm-v25 #ldcrm-table th:first-child,
.ldcrm-v25 #ldcrm-table td:first-child{
    width:36px!important;
    text-align:center!important;
}
@media(max-width:760px){
    .ldcrm-v25 .bulk-actions{
        width:100%!important;
    }
    .ldcrm-v25 #ldcrm-select-all,
    .ldcrm-v25 #ldcrm-bulk-delete{
        flex:1!important;
    }
}


/* =========================================================
   v3.7 Outreach Sent Tracking
   ========================================================= */
.ldcrm-v25 .sent-badge{
    display:inline-flex!important;
    align-items:center!important;
    margin-left:8px!important;
    padding:4px 8px!important;
    border-radius:999px!important;
    background:#dcfce7!important;
    color:#166534!important;
    font-size:11px!important;
    font-weight:900!important;
}
.ldcrm-v25 .status-pill{
    max-width:155px!important;
}


/* =========================================================
   v3.8 Status Save Fix
   ========================================================= */
.ldcrm-v25 #save-status:disabled{
    opacity:.7!important;
    cursor:not-allowed!important;
}


/* =========================================================
   v3.9 Message Notification Badges
   ========================================================= */
.ldcrm-v25 .message-icon-cell{
    text-align:center!important;
    overflow:visible!important;
}
.ldcrm-v25 .msg-icon-wrap{
    position:relative!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0 3px!important;
    overflow:visible!important;
}
.ldcrm-v25 .msg-badge{
    position:absolute!important;
    top:-8px!important;
    right:-9px!important;
    min-width:18px!important;
    height:18px!important;
    padding:0 4px!important;
    border-radius:999px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#16a34a!important;
    color:#fff!important;
    border:2px solid #fff!important;
    font-size:9px!important;
    font-weight:900!important;
    line-height:1!important;
    box-shadow:0 4px 10px rgba(22,163,74,.25)!important;
    z-index:8!important;
}
.ldcrm-v25 .msg-badge.f1,
.ldcrm-v25 .msg-badge.f2,
.ldcrm-v25 .msg-badge.f3{
    background:#f59e0b!important;
    box-shadow:0 4px 10px rgba(245,158,11,.25)!important;
}
.ldcrm-v25 .msg-badge.m2{
    background:#2563eb!important;
    box-shadow:0 4px 10px rgba(37,99,235,.25)!important;
}
.ldcrm-v25 .msg-icon-wrap .msg-badge:nth-of-type(2){
    right:-22px!important;
}
.ldcrm-v25 .msg-icon-wrap .msg-badge:nth-of-type(3){
    right:-35px!important;
}
.ldcrm-v25 .msg-icon-wrap .msg-badge:nth-of-type(4){
    right:-48px!important;
}
.ldcrm-v25 .social-wrap{
    margin:0 5px!important;
}
.ldcrm-v25 .social-ok{
    min-width:14px!important;
    height:14px!important;
    top:-5px!important;
    right:-6px!important;
    font-size:8px!important;
    padding:0!important;
}
.ldcrm-v25 #ldcrm-table td{
    overflow:visible!important;
}
.ldcrm-v25 .ldcrm-table-wrap{
    overflow:auto!important;
}


/* =========================================================
   v4.0 Badge Header Overlap + Social Check + Credit Fix
   ========================================================= */

/* Stop badges from going over sticky table heading */
.ldcrm-v25 #ldcrm-table thead th{
    z-index:30!important;
}
.ldcrm-v25 #ldcrm-table tbody td{
    position:relative!important;
    z-index:1!important;
}
.ldcrm-v25 #ldcrm-table tbody tr:hover td{
    z-index:2!important;
}

/* Message badges stay inside cell, not above heading */
.ldcrm-v25 .msg-icon-wrap{
    padding-top:6px!important;
}
.ldcrm-v25 .msg-badge{
    top:-2px!important;
    right:-8px!important;
    z-index:4!important;
}
.ldcrm-v25 .msg-icon-wrap .msg-badge:nth-of-type(2){
    right:-20px!important;
}
.ldcrm-v25 .msg-icon-wrap .msg-badge:nth-of-type(3){
    right:-32px!important;
}
.ldcrm-v25 .msg-icon-wrap .msg-badge:nth-of-type(4){
    right:-44px!important;
}

/* Social media icons do not need green tick badges */
.ldcrm-v25 .social-ok{
    display:none!important;
}

/* Keep table row from visually bleeding into header */
.ldcrm-v25 .ldcrm-table-wrap{
    isolation:isolate!important;
}




/* =========================================================
   v4.2 Scroll + Status Hover Tooltip Fix
   ========================================================= */

/* Restore database scrolling */
.ldcrm-v25 .ldcrm-table-card,
.ldcrm-v25 .ldcrm-content-v25 > .ldcrm-card:last-of-type{
    overflow:hidden!important;
}
.ldcrm-v25 .ldcrm-table-wrap{
    overflow:auto!important;
    flex:1 1 auto!important;
    min-height:0!important;
    position:relative!important;
}

/* Keep table header sticky */
.ldcrm-v25 #ldcrm-table thead th{
    position:sticky!important;
    top:0!important;
    z-index:50!important;
}

/* Status cell compact and hoverable */
.ldcrm-v25 .status-cell.compact-info-cell{
    position:relative!important;
    overflow:visible!important;
}
.ldcrm-v25 .status-pill{
    position:relative!important;
    cursor:help!important;
    overflow:visible!important;
}

/* Show status details below the badge, not behind header */
.ldcrm-v25 .status-pill:hover::after{
    content:attr(data-tooltip)!important;
    position:absolute!important;
    left:50%!important;
    top:calc(100% + 10px)!important;
    transform:translateX(-50%)!important;
    width:260px!important;
    max-width:320px!important;
    white-space:pre-line!important;
    text-align:left!important;
    background:#0f172a!important;
    color:#fff!important;
    border-radius:12px!important;
    padding:12px 14px!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.55!important;
    box-shadow:0 18px 45px rgba(15,23,42,.28)!important;
    z-index:99999!important;
}
.ldcrm-v25 .status-pill:hover::before{
    content:""!important;
    position:absolute!important;
    left:50%!important;
    top:calc(100% + 5px)!important;
    transform:translateX(-50%) rotate(45deg)!important;
    width:10px!important;
    height:10px!important;
    background:#0f172a!important;
    z-index:99999!important;
}

/* If the first row is too close to header, tooltip should still show inside row area */
.ldcrm-v25 #ldcrm-table tbody tr:first-child .status-pill:hover::after{
    top:calc(100% + 10px)!important;
}


/* =========================================================
   v4.3 Functional Message Step + Status Save
   ========================================================= */
.ldcrm-v25 .step-radio{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    background:#eef2ff!important;
    color:#3730a3!important;
    border:1px solid #c7d2fe!important;
    border-radius:10px!important;
    padding:8px 10px!important;
    margin-bottom:10px!important;
    font-weight:900!important;
}
.ldcrm-v25 .step-radio input{
    width:16px!important;
    height:16px!important;
    min-height:16px!important;
}
.ldcrm-v25 .msg-badge.active-step{
    background:#16a34a!important;
    color:#fff!important;
}
.ldcrm-v25 #save-messages:disabled,
.ldcrm-v25 #save-status:disabled{
    opacity:.7!important;
    cursor:not-allowed!important;
}


/* =========================================================
   v4.4 Button JS Fix
   ========================================================= */
.ldcrm-v25 button{
    cursor:pointer!important;
}


/* =========================================================
   v4.5 Instant Save + No Alert Popup
   ========================================================= */
.ldcrm-toast{
    position:fixed!important;
    right:22px!important;
    bottom:22px!important;
    z-index:9999999!important;
    background:#16a34a!important;
    color:#fff!important;
    border-radius:12px!important;
    padding:12px 16px!important;
    font-size:13px!important;
    font-weight:900!important;
    box-shadow:0 18px 45px rgba(15,23,42,.25)!important;
    opacity:0!important;
    transform:translateY(10px)!important;
    transition:.2s ease!important;
}
.ldcrm-toast.show{
    opacity:1!important;
    transform:translateY(0)!important;
}
.ldcrm-toast.error{
    background:#dc2626!important;
}


/* =========================================================
   v4.6 Reference Sites Layout + Industry Type Label
   ========================================================= */

/* Reference site cards: text left, checkbox right */
.ldcrm-v25 .refs label{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    text-align:left!important;
    flex-direction:row-reverse!important;
    padding:9px 12px!important;
}
.ldcrm-v25 .refs label input[type="checkbox"]{
    flex:0 0 auto!important;
    width:16px!important;
    height:16px!important;
    margin:0!important;
    order:2!important;
}
.ldcrm-v25 .refs label{
    font-weight:800!important;
}
.ldcrm-v25 .refs label::first-letter{
    text-transform:none!important;
}

/* Industry type column */
.ldcrm-v25 .cell-other{
    font-weight:700!important;
    color:#334155!important;
    min-width:120px!important;
}


/* =========================================================
   v4.7 Layout + Industry Type Fix
   ========================================================= */

/* Industry Type should show normal text, not URL style */
.ldcrm-v25 .cell-other{
    color:#0f172a!important;
    background:#fff7ed!important;
    font-weight:700!important;
    text-align:center!important;
    min-width:120px!important;
    word-break:normal!important;
}

/* Lead Database title one line and smaller */
.ldcrm-v25 .table-head{
    display:grid!important;
    grid-template-columns:auto 1fr auto!important;
    align-items:center!important;
    gap:10px!important;
    position:relative!important;
}
.ldcrm-v25 .table-head h3{
    white-space:nowrap!important;
    font-size:18px!important;
    line-height:1!important;
    margin:0!important;
}

/* Bulk action buttons to right */
.ldcrm-v25 .bulk-actions{
    order:3!important;
    justify-self:end!important;
    display:flex!important;
    gap:8px!important;
    align-items:center!important;
}
.ldcrm-v25 #ldcrm-select-all,
.ldcrm-v25 #ldcrm-bulk-delete{
    height:30px!important;
    padding:0 10px!important;
    font-size:11px!important;
    line-height:1!important;
}

/* Search smaller */
.ldcrm-v25 #ldcrm-search{
    order:2!important;
    justify-self:end!important;
    max-width:320px!important;
    width:320px!important;
}

/* Filters smaller */
.ldcrm-v25 .ldcrm-filters select,
.ldcrm-v25 .ldcrm-filters button{
    height:36px!important;
    font-size:12px!important;
}

/* Put search visually at right of filter row on desktop */
@media(min-width:900px){
    .ldcrm-v25 .ldcrm-table-card,
    .ldcrm-v25 .ldcrm-content-v25 > .ldcrm-card:last-of-type{
        position:relative!important;
    }
    .ldcrm-v25 .ldcrm-filters{
        display:grid!important;
        grid-template-columns:repeat(4,minmax(150px,1fr)) 160px!important;
        padding-right:348px!important;
        gap:8px!important;
        position:relative!important;
    }
    .ldcrm-v25 .table-head #ldcrm-search{
        position:absolute!important;
        right:16px!important;
        top:-58px!important;
        z-index:10!important;
        width:320px!important;
        max-width:320px!important;
        background:#fff!important;
    }
}

/* Mobile/tablet fallback */
@media(max-width:899px){
    .ldcrm-v25 .ldcrm-filters{
        grid-template-columns:1fr!important;
        padding-right:10px!important;
    }
    .ldcrm-v25 .table-head{
        grid-template-columns:1fr!important;
    }
    .ldcrm-v25 #ldcrm-search{
        width:100%!important;
        max-width:100%!important;
        justify-self:stretch!important;
    }
    .ldcrm-v25 .bulk-actions{
        justify-self:stretch!important;
        width:100%!important;
    }
    .ldcrm-v25 .bulk-actions button{
        flex:1!important;
    }
}


/* =========================================================
   v4.8 Compact Stats + Actions on Same Row
   ========================================================= */

/* Header title row compact */
.ldcrm-v25 .ldcrm-topbar,
.ldcrm-v25 .ldcrm-header,
.ldcrm-v25 .ldcrm-page-head{
    margin-bottom:10px!important;
}

/* Put stats and top action buttons in one row */
.ldcrm-v25 .stats-grid,
.ldcrm-v25 .ldcrm-stats,
.ldcrm-v25 .stat-grid{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(120px,1fr)) 360px!important;
    gap:8px!important;
    align-items:stretch!important;
    margin-bottom:10px!important;
}

/* Move top buttons visually to the right side of stats row */
.ldcrm-v25 .top-actions,
.ldcrm-v25 .ldcrm-actions,
.ldcrm-v25 .header-actions{
    grid-column:7!important;
    grid-row:1!important;
    align-self:center!important;
    justify-self:end!important;
    display:flex!important;
    gap:8px!important;
    align-items:center!important;
    margin:0!important;
}

/* If action buttons are inside header, move them down to stats row area */
.ldcrm-v25 .ldcrm-topbar .top-actions,
.ldcrm-v25 .ldcrm-header .top-actions,
.ldcrm-v25 .ldcrm-page-head .top-actions,
.ldcrm-v25 .ldcrm-topbar .ldcrm-actions,
.ldcrm-v25 .ldcrm-header .ldcrm-actions,
.ldcrm-v25 .ldcrm-page-head .ldcrm-actions,
.ldcrm-v25 .ldcrm-topbar .header-actions,
.ldcrm-v25 .ldcrm-header .header-actions,
.ldcrm-v25 .ldcrm-page-head .header-actions{
    position:absolute!important;
    right:18px!important;
    top:78px!important;
    z-index:20!important;
}

/* Compact stats cards */
.ldcrm-v25 .stat-card,
.ldcrm-v25 .stats-card,
.ldcrm-v25 .ldcrm-stat-card{
    min-height:56px!important;
    height:56px!important;
    padding:8px 12px!important;
    border-radius:10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-direction:column!important;
}
.ldcrm-v25 .stat-card h4,
.ldcrm-v25 .stats-card h4,
.ldcrm-v25 .ldcrm-stat-card h4,
.ldcrm-v25 .stat-card .stat-label,
.ldcrm-v25 .stats-card .stat-label,
.ldcrm-v25 .ldcrm-stat-card .stat-label{
    font-size:11px!important;
    line-height:1.1!important;
    margin:0 0 3px!important;
}
.ldcrm-v25 .stat-card strong,
.ldcrm-v25 .stats-card strong,
.ldcrm-v25 .ldcrm-stat-card strong,
.ldcrm-v25 .stat-card .stat-number,
.ldcrm-v25 .stats-card .stat-number,
.ldcrm-v25 .ldcrm-stat-card .stat-number{
    font-size:20px!important;
    line-height:1!important;
    margin:0!important;
}

/* Compact top buttons */
.ldcrm-v25 .top-actions button,
.ldcrm-v25 .ldcrm-actions button,
.ldcrm-v25 .header-actions button,
.ldcrm-v25 #ldcrm-import-open,
.ldcrm-v25 #ldcrm-export,
.ldcrm-v25 #ldcrm-add-open{
    height:36px!important;
    padding:0 14px!important;
    border-radius:8px!important;
    font-size:12px!important;
    white-space:nowrap!important;
}

/* Give room for buttons on the stats row when actions are absolute */
.ldcrm-v25 .stats-grid,
.ldcrm-v25 .ldcrm-stats,
.ldcrm-v25 .stat-grid{
    padding-right:380px!important;
}

/* Remove old top-right spacing */
.ldcrm-v25 .ldcrm-topbar,
.ldcrm-v25 .ldcrm-header,
.ldcrm-v25 .ldcrm-page-head{
    position:relative!important;
}

/* Responsive */
@media(max-width:1200px){
    .ldcrm-v25 .stats-grid,
    .ldcrm-v25 .ldcrm-stats,
    .ldcrm-v25 .stat-grid{
        grid-template-columns:repeat(3,1fr)!important;
        padding-right:0!important;
    }
    .ldcrm-v25 .ldcrm-topbar .top-actions,
    .ldcrm-v25 .ldcrm-header .top-actions,
    .ldcrm-v25 .ldcrm-page-head .top-actions,
    .ldcrm-v25 .ldcrm-topbar .ldcrm-actions,
    .ldcrm-v25 .ldcrm-header .ldcrm-actions,
    .ldcrm-v25 .ldcrm-page-head .ldcrm-actions,
    .ldcrm-v25 .ldcrm-topbar .header-actions,
    .ldcrm-v25 .ldcrm-header .header-actions,
    .ldcrm-v25 .ldcrm-page-head .header-actions{
        position:static!important;
        margin-top:10px!important;
        justify-content:flex-end!important;
    }
}
@media(max-width:700px){
    .ldcrm-v25 .stats-grid,
    .ldcrm-v25 .ldcrm-stats,
    .ldcrm-v25 .stat-grid{
        grid-template-columns:repeat(2,1fr)!important;
    }
    .ldcrm-v25 .top-actions,
    .ldcrm-v25 .ldcrm-actions,
    .ldcrm-v25 .header-actions{
        flex-wrap:wrap!important;
    }
}


/* =========================================================
   v4.9 Exact Filter/Search/Table Header Layout
   ========================================================= */

/* Stats stay full row; top buttons remain top-right */
.ldcrm-v25 .ldcrm-summary,
.ldcrm-v25 .stats-grid,
.ldcrm-v25 .ldcrm-stats,
.ldcrm-v25 .stat-grid{
    padding-right:0!important;
}

/* Remove old standalone filter card spacing if moved */
.ldcrm-v25 .ldcrm-content-v25 > .ldcrm-filters{
    display:none!important;
}

/* Table header: title left, filter/search center, bulk buttons right */
.ldcrm-v25 .table-head{
    display:grid!important;
    grid-template-columns:150px minmax(520px,1fr) auto!important;
    align-items:center!important;
    gap:14px!important;
    padding:14px 16px!important;
    position:relative!important;
}
.ldcrm-v25 .table-head h3{
    font-size:18px!important;
    white-space:nowrap!important;
    line-height:1.1!important;
    margin:0!important;
}

/* Center area contains filters + search exactly like marked screenshot */
.ldcrm-v25 .ldcrm-table-controls-row{
    display:grid!important;
    grid-template-columns:minmax(130px,1fr) minmax(130px,1fr) minmax(130px,1fr) minmax(130px,1fr) 140px minmax(220px,320px)!important;
    gap:8px!important;
    align-items:center!important;
    width:100%!important;
}
.ldcrm-v25 .ldcrm-table-controls-row .ldcrm-filters{
    display:contents!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}
.ldcrm-v25 .ldcrm-table-controls-row select,
.ldcrm-v25 .ldcrm-table-controls-row button,
.ldcrm-v25 .ldcrm-table-controls-row #ldcrm-search{
    height:34px!important;
    min-height:34px!important;
    border-radius:8px!important;
    font-size:12px!important;
    padding:0 10px!important;
}
.ldcrm-v25 .ldcrm-table-controls-row #clear-filters{
    min-width:130px!important;
    background:#0f172a!important;
    color:#fff!important;
    border:0!important;
}
.ldcrm-v25 .ldcrm-table-controls-row #ldcrm-search{
    width:100%!important;
    max-width:320px!important;
    justify-self:end!important;
    position:static!important;
    top:auto!important;
    right:auto!important;
}

/* Bulk actions right side */
.ldcrm-v25 .bulk-actions{
    justify-self:end!important;
    display:flex!important;
    gap:8px!important;
    align-items:center!important;
    white-space:nowrap!important;
}
.ldcrm-v25 #ldcrm-select-all,
.ldcrm-v25 #ldcrm-bulk-delete{
    height:34px!important;
    border-radius:8px!important;
    padding:0 12px!important;
    font-size:11px!important;
    font-weight:900!important;
}

/* Override older v4.7 absolute search placement */
@media(min-width:900px){
    .ldcrm-v25 .table-head #ldcrm-search{
        position:static!important;
        right:auto!important;
        top:auto!important;
        z-index:auto!important;
        width:100%!important;
        max-width:320px!important;
    }
    .ldcrm-v25 .ldcrm-filters{
        padding-right:0!important;
        grid-template-columns:none!important;
    }
}

/* Responsive fallback */
@media(max-width:1250px){
    .ldcrm-v25 .table-head{
        grid-template-columns:1fr!important;
    }
    .ldcrm-v25 .ldcrm-table-controls-row{
        grid-template-columns:repeat(2,minmax(140px,1fr))!important;
    }
    .ldcrm-v25 .ldcrm-table-controls-row #ldcrm-search{
        max-width:100%!important;
    }
    .ldcrm-v25 .bulk-actions{
        justify-self:stretch!important;
    }
    .ldcrm-v25 .bulk-actions button{
        flex:1!important;
    }
}
@media(max-width:650px){
    .ldcrm-v25 .ldcrm-table-controls-row{
        grid-template-columns:1fr!important;
    }
}


/* =========================================================
   v5.0 Clean Table Controls Layout
   ========================================================= */

/* Exact row: Lead Database | 4 filters + clear + search | buttons */
.ldcrm-v25 .table-head.ldcrm-clean-controls{
    display:grid!important;
    grid-template-columns:155px minmax(720px,1fr) auto!important;
    align-items:center!important;
    gap:12px!important;
    padding:14px 16px!important;
    position:relative!important;
}

.ldcrm-v25 .table-head.ldcrm-clean-controls h3{
    font-size:18px!important;
    line-height:1!important;
    margin:0!important;
    white-space:nowrap!important;
}

.ldcrm-v25 .ldcrm-table-controls-row{
    display:grid!important;
    grid-template-columns:minmax(145px,1fr) minmax(145px,1fr) minmax(145px,1fr) minmax(145px,1fr) 135px 230px!important;
    gap:8px!important;
    align-items:center!important;
    width:100%!important;
    min-width:0!important;
}

.ldcrm-v25 .ldcrm-table-controls-row .ldcrm-filters{
    display:contents!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}

.ldcrm-v25 .ldcrm-table-controls-row select,
.ldcrm-v25 .ldcrm-table-controls-row #clear-filters,
.ldcrm-v25 .ldcrm-table-controls-row #ldcrm-search{
    height:34px!important;
    min-height:34px!important;
    border-radius:8px!important;
    font-size:12px!important;
    padding:0 10px!important;
    width:100%!important;
    position:static!important;
    top:auto!important;
    right:auto!important;
    max-width:none!important;
}

.ldcrm-v25 .ldcrm-table-controls-row #clear-filters{
    background:#0f172a!important;
    color:#fff!important;
    border:0!important;
    font-weight:900!important;
}

.ldcrm-v25 .bulk-actions{
    justify-self:end!important;
    display:flex!important;
    gap:8px!important;
    align-items:center!important;
    white-space:nowrap!important;
    width:auto!important;
}

.ldcrm-v25 .bulk-actions #ldcrm-select-all,
.ldcrm-v25 .bulk-actions #ldcrm-bulk-delete{
    height:34px!important;
    min-height:34px!important;
    padding:0 12px!important;
    border-radius:8px!important;
    font-size:11px!important;
    font-weight:900!important;
    line-height:1!important;
}

/* Cancel older absolute/padding rules */
@media(min-width:900px){
    .ldcrm-v25 .table-head.ldcrm-clean-controls #ldcrm-search{
        position:static!important;
        right:auto!important;
        top:auto!important;
        width:100%!important;
        max-width:none!important;
    }
    .ldcrm-v25 .ldcrm-table-controls-row .ldcrm-filters,
    .ldcrm-v25 .ldcrm-filters{
        padding-right:0!important;
        grid-template-columns:none!important;
    }
}

/* Medium screens */
@media(max-width:1450px){
    .ldcrm-v25 .table-head.ldcrm-clean-controls{
        grid-template-columns:145px minmax(620px,1fr) auto!important;
        gap:10px!important;
    }
    .ldcrm-v25 .ldcrm-table-controls-row{
        grid-template-columns:repeat(2,minmax(150px,1fr)) 135px minmax(200px,1fr)!important;
    }
}

/* Small screens */
@media(max-width:980px){
    .ldcrm-v25 .table-head.ldcrm-clean-controls{
        grid-template-columns:1fr!important;
    }
    .ldcrm-v25 .ldcrm-table-controls-row{
        grid-template-columns:1fr!important;
    }
    .ldcrm-v25 .bulk-actions{
        justify-self:stretch!important;
        width:100%!important;
    }
    .ldcrm-v25 .bulk-actions button{
        flex:1!important;
    }
}


/* =========================================================
   v5.1 Status Tooltip Table Layout
   ========================================================= */

/* Hide old data-tooltip pseudo tooltip for status */
.ldcrm-v25 .status-pill::before,
.ldcrm-v25 .status-pill::after{
    display:none!important;
    content:none!important;
}

/* Status tooltip table */
.ldcrm-v25 .status-tooltip-wrap{
    position:relative!important;
    overflow:visible!important;
}

.ldcrm-v25 .status-tooltip-table{
    position:absolute!important;
    left:50%!important;
    top:calc(100% + 10px)!important;
    transform:translateX(-50%)!important;
    width:max-content!important;
    min-width:300px!important;
    max-width:min(560px, 80vw)!important;
    background:#0f172a!important;
    color:#fff!important;
    border-radius:12px!important;
    padding:10px!important;
    box-shadow:0 18px 45px rgba(15,23,42,.30)!important;
    z-index:999999!important;
    display:none!important;
    text-align:left!important;
    white-space:normal!important;
}

.ldcrm-v25 .status-tooltip-table::before{
    content:""!important;
    position:absolute!important;
    left:50%!important;
    top:-5px!important;
    width:10px!important;
    height:10px!important;
    background:#0f172a!important;
    transform:translateX(-50%) rotate(45deg)!important;
}

.ldcrm-v25 .status-tooltip-wrap:hover .status-tooltip-table{
    display:block!important;
}

.ldcrm-v25 .status-tooltip-table .st-row{
    display:grid!important;
    grid-template-columns:96px minmax(160px,1fr)!important;
    gap:10px!important;
    align-items:start!important;
    border-bottom:1px solid rgba(255,255,255,.12)!important;
    padding:7px 6px!important;
}

.ldcrm-v25 .status-tooltip-table .st-row:last-child{
    border-bottom:0!important;
}

.ldcrm-v25 .status-tooltip-table .st-label{
    color:#cbd5e1!important;
    font-size:11px!important;
    font-weight:900!important;
    text-transform:uppercase!important;
    letter-spacing:.03em!important;
}

.ldcrm-v25 .status-tooltip-table .st-value{
    color:#fff!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.45!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
}

/* allow tooltip visibility but keep table scroll */
.ldcrm-v25 .status-cell,
.ldcrm-v25 .status-cell *{
    overflow:visible!important;
}

.ldcrm-v25 #ldcrm-table tbody td{
    overflow:visible!important;
}

.ldcrm-v25 .ldcrm-table-wrap{
    overflow:auto!important;
}


/* =========================================================
   v5.2 Mobile App Responsive Design + Scroll Fix
   ========================================================= */

/* General mobile scroll safety */
@media(max-width: 768px){
    html body:has(.ldcrm-wrap.ldcrm-v25){
        overflow:auto!important;
        height:auto!important;
    }

    html body .ldcrm-wrap.ldcrm-v25{
        width:100%!important;
        max-width:100%!important;
        height:100dvh!important;
        min-height:100dvh!important;
        max-height:100dvh!important;
        overflow:hidden!important;
        display:flex!important;
        flex-direction:column!important;
        background:#f6f8fc!important;
        border-radius:0!important;
        margin:0!important;
        padding:0!important;
    }

    /* Sidebar becomes a mobile app top navigation */
    .ldcrm-v25 .ldcrm-sidebar-v25{
        width:100%!important;
        min-height:auto!important;
        height:auto!important;
        max-height:none!important;
        padding:10px 10px 8px!important;
        border-radius:0 0 18px 18px!important;
        position:relative!important;
        overflow:visible!important;
        flex:0 0 auto!important;
        box-shadow:0 8px 24px rgba(15,23,42,.16)!important;
    }

    .ldcrm-v25 .side-brand{
        margin:0 0 10px!important;
        display:flex!important;
        align-items:center!important;
        justify-content:flex-start!important;
    }

    .ldcrm-v25 .side-logo{
        width:36px!important;
        height:36px!important;
        border-radius:12px!important;
    }

    .ldcrm-v25 .side-brand strong{
        font-size:15px!important;
    }

    .ldcrm-v25 .side-brand small{
        font-size:11px!important;
    }

    .ldcrm-v25 .ldcrm-sidebar-v25 nav{
        display:flex!important;
        flex-direction:row!important;
        gap:8px!important;
        overflow-x:auto!important;
        overflow-y:hidden!important;
        padding:2px 0 4px!important;
        scrollbar-width:none!important;
        -webkit-overflow-scrolling:touch!important;
    }

    .ldcrm-v25 .ldcrm-sidebar-v25 nav::-webkit-scrollbar{
        display:none!important;
    }

    .ldcrm-v25 .ldcrm-sidebar-v25 nav a{
        flex:0 0 auto!important;
        white-space:nowrap!important;
        font-size:12px!important;
        padding:9px 12px!important;
        border-radius:999px!important;
        background:rgba(255,255,255,.06)!important;
    }

    .ldcrm-v25 .side-stats{
        display:none!important;
    }

    /* Main app area scrolls vertically */
    .ldcrm-v25 .ldcrm-content-v25{
        flex:1 1 auto!important;
        height:auto!important;
        min-height:0!important;
        overflow-y:auto!important;
        overflow-x:hidden!important;
        -webkit-overflow-scrolling:touch!important;
        padding:12px!important;
    }

    /* Header app card */
    .ldcrm-v25 .ldcrm-top,
    .ldcrm-v25 .ldcrm-header,
    .ldcrm-v25 .ldcrm-topbar,
    .ldcrm-v25 .ldcrm-page-head{
        display:flex!important;
        flex-direction:column!important;
        align-items:stretch!important;
        gap:10px!important;
        padding:12px!important;
        background:#fff!important;
        border-radius:16px!important;
        box-shadow:0 8px 22px rgba(15,23,42,.06)!important;
        margin-bottom:10px!important;
    }

    .ldcrm-v25 .ldcrm-top h2,
    .ldcrm-v25 .ldcrm-header h2,
    .ldcrm-v25 .ldcrm-topbar h2,
    .ldcrm-v25 .ldcrm-page-head h2{
        font-size:20px!important;
        line-height:1.15!important;
        margin:0!important;
    }

    .ldcrm-v25 .ldcrm-top p,
    .ldcrm-v25 .ldcrm-header p,
    .ldcrm-v25 .ldcrm-topbar p,
    .ldcrm-v25 .ldcrm-page-head p{
        font-size:12px!important;
        margin:3px 0 0!important;
    }

    .ldcrm-v25 .top-actions,
    .ldcrm-v25 .ldcrm-actions,
    .ldcrm-v25 .header-actions,
    .ldcrm-v25 .ldcrm-top-actions{
        position:static!important;
        display:grid!important;
        grid-template-columns:1fr 1fr!important;
        gap:8px!important;
        width:100%!important;
        justify-content:stretch!important;
    }

    .ldcrm-v25 #ldcrm-add-open{
        grid-column:1 / -1!important;
    }

    .ldcrm-v25 #ldcrm-import-open,
    .ldcrm-v25 #ldcrm-export,
    .ldcrm-v25 #ldcrm-add-open{
        width:100%!important;
        height:40px!important;
        border-radius:12px!important;
        font-size:12px!important;
    }

    /* Stats: app cards 2 columns */
    .ldcrm-v25 .stats-grid,
    .ldcrm-v25 .ldcrm-stats,
    .ldcrm-v25 .stat-grid,
    .ldcrm-v25 .ldcrm-summary{
        display:grid!important;
        grid-template-columns:1fr 1fr!important;
        gap:8px!important;
        margin:10px 0!important;
        padding:0!important;
    }

    .ldcrm-v25 .stat-card,
    .ldcrm-v25 .stats-card,
    .ldcrm-v25 .ldcrm-stat-card,
    .ldcrm-v25 .sum-card{
        min-height:64px!important;
        height:auto!important;
        padding:10px!important;
        border-radius:14px!important;
        box-shadow:0 8px 18px rgba(15,23,42,.05)!important;
    }

    .ldcrm-v25 .sum-card span,
    .ldcrm-v25 .sum-card strong{
        margin-left:0!important;
    }

    .ldcrm-v25 .sum-card:before{
        display:none!important;
    }

    /* Table controls stack like mobile app filters */
    .ldcrm-v25 .table-head.ldcrm-clean-controls,
    .ldcrm-v25 .table-head{
        display:flex!important;
        flex-direction:column!important;
        align-items:stretch!important;
        gap:10px!important;
        padding:12px!important;
        border-radius:16px 16px 0 0!important;
    }

    .ldcrm-v25 .table-head h3{
        font-size:18px!important;
        white-space:nowrap!important;
    }

    .ldcrm-v25 .ldcrm-table-controls-row{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:8px!important;
        width:100%!important;
    }

    .ldcrm-v25 .ldcrm-table-controls-row .ldcrm-filters{
        display:grid!important;
        grid-template-columns:1fr 1fr!important;
        gap:8px!important;
        background:transparent!important;
        border:0!important;
        box-shadow:none!important;
        padding:0!important;
        margin:0!important;
    }

    .ldcrm-v25 .ldcrm-table-controls-row #clear-filters{
        grid-column:1 / -1!important;
    }

    .ldcrm-v25 .ldcrm-table-controls-row #ldcrm-search{
        width:100%!important;
        max-width:100%!important;
        height:40px!important;
        position:static!important;
    }

    .ldcrm-v25 .ldcrm-table-controls-row select,
    .ldcrm-v25 .ldcrm-table-controls-row button{
        height:40px!important;
        font-size:12px!important;
        border-radius:12px!important;
    }

    .ldcrm-v25 .bulk-actions{
        display:grid!important;
        grid-template-columns:1fr 1fr!important;
        gap:8px!important;
        width:100%!important;
    }

    .ldcrm-v25 #ldcrm-select-all,
    .ldcrm-v25 #ldcrm-bulk-delete{
        height:40px!important;
        width:100%!important;
        border-radius:12px!important;
    }

    /* Database area: horizontal and vertical scroll works on phone */
    .ldcrm-v25 .ldcrm-table-card,
    .ldcrm-v25 .ldcrm-content-v25 > .ldcrm-card:last-of-type{
        flex:0 0 auto!important;
        height:auto!important;
        max-height:none!important;
        min-height:auto!important;
        overflow:visible!important;
        border-radius:16px!important;
        margin-bottom:16px!important;
    }

    .ldcrm-v25 .ldcrm-table-wrap{
        width:100%!important;
        max-height:52dvh!important;
        min-height:260px!important;
        overflow:auto!important;
        -webkit-overflow-scrolling:touch!important;
        border-radius:0 0 16px 16px!important;
        touch-action:auto!important;
    }

    .ldcrm-v25 #ldcrm-table{
        min-width:1120px!important;
        width:max-content!important;
    }

    .ldcrm-v25 #ldcrm-table th{
        position:sticky!important;
        top:0!important;
        z-index:20!important;
        font-size:11px!important;
        padding:9px 7px!important;
    }

    .ldcrm-v25 #ldcrm-table td{
        font-size:11px!important;
        padding:9px 7px!important;
    }

    /* Modals become mobile bottom sheets */
    .ldcrm-v25 .ldcrm-modal,
    #ldcrm-modal,
    #ldcrm-import-modal,
    .ldcrm-v25 .ldcrm-add-modal-v25{
        align-items:flex-end!important;
        padding:0!important;
        overflow:hidden!important;
    }

    .ldcrm-v25 .ldcrm-modal-box,
    .ldcrm-modal-box,
    .ldcrm-v25 .ldcrm-add-modal-v25 form.ldcrm-card,
    .ldcrm-v25 .ldcrm-add-modal-v25 > .ldcrm-card:not(form){
        width:100%!important;
        max-width:100%!important;
        max-height:88dvh!important;
        border-radius:22px 22px 0 0!important;
        overflow-y:auto!important;
        -webkit-overflow-scrolling:touch!important;
        padding:18px 14px!important;
        box-sizing:border-box!important;
    }

    .ldcrm-v25 #ldcrm-form{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:10px!important;
    }

    .ldcrm-v25 .ldcrm-add-modal-v25{
        flex-direction:column!important;
        justify-content:flex-end!important;
    }

    .ldcrm-v25 .ldcrm-add-modal-v25 > .ldcrm-card:not(form){
        max-height:42dvh!important;
    }

    .ldcrm-v25 .msg-block{
        padding:12px!important;
        border-radius:14px!important;
    }

    .ldcrm-v25 .msg-block input,
    .ldcrm-v25 .msg-block textarea,
    .ldcrm-v25 .msg-block select{
        font-size:13px!important;
    }

    .ldcrm-v25 .status-grid{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:10px!important;
    }

    /* Tooltip table fits phone */
    .ldcrm-v25 .status-tooltip-table{
        position:fixed!important;
        left:12px!important;
        right:12px!important;
        top:auto!important;
        bottom:14px!important;
        transform:none!important;
        width:auto!important;
        min-width:0!important;
        max-width:none!important;
        max-height:60dvh!important;
        overflow:auto!important;
    }

    .ldcrm-v25 .status-tooltip-table::before{
        display:none!important;
    }

    .ldcrm-v25 .status-tooltip-table .st-row{
        grid-template-columns:88px minmax(0,1fr)!important;
    }

    /* Toast mobile */
    .ldcrm-toast{
        left:12px!important;
        right:12px!important;
        bottom:12px!important;
        text-align:center!important;
    }
}

@media(max-width:420px){
    .ldcrm-v25 .ldcrm-table-controls-row .ldcrm-filters{
        grid-template-columns:1fr!important;
    }
    .ldcrm-v25 .stats-grid,
    .ldcrm-v25 .ldcrm-stats,
    .ldcrm-v25 .stat-grid,
    .ldcrm-v25 .ldcrm-summary{
        grid-template-columns:1fr 1fr!important;
    }
}


/* =========================================================
   v5.3 Feature Cards + Monthly Database
   ========================================================= */
.ldcrm-v25 .ldcrm-monthbar{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    background:#fff!important;
    border:1px solid #e8edf5!important;
    border-radius:14px!important;
    padding:12px 14px!important;
    margin:10px 0!important;
    box-shadow:0 8px 20px rgba(15,23,42,.04)!important;
}
.ldcrm-v25 .ldcrm-monthbar strong{
    display:block!important;
    color:#0f172a!important;
    font-size:14px!important;
    font-weight:900!important;
}
.ldcrm-v25 .ldcrm-monthbar span{
    display:block!important;
    color:#64748b!important;
    font-size:12px!important;
    margin-top:2px!important;
}
.ldcrm-v25 .month-actions{
    display:flex!important;
    gap:8px!important;
    align-items:center!important;
    flex-wrap:wrap!important;
}
.ldcrm-v25 .month-actions select,
.ldcrm-v25 .month-actions input,
.ldcrm-v25 .month-actions button{
    height:36px!important;
    border-radius:9px!important;
    border:1px solid #dbe3ee!important;
    background:#fff!important;
    padding:0 10px!important;
    font-size:12px!important;
    font-weight:800!important;
}
.ldcrm-v25 .month-actions button{
    background:linear-gradient(135deg,#2563eb,#7c3aed)!important;
    color:#fff!important;
    border:0!important;
}

.ldcrm-v25 .ldcrm-feature-cards{
    grid-template-columns:repeat(5,minmax(140px,1fr))!important;
    gap:10px!important;
}
.ldcrm-v25 .ldcrm-feature-cards .sum-card{
    min-height:82px!important;
    padding:12px 12px 10px!important;
    border-radius:12px!important;
    position:relative!important;
    overflow:hidden!important;
    display:block!important;
}
.ldcrm-v25 .ldcrm-feature-cards .sum-card span{
    margin:0!important;
    font-size:11px!important;
    color:#334155!important;
    font-weight:900!important;
}
.ldcrm-v25 .ldcrm-feature-cards .sum-card strong{
    margin:5px 0 0!important;
    font-size:24px!important;
    color:#0f172a!important;
    display:block!important;
    line-height:1!important;
}
.ldcrm-v25 .ldcrm-feature-cards .sum-card em{
    display:block!important;
    margin-top:9px!important;
    font-size:10px!important;
    color:#64748b!important;
    font-style:normal!important;
    font-weight:800!important;
}
.ldcrm-v25 .ldcrm-feature-cards .sum-card i{
    position:absolute!important;
    right:12px!important;
    top:12px!important;
    width:26px!important;
    height:26px!important;
    border-radius:50%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-style:normal!important;
    font-size:14px!important;
    background:#eef2ff!important;
    color:#2563eb!important;
}
.ldcrm-v25 .sum-card.newlead{border-left:4px solid #ef4444!important}
.ldcrm-v25 .sum-card.newlead i{background:#fee2e2!important;color:#ef4444!important}
.ldcrm-v25 .sum-card.overdue{border-left:4px solid #f59e0b!important}
.ldcrm-v25 .sum-card.overdue i{background:#fff7ed!important;color:#f59e0b!important}
.ldcrm-v25 .sum-card.converted{border-left:4px solid #22c55e!important}
.ldcrm-v25 .sum-card.converted i{background:#dcfce7!important;color:#16a34a!important}
.ldcrm-v25 .sum-card.lost{border-left:4px solid #8b5cf6!important}
.ldcrm-v25 .sum-card.lost i{background:#ede9fe!important;color:#7c3aed!important}

@media(max-width:1100px){
    .ldcrm-v25 .ldcrm-feature-cards{
        grid-template-columns:repeat(3,1fr)!important;
    }
}
@media(max-width:768px){
    .ldcrm-v25 .ldcrm-monthbar{
        flex-direction:column!important;
        align-items:stretch!important;
    }
    .ldcrm-v25 .month-actions{
        display:grid!important;
        grid-template-columns:1fr 1fr!important;
    }
    .ldcrm-v25 .month-actions button{
        grid-column:1/-1!important;
    }
    .ldcrm-v25 .ldcrm-feature-cards{
        grid-template-columns:1fr 1fr!important;
    }
}
@media(max-width:430px){
    .ldcrm-v25 .ldcrm-feature-cards{
        grid-template-columns:1fr!important;
    }
}


/* =========================================================
   v5.4 Industry Filter + Automatic Unique Colors
   ========================================================= */
.ldcrm-v25 .industry-pill{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:72px!important;
    max-width:160px!important;
    padding:7px 10px!important;
    border-radius:999px!important;
    background:var(--industry-bg)!important;
    color:var(--industry-text)!important;
    border:1px solid var(--industry-border)!important;
    font-size:12px!important;
    font-weight:900!important;
    line-height:1.1!important;
    white-space:normal!important;
    text-align:center!important;
    box-shadow:0 5px 14px rgba(15,23,42,.05)!important;
}

.ldcrm-v25 .cell-other{
    background:#fff!important;
    min-width:120px!important;
    text-align:center!important;
}

/* 5 filters + clear + search */
.ldcrm-v25 .ldcrm-table-controls-row{
    grid-template-columns:minmax(125px,1fr) minmax(125px,1fr) minmax(130px,1fr) minmax(125px,1fr) minmax(130px,1fr) 130px 220px!important;
}

@media(max-width:1450px){
    .ldcrm-v25 .ldcrm-table-controls-row{
        grid-template-columns:repeat(3,minmax(145px,1fr)) 130px minmax(200px,1fr)!important;
    }
}

@media(max-width:980px){
    .ldcrm-v25 .ldcrm-table-controls-row{
        grid-template-columns:1fr!important;
    }
}


/* =========================================================
   v5.5 Header Monthly Database layout + Meaningful Status Colors
   ========================================================= */

/* Top area: title left, action buttons right, monthly database in a clean row below */
.ldcrm-v25 .ldcrm-topbar,
.ldcrm-v25 .ldcrm-header,
.ldcrm-v25 .ldcrm-dashboard-head{
    align-items:flex-start!important;
}

.ldcrm-v25 .ldcrm-month-panel,
.ldcrm-v25 .monthly-database,
.ldcrm-v25 .ldcrm-monthly-database{
    width:100%!important;
    display:grid!important;
    grid-template-columns: minmax(170px, 260px) minmax(220px, 1fr) minmax(220px, 1fr) minmax(260px, 430px)!important;
    gap:14px!important;
    align-items:end!important;
    margin:14px 0 10px!important;
    padding:14px 16px!important;
    border:1px solid #e5e7eb!important;
    border-radius:16px!important;
    background:#ffffff!important;
    box-shadow:0 8px 22px rgba(15,23,42,.04)!important;
}

.ldcrm-v25 .ldcrm-month-panel h3,
.ldcrm-v25 .monthly-database h3,
.ldcrm-v25 .ldcrm-monthly-database h3{
    margin:0!important;
    font-size:16px!important;
    line-height:1.2!important;
    color:#0f172a!important;
    font-weight:900!important;
}

.ldcrm-v25 .ldcrm-month-panel .current-month,
.ldcrm-v25 .monthly-database .current-month,
.ldcrm-v25 .ldcrm-monthly-database .current-month{
    font-size:13px!important;
    color:#475569!important;
    margin-top:6px!important;
    display:block!important;
}

.ldcrm-v25 .ldcrm-month-panel select,
.ldcrm-v25 .monthly-database select,
.ldcrm-v25 .ldcrm-monthly-database select,
.ldcrm-v25 .ldcrm-month-panel input[type="month"],
.ldcrm-v25 .monthly-database input[type="month"],
.ldcrm-v25 .ldcrm-monthly-database input[type="month"]{
    width:100%!important;
    height:42px!important;
    border:1px solid #d7deea!important;
    border-radius:10px!important;
    padding:0 12px!important;
    background:#fff!important;
    font-weight:700!important;
    color:#334155!important;
}

.ldcrm-v25 .ldcrm-month-panel button,
.ldcrm-v25 .monthly-database button,
.ldcrm-v25 .ldcrm-monthly-database button{
    height:42px!important;
    border-radius:10px!important;
    padding:0 18px!important;
    white-space:nowrap!important;
}

/* Hide empty spacer blocks in the monthly row if old markup created blanks */
.ldcrm-v25 .ldcrm-month-panel > *:empty,
.ldcrm-v25 .monthly-database > *:empty,
.ldcrm-v25 .ldcrm-monthly-database > *:empty{
    display:none!important;
}

/* Status colors by business meaning */
.ldcrm-v25 .status-badge,
.ldcrm-v25 .ldcrm-status-pill{
    border-radius:999px!important;
    padding:7px 12px!important;
    font-weight:900!important;
    font-size:12px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px solid transparent!important;
    min-width:58px!important;
}

.ldcrm-v25 .ldcrm-status-positive{
    background:#dcfce7!important;
    color:#166534!important;
    border-color:#86efac!important;
}

.ldcrm-v25 .ldcrm-status-good{
    background:#dbeafe!important;
    color:#1d4ed8!important;
    border-color:#93c5fd!important;
}

.ldcrm-v25 .ldcrm-status-neutral{
    background:#f1f5f9!important;
    color:#334155!important;
    border-color:#cbd5e1!important;
}

.ldcrm-v25 .ldcrm-status-warning{
    background:#ffedd5!important;
    color:#c2410c!important;
    border-color:#fdba74!important;
}

.ldcrm-v25 .ldcrm-status-negative{
    background:#fee2e2!important;
    color:#b91c1c!important;
    border-color:#fca5a5!important;
}

/* Native select options cannot be fully styled in every browser, but this improves supported browsers */
.ldcrm-v25 select option[value="Converted"]{background:#dcfce7;color:#166534;}
.ldcrm-v25 select option[value="Interested"],
.ldcrm-v25 select option[value="Replied"],
.ldcrm-v25 select option[value="Contacted"]{background:#dbeafe;color:#1d4ed8;}
.ldcrm-v25 select option[value="New"],
.ldcrm-v25 select option[value="Follow-up"]{background:#f1f5f9;color:#334155;}
.ldcrm-v25 select option[value="Not Interested"]{background:#ffedd5;color:#c2410c;}
.ldcrm-v25 select option[value="Lost"]{background:#fee2e2;color:#b91c1c;}

@media(max-width:1100px){
    .ldcrm-v25 .ldcrm-month-panel,
    .ldcrm-v25 .monthly-database,
    .ldcrm-v25 .ldcrm-monthly-database{
        grid-template-columns:1fr 1fr!important;
    }
}
@media(max-width:640px){
    .ldcrm-v25 .ldcrm-month-panel,
    .ldcrm-v25 .monthly-database,
    .ldcrm-v25 .ldcrm-monthly-database{
        grid-template-columns:1fr!important;
        padding:12px!important;
    }
}


/* =========================================================
   v5.6 Requested header cleanup + monthly database top alignment
   ========================================================= */
.ldcrm-v25 .ldcrm-top.ldcrm-top-actions-only{
    background:transparent!important;
    color:#0f172a!important;
    padding:0 0 8px!important;
    border-radius:0!important;
    box-shadow:none!important;
    display:flex!important;
    justify-content:flex-end!important;
    align-items:center!important;
    margin:0!important;
}
.ldcrm-v25 .ldcrm-top-actions-only .ldcrm-top-spacer{
    display:none!important;
}
.ldcrm-v25 .ldcrm-top-actions{
    margin-left:auto!important;
    display:flex!important;
    gap:10px!important;
    align-items:center!important;
    justify-content:flex-end!important;
}
.ldcrm-v25 .ldcrm-monthbar.ldcrm-monthbar-v56{
    display:grid!important;
    grid-template-columns:minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(360px, 450px)!important;
    gap:28px!important;
    align-items:center!important;
    width:100%!important;
    margin:0 0 14px!important;
    padding:12px 14px!important;
    border-radius:0!important;
    background:#fff!important;
    border:1px solid #e5e7eb!important;
    box-shadow:none!important;
}
.ldcrm-v25 .ldcrm-monthbar-v56 .ldcrm-month-title{
    padding-left:0!important;
}
.ldcrm-v25 .ldcrm-monthbar-v56 .month-actions{
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
    align-items:stretch!important;
    justify-content:center!important;
}
.ldcrm-v25 .ldcrm-monthbar-v56 .month-actions select,
.ldcrm-v25 .ldcrm-monthbar-v56 .month-actions input{
    width:100%!important;
    height:40px!important;
}
.ldcrm-v25 .ldcrm-monthbar-v56 .ldcrm-month-open-row{
    display:grid!important;
    grid-template-columns:1fr auto!important;
    gap:8px!important;
    align-items:center!important;
}
.ldcrm-v25 .ldcrm-monthbar-v56 #ldcrm-create-month{
    height:40px!important;
    margin:0!important;
    white-space:nowrap!important;
}
@media(max-width:900px){
    .ldcrm-v25 .ldcrm-top.ldcrm-top-actions-only{justify-content:stretch!important}
    .ldcrm-v25 .ldcrm-top-actions{width:100%!important;flex-wrap:wrap!important}
    .ldcrm-v25 .ldcrm-monthbar.ldcrm-monthbar-v56{
        grid-template-columns:1fr!important;
        gap:10px!important;
    }
    .ldcrm-v25 .ldcrm-month-empty{display:none!important}
    .ldcrm-v25 .ldcrm-monthbar-v56 .ldcrm-month-open-row{grid-template-columns:1fr!important}
}

/* =========================================================
   v5.7 Monthly controls: date input + button moved up to middle row
   ========================================================= */
.ldcrm-v25 .ldcrm-monthbar.ldcrm-monthbar-v56{
    grid-template-columns:minmax(220px, 1fr) minmax(390px, 1.15fr) minmax(320px, 450px)!important;
    gap:10px!important;
    align-items:center!important;
}
.ldcrm-v25 .ldcrm-monthbar-v56 > .ldcrm-month-open-row{
    display:grid!important;
    grid-template-columns:minmax(180px, 1fr) auto!important;
    gap:8px!important;
    align-items:center!important;
    width:100%!important;
    align-self:center!important;
}
.ldcrm-v25 .ldcrm-monthbar-v56 > .ldcrm-month-open-row input{
    width:100%!important;
    height:40px!important;
}
.ldcrm-v25 .ldcrm-monthbar-v56 > .ldcrm-month-open-row #ldcrm-create-month{
    height:40px!important;
    margin:0!important;
    white-space:nowrap!important;
}
.ldcrm-v25 .ldcrm-monthbar-v56 .month-actions{
    display:block!important;
    width:100%!important;
}
.ldcrm-v25 .ldcrm-monthbar-v56 .month-actions select{
    width:100%!important;
    height:40px!important;
}
@media(max-width:900px){
    .ldcrm-v25 .ldcrm-monthbar.ldcrm-monthbar-v56{grid-template-columns:1fr!important;}
    .ldcrm-v25 .ldcrm-monthbar-v56 > .ldcrm-month-open-row{grid-template-columns:1fr!important;}
}

/* =========================================================
   v5.9 Restore original dashboard flow + put Monthly Database
   only inside the top bar, left of Import/Export/Add buttons.
   ========================================================= */
.ldcrm-v25 .ldcrm-top.ldcrm-top-actions-only.ldcrm-top-month-inline{
    display:grid!important;
    grid-template-columns:minmax(0, 1fr) auto!important;
    align-items:center!important;
    gap:14px!important;
    width:100%!important;
    margin:0 0 12px!important;
    padding:10px 12px!important;
    background:#fff!important;
    border:1px solid #e5e7eb!important;
    border-radius:0!important;
    box-shadow:none!important;
}
.ldcrm-v25 .ldcrm-top-month-inline .ldcrm-monthbar.ldcrm-monthbar-v59{
    display:grid!important;
    grid-template-columns:180px minmax(340px, 1fr) minmax(240px, 310px)!important;
    align-items:center!important;
    gap:10px!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
.ldcrm-v25 .ldcrm-top-month-inline .ldcrm-month-title strong{
    display:block!important;
    font-size:15px!important;
    color:#0f172a!important;
    line-height:1.25!important;
}
.ldcrm-v25 .ldcrm-top-month-inline .ldcrm-month-title span{
    display:block!important;
    margin-top:4px!important;
    font-size:12px!important;
    color:#33527a!important;
}
.ldcrm-v25 .ldcrm-top-month-inline .ldcrm-month-open-row{
    display:grid!important;
    grid-template-columns:minmax(170px, 1fr) auto!important;
    gap:8px!important;
    align-items:center!important;
    width:100%!important;
}
.ldcrm-v25 .ldcrm-top-month-inline #ldcrm-new-month,
.ldcrm-v25 .ldcrm-top-month-inline #ldcrm-month-select{
    width:100%!important;
    height:40px!important;
    margin:0!important;
}
.ldcrm-v25 .ldcrm-top-month-inline #ldcrm-create-month{
    height:40px!important;
    margin:0!important;
    white-space:nowrap!important;
}
.ldcrm-v25 .ldcrm-top-month-inline .month-actions{
    display:block!important;
    width:100%!important;
}
.ldcrm-v25 .ldcrm-top-month-inline .ldcrm-top-actions{
    margin-left:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:10px!important;
    flex-wrap:nowrap!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(5, minmax(160px, 1fr))!important;
    gap:12px!important;
    margin:0 0 12px!important;
}
.ldcrm-v25 .ldcrm-card{
    max-width:none!important;
}
@media(max-width:1250px){
    .ldcrm-v25 .ldcrm-top.ldcrm-top-actions-only.ldcrm-top-month-inline{
        grid-template-columns:1fr!important;
    }
    .ldcrm-v25 .ldcrm-top-month-inline .ldcrm-top-actions{
        justify-content:flex-start!important;
        flex-wrap:wrap!important;
    }
}
@media(max-width:900px){
    .ldcrm-v25 .ldcrm-top-month-inline .ldcrm-monthbar.ldcrm-monthbar-v59{
        grid-template-columns:1fr!important;
    }
    .ldcrm-v25 .ldcrm-top-month-inline .ldcrm-month-open-row{
        grid-template-columns:1fr!important;
    }
    .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards{
        grid-template-columns:1fr!important;
    }
}


/* =========================================================
   v6.0 Mobile drawer menu + action column fix
   ========================================================= */
@media(max-width:768px){
    /* Keep the CRM like an app, but turn the phone menu into a hidden left drawer */
    .ldcrm-v25 .ldcrm-sidebar-v25{
        position:fixed!important;
        top:0!important;
        left:0!important;
        width:286px!important;
        max-width:82vw!important;
        height:100dvh!important;
        min-height:100dvh!important;
        max-height:100dvh!important;
        padding:16px 14px!important;
        border-radius:0 22px 22px 0!important;
        overflow-y:auto!important;
        overflow-x:hidden!important;
        z-index:99999!important;
        transform:translateX(-105%)!important;
        transition:transform .28s ease!important;
        box-shadow:18px 0 42px rgba(2,6,23,.30)!important;
    }
    .ldcrm-v25.ldcrm-mobile-menu-open .ldcrm-sidebar-v25{
        transform:translateX(0)!important;
    }
    .ldcrm-v25 .side-brand{
        display:flex!important;
        align-items:center!important;
        justify-content:space-between!important;
        gap:10px!important;
        margin:0 0 16px!important;
    }
    .ldcrm-v25 .side-logo{
        width:40px!important;
        height:40px!important;
        min-width:40px!important;
        border-radius:14px!important;
        cursor:pointer!important;
    }
    .ldcrm-v25 .ldcrm-sidebar-v25 nav{
        display:flex!important;
        flex-direction:column!important;
        gap:8px!important;
        overflow:visible!important;
        padding:0!important;
        scrollbar-width:auto!important;
    }
    .ldcrm-v25 .ldcrm-sidebar-v25 nav a{
        width:100%!important;
        flex:0 0 auto!important;
        white-space:normal!important;
        text-align:left!important;
        font-size:14px!important;
        line-height:1.25!important;
        padding:13px 14px!important;
        border-radius:14px!important;
        background:rgba(255,255,255,.07)!important;
        box-sizing:border-box!important;
    }
    .ldcrm-v25 .side-stats{
        display:block!important;
        margin-top:14px!important;
    }
    .ldcrm-v25 .ldcrm-content-v25{
        width:100%!important;
        flex:1 1 auto!important;
        padding:12px!important;
    }
    .ldcrm-mobile-menu-toggle{
        position:sticky!important;
        top:8px!important;
        z-index:99998!important;
        width:48px!important;
        height:48px!important;
        min-width:48px!important;
        border:0!important;
        border-radius:14px!important;
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        color:#fff!important;
        font-size:24px!important;
        font-weight:900!important;
        background:linear-gradient(135deg,#4f46e5,#7c3aed)!important;
        box-shadow:0 12px 26px rgba(79,70,229,.26)!important;
        margin:0 0 10px 2px!important;
        cursor:pointer!important;
    }
    .ldcrm-mobile-drawer-backdrop{
        position:fixed!important;
        inset:0!important;
        background:rgba(2,6,23,.52)!important;
        z-index:99997!important;
        opacity:0!important;
        pointer-events:none!important;
        transition:opacity .25s ease!important;
    }
    .ldcrm-v25.ldcrm-mobile-menu-open .ldcrm-mobile-drawer-backdrop{
        opacity:1!important;
        pointer-events:auto!important;
    }

    /* Keep Status/Edit/Delete inside the Action cell on phone */
    .ldcrm-v25 #ldcrm-table th:last-child,
    .ldcrm-v25 #ldcrm-table td:last-child{
        min-width:250px!important;
        width:250px!important;
        max-width:250px!important;
        box-sizing:border-box!important;
        white-space:normal!important;
        overflow:hidden!important;
        text-align:center!important;
    }
    .ldcrm-v25 #ldcrm-table td:last-child{
        display:grid!important;
        grid-template-columns:1fr 1fr 1fr!important;
        gap:6px!important;
        align-items:center!important;
        padding:10px 8px!important;
    }
    .ldcrm-v25 #ldcrm-table td:last-child .status-btn,
    .ldcrm-v25 #ldcrm-table td:last-child .edit,
    .ldcrm-v25 #ldcrm-table td:last-child .delete{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        height:36px!important;
        min-height:36px!important;
        line-height:36px!important;
        margin:0!important;
        padding:0 6px!important;
        font-size:12px!important;
        border-radius:8px!important;
        box-sizing:border-box!important;
        display:flex!important;
    }
}

@media(max-width:420px){
    .ldcrm-v25 #ldcrm-table th:last-child,
    .ldcrm-v25 #ldcrm-table td:last-child{
        min-width:228px!important;
        width:228px!important;
        max-width:228px!important;
    }
    .ldcrm-v25 #ldcrm-table td:last-child{
        gap:5px!important;
        padding:8px 6px!important;
    }
    .ldcrm-v25 #ldcrm-table td:last-child .status-btn,
    .ldcrm-v25 #ldcrm-table td:last-child .edit,
    .ldcrm-v25 #ldcrm-table td:last-child .delete{
        height:34px!important;
        line-height:34px!important;
        font-size:11px!important;
    }
}


/* v6.1 - Smart Mobile Lead Card View: replaces wide table on phone */
@media(max-width:768px){
    .ldcrm-v25 .ldcrm-card:has(#ldcrm-table),
    .ldcrm-v25 .ldcrm-card{
        box-sizing:border-box!important;
    }
    .ldcrm-v25 .ldcrm-table-wrap{
        overflow:visible!important;
        max-width:100%!important;
        width:100%!important;
        border:0!important;
        box-shadow:none!important;
        background:transparent!important;
        padding:0!important;
    }
    .ldcrm-v25 #ldcrm-table{
        display:block!important;
        width:100%!important;
        min-width:0!important;
        border-collapse:separate!important;
        border-spacing:0!important;
        background:transparent!important;
    }
    .ldcrm-v25 #ldcrm-table thead{
        display:none!important;
    }
    .ldcrm-v25 #ldcrm-table tbody{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:14px!important;
        width:100%!important;
    }
    .ldcrm-v25 #ldcrm-table tr{
        display:grid!important;
        grid-template-columns:42px 1fr auto!important;
        gap:8px 10px!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        background:#ffffff!important;
        border:1px solid rgba(148,163,184,.22)!important;
        border-radius:18px!important;
        padding:14px!important;
        box-shadow:0 14px 34px rgba(15,23,42,.08)!important;
        box-sizing:border-box!important;
        overflow:hidden!important;
        position:relative!important;
    }
    .ldcrm-v25 #ldcrm-table tr td{
        display:flex!important;
        width:auto!important;
        min-width:0!important;
        max-width:100%!important;
        border:0!important;
        background:transparent!important;
        padding:0!important;
        box-sizing:border-box!important;
        text-align:left!important;
        white-space:normal!important;
        overflow-wrap:anywhere!important;
        word-break:break-word!important;
        align-items:center!important;
        color:#0f172a!important;
        font-size:13px!important;
        line-height:1.35!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(1){grid-column:1;grid-row:1 / span 2;align-self:start;justify-content:center;padding-top:4px!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(2){display:none!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(3){grid-column:2;grid-row:1;font-size:16px!important;font-weight:900!important;align-items:flex-start!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(4){grid-column:2;grid-row:2;color:#7c2d12!important;font-weight:800!important;align-items:flex-start!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(13){grid-column:3;grid-row:1 / span 2;align-self:start!important;justify-self:end!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(5){grid-column:1 / -1;grid-row:3;color:#2563eb!important;font-size:12px!important;border-top:1px solid #eef2f7!important;padding-top:10px!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(n+6):nth-child(-n+12){
        grid-column:1 / -1!important;
        min-height:34px!important;
        border-top:1px solid #eef2f7!important;
        padding-top:9px!important;
        justify-content:space-between!important;
        gap:12px!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(n+6):nth-child(-n+12)::before{
        content:"";
        flex:0 0 112px!important;
        max-width:112px!important;
        color:#475569!important;
        font-size:12px!important;
        font-weight:800!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(6)::before{content:"CMS / Platform";}
    .ldcrm-v25 #ldcrm-table td:nth-child(7)::before{content:"Email";}
    .ldcrm-v25 #ldcrm-table td:nth-child(8)::before{content:"WhatsApp / Call";}
    .ldcrm-v25 #ldcrm-table td:nth-child(9)::before{content:"LinkedIn";}
    .ldcrm-v25 #ldcrm-table td:nth-child(10)::before{content:"Social Media";}
    .ldcrm-v25 #ldcrm-table td:nth-child(11)::before{content:"Industry Type";}
    .ldcrm-v25 #ldcrm-table td:nth-child(12)::before{content:"Reference Sites";}
    .ldcrm-v25 #ldcrm-table td:nth-child(13) .status-pill,
    .ldcrm-v25 #ldcrm-table td:nth-child(13) .compact-pill{
        display:inline-flex!important;
        width:auto!important;
        max-width:128px!important;
        padding:7px 12px!important;
        border-radius:999px!important;
        font-size:12px!important;
        font-weight:900!important;
        white-space:nowrap!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(14){
        grid-column:1 / -1!important;
        display:grid!important;
        grid-template-columns:1fr 1fr 1fr!important;
        gap:8px!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        border-top:1px solid #eef2f7!important;
        padding-top:12px!important;
        overflow:visible!important;
        text-align:center!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(14) .status-btn,
    .ldcrm-v25 #ldcrm-table td:nth-child(14) .edit,
    .ldcrm-v25 #ldcrm-table td:nth-child(14) .delete{
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        height:42px!important;
        min-height:42px!important;
        line-height:1!important;
        margin:0!important;
        padding:0 8px!important;
        border-radius:10px!important;
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        font-size:13px!important;
        font-weight:900!important;
        box-sizing:border-box!important;
    }
    .ldcrm-v25 #ldcrm-table .cell-cms,
    .ldcrm-v25 #ldcrm-table .cell-email,
    .ldcrm-v25 #ldcrm-table .cell-linkedin,
    .ldcrm-v25 #ldcrm-table .cell-social-media,
    .ldcrm-v25 #ldcrm-table .cell-ref{
        flex-wrap:wrap!important;
    }
    .ldcrm-v25 #ldcrm-table .cell-whatsapp{
        color:#07863e!important;
        font-weight:900!important;
    }
    .ldcrm-v25 #ldcrm-table .cms-icon,
    .ldcrm-v25 #ldcrm-table .icon-only-link,
    .ldcrm-v25 #ldcrm-table .social-link,
    .ldcrm-v25 #ldcrm-table .ref-icon{
        transform:none!important;
        margin:0 4px 4px 0!important;
        flex:0 0 auto!important;
    }
    .ldcrm-v25 #ldcrm-table .cell-name,
    .ldcrm-v25 #ldcrm-table .cell-business,
    .ldcrm-v25 #ldcrm-table .cell-website{
        display:block!important;
    }
    .ldcrm-v25 #ldcrm-table .cell-website{
        overflow:hidden!important;
        text-overflow:ellipsis!important;
    }
}

@media(max-width:420px){
    .ldcrm-v25 #ldcrm-table tr{
        padding:12px!important;
        border-radius:16px!important;
        gap:7px 8px!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(n+6):nth-child(-n+12)::before{
        flex-basis:98px!important;
        max-width:98px!important;
        font-size:11px!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(14){gap:6px!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(14) .status-btn,
    .ldcrm-v25 #ldcrm-table td:nth-child(14) .edit,
    .ldcrm-v25 #ldcrm-table td:nth-child(14) .delete{
        height:39px!important;
        min-height:39px!important;
        font-size:12px!important;
        padding:0 5px!important;
    }
}

/* v6.2 - Mobile card labels + mail-friendly spacing */
@media(max-width:768px){
    .ldcrm-v25 #ldcrm-table tr td[data-label]{
        display:grid!important;
        grid-template-columns:minmax(112px, 42%) minmax(0, 1fr)!important;
        gap:10px!important;
        align-items:center!important;
        justify-content:normal!important;
        text-align:left!important;
    }
    .ldcrm-v25 #ldcrm-table tr td[data-label]::before{
        content:attr(data-label)!important;
        display:block!important;
        min-width:0!important;
        max-width:none!important;
        flex:unset!important;
        color:#475569!important;
        font-size:12px!important;
        font-weight:900!important;
        line-height:1.2!important;
        white-space:normal!important;
        text-align:left!important;
    }
    .ldcrm-v25 #ldcrm-table tr td[data-label] > *{
        justify-self:end!important;
    }
    .ldcrm-v25 #ldcrm-table tr td.cell-website[data-label]{
        grid-template-columns:1fr!important;
        gap:4px!important;
    }
    .ldcrm-v25 #ldcrm-table tr td.cell-website[data-label]::before{
        content:"Website"!important;
    }
    .ldcrm-v25 #ldcrm-table tr td.cell-website[data-label]{
        justify-content:flex-start!important;
        color:#2563eb!important;
    }
    .ldcrm-v25 #ldcrm-table tr td.cell-email .open-email{
        cursor:pointer!important;
    }
}
@media(max-width:420px){
    .ldcrm-v25 #ldcrm-table tr td[data-label]{
        grid-template-columns:minmax(96px, 40%) minmax(0, 1fr)!important;
        gap:8px!important;
    }
    .ldcrm-v25 #ldcrm-table tr td[data-label]::before{
        font-size:11px!important;
    }
}

/* v6.3 - Title field after Name */
.ldcrm-v25 #ldcrm-table .cell-title{
    color:#475569!important;
    font-weight:700!important;
}
@media(max-width:768px){
    .ldcrm-v25 #ldcrm-table td:nth-child(3){
        grid-column:2!important;grid-row:1!important;font-size:16px!important;font-weight:900!important;align-items:flex-start!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(4){
        grid-column:2!important;grid-row:2!important;color:#475569!important;font-size:12px!important;font-weight:800!important;align-items:flex-start!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(5){
        grid-column:2!important;grid-row:3!important;color:#7c2d12!important;font-weight:800!important;align-items:flex-start!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(6){
        grid-column:1 / -1!important;grid-row:4!important;color:#2563eb!important;font-size:12px!important;border-top:1px solid #eef2f7!important;padding-top:10px!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(14){
        grid-column:3!important;grid-row:1 / span 2!important;align-self:start!important;justify-self:end!important;display:flex!important;border-top:0!important;padding-top:0!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(n+7):nth-child(-n+13){
        grid-column:1 / -1!important;min-height:34px!important;border-top:1px solid #eef2f7!important;padding-top:9px!important;justify-content:space-between!important;gap:12px!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(n+7):nth-child(-n+13)::before{
        content:"";flex:0 0 112px!important;max-width:112px!important;color:#475569!important;font-size:12px!important;font-weight:800!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(7)::before{content:"CMS / Platform";}
    .ldcrm-v25 #ldcrm-table td:nth-child(8)::before{content:"Email";}
    .ldcrm-v25 #ldcrm-table td:nth-child(9)::before{content:"WhatsApp / Call";}
    .ldcrm-v25 #ldcrm-table td:nth-child(10)::before{content:"LinkedIn";}
    .ldcrm-v25 #ldcrm-table td:nth-child(11)::before{content:"Social Media";}
    .ldcrm-v25 #ldcrm-table td:nth-child(12)::before{content:"Industry Type";}
    .ldcrm-v25 #ldcrm-table td:nth-child(13)::before{content:"Reference Sites";}
    .ldcrm-v25 #ldcrm-table td:nth-child(14) .status-pill,
    .ldcrm-v25 #ldcrm-table td:nth-child(14) .compact-pill{
        display:inline-flex!important;width:auto!important;max-width:128px!important;padding:7px 12px!important;border-radius:999px!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(15){
        grid-column:1 / -1!important;display:grid!important;grid-template-columns:1fr 1fr 1fr!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;border-top:1px solid #eef2f7!important;padding-top:12px!important;overflow:visible!important;text-align:center!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(15) .status-btn,
    .ldcrm-v25 #ldcrm-table td:nth-child(15) .edit,
    .ldcrm-v25 #ldcrm-table td:nth-child(15) .delete{
        width:100%!important;min-width:0!important;max-width:100%!important;height:42px!important;min-height:42px!important;line-height:1!important;margin:0!important;padding:0 8px!important;border-radius:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:13px!important;font-weight:900!important;box-sizing:border-box!important;
    }
    .ldcrm-v25 #ldcrm-table .cell-title,
    .ldcrm-v25 #ldcrm-table .cell-business,
    .ldcrm-v25 #ldcrm-table .cell-website{display:block!important;}
}
@media(max-width:420px){
    .ldcrm-v25 #ldcrm-table td:nth-child(n+7):nth-child(-n+13)::before{flex-basis:98px!important;max-width:98px!important;font-size:11px!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(15){gap:6px!important;}
}

/* v6.4 - Fix mobile card layout after Title column */
@media(max-width:768px){
    .ldcrm-v25 #ldcrm-table tbody{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:16px!important;
    }
    .ldcrm-v25 #ldcrm-table tr{
        display:grid!important;
        grid-template-columns:34px minmax(0,1fr) auto!important;
        gap:10px 10px!important;
        align-items:start!important;
        padding:18px!important;
        overflow:hidden!important;
    }
    .ldcrm-v25 #ldcrm-table tr td{
        width:auto!important;
        min-width:0!important;
        max-width:100%!important;
        overflow:visible!important;
        word-break:normal!important;
        overflow-wrap:anywhere!important;
        white-space:normal!important;
        box-sizing:border-box!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(1){
        grid-column:1!important;
        grid-row:1!important;
        align-self:start!important;
        justify-self:center!important;
        padding-top:4px!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(2){display:none!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(3){
        grid-column:2!important;
        grid-row:1!important;
        display:block!important;
        font-size:18px!important;
        font-weight:900!important;
        line-height:1.25!important;
        color:#0f172a!important;
        padding-right:4px!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(14){
        grid-column:3!important;
        grid-row:1!important;
        display:flex!important;
        align-self:start!important;
        justify-self:end!important;
        width:auto!important;
        min-width:0!important;
        max-width:120px!important;
        border-top:0!important;
        padding-top:0!important;
        text-align:right!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(14)::before{display:none!important;content:none!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(14) .status-pill,
    .ldcrm-v25 #ldcrm-table td:nth-child(14) .compact-pill{
        display:inline-flex!important;
        width:auto!important;
        max-width:116px!important;
        white-space:nowrap!important;
        align-items:center!important;
        justify-content:center!important;
        padding:8px 12px!important;
        font-size:12px!important;
        line-height:1!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(4),
    .ldcrm-v25 #ldcrm-table td:nth-child(5),
    .ldcrm-v25 #ldcrm-table td:nth-child(6),
    .ldcrm-v25 #ldcrm-table td:nth-child(7),
    .ldcrm-v25 #ldcrm-table td:nth-child(8),
    .ldcrm-v25 #ldcrm-table td:nth-child(9),
    .ldcrm-v25 #ldcrm-table td:nth-child(10),
    .ldcrm-v25 #ldcrm-table td:nth-child(11),
    .ldcrm-v25 #ldcrm-table td:nth-child(12),
    .ldcrm-v25 #ldcrm-table td:nth-child(13){
        grid-column:1 / -1!important;
        display:grid!important;
        grid-template-columns:minmax(112px,38%) minmax(0,1fr)!important;
        gap:12px!important;
        align-items:center!important;
        min-height:40px!important;
        border-top:1px solid #eef2f7!important;
        padding-top:10px!important;
        text-align:left!important;
        color:#0f172a!important;
        font-size:13px!important;
        line-height:1.35!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(4){grid-row:2!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(5){grid-row:3!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(6){grid-row:4!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(7){grid-row:5!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(8){grid-row:6!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(9){grid-row:7!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(10){grid-row:8!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(11){grid-row:9!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(12){grid-row:10!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(13){grid-row:11!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(4)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(5)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(6)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(7)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(8)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(9)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(10)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(11)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(12)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(13)::before{
        display:block!important;
        content:""!important;
        min-width:0!important;
        max-width:none!important;
        flex:unset!important;
        color:#475569!important;
        font-size:12px!important;
        font-weight:900!important;
        line-height:1.2!important;
        white-space:normal!important;
        text-align:left!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(4)::before{content:"Title"!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(5)::before{content:"Business"!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(6)::before{content:"Website"!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(7)::before{content:"CMS / Platform"!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(8)::before{content:"Email"!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(9)::before{content:"WhatsApp / Call"!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(10)::before{content:"LinkedIn"!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(11)::before{content:"Social Media"!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(12)::before{content:"Industry Type"!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(13)::before{content:"Reference Sites"!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(4) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(5) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(6) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(7) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(8) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(9) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(10) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(11) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(12) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(13) > *{
        justify-self:end!important;
        max-width:100%!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(4){
        color:#475569!important;
        font-weight:800!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(5){
        color:#7c2d12!important;
        font-weight:900!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(6){
        grid-template-columns:1fr!important;
        gap:5px!important;
        color:#2563eb!important;
        font-weight:800!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(6) > *{
        justify-self:start!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(15){
        grid-column:1 / -1!important;
        grid-row:12!important;
        display:grid!important;
        grid-template-columns:1fr 1fr 1fr!important;
        gap:10px!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        border-top:1px solid #eef2f7!important;
        padding-top:14px!important;
        overflow:visible!important;
        text-align:center!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(15)::before{display:none!important;content:none!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(15) .status-btn,
    .ldcrm-v25 #ldcrm-table td:nth-child(15) .edit,
    .ldcrm-v25 #ldcrm-table td:nth-child(15) .delete{
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        height:44px!important;
        min-height:44px!important;
        margin:0!important;
        padding:0 8px!important;
        border-radius:12px!important;
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        font-size:13px!important;
        font-weight:900!important;
        box-sizing:border-box!important;
    }
}
@media(max-width:420px){
    .ldcrm-v25 #ldcrm-table tr{
        grid-template-columns:32px minmax(0,1fr) auto!important;
        padding:14px!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(3){font-size:17px!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(4),
    .ldcrm-v25 #ldcrm-table td:nth-child(5),
    .ldcrm-v25 #ldcrm-table td:nth-child(7),
    .ldcrm-v25 #ldcrm-table td:nth-child(8),
    .ldcrm-v25 #ldcrm-table td:nth-child(9),
    .ldcrm-v25 #ldcrm-table td:nth-child(10),
    .ldcrm-v25 #ldcrm-table td:nth-child(11),
    .ldcrm-v25 #ldcrm-table td:nth-child(12),
    .ldcrm-v25 #ldcrm-table td:nth-child(13){
        grid-template-columns:minmax(98px,38%) minmax(0,1fr)!important;
        gap:8px!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(15){gap:8px!important;}
    .ldcrm-v25 #ldcrm-table td:nth-child(15) .status-btn,
    .ldcrm-v25 #ldcrm-table td:nth-child(15) .edit,
    .ldcrm-v25 #ldcrm-table td:nth-child(15) .delete{
        height:40px!important;
        min-height:40px!important;
        font-size:12px!important;
        padding:0 5px!important;
    }
}


/* v6.5 - Mobile card alignment + email popup flow support */
@media(max-width:768px){
    .ldcrm-v25 #ldcrm-table td:nth-child(4),
    .ldcrm-v25 #ldcrm-table td:nth-child(5),
    .ldcrm-v25 #ldcrm-table td:nth-child(6),
    .ldcrm-v25 #ldcrm-table td:nth-child(7),
    .ldcrm-v25 #ldcrm-table td:nth-child(8),
    .ldcrm-v25 #ldcrm-table td:nth-child(9),
    .ldcrm-v25 #ldcrm-table td:nth-child(10),
    .ldcrm-v25 #ldcrm-table td:nth-child(11),
    .ldcrm-v25 #ldcrm-table td:nth-child(12),
    .ldcrm-v25 #ldcrm-table td:nth-child(13){
        grid-template-columns:minmax(118px,42%) minmax(0,1fr)!important;
        text-align:right!important;
        justify-items:stretch!important;
        column-gap:14px!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(4)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(5)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(6)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(7)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(8)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(9)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(10)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(11)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(12)::before,
    .ldcrm-v25 #ldcrm-table td:nth-child(13)::before{
        justify-self:start!important;
        text-align:left!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(4) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(5) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(6) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(7) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(8) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(9) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(10) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(11) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(12) > *,
    .ldcrm-v25 #ldcrm-table td:nth-child(13) > *{
        justify-self:end!important;
        text-align:right!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(6){
        grid-template-columns:minmax(118px,42%) minmax(0,1fr)!important;
        text-align:right!important;
    }
    .ldcrm-v25 #ldcrm-table td:nth-child(6) > *{
        justify-self:end!important;
        text-align:right!important;
    }
}


/* =========================================================
   v6.6 Desktop topbar cleanup + compact month controls
   ========================================================= */
/* Mobile drawer button must not appear on desktop */
.ldcrm-mobile-menu-toggle{
    display:none!important;
}

@media(min-width:769px){
    .ldcrm-v25 .ldcrm-top.ldcrm-top-actions-only.ldcrm-top-month-inline{
        grid-template-columns:minmax(0, 1fr) auto!important;
        gap:12px!important;
        padding:8px 12px!important;
        min-height:58px!important;
        overflow:hidden!important;
    }
    .ldcrm-v25 .ldcrm-top-month-inline .ldcrm-monthbar.ldcrm-monthbar-v59{
        grid-template-columns:180px 560px 230px!important;
        gap:10px!important;
        align-items:center!important;
        max-width:990px!important;
    }
    .ldcrm-v25 .ldcrm-top-month-inline .ldcrm-month-open-row{
        grid-template-columns:230px 220px!important;
        gap:8px!important;
        max-width:460px!important;
    }
    .ldcrm-v25 .ldcrm-top-month-inline #ldcrm-new-month,
    .ldcrm-v25 .ldcrm-top-month-inline #ldcrm-month-select{
        height:36px!important;
        min-height:36px!important;
        font-size:13px!important;
        border-radius:5px!important;
        padding:6px 10px!important;
    }
    .ldcrm-v25 .ldcrm-top-month-inline #ldcrm-create-month{
        width:220px!important;
        height:36px!important;
        min-height:36px!important;
        padding:0 12px!important;
        border-radius:5px!important;
        font-size:13px!important;
    }
    .ldcrm-v25 .ldcrm-top-month-inline .month-actions{
        width:230px!important;
        max-width:230px!important;
    }
    .ldcrm-v25 .ldcrm-top-month-inline .ldcrm-top-actions{
        gap:8px!important;
        flex-shrink:0!important;
    }
    .ldcrm-v25 .ldcrm-top-month-inline .ldcrm-top-actions button,
    .ldcrm-v25 .ldcrm-top-month-inline .ldcrm-top-actions #ldcrm-export,
    .ldcrm-v25 .ldcrm-top-month-inline .ldcrm-top-actions #ldcrm-import-open,
    .ldcrm-v25 .ldcrm-top-month-inline .ldcrm-top-actions #ldcrm-add-open{
        height:36px!important;
        min-height:36px!important;
        padding:0 16px!important;
        font-size:12px!important;
        border-radius:7px!important;
        white-space:nowrap!important;
    }
}

@media(max-width:768px){
    .ldcrm-mobile-menu-toggle{
        display:inline-flex!important;
    }
}


/* =========================================================
   v6.7 Default hidden slide sidebar for desktop + mobile
   ========================================================= */
html body .ldcrm-wrap.ldcrm-v25{
    grid-template-columns:minmax(0,1fr)!important;
    position:relative!important;
    overflow:visible!important;
}

.ldcrm-v25 .ldcrm-sidebar-v25{
    position:fixed!important;
    top:0!important;
    left:0!important;
    width:286px!important;
    max-width:82vw!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    padding:16px 14px!important;
    border-radius:0 22px 22px 0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    z-index:99999!important;
    transform:translateX(-105%)!important;
    transition:transform .28s ease!important;
    box-shadow:18px 0 42px rgba(2,6,23,.30)!important;
}

.ldcrm-v25.ldcrm-mobile-menu-open .ldcrm-sidebar-v25{
    transform:translateX(0)!important;
}

.ldcrm-v25 .ldcrm-content-v25{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:16px!important;
    box-sizing:border-box!important;
}

.ldcrm-mobile-menu-toggle{
    position:sticky!important;
    top:8px!important;
    z-index:99998!important;
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    border:0!important;
    border-radius:14px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:#fff!important;
    font-size:24px!important;
    font-weight:900!important;
    background:linear-gradient(135deg,#4f46e5,#7c3aed)!important;
    box-shadow:0 12px 26px rgba(79,70,229,.26)!important;
    margin:0 0 10px 2px!important;
    cursor:pointer!important;
}

.ldcrm-mobile-drawer-backdrop{
    position:fixed!important;
    inset:0!important;
    background:rgba(2,6,23,.42)!important;
    z-index:99997!important;
    opacity:0!important;
    pointer-events:none!important;
    transition:opacity .25s ease!important;
}

.ldcrm-v25.ldcrm-mobile-menu-open .ldcrm-mobile-drawer-backdrop{
    opacity:1!important;
    pointer-events:auto!important;
}

@media(min-width:769px){
    .ldcrm-mobile-menu-toggle{
        display:inline-flex!important;
    }
    .ldcrm-v25 .ldcrm-top.ldcrm-top-actions-only.ldcrm-top-month-inline{
        width:100%!important;
        max-width:100%!important;
    }
}

@media(max-width:768px){
    .ldcrm-v25 .ldcrm-content-v25{
        padding:12px!important;
    }
}

/* v6.8 Chrome extension API settings */
.ldcrm-settings-box label{display:block;margin:12px 0;font-weight:700;color:#101827}
.ldcrm-settings-box input{width:100%;box-sizing:border-box;margin-top:6px;padding:12px 14px;border:1px solid #d7dee8;border-radius:12px;background:#f8fafc;color:#111827;font-size:14px}
.ldcrm-api-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.ldcrm-api-actions button{border:0;border-radius:12px;padding:11px 15px;font-weight:800;cursor:pointer;background:#e5e7eb;color:#111827}
.ldcrm-api-actions .primary{background:#0f766e;color:#fff}
#ldcrm-api-result{margin-top:12px}


/* v6.9 clean website / WhatsApp / step toggles / column panel */
.website-domain{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:700;color:#0f172a;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;width:34px;height:34px;line-height:1;white-space:nowrap;font-size:16px;margin:auto}
.website-domain:hover{background:#eef6ff;border-color:#93c5fd;color:#075985;transform:translateY(-1px)}
.whatsapp-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;background:#dcfce7;color:#15803d;text-decoration:none;font-weight:900;border:1px solid #86efac}
.whatsapp-icon:hover{background:#bbf7d0;transform:translateY(-1px)}
.ldcrm-column-panel{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:12px;box-shadow:0 12px 30px rgba(15,23,42,.12);margin:10px 0;max-width:420px}
.ldcrm-col-item{display:flex;align-items:center;gap:8px;justify-content:space-between;border-bottom:1px solid #f1f5f9;padding:7px 0}
.ldcrm-col-item label{margin:0!important;flex:1;font-weight:600;color:#334155}
.ldcrm-col-item button,#ldcrm-reset-cols,#ldcrm-columns-toggle{border:1px solid #cbd5e1;background:#f8fafc;border-radius:9px;padding:6px 9px;cursor:pointer}
.ldcrm-v25 .step-radio{display:flex!important;align-items:center;gap:10px;border:1px solid #dbeafe!important;border-radius:999px!important;padding:9px 12px!important;background:#f8fbff!important;font-weight:700!important;color:#1e3a8a!important}
.ldcrm-v25 .step-radio input{appearance:none!important;width:38px!important;height:22px!important;border-radius:999px!important;background:#cbd5e1!important;position:relative!important;border:none!important;cursor:pointer!important;margin:0!important}
.ldcrm-v25 .step-radio input:before{content:'';position:absolute;width:16px;height:16px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.25);transition:.2s}
.ldcrm-v25 .step-radio input:checked{background:#2563eb!important}
.ldcrm-v25 .step-radio input:checked:before{left:19px}
.cell-address{font-size:12px;color:#475569;max-width:160px}

.cell-website{text-align:center}
.cell-website .website-domain.icon-only{cursor:pointer}

/* ===== v7.1 filter dropdown + icon-only actions ===== */
.ldcrm-top-month-inline{align-items:center!important;gap:14px;position:relative;}
.ldcrm-monthbar-v59{display:flex;align-items:center;gap:14px;flex:1;min-width:0;}
.ldcrm-top-filter-slot{position:relative;min-width:250px;flex:0 0 320px;}
.ldcrm-filter-toggle{width:100%;height:44px;border:2px solid #ef233c;background:#fff;color:#0f172a;border-radius:4px;font-weight:800;text-align:center;}
.ldcrm-filter-dropdown{position:absolute;right:0;top:50px;width:320px;background:#fff;border:1px solid #dbe4f0;border-radius:14px;box-shadow:0 18px 45px #0f172a26;padding:12px;z-index:9999;display:grid;gap:9px;}
.ldcrm-filter-dropdown select,.ldcrm-filter-dropdown button{width:100%;height:40px;border:1px solid #d6e0ed;border-radius:9px;background:#fff;color:#0f172a;padding:0 10px;}
.ldcrm-filter-dropdown #clear-filters{background:#071229;color:#fff;border-color:#071229;font-weight:800;}
.ldcrm-clean-controls{align-items:center!important;gap:12px;flex-wrap:wrap;}
.ldcrm-table-controls-row{display:flex!important;gap:10px!important;align-items:center!important;margin-left:auto;}
#ldcrm-columns-toggle{height:40px;min-width:112px;border:1px solid #d6e0ed;border-radius:9px;background:#fff;color:#0f172a;font-weight:800;}
#ldcrm-search{height:40px;width:220px;border:1px solid #d6e0ed;border-radius:9px;padding:0 12px;}
.ldcrm-column-panel{position:absolute;right:28px;top:220px;max-height:70vh;overflow:auto;background:#fff;border:1px solid #dbe4f0;border-radius:14px;box-shadow:0 18px 45px #0f172a26;padding:14px;z-index:9998;width:280px;}
.whatsapp-icon{width:34px;height:34px;border-radius:999px;background:#22c55e;color:#fff!important;display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;font-size:18px;font-weight:900;box-shadow:0 4px 12px #16a34a33;}
.whatsapp-icon:hover{transform:translateY(-1px);filter:brightness(.96);}
.action-icon-cell{white-space:nowrap;min-width:118px;}
.action-icon-btn{width:34px!important;height:34px!important;border-radius:9px!important;padding:0!important;margin:0 3px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:16px!important;line-height:1!important;color:#fff!important;border:0!important;}
.action-icon-btn.status-btn{background:#7c3aed!important;}
.action-icon-btn.edit{background:#1677ff!important;}
.action-icon-btn.delete{background:#ef4444!important;}
@media(max-width:900px){.ldcrm-monthbar-v59{flex-wrap:wrap}.ldcrm-top-filter-slot{flex:1 1 100%;}.ldcrm-filter-dropdown{left:0;right:auto;width:min(320px,90vw)}}

/* =========================================================
   v7.2 Premium SaaS UI — ChatGPT redesign
   Reference style: modern purple CRM dashboard + mobile cards
   ========================================================= */
.ldcrm-wrap.ldcrm-v25,
html body .ldcrm-wrap.ldcrm-v25{
    --ld-primary:#5b35f5;
    --ld-primary-2:#7c3aed;
    --ld-deep:#101735;
    --ld-text:#111a3d;
    --ld-muted:#64739b;
    --ld-line:#e6eafe;
    --ld-soft:#f6f7ff;
    --ld-shadow:0 18px 45px rgba(25,35,90,.10);
    font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif!important;
    background:linear-gradient(135deg,#fbfcff 0%,#f7f8ff 48%,#f2f0ff 100%)!important;
    color:var(--ld-text)!important;
    min-height:100vh!important;
}
.ldcrm-v25 *{letter-spacing:-.01em;}
.ldcrm-v25 .ldcrm-content-v25{padding:28px!important;}
.ldcrm-premium-header{
    display:flex;align-items:center;justify-content:space-between;gap:20px;
    background:rgba(255,255,255,.72);border:1px solid rgba(229,234,255,.9);
    border-radius:24px;padding:20px 24px;margin-bottom:22px;box-shadow:var(--ld-shadow);
    backdrop-filter:blur(16px);
}
.ldcrm-premium-header h2{margin:0 0 6px;font-size:24px;line-height:1.15;color:#121a3d;font-weight:900;}
.ldcrm-premium-header p{margin:0;color:#68769d;font-size:14px;font-weight:600;}
.ldcrm-premium-search{min-width:320px;height:48px;display:flex;align-items:center;justify-content:space-between;border:1px solid #dfe6fb;border-radius:14px;background:#fff;color:#7582a6;padding:0 16px;font-size:14px;box-shadow:0 8px 22px rgba(18,26,61,.05);}
.ldcrm-premium-search:after{content:'⌕';font-size:24px;color:#60709b;}
.ldcrm-v25 .ldcrm-sidebar-v25{
    background:rgba(255,255,255,.92)!important;border:1px solid rgba(229,234,255,.95)!important;
    box-shadow:24px 0 70px rgba(19,25,65,.14)!important;padding:24px 18px!important;
}
.ldcrm-v25 .side-brand{display:flex!important;align-items:center!important;gap:13px!important;margin-bottom:28px!important;color:#101735!important;}
.ldcrm-v25 .side-logo{width:52px!important;height:52px!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(135deg,#3b33f6,#8b5cf6)!important;color:#fff!important;box-shadow:0 14px 26px rgba(91,53,245,.28)!important;font-size:24px!important;}
.ldcrm-v25 .side-brand strong{font-size:17px!important;font-weight:900!important;display:block!important;}
.ldcrm-v25 .side-brand small{display:inline-flex!important;margin-top:5px!important;padding:4px 9px!important;border-radius:999px!important;background:#eee9ff!important;color:#5b35f5!important;font-weight:800!important;}
.ldcrm-v25 .ldcrm-sidebar-v25 nav{display:grid!important;gap:8px!important;}
.ldcrm-v25 .ldcrm-sidebar-v25 nav a{height:46px!important;display:flex!important;align-items:center!important;padding:0 14px!important;border-radius:14px!important;color:#1d2a55!important;text-decoration:none!important;font-weight:800!important;background:transparent!important;transition:.2s ease!important;}
.ldcrm-v25 .ldcrm-sidebar-v25 nav a:hover,
.ldcrm-v25 .ldcrm-sidebar-v25 nav a.active{background:linear-gradient(135deg,#f1edff,#ffffff)!important;color:#4f2ff0!important;box-shadow:0 10px 24px rgba(91,53,245,.10)!important;}
.ldcrm-v25 .side-stats{margin-top:28px!important;border:1px solid #eadfff!important;border-radius:20px!important;background:linear-gradient(180deg,#fff,#f4efff)!important;box-shadow:var(--ld-shadow)!important;padding:18px!important;}
.ldcrm-v25 .side-stats h4{color:#5b35f5!important;margin:0 0 12px!important;font-size:14px!important;}
.ldcrm-v25 .side-stats p{display:flex!important;justify-content:space-between!important;color:#59678e!important;font-weight:700!important;font-size:13px!important;}
.ldcrm-v25 .ldcrm-top.ldcrm-top-actions-only.ldcrm-top-month-inline{
    background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important;margin-bottom:22px!important;
}
.ldcrm-v25 .ldcrm-monthbar-v59,
.ldcrm-v25 .ldcrm-monthbar.ldcrm-monthbar-v59{background:transparent!important;gap:16px!important;max-width:none!important;}
.ldcrm-v25 .ldcrm-month-title{display:none!important;}
.ldcrm-v25 input,
.ldcrm-v25 select,
.ldcrm-v25 textarea,
.ldcrm-v25 #ldcrm-search,
.ldcrm-v25 #ldcrm-new-month,
.ldcrm-v25 #ldcrm-month-select{
    border:1px solid #dfe6fb!important;border-radius:14px!important;background:#fff!important;color:#16204a!important;box-shadow:0 8px 24px rgba(18,26,61,.05)!important;font-weight:700!important;
}
.ldcrm-v25 button,
.ldcrm-v25 .primary{font-family:inherit!important;}
.ldcrm-v25 #ldcrm-create-month,
.ldcrm-v25 #ldcrm-add-open,
.ldcrm-v25 #side-add-lead,
.ldcrm-v25 .primary{
    background:linear-gradient(135deg,#4f36f5,#7c3aed)!important;color:#fff!important;border:0!important;border-radius:14px!important;box-shadow:0 14px 30px rgba(91,53,245,.28)!important;font-weight:900!important;
}
.ldcrm-v25 #ldcrm-import-open,
.ldcrm-v25 #ldcrm-export,
.ldcrm-v25 #ldcrm-columns-toggle,
.ldcrm-v25 .ldcrm-filter-toggle{
    background:#fff!important;border:1px solid #dfe6fb!important;color:#18234c!important;border-radius:14px!important;box-shadow:0 9px 24px rgba(18,26,61,.06)!important;font-weight:900!important;
}
.ldcrm-v25 .ldcrm-filter-toggle:before{content:'▾ ';color:#5b35f5;}
.ldcrm-v25 .ldcrm-filter-dropdown,
.ldcrm-v25 .ldcrm-column-panel{border:1px solid #e3e8fb!important;border-radius:20px!important;box-shadow:0 24px 60px rgba(18,26,61,.16)!important;padding:14px!important;}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards{display:grid!important;grid-template-columns:repeat(5,minmax(170px,1fr))!important;gap:18px!important;margin:0 0 24px!important;}
.ldcrm-v25 .sum-card{position:relative!important;min-height:124px!important;background:rgba(255,255,255,.92)!important;border:1px solid #e8ecfb!important;border-radius:18px!important;box-shadow:var(--ld-shadow)!important;padding:22px 20px!important;overflow:hidden!important;}
.ldcrm-v25 .sum-card:after{content:'';position:absolute;right:14px;bottom:14px;width:74px;height:30px;border-radius:999px;background:linear-gradient(135deg,transparent 0%,rgba(91,53,245,.18) 100%);}
.ldcrm-v25 .sum-card span{font-size:13px!important;color:#53618a!important;font-weight:800!important;}
.ldcrm-v25 .sum-card strong{display:block!important;margin-top:10px!important;font-size:30px!important;line-height:1!important;color:#101735!important;font-weight:950!important;}
.ldcrm-v25 .sum-card em{display:block!important;margin-top:12px!important;color:#00a85a!important;font-style:normal!important;font-size:12px!important;font-weight:900!important;}
.ldcrm-v25 .sum-card i{position:absolute!important;right:22px!important;top:22px!important;width:48px!important;height:48px!important;border-radius:999px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#f0ebff!important;color:#5b35f5!important;font-style:normal!important;font-size:24px!important;}
.ldcrm-v25 .sum-card.overdue i{background:#fff0dd!important;color:#f97316!important}.ldcrm-v25 .sum-card.converted i{background:#dcfce7!important;color:#16a34a!important}.ldcrm-v25 .sum-card.lost i{background:#fee2e2!important;color:#ef4444!important}
.ldcrm-v25 .ldcrm-card,
.ldcrm-v25 .ldcrm-table-section{background:#fff!important;border:1px solid #e5eafb!important;border-radius:22px!important;box-shadow:var(--ld-shadow)!important;}
.ldcrm-v25 .table-head{padding:18px 20px!important;border-bottom:1px solid #edf1ff!important;}
.ldcrm-v25 .table-head h3{font-size:20px!important;font-weight:950!important;color:#111a3d!important;margin:0!important;}
.ldcrm-v25 .ldcrm-table-wrap{border-radius:18px!important;border:1px solid #e5eafb!important;background:#fff!important;box-shadow:0 18px 40px rgba(18,26,61,.06)!important;}
.ldcrm-v25 #ldcrm-table{border-collapse:separate!important;border-spacing:0!important;background:#fff!important;overflow:hidden!important;}
.ldcrm-v25 #ldcrm-table th{background:linear-gradient(135deg,#5b35f5,#4b22dd)!important;color:#fff!important;border:0!important;height:58px!important;font-size:13px!important;font-weight:900!important;white-space:nowrap!important;}
.ldcrm-v25 #ldcrm-table td{height:72px!important;border:0!important;border-bottom:1px solid #edf1ff!important;color:#1d2a55!important;font-weight:700!important;background:#fff!important;}
.ldcrm-v25 #ldcrm-table tbody tr:hover td{background:#fbfaff!important;}
.ldcrm-v25 .compact-pill,
.ldcrm-v25 .industry-pill{border-radius:10px!important;padding:8px 12px!important;border:0!important;font-weight:900!important;}
.ldcrm-v25 .status-pill{background:#e8f3ff!important;color:#0875ff!important;}
.ldcrm-v25 .website-domain{background:#f1edff!important;color:#5b35f5!important;border:0!important;width:34px!important;height:34px!important;box-shadow:0 8px 16px rgba(91,53,245,.12)!important;}
.ldcrm-v25 .whatsapp-icon{background:#e1f9ea!important;color:#10b653!important;border:0!important;box-shadow:0 8px 16px rgba(16,182,83,.14)!important;}
.ldcrm-v25 .action-icon-btn{background:#fff!important;border:1px solid #e1e7fb!important;box-shadow:0 7px 16px rgba(18,26,61,.07)!important;color:#5b35f5!important;}
.ldcrm-v25 .action-icon-btn.status-btn{background:#fff!important;color:#005bff!important;border:1px solid #dce8ff!important;}
.ldcrm-v25 .action-icon-btn.edit{background:#fff!important;color:#00a85a!important;border:1px solid #d8f5e4!important;}
.ldcrm-v25 .action-icon-btn.delete{background:#fff!important;color:#ff2d2d!important;border:1px solid #ffe0e0!important;}
.ldcrm-v25 .ldcrm-modal{background:rgba(13,18,43,.45)!important;backdrop-filter:blur(10px)!important;}
.ldcrm-v25 .ldcrm-modal-box{border-radius:24px!important;border:1px solid #e6eafb!important;box-shadow:0 30px 90px rgba(18,26,61,.28)!important;}
.ldcrm-mobile-menu-toggle{background:linear-gradient(135deg,#4f36f5,#7c3aed)!important;border-radius:16px!important;box-shadow:0 16px 35px rgba(91,53,245,.30)!important;}
@media(max-width:1200px){.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ldcrm-premium-search{min-width:240px}}
@media(max-width:768px){
    .ldcrm-v25 .ldcrm-content-v25{padding:14px!important;}
    .ldcrm-premium-header{padding:18px!important;border-radius:22px!important;align-items:flex-start;}
    .ldcrm-premium-header h2{font-size:20px!important}.ldcrm-premium-search{display:none!important;}
    .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
    .ldcrm-v25 .sum-card{min-height:136px!important;padding:18px!important;}.ldcrm-v25 .sum-card strong{font-size:26px!important;}
    .ldcrm-v25 .ldcrm-top-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;gap:10px!important;}
    .ldcrm-v25 #ldcrm-add-open{grid-column:1/-1!important;}
    .ldcrm-v25 #ldcrm-table{min-width:0!important;width:100%!important;}
    .ldcrm-v25 #ldcrm-table thead{display:none!important;}
    .ldcrm-v25 #ldcrm-table,
    .ldcrm-v25 #ldcrm-table tbody,
    .ldcrm-v25 #ldcrm-table tr,
    .ldcrm-v25 #ldcrm-table td{display:block!important;}
    .ldcrm-v25 #ldcrm-table tr{position:relative!important;margin:12px!important;padding:16px!important;border:1px solid #e5eafb!important;border-radius:20px!important;background:#fff!important;box-shadow:var(--ld-shadow)!important;}
    .ldcrm-v25 #ldcrm-table td{height:auto!important;min-height:0!important;border-bottom:0!important;padding:5px 0!important;text-align:left!important;background:transparent!important;}
    .ldcrm-v25 #ldcrm-table td:before{content:attr(data-label);display:block;color:#7582a6;font-size:11px;font-weight:900;text-transform:uppercase;margin-bottom:3px;}
    .ldcrm-v25 #ldcrm-table td[data-col="select"],.ldcrm-v25 #ldcrm-table td[data-col="sl"]{display:inline-block!important;width:auto!important;margin-right:8px!important;}
    .ldcrm-v25 #ldcrm-table td[data-col="select"]:before,.ldcrm-v25 #ldcrm-table td[data-col="sl"]:before{display:none!important;}
    .ldcrm-v25 .action-icon-cell{display:flex!important;gap:8px!important;margin-top:10px!important;}
}
@media(max-width:480px){.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards{grid-template-columns:1fr!important}.ldcrm-v25 .sum-card{min-height:112px!important}.ldcrm-v25 .ldcrm-top-actions{grid-template-columns:1fr!important}.ldcrm-v25 .ldcrm-monthbar-v59{display:grid!important;grid-template-columns:1fr!important;width:100%!important}.ldcrm-v25 .ldcrm-top-filter-slot{min-width:0!important;width:100%!important;}}

/* ===== v7.2.1 Header controls compact fix ===== */
.ldcrm-v25 .ldcrm-premium-header.ldcrm-premium-header-with-controls{
    display:grid!important;
    grid-template-columns:280px minmax(520px,1fr) 320px!important;
    align-items:center!important;
    gap:18px!important;
    padding:18px 24px!important;
    margin-bottom:22px!important;
    min-height:auto!important;
}
.ldcrm-v25 .ldcrm-header-welcome{min-width:0!important;}
.ldcrm-v25 .ldcrm-header-welcome h2{white-space:nowrap!important;}
.ldcrm-v25 .ldcrm-header-controls{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    min-width:0!important;
    width:100%!important;
}
.ldcrm-v25 .ldcrm-header-controls .ldcrm-monthbar.ldcrm-monthbar-v59{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:none!important;
    background:transparent!important;
    padding:0!important;
    border:0!important;
    box-shadow:none!important;
}
.ldcrm-v25 .ldcrm-header-controls .ldcrm-month-open-row{
    display:grid!important;
    grid-template-columns:145px 190px!important;
    gap:10px!important;
    align-items:center!important;
    min-width:345px!important;
}
.ldcrm-v25 .ldcrm-header-controls #ldcrm-new-month,
.ldcrm-v25 .ldcrm-header-controls #ldcrm-month-select,
.ldcrm-v25 .ldcrm-header-controls #ldcrm-create-month,
.ldcrm-v25 .ldcrm-header-controls .ldcrm-filter-toggle,
.ldcrm-v25 .ldcrm-header-controls .ldcrm-top-actions button{
    height:46px!important;
    min-height:46px!important;
    padding:0 14px!important;
    font-size:13px!important;
    line-height:46px!important;
    white-space:nowrap!important;
}
.ldcrm-v25 .ldcrm-header-controls .month-actions{min-width:145px!important;flex:0 0 145px!important;}
.ldcrm-v25 .ldcrm-header-controls #ldcrm-month-select{width:145px!important;}
.ldcrm-v25 .ldcrm-header-controls .ldcrm-top-filter-slot{
    min-width:155px!important;
    flex:0 0 155px!important;
}
.ldcrm-v25 .ldcrm-header-controls .ldcrm-filter-toggle{
    width:155px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:1!important;
}
.ldcrm-v25 .ldcrm-header-controls .ldcrm-top-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:9px!important;
    width:auto!important;
    margin:0!important;
    flex:0 0 auto!important;
}
.ldcrm-v25 .ldcrm-header-controls .ldcrm-top-actions button{min-width:105px!important;}
.ldcrm-v25 .ldcrm-header-controls #ldcrm-add-open{min-width:138px!important;}
.ldcrm-v25 .ldcrm-header-controls .ldcrm-filter-dropdown{top:54px!important;left:0!important;right:auto!important;}
.ldcrm-v25 .ldcrm-premium-header-with-controls .ldcrm-premium-search{
    min-width:0!important;
    width:100%!important;
    height:48px!important;
}
@media(max-width:1500px){
    .ldcrm-v25 .ldcrm-premium-header.ldcrm-premium-header-with-controls{grid-template-columns:260px 1fr!important;}
    .ldcrm-v25 .ldcrm-premium-header-with-controls .ldcrm-premium-search{grid-column:1 / -1!important;max-width:none!important;}
    .ldcrm-v25 .ldcrm-header-controls{justify-content:flex-end!important;}
}
@media(max-width:1180px){
    .ldcrm-v25 .ldcrm-premium-header.ldcrm-premium-header-with-controls{grid-template-columns:1fr!important;}
    .ldcrm-v25 .ldcrm-header-controls{flex-wrap:wrap!important;justify-content:flex-start!important;}
    .ldcrm-v25 .ldcrm-header-controls .ldcrm-monthbar.ldcrm-monthbar-v59{flex-wrap:wrap!important;}
}
@media(max-width:700px){
    .ldcrm-v25 .ldcrm-premium-header.ldcrm-premium-header-with-controls{padding:16px!important;border-radius:20px!important;}
    .ldcrm-v25 .ldcrm-header-controls .ldcrm-month-open-row{grid-template-columns:1fr!important;min-width:0!important;width:100%!important;}
    .ldcrm-v25 .ldcrm-header-controls .month-actions,
    .ldcrm-v25 .ldcrm-header-controls #ldcrm-month-select,
    .ldcrm-v25 .ldcrm-header-controls .ldcrm-top-filter-slot,
    .ldcrm-v25 .ldcrm-header-controls .ldcrm-filter-toggle,
    .ldcrm-v25 .ldcrm-header-controls .ldcrm-top-actions,
    .ldcrm-v25 .ldcrm-header-controls .ldcrm-top-actions button{
        width:100%!important;min-width:0!important;flex:1 1 100%!important;
    }
}

/* ===== v7.2.2 gap + dropdown + column panel fixes ===== */
@media (min-width:769px){
  html body .ldcrm-wrap.ldcrm-v25{padding-top:0!important;}
  .ldcrm-v25 .ldcrm-content-v25{padding-top:8px!important;}
  .ldcrm-mobile-menu-toggle{margin-top:0!important;margin-bottom:0!important;}
  .ldcrm-v25 .ldcrm-premium-header.ldcrm-premium-header-with-controls{
    margin-top:0!important;
    margin-bottom:14px!important;
    padding:14px 24px!important;
    min-height:88px!important;
    position:relative!important;
    z-index:800!important;
  }
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards{margin-top:8px!important;margin-bottom:14px!important;position:relative!important;z-index:20!important;}
  .ldcrm-v25 .ldcrm-content-v25 > .ldcrm-card:last-of-type{position:relative!important;z-index:10!important;}
}

/* Make filters float above stats cards */
.ldcrm-v25 .ldcrm-top-filter-slot{position:relative!important;z-index:5000!important;}
.ldcrm-v25 .ldcrm-filter-dropdown,
.ldcrm-v25 #ldcrm-filter-dropdown{
  position:absolute!important;
  z-index:999999!important;
  background:rgba(255,255,255,.98)!important;
  border:1px solid #dfe6fb!important;
  border-radius:18px!important;
  box-shadow:0 30px 80px rgba(18,26,61,.22)!important;
  backdrop-filter:blur(18px)!important;
  overflow:visible!important;
}
.ldcrm-v25 .ldcrm-filter-dropdown select,
.ldcrm-v25 #ldcrm-filter-dropdown select{background:#fff!important;position:relative!important;z-index:2!important;}

/* Column manager floating panel fix */
.ldcrm-v25 .table-head{position:relative!important;overflow:visible!important;z-index:90!important;}
.ldcrm-v25 .ldcrm-table-wrap{position:relative!important;z-index:1!important;overflow:auto!important;}
.ldcrm-v25 #ldcrm-column-panel.ldcrm-column-panel{
  position:fixed!important;
  z-index:1000000!important;
  width:360px!important;
  max-width:calc(100vw - 32px)!important;
  max-height:70vh!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:18px!important;
  background:rgba(255,255,255,.98)!important;
  border:1px solid #dfe6fb!important;
  border-radius:20px!important;
  box-shadow:0 34px 90px rgba(18,26,61,.25)!important;
  backdrop-filter:blur(18px)!important;
}
.ldcrm-v25 #ldcrm-column-panel strong{display:block!important;font-size:17px!important;font-weight:950!important;color:#111a3d!important;margin-bottom:4px!important;}
.ldcrm-v25 #ldcrm-column-panel p{margin:0 0 12px!important;color:#52607f!important;font-size:13px!important;}
.ldcrm-v25 #ldcrm-column-panel .ldcrm-col-item{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 34px 34px!important;
  align-items:center!important;
  gap:8px!important;
  padding:9px 0!important;
  border-bottom:1px solid #eef2ff!important;
}
.ldcrm-v25 #ldcrm-column-panel .ldcrm-col-item label{display:flex!important;align-items:center!important;gap:9px!important;margin:0!important;font-weight:800!important;color:#111a3d!important;min-width:0!important;}
.ldcrm-v25 #ldcrm-column-panel .col-up,
.ldcrm-v25 #ldcrm-column-panel .col-down{width:34px!important;height:34px!important;border-radius:10px!important;border:1px solid #dfe6fb!important;background:#fff!important;color:#5b35f5!important;box-shadow:0 5px 14px rgba(18,26,61,.07)!important;}
.ldcrm-v25 #ldcrm-reset-cols{width:100%!important;margin-top:12px!important;height:42px!important;border-radius:12px!important;background:linear-gradient(135deg,#5b35f5,#7c3aed)!important;color:#fff!important;border:0!important;font-weight:900!important;}
@media(max-width:700px){
  .ldcrm-v25 #ldcrm-column-panel.ldcrm-column-panel{left:12px!important;right:12px!important;top:110px!important;width:auto!important;max-height:75vh!important;}
}

/* =========================================================
   v7.2.3 Top Gap Reduce + Uploaded WhatsApp Icon
   ========================================================= */
@media (min-width:769px){
  html body .ldcrm-wrap.ldcrm-v25{
    padding-top:0!important;
    margin-top:0!important;
  }
  .ldcrm-v25 .ldcrm-content-v25{
    padding-top:6px!important;
  }
  /* menu button should float, not create a tall empty row */
  .ldcrm-mobile-menu-toggle{
    position:fixed!important;
    top:46px!important;
    left:22px!important;
    z-index:99998!important;
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    margin:0!important;
  }
  body:not(.admin-bar) .ldcrm-mobile-menu-toggle{top:14px!important;}
  body.admin-bar .ldcrm-mobile-menu-toggle{top:42px!important;}
  .ldcrm-v25 .ldcrm-premium-header.ldcrm-premium-header-with-controls{
    margin-top:0!important;
    margin-bottom:10px!important;
    padding-top:12px!important;
    padding-bottom:12px!important;
    min-height:74px!important;
  }
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards{
    margin-top:6px!important;
    margin-bottom:10px!important;
  }
}

/* Use the uploaded WhatsApp app icon */
.ldcrm-v25 .whatsapp-icon,
.ldcrm-v25 #ldcrm-table .whatsapp-icon{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  border-radius:10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  background:#25D366 url('whatsapp-icon.webp') center/26px 26px no-repeat!important;
  border:0!important;
  color:transparent!important;
  font-size:0!important;
  box-shadow:0 8px 18px rgba(37,211,102,.24)!important;
  overflow:hidden!important;
}
.ldcrm-v25 .whatsapp-icon .wa-mark,
.ldcrm-v25 #ldcrm-table .whatsapp-icon .wa-mark{
  display:none!important;
}
.ldcrm-v25 .whatsapp-icon:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 12px 24px rgba(37,211,102,.30)!important;
}

@media(max-width:768px){
  .ldcrm-mobile-menu-toggle{
    position:sticky!important;
    top:6px!important;
    margin:0 0 6px 0!important;
  }
  .ldcrm-v25 .ldcrm-content-v25{padding-top:8px!important;}
  .ldcrm-v25 .ldcrm-premium-header.ldcrm-premium-header-with-controls{
    margin-top:0!important;
    margin-bottom:10px!important;
  }
}

/* =========================================================
   v7.2.5 Screenshot Layout Fix — force visible + match reference
   ========================================================= */
html body:has(.ldcrm-wrap.ldcrm-v25){margin:0!important;background:linear-gradient(135deg,#fbfcff 0%,#f7f8ff 52%,#f2f0ff 100%)!important;overflow-x:hidden!important;}
html body .ldcrm-wrap.ldcrm-v25{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:0!important;width:100%!important;max-width:none!important;min-height:100vh!important;margin:0!important;padding:0!important;overflow:visible!important;background:linear-gradient(135deg,#fbfcff 0%,#f8f9ff 55%,#f1efff 100%)!important;opacity:1!important;visibility:visible!important;}
.ldcrm-v25 .ldcrm-content-v25,.ldcrm-v25 .ldcrm-premium-header,.ldcrm-v25 .ldcrm-summary,.ldcrm-v25 .ldcrm-card,.ldcrm-v25 #ldcrm-table{opacity:1!important;visibility:visible!important;transform:none!important;display:block;}
.ldcrm-v25 .ldcrm-sidebar-v25{position:sticky!important;left:0!important;top:0!important;transform:none!important;width:92px!important;max-width:92px!important;height:100vh!important;min-height:100vh!important;padding:16px 10px!important;border-radius:0!important;background:rgba(255,255,255,.86)!important;border-right:1px solid #e7ebfb!important;box-shadow:10px 0 36px rgba(20,28,80,.06)!important;z-index:1000!important;overflow:hidden!important;}
.ldcrm-v25 .side-brand{height:66px!important;justify-content:center!important;margin-bottom:28px!important;display:flex!important;}
.ldcrm-v25 .side-brand .side-logo{width:58px!important;height:58px!important;border-radius:16px!important;background:linear-gradient(135deg,#6d3df3,#4a27cc)!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#fff!important;font-size:28px!important;box-shadow:0 18px 34px rgba(91,53,245,.28)!important;}
.ldcrm-v25 .side-brand div,.ldcrm-v25 .side-stats{display:none!important;}
.ldcrm-v25 .ldcrm-sidebar-v25 nav{display:grid!important;gap:14px!important;justify-items:center!important;}
.ldcrm-v25 .ldcrm-sidebar-v25 nav a{width:54px!important;height:54px!important;padding:0!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:0!important;color:#6b779b!important;background:transparent!important;text-decoration:none!important;border:0!important;box-shadow:none!important;}
.ldcrm-v25 .ldcrm-sidebar-v25 nav a::first-letter{font-size:25px!important;line-height:1!important;}
.ldcrm-v25 .ldcrm-sidebar-v25 nav a.active,.ldcrm-v25 .ldcrm-sidebar-v25 nav a:hover{background:#f1edff!important;color:#5b35f5!important;box-shadow:0 10px 24px rgba(91,53,245,.10)!important;}
.ldcrm-mobile-menu-toggle{display:none!important;}
.ldcrm-v25 .ldcrm-content-v25{padding:0 20px 28px!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;}
.ldcrm-v25 .ldcrm-premium-header.ldcrm-premium-header-with-controls{display:grid!important;grid-template-columns:330px minmax(740px,1fr) 330px 96px!important;align-items:center!important;gap:18px!important;margin:0 -20px 18px!important;padding:14px 34px 14px 24px!important;min-height:104px!important;border-radius:0!important;border:0!important;border-bottom:1px solid #e8ecfb!important;background:rgba(255,255,255,.82)!important;box-shadow:0 8px 30px rgba(20,28,80,.05)!important;backdrop-filter:blur(16px)!important;position:relative!important;z-index:80!important;}
.ldcrm-v25 .ldcrm-header-welcome h2{font-size:22px!important;margin:0 0 9px!important;color:#111a3d!important;font-weight:900!important;white-space:nowrap!important;}
.ldcrm-v25 .ldcrm-header-welcome p{font-size:13px!important;color:#69779f!important;margin:0!important;font-weight:700!important;}
.ldcrm-v25 .ldcrm-header-controls{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;border:0!important;padding:14px!important;background:transparent!important;min-width:0!important;width:100%!important;box-sizing:border-box!important;}
.ldcrm-v25 .ldcrm-monthbar-v59{display:flex!important;align-items:center!important;gap:12px!important;flex:0 0 auto!important;min-width:0!important;}
.ldcrm-v25 .ldcrm-month-open-row{display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important;}
.ldcrm-v25 #ldcrm-new-month,.ldcrm-v25 #ldcrm-month-select,.ldcrm-v25 #ldcrm-create-month,.ldcrm-v25 .ldcrm-filter-toggle,.ldcrm-v25 .ldcrm-top-actions button{height:44px!important;border-radius:10px!important;border:1px solid #dfe6fb!important;background:#fff!important;color:#142047!important;padding:0 18px!important;font-size:13px!important;font-weight:900!important;line-height:1!important;box-shadow:0 8px 18px rgba(20,28,80,.05)!important;white-space:nowrap!important;}
.ldcrm-v25 #ldcrm-create-month,.ldcrm-v25 #ldcrm-add-open{background:linear-gradient(135deg,#6f3df2,#4d2bd3)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 12px 25px rgba(91,53,245,.26)!important;}
.ldcrm-v25 .ldcrm-top-filter-slot{flex:0 0 130px!important;min-width:130px!important;position:relative!important;z-index:99999!important;}
.ldcrm-v25 .ldcrm-filter-toggle{width:130px!important;display:flex!important;align-items:center!important;justify-content:center!important;}
.ldcrm-v25 .ldcrm-top-actions{display:flex!important;align-items:center!important;gap:12px!important;margin:0!important;flex:0 0 auto!important;}
.ldcrm-v25 .ldcrm-top-actions button{min-width:132px!important;}
.ldcrm-v25 #ldcrm-add-open{min-width:154px!important;}
.ldcrm-v25 .ldcrm-premium-search{width:100%!important;min-width:0!important;height:44px!important;border-radius:13px!important;background:#fff!important;border:1px solid #dfe6fb!important;box-shadow:0 8px 18px rgba(20,28,80,.05)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;color:#7a86a8!important;padding:0 16px!important;box-sizing:border-box!important;}
.ldcrm-v25 .ldcrm-top-user{display:flex!important;align-items:center!important;gap:14px!important;justify-content:flex-end!important;}
.ldcrm-v25 .ldcrm-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:#fff;border:1px solid #dfe6fb;box-shadow:0 8px 18px rgba(20,28,80,.06);font-size:19px;}
.ldcrm-v25 .ldcrm-bell b{position:absolute;right:-3px;top:-5px;background:#5b35f5;color:#fff;border-radius:99px;font-size:10px;line-height:17px;width:17px;height:17px;text-align:center;}
.ldcrm-v25 .ldcrm-avatar{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#e9f3ff;border:3px solid #fff;box-shadow:0 8px 18px rgba(20,28,80,.10);font-size:25px;}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards{display:grid!important;grid-template-columns:repeat(5,minmax(180px,1fr))!important;gap:20px!important;margin:58px 0 38px!important;position:relative!important;z-index:10!important;}
.ldcrm-v25 .sum-card{min-height:112px!important;border-radius:13px!important;background:rgba(255,255,255,.86)!important;border:1px solid #e7ebfb!important;box-shadow:0 15px 38px rgba(20,28,80,.08)!important;padding:20px 22px 18px 102px!important;position:relative!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;justify-content:center!important;}
.ldcrm-v25 .sum-card i{left:24px!important;top:26px!important;width:58px!important;height:58px!important;border-radius:50%!important;font-size:25px!important;display:flex!important;align-items:center!important;justify-content:center!important;}
.ldcrm-v25 .sum-card span{font-size:13px!important;color:#2d3762!important;font-weight:800!important;margin-bottom:4px!important;}
.ldcrm-v25 .sum-card strong{font-size:30px!important;color:#10183a!important;line-height:1.05!important;}
.ldcrm-v25 .sum-card em{font-size:13px!important;font-style:normal!important;color:#10a86a!important;font-weight:800!important;margin-top:8px!important;}
.ldcrm-v25 .sum-card:after{content:'';position:absolute;right:26px;bottom:20px;width:78px;height:32px;border-radius:50%;border-bottom:3px solid currentColor;border-right:3px solid transparent;opacity:.75;transform:rotate(-14deg);}
.ldcrm-v25 .sum-card.total{color:#6f3df2}.ldcrm-v25 .sum-card.newlead{color:#ff4d69}.ldcrm-v25 .sum-card.overdue{color:#ff9d2f}.ldcrm-v25 .sum-card.converted{color:#21c27a}.ldcrm-v25 .sum-card.lost{color:#ff3347}
.ldcrm-v25 .ldcrm-add-modal-v25{display:none!important;}
.ldcrm-v25 .ldcrm-content-v25 > .ldcrm-card:last-of-type{border-radius:12px!important;padding:0!important;background:#fff!important;border:1px solid #e7ebfb!important;box-shadow:0 16px 42px rgba(20,28,80,.08)!important;overflow:visible!important;display:block!important;}
.ldcrm-v25 .table-head{display:none!important;}
.ldcrm-v25 .ldcrm-table-wrap{overflow:auto!important;border-radius:12px!important;display:block!important;position:relative!important;z-index:1!important;}
.ldcrm-v25 #ldcrm-table{width:100%!important;min-width:1550px!important;border-collapse:separate!important;border-spacing:0!important;font-size:13px!important;background:#fff!important;}
.ldcrm-v25 #ldcrm-table thead{display:table-header-group!important;}
.ldcrm-v25 #ldcrm-table th{height:56px!important;background:linear-gradient(135deg,#6f3df2,#5328d8)!important;color:#fff!important;border:0!important;border-bottom:1px solid #6431e4!important;padding:0 16px!important;text-align:left!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important;}
.ldcrm-v25 #ldcrm-table td{height:63px!important;border:0!important;border-bottom:1px solid #edf1fb!important;padding:8px 16px!important;text-align:left!important;color:#142047!important;font-weight:700!important;background:#fff!important;vertical-align:middle!important;white-space:nowrap!important;}
.ldcrm-v25 #ldcrm-table tr:hover td{background:#fbfcff!important;}
.ldcrm-v25 #ldcrm-table th:first-child{border-top-left-radius:12px!important}.ldcrm-v25 #ldcrm-table th:last-child{border-top-right-radius:12px!important}
.ldcrm-v25 #ldcrm-table input[type="checkbox"]{width:16px!important;height:16px!important;border-radius:4px!important;accent-color:#6f3df2!important;}
.ldcrm-v25 .cell-name{font-weight:900!important;color:#111a3d!important;}
.ldcrm-v25 .website-domain{background:#f0ebff!important;color:#6f3df2!important;border:0!important;width:30px!important;height:30px!important;border-radius:50%!important;font-size:14px!important;}
.ldcrm-v25 .cms-icon{background:#f0ebff!important;color:#6f3df2!important;border:0!important;width:28px!important;height:28px!important;border-radius:50%!important;}
.ldcrm-v25 .icon-only-link,.ldcrm-v25 .social-link{width:28px!important;height:28px!important;border-radius:50%!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;font-weight:900!important;margin-right:8px!important;}
.ldcrm-v25 .open-linkedin{background:#0a66c2!important;color:#fff!important;font-size:12px!important;}.ldcrm-v25 .open-email{background:#eef3ff!important;color:#5b35f5!important;}
.ldcrm-v25 .social-link.facebook{background:#1877f2!important;color:#fff!important}.ldcrm-v25 .social-link.instagram{background:#fff0f7!important;color:#e1306c!important}.ldcrm-v25 .social-link.twitter{background:#111827!important;color:#fff!important}
.ldcrm-v25 .compact-pill,.ldcrm-v25 .industry-pill{border:0!important;border-radius:8px!important;padding:7px 12px!important;font-size:12px!important;font-weight:900!important;background:#eef2ff!important;color:#4f35d8!important;}
.ldcrm-v25 .action-icon-btn{width:36px!important;height:36px!important;border-radius:9px!important;background:#fff!important;border:1px solid #dfe6fb!important;box-shadow:0 6px 14px rgba(20,28,80,.05)!important;color:#156bff!important;margin:0 4px!important;}
.ldcrm-v25 .action-icon-btn.edit{color:#16a36a!important;background:#fff!important}.ldcrm-v25 .action-icon-btn.delete{color:#ff3045!important;background:#fff!important}.ldcrm-v25 .action-icon-btn.status-btn{color:#156bff!important;background:#fff!important}
@media(max-width:1600px){.ldcrm-v25 .ldcrm-premium-header.ldcrm-premium-header-with-controls{grid-template-columns:280px minmax(0,1fr) 270px 88px!important}.ldcrm-v25 .ldcrm-header-controls{overflow:auto!important;justify-content:flex-start!important}.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards{grid-template-columns:repeat(3,minmax(180px,1fr))!important}}
@media(max-width:980px){html body .ldcrm-wrap.ldcrm-v25{grid-template-columns:1fr!important}.ldcrm-v25 .ldcrm-sidebar-v25{position:fixed!important;transform:translateX(-105%)!important;width:286px!important;max-width:82vw!important;border-radius:0 22px 22px 0!important;overflow-y:auto!important}.ldcrm-v25.ldcrm-mobile-menu-open .ldcrm-sidebar-v25{transform:translateX(0)!important}.ldcrm-mobile-menu-toggle{display:inline-flex!important;position:fixed!important;top:12px!important;left:14px!important;z-index:99998!important}.ldcrm-v25 .ldcrm-content-v25{padding:66px 12px 24px!important}.ldcrm-v25 .ldcrm-premium-header.ldcrm-premium-header-with-controls{margin:0 0 14px!important;grid-template-columns:1fr!important;padding:16px!important;border-radius:18px!important}.ldcrm-v25 .ldcrm-header-controls{border-width:0!important;overflow:auto!important}.ldcrm-v25 .ldcrm-premium-search,.ldcrm-v25 .ldcrm-top-user{display:none!important}.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards{grid-template-columns:1fr!important;margin:14px 0!important}}


/* =========================================================
   v7.2.6 Final sidebar icon fix + remove debug red border
   ========================================================= */
.ldcrm-v25 .ldcrm-header-controls{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
.ldcrm-v25 .ldcrm-sidebar-v25 .ldcrm-side-nav,
.ldcrm-v25 .ldcrm-sidebar-v25 nav.ldcrm-side-nav{
  display:grid!important;
  gap:14px!important;
  justify-items:center!important;
  align-content:start!important;
}
.ldcrm-v25 .ldcrm-sidebar-v25 .ldcrm-side-nav a{
  width:54px!important;
  height:54px!important;
  padding:0!important;
  border-radius:14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:0!important;
  line-height:1!important;
  color:#6b779b!important;
  background:transparent!important;
  text-decoration:none!important;
  border:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.ldcrm-v25 .ldcrm-sidebar-v25 .ldcrm-side-nav a::first-letter,
.ldcrm-v25 .ldcrm-sidebar-v25 .ldcrm-side-nav a:before,
.ldcrm-v25 .ldcrm-sidebar-v25 .ldcrm-side-nav a:after{
  display:none!important;
  content:none!important;
}
.ldcrm-v25 .ldcrm-sidebar-v25 .ldcrm-side-nav .nav-icon{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:100%!important;
  font-size:23px!important;
  font-weight:900!important;
  line-height:1!important;
  color:currentColor!important;
  font-family:Arial, Helvetica, sans-serif!important;
}
.ldcrm-v25 .ldcrm-sidebar-v25 .ldcrm-side-nav .nav-label{
  display:none!important;
}
.ldcrm-v25 .ldcrm-sidebar-v25 .ldcrm-side-nav a.active,
.ldcrm-v25 .ldcrm-sidebar-v25 .ldcrm-side-nav a:hover{
  background:#f1edff!important;
  color:#5b35f5!important;
  box-shadow:0 10px 24px rgba(91,53,245,.10)!important;
}
.ldcrm-v25 .side-brand .side-logo{
  font-size:0!important;
  position:relative!important;
}
.ldcrm-v25 .side-brand .side-logo:before{
  content:'🚀'!important;
  font-size:28px!important;
  line-height:1!important;
}
@media(max-width:980px){
  .ldcrm-v25 .ldcrm-sidebar-v25 .ldcrm-side-nav a{
    width:100%!important;
    height:46px!important;
    padding:0 14px!important;
    justify-content:flex-start!important;
    gap:12px!important;
    font-size:13px!important;
  }
  .ldcrm-v25 .ldcrm-sidebar-v25 .ldcrm-side-nav .nav-icon{
    width:26px!important;
    height:26px!important;
    flex:0 0 26px!important;
    font-size:20px!important;
  }
  .ldcrm-v25 .ldcrm-sidebar-v25 .ldcrm-side-nav .nav-label{
    display:inline!important;
    font-size:13px!important;
    font-weight:800!important;
  }
}


/* =========================================================
   v7.2.7 Header color + sticky table head + action fix polish
   ========================================================= */
.ldcrm-v25 .ldcrm-table-wrap{
    max-height:620px!important;
    overflow:auto!important;
    border-radius:14px!important;
    border:1px solid #e7ecf5!important;
    background:#fff!important;
}
.ldcrm-v25 #ldcrm-table{
    border-collapse:separate!important;
    border-spacing:0!important;
}
.ldcrm-v25 #ldcrm-table thead th,
.ldcrm-v25 #ldcrm-table th{
    position:sticky!important;
    top:0!important;
    z-index:8!important;
    background:#4f28d9!important;
    background-image:none!important;
    color:#ffffff!important;
    border-color:#4f28d9!important;
    box-shadow:0 1px 0 rgba(255,255,255,.08) inset, 0 2px 8px rgba(79,40,217,.18)!important;
    font-weight:800!important;
}
.ldcrm-v25 #ldcrm-table thead th:first-child{border-top-left-radius:12px!important;}
.ldcrm-v25 #ldcrm-table thead th:last-child{border-top-right-radius:12px!important;}
.ldcrm-v25 .action-icon-cell .edit,
.ldcrm-v25 #ldcrm-table .action-icon-cell .edit{
    background:#ffffff!important;
    color:#16a34a!important;
    border:1px solid #bbf7d0!important;
    box-shadow:0 4px 12px rgba(22,163,74,.08)!important;
    cursor:pointer!important;
    pointer-events:auto!important;
}
.ldcrm-v25 .action-icon-cell .edit:hover,
.ldcrm-v25 #ldcrm-table .action-icon-cell .edit:hover{
    background:#ecfdf5!important;
    border-color:#86efac!important;
    transform:translateY(-1px);
}

/* v7.2.8 requested fixes: sticky header, edit action, card icons/graphs, table controls */
.ldcrm-v25 .ldcrm-table-wrap{
  max-height:560px!important;
  overflow:auto!important;
  border-radius:16px!important;
  border:1px solid #e8ecfb!important;
  background:#fff!important;
  position:relative!important;
}
.ldcrm-v25 #ldcrm-table{border-collapse:separate!important;border-spacing:0!important;width:100%!important;min-width:1320px!important;}
.ldcrm-v25 #ldcrm-table thead{display:table-header-group!important;position:sticky!important;top:0!important;z-index:50!important;}
.ldcrm-v25 #ldcrm-table thead th{
  position:sticky!important;top:0!important;z-index:60!important;
  background:#4f28df!important;background-image:none!important;color:#fff!important;
  border:0!important;border-bottom:1px solid #3e20b8!important;
  box-shadow:none!important;height:46px!important;padding:0 14px!important;
  font-weight:800!important;font-size:13px!important;white-space:nowrap!important;
}
.ldcrm-v25 #ldcrm-table thead th:first-child{border-top-left-radius:12px!important;}
.ldcrm-v25 #ldcrm-table thead th:last-child{border-top-right-radius:12px!important;}
.ldcrm-v25 #ldcrm-table tbody td{background:#fff!important;position:relative!important;z-index:1!important;}
.ldcrm-v25 .action-icon-cell,.ldcrm-v25 .action-icon-cell *{pointer-events:auto!important;}
.ldcrm-v25 .action-icon-cell .edit{position:relative!important;z-index:20!important;cursor:pointer!important;background:#eefbf3!important;color:#13a463!important;border:1px solid #b8f0cf!important;}
.ldcrm-v25 .ldcrm-clean-controls{align-items:center!important;gap:18px!important;}
.ldcrm-v25 .ldcrm-table-controls-row{display:flex!important;align-items:center!important;gap:10px!important;margin-left:22px!important;margin-right:auto!important;position:relative!important;}
.ldcrm-v25 .ldcrm-table-controls-row #ldcrm-columns-toggle,.ldcrm-v25 .ldcrm-table-filter-slot .ldcrm-filter-toggle,.ldcrm-v25 .ldcrm-table-controls-row #ldcrm-search{
  height:40px!important;border:1px solid #dfe6fb!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;font-weight:800!important;color:#101a44!important;
}
.ldcrm-v25 .ldcrm-table-controls-row #ldcrm-columns-toggle{min-width:190px!important;}
.ldcrm-v25 .ldcrm-table-filter-slot{position:relative!important;display:inline-flex!important;}
.ldcrm-v25 .ldcrm-table-filter-slot .ldcrm-filter-toggle{min-width:150px!important;justify-content:center!important;}
.ldcrm-v25 .ldcrm-table-controls-row #ldcrm-search{min-width:230px!important;padding:0 16px!important;}
.ldcrm-v25 .ldcrm-table-filter-slot .ldcrm-filter-dropdown{position:absolute!important;top:48px!important;left:0!important;z-index:9999!important;width:300px!important;background:#fff!important;border:1px solid #e1e7fb!important;border-radius:16px!important;box-shadow:0 20px 55px rgba(30,32,90,.16)!important;padding:12px!important;}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card{
  position:relative!important;display:grid!important;grid-template-columns:74px 1fr 118px!important;grid-template-rows:auto auto auto!important;align-items:center!important;min-height:112px!important;padding:20px 18px!important;overflow:hidden!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card i{
  grid-column:1!important;grid-row:1 / span 3!important;position:static!important;transform:none!important;
  width:54px!important;height:54px!important;border-radius:18px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  font-size:0!important;margin:0!important;box-shadow:none!important;opacity:1!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card i::before{font-size:28px!important;line-height:1!important;font-family:Arial, sans-serif!important;font-weight:800!important;}
.ldcrm-v25 .sum-card.total i::before{content:'👥';color:#6d39f4!important;}.ldcrm-v25 .sum-card.newlead i::before{content:'+';color:#ff4d6d!important;}.ldcrm-v25 .sum-card.overdue i::before{content:'◷';color:#ff9f1a!important;}.ldcrm-v25 .sum-card.converted i::before{content:'✓';color:#20bd68!important;}.ldcrm-v25 .sum-card.lost i::before{content:'×';color:#ff4d5a!important;}
.ldcrm-v25 .sum-card.total i{background:#f0eaff!important;}.ldcrm-v25 .sum-card.newlead i{background:#fff0f3!important;}.ldcrm-v25 .sum-card.overdue i{background:#fff4df!important;}.ldcrm-v25 .sum-card.converted i{background:#e9fbf1!important;}.ldcrm-v25 .sum-card.lost i{background:#fff0f1!important;}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card span{grid-column:2!important;grid-row:1!important;position:static!important;font-size:13px!important;font-weight:800!important;margin:0!important;align-self:end!important;}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card strong{grid-column:2!important;grid-row:2!important;position:static!important;font-size:28px!important;line-height:1!important;margin:4px 0 8px!important;}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card em{grid-column:2!important;grid-row:3!important;position:static!important;font-size:12px!important;font-style:normal!important;font-weight:800!important;margin:0!important;align-self:start!important;}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card::after{
  content:''!important;grid-column:3!important;grid-row:1 / span 3!important;align-self:center!important;justify-self:end!important;width:106px!important;height:58px!important;opacity:1!important;background-repeat:no-repeat!important;background-position:center!important;background-size:100% 58px!important;filter:drop-shadow(0 10px 12px rgba(91,55,235,.10))!important;
}
.ldcrm-v25 .sum-card.total::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237c3cff' stop-opacity='.24'/%3E%3Cstop offset='1' stop-color='%237c3cff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8 43 C28 45 35 29 52 32 S72 18 86 22 S103 36 114 12 L114 56 L8 56 Z' fill='url(%23g)'/%3E%3Cpath d='M8 43 C28 45 35 29 52 32 S72 18 86 22 S103 36 114 12' fill='none' stroke='%237c3cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;}
.ldcrm-v25 .sum-card.newlead::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ff4d6d' stop-opacity='.24'/%3E%3Cstop offset='1' stop-color='%23ff4d6d' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8 46 C23 44 31 39 42 34 S60 38 68 25 S85 18 95 26 S106 31 114 16 L114 56 L8 56 Z' fill='url(%23g)'/%3E%3Cpath d='M8 46 C23 44 31 39 42 34 S60 38 68 25 S85 18 95 26 S106 31 114 16' fill='none' stroke='%23ff4d6d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;}
.ldcrm-v25 .sum-card.overdue::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ff9f1a' stop-opacity='.24'/%3E%3Cstop offset='1' stop-color='%23ff9f1a' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8 45 C24 48 30 35 45 37 S64 18 76 28 S92 40 114 16 L114 56 L8 56 Z' fill='url(%23g)'/%3E%3Cpath d='M8 45 C24 48 30 35 45 37 S64 18 76 28 S92 40 114 16' fill='none' stroke='%23ff9f1a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;}
.ldcrm-v25 .sum-card.converted::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2320bd68' stop-opacity='.24'/%3E%3Cstop offset='1' stop-color='%2320bd68' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8 48 C19 42 28 45 39 34 S54 39 68 25 S91 28 114 10 L114 56 L8 56 Z' fill='url(%23g)'/%3E%3Cpath d='M8 48 C19 42 28 45 39 34 S54 39 68 25 S91 28 114 10' fill='none' stroke='%2320bd68' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;}
.ldcrm-v25 .sum-card.lost::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ff4d5a' stop-opacity='.24'/%3E%3Cstop offset='1' stop-color='%23ff4d5a' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8 49 C19 46 28 41 42 43 S58 21 72 25 S90 36 114 13 L114 56 L8 56 Z' fill='url(%23g)'/%3E%3Cpath d='M8 49 C19 46 28 41 42 43 S58 21 72 25 S90 36 114 13' fill='none' stroke='%23ff4d5a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;}
@media(max-width:1100px){.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card{grid-template-columns:64px 1fr 90px!important}.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card::after{width:86px!important}}


/* v7.2.9 fix: Add New Lead/Edit modal must open above dashboard */
.ldcrm-v25 .ldcrm-add-modal-v25.is-open{
  display:flex!important;
  position:fixed!important;
  inset:0!important;
  z-index:999999!important;
  background:rgba(15,23,42,.45)!important;
  align-items:center!important;
  justify-content:center!important;
  padding:24px!important;
}
.ldcrm-v25 .ldcrm-add-modal-v25.is-open .ldcrm-card{
  display:block!important;
  visibility:visible!important;
}


/* =========================================================
   v7.3.0 REAL fixed table header: header stays still, only rows scroll
   ========================================================= */
.ldcrm-v25 .ldcrm-table-wrap{
  max-height:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  border-radius:16px!important;
  border:1px solid #e8ecfb!important;
  background:#fff!important;
  position:relative!important;
}
.ldcrm-v25 #ldcrm-table{
  display:block!important;
  width:100%!important;
  min-width:1320px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  table-layout:fixed!important;
}
.ldcrm-v25 #ldcrm-table thead{
  display:table!important;
  width:100%!important;
  table-layout:fixed!important;
  position:relative!important;
  top:auto!important;
  z-index:50!important;
}
.ldcrm-v25 #ldcrm-table tbody{
  display:block!important;
  width:100%!important;
  max-height:520px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.ldcrm-v25 #ldcrm-table tbody tr{
  display:table!important;
  width:100%!important;
  table-layout:fixed!important;
}
.ldcrm-v25 #ldcrm-table thead th{
  position:static!important;
  top:auto!important;
  z-index:auto!important;
  height:52px!important;
  background:#4f28df!important;
  background-image:none!important;
  color:#fff!important;
  border:0!important;
  border-bottom:1px solid #3e20b8!important;
  box-shadow:none!important;
  padding:0 12px!important;
  text-align:left!important;
  font-size:13px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
.ldcrm-v25 #ldcrm-table tbody td{
  height:58px!important;
  background:#fff!important;
  border:0!important;
  border-bottom:1px solid #edf1fb!important;
  padding:8px 12px!important;
  text-align:left!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
.ldcrm-v25 #ldcrm-table thead th:first-child{border-top-left-radius:12px!important;}
.ldcrm-v25 #ldcrm-table thead th:last-child{border-top-right-radius:12px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(1), .ldcrm-v25 #ldcrm-table td:nth-child(1){width:44px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(2), .ldcrm-v25 #ldcrm-table td:nth-child(2){width:46px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(3), .ldcrm-v25 #ldcrm-table td:nth-child(3){width:118px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(4), .ldcrm-v25 #ldcrm-table td:nth-child(4){width:80px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(5), .ldcrm-v25 #ldcrm-table td:nth-child(5){width:150px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(6), .ldcrm-v25 #ldcrm-table td:nth-child(6){width:90px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(7), .ldcrm-v25 #ldcrm-table td:nth-child(7){width:70px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(8), .ldcrm-v25 #ldcrm-table td:nth-child(8){width:90px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(9), .ldcrm-v25 #ldcrm-table td:nth-child(9){width:96px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(10), .ldcrm-v25 #ldcrm-table td:nth-child(10){width:90px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(11), .ldcrm-v25 #ldcrm-table td:nth-child(11){width:140px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(12), .ldcrm-v25 #ldcrm-table td:nth-child(12){width:140px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(13), .ldcrm-v25 #ldcrm-table td:nth-child(13){width:120px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(14), .ldcrm-v25 #ldcrm-table td:nth-child(14){width:130px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(15), .ldcrm-v25 #ldcrm-table td:nth-child(15){width:135px!important;}
.ldcrm-v25 #ldcrm-table th:nth-child(16), .ldcrm-v25 #ldcrm-table td:nth-child(16){width:128px!important;}
.ldcrm-v25 #ldcrm-table tbody::-webkit-scrollbar{width:8px!important;}
.ldcrm-v25 #ldcrm-table tbody::-webkit-scrollbar-track{background:#f1f4fb!important;border-radius:99px!important;}
.ldcrm-v25 #ldcrm-table tbody::-webkit-scrollbar-thumb{background:#9ca3af!important;border-radius:99px!important;}

/* v7.3.1: Search box fixed to 150px */
.ldcrm-v25 .ldcrm-table-controls-row #ldcrm-search,
.ldcrm-v25 .table-head #ldcrm-search,
.ldcrm-v25 #ldcrm-search{
    width:150px!important;
    min-width:150px!important;
    max-width:150px!important;
    flex:0 0 150px!important;
    box-sizing:border-box!important;
}


/* =========================================================
   v7.3.2: Reduce dashboard vertical gaps around stats cards
   ========================================================= */
@media (min-width:769px){
  .ldcrm-v25 .ldcrm-premium-header.ldcrm-premium-header-with-controls{
    margin-bottom:5px!important;
  }
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards{
    margin-top:5px!important;
    margin-bottom:5px!important;
  }
  .ldcrm-v25 .ldcrm-content-v25 > .ldcrm-card:last-of-type,
  .ldcrm-v25 .ldcrm-table-card{
    margin-top:5px!important;
  }
}

/* v7.3.5 — Functional live dashboard sparklines */
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card::after{
  content:none!important;
  display:none!important;
  background-image:none!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark{
  grid-column:3!important;
  grid-row:1 / span 3!important;
  align-self:center!important;
  justify-self:end!important;
  width:118px!important;
  height:64px!important;
  display:block!important;
  position:relative!important;
  z-index:2!important;
  filter:drop-shadow(0 11px 12px rgba(26,28,70,.10))!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark::before{
  content:''!important;
  position:absolute!important;
  inset:8px 4px 6px 4px!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.68),rgba(255,255,255,0))!important;
  z-index:-1!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark svg{
  width:100%!important;
  height:100%!important;
  overflow:visible!important;
  display:block!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark-line{
  stroke-dasharray:260!important;
  stroke-dashoffset:0!important;
}
@media(max-width:1100px){
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark{width:90px!important;height:58px!important;}
}
@media(max-width:520px){
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card{grid-template-columns:62px 1fr 86px!important;}
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark{width:84px!important;height:52px!important;}
}

/* =========================================================
   v7.3.6 Premium functional KPI graphs
   - replaces decorative CSS background graphs with live PHP SVG
   - smooth area sparkline, current dot, Last 7 days label, trend badge
   ========================================================= */
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards{
  gap:18px!important;
  align-items:stretch!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card{
  display:grid!important;
  grid-template-columns:60px minmax(92px,1fr) 152px!important;
  grid-template-rows:auto auto auto auto!important;
  min-height:146px!important;
  padding:22px 20px!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.90))!important;
  border:1px solid #e7ecfb!important;
  box-shadow:0 16px 40px rgba(22,29,75,.08)!important;
  overflow:hidden!important;
  position:relative!important;
  column-gap:14px!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card::after{
  content:none!important;
  display:none!important;
  background-image:none!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card i{
  grid-column:1!important;
  grid-row:1 / span 4!important;
  width:56px!important;
  height:56px!important;
  border-radius:18px!important;
  position:static!important;
  margin-top:10px!important;
  align-self:start!important;
  justify-self:start!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card span{
  grid-column:2!important;
  grid-row:1!important;
  margin:0!important;
  font-size:13px!important;
  line-height:1.2!important;
  color:#101735!important;
  font-weight:900!important;
  align-self:end!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card strong{
  grid-column:2!important;
  grid-row:2!important;
  margin:6px 0 0!important;
  font-size:32px!important;
  letter-spacing:-.04em!important;
  color:#08122f!important;
  font-weight:950!important;
  line-height:.95!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card em{
  grid-column:2!important;
  grid-row:3!important;
  margin:12px 0 0!important;
  font-size:12px!important;
  line-height:1!important;
  font-style:normal!important;
  color:#51607f!important;
  font-weight:800!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card small{
  grid-column:2!important;
  grid-row:4!important;
  margin:7px 0 0!important;
  font-size:11px!important;
  line-height:1.2!important;
  color:#667291!important;
  font-weight:800!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark{
  grid-column:3!important;
  grid-row:1 / span 4!important;
  align-self:center!important;
  justify-self:end!important;
  width:150px!important;
  height:78px!important;
  display:block!important;
  position:relative!important;
  z-index:2!important;
  filter:drop-shadow(0 14px 18px rgba(20,35,90,.09))!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark svg{
  width:100%!important;
  height:100%!important;
  display:block!important;
  overflow:visible!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark-line{
  stroke-dasharray:260!important;
  stroke-dashoffset:260!important;
  animation:ldcrmSparkDraw .9s ease forwards!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark-area{
  opacity:.92!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-trend{
  position:absolute!important;
  right:20px!important;
  bottom:17px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  border-radius:999px!important;
  padding:4px 8px!important;
  font-size:12px!important;
  font-weight:950!important;
  line-height:1!important;
  z-index:3!important;
  background:#eefdf4!important;
  color:#0aa656!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-trend.down{
  background:#fff0f1!important;
  color:#ef2f45!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-trend.neutral{
  background:#f3f6fb!important;
  color:#64748b!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 22px 52px rgba(22,29,75,.12)!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card:hover .ldcrm-spark-dot{
  transform-origin:center!important;
  animation:ldcrmDotPulse 1.2s ease infinite!important;
}
@keyframes ldcrmSparkDraw{to{stroke-dashoffset:0}}
@keyframes ldcrmDotPulse{0%,100%{r:5.2}50%{r:6.4}}
@media(max-width:1500px){
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card{grid-template-columns:58px minmax(84px,1fr) 124px!important;padding:20px 16px!important;}
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark{width:124px!important;height:70px!important;}
}
@media(max-width:1100px){
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card{grid-template-columns:58px 1fr 120px!important;min-height:136px!important;}
}
@media(max-width:720px){
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card{grid-template-columns:58px 1fr 130px!important;}
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark{width:130px!important;}
}
@media(max-width:480px){
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card{grid-template-columns:58px 1fr!important;grid-template-rows:auto auto auto auto auto!important;min-height:184px!important;}
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark{grid-column:1 / span 2!important;grid-row:5!important;width:100%!important;height:76px!important;margin-top:10px!important;}
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-trend{right:18px!important;bottom:18px!important;}
}


/* v7.3.9 Funnel KPI cleanup: left-side percentage only + corrected colors */
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card{
  min-height:118px!important;
  padding:18px 18px!important;
  grid-template-columns:58px minmax(82px,1fr) 132px!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card strong{
  font-size:30px!important;
  margin:4px 0 0!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card em{
  display:inline-flex!important;
  width:max-content!important;
  margin-top:8px!important;
  padding:4px 10px!important;
  border-radius:999px!important;
  font-size:12px!important;
  font-weight:950!important;
  line-height:1!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card small{
  display:none!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark{
  width:130px!important;
  height:66px!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-trend{
  bottom:14px!important;
  right:18px!important;
  font-size:12px!important;
}
/* Total = purple */
.ldcrm-v25 .sum-card.total{border-left:4px solid #7c3cff!important;color:#7c3cff!important;}
.ldcrm-v25 .sum-card.total em,
.ldcrm-v25 .sum-card.total .ldcrm-trend{background:#f0eaff!important;color:#6d39f4!important;}
/* Message Sent = teal/blue-green, not red */
.ldcrm-v25 .sum-card.newlead{border-left:4px solid #14b8a6!important;color:#14b8a6!important;}
.ldcrm-v25 .sum-card.newlead i{background:#e6fffb!important;color:#0f9f91!important;}
.ldcrm-v25 .sum-card.newlead i::before{color:#0f9f91!important;}
.ldcrm-v25 .sum-card.newlead em,
.ldcrm-v25 .sum-card.newlead .ldcrm-trend{background:#e6fffb!important;color:#0f9f91!important;}
/* Follow Up = orange */
.ldcrm-v25 .sum-card.overdue{border-left:4px solid #ff9f1a!important;color:#ff9f1a!important;}
.ldcrm-v25 .sum-card.overdue em,
.ldcrm-v25 .sum-card.overdue .ldcrm-trend{background:#fff4df!important;color:#e07800!important;}
/* Converted = green */
.ldcrm-v25 .sum-card.converted{border-left:4px solid #20bd68!important;color:#20bd68!important;}
.ldcrm-v25 .sum-card.converted em,
.ldcrm-v25 .sum-card.converted .ldcrm-trend{background:#e9fbf1!important;color:#10a85a!important;}
/* Lost = red: count and percentage stay red */
.ldcrm-v25 .sum-card.lost{border-left:4px solid #ff3347!important;color:#ff3347!important;}
.ldcrm-v25 .sum-card.lost strong{color:#ff3347!important;}
.ldcrm-v25 .sum-card.lost i{background:#fff0f1!important;color:#ff3347!important;}
.ldcrm-v25 .sum-card.lost i::before{color:#ff3347!important;}
.ldcrm-v25 .sum-card.lost em,
.ldcrm-v25 .sum-card.lost .ldcrm-trend{background:#fff0f1!important;color:#ff3347!important;}
@media(max-width:1100px){
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card{grid-template-columns:56px minmax(80px,1fr) 102px!important;min-height:112px!important;}
  .ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card .ldcrm-spark{width:100px!important;height:58px!important;}
}


/* v7.3.9: Remove duplicate right-side KPI percentage. Only the left percentage badge (<em>) is shown. */
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card > .ldcrm-trend.kpi{display:none!important;}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card > em{display:inline-flex!important;align-items:center;justify-content:center;}

/* v7.3.10: Total Leads moved to table toolbar + Message Reply KPI card */
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card.replied{
  border-left:4px solid #3b82f6!important;
  color:#3b82f6!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card.replied i{
  background:#eff6ff!important;
  color:#2563eb!important;
}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card.replied i::before{color:#2563eb!important;}
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card.replied em,
.ldcrm-v25 .ldcrm-summary.ldcrm-feature-cards .sum-card.replied .ldcrm-trend{
  background:#eff6ff!important;
  color:#2563eb!important;
}
.ldcrm-v25 .ldcrm-table-total-inline{
  margin-left:auto!important;
  margin-right:auto!important;
  min-width:260px!important;
  height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  color:#111a3d!important;
  white-space:nowrap!important;
}
.ldcrm-v25 .ldcrm-table-total-inline span{
  font-size:14px!important;
  font-weight:900!important;
  color:#657095!important;
  letter-spacing:.01em!important;
}
.ldcrm-v25 .ldcrm-table-total-inline strong{
  font-size:22px!important;
  line-height:1!important;
  font-weight:950!important;
  color:#111a3d!important;
}
@media(max-width:1100px){
  .ldcrm-v25 .ldcrm-table-total-inline{order:4;flex:1 1 100%;justify-content:flex-start!important;margin:2px 0 0!important;min-width:0!important;}
}

/* =========================================================
   v7.3.12: Keep bulk action buttons on the toolbar row
   ========================================================= */
.ldcrm-v25 .table-head.ldcrm-clean-controls{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:10px!important;
  min-height:64px!important;
  overflow:visible!important;
}
.ldcrm-v25 .table-head.ldcrm-clean-controls h3{
  flex:0 0 auto!important;
  margin-right:10px!important;
  white-space:nowrap!important;
  order:1!important;
}
.ldcrm-v25 .ldcrm-table-controls-row{
  flex:0 0 auto!important;
  margin-left:0!important;
  margin-right:10px!important;
  order:2!important;
}
.ldcrm-v25 .table-head.ldcrm-clean-controls .bulk-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
  order:3!important;
  white-space:nowrap!important;
}
.ldcrm-v25 .table-head.ldcrm-clean-controls .bulk-actions button{
  height:40px!important;
  line-height:40px!important;
  padding:0 14px!important;
  margin:0!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
.ldcrm-v25 .table-head.ldcrm-clean-controls .ldcrm-table-total-inline{
  order:4!important;
  margin-left:auto!important;
  margin-right:28px!important;
  flex:0 0 auto!important;
  min-width:auto!important;
  width:auto!important;
  height:40px!important;
}
.ldcrm-v25 .table-head.ldcrm-clean-controls #ldcrm-column-panel{
  order:99!important;
}
@media(max-width:1250px){
  .ldcrm-v25 .table-head.ldcrm-clean-controls{flex-wrap:wrap!important;}
  .ldcrm-v25 .table-head.ldcrm-clean-controls .bulk-actions{order:4!important;}
  .ldcrm-v25 .table-head.ldcrm-clean-controls .ldcrm-table-total-inline{order:3!important;margin-left:auto!important;}
}

/* =========================================================
   v7.3.12: Place Select/Delete/Total inside the empty toolbar area
   ========================================================= */
.ldcrm-v25 .table-head.ldcrm-clean-controls{
  display:grid!important;
  grid-template-columns:auto auto minmax(360px,1fr)!important;
  grid-template-areas:"title controls actions" "panel panel panel"!important;
  align-items:center!important;
  column-gap:14px!important;
  row-gap:10px!important;
  min-height:58px!important;
  padding:14px 18px!important;
  flex-wrap:nowrap!important;
  overflow:visible!important;
}
.ldcrm-v25 .table-head.ldcrm-clean-controls h3{
  grid-area:title!important;
  margin:0 18px 0 0!important;
  white-space:nowrap!important;
  flex:initial!important;
  order:initial!important;
}
.ldcrm-v25 .table-head.ldcrm-clean-controls .ldcrm-table-controls-row{
  grid-area:controls!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin:0!important;
  flex:initial!important;
  order:initial!important;
  min-width:0!important;
}
.ldcrm-v25 .table-head.ldcrm-clean-controls .ldcrm-table-controls-row #ldcrm-search{
  width:170px!important;
  min-width:170px!important;
  max-width:170px!important;
}
.ldcrm-v25 .table-head.ldcrm-clean-controls .bulk-actions{
  grid-area:actions!important;
  justify-self:start!important;
  align-self:center!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  order:initial!important;
  flex:initial!important;
  white-space:nowrap!important;
  z-index:2!important;
}
.ldcrm-v25 .table-head.ldcrm-clean-controls .bulk-actions button{
  height:38px!important;
  min-height:38px!important;
  line-height:38px!important;
  padding:0 14px!important;
  margin:0!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
.ldcrm-v25 .table-head.ldcrm-clean-controls .ldcrm-table-total-inline{
  grid-area:actions!important;
  justify-self:end!important;
  align-self:center!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin:0 12px 0 auto!important;
  width:auto!important;
  min-width:auto!important;
  height:38px!important;
  order:initial!important;
  flex:initial!important;
  z-index:1!important;
}
.ldcrm-v25 .table-head.ldcrm-clean-controls #ldcrm-column-panel{
  grid-area:panel!important;
  grid-column:1 / -1!important;
}
@media(max-width:1200px){
  .ldcrm-v25 .table-head.ldcrm-clean-controls{
    grid-template-columns:1fr!important;
    grid-template-areas:"title" "controls" "actions" "panel"!important;
  }
  .ldcrm-v25 .table-head.ldcrm-clean-controls .ldcrm-table-controls-row{flex-wrap:wrap!important;}
  .ldcrm-v25 .table-head.ldcrm-clean-controls .bulk-actions{justify-self:start!important;}
  .ldcrm-v25 .table-head.ldcrm-clean-controls .ldcrm-table-total-inline{justify-self:start!important;margin:0!important;}
}


/* v7.3.13 filter dropdown click/floating fix */
.ldcrm-v25 .ldcrm-table-filter-slot{position:relative!important;overflow:visible!important;z-index:1000001!important;}
.ldcrm-v25 #ldcrm-filter-toggle{cursor:pointer!important;pointer-events:auto!important;position:relative!important;z-index:1000001!important;}
.ldcrm-v25 #ldcrm-filter-dropdown.ldcrm-filter-dropdown{
  display:none;
  grid-template-columns:1fr!important;
  gap:10px!important;
  padding:14px!important;
  max-height:calc(100vh - 120px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  pointer-events:auto!important;
}
.ldcrm-v25 #ldcrm-filter-dropdown select,
.ldcrm-v25 #ldcrm-filter-dropdown button{
  width:100%!important;
  height:40px!important;
  min-height:40px!important;
  border-radius:10px!important;
  cursor:pointer!important;
}


/* v7.3.14 filter visibility override */
#ldcrm-filter-dropdown.ldcrm-filter-open{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
}
#ldcrm-filter-dropdown.ldcrm-filter-dropdown select,
#ldcrm-filter-dropdown.ldcrm-filter-dropdown button{
  display:block!important;
  width:100%!important;
  height:40px!important;
  min-height:40px!important;
  border:1px solid #d6e0ed!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#071229!important;
  padding:0 10px!important;
  font-weight:700!important;
}
#ldcrm-filter-dropdown.ldcrm-filter-dropdown #clear-filters{
  background:#4f2eed!important;
  color:#fff!important;
  border-color:#4f2eed!important;
}
