/* ==========================================================================
   לידים · קורקינטים — עיצוב
   ירוק-לילה בסרגל, ליים בסימן בלבד, ירוק לפעולה. אדום = באיחור, ענבר = בלי תאריך.
   צבע חדש — רק דרך המשתנים כאן.
   ========================================================================== */
:root {
  --paper: #f4f2ec;
  --card: #ffffff;
  --ink: #1a2420;
  --muted: #69736d;
  --line: #e3e0d6;
  --line-2: #efede6;
  --brand: #0d2b22;
  --brand-2: #163d31;
  --lime: #c8f169;
  --pri: #13704f;
  --pri-h: #0f5d41;
  --pri-bg: #e7f3ec;
  --over: #b42318;
  --over-bg: #fdecea;
  --none: #9a5a06;
  --none-bg: #fcf1df;
  --sold: #13704f;
  --lost: #7b817d;
  --talk: #2357a8;
  --talk-bg: #e8effa;
  --new: #6c3fb5;
  --new-bg: #f0eafa;
  --wa: #128c4a;
  --r: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 2px 8px rgba(20, 30, 25, .05);
  --font: "Segoe UI", "Rubik", "Assistant", "Arial Hebrew", Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--font); }
body.has-modal { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pri); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.grow { flex: 1; }
.boot { padding: 40px; text-align: center; color: var(--muted); }

/* ---------------- כפתורים ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 600; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .08s; }
.btn:hover { border-color: #cfcbbf; background: #faf9f5; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.pri:hover { background: var(--pri-h); border-color: var(--pri-h); }
.btn.ok { color: var(--sold); border-color: #b9dccb; background: var(--pri-bg); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--over); border-color: #f0c4bf; }
.btn.wa { color: var(--wa); border-color: #b8e0c8; }
.btn.sm { min-height: 32px; padding: 3px 10px; font-size: 13.5px; }
.btn.big { min-height: 46px; font-size: 16px; width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--pri); font-weight: 600; cursor: pointer; text-decoration: underline; }
.x { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 16px; padding: 4px 8px; border-radius: 6px; }
.x:hover { background: var(--line-2); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(19, 112, 79, .35); outline-offset: 1px; }

/* ---------------- סרגל עליון ---------------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 8px 20px; background: var(--brand); color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand img { border-radius: 8px; }
.brand i { color: var(--lime); font-style: normal; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: transparent; border: 0; color: rgba(255, 255, 255, .78); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.tab:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.tab.on { color: var(--brand); background: var(--lime); }
.cnt { display: inline-block; min-width: 20px; padding: 0 6px; margin-inline-start: 4px; border-radius: 10px; background: var(--over); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.tab.on .cnt { background: var(--brand); color: var(--lime); }
.who { display: flex; align-items: center; gap: 10px; }
.who .btn.new { background: var(--lime); color: var(--brand); border-color: var(--lime); }
.who .btn.new:hover { background: #d6f78b; }
.me { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; border-radius: 9px; padding: 6px 12px; cursor: pointer; max-width: 160px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fab { display: none; }

main { max-width: 1280px; margin: 0 auto; padding: 18px 20px 90px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------------- מדדים ---------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); cursor: pointer; text-align: start; transition: border-color .15s, transform .1s; }
.kpi:not(.flat):hover { border-color: var(--pri); transform: translateY(-1px); }
.kpi.flat { cursor: default; }
.kpi b { font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.kpi.call b { color: var(--pri); }
.kpi.sold b { color: var(--sold); }
.kpi.over.hot { background: var(--over-bg); border-color: #f2c2bc; }
.kpi.over.hot b { color: var(--over); }
.kpi.none.warm { background: var(--none-bg); border-color: #efd5a8; }
.kpi.none.warm b { color: var(--none); }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pill { border: 1px solid var(--line); background: var(--card); border-radius: 20px; padding: 5px 13px; cursor: pointer; font-weight: 600; font-size: 14px; }
.pill b { display: inline-block; min-width: 18px; margin-inline-start: 2px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill:hover { border-color: #cfcbbf; }
.pill.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill.on b { color: var(--lime); }
.pill.sm { padding: 3px 10px; font-size: 13px; }
.pill.ghost { color: var(--muted); }

.warn { background: var(--none-bg); border: 1px solid #efd5a8; color: #6b3f04; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.warn ul { margin: 6px 0; padding-inline-start: 20px; }
.warn .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hint { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }

/* ---------------- קטעים וכרטיסי ליד ---------------- */
.sec { margin: 18px 0 8px; }
.sec h2, .sec summary h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 10px; }
.sec .n { background: var(--line-2); border-radius: 10px; padding: 0 9px; font-size: 13px; color: var(--muted); }
.sec-overdue h2 { color: var(--over); }
.sec-overdue .n { background: var(--over-bg); color: var(--over); }
.sec-today h2 { color: var(--pri); }
.sec-none h2 { color: var(--none); }
details.sec summary { cursor: pointer; list-style: none; }
details.sec summary::-webkit-details-marker { display: none; }
details.sec summary h2::before { content: "◂"; font-size: 12px; color: var(--muted); transition: transform .15s; }
details.sec[open] summary h2::before { transform: rotate(-90deg); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.lead { padding: 12px 14px 12px; border-inline-start: 4px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.lead.b-overdue { border-inline-start-color: var(--over); }
.lead.b-today { border-inline-start-color: var(--pri); }
.lead.b-none { border-inline-start-color: #e0a33c; }
.lc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-name { background: none; border: 0; padding: 0; font-weight: 700; font-size: 17px; cursor: pointer; text-align: start; color: var(--ink); }
.lc-name:hover { color: var(--pri); text-decoration: underline; }
.lc-rm { margin-inline-start: auto; }
.chip { display: inline-block; padding: 1px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 700; background: var(--line-2); color: var(--ink); }
.chip.model { background: #1b2420; color: var(--lime); letter-spacing: .2px; }
.st { display: inline-block; padding: 1px 9px; border-radius: 20px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.st-new { background: var(--new-bg); color: var(--new); }
.st-talk { background: var(--talk-bg); color: var(--talk); }
.st-sold { background: var(--pri-bg); color: var(--sold); }
.st-lost { background: #eeeeec; color: var(--lost); }
.rm { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.rm-over { color: var(--over); }
.rm-today { color: var(--pri); }
.rm-none { color: var(--none); }
.lc-phone { display: flex; align-items: center; gap: 12px; }
.phone { font-weight: 700; font-size: 16px; text-decoration: none; direction: ltr; unicode-bidi: isolate; color: var(--ink); }
.phone:hover { color: var(--pri); text-decoration: underline; }
.wa { color: var(--wa); font-weight: 700; font-size: 13.5px; }
.lc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.lc-meta b { color: var(--ink); font-weight: 600; }
.lc-note, .lc-last { margin: 0; font-size: 14px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lc-last { font-size: 13px; color: var(--muted); }
.lc-last b { color: var(--ink); font-weight: 600; }
.lc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.snz { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 36px 16px; color: var(--muted); text-align: center; }
.empty b { color: var(--ink); font-size: 17px; }

/* ---------------- סינון וטבלה ---------------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; }
.filters input[type=search] { flex: 1 1 220px; }
.filters .adv { display: contents; }
.adv-t { display: none; }
input, select, textarea { border: 1px solid #d6d2c6; border-radius: 9px; padding: 7px 10px; background: #fff; min-height: 38px; }
input:focus, select:focus, textarea:focus { border-color: var(--pri); outline: none; box-shadow: 0 0 0 3px rgba(19, 112, 79, .15); }
.dt { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.listbar { display: flex; align-items: center; gap: 10px; margin: 0 2px 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--brand); color: #fff; border-radius: 20px; padding: 1px 4px 1px 10px; font-size: 13px; }
.tag .x { color: var(--lime); font-size: 12px; padding: 0 6px; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
thead th { position: sticky; top: 0; background: #faf9f5; font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; z-index: 1; }
.sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.sort.on { color: var(--ink); }
.sort.on::after { content: " ▾"; }
table.leads tbody tr { cursor: pointer; }
table.leads tbody tr:hover td { background: #fafaf6; }
table.leads tr.b-overdue td:first-child { box-shadow: inset -4px 0 0 var(--over); }
table.leads tr.b-today td:first-child { box-shadow: inset -4px 0 0 var(--pri); }
td.note { max-width: 280px; color: var(--muted); font-size: 13.5px; white-space: pre-wrap; }
.rmd { font-weight: 700; }
.rmd.b-overdue { color: var(--over); }
.rmd.b-today { color: var(--pri); }

/* ---------------- דוחות ---------------- */
.rep-tabs { display: flex; gap: 4px; margin-bottom: 10px; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.rtab { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 8px 14px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.rtab:hover { color: var(--ink); }
.rtab.on { color: var(--pri); border-bottom-color: var(--pri); }
table.rt tr.is-today td { background: var(--pri-bg); }
table.rt tr.is-sat td { color: #a3a094; }
.funnel { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 10px; }
.fstep .fs-t { display: flex; align-items: baseline; gap: 6px; margin-bottom: 3px; font-weight: 600; }
.fstep .fs-t b { font-size: 22px; font-variant-numeric: tabular-nums; }
.fstep .bar { height: 12px; margin-top: 0; }
.fstep .hint { margin: 4px 0 0; }
.big-num { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 10px; }
.big-num b { font-size: 26px; color: var(--pri); }
.big-num span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.rep-bar .pills { margin: 0; }
.rep-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 4px 2px 10px; }
.rep-head h2 { margin: 0; font-size: 20px; }
.rep { padding: 14px 16px; margin-bottom: 14px; }
.rep h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 16px; }
.rep h3 small { color: var(--muted); font-weight: 600; font-size: 13px; }
.rep h3 .btn { margin-inline-start: auto; }
.rep-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; }
.rep-two > .rep { margin-bottom: 0; }
table.rt td, table.rt th { padding: 7px 8px; font-variant-numeric: tabular-nums; }
table.rt tfoot td { font-weight: 800; border-top: 2px solid var(--line); border-bottom: 0; }
.num { background: none; border: 0; padding: 0 4px; font: inherit; font-weight: 700; color: var(--pri); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(19, 112, 79, .35); text-underline-offset: 3px; }
.zero { color: #b8b4a8; }
td.hot-c .num { color: var(--pri); font-size: 16px; }
td.over-c .num { color: var(--over); }
.barcol { width: 22%; }
table.rt td.nm { white-space: nowrap; }
.bar { display: block; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; margin-top: 7px; }
.bar i { display: block; height: 100%; width: 0; background: var(--pri); border-radius: 4px; }
tr.off td { color: var(--muted); }
.lists ul { list-style: none; margin: 0 0 8px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; }
.lists li { display: flex; align-items: center; gap: 4px; padding: 5px 10px; border-bottom: 1px solid var(--line-2); }
.lists li:last-child { border-bottom: 0; }
.lists li span { flex: 1; font-weight: 600; }
.lists h4 { margin: 0 0 6px; }
.mv { background: none; border: 0; color: #b0ab9e; cursor: pointer; font-size: 11px; padding: 4px; }
.mv:hover { color: var(--ink); }
.row { display: flex; align-items: center; gap: 8px; }
.row.end { justify-content: flex-end; margin-top: 10px; }
.row input { flex: 1; }

/* ---------------- חלון ---------------- */
.ov { position: fixed; inset: 0; z-index: 50; background: rgba(13, 30, 24, .45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto;
  animation: fade .15s ease-out; }
.modal { width: 100%; max-width: 560px; background: var(--card); border-radius: 16px; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); animation: rise .18s ease-out; }
.modal.wide { max-width: 760px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(10px); opacity: .6; } }
.m-head { position: relative; padding-inline-end: 34px; margin-bottom: 12px; }
.m-head h3 { margin: 0; font-size: 20px; }
.m-sub { color: var(--muted); font-size: 13.5px; }
.m-head .x { position: absolute; top: -4px; inset-inline-end: -8px; }
.m-call { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.m-call .btn.pri { direction: rtl; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.f { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 700; color: #3c4641; margin-bottom: 8px; }
.f em { color: var(--over); font-style: normal; }
.f.wide { grid-column: 1 / -1; }
.f input, .f select, .f textarea { font-weight: 400; font-size: 15px; color: var(--ink); }
.f input[type=date] { max-width: 220px; }
.lbl { display: block; }
.qd { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; background: #fff; }
.seg input:focus-visible + span { outline: 3px solid rgba(19, 112, 79, .35); }
.seg .s-new input:checked + span { background: var(--new); border-color: var(--new); color: #fff; }
.seg .s-talk input:checked + span { background: var(--talk); border-color: var(--talk); color: #fff; }
.seg .s-sold input:checked + span { background: var(--sold); border-color: var(--sold); color: #fff; }
.seg .s-lost input:checked + span { background: var(--lost); border-color: var(--lost); color: #fff; }
.chk { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; cursor: pointer; }
.chk input { min-height: 0; width: 18px; height: 18px; accent-color: var(--pri); }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 2px; margin: 8px 0; }
legend { font-weight: 700; padding: 0 6px; }
.m-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.hist { margin-top: 16px; }
.hist h4 { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.hist ol { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; border-inline-start: 2px solid var(--line); }
.hist li { display: flex; flex-direction: column; gap: 2px; padding: 6px 12px; position: relative; }
.hist li::before { content: ""; position: absolute; inset-inline-start: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--pri); }
.h-who { font-size: 12.5px; color: var(--muted); }
.h-t { white-space: pre-wrap; }
.h-c { font-size: 13px; }

/* ---------------- הודעה קופצת ---------------- */
#toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 80; background: var(--brand); color: #fff;
  padding: 10px 18px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); font-weight: 600; max-width: calc(100vw - 32px); transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--over); }

/* ---------------- כניסה ---------------- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(1200px 600px at 80% -10%, #1e5240 0%, transparent 60%), var(--brand); }
.login-box { width: 100%; max-width: 380px; padding: 28px 26px; text-align: center; }
.login-box img { border-radius: 14px; }
.login-box h1 { margin: 10px 0 2px; font-size: 24px; }
.login-box > p { margin: 0 0 18px; }
.login-box .f { text-align: start; }
.login-box .chk { justify-content: flex-start; }
.err { color: var(--over); font-weight: 600; min-height: 1.5em; margin: 10px 0 0; }

/* ---------------- טלפון ---------------- */
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .top { padding: 8px 12px; gap: 10px; flex-wrap: wrap; }
  .brand span { font-size: 16px; }
  .who .btn.new { display: none; }
  .tabs { order: 3; flex-basis: 100%; }
  .tab { padding: 6px 12px; }
  main { padding: 12px 12px 96px; }
  .fab { display: flex; align-items: center; justify-content: center; position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); left: 18px; z-index: 30; width: 58px; height: 58px;
    border-radius: 50%; border: 0; background: var(--lime); color: var(--brand); font-size: 32px; font-weight: 700; box-shadow: 0 6px 18px rgba(13, 43, 34, .35); cursor: pointer; }
  .kpis { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .kpi { padding: 9px 10px; }
  .kpi b { font-size: 22px; }
  .kpi span { font-size: 12px; }
  .cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .rep-two { grid-template-columns: 1fr; }
  .filters > select { flex: 1 1 45%; }
  .adv-t { display: inline-flex; }
  .filters .adv { display: none; flex-basis: 100%; flex-wrap: wrap; gap: 8px; }
  .filters.open .adv { display: flex; }
  .filters .adv > select, .filters .adv > .dt { flex: 1 1 45%; }
  .filters .dt input { flex: 1; min-width: 0; }
  table.leads td.nm { order: -1; }
  /* טבלאות → כרטיסים */
  table.leads thead, table.rt.workers thead, table.rt.users thead, table.rt.daily thead { display: none; }
  table.leads tr, table.rt.workers tr, table.rt.users tr, table.rt.daily tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.rt.daily tr { grid-template-columns: 1fr 1fr 1fr; }
  table.rt.daily td.barcol { display: none; }
  table.leads td, table.rt.workers td, table.rt.users td, table.rt.daily td { border: 0; padding: 2px 0; }
  table.leads td::before, table.rt.workers td::before, table.rt.users td::before, table.rt.daily td::before { content: attr(data-l); display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
  table.leads td.nm, table.rt.workers td.nm, table.rt.users td.nm, table.leads td.note, table.rt.daily td.nm { grid-column: 1 / -1; }
  table.leads td.nm::before, table.rt.workers td.nm::before, table.rt.users td.nm::before, table.rt.daily td.nm::before { display: none; }
  table.leads td.nm b { font-size: 16.5px; }
  table.leads td.note:empty { display: none; }
  table.leads tr.b-overdue { box-shadow: inset -4px 0 0 var(--over); }
  table.leads tr.b-today { box-shadow: inset -4px 0 0 var(--pri); }
  table.leads tr td:first-child { box-shadow: none !important; }
  .ov { padding: 0; align-items: flex-end; }
  .modal, .modal.wide { max-width: none; border-radius: 16px 16px 0 0; max-height: 94vh; overflow-y: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .f input[type=date] { max-width: none; }
}
@media (max-width: 420px) {
  .tab { padding: 6px 9px; font-size: 14px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .kpi { flex-direction: row; align-items: baseline; gap: 8px; padding: 7px 10px; }
  .kpi b { font-size: 20px; }
  .lc-acts .snz { flex-basis: 100%; order: 3; }
}

/* ---------------- הדפסה (דוחות) ---------------- */
@media print {
  body { background: #fff; font-size: 12px; }
  .top, .fab, .filters, .rep-bar, #toast, .num::after { display: none !important; }
  main { padding: 0; max-width: none; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .kpi { box-shadow: none; }
  .num { text-decoration: none; color: #000; }
  .rep-two { grid-template-columns: 1fr 1fr; }
}
