/* Calls - its own screen, outside index.html. v1246 */
.cl-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:4px 0 14px; }
.cl-title{ font-size:20px; font-weight:900; color:var(--navy); margin:0; }
.cl-err{ background:#fdecea; border:1px solid #f3c2bd; color:#a03028; border-radius:10px; padding:9px 12px; font-weight:700; }
.cl-cols{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:18px; align-items:start; }
.cl-main{ min-width:0; }
.cl-card{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:14px 16px; margin-bottom:16px; }
.cl-card-h{ font-size:15px; font-weight:900; color:var(--navy); margin-bottom:10px; }
.cl-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:8px 10px; }
/* The address runs the full width, with Google's search above the box. v1348. */
.cl-grid .cl-wide{ grid-column:1/-1; }
.cl-grid .ac-host{ margin-bottom:4px; }
.cl-grid label, .cl-row2 label{ display:flex; flex-direction:column; gap:3px; font-size:11.5px; font-weight:800; color:var(--muted); }
.cl-in{ height:36px; border:1px solid var(--line); border-radius:9px; background:#fff; font:inherit; font-size:13.5px;
  font-weight:600; color:var(--navy); padding:0 10px; width:100%; box-sizing:border-box; }
.cl-money{ width:88px; }
.cl-row2{ display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; margin-top:10px; }
.cl-grow{ flex:1; min-width:180px; }
.cl-lab{ font-size:11.5px; font-weight:800; color:var(--muted); margin:12px 0 5px; }
.cl-pills{ display:flex; gap:6px; flex-wrap:wrap; }
.cl-pill{ height:36px; border:1.5px solid var(--line); border-radius:9px; background:#fff; color:var(--navy); font:inherit;
  font-weight:800; font-size:12.5px; padding:0 12px; cursor:pointer; }
.cl-pill.on{ background:var(--royal); border-color:var(--royal); color:#fff; }
.cl-pill.on.cl-booked{ background:#57bd34; border-color:#57bd34; }
.cl-pill.on.cl-stopped{ background:#b5342f; border-color:#b5342f; }
.cl-known{ margin-top:10px; background:#f4f7ff; border:1px solid #dfe6fb; border-radius:9px; padding:8px 11px; font-size:12.5px;
  font-weight:700; color:var(--navy); }
.cl-link{ color:var(--royal); font-weight:900; cursor:pointer; }
.cl-foot{ display:flex; align-items:center; gap:10px; margin-top:12px; }
.cl-go{ height:36px; border:0; border-radius:9px; background:var(--royal); color:#fff; font:inherit; font-weight:800;
  font-size:13px; padding:0 16px; cursor:pointer; }
.cl-go:disabled{ opacity:.6; cursor:default; }
.cl-btn{ height:36px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--navy); font:inherit;
  font-weight:800; font-size:12.5px; padding:0 13px; cursor:pointer; }
.cl-btn.cl-on, .cl-btn.on{ background:var(--royal); border-color:var(--royal); color:#fff; }   /* the picked one shows. v2059 */
.cl-btn:disabled{ opacity:.45; cursor:default; }
.cl-msg{ font-size:12.5px; font-weight:800; color:#2f7d18; }
.cl-tabs{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:0 0 10px; }
.cl-tab{ height:36px; border:1.5px solid var(--line); border-radius:9px; background:#fff; color:var(--navy); font:inherit;
  font-weight:800; font-size:12.5px; padding:0 12px; cursor:pointer; }
.cl-tab span{ color:var(--muted); font-weight:700; margin-left:3px; }
.cl-tab.on{ background:var(--royal); border-color:var(--royal); color:#fff; }
.cl-tab.on span{ color:#dfe6ff; }
.cl-find{ margin-left:auto; width:220px; }
.cl-thread{ background:#fff; border:1px solid var(--line); border-radius:12px; margin-bottom:6px; }
.cl-thread.open{ border-color:#c8d4f0; }
.cl-trow{ display:grid; grid-template-columns:118px minmax(0,1fr) 150px 150px; gap:10px; align-items:center;
  padding:8px 12px; cursor:pointer; min-height:36px; }
.cl-state{ font-size:10.5px; font-weight:900; text-transform:uppercase; letter-spacing:.04em; border-radius:6px;
  padding:4px 8px; text-align:center; }
.cl-state.cl-trying{ background:#eef2ff; color:var(--royal); }
.cl-state.cl-booked{ background:#edfbe6; color:#2f7d18; }
.cl-state.cl-stopped{ background:#fdecea; color:#b5342f; }
.cl-who, .cl-last{ min-width:0; }
.cl-who b, .cl-last b{ display:block; font-size:13.5px; color:var(--navy); }
.cl-who i, .cl-last i{ display:block; font-style:normal; font-size:11.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cl-src{ font-size:12px; font-weight:700; color:var(--navy); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cl-detail{ border-top:1px solid var(--line); padding:10px 12px 12px; }
.cl-hist{ display:flex; flex-direction:column; gap:4px; }
.cl-h{ display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline; font-size:12.5px; background:var(--field);
  border-radius:8px; padding:6px 9px; }
.cl-hn{ font-weight:900; color:var(--royal); }
.cl-hd{ font-weight:700; color:var(--muted); }
.cl-ho{ font-weight:800; color:var(--navy); }
.cl-hnote{ flex-basis:100%; color:var(--navy); }
.cl-rail{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:14px; position:sticky; top:12px; }
.cl-rail-h{ font-size:11.5px; font-weight:900; color:var(--royal); text-transform:uppercase; letter-spacing:.05em; margin-bottom:8px; }
.cl-fig{ padding:7px 0; border-bottom:1px solid var(--line); }
.cl-fig span{ display:block; font-size:11.5px; font-weight:800; color:var(--muted); }
.cl-fig b{ display:block; font-size:20px; font-weight:900; color:var(--navy); line-height:1.2; }
.cl-fig i{ display:block; font-style:normal; font-size:11px; color:var(--muted); }
.cl-tbl{ width:100%; border-collapse:collapse; font-size:12px; }
.cl-tbl th{ text-align:left; color:var(--muted); font-weight:800; padding:4px 3px; border-bottom:1px solid var(--line); }
.cl-tbl td{ padding:5px 3px; border-bottom:1px solid var(--line); color:var(--navy); font-weight:700; }
@media(max-width:900px){
  .cl-cols{ grid-template-columns:1fr; }
  .cl-rail{ position:static; }
  .cl-trow{ grid-template-columns:100px minmax(0,1fr); }
  .cl-src, .cl-last{ grid-column:2; }
  .cl-find{ margin-left:0; width:100%; }
}

/* The screen holds itself in - the shell it sits in has no width or padding of
   its own, so without this it ran edge to edge on a wide monitor. v1251 */
.cl-page{ max-width:1380px; margin:0 auto; padding:14px 16px 48px; }
@media(max-width:760px){
  .cl-page{ padding:10px 12px 40px; }
  .cl-cols{ gap:12px; }
  .cl-card{ padding:12px; margin-bottom:12px; }
  .cl-grid{ grid-template-columns:1fr; }
  .cl-pill, .cl-in, .cl-btn{ font-size:14px; }
  .cl-pills .cl-pill{ flex:1 1 auto; min-width:46%; }
  .cl-top{ margin-bottom:10px; }
  .cl-title{ font-size:18px; }
  .cl-tbl{ font-size:11.5px; }
}

/* What they ended up buying, and the three tables that come out of it. v1287 */
.cl-got{ display:flex; gap:6px; flex-wrap:wrap; margin:0 0 10px; }
.cl-tbl{ width:100%; border-collapse:collapse; font-size:.93rem; }
.cl-tbl th{ text-align:left; color:var(--muted); font-weight:800; font-size:.78rem;
  text-transform:uppercase; letter-spacing:.04em; padding:6px 8px; border-bottom:1px solid var(--line); }
.cl-tbl td{ padding:7px 8px; border-bottom:1px solid #f0f3f9; }
.cl-tbl td:not(:first-child), .cl-tbl th:not(:first-child){ text-align:right; width:120px; }
.cl-tbl tbody tr:last-child td{ border-bottom:0; }

/* A lead that matched nobody has to stand out - nothing closes it by itself
   until it is linked to a customer. Adam, 22 Sep 2026. v1312. */
.cl-warn{ background:#fdecec; border:1.5px solid #f0b3b3; color:#8f2020; border-radius:12px;
  padding:10px 14px; font-size:.92rem; font-weight:700; margin:10px 0; }
.cl-warn b{ font-weight:900; }
.cl-nolinkbox{ background:#fdecec; border:1.5px solid #f0b3b3; color:#8f2020; border-radius:12px; padding:10px 14px; margin-bottom:10px; }
.cl-state.cl-nolink{ background:#fdecec; border-color:#f0b3b3; color:#8f2020; }
.cl-hits{ display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.cl-hit{ text-align:left; background:#fff; border:1.5px solid #e6e9f2; border-radius:10px; padding:8px 12px;
  font:inherit; font-weight:800; color:#16246b; cursor:pointer; display:flex; flex-direction:column; gap:2px; }
.cl-hit:hover{ border-color:#2547d6; }
.cl-hit i{ font-style:normal; font-weight:600; font-size:.82rem; color:#6b7488; }
.cl-sub{ color:#6b7488; font-size:.88rem; font-weight:600; margin:-2px 0 10px; }
/* service groups in the by-service table. v1331. */
.cl-tbl tr.cl-grprow td{ background:#f5f7fc; color:var(--navy); font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.5px; padding:7px 8px; }
.cl-pill.cl-offmenu{ background:#fff4f2; border-color:#f1b5ab; color:#9b2c1d; }

/* Add as prospect / customer / new beside Save the lead. v1342. */
.cl-foot .cl-addas{ width:auto; min-width:190px; height:36px; }

/* what happened to the booked visit - v1353 */
.cl-fate{ font-size:10.5px; font-weight:800; border-radius:6px; padding:2px 7px; margin-left:4px; white-space:nowrap; align-self:center; }
.cl-f-done{ background:#edfbe6; color:#2f7d18; }
.cl-f-coming{ background:#eef2ff; color:#2547d6; }
.cl-f-late{ background:#fff4e5; color:#a8560c; }
.cl-f-reopened{ background:#fdecea; color:#b5342f; }

/* Leads on a phone, one slim row each like Jobber's request list: the name and
   one gray line, open or booked and the tries on the right. Where they found
   us moves inside the lead. The Add a lead form starts closed. Adam, 5 Nov 2026. v1931 */
.cl-phoneonly{ display:none; }
.cl-addbar{ padding:10px 12px; }
.cl-addbar .cl-go{ width:100%; height:36px; }
.cl-addx{ float:right; height:36px; margin-top:-6px; }
@media(max-width:760px){
  .cl-phoneonly{ display:block; }
  .cl-trow{ grid-template-columns:minmax(0,1fr) auto 14px; gap:2px 10px; padding:8px 8px 8px 12px; min-height:56px; }
  .cl-trow > .cl-who{ grid-column:1; grid-row:1 / span 2; }
  .cl-trow > .cl-who b{ font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cl-trow > .cl-who i{ font-size:12.5px; margin-top:2px; }
  .cl-trow > .cl-state{ grid-column:2; grid-row:1; justify-self:end; padding:3px 7px; font-size:10px; white-space:nowrap; }
  .cl-trow > .cl-last{ grid-column:2; grid-row:2; text-align:right; }
  .cl-trow > .cl-last b{ font-size:12px; color:var(--muted); }
  .cl-trow > .cl-last i, .cl-trow > .cl-src, .cl-trow > .cl-fate{ display:none; }
  .cl-trow::after{ content:'\203A'; grid-column:3; grid-row:1 / span 2; align-self:center; color:#8a94a6; font-size:22px; font-weight:700; text-align:center; }
  .cl-thread.open .cl-trow::after{ transform:rotate(90deg); color:var(--royal); }
}
.ro-qin{ display:inline-flex; align-items:center; height:36px; padding:0 12px; border-radius:9px; background:#eaf7e4; color:#2f7d1f; font-weight:800; font-size:13px; }   /* v2060 */
/* Email box option rows: label above, even buttons, details underneath. v2061 */
.ro-lab{ margin:12px 0 6px; font-size:11.5px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
.ro-seg{ display:grid; gap:6px; }
.ro-seg2{ grid-template-columns:repeat(2,minmax(0,1fr)); max-width:360px; }
.ro-seg3{ grid-template-columns:repeat(3,minmax(0,1fr)); max-width:540px; }
.ro-seg .cl-btn{ width:100%; padding:0 8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ro-qin{ width:fit-content; margin-top:10px; }
.ro-det{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:8px; font-weight:800; color:var(--navy); font-size:14px; }
.ro-det input[data-rom="fd"]{ width:88px; height:36px; }
.ro-dhelp{ margin-top:6px; font-size:12px; font-weight:700; color:var(--muted); line-height:1.4; }
@media (max-width:520px){ .ro-seg3{ grid-template-columns:1fr; } }
