/* Where work comes from. v1248 */
.kp-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:4px 0 12px; }
.kp-title{ font-size:20px; font-weight:900; color:var(--navy); margin:0; }
.kp-btn{ height:36px; padding:0 13px; border-radius:9px; border:1px solid var(--line); background:#fff;
  font:inherit; font-weight:800; font-size:12.5px; color:var(--navy); cursor:pointer; }
.kp-btn:hover{ border-color:#c8d4f0; }
.kp-err{ background:#fdecea; border:1px solid #f3c2bd; color:#a03028; border-radius:10px; padding:9px 12px; font-weight:700; }
.kp-ctl{ display:flex; gap:14px; flex-wrap:wrap; margin:0 0 8px; }
.kp-pills{ display:flex; gap:6px; flex-wrap:wrap; }
.kp-pill{ height:36px; padding:0 13px; border-radius:9px; border:1.5px solid var(--line); background:#fff;
  color:var(--navy); font:inherit; font-weight:700; font-size:12.5px; cursor:pointer; }
.kp-pill.on{ background:var(--royal); border-color:var(--royal); color:#fff; }
.kp-basis{ font-size:12.5px; color:var(--muted); margin:0 0 14px; line-height:1.5; }
.kp-basis b{ color:var(--navy); }
.kp-layout{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:16px; align-items:start; }
.kp-card{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px 14px; margin-bottom:12px; }
.kp-h{ font-size:13px; font-weight:900; color:var(--navy); text-transform:uppercase; letter-spacing:.03em; margin-bottom:10px; }
.kp-sub{ color:var(--muted); font-size:12.5px; margin:0; }
.kp-tbl{ width:100%; border-collapse:collapse; font-size:13.5px; }
.kp-tbl th{ text-align:left; font-size:11px; font-weight:900; color:var(--muted); text-transform:uppercase;
  letter-spacing:.04em; border-bottom:2px solid var(--navy); padding:8px 6px; }
.kp-tbl td{ padding:9px 6px; border-bottom:1px solid var(--line); color:#1b2440; font-weight:700; }
.kp-tbl tfoot td{ border-bottom:none; border-top:2px solid var(--navy); font-weight:900; color:var(--navy); }
.kp-n{ text-align:right; }
/* Every number column lines up with its heading: a heading over numbers sits
   right like the numbers, figures use even-width digits, and the two Google
   tables share one set of column widths. Adam, 21 Sep 2026. v1304. */
.kp-tbl th{ vertical-align:bottom; }
.kp-tbl th.kp-n{ text-align:right; }
.kp-tbl td.kp-n{ white-space:nowrap; font-variant-numeric:tabular-nums; }
.kp-fix{ table-layout:fixed; }
.kp-fix th:first-child{ width:16%; }
.kp-fix th:nth-child(9){ width:12%; }
.kp-none td{ color:var(--muted); font-style:italic; }
.kp-warn{ background:#fff8f0; border:1px solid #f0d8bd; color:#a35a12; border-radius:11px; padding:11px 14px;
  font-size:12.5px; font-weight:700; }
.kp-bar{ display:grid; grid-template-columns:minmax(0,1fr) 84px 34px; align-items:center; gap:8px; margin-bottom:7px; font-size:12.5px; }
.kp-bar span{ color:#1b2440; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kp-bar i{ display:block; height:9px; border-radius:5px; background:var(--royal); }
.kp-bar b{ text-align:right; font-weight:900; color:var(--navy); }
@media(max-width:900px){
  .kp-layout{ grid-template-columns:minmax(0,1fr); }
  .kp-tbl{ font-size:12.5px; }
  .kp-tbl th:nth-child(6), .kp-tbl td:nth-child(6){ display:none; }
}

/* same reason as the Lead Tracking screen: the shell has no width of its own */
.kp-page{ max-width:1380px; margin:0 auto; padding:14px 16px 48px; }
@media(max-width:760px){
  .kp-page{ padding:10px 12px 40px; }
  .kp-card{ padding:10px 11px; }
  .kp-pill{ flex:1 1 auto; min-width:46%; }
  .kp-title{ font-size:18px; }
}

/* Reports */
.kp-tabs{ display:flex; gap:6px; flex-wrap:wrap; margin:0 0 14px; }
.kp-tab{ height:36px; padding:0 14px; border-radius:9px; border:1.5px solid var(--line); background:#fff;
  color:var(--navy); font:inherit; font-weight:800; font-size:12.5px; cursor:pointer; }
.kp-tab.on{ background:var(--royal); border-color:var(--royal); color:#fff; }
.kp-repctl{ display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; }
.kp-f{ display:flex; flex-direction:column; gap:3px; font-size:11.5px; font-weight:800; color:var(--muted); }
.kp-in{ height:36px; border:1px solid var(--line); border-radius:9px; background:#fff; font:inherit; font-size:13px;
  font-weight:700; color:var(--navy); padding:0 10px; }
.kp-btn.kp-go{ background:var(--royal); border-color:var(--royal); color:#fff; }
@media(max-width:760px){ .kp-f, .kp-in, .kp-btn.kp-go{ width:100%; } }

/* the dashboard itself. v1254 */
.kp-cards{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:10px; margin:0 0 16px; }
.kc{ position:relative; background:#fff; border:1px solid var(--line); border-radius:14px; padding:13px 14px 12px; }
.kc-pinned{ border-color:#c8d4f0; box-shadow:0 2px 10px rgba(37,71,214,.08); }
.kc-pin{ position:absolute; top:8px; right:9px; border:0; background:none; color:#c3cbe0; font-size:15px;
  line-height:1; cursor:pointer; padding:2px 3px; }
.kc-pinned .kc-pin{ color:var(--royal); }
.kc-lab{ display:block; font-size:11.5px; font-weight:800; color:var(--muted); text-transform:uppercase;
  letter-spacing:.03em; padding-right:20px; }
.kc-val{ display:block; font-size:26px; font-weight:900; color:var(--navy); line-height:1.25; margin-top:3px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kc-delta{ font-size:11.5px; font-weight:800; margin-top:2px; }
.kc-delta em{ font-style:normal; font-weight:600; color:var(--muted); margin-left:5px; }
.kc-up{ color:#2f7d1d; } .kc-down{ color:#b5342f; } .kc-flat{ color:var(--muted); }
.kc-note{ font-size:11px; color:var(--muted); font-weight:600; margin-top:3px; }
.kp-two{ display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:12px; }
/* A row holding one card keeps that card half width, so it does not stretch
   across the screen with empty space inside it. The slot beside it is for the
   next chart. v1274 */
.kp-half{ display:grid; grid-template-columns:repeat(2,minmax(320px,1fr)); gap:12px; }
@media(max-width:820px){ .kp-half{ grid-template-columns:minmax(0,1fr); } }
.kp-bars{ display:block; }
.kp-bar{ display:grid; grid-template-columns:minmax(0,150px) minmax(0,1fr) 92px; align-items:center; gap:10px;
  margin-bottom:7px; font-size:12.5px; }
.kp-bar span{ color:#1b2440; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kp-bar i{ display:block; background:#eef2ff; border-radius:6px; height:12px; }
.kp-bar i u{ display:block; height:12px; border-radius:6px; background:var(--royal); }
.kp-bar b{ text-align:right; font-weight:900; color:var(--navy); }
.kp-months{ display:flex; align-items:flex-end; gap:6px; height:190px; padding-top:6px; }
.kp-mo{ flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; height:100%; min-width:0; }
.kp-mo i{ display:block; width:100%; max-width:46px; background:var(--royal); border-radius:6px 6px 0 0; }
.kp-mo span{ font-size:10.5px; font-weight:800; color:var(--muted); margin-top:5px; }
.kp-mo u{ font-size:10px; font-weight:800; color:var(--navy); text-decoration:none; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; max-width:100%; }
@media(max-width:760px){
  .kp-cards{ grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px; }
  .kc-val{ font-size:21px; }
  .kp-bar{ grid-template-columns:minmax(0,110px) minmax(0,1fr) 74px; font-size:11.5px; }
  .kp-months{ height:150px; }
  .kp-mo u{ display:none; }
}

/* charts. v1257 */
.kd{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.kd-svg{ width:160px; height:160px; flex:none; transform:rotate(-90deg); }
.kd-seg{ transition:stroke-width .12s ease; }
.kd-seg:hover{ stroke-width:30; }
.kd-legend{ flex:1; min-width:210px; }
.kd-li{ display:grid; grid-template-columns:12px minmax(0,1fr) auto 42px; align-items:center; gap:8px;
  padding:4px 0; font-size:12.5px; }
.kd-li i{ width:12px; height:12px; border-radius:4px; display:block; }
.kd-li span{ color:#1b2440; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kd-li b{ font-weight:900; color:var(--navy); }
.kd-li u{ text-decoration:none; text-align:right; color:var(--muted); font-weight:800; font-size:11.5px; }
.kt-svg{ width:100%; height:210px; }
.kt-lab{ font-size:11px; font-weight:700; fill:#6b7488; }
.kt-keys{ display:flex; gap:14px; flex-wrap:wrap; margin-top:6px; }
.kt-key{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:800; color:var(--navy); }
.kt-key i{ width:12px; height:3px; border-radius:2px; display:block; }
.kp-x{ border:1px solid var(--line); background:#fff; color:#c0392b; border-radius:8px; width:28px; height:28px;
  font:inherit; font-weight:900; cursor:pointer; line-height:1; }
.kp-x:hover{ border-color:#f0b4b1; background:#fdf1f0; }
.kp-grow{ flex:1; min-width:180px; }
.kp-money{ width:100px; }
@media(max-width:760px){
  .kd{ gap:10px; }
  .kd-svg{ width:132px; height:132px; }
  .kt-svg{ height:170px; }
}
.kp-auto{ display:inline-block; font-size:10.5px; font-weight:900; text-transform:uppercase; letter-spacing:.04em;
  color:var(--royal); background:#eef2ff; border-radius:5px; padding:2px 6px; margin-right:6px; }
.kp-mark{ display:inline-block; font-size:10.5px; font-weight:900; text-transform:uppercase; letter-spacing:.03em;
  border-radius:5px; padding:1px 6px; margin-left:4px; vertical-align:1px; }
.kp-m-good{ background:#eaf6e4; color:#2f7d1d; }
.kp-m-ok{ background:#fff3e4; color:#a35a12; }
.kp-m-bad{ background:#fdecea; color:#b5342f; }

/* Time charts: numbers on the bars, a proper hover box, drag to pick months.
   Adam, 21 Sep 2026. v1309. */
.kt{ position:relative; }
.kt-svg{ height:230px; touch-action:pan-y; }
.kt-val{ font-size:10.5px; font-weight:800; }
.kt-hit{ fill:transparent; }
[data-pan]{ cursor:grab; user-select:none; touch-action:pan-y; position:relative; overflow:hidden; }
.kt-grab, .kt-grab *{ cursor:grabbing !important; }
.kt-move{ will-change:transform; }
.kt-pantip{ position:absolute; top:8px; left:50%; transform:translateX(-50%); display:none; background:#16246b; color:#fff;
  font-size:12.5px; font-weight:800; padding:6px 12px; border-radius:10px; pointer-events:none; z-index:6; }
.kt-pantip.on{ display:block; }
.kt-tip{ position:fixed; z-index:9999; display:none; min-width:190px; background:#fff; border:1px solid #dfe5f3;
  border-radius:12px; box-shadow:0 10px 26px rgba(22,36,107,.16); padding:10px 12px; pointer-events:none; }
.kt-tip.on{ display:block; }
.kt-th{ font-size:13px; font-weight:900; color:#16246b; margin-bottom:6px; }
.kt-tr{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:#1e2433; margin:3px 0; }
.kt-tr i{ width:10px; height:10px; border-radius:3px; display:block; flex:none; }
.kt-tr span{ flex:1; font-weight:700; color:#6b7488; }
.kt-tr b{ font-weight:900; font-variant-numeric:tabular-nums; }
.kt-tc{ margin-top:6px; font-size:12px; font-weight:800; }
.kt-tc.up{ color:#2f8f24; }
.kt-tc.down{ color:#a8302f; }
.kt-hint{ margin-left:auto; font-size:11.5px; color:#6b7488; font-weight:700; }
.kp-dates{ display:flex; align-items:center; gap:8px; }
.kp-dates span{ color:#6b7488; font-weight:700; font-size:13px; }
.kp-date{ height:36px; border:1.5px solid #e6e9f2; border-radius:10px; padding:0 10px; font:inherit; font-weight:700; color:#16246b; }

/* Two columns that each stack their own cards, so neither side leaves a gap. v1311 */
.kp-cols{ align-items:start; }
.kp-col{ display:flex; flex-direction:column; gap:12px; }
.kp-col > .kp-card{ margin-bottom:0; }

/* Pick a service, or several, and every figure on the screen reads for just
   those. Adam, 22 Sep 2026. v1313. */
.kp-svc{ position:relative; }
.kp-svcbox{ position:absolute; z-index:20; top:42px; right:0; left:auto; background:#fff; border:1.5px solid #e6e9f2; border-radius:14px;
  box-shadow:0 12px 30px rgba(22,36,107,.16); padding:10px; display:flex; flex-wrap:wrap; gap:6px; width:min(560px,86vw); max-height:52vh; overflow:auto; }

/* The service picker, grouped the way Settings groups them. v1315. */
.kp-svcbox{ padding:12px; }
.kp-svcgh{ display:flex; align-items:center; gap:10px; width:100%; font-size:12px; font-weight:900; letter-spacing:.06em;
  text-transform:uppercase; color:#6b7488; margin:10px 0 6px; }
.kp-svcrow{ display:flex; flex-wrap:wrap; gap:6px; width:100%; }
.kp-svcroll{ text-transform:none; letter-spacing:0; }
.kp-svcdone{ margin-left:auto; }

/* A month still running says which days it covers - noticeable, not shouty. v1316. */
.kt-part{ display:block; margin-top:3px; font-size:11px; font-weight:800; color:#e8862e; letter-spacing:.2px; }
.kp-click{ cursor:pointer; }
.kp-click:hover td{ background:#f4f7ff; }
.kp-click.on td{ background:#eef2ff; }
/* Service groups, the way the Settings menu groups them. v1331. */
.kp-grp{ display:flex; justify-content:space-between; align-items:center; margin:12px 0 7px; padding:5px 10px; border-radius:8px; font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.5px; }
.kp-grp:first-child{ margin-top:0; }
.kp-grp b{ font-size:12px; letter-spacing:0; font-variant-numeric:tabular-nums; }
.kp-grp-w2{ background:#eaf0ff; color:#2547d6; }
.kp-grp-hc{ background:#edfbe6; color:#2f7d1d; }
.kp-grp-block{ background:#fdf0e3; color:#b3651c; }
.kp-grp-none{ background:#f2f4f8; color:#5b647d; }
.kp-tbl tr.kp-grprow td{ background:#f5f7fc; color:var(--navy); font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.5px; padding:7px 6px; }

/* Google Ads Max-Out. v1475 */
.kp-mxwrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.kp-mxtbl{ min-width:1080px; }
.kp-mxset .kp-mxtbl{ min-width:0; max-width:620px; }
.kp-mxtbl td{ vertical-align:middle; }
.kp-mxst{ display:inline-block; border-radius:8px; padding:4px 8px; font-size:12px; font-weight:800; line-height:1.35; min-width:180px; }
.kp-mxin{ width:88px; text-align:right; }
@media(max-width:900px){
  .kp-mxtbl th:nth-child(6), .kp-mxtbl td:nth-child(6){ display:table-cell; }
}

/* Since go-live. v1476 */
.kp-golive{ align-items:flex-end; margin:0 0 12px; }
.kp-glf{ display:flex; align-items:center; gap:6px; font-size:11.5px; font-weight:800; color:var(--muted); }
.kp-glf .kp-in{ width:150px; }

/* Reports: Find. v1478 */
.kp-repbox{ margin:10px 0 0; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fafbfe; }
.kp-reptbl{ min-width:900px; }
.kp-reptbl a{ color:var(--royal); font-weight:800; text-decoration:none; }
.kp-f .kp-pill{ text-align:left; }
