/* מערכת הספקים — עיצוב משותף (כניסה, חשבון ספק, ניהול). שפת העיצוב של system.snapbox.co.il. */
:root{
    --bg:#F3F8F7; --surface:#FFFFFF; --surface-2:#E3F2EF; --line:#CFE2DE;
    --fg:#0F2321; --muted:#4F6B67; --faint:#8AA4A0;
    --accent:#0F766E; --accent-strong:#0B5F58; --accent-ink:#FFFFFF; --accent-soft:rgba(15,118,110,.1);
    --gold:#8A5A0F; --bad:#C62828; --ok:#18794E;
    --f-display:'Frank Ruhl Libre','IBM Plex Sans Hebrew',Georgia,serif;
    --f-body:'IBM Plex Sans Hebrew','Segoe UI',system-ui,sans-serif;
    --f-num:'IBM Plex Mono',ui-monospace,Menlo,monospace;
}
*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body{ margin:0; background:var(--bg); }
body{ font-family:var(--f-body); color:var(--fg); font-size:16px; line-height:1.6; min-height:100dvh; -webkit-font-smoothing:antialiased;
      padding-top:env(safe-area-inset-top); padding-bottom:env(safe-area-inset-bottom); }
h1,h2,h3{ font-family:var(--f-display); font-weight:400; line-height:1.2; margin:0; }
a{ color:var(--accent); }
.hidden{ display:none !important; }
[hidden]{ display:none !important; }   /* גובר על display של רכיבים (למשל items-box) */
.ltr{ direction:ltr; unicode-bidi:isolate; }
.num{ font-family:var(--f-num); font-variant-numeric:tabular-nums; direction:ltr; unicode-bidi:isolate; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }

/* ---------- סרגל עליון ---------- */
.bar{ position:sticky; top:0; z-index:20; background:rgba(243,248,247,.9); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.bar .in{ max-width:1120px; margin:0 auto; padding:10px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--f-display); font-size:1.1rem; color:var(--fg); text-decoration:none; }
.brand-mark{ width:32px; height:32px; border-radius:10px; background:var(--accent); color:var(--accent-ink); display:grid; place-items:center; font-size:.95rem; }
.who{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13px; color:var(--muted); }

.wrap{ max-width:1120px; margin:0 auto; padding:20px 16px 60px; }
.narrow{ max-width:760px; }

/* ---------- כפתורים ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:11px 20px; border-radius:999px; font-weight:700; font-size:15px;
      text-decoration:none; border:1px solid var(--line); color:var(--fg); background:var(--surface); font-family:var(--f-body); cursor:pointer; transition:transform .12s, background .15s; }
.btn:hover{ transform:translateY(-1px); }
.btn:disabled{ opacity:.6; cursor:wait; transform:none; }
.btn.primary{ background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
.btn.wa{ background:#25D366; color:#fff; border-color:#25D366; }
.btn.sm{ padding:7px 13px; font-size:13px; }
.btn.lg{ padding:14px 24px; font-size:16.5px; }
.btn.block{ width:100%; }
.btn.danger{ color:var(--bad); border-color:rgba(198,40,40,.35); }
.btn svg{ width:18px; height:18px; flex:none; }
.link{ background:none; border:0; padding:6px 2px; min-height:32px; font:inherit; font-weight:700; color:var(--accent); cursor:pointer; text-decoration:underline; text-underline-offset:3px; }

/* ---------- כרטיסים ---------- */
.card{ background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:0 18px 40px -30px rgba(15,35,33,.45); }
.card-h{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 20px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.card-h h2{ font-size:1.15rem; }
.card-b{ padding:20px; }

/* ---------- טאבים ---------- */
.tabs{ display:flex; gap:6px; background:var(--surface-2); padding:5px; border-radius:999px; width:max-content; max-width:100%; margin-bottom:18px; }
.tabs button{ border:0; background:transparent; font:inherit; font-weight:700; font-size:14.5px; padding:9px 18px; border-radius:999px; color:var(--muted); cursor:pointer; }
.tabs button.on{ background:var(--surface); color:var(--fg); box-shadow:0 2px 8px -4px rgba(0,0,0,.25); }

/* ---------- שדות ---------- */
.grid2{ display:grid; grid-template-columns:1fr; gap:14px; }
@media(min-width:640px){ .grid2{ grid-template-columns:1fr 1fr; gap:16px 18px; } .span2{ grid-column:span 2; } }
.lbl{ display:block; font-size:13px; font-weight:700; margin-bottom:5px; }
.lbl small{ font-weight:400; color:var(--muted); }
.field{ width:100%; font:inherit; font-size:15.5px; color:var(--fg); padding:11px 13px; background:#fff; border:1px solid var(--line); border-radius:12px; outline:none; transition:border-color .15s, box-shadow .15s; }
.field:focus{ border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-soft); }
select.field{ cursor:pointer; }
textarea.field{ resize:vertical; min-height:68px; }
.hint{ font-size:12px; color:var(--muted); margin:5px 0 0; min-height:15px; }
.hint.ok{ color:var(--ok); } .hint.warn{ color:var(--gold); }

.breakdown{ border-radius:14px; background:var(--surface-2); padding:14px 16px; font-size:14px; display:flex; flex-direction:column; gap:6px; }
.breakdown .row{ display:flex; justify-content:space-between; gap:12px; }
.breakdown .row span:last-child{ font-weight:700; white-space:nowrap; }
.breakdown .row.disc{ color:var(--ok); font-weight:700; }
.breakdown .sum{ border-top:1px dashed var(--accent); padding-top:8px; margin-top:2px; font-weight:800; font-size:16px; color:var(--accent-strong); }
.result{ border-radius:14px; background:var(--accent-soft); border:1px solid rgba(13,148,136,.3); padding:16px; display:flex; flex-direction:column; gap:12px; margin-top:18px; }
.result .row{ display:flex; gap:8px; }
.result .field{ font-family:var(--f-num); font-size:12px; }

/* ---------- לוח בקרה ---------- */
.kpis{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:18px; }
@media(min-width:760px){ .kpis{ grid-template-columns:repeat(5,1fr); } }
.kpi{ padding:14px; }
.kpi .l{ font-size:12.5px; color:var(--muted); font-weight:700; }
.kpi .n{ font-family:var(--f-body); font-size:clamp(22px,3.2vw,30px); font-weight:800; margin-top:2px; white-space:nowrap; }
.kpi.hl{ background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
.kpi.hl .l{ color:#fff; }
.charts{ display:grid; grid-template-columns:1fr; gap:14px; margin-bottom:18px; }
@media(min-width:860px){ .charts{ grid-template-columns:1fr 1.4fr; } }
.chart-box{ position:relative; height:240px; }
.toolbar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.toolbar .field{ flex:1 1 220px; }
.seg{ display:flex; gap:4px; background:var(--surface-2); padding:4px; border-radius:999px; }
.seg button{ border:0; background:transparent; font:inherit; font-weight:700; font-size:13px; padding:7px 14px; border-radius:999px; color:var(--muted); cursor:pointer; }
.seg button.on{ background:var(--surface); color:var(--fg); }
.tbl-wrap{ overflow-x:auto; }
table{ width:100%; border-collapse:collapse; min-width:860px; }
th,td{ padding:11px 14px; text-align:right; font-size:13.5px; white-space:nowrap; border-bottom:1px solid var(--line); }
thead th{ font-size:12px; color:var(--muted); font-weight:700; background:var(--bg); }
tbody tr:hover{ background:#F7FBFA; }
td.name{ font-weight:700; white-space:normal; }
.pill{ display:inline-block; padding:3px 11px; border-radius:999px; font-size:12px; font-weight:800; }
.pill.signed{ background:rgba(24,121,78,.12); color:#11633F; }
.pill.pending{ background:rgba(183,121,31,.14); color:#6E470A; }
.pill.off{ background:rgba(198,40,40,.1); color:var(--bad); }
.sub{ font-size:11.5px; color:var(--muted); margin-top:2px; }
.acts{ display:flex; gap:6px; flex-wrap:wrap; }
.loading{ text-align:center; padding:34px; color:var(--muted); }

/* ---------- כניסה ---------- */
.gate{ max-width:420px; margin:10vh auto 0; text-align:center; }
.gate .card-b{ display:flex; flex-direction:column; align-items:center; gap:14px; padding:34px 26px; }
.gate h1{ font-size:1.7rem; }
.gate p{ margin:0; color:var(--muted); line-height:1.7; }
.for-note{ margin:0; background:var(--accent-soft); border:1px solid rgba(15,118,110,.3); border-radius:12px; padding:10px 14px; font-size:14px; }
.trial-cta{ margin:0; font-size:14.5px; }
.trial-cta a{ font-weight:800; }
.err{ color:var(--bad); font-weight:700; font-size:14px; }

.owner-banner{ background:#FFF6E5; border:1px solid #F0C982; color:#7A4A00; border-radius:12px; padding:10px 14px; font-size:13.5px; display:flex; justify-content:space-between; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:16px; }
.tenant-head{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.tlogo{ width:46px; height:46px; border-radius:13px; display:grid; place-items:center; font-weight:800; font-size:19px; color:#fff; overflow:hidden; flex:none; }
.tlogo img{ width:100%; height:100%; object-fit:contain; background:#fff; }
.tenant-head h1{ font-size:1.5rem; }
.tenant-head p{ margin:0; color:var(--muted); font-size:13.5px; }

/* ---------- מסמכים משפטיים ---------- */
.doc{ max-width:820px; margin:0 auto; padding:24px 16px 40px; }
.doc h1{ font-size:clamp(1.7rem,4.5vw,2.3rem); margin:4px 0 6px; }
.doc .lead{ color:var(--muted); margin:0 0 20px; }
.doc .toc{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 22px; padding:0; list-style:none; }
.doc .toc a{ display:inline-block; text-decoration:none; font-size:13px; font-weight:700; padding:6px 12px; border-radius:999px; background:var(--surface-2); color:var(--fg); }
.doc section{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:18px 22px; margin-bottom:14px; scroll-margin-top:80px; }
.doc section h2{ font-size:1.15rem; margin:0 0 8px; display:flex; gap:10px; align-items:center; }
.doc section h2 .n{ font-family:var(--f-num); font-size:12px; background:var(--accent); color:var(--accent-ink); border-radius:7px; padding:3px 7px; }
.doc p, .doc li{ font-size:15px; line-height:1.85; color:#28403D; margin:0; }
.doc p + p, .doc p + ul, .doc ul + p{ margin-top:8px; }
.doc ul{ padding-inline-start:20px; margin:0; }
.doc li{ margin-bottom:4px; }
.doc .updated{ text-align:center; color:var(--muted); font-size:12.5px; margin-top:16px; }
.site-foot{ border-top:1px solid var(--line); margin-top:30px; padding:22px 16px 90px; text-align:center; color:var(--muted); font-size:13px; }
.site-foot nav{ display:flex; justify-content:center; flex-wrap:wrap; gap:8px 16px; margin-bottom:8px; }
.site-foot a{ color:var(--muted); font-weight:700; }
.skip{ position:absolute; right:12px; top:-60px; background:var(--accent); color:var(--accent-ink); padding:10px 16px; border-radius:10px; z-index:100; font-weight:700; text-decoration:none; }
.skip:focus{ top:12px; }

/* ---------- חשבון ספק: אישור תנאים + כרטיס תמיכה ---------- */
.eyebrow-pill{ display:inline-block; font-size:12px; font-weight:800; color:var(--accent-strong); background:var(--accent-soft); padding:4px 12px; border-radius:999px; }
.consent{ max-width:620px; margin:6vh auto 0; }
.consent .card-b{ display:flex; flex-direction:column; gap:14px; padding:30px 26px; }
.consent h1{ font-size:1.8rem; }
.consent p{ margin:0; color:var(--muted); line-height:1.75; }
.consent-list{ margin:0; padding:14px 18px 14px 14px; padding-inline-start:30px; background:var(--surface-2); border-radius:14px; line-height:1.8; font-size:14.5px; }
.agree{ display:flex; gap:10px; align-items:flex-start; font-weight:600; cursor:pointer; line-height:1.6; }
.agree input{ width:20px; height:20px; accent-color:var(--accent); margin-top:2px; flex:none; }
.top-row{ display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.top-row .tenant-head{ margin:0; }
.support-card{ display:flex; align-items:center; gap:12px; padding:10px 14px; border-radius:14px; background:var(--surface); border:1px solid var(--line); min-width:250px; }
.support-card .ring{ width:44px; height:44px; flex:none; }
.support-card .ring circle{ fill:none; stroke-width:5; }
.support-card .ring .bg{ stroke:var(--surface-2); }
.support-card .t{ font-size:12px; color:var(--muted); font-weight:700; }
.support-card .v{ font-weight:800; font-size:15px; line-height:1.3; }
.support-card .s{ font-size:12px; color:var(--muted); }
.support-card a{ font-size:12.5px; font-weight:800; }
.support-card.active .ring .fg{ stroke:var(--ok); }
.support-card.expiring{ border-color:#F0C982; background:#FFFBF2; } .support-card.expiring .ring .fg{ stroke:var(--gold); }
.support-card.expired, .support-card.none, .support-card.cancelled{ border-color:rgba(198,40,40,.3); background:#FFF7F7; } .support-card.expired .ring .fg{ stroke:var(--bad); }

/* ---------- לוח ניהול ---------- */
.admin-tabs{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:18px; }
.admin-tabs button{ display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line); background:var(--surface); font:inherit; font-weight:700; font-size:14.5px; padding:10px 16px; border-radius:12px; color:var(--muted); cursor:pointer; }
.admin-tabs button.on{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.admin-tabs button svg{ width:18px; height:18px; }
.badge{ display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:800; white-space:nowrap; }
.badge.ok{ background:rgba(24,121,78,.12); color:#0F5C3A; }
.badge.warn{ background:rgba(183,121,31,.15); color:var(--gold); }
.badge.bad{ background:rgba(198,40,40,.1); color:var(--bad); }
.badge.mute{ background:var(--surface-2); color:var(--muted); }
.kpis.k6{ grid-template-columns:repeat(2,1fr); }
@media(min-width:760px){ .kpis.k6{ grid-template-columns:repeat(3,1fr); } }
@media(min-width:1050px){ .kpis.k6{ grid-template-columns:repeat(6,1fr); } }
.kpi .s{ font-size:11.5px; color:var(--muted); margin-top:2px; }
.kpi.hl .s{ color:#fff; }
.vend-cell b{ display:block; }
.vend-cell span{ display:block; font-size:12px; color:var(--muted); }
dialog.modal{ border:0; padding:0; border-radius:20px; width:min(560px, calc(100vw - 24px)); box-shadow:0 30px 80px -20px rgba(0,0,0,.45); }
dialog.modal::backdrop{ background:rgba(7,19,18,.55); backdrop-filter:blur(3px); }
dialog.modal .card-h{ background:var(--surface-2); }
dialog.modal .card-b{ max-height:70vh; overflow:auto; }
.quick{ display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.offer-grid{ display:grid; grid-template-columns:1fr; gap:16px; }
@media(min-width:960px){ .offer-grid{ grid-template-columns:1.25fr .75fr; align-items:start; } .offer-grid .sum-card{ position:sticky; top:76px; } }
.sum-card .row{ display:flex; justify-content:space-between; gap:12px; padding:7px 0; font-size:14.5px; border-bottom:1px dashed var(--line); }
.sum-card .row:last-of-type{ border-bottom:0; }
.sum-card .row span:last-child{ font-weight:700; white-space:nowrap; }
.sum-card .row.minus span:last-child{ color:var(--ok); }
.sum-card .total{ display:flex; justify-content:space-between; align-items:baseline; margin-top:10px; padding-top:12px; border-top:2px solid var(--fg); }
.sum-card .total b{ font-family:var(--f-body); font-weight:800; font-size:30px; color:var(--accent-strong); }
.sum-card .note{ font-size:12.5px; color:var(--muted); margin-top:8px; }
.toggle-row{ display:flex; align-items:center; gap:10px; font-weight:700; }
.toggle-row input{ width:20px; height:20px; accent-color:var(--accent); }
@keyframes rise{ from{ opacity:0; transform:translateY(10px) } to{ opacity:1; transform:none } }
.rise{ animation:rise .45s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion:reduce){ .rise{ animation:none } }

/* ---------- כניסה ---------- */
.gate p.callout{ background:#FFF7E6; border:1px solid #F0D9A8; color:#5B3D06; border-radius:12px; padding:10px 14px; font-size:14px; text-align:right; }
.gate #other.btn{ width:100%; }

/* ---------- ניהול ספק ---------- */
dialog.modal.wide{ width:min(680px, calc(100vw - 24px)); }
dialog.modal.wide .card-b{ max-height:78vh; display:flex; flex-direction:column; gap:14px; }
fieldset.mg{ border:1px solid var(--line); border-radius:14px; padding:12px 16px 16px; margin:0; min-width:0; }
fieldset.mg legend{ font-family:var(--f-display); font-size:1.02rem; padding:0 6px; }
fieldset.mg legend small{ font-family:var(--f-body); color:var(--muted); font-size:12px; }
.seg3{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.seg3 label{ cursor:pointer; }
.seg3 input{ position:absolute; opacity:0; pointer-events:none; }
.seg3 span{ display:flex; flex-direction:column; gap:2px; border:1.5px solid var(--line); border-radius:12px; padding:10px; height:100%; box-sizing:border-box; }
.seg3 small{ font-size:12px; color:var(--muted); line-height:1.35; }
.seg3 input:checked + span{ border-color:var(--accent); background:var(--accent-soft); }
.seg3 input[value="limited"]:checked + span{ border-color:var(--gold); background:rgba(183,121,31,.1); }
.seg3 input[value="suspended"]:checked + span{ border-color:var(--bad); background:rgba(198,40,40,.07); }
.seg3 input:focus-visible + span{ outline:2px solid var(--accent); outline-offset:2px; }
@media(max-width:520px){ .seg3{ grid-template-columns:1fr; } }
.sup-now{ margin:0 0 10px; font-weight:700; }
.row-inline{ display:flex; gap:8px; align-items:center; }
.row-inline .field{ flex:1; min-width:0; }
.danger-zone{ border-color:rgba(198,40,40,.35); background:rgba(198,40,40,.03); }
.danger-zone legend{ color:var(--bad); }
.danger-zone p{ margin:0 0 10px; font-size:14px; }
.btn.danger:disabled{ opacity:.45; cursor:not-allowed; }
.legend{ margin:14px 0 0; padding:0 18px; color:var(--muted); font-size:13.5px; display:grid; gap:4px; }
.legend b{ color:var(--fg); }
.del-row{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 0; border-bottom:1px dashed var(--line); }
.del-row:last-child{ border-bottom:0; }
.badge.lim{ background:rgba(183,121,31,.15); color:var(--gold); }

/* ---------- חשבון ספק: מחולל פריטים, הסכם, מצב מוגבל ---------- */
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
fieldset.plain{ border:0; padding:0; margin:0; min-width:0; }
fieldset.plain:disabled{ opacity:.55; }
.side-cards{ display:flex; gap:10px; flex-wrap:wrap; }
.agr-card{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 14px; border-radius:14px; background:var(--surface); border:1px solid var(--line); }
.agr-card .t{ font-size:12px; color:var(--muted); font-weight:700; }
.agr-card .s{ font-size:13px; font-weight:700; }
.trial-bar{ display:flex; align-items:center; justify-content:space-between; gap:10px 14px; flex-wrap:wrap; background:linear-gradient(90deg, rgba(15,118,110,.12), rgba(15,118,110,.04)); border:1px solid rgba(15,118,110,.35); border-radius:14px; padding:12px 16px; margin-bottom:16px; font-size:14.5px; }
.trial-bar .s{ font-size:12.5px; color:var(--muted); }
#trial-over .btn{ margin-top:8px; }
.limited-note{ background:#FFF7E6; border:1px solid #F0D9A8; color:#5B3D06; border-radius:14px; padding:12px 16px; margin-bottom:16px; font-size:14.5px; }
.items-box{ border:1px solid var(--line); border-radius:16px; padding:14px; background:var(--surface-2); display:flex; flex-direction:column; gap:12px; }
.items-h{ display:flex; flex-direction:column; gap:2px; }
.items-h .lbl{ margin:0; font-size:14px; }
.catalog{ display:flex; flex-wrap:wrap; gap:6px; }
.catalog button{ border:1px dashed var(--accent); background:var(--surface); color:var(--accent-strong); border-radius:999px; padding:6px 12px; font:inherit; font-size:13.5px; font-weight:700; cursor:pointer; }
.catalog button:hover{ background:var(--accent-soft); }
.catalog button small{ color:#3F5A56; font-weight:600; margin-inline-start:4px; }   /* כהה מ-muted: עובר AA גם על רקע ה-hover */
.items{ display:flex; flex-direction:column; gap:8px; }
.items:empty::before{ content:'עדיין לא נוספו פריטים'; color:var(--muted); font-size:13.5px; }
.it-row{ display:flex; flex-direction:column; gap:8px; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:10px; }
.it-row.new{ animation:itNew 1.6s ease-out; }
@keyframes itNew{ 0%{ box-shadow:0 0 0 4px var(--accent); } 100%{ box-shadow:0 0 0 0 transparent; } }
.it-row .field{ padding:9px 11px; font-size:15px; }
.it-top{ display:flex; gap:6px; align-items:center; }
.it-top .it-label{ flex:1; min-width:0; font-weight:700; }
.it-row .it-desc{ resize:vertical; min-height:56px; font-size:14px; line-height:1.45; }
.it-nums{ display:grid; grid-template-columns:80px minmax(0,1fr) auto; gap:8px; align-items:end; }
@media(max-width:380px){ .it-nums{ grid-template-columns:80px minmax(0,1fr); } .it-nums .tot{ grid-column:1 / -1; padding-bottom:0; } }
.it-nums label{ display:flex; flex-direction:column; gap:3px; font-size:12px; font-weight:700; color:var(--muted); }
.it-row .tot{ font-weight:800; font-size:15px; white-space:nowrap; padding:0 4px 10px; text-align:left; }
.it-row .rm{ border:0; background:none; font-size:18px; color:var(--bad); cursor:pointer; border-radius:8px; width:40px; height:40px; flex:none; }
.it-row .rm:hover{ background:rgba(198,40,40,.08); }
.add-pkg{ align-self:stretch; border:2px dashed var(--accent); background:var(--surface); color:var(--accent-strong); font-weight:800; }
.add-pkg:hover{ background:var(--accent-soft); }
.sum-strip:empty{ display:none; }
.sum-strip{ display:flex; gap:10px; flex-wrap:wrap; }
.sum-strip div{ flex:1; min-width:110px; background:var(--surface-2); border-radius:12px; padding:8px 12px; }
.sum-strip span{ display:block; font-size:12px; color:var(--muted); font-weight:700; }
.sum-strip b{ font-size:18px; }
.sum-strip .tot{ background:var(--accent-strong); color:var(--accent-ink); } .sum-strip .tot span{ color:inherit; }
.wa-preview{ display:flex; flex-direction:column; background:#fff; border-radius:12px; overflow:hidden; border:1px solid var(--line); text-decoration:none; color:var(--fg); max-width:420px; box-shadow:0 8px 24px -16px rgba(0,0,0,.4); }
.wa-preview img{ width:100%; height:auto; aspect-ratio:1200/630; object-fit:cover; display:block; background:var(--surface-2); }
.wa-preview .wp-t{ font-weight:800; padding:8px 12px 0; font-size:14.5px; }
.wa-preview .wp-d{ color:var(--muted); font-size:12.5px; padding:2px 12px 10px; }
.wa-preview .wp-u{ color:#0b57d0; font-size:12.5px; padding:0 12px 10px; text-decoration:underline; text-align:left; overflow-wrap:anywhere; }
.wa-preview .wp-u:empty{ display:none; }

/* חבילות הספק */
.lbl-row{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.lbl-row .link{ font-weight:800; font-size:13.5px; }
#svc-inc:empty{ display:none; }
.pkg-list{ display:flex; flex-direction:column; gap:8px; }
.pkg-row{ display:flex; gap:12px; align-items:center; justify-content:space-between; border:1px solid var(--line); border-radius:14px; padding:12px 14px; background:var(--surface); }
.pkg-row b{ display:block; font-size:16px; }
.pkg-row .m{ display:block; font-size:13.5px; color:var(--muted); font-weight:600; }
.pkg-row small{ display:block; font-size:13px; color:var(--ink-2, var(--muted)); margin-top:3px; line-height:1.45; }
.pkg-row .acts{ display:flex; gap:6px; flex:none; }
.pkg-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pkg-grid .span2{ grid-column:1 / -1; }
.disc-row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.disc-row .field{ flex:1; min-width:120px; }
.disc-row .quick{ margin:0; }
.price-was{ font-size:13px; color:var(--muted); font-weight:700; }
@media(max-width:560px){ .pkg-row{ flex-direction:column; align-items:stretch; } .pkg-row .acts{ justify-content:flex-start; } }

/* מה שהופך הצעה לסגירה + טיפים */
.more-box, .tips-box{ border:1px solid var(--line); border-radius:16px; background:var(--surface-2); padding:12px 14px; }
.more-box summary, .tips-box summary{ cursor:pointer; font-weight:800; font-size:15px; }
.more-box summary small{ font-weight:600; color:var(--muted); }
.more-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:12px; }
.more-grid .span2{ grid-column:1 / -1; }
@media(max-width:560px){ .more-grid{ grid-template-columns:1fr; } }
.pay-box{ border:0; padding:0; margin:0; }
.pay-box legend{ padding:0; margin-bottom:6px; }
.chips{ display:flex; flex-wrap:wrap; gap:6px; }
.chip{ display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); background:var(--surface); border-radius:999px; padding:6px 12px; font-size:14px; font-weight:700; cursor:pointer; }
.chip input{ accent-color:var(--accent); }
.rows{ display:flex; flex-direction:column; gap:6px; margin:6px 0 8px; }
.mrow{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:6px; }
.mrow .field{ flex:1 1 140px; padding:8px 10px; font-size:14px; }
.mrow .field[type=number]{ flex:0 1 100px; }
.mrow .rm{ border:0; background:none; font-size:18px; color:var(--bad); cursor:pointer; width:36px; height:36px; border-radius:8px; }
.tips-box ul{ margin:10px 0 0; padding-inline-start:20px; display:grid; gap:6px; font-size:14px; line-height:1.55; }

/* טעינת הצעות קודמות בלוח הבקרה */
.load-more{display:flex;flex-direction:column;align-items:center;gap:8px;margin:14px 0 4px;text-align:center}
.load-more .hint{margin:0}

/* לוח הניהול: תנועה באתר + מכסת Firebase */
.dash2{ display:grid; gap:14px; margin-bottom:18px; }
@media(min-width:900px){ .dash2{ grid-template-columns:1.4fr 1fr; } }
.dash2 .card{ margin:0; }
.dash2 > *, .charts > *, .kpis > *{ min-width:0; }
table.mini{ min-width:620px; }
table.mini th, table.mini td{ padding:8px 10px; font-size:14px; text-align:center; }
table.mini td:first-child, table.mini th:first-child{ text-align:right; font-weight:700; }
.qbar{ margin:6px 0 12px; }
.qbar .t{ display:flex; justify-content:space-between; gap:8px; font-size:13.5px; font-weight:700; }
.qbar .track{ height:10px; border-radius:99px; background:var(--surface-2); border:1px solid var(--line); overflow:hidden; margin-top:6px; }
.qbar .fill{ height:100%; background:var(--accent); }
.qbar.warn .fill{ background:#B45309; } .qbar.bad .fill{ background:#B91C1C; }

/* יצירת משתמש / הגדרות ספק (vendor-editor.js) */
.seg3.two{ grid-template-columns:1fr 1fr; margin-bottom:12px; }
@media(max-width:520px){ .seg3.two{ grid-template-columns:1fr; } }
.vc-ref{ background:var(--accent-soft); border-radius:14px; padding:12px 16px; display:grid; gap:4px; font-size:.95rem; }
.vc-list{ display:grid; gap:10px; margin-bottom:10px; }
.vc-card{ position:relative; border:1px solid var(--line); border-radius:12px; padding:12px 12px 12px 52px; display:grid; gap:6px; background:var(--surface); }
.vc-card .vc-del{ position:absolute; left:10px; top:10px; }
.vc-line{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.vc-line .field{ width:110px; }
.vc-colors{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.vc-colors #vc_swatches{ display:flex; gap:8px; flex-wrap:wrap; }
.vc-colors #vc_swatches button{ width:34px; height:34px; border-radius:50%; border:3px solid transparent; cursor:pointer; padding:0; }
.vc-colors #vc_swatches button[aria-pressed="true"]{ border-color:var(--fg, #0f2321); box-shadow:0 0 0 2px #fff inset; }
.vc-colors input[type=color]{ width:44px; height:36px; border:1px solid var(--line); border-radius:10px; background:none; padding:2px; cursor:pointer; }
.vc-logo{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.vc-logo #vc_logo_prev{ min-height:56px; display:flex; align-items:center; color:var(--muted); font-size:.9rem; }
.vc-logo #vc_logo_prev img{ max-height:64px; max-width:180px; border-radius:8px; background:#fff; }
.vc-done{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.bad-text{ color:var(--bad) !important; font-weight:700; }

.lic-card.warn{ border-color:#F0C982; background:#FFFBF2; }
.lic-card .fine{ font-size:11px; color:var(--muted); line-height:1.4; max-width:260px; margin-top:2px; }

/* ===== טאבים: יומן, הכנסות והוצאות, הסבר ===== */
.tabs-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:18px; }
.tabs-row .tabs{ margin-bottom:0; flex-wrap:wrap; border-radius:18px; }
.help-btn{ font-weight:700; }
@media(max-width:560px){ .tabs-row .tabs{ width:100%; display:grid; grid-template-columns:1fr 1fr; } .tabs button{ padding:9px 8px; } }
#tab-cal > .card, #tab-books > .card{ margin-bottom:14px; }
.cal-nav{ display:flex; gap:6px; }
.cal-nav .btn{ min-width:40px; justify-content:center; }
.cal-grid{ display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); gap:4px; }
.cal-dow{ text-align:center; font-size:12px; font-weight:800; color:var(--muted); padding:4px 0; }
.cal-cell{ min-height:74px; min-width:0; display:flex; flex-direction:column; align-items:stretch; gap:2px; padding:5px; border:1px solid var(--line); border-radius:10px; background:#fff; font:inherit; text-align:right; cursor:pointer; color:var(--fg); overflow:hidden; }
.cal-cell.empty{ border:0; background:transparent; cursor:default; }
.cal-cell .n{ font-weight:800; font-size:13px; }
.cal-cell.today .n{ background:var(--accent); color:var(--accent-ink); border-radius:999px; width:24px; height:24px; display:grid; place-items:center; }
.cal-cell.has{ background:var(--accent-soft); border-color:rgba(15,118,110,.4); }
.cal-cell.sel{ outline:2px solid var(--accent); outline-offset:1px; }
.cal-cell .ev{ font-size:11px; line-height:1.25; background:var(--accent); color:var(--accent-ink); border-radius:5px; padding:1px 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cal-cell .ev.more{ background:transparent; color:var(--accent-strong); font-weight:800; padding:0; }
@media(max-width:560px){ .cal-cell{ min-height:46px; padding:3px; align-items:center; } .cal-cell .ev{ font-size:0; width:8px; height:8px; padding:0; border-radius:50%; } .cal-cell .ev.more{ display:none; } }
.ev-list{ display:flex; flex-direction:column; gap:10px; }
.ev-card{ display:flex; gap:14px; border:1px solid var(--line); border-radius:14px; padding:12px; background:#fff; }
.ev-date{ flex:none; width:64px; border-radius:12px; background:var(--accent); color:var(--accent-ink); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:8px 4px; text-align:center; }
.ev-date b{ font-size:24px; line-height:1; }
.ev-date span{ font-size:12.5px; font-weight:700; }
.ev-date small{ font-size:11px; }
.ev-body{ flex:1; min-width:0; }
.ev-body h3{ margin:0 0 6px; font-size:16px; overflow-wrap:anywhere; }
.ev-meta, .ev-money{ display:flex; flex-wrap:wrap; gap:6px 14px; font-size:13.5px; color:var(--muted); }
.ev-money{ color:var(--fg); margin-top:6px; }
.ev-card .acts{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
@media(max-width:420px){ .ev-card{ flex-direction:column; gap:10px; } .ev-date{ flex-direction:row; width:auto; gap:8px; } }
.bk-bar .field{ flex:0 0 auto; width:auto; min-width:100px; }
.kpi.neg .n{ color:var(--bad); }
.ex-form{ display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px; align-items:end; }
.books2{ display:grid; grid-template-columns:1fr; gap:14px; }
@media(min-width:860px){ .books2{ grid-template-columns:1fr 1fr; } }
.books2 > *{ min-width:0; }
.tbl-scroll{ overflow-x:auto; }
table.mini-t{ width:100%; border-collapse:collapse; }
table.mini-t th, table.mini-t td{ padding:8px 10px; white-space:normal; overflow-wrap:anywhere; }
table.mini-t td.num, table.mini-t td:first-child{ white-space:nowrap; }
table.mini-t td.num{ font-weight:800; }
dialog.modal.wl{ width:min(440px, calc(100vw - 24px)); }
.wl-b{ text-align:center; padding:26px 22px 20px; }
.wl-ic{ font-size:44px; line-height:1; margin-bottom:8px; }
.wl-b h2{ margin:0 0 8px; font-family:var(--f-display, inherit); }
.wl-b p{ margin:0 auto; color:var(--muted); line-height:1.7; min-height:5.1em; max-width:340px; }
.wl-dots{ display:flex; justify-content:center; gap:6px; margin:14px 0; }
.wl-dots span{ width:8px; height:8px; border-radius:50%; background:var(--line); }
.wl-dots span.on{ background:var(--accent); width:22px; border-radius:999px; }
.wl-acts{ display:flex; justify-content:center; gap:8px; flex-wrap:wrap; }

.imp-card{ margin-bottom:14px; }
.imp-row{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
@media(max-width:420px){ .kpi .n{ font-size:clamp(16px, 5.4vw, 24px); } }

/* שלד טעינה: פסים אפורים מהבהבים במקום "טוען…" — רואים מיד איך הדף ייראה */
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skel{ display:block; height:12px; border-radius:6px; background:linear-gradient(90deg, rgba(127,127,127,.12) 25%, rgba(127,127,127,.24) 50%, rgba(127,127,127,.12) 75%); background-size:200% 100%; animation:skel 1.2s ease-in-out infinite; }
.skel-row td{ padding-top:14px; padding-bottom:14px; }
.skel-line{ height:14px; margin:12px 0; }
.skel-line:nth-of-type(2){ width:80%; } .skel-line:nth-of-type(3){ width:60%; }
@keyframes skel{ from{ background-position:200% 0; } to{ background-position:-200% 0; } }
@media (prefers-reduced-motion: reduce){ .skel{ animation:none; } }

/* ---------- פרטי אירוע: חלון אחד, עיפרון לעריכה (בטלפון — גיליון שעולה מלמטה) ---------- */
:root{ --inc:#15803D; --inc-2:#16A34A; --inc-soft:#ECFDF3; --inc-line:#BBF7D0; --exp:#B91C1C; --exp-2:#EF4444; --exp-soft:#FEF2F2; --exp-line:#FECACA; }
dialog.sheet{ width:min(520px, calc(100vw - 24px)); background:var(--bg); color:var(--fg); overflow:hidden; }
dialog.sheet[open]{ animation:sheetIn .32s cubic-bezier(.2,.9,.25,1); }
dialog.sheet[open]::backdrop{ animation:fadeIn .25s ease; }
@keyframes sheetIn{ from{ opacity:0; transform:translateY(14px) scale(.98); } to{ opacity:1; transform:none; } }
@keyframes fadeIn{ from{ opacity:0; } to{ opacity:1; } }
.sheet-h{ position:sticky; top:0; z-index:2; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px 18px 12px; background:rgba(243,248,247,.92); backdrop-filter:saturate(1.6) blur(14px); -webkit-backdrop-filter:saturate(1.6) blur(14px); border-bottom:1px solid transparent; }
.sheet-t{ min-width:0; }
.sheet-t h2{ font-size:1.35rem; overflow-wrap:anywhere; }
.sheet-sub{ margin:4px 0 0; color:var(--muted); font-size:14px; display:flex; flex-wrap:wrap; align-items:center; gap:4px; }
.sheet-sub .pill{ font-size:11.5px; padding:2px 9px; }
.sheet-tools{ display:flex; gap:8px; flex:0 0 auto; }
.icon-btn{ width:38px; height:38px; border-radius:50%; border:0; display:grid; place-items:center; background:var(--surface); color:var(--fg); cursor:pointer; box-shadow:0 1px 2px rgba(15,35,33,.12), inset 0 0 0 1px var(--line); transition:transform .15s, background .15s, color .15s; }
.icon-btn:hover{ background:var(--surface-2); }
.icon-btn:active{ transform:scale(.92); }
#ev-edit{ color:var(--accent); }
#ev-edit.on{ background:var(--accent); color:#fff; box-shadow:none; }
.sheet-b{ padding:4px 16px 20px; max-height:min(72vh, 720px); overflow:auto; -webkit-overflow-scrolling:touch; }
.ig{ margin-top:14px; }
.ig h3{ font-family:var(--f-body); font-weight:700; font-size:12.5px; color:var(--muted); margin:0 6px 6px; letter-spacing:.02em; }
.ig dl{ margin:0; background:var(--surface); border-radius:14px; box-shadow:0 1px 2px rgba(15,35,33,.06); overflow:hidden; }
.ir{ display:flex; justify-content:space-between; align-items:baseline; gap:14px; padding:12px 14px; min-height:46px; box-sizing:border-box; position:relative; }
.ir + .ir::before{ content:''; position:absolute; top:0; right:14px; left:0; border-top:1px solid var(--line); }
.ir dt{ color:var(--muted); font-size:14.5px; flex:0 0 auto; }
.ir dd{ margin:0; text-align:left; font-size:15px; font-weight:600; min-width:0; overflow-wrap:anywhere; display:flex; flex-direction:column; align-items:flex-end; gap:1px; }
.ir dd small{ font-weight:400; color:var(--muted); font-size:12px; }
.ir dd a{ color:var(--accent); text-decoration:none; font-weight:700; }
.ir-empty{ color:var(--faint); font-weight:400; }
.ir-lock{ display:inline-flex; align-items:center; gap:3px; }
.ir-lock::before{ content:'🔒'; font-size:10px; }
.ev-acts{ margin-top:16px; background:var(--surface); border-radius:14px; overflow:hidden; box-shadow:0 1px 2px rgba(15,35,33,.06); display:flex; flex-direction:column; }
.ev-acts .act{ display:block; width:100%; text-align:right; padding:13px 14px; min-height:46px; box-sizing:border-box; font:inherit; font-size:15.5px; font-weight:600; color:var(--accent); background:none; border:0; text-decoration:none; cursor:pointer; position:relative; }
.ev-acts .act + .act::before{ content:''; position:absolute; top:0; right:14px; left:0; border-top:1px solid var(--line); }
.ev-acts .act:active{ background:var(--surface-2); }
.ev-edited{ margin:10px 6px 0; }
.ev-del{ margin-top:16px; display:flex; align-items:center; justify-content:center; gap:8px; background:var(--surface); border:0; box-shadow:0 1px 2px rgba(15,35,33,.06); min-height:46px; border-radius:14px; font-size:15.5px; }
.ev-form{ display:grid; grid-template-columns:1fr 1fr; gap:12px 12px; padding-top:14px; }
.ev-form[hidden], #ev-view[hidden]{ display:none; }
.ev-form .span2{ grid-column:1 / -1; }
.ev-form .hint{ margin:0; }
.sheet-foot{ display:flex; gap:10px; position:sticky; bottom:-20px; padding:10px 0 4px; background:linear-gradient(to top, var(--bg) 70%, transparent); }
.sheet-foot .btn{ flex:1; min-height:46px; border-radius:12px; font-size:15.5px; }
#tbody .ev-open{ white-space:nowrap; }
@media(max-width:640px){
    dialog.sheet{ width:100vw; max-width:100vw; margin:auto 0 0; border-radius:22px 22px 0 0; max-height:92dvh; }
    dialog.sheet[open]{ animation:sheetUp .36s cubic-bezier(.2,.9,.25,1); }
    @keyframes sheetUp{ from{ transform:translateY(100%); } to{ transform:none; } }
    .sheet-h{ padding-top:22px; }
    .sheet-h::before{ content:''; position:absolute; top:8px; left:50%; width:38px; height:5px; margin-left:-19px; border-radius:3px; background:rgba(15,35,33,.18); }
    .sheet-b{ max-height:calc(92dvh - 90px); padding-bottom:calc(20px + env(safe-area-inset-bottom)); }
}
@media(prefers-reduced-motion:reduce){ dialog.sheet[open], dialog.sheet[open]::backdrop{ animation:none; } }

/* ---------- הכנסות (ירוק) והוצאות (אדום) ---------- */
#bk-kpis{ grid-template-columns:repeat(2,1fr); gap:10px; }
#bk-kpis .bk-kpi.pr{ grid-column:1 / -1; }
@media(min-width:700px){ #bk-kpis{ grid-template-columns:repeat(3,1fr); gap:12px; } #bk-kpis .bk-kpi.pr{ grid-column:auto; } }
.bk-kh{ grid-column:1 / -1; font-family:var(--f-body); font-weight:800; font-size:13px; color:var(--muted); margin:6px 4px -2px; }
.bk-kh:first-child{ margin-top:0; }
.bk-kpi{ padding:14px 16px; border-radius:18px; position:relative; overflow:hidden; }
.bk-kpi .bk-top{ display:flex; align-items:center; gap:8px; }
.bk-kpi .l{ font-size:13px; font-weight:700; color:var(--muted); }
.bk-kpi .n{ font-size:clamp(21px,3vw,28px); font-weight:800; margin-top:6px; letter-spacing:-.01em; white-space:nowrap; font-variant-numeric:tabular-nums; }
.bk-kpi .s{ font-size:11.5px; color:var(--muted); margin-top:2px; }
.bk-ic{ width:26px; height:26px; border-radius:50%; display:grid; place-items:center; flex:0 0 auto; }
.bk-kpi.inc{ background:linear-gradient(160deg, var(--inc-soft), #fff 70%); border-color:var(--inc-line); }
.bk-kpi.inc .n{ color:var(--inc); }
.bk-kpi.inc .bk-ic{ background:var(--inc-2); color:#fff; }
.bk-kpi.exp{ background:linear-gradient(160deg, var(--exp-soft), #fff 70%); border-color:var(--exp-line); }
.bk-kpi.exp .n{ color:var(--exp); }
.bk-kpi.exp .bk-ic{ background:var(--exp-2); color:#fff; }
.bk-kpi.pr.up{ background:linear-gradient(150deg, #15803D, #166534); border-color:#166534; color:#fff; }
.bk-kpi.pr.down{ background:linear-gradient(150deg, #B91C1C, #991B1B); border-color:#991B1B; color:#fff; }
.bk-kpi.pr .l, .bk-kpi.pr .s{ color:#fff; }
.bk-kpi.pr .bk-ic{ background:rgba(255,255,255,.2); color:#fff; }
.bk-kpi.pr.down .bk-ic svg{ transform:scaleY(-1); }
@media(max-width:420px){ .bk-kpi{ padding:12px; } .bk-kpi .n{ font-size:19px; } .bk-kpi .l{ font-size:12px; } }

.tx-total{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; padding:2px 4px 10px; font-size:13px; color:var(--muted); font-weight:700; }
.tx-total b{ font-size:16px; }
.tx-total.inc b{ color:var(--inc); } .tx-total.exp b{ color:var(--exp); }
.tx-list{ list-style:none; margin:0; padding:0; }
.tx{ display:flex; align-items:center; gap:12px; padding:11px 2px; min-height:56px; box-sizing:border-box; border-top:1px solid var(--line); }
.tx-dot{ width:10px; height:10px; border-radius:50%; flex:0 0 auto; }
.tx.inc .tx-dot{ background:var(--inc-2); box-shadow:0 0 0 4px var(--inc-soft); }
.tx.exp .tx-dot{ background:var(--exp-2); box-shadow:0 0 0 4px var(--exp-soft); }
.tx-main{ flex:1; min-width:0; }
.tx-l{ font-weight:700; font-size:15px; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tx-s{ font-size:12.5px; color:var(--muted); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tx-a{ font-weight:800; font-size:15px; white-space:nowrap; flex:0 0 auto; }
.tx.inc .tx-a{ color:var(--inc); } .tx.exp .tx-a{ color:var(--exp); }
.tx-del, .tx-del-sp{ width:36px; height:36px; flex:0 0 auto; }
.tx-del{ border:0; border-radius:50%; display:grid; place-items:center; background:transparent; color:#DC2626; cursor:pointer; transition:background .15s, transform .12s; }
.tx-del:hover{ background:var(--exp-soft); }
.tx-del:active{ transform:scale(.9); background:#FEE2E2; }
.tx-del:focus-visible{ outline:2px solid var(--exp); outline-offset:1px; }
@media(max-width:420px){ .tx{ gap:10px; } .tx-l{ font-size:14.5px; } .tx-a{ font-size:14px; } }

/* מעקב צפיות בהצעה: נפתחה X פעמים · לאחרונה… */
.views{ display:inline-block; margin-top:4px; font-size:12.5px; font-weight:700; color:#0F5F58; white-space:normal; }
.views.none{ color:#5B6B69; font-weight:600; }
.views.hot{ color:#fff; background:#0f766e; border-radius:999px; padding:2px 9px; }

/* לוח הניהול: הכנסות (ירוק) והוצאות (אדום) של Snap Box */
#ob-kpis{ grid-template-columns:repeat(2,1fr); gap:10px; }
#ob-kpis .bk-kpi.pr{ grid-column:1 / -1; }
@media(min-width:700px){ #ob-kpis{ grid-template-columns:repeat(3,1fr); gap:12px; } #ob-kpis .bk-kpi.pr{ grid-column:auto; } }
.ob-chart{ display:grid; grid-template-columns:repeat(12, minmax(0,1fr)); gap:6px; height:190px; align-items:end; }
.ob-col{ display:flex; flex-direction:column; align-items:center; height:100%; min-width:0; }
.ob-bars{ flex:1; width:100%; display:flex; align-items:flex-end; justify-content:center; gap:2px; }
.ob-b{ width:42%; max-width:16px; border-radius:5px 5px 2px 2px; min-height:2px; transition:height .5s cubic-bezier(.2,.9,.25,1); }
.ob-b.in{ background:var(--inc-2); } .ob-b.out{ background:var(--exp-2); }
.ob-col small{ font-size:10.5px; color:var(--muted); margin-top:6px; white-space:nowrap; }
.ob-legend{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--muted); font-weight:700; }
.ob-legend i{ width:10px; height:10px; border-radius:3px; display:inline-block; } .ob-legend i.in{ background:var(--inc-2); } .ob-legend i.out{ background:var(--exp-2); margin-inline-start:8px; }
#ob-add.inc{ background:var(--inc); border-color:var(--inc); color:#fff; } #ob-add.exp{ background:var(--exp); border-color:var(--exp); color:#fff; }
@media(max-width:420px){ .ob-chart{ gap:3px; height:160px; } .ob-col small{ font-size:9px; } }

/* לוח הבקרה: פעולות בשורה, "שולם" = כל השורה ירוקה (2026-11-13) */
.row-acts{ display:flex; flex-wrap:wrap; gap:6px; min-width:240px; }
.row-acts .btn{ white-space:nowrap; }
.paid-chk{ display:inline-flex; align-items:center; gap:6px; margin-top:8px; font-size:13px; font-weight:700; color:var(--muted); cursor:pointer; min-height:30px; }
.paid-chk input{ width:18px; height:18px; accent-color:#15803D; cursor:pointer; }
#tbody tr.paid-row > td, #otbody tr.paid-row > td{ background:#DCFCE7; }
#tbody tr.paid-row > td:first-child, #otbody tr.paid-row > td:first-child{ box-shadow:inset -4px 0 0 #16A34A; }
#tbody tr.paid-row .paid-chk{ color:#14532D; }
/* חלון "פרטי אירוע" */
.ev-paid{ margin-top:14px; background:var(--surface); border-radius:14px; box-shadow:0 1px 2px rgba(15,35,33,.06); padding:4px 14px; transition:background .2s; }
.ev-paid.on{ background:#DCFCE7; box-shadow:inset 0 0 0 2px #16A34A; }
.ev-paid .ev-chk{ font-size:16px; min-height:48px; width:100%; }
.ev-chk{ display:inline-flex; align-items:center; gap:8px; cursor:pointer; font-weight:700; color:var(--fg); min-height:32px; }
.ev-chk input{ width:20px; height:20px; accent-color:#15803D; cursor:pointer; flex:none; }
.ev-chk.on{ color:#15803D; }
.ev-list{ margin:14px 0 0; background:var(--surface); border-radius:14px; box-shadow:0 1px 2px rgba(15,35,33,.06); overflow:hidden; }
.ev-list .ir dt{ white-space:nowrap; }
.ev-list .ir dd{ align-items:flex-end; }
.ev-list .ir dd > span{ display:inline-flex; align-items:center; flex-wrap:wrap; gap:4px; justify-content:flex-end; }
.ok-t{ color:#15803D; font-weight:800; }
.ev-foot{ display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.ev-foot .btn{ flex:1 1 30%; min-height:46px; border-radius:12px; justify-content:center; text-align:center; }
.ev-list .ir-empty{ color:#5B6B69; }

/* ===== שכבת עיצוב 2026-11: טיפוגרפיה עריכתית, נייר חם, קווים דקים, פינות חדות יותר (להחזרה: למחוק את הבלוק הזה) ===== */
:root{
    --bg:#F5F2EC; --surface:#FFFDF9; --surface-2:#ECE7DD; --line:#D9D2C4;
    --fg:#151C1B; --muted:#545D59; --faint:#8A918C;
    --accent:#0D6B63; --accent-strong:#0A514B; --accent-soft:rgba(13,107,99,.09);
    --r:6px; --r-lg:10px;
}
body{ -webkit-font-smoothing:antialiased; }
h1,h2,h3{ font-weight:700; letter-spacing:-.01em; }
.bar{ background:rgba(245,242,236,.94); }
.brand{ font-weight:700; font-size:1.2rem; }
.brand-mark{ border-radius:var(--r); font-family:var(--f-num); }
.btn{ border-radius:var(--r); font-weight:600; transition:background .15s, border-color .15s; }
.btn:hover{ transform:none; }
.btn:not(.primary):not(.wa):not(:disabled):hover{ border-color:var(--fg); }
.btn.primary:not(:disabled):hover{ background:var(--accent-strong); border-color:var(--accent-strong); }
.card{ border-radius:var(--r-lg); box-shadow:none; }
.field{ border-radius:var(--r); background:var(--surface); }
.field:focus{ box-shadow:0 0 0 3px var(--accent-soft); }
.tabs, .seg{ border-radius:var(--r); }
.tabs button, .seg button{ border-radius:4px; font-weight:600; }
.tabs-row .tabs{ border-radius:var(--r); }
.admin-tabs button{ border-radius:var(--r); font-weight:600; }
.pill, .badge, .eyebrow-pill{ border-radius:3px; font-weight:700; letter-spacing:.02em; }
.chip, .catalog button{ border-radius:4px; }
.breakdown, .result, .for-note, .owner-banner, .consent-list, .support-card, .agr-card, .trial-bar, .limited-note,
.items-box, .it-row, .sum-strip div, .wa-preview, .pkg-row, .more-box, .tips-box, .mrow, .vc-ref, .vc-card, fieldset.mg, .seg3 span,
.gate p.callout, .doc section{ border-radius:var(--r-lg); }
.doc .toc a{ border-radius:4px; }
.doc section h2 .n{ border-radius:3px; }
dialog.modal{ border-radius:var(--r-lg); }
.cal-cell{ border-radius:4px; background:var(--surface); }
.tlogo{ border-radius:var(--r); }
.skip{ border-radius:var(--r); }
.kpi .n, .sum-card .total b{ font-family:var(--f-display); font-weight:700; letter-spacing:-.01em; }
fieldset.mg legend{ font-weight:700; }
