/* Door hangers - office Marketing screen and the technician's tab. v1799 */
.mk-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin:0 0 12px; }
.mk-tab{ height:36px; padding:0 16px; border-radius:10px; border:1.5px solid #c9d4f5; background:#fff; color:#2547d6; font:inherit; font-weight:800; font-size:14px; display:inline-flex; align-items:center; }
.mk-tab.on{ background:#2547d6; border-color:#2547d6; color:#fff; }
.mk-tab.soon{ color:#9aa2b6; border-style:dashed; cursor:default; }
.acct.dh-wrap, .dh-wrap{ display:block !important; padding:14px !important; }
.dh-msg{ background:#eef2ff; color:#16246b; border-radius:10px; padding:10px 12px; font-weight:700; margin:0 0 10px; }
.dh-bar{ display:flex; flex-direction:column; gap:8px; margin:0 0 12px; }
.dh-row{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.dh-lbl{ font-size:11.5px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; color:#6b7488; margin-right:4px; }
.dh-chip{ height:36px; padding:0 13px; border-radius:999px; border:1.5px solid #c9d4f5; background:#fff; color:#16246b; font:inherit; font-weight:800; font-size:13px; cursor:pointer; }
.dh-chip.on{ background:#2547d6; border-color:#2547d6; color:#fff; }
.dh-key{ display:flex; gap:14px; flex-wrap:wrap; font-size:12.5px; font-weight:800; color:#5d6780; }
.dh-key span{ display:inline-flex; align-items:center; gap:6px; }
.dh-key i{ flex:none !important; width:22px !important; min-width:22px; height:6px !important; border-radius:3px; display:inline-block; }
.dh-key i.dash{ background:repeating-linear-gradient(90deg,#16246b 0 5px,transparent 5px 9px); }
.dh-grid{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:12px; }
.dh-map{ position:relative; height:560px; border-radius:14px; overflow:hidden; border:1px solid #e3e7f1; background:#eef1f7; }
.dh-mapel{ width:100%; height:100%; }
.dh-maphint, .dht-hint{ padding:20px; color:#6b7488; font-weight:700; }
.dh-side{ min-width:0; }
.dh-card{ border:1px solid #e3e7f1; border-radius:14px; padding:14px; background:#fff; }
.dh-card h3{ margin:0 0 8px; font-size:16px; color:#16246b; }
.dh-p{ margin:0 0 10px; font-size:13.5px; color:#3b4566; font-weight:600; line-height:1.45; }
.dh-st b{ display:block; font-size:16px; color:#16246b; }
.dh-st span{ display:block; color:#6b7488; font-weight:700; font-size:13px; margin:2px 0 8px; }
.dh-btn{ height:40px; padding:0 14px; border-radius:11px; border:1.5px solid #c9d4f5; background:#fff; color:#2547d6; font:inherit; font-weight:800; font-size:14px; cursor:pointer; width:100%; }
.dh-btn.pri{ background:#2547d6; border-color:#2547d6; color:#fff; }
.dh-btn.sm{ height:36px; width:auto; font-size:13px; padding:0 12px; }
.dh-btn:disabled{ opacity:.6; cursor:default; }
.dh-two{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:8px; }
.dh-link{ border:0; background:none; color:#2547d6; font:inherit; font-weight:800; font-size:13px; cursor:pointer; padding:6px 0; }
.dh-pend{ margin-top:14px; border-top:1px solid #eef1f7; padding-top:12px; display:flex; flex-direction:column; gap:6px; }
.dh-pl{ display:flex; align-items:center; gap:8px; font-size:13px; color:#3b4566; }
.dh-pl span{ flex:1; min-width:0; }
.dh-x{ width:30px; height:30px; border-radius:8px; border:1px solid #f1b1b1; background:#fff; color:#d62f2f; font-weight:900; cursor:pointer; }
.dh-in{ height:40px; border:1.5px solid #c9d4f5; border-radius:10px; padding:0 10px; font:inherit; font-size:14px; color:#16246b; }
.dh-list{ margin-top:14px; border:1px solid #e3e7f1; border-radius:14px; overflow:hidden; background:#fff; }
.dh-lh{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 16px; background:#f6f8fd; border-bottom:1px solid #e3e7f1; color:#16246b; }
.dh-selbar{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-weight:800; }
.dh-li{ display:flex; align-items:center; gap:12px; padding:10px 16px; border-top:1px solid #eef1f7; flex-wrap:wrap; }
.dh-li.on{ background:#f4f7ff; }
.dh-ck input{ width:20px; height:20px; }
.dh-lm{ flex:1 1 200px; min-width:0; cursor:pointer; }
.dh-lm b{ display:block; color:#16246b; }
.dh-lm span{ display:block; font-size:12.5px; color:#6b7488; font-weight:700; }
.dh-lw{ font-size:13px; font-weight:800; color:#16246b; }
.dh-lw span{ display:block; font-size:12px; color:#6b7488; font-weight:700; }
.dh-tag{ font-size:11.5px; font-weight:900; border-radius:99px; padding:3px 10px; }
.dh-tag.plan{ background:#eef2ff; color:#16246b; }
.dh-hist{ padding:4px 16px 10px 48px; background:#fbfcff; border-top:1px dashed #e3e7f1; }
.dh-hr{ display:flex; align-items:center; gap:10px; font-size:13px; color:#3b4566; padding:4px 0; }
.dh-hr span{ flex:1; }
.dh-ov{ position:fixed; inset:0; background:rgba(16,36,107,.42); z-index:200; }
.dh-modal{ position:fixed; z-index:201; left:50%; top:50%; transform:translate(-50%,-50%); width:min(440px,calc(100% - 32px)); max-height:calc(100% - 40px); overflow:auto; background:#fff; border-radius:16px; padding:18px; box-shadow:0 20px 60px rgba(16,36,107,.35); }
.dh-modal h3{ margin:0 0 8px; color:#16246b; }
.dh-tk{ display:flex; align-items:center; gap:10px; padding:8px 4px; border-top:1px solid #eef1f7; font-weight:800; color:#16246b; }
.dh-tk input{ width:20px; height:20px; }
.dh-tk em{ margin-left:auto; font-size:12px; color:#b5342f; font-style:normal; }
@media (max-width:900px){
  .dh-grid{ grid-template-columns:1fr; }
  .dh-map{ height:420px; }
}
/* the technician's tab */
.dht-map{ height:340px; border-radius:14px; overflow:hidden; border:1px solid #e3e7f1; background:#eef1f7; margin:0 0 12px; }
.dht-mapel{ width:100%; height:100%; }
.dht-msg{ background:#e6f7e0; color:#2f7d18; border-radius:10px; padding:10px 12px; font-weight:800; margin:0 0 10px; }
.dht-msg.err{ background:#fdecec; color:#b5342f; }
.dht-h{ margin:14px 0 8px; font-size:13px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; color:#6b7488; }
.dht-card{ border:1px solid #e3e7f1; border-radius:14px; padding:12px; background:#fff; margin-bottom:8px; }
.dht-card.on{ border-color:#d62f2f; }
.dht-card.done{ opacity:.8; }
.dht-card b{ display:block; color:#16246b; font-size:16px; }
.dht-card span{ display:block; color:#6b7488; font-weight:700; font-size:13px; margin-top:2px; }
.dht-card p{ margin:8px 0 0; font-size:14px; color:#3b4566; font-weight:600; }
.dht-two{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:10px; }
.dht-b{ height:44px; border-radius:12px; border:1.5px solid #c9d4f5; background:#fff; color:#2547d6; font:inherit; font-weight:800; font-size:14.5px; }
.dht-b.pri{ background:#2547d6; border-color:#2547d6; color:#fff; }
.dht-b:disabled{ opacity:.6; }
/* v1802: drawn key lines, map buttons, hover info, recently finished */
.dh-key{ align-items:center; }
.dh-sw{ flex:none; vertical-align:middle; margin:0 6px 0 10px; }
.dh-mapbar{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:0 0 8px; }
.dh-sp{ flex:1; }
.dh-map{ position:relative; }
.dh-tip{ display:none; position:absolute; z-index:5; pointer-events:none; background:#fff; border:1px solid #dbe3f8; border-radius:10px; box-shadow:0 8px 24px rgba(16,36,107,.22); padding:8px 10px; font-size:13px; color:#16246b; max-width:240px; line-height:1.4; }
.dh-tip b{ font-weight:900; }
.dh-tip span{ display:block; color:#3b4566; font-weight:700; }
.dh-recent{ margin-top:12px; }
.dh-recent .dh-rc{ display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap:10px; align-items:center; padding:9px 16px; }
.dh-recent .dh-rc span, .dh-recent .dh-rc b{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:900px){ .dh-recent .dh-rc{ grid-template-columns:1fr 1fr; } }
.dh-rc{ display:block; width:100%; text-align:left; border:0; border-top:1px solid #eef1f7; background:#fff; padding:8px 2px; cursor:pointer; font:inherit; }
.dh-rc:hover{ background:#f6f8fd; }
.dh-rc b{ display:block; color:#16246b; font-size:14px; }
.dh-rc b em{ font-style:normal; font-size:11px; font-weight:900; color:#7c3aed; background:#f1ebff; border-radius:99px; padding:1px 7px; margin-left:4px; }
.dh-rc span{ display:block; color:#6b7488; font-weight:700; font-size:12.5px; }
/* technician: map buttons, navigate choices, confirm box */
.dht-bar{ display:flex; gap:6px; margin:0 0 8px; }
.dht-chip{ height:36px; padding:0 14px; border-radius:999px; border:1.5px solid #c9d4f5; background:#fff; color:#16246b; font:inherit; font-weight:800; font-size:13.5px; }
.dht-chip.on{ background:#2547d6; border-color:#2547d6; color:#fff; }
.dht-nav{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:8px; }
.dht-nav a{ height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; text-decoration:none; font-weight:800; font-size:13.5px; color:#fff; }
.dht-ov{ position:fixed; inset:0; background:rgba(16,36,107,.45); z-index:300; display:flex; align-items:center; justify-content:center; padding:18px; }
.dht-box{ background:#fff; border-radius:16px; padding:18px; max-width:380px; width:100%; box-shadow:0 20px 60px rgba(16,36,107,.35); }
.dht-box p{ margin:0 0 14px; font-weight:800; color:#16246b; font-size:16px; line-height:1.4; }

/* Reports. v1804 */
.mk-tab{ cursor:pointer; }
.rp-q{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:0 0 10px; font-weight:800; color:#16246b; }
.rp-in{ height:38px; border:1.5px solid #c9d4f5; border-radius:10px; padding:0 10px; font:inherit; font-size:14px; color:#16246b; background:#fff; }
.rp-in.sm{ width:90px; }
.rp-presets{ font-size:13px; color:#6b7488; font-weight:700; }
.rp-big{ display:flex; gap:10px; flex-wrap:wrap; margin:12px 0; }
.rp-big > div{ background:#f6f8fd; border:1px solid #e3e7f1; border-radius:14px; padding:12px 16px; min-width:140px; }
.rp-big b{ display:block; font-size:26px; color:#16246b; font-weight:900; }
.rp-big span{ color:#6b7488; font-weight:800; font-size:13px; }
.rp-big .rp-acts{ background:none; border:0; display:flex; gap:8px; align-items:center; margin-left:auto; }
.rp-geo{ font-size:13px; font-weight:700; color:#3b4566; margin:0 0 8px; }
.rp-map{ height:520px; margin-bottom:12px; }
.rp-r{ display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr) 90px; gap:10px; padding:8px 16px; border-top:1px solid #eef1f7; font-size:13.5px; color:#3b4566; align-items:center; }
.rp-r > *{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rp-r b{ color:#16246b; }
.rp-r > span:last-child{ text-align:right; font-weight:800; color:#16246b; }
@media (max-width:900px){ .rp-r{ grid-template-columns:1fr 1fr; } .rp-map{ height:380px; } }

/* 3D view. v1804 */
.dh-3d{ position:fixed; inset:0; z-index:400; background:#0b1230; display:flex; flex-direction:column; }
.dh-3dbar{ display:flex; align-items:center; gap:12px; padding:10px 14px; background:#16246b; color:#fff; }
.dh-3dbar b{ font-size:16px; }
.dh-3dbar span{ flex:1; font-size:13px; font-weight:700; opacity:.85; }
.dh-3dbar .dh-btn{ width:auto; }
.dh-3dmap{ flex:1; position:relative; }
.dh-3dmap gmp-map-3d{ width:100%; height:100%; display:block; }

/* Campaigns tab. v1805 */
.cm-top{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:4px 0 12px}
.cm-row{display:grid;grid-template-columns:2fr 1.2fr 1fr 2fr;gap:10px;width:100%;text-align:left;background:#fff;border:0;border-top:1px solid #e6e9f2;padding:10px 12px;font:inherit;cursor:pointer;min-height:36px}
.cm-row:hover{background:#f4f6fd}.cm-row span{color:#5b6478;font-size:13px}
.cm-ed{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.cm-w{width:100%;box-sizing:border-box}.cm-ta{min-height:300px;font-family:inherit;line-height:1.45;padding:10px}
.cm-aud{background:#f4f6fd;border-radius:10px;padding:10px 12px;margin-bottom:10px}.cm-aud span{display:block;color:#5b6478;font-size:13px;margin-top:3px}
.cm-starters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.cm-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.cm-prev{width:100%;height:620px;border:1px solid #e6e9f2;border-radius:10px;background:#f4f5f8}
.cm-big em{display:block;font-style:normal;color:#5b6478;font-size:12px;margin-top:2px}
@media (max-width:820px){.cm-ed{grid-template-columns:1fr}.cm-row{grid-template-columns:1fr}.cm-prev{height:480px}}

/* heat map key. v1805 */
.rp-key{position:absolute;left:10px;bottom:24px;z-index:5;background:#fff;border:1px solid #dfe5f3;border-radius:10px;padding:8px 10px;width:230px;box-shadow:0 2px 8px rgba(22,36,107,.15);font-size:12px;color:#16246b}
.rp-key b{display:block;font-size:12.5px;margin-bottom:5px}
.rp-key-bar{height:12px;border-radius:6px}
.rp-key-n{display:flex;justify-content:space-between;font-weight:800;margin-top:3px}
.rp-key em{display:block;font-style:normal;color:#5b6478;margin-top:4px;line-height:1.3}

/* door hangers, technician: saved bar with Undo, pinned to the bottom. v1818 */
.dht-undo{ position:fixed; left:12px; right:12px; bottom:16px; z-index:9000; display:flex; align-items:center; gap:10px; background:#16246b; color:#fff; border-radius:14px; padding:10px 10px 10px 16px; box-shadow:0 10px 30px rgba(16,36,107,.35); font-weight:800; font-size:14px; max-width:560px; margin:0 auto; }
.dht-undo span{ flex:1; }
.dht-undo .dht-b{ background:#fff; color:#16246b; border:0; min-width:80px; }
/* Phone lists, one slim row each: street and town, last hung on the right,
   History beside it; campaigns and funnels name, status, then one gray line.
   Adam, 5 Nov 2026. v1931 */
@media (max-width:760px){
  .dh-li{ display:grid; grid-template-columns:24px minmax(0,1fr) auto auto; gap:2px 10px; padding:8px 12px; }
  .dh-li .dh-lm{ min-width:0; }
  .dh-li .dh-lm b, .dh-li .dh-lm span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .dh-li .dh-lw{ text-align:right; font-size:12px; white-space:nowrap; }
  .dh-li .dh-tag{ grid-column:2 / -1; grid-row:2; justify-self:start; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .dh-li .dh-link{ min-height:36px; padding:0 2px; }
  .cm-row{ grid-template-columns:minmax(0,1fr) auto; gap:2px 10px; padding:9px 12px; }
  .cm-row > b{ grid-column:1; grid-row:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cm-row > span:nth-of-type(1){ grid-column:2; grid-row:1; text-align:right; white-space:nowrap; font-weight:800; }
  .cm-row > span:nth-of-type(2){ grid-column:2; grid-row:2; text-align:right; white-space:nowrap; font-size:12px; }
  .cm-row > span:nth-of-type(3){ grid-column:1; grid-row:2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; }
  .cm-row > span:empty{ display:none; }
}
/* Report rows on a phone: the name and the amount on top, the rest in one small
   gray line under it. v1931 */
@media (max-width:760px){
  .rp-r{ grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:2px 8px; padding:8px 12px; }
  .rp-r > b{ grid-column:1 / 3; grid-row:1; font-size:14.5px; }
  .rp-r > :last-child{ grid-column:3; grid-row:1; }
  .rp-r > span:not(:last-child){ font-size:12px; color:#5b6478; font-weight:700; }
}
/* Report options. v1970 */
.rp-opt{ display:inline-flex; align-items:center; gap:6px; min-height:36px; font-weight:700; font-size:13px; color:#16246b; cursor:pointer; }
.rp-opt input{ width:18px; height:18px; accent-color:#2547d6; }

/* the street's name over its lit-up line. v2009 */
.dh-stname{ background:#fff; padding:2px 8px; border-radius:999px; box-shadow:0 1px 4px rgba(22,36,107,.35); border:1px solid #dfe6f6; white-space:nowrap; }

/* overhaul, v2157: the numbers at a glance, cleaner rows */
.dh-stats{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:14px; }
.dh-stat{ background:#fff; border:1px solid #e3e7f1; border-radius:14px; padding:12px 14px; }
.dh-stat b{ display:block; font-size:22px; color:#16246b; line-height:1.1; }
.dh-stat span{ display:block; font-size:12.5px; font-weight:800; color:#6b7488; margin-top:2px; }
@media (max-width:760px){ .dh-stats{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.dh-modal select.dh-in, .dh-modal input.dh-in{ display:block; width:100%; height:36px; margin:4px 0 10px; box-sizing:border-box; }
.dh-li{ min-height:56px; }
.dh-lw{ min-width:150px; text-align:right; }
