/* On CRM app pages, suppress the theme/Theme-Builder page title — the app supplies its own chrome. */
body.page-template-page-template-blank .main_title,
body.page-template-page-template-blank .entry-title { display: none !important; }

/* Full-bleed: let the CRM fill the viewport edge-to-edge on every device. */
body.page-template-page-template-blank #main-content .container,
body.page-template-page-template-blank .et_pb_row,
body.page-template-page-template-blank .et_pb_section,
body.page-template-page-template-blank .entry-content,
body.page-template-page-template-blank #left-area,
body.page-template-page-template-blank article,
body.page-template-page-template-blank .page-content {
  max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important;
}
body.page-template-page-template-blank #main-content,
body.page-template-page-template-blank #content-area,
body.page-template-page-template-blank #page-container { padding: 0 !important; margin: 0 !important; }

/* Cassus CRM dashboard — styled to match cassuscrm.com (Cassus red brand). */
.cmcrm {
  --primary: #dc2626;          /* Cassus red (matches live cassuscrm.com) */
  --primary-hover: #b91c1c;
  --accent: #ef4444;
  --secondary: #16a34a;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f9fafb;
  --card: #ffffff;
  --radius: 10px;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.cmcrm *, .cmcrm *::before, .cmcrm *::after { box-sizing: border-box; }
.cmcrm [x-cloak] { display: none !important; }

/* layout — full-bleed on all devices */
.cmcrm { width: 100%; max-width: 100%; }
.cmcrm-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; width: 100%; max-width: 100%; background: var(--bg); overflow: hidden; }
.cmcrm-side { background: #0d1b2a; color: #cdd5df; display: flex; flex-direction: column; padding: 18px 12px; }
.cmcrm-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; padding: 4px 8px 16px; font-size: 16px; }
.cmcrm-brand img { height: 26px; width: auto; }
.cmcrm-nav { display: flex; flex-direction: column; gap: 2px; }
.cmcrm-nav button { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #aeb8c4; text-align: left; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; width: 100%; }
.cmcrm-nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.cmcrm-nav button.active { background: var(--primary); color: #fff; }
.cmcrm-nav .ico { width: 16px; height: 16px; flex: none; }
.cmcrm-side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; font-size: 12px; }
.cmcrm-ws-select { width: 100%; background: #16263a; color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 7px; margin-bottom: 8px; }

.cmcrm-main { padding: 22px 26px; overflow: auto; }
.cmcrm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.cmcrm-head h1 { font-size: 20px; margin: 0; font-weight: 700; }
.cmcrm-sub { color: var(--muted); font-size: 13px; }

/* buttons */
.cmcrm-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--primary); color: #fff; border: 0; padding: 9px 16px; border-radius: 9px; font-weight: 600; cursor: pointer; font-size: 13.5px; text-decoration: none; }
.cmcrm-btn:hover { filter: brightness(.94); }
.cmcrm-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.cmcrm-btn.ghost:hover { background: #f3f4f6; }
.cmcrm-btn.danger { background: #ef4444; }
.cmcrm-btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.cmcrm-btn:disabled { opacity: .55; cursor: default; }

/* cards & tables */
.cmcrm-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cmcrm-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.cmcrm-input, .cmcrm-select, .cmcrm-textarea { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-size: 13.5px; line-height: 20px; background: #fff; color: var(--ink); width: 100%; font-family: inherit; }
.cmcrm-input, .cmcrm-select { height: 40px; }
.cmcrm-textarea { height: auto; min-height: 88px; }
.cmcrm-input:focus, .cmcrm-select:focus, .cmcrm-textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent); border-color: var(--primary); }
.cmcrm-search { max-width: 280px; }

.cmcrm-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cmcrm-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 11px 12px; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; background: #fafbfc; }
.cmcrm-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.cmcrm-table tr:last-child td { border-bottom: 0; }
.cmcrm-table tbody tr:hover { background: #f9fafb; }
.cmcrm-name { font-weight: 600; cursor: pointer; }
.cmcrm-name:hover { color: var(--primary); }

.cmcrm-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.cmcrm-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* stat cards */
.cmcrm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.cmcrm-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.cmcrm-stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.cmcrm-stat .value { font-size: 26px; font-weight: 800; margin-top: 6px; }
.cmcrm-bar { height: 10px; border-radius: 6px; background: var(--primary); }
.cmcrm-barrow { display: grid; grid-template-columns: 150px 1fr 70px; gap: 10px; align-items: center; margin: 7px 0; font-size: 13px; }
.cmcrm-bartrack { background: #eef1f4; border-radius: 6px; overflow: hidden; }

/* drawer / modal */
.cmcrm-overlay { position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 99998; display: flex; justify-content: flex-end; }
.cmcrm-drawer { width: min(560px, 96vw); background: #fff; height: 100%; overflow: auto; box-shadow: -8px 0 40px rgba(0,0,0,.16); display: flex; flex-direction: column; }
.cmcrm-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.cmcrm-drawer-body { padding: 20px; }
.cmcrm-modal { position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 99998; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cmcrm-modal-card { background: #fff; border-radius: 14px; padding: 22px; width: min(440px, 96vw); }

.cmcrm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.cmcrm-tabs button { background: none; border: 0; padding: 9px 12px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; }
.cmcrm-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

.cmcrm-field { margin-bottom: 13px; }
.cmcrm-field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; color: #344054; }
.cmcrm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmcrm-row { display: flex; gap: 8px; align-items: center; }
.cmcrm-x { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; }

.cmcrm-note { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; margin-bottom: 9px; }
.cmcrm-note .meta { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.cmcrm-empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.cmcrm-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #0d1b2a; color: #fff; padding: 11px 20px; border-radius: 10px; z-index: 99999; box-shadow: 0 8px 30px rgba(0,0,0,.25); font-size: 13.5px; }
.cmcrm-pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* auth — full-screen split (matches cassuscrm.com) */
.cmcrm-auth-page { width: 100%; max-width: 100%; }
.cmcrm-auth-split { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; width: 100%; }
.cmcrm-auth-hero {
  position: relative; padding: 56px 60px; display: flex; flex-direction: column; color: #fff; overflow: hidden;
  background-image: linear-gradient(rgba(17,24,39,.82), rgba(17,24,39,.86)), url('https://images.pexels.com/photos/3182812/pexels-photo-3182812.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover; background-position: center;
}
.cmcrm-auth-logo { height: 40px; width: auto; align-self: flex-start; }
.cmcrm-auth-hero-inner { margin: auto 0; max-width: 560px; }
.cmcrm-auth-hero h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; font-weight: 800; margin: 0 0 18px; letter-spacing: -.02em; color: #fff; }
.cmcrm-auth-hero h1 .accent { color: var(--accent); }
.cmcrm-auth-hero-sub { font-size: 17px; color: rgba(255,255,255,.82); margin: 0 0 34px; max-width: 460px; }
.cmcrm-auth-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmcrm-auth-feat { display: flex; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: 12px; padding: 16px; }
.cmcrm-auth-feat .ic { width: 38px; height: 38px; border-radius: 9px; background: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.cmcrm-auth-feat .ic svg { width: 19px; height: 19px; }
.cmcrm-auth-feat strong { display: block; font-size: 14px; margin-bottom: 3px; }
.cmcrm-auth-feat p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.66); line-height: 1.4; }

.cmcrm-auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.cmcrm-auth-card { width: 100%; max-width: 400px; }
.cmcrm-auth-card h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.cmcrm-auth-card .lead { color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.cmcrm-auth-card .lead a, .cmcrm-auth-switch a { color: var(--primary); cursor: pointer; font-weight: 700; }
.cmcrm-auth-card .cmcrm-btn { width: 100%; justify-content: center; padding: 13px; font-size: 15px; margin-top: 4px; }
.cmcrm-auth-switch { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.cmcrm-auth-forgot { display: block; text-align: right; margin: -4px 0 18px; font-size: 13px; color: var(--primary); cursor: pointer; font-weight: 600; }
.cmcrm-ig { position: relative; }
.cmcrm-ig .cmcrm-ig-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #9ca3af; width: 18px; height: 18px; pointer-events: none; }
.cmcrm-ig input { padding-left: 40px; padding-top: 12px; padding-bottom: 12px; }
.cmcrm-ig .cmcrm-eye { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #9ca3af; cursor: pointer; padding: 4px; }
.cmcrm-ig .cmcrm-eye svg { width: 18px; height: 18px; }
.cmcrm-alert { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.cmcrm-ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }

/* lead form (public) */
.cmcrm-lead { max-width: 440px; margin: 0 auto; }
.cmcrm-lead .cmcrm-btn { width: 100%; justify-content: center; }

.cmcrm-spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: cmcrm-spin .8s linear infinite; margin: 60px auto; }
@keyframes cmcrm-spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .cmcrm-auth-split { grid-template-columns: 1fr; }
  .cmcrm-auth-hero { display: none; }
  .cmcrm-auth-panel { min-height: 100vh; }
}
@media (max-width: 760px) {
  .cmcrm-shell { grid-template-columns: 1fr; }
  .cmcrm-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cmcrm-nav { flex-direction: row; flex-wrap: wrap; }
  .cmcrm-side-foot { width: 100%; }
  .cmcrm-grid2 { grid-template-columns: 1fr; }
  .cmcrm-main { padding: 16px; }
}

/* ============================================================ */
/* Dashboard v2 — matches the original app (light, top nav)      */
/* ============================================================ */
.cm-app{--cm-primary:#b50600;--cm-primary-soft:#fdeaea;--ink:#111827;--muted:#6b7280;--line:#e5e7eb;--bg:#f9fafb;
  width:100%;max-width:100%;min-height:100vh;background:var(--bg);color:var(--ink);
  font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.5}
.cm-app *,.cm-app *::before,.cm-app *::after{box-sizing:border-box}
.cm-app [x-cloak]{display:none!important}
.cm-loading{min-height:60vh;display:flex;align-items:center;justify-content:center}
.cm-spinner{width:34px;height:34px;border:3px solid var(--line);border-top-color:var(--cm-primary);border-radius:50%;animation:cm-spin .8s linear infinite}
@keyframes cm-spin{to{transform:rotate(360deg)}}

/* header */
.cm-header{background:#fff;border-bottom:1px solid var(--line);box-shadow:0 1px 2px rgba(0,0,0,.04);position:relative;z-index:50}
.cm-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 16px}
@media(min-width:640px){.cm-header-inner{padding:10px 24px}}
@media(min-width:1024px){.cm-header-inner{padding:10px 32px}}
.cm-brand img{max-height:56px;width:auto;max-width:190px;object-fit:contain;cursor:pointer;display:block}
.cm-nav{display:flex;align-items:center;gap:2px;flex-wrap:nowrap;white-space:nowrap}
.cm-nav button,.cm-nav a{background:none;border:0;color:#374151;font-size:12.5px;font-weight:500;padding:8px 11px;border-radius:7px;cursor:pointer;text-decoration:none;transition:background .15s,color .15s}
.cm-nav button:hover,.cm-nav a:hover{color:#111827;background:#f3f4f6}
.cm-header-right{display:flex;align-items:center;gap:10px;flex-shrink:0}
.cm-iconbtn{position:relative;background:none;border:0;color:#6b7280;cursor:pointer;padding:6px;border-radius:7px}
.cm-iconbtn:hover{color:#111827;background:#f3f4f6}
.cm-menu{position:relative}
.cm-greeting{display:flex;align-items:center;gap:6px;background:none;border:0;color:#4b5563;font-size:13.5px;cursor:pointer;padding:6px 8px;border-radius:7px}
.cm-greeting:hover{color:#111827;background:#f3f4f6}
.cm-dropdown{position:absolute;right:0;top:calc(100% + 6px);width:230px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.12);padding:6px;z-index:100}
.cm-dropdown button,.cm-dropdown a{display:block;width:100%;text-align:left;background:none;border:0;color:#374151;font-size:13px;padding:8px 10px;border-radius:7px;cursor:pointer;text-decoration:none}
.cm-dropdown button:hover,.cm-dropdown a:hover{background:#f9fafb}
.cm-dropdown-head{padding:6px 10px;font-size:11px;color:#9ca3af;text-transform:uppercase;letter-spacing:.04em}
.cm-dropdown-acct{padding:6px 10px 10px;border-bottom:1px solid #f3f4f6;margin-bottom:4px}
.cm-dropdown-acct .b{font-weight:600;font-size:13px}
.cm-dropdown-acct div:last-child{font-size:12px;color:#9ca3af}
.cm-signout:hover{background:var(--cm-primary-soft)!important;color:var(--cm-primary)!important}
.cm-burger{display:none;background:none;border:0;color:#4b5563;cursor:pointer;padding:6px}
.cm-mobile{border-top:1px solid var(--line);background:#fff;padding:8px}
.cm-mobile button,.cm-mobile a{display:block;width:100%;text-align:left;background:none;border:0;color:#374151;font-size:14px;padding:11px 14px;border-radius:8px;cursor:pointer;text-decoration:none}
.cm-mobile button:hover,.cm-mobile a:hover{background:#f9fafb}

/* responsive nav collapse */
@media(max-width:1120px){.cm-nav,.cm-header-right{display:none}.cm-burger{display:block}}

/* main */
.cm-main{padding:18px 16px}
@media(min-width:640px){.cm-main{padding:18px 24px}}
@media(min-width:1024px){.cm-main{padding:18px 32px}}
.cm-h2{font-size:18px;font-weight:700;margin:0 0 14px}
.cm-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.cm-back{background:none;border:0;color:var(--muted);font-size:13px;cursor:pointer;padding:0;margin-bottom:10px}
.cm-back:hover{color:var(--ink)}
.muted{color:var(--muted)}.sm{font-size:12.5px}

/* status overview */
.cm-overview{margin-bottom:22px}
.cm-stat-grid{display:grid;grid-template-columns:repeat(1,1fr);gap:14px}
@media(min-width:640px){.cm-stat-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.cm-stat-grid{grid-template-columns:repeat(4,1fr)}}
.cm-stat{background:#fff;padding:16px;border:1px solid var(--line);border-radius:10px;cursor:pointer;transition:box-shadow .2s,border-color .2s}
.cm-stat:hover{box-shadow:0 4px 14px rgba(0,0,0,.07)}
.cm-stat.active{border-width:2px}
.cm-stat-num{font-size:24px;font-weight:800;margin-bottom:6px}
.cm-big{font-size:26px;font-weight:800;margin-top:4px}

/* pill */
.cm-pill{display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}

/* bulk bar */
.cm-bulkbar{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap;font-size:13px;color:var(--muted)}

/* filters */
.cm-filters{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px;margin-bottom:16px;display:flex;flex-direction:column;gap:14px}
.cm-filters-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.cm-ig{position:relative;display:flex;align-items:center}
.cm-ig.grow{flex:1;min-width:200px}
.cm-ig-icon{position:absolute;left:11px;color:#9ca3af;display:flex;pointer-events:none}
.cm-ig .cm-input{padding-left:36px}
.cm-ig-clear{position:absolute;right:8px;background:none;border:0;color:#9ca3af;cursor:pointer;padding:3px}
.cm-input{width:100%;height:40px;border:1px solid #d1d5db;border-radius:8px;padding:9px 12px;font-size:13.5px;line-height:20px;background:#fff;color:var(--ink);font-family:inherit}
textarea.cm-input{height:auto;min-height:88px}
.cm-input:focus{outline:none;border-color:var(--cm-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--cm-primary) 35%,transparent)}
select.cm-input{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:28px}
.cm-viewtoggle{display:flex;background:#f3f4f6;border-radius:8px;padding:3px}
.cm-viewtoggle button{display:flex;align-items:center;gap:6px;background:none;border:0;color:#6b7280;font-size:13px;font-weight:500;padding:6px 12px;border-radius:6px;cursor:pointer}
.cm-viewtoggle button.active{background:#fff;color:#111827;box-shadow:0 1px 2px rgba(0,0,0,.08)}

.cm-results{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--muted);margin-bottom:14px}
.cm-empty{text-align:center;padding:60px 20px;color:var(--muted)}
.cm-empty h3{color:#374151;margin:0 0 6px}

/* card grid */
.cm-card-grid{display:grid;grid-template-columns:repeat(1,1fr);gap:22px}
@media(min-width:768px){.cm-card-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.cm-card-grid{grid-template-columns:repeat(4,1fr)}}
.cm-card{background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 1px 2px rgba(0,0,0,.05);padding:22px;display:flex;flex-direction:column;transition:box-shadow .2s;overflow:hidden}
.cm-card:hover{box-shadow:0 6px 18px rgba(0,0,0,.08)}
.cm-card-top{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.cm-card-org{font-size:14px;font-weight:600;margin:0;cursor:pointer;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-card-org:hover{color:var(--cm-primary)}
.cm-card-status{margin-bottom:14px}
.cm-card-body{display:flex;flex-direction:column;gap:11px;flex:1;min-width:0}
.cm-cb{font-size:13px;color:#4b5563;min-width:0;display:flex;align-items:center}
.cm-cb b{font-weight:600;color:#374151}
.cm-cb.cm-ico svg{color:#9ca3af;margin-right:8px;flex:none}
.cm-cb a{color:inherit;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-cb a:hover{color:var(--cm-primary)}
.cm-cb span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-card-foot{margin-top:14px;padding-top:12px;border-top:1px solid #f3f4f6;font-size:11.5px;color:#9ca3af}
.cm-card-actions{margin-top:12px;padding-top:12px;border-top:1px solid #f3f4f6;display:flex;justify-content:center;gap:4px}
.cm-card-actions button{background:none;border:0;color:#9ca3af;cursor:pointer;padding:7px;border-radius:7px}
.cm-card-actions button:hover{color:var(--cm-primary);background:var(--cm-primary-soft)}
.cm-card-actions button.del:hover{color:#dc2626;background:#fef2f2}

/* list/table */
.cm-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.cm-table th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:11px 14px;border-bottom:1px solid var(--line);background:#fafbfc}
.cm-table td{padding:11px 14px;border-bottom:1px solid #f3f4f6;font-size:13.5px}
.cm-table tr:last-child td{border-bottom:0}
.cm-table tbody tr:hover{background:#fafafa}
.cm-link{font-weight:600;cursor:pointer}.cm-link:hover{color:var(--cm-primary)}
.cm-row-actions{text-align:right;white-space:nowrap}
.cm-row-actions button{background:none;border:0;color:#9ca3af;cursor:pointer;padding:5px;border-radius:6px}
.cm-row-actions button:hover{color:var(--cm-primary);background:var(--cm-primary-soft)}
.cm-row-actions button.del:hover{color:#dc2626;background:#fef2f2}

/* pagination */
.cm-pager{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:30px}
.cm-pg{display:flex;align-items:center;gap:4px;background:none;border:0;color:#4b5563;font-size:13px;font-weight:500;padding:8px 12px;border-radius:8px;cursor:pointer}
.cm-pg:hover:not(:disabled){background:#f3f4f6}
.cm-pg:disabled{opacity:.4;cursor:not-allowed}
.cm-pg-num{width:36px;height:36px;border:0;background:none;color:#4b5563;font-size:13px;font-weight:500;border-radius:8px;cursor:pointer}
.cm-pg-num:hover:not(.active){background:#f3f4f6}
.cm-pg-dots{padding:0 6px;color:#9ca3af}

/* drawer + modal */
.cm-overlay{position:fixed;inset:0;background:rgba(17,24,39,.45);z-index:99998;display:flex;justify-content:flex-end}
.cm-drawer{width:min(560px,96vw);background:#fff;height:100%;overflow:auto;box-shadow:-8px 0 40px rgba(0,0,0,.16);display:flex;flex-direction:column}
.cm-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:1}
.cm-drawer-body{padding:20px}
.cm-modal{position:fixed;inset:0;background:rgba(17,24,39,.45);z-index:99998;display:flex;align-items:center;justify-content:center;padding:20px}
.cm-modal-card{background:#fff;border-radius:12px;width:min(440px,96vw);padding:22px}
.cm-modal-card.lg{width:min(640px,96vw);max-height:90vh;overflow:auto;padding:0}
.cm-x{background:none;border:0;cursor:pointer;color:var(--muted);padding:4px;border-radius:6px}
.cm-x:hover{background:#f3f4f6;color:var(--ink)}
.cm-field{margin-bottom:13px}
.cm-field label{display:block;font-size:12.5px;font-weight:600;margin-bottom:5px;color:#344054}
.cm-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cm-grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.cm-check{display:flex;align-items:center;gap:8px;font-size:13px;margin:6px 0;color:#374151}
.cm-drawer-actions{display:flex;gap:10px;margin-top:18px}
.cm-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cm-btn{display:inline-flex;align-items:center;gap:7px;background:var(--cm-primary);color:#fff;border:0;padding:10px 18px;border-radius:8px;font-weight:600;font-size:13.5px;cursor:pointer;text-decoration:none}
.cm-btn:hover{filter:brightness(.94)}
.cm-btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--line)}
.cm-btn.ghost:hover{background:#f9fafb;filter:none}
.cm-btn.danger{background:#dc2626}
.cm-btn.sm{padding:7px 12px;font-size:12.5px}
.cm-btn:disabled{opacity:.5;cursor:default}

/* summary modal */
.cm-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}
.cm-summary-grid>div{display:flex;flex-direction:column;gap:2px}
.cm-summary-grid b{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#9ca3af;font-weight:600}
.cm-summary-grid a{color:var(--cm-primary);text-decoration:none}
.cm-notes{border-top:1px solid var(--line);padding-top:14px}
.cm-notes h4{margin:0 0 10px}
.cm-note{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin-top:9px}
.cm-note-meta{font-size:11.5px;color:#9ca3af;margin-top:5px}

/* analytics bars + status manager */
/* Bar row: label sits at its natural width (text pushes where the bar starts), the bar
   fills the remaining space, value on the right. Stays a single row on mobile too. */
.cm-barrow{display:flex;align-items:center;gap:10px;margin:8px 0;font-size:13px}
.cm-barlabel{flex:0 1 auto;min-width:0;display:flex;align-items:center;gap:8px;white-space:nowrap}
.cm-barlabel span{overflow:hidden;text-overflow:ellipsis}
.cm-bartrack{flex:1 1 auto;min-width:48px;background:#eef1f4;border-radius:6px;overflow:hidden;height:10px}
.cm-bar{height:10px;border-radius:6px}
.cm-barval{flex:0 0 auto;text-align:right;color:var(--muted);white-space:nowrap}
.cm-dot{width:9px;height:9px;border-radius:50%;flex:none}
.cm-status-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f3f4f6;gap:10px}
.cm-status-info{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cm-status-actions{display:flex;align-items:center;gap:5px}
.cm-tag{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:#9ca3af}
.cm-x.sm{font-size:14px;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center}

/* toast */
.cm-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#111827;color:#fff;padding:11px 20px;border-radius:10px;z-index:99999;box-shadow:0 8px 30px rgba(0,0,0,.25);font-size:13.5px}

@media(max-width:760px){.cm-grid2,.cm-grid3,.cm-summary-grid{grid-template-columns:1fr}}

/* Import progress */
.cm-import-bar{height:8px;background:#eef1f4;border-radius:6px;overflow:hidden}
.cm-import-bar>div{height:100%;border-radius:6px;transition:width .25s ease}
.cm-btn.is-busy{opacity:.7;pointer-events:none}

/* Find Businesses results */
.cm-places-map{display:block;width:100%;height:260px;border:1px solid var(--line);border-radius:10px;margin-bottom:16px}
.cm-places-list{display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow:auto;margin-top:6px}
.cm-place{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;cursor:pointer;transition:background .12s}
.cm-place:hover{background:#fafafa}
.cm-place input{margin-top:3px}
.cm-place-name{font-weight:600;font-size:14px}
.cm-place-addr{font-size:12.5px;color:var(--muted);margin-top:2px}
.cm-place-rating{font-size:12px;color:#d97706;margin-top:3px}

/* tabs + tasks (summary modal & global) */
.cm-tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);padding:0 20px}
.cm-tabs button{background:none;border:0;padding:11px 12px;cursor:pointer;color:var(--muted);font-weight:600;font-size:13px;border-bottom:2px solid transparent}
.cm-tabs button.active{color:var(--cm-primary);border-bottom-color:var(--cm-primary)}
.cm-count{display:inline-flex;min-width:16px;height:16px;align-items:center;justify-content:center;background:#eef1f4;color:#6b7280;border-radius:999px;font-size:10.5px;padding:0 4px;margin-left:3px}
.cm-task{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid #f3f4f6}
.cm-task:last-child{border-bottom:0}
.cm-task input[type=checkbox]{margin-top:3px}
.cm-task-body{flex:1;font-size:13.5px}
.cm-task-body.done{color:#9ca3af;text-decoration:line-through}

/* form builder */
.cm-builder{display:grid;grid-template-columns:1fr 420px;gap:20px;align-items:start}
.cm-builder-main{display:flex;flex-direction:column;gap:14px}
.cm-builder-preview{position:sticky;top:16px}
.cm-fieldrow{display:flex;gap:8px;padding:12px;background:#fafafa;border:1px solid var(--line);border-radius:9px;margin-bottom:8px}
.cm-fieldrow-move{display:flex;flex-direction:column;gap:2px;padding-top:4px}
.cm-fieldrow-grid{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cm-fieldrow-grid .cm-input{flex:0 1 auto}
.cm-fieldrow-grid .cm-input:first-child{flex:1;min-width:140px}
.cm-options{margin-top:8px;padding-left:8px;display:flex;flex-direction:column;gap:5px}
@media(max-width:980px){.cm-builder{grid-template-columns:1fr}.cm-builder-preview{position:static}}

/* workspace switcher */
.cm-brand{display:flex;align-items:center;gap:12px}
.cm-ws-switch{position:relative}
.cm-ws-btn{display:inline-flex;align-items:center;gap:5px;background:#f3f4f6;border:1px solid var(--line);color:#374151;font-size:12.5px;font-weight:600;padding:6px 10px;border-radius:8px;cursor:pointer;max-width:170px}
.cm-ws-btn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* settings — responsive card grid: cards fill the full width, columns collapse as it narrows */
.cm-settings{max-width:100%}
.cm-settings-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:20px;align-items:stretch}
.cm-settings-cols .cm-card{margin:0;display:block;width:auto;height:100%}
.cm-card-h{margin:0 0 12px;font-size:16px;font-weight:700}
.cm-rolebadge{margin-top:6px}
.cm-card.cm-danger{border-color:#fecaca;background:#fffbfb}
/* hint / instruction text needs room above (from the heading) and below (to the fields) */
.cm-hint{margin:0 0 14px;color:var(--muted);font-size:12.5px;line-height:1.5}
.cm-danger .cm-warn{margin:0 0 12px;color:#b91c1c;font-size:12.5px;line-height:1.5}
@media(max-width:520px){.cm-settings-cols{grid-template-columns:1fr}}
