.wtscrm-frontend{font-family:inherit}
.wtscrm-kpi-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.wtscrm-kpis{display:flex;gap:10px;flex-wrap:wrap}
.wtscrm-kpi{border:1px solid rgba(0,0,0,.1);border-radius:14px;padding:10px 12px;min-width:160px;background:#fff}
.wtscrm-kpi-label{font-size:12px;opacity:.7}
.wtscrm-kpi-value{font-size:18px;font-weight:700}
.wtscrm-btn{border:1px solid rgba(0,0,0,.15);background:#fff;border-radius:12px;padding:10px 14px;cursor:pointer}
.wtscrm-btn-primary{background:#0A1543;color:#fff;border-color:transparent}
.wtscrm-wrap{overflow:auto}
.wtscrm-board{display:flex;gap:14px;align-items:flex-start}
.wtscrm-col{min-width:280px;max-width:280px;border:1px solid rgba(0,0,0,.1);border-radius:18px;background:#fff}
.wtscrm-col-header{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid rgba(0,0,0,.08)}
.wtscrm-col-title{font-weight:800;font-size:13px}
.wtscrm-col-count{font-size:12px;opacity:.65}
.wtscrm-col-body{padding:10px 12px;min-height:60px}
.wtscrm-card-deal{border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:10px 10px;margin-bottom:10px;background:#fff;cursor:grab}
.wtscrm-deal-title a{text-decoration:none;color:inherit;font-weight:800}
.wtscrm-contact-line{margin-top:6px;font-size:12px;opacity:.85;display:flex;gap:6px;flex-wrap:wrap}
.wtscrm-contact-company{opacity:.8}
.wtscrm-deal-meta{margin-top:8px;display:flex;gap:6px;flex-wrap:wrap}
.wtscrm-pill{font-size:11px;border:1px solid rgba(0,0,0,.1);border-radius:999px;padding:4px 8px;opacity:.9}
.wtscrm-deal-footer{margin-top:10px;display:flex;gap:10px;justify-content:space-between;align-items:center;font-size:12px;opacity:.8}
.wtscrm-money{font-weight:800;opacity:1}
.wtscrm-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);opacity:0;pointer-events:none;transition:.15s;z-index:9998}
.wtscrm-overlay.active{opacity:1;pointer-events:auto}
.wtscrm-drawer{position:fixed;top:0;right:-420px;width:420px;max-width:92vw;height:100vh;background:#fff;box-shadow:-20px 0 50px rgba(0,0,0,.25);transition:.18s;z-index:9999;display:flex;flex-direction:column}
.wtscrm-drawer.active{right:0}
.wtscrm-drawer-header{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid rgba(0,0,0,.1)}
.wtscrm-drawer-title{font-weight:900}
.wtscrm-drawer-close{border:none;background:transparent;font-size:26px;cursor:pointer;line-height:1}
.wtscrm-drawer-body{padding:14px 16px;overflow:auto}
.wtscrm-field{margin-bottom:12px}
.wtscrm-field label{display:block;font-size:12px;opacity:.7;margin-bottom:6px}
.wtscrm-field input,.wtscrm-field select,.wtscrm-field textarea{width:100%;padding:10px 12px;border-radius:12px;border:1px solid rgba(0,0,0,.12)}
.wtscrm-actions-row{display:flex;gap:10px;align-items:center;margin-top:10px}
.wtscrm-save-status{font-size:12px;opacity:.75}
.wtscrm-typeahead{border:1px solid rgba(0,0,0,.12);border-radius:12px;margin-top:8px;overflow:hidden}
.wtscrm-typeahead-item{padding:10px 12px;cursor:pointer;background:#fff}
.wtscrm-typeahead-item:hover{background:rgba(0,0,0,.05)}
.wtscrm-typeahead-item .n{font-weight:800;font-size:13px}
.wtscrm-typeahead-item .e{font-size:12px;opacity:.75;margin-top:2px}
.wtscrm-selected{margin-top:8px;font-size:12px;opacity:.85}
.wtscrm-inline-warn{padding:10px 12px;border-radius:12px;background:rgba(185,28,28,.08);border:1px solid rgba(185,28,28,.18);color:#7f1d1d;font-size:12px;margin-bottom:8px}
.wtscrm-col-body.is-over{outline:2px dashed rgba(10,21,67,.45);outline-offset:4px;border-radius:12px}

.wtscrm-deal-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wtscrm-edit{border:none;background:transparent;cursor:pointer;opacity:.7;font-size:14px;line-height:1;padding:2px 6px;border-radius:8px}
.wtscrm-edit:hover{opacity:1;background:rgba(0,0,0,.06)}
.wtscrm-theme-btn{border:1px solid rgba(0,0,0,.15);background:#fff;border-radius:12px;padding:10px 12px;cursor:pointer}

/* ===== 1.2.2 DARK MODE READABILITY FIX ===== */
body:not(.wtscrm-light) .wtscrm-card-deal{
  background:#1f2933;
  color:#f3f4f6;
  border:1px solid rgba(255,255,255,0.06);
}

body:not(.wtscrm-light) .wtscrm-deal-title a{
  color:#ffffff;
}

body:not(.wtscrm-light) .wtscrm-contact-line,
body:not(.wtscrm-light) .wtscrm-small{
  color:#cbd5e1;
}

body:not(.wtscrm-light) .wtscrm-money{
  color:#22c55e;
  font-weight:600;
}

body:not(.wtscrm-light) .wtscrm-edit:hover{
  background:rgba(255,255,255,0.08);
}

/* ===== 1.2.3 DARK MODE GLOBAL CONTRAST FIX ===== */

/* KPI cards */
body:not(.wtscrm-light) .wtscrm-kpi-card{
  background:#1f2933;
  color:#f8fafc;
  border:1px solid rgba(255,255,255,0.06);
}

body:not(.wtscrm-light) .wtscrm-kpi-card .wtscrm-kpi-title{
  color:#cbd5e1;
}

body:not(.wtscrm-light) .wtscrm-kpi-card .wtscrm-kpi-value{
  color:#ffffff;
}

/* Column containers */
body:not(.wtscrm-light) .wtscrm-col{
  background:#111827;
  border:1px solid rgba(255,255,255,0.05);
}

body:not(.wtscrm-light) .wtscrm-col-header{
  color:#e5e7eb;
}

body:not(.wtscrm-light) .wtscrm-col-count{
  color:#94a3b8;
}

/* Fix any lingering light text */
body:not(.wtscrm-light) .wtscrm-col,
body:not(.wtscrm-light) .wtscrm-kpi-card,
body:not(.wtscrm-light) .wtscrm-col *,
body:not(.wtscrm-light) .wtscrm-kpi-card *{
  color:inherit;
}

/* ===== 1.3.0 KPI DARK MODE FIX ===== */
body:not(.wtscrm-light) .wtscrm-kpi{
  background:#111827;
  border:1px solid rgba(255,255,255,0.06);
}
body:not(.wtscrm-light) .wtscrm-kpi-label{ color:#cbd5e1; }
body:not(.wtscrm-light) .wtscrm-kpi-value{ color:#ffffff; }
body:not(.wtscrm-light) .wtscrm-kpi-bar{ background:transparent; }
body:not(.wtscrm-light) .wtscrm-delete:hover{ background:rgba(255,255,255,0.08); }
.wtscrm-delete{ border:none;background:transparent;cursor:pointer;opacity:.7;font-size:18px;line-height:1;padding:2px 8px;border-radius:10px }
.wtscrm-delete:hover{ opacity:1; background:rgba(0,0,0,0.06); }
