/* "טבלת השכירות שלי" (/tools/rent-table, r25 renttable) — נטען אחרי landing.css ו-content.css ומשתמש באותם משתנים (בהיר וכהה).
   הטבלה גוללת לרוחב בתוך המסגרת שלה (כמו באקסל), עמודת השוכר קבועה מימין; הדף עצמו לא גולל לרוחב. 375px ו-1366px. */
.rt-live{padding-block:0}   /* landing.css: section{padding-block:56px} */
.rt-intro{font-size:16.5px;color:var(--ink-2);margin:-8px 0 16px;max-width:46em}
.rt-demo-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0 0 8px}
.rt-demo-h b{font-size:15px;background:var(--warn-soft);color:var(--ink);padding:2px 10px;border:1px solid var(--line)}
.rt-demo-h span{font-size:14px;color:var(--muted)}
.rt-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);background:var(--paper);max-width:100%}
/* r25 חבילה D (T37, #1953): בטלפון אף עמודה לא נחתכת — הגלילה נעצרת על גבול עמודה, צמוד לעמודת השוכר (scroll-padding = רוחב העמודה הקבועה),
   ורוחב עמודת חודש מחושב כך שבמסגרת נכנס מספר שלם של חודשים (public/renttableui.js fit → --rt-cw) */
.rt-wrap{scroll-snap-type:x mandatory;scroll-padding-inline-start:210px}
.rt-t th.rt-mh,.rt-t thead th.rt-tot{scroll-snap-align:start}
.rt-wrap:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.rt-t{border-collapse:separate;border-spacing:0;width:100%;min-width:max-content;font-size:14.5px;background:var(--paper)}
.rt-t th,.rt-t td{border-bottom:1px solid var(--line);border-inline-start:1px solid var(--line);padding:0;text-align:right;vertical-align:middle;background:var(--paper)}
.rt-t thead th{background:var(--surface);color:var(--muted);font-size:13px;font-weight:700;padding:8px 6px;white-space:nowrap;text-align:center}
.rt-t thead th.rt-nm{text-align:right;padding-inline:10px}
.rt-t .rt-mh .s{display:none}
.rt-t th.cur,.rt-t td.cur{background:var(--navy-soft)}
.rt-t thead th.cur{color:var(--navy)}
/* עמודת השוכר — קבועה בצד ימין בזמן גלילה לרוחב */
.rt-t .rt-nm{position:sticky;right:0;z-index:2;width:210px;min-width:210px;max-width:210px;border-inline-start:2px solid var(--line-strong);padding:6px 8px;text-align:right;font-weight:600}
.rt-t thead .rt-nm{z-index:3}
.rt-t tfoot th,.rt-t tfoot td{background:var(--surface);font-weight:700;border-bottom:0}
.rt-t tfoot .rt-nm{background:var(--surface)}
.rt-t td.rt-c{min-width:62px;width:62px}   /* 1366: שם + 12 חודשים + סה״כ בלי גלילה (≈1,050px מתוך 1,080) */
.rt-v,.rt-t td.n{font-variant-numeric:tabular-nums}
.rt-v{display:block;width:100%;min-height:44px;box-sizing:border-box;border:0;border-radius:0;background:transparent;color:var(--ink);font:500 14.5px var(--body);padding:6px 6px;direction:ltr;text-align:right}
.rt-v:focus{outline:2px solid var(--navy);outline-offset:-2px;background:var(--paper)}
.rt-t td.n{padding:10px 6px;direction:ltr;text-align:right;white-space:nowrap;min-width:58px}
.rt-t .rt-tot,.rt-t .rt-ct{padding:10px 8px;direction:ltr;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:700;min-width:80px}
.rt-t .rt-ct{font-weight:600;min-width:56px;padding-inline:6px}
.rt-n1{display:flex;align-items:center;gap:4px}
.rt-name{flex:1 1 auto;min-width:0;min-height:40px;box-sizing:border-box;border:1px solid transparent;border-radius:0;background:transparent;color:var(--ink);font:700 15px var(--body);padding:4px 6px}
.rt-name:hover{border-color:var(--line)}
.rt-name:focus{outline:2px solid var(--navy);outline-offset:0;background:var(--paper)}
.rt-name::placeholder{color:var(--muted);font-weight:500}
.rt-more{flex:none;width:44px;min-height:44px;border:1px solid var(--line);background:var(--paper);color:var(--ink);font:700 18px/1 var(--body);cursor:pointer;border-radius:0}
.rt-more:hover{border-color:var(--navy)}
.rt-more:focus-visible,.rt-b:focus-visible,.rt-ib:focus-visible,.rt-rem:focus-visible,.rt-toast button:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
/* התזכורת העדינה בכל שורה: "לפי החוזה…" + "בדיקת חוזה ›" — לחיצה אחת */
.rt-rem{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px;margin-top:4px;padding:5px 6px;min-height:44px;box-sizing:border-box;text-decoration:none;font-size:12.5px;line-height:1.4;font-weight:500;color:var(--ink-2);background:var(--surface);border:1px solid var(--line)}
.rt-rem b{color:var(--navy);font-weight:700;white-space:nowrap}
.rt-rem:hover{border-color:var(--navy)}
.rt-rem[data-kind="same"]{background:var(--warn-soft)}
@media (pointer:coarse){.rt-rem{min-height:44px;align-items:center}}
.rt-ro .rt-nm .rt-nmv{display:block;font-weight:700;font-size:15px;padding:4px 2px}
.rt-ro .rt-nm .rt-nmp{display:block;font-weight:500;font-size:12.5px;color:var(--muted);padding:0 2px}
/* סרגל */
.rt-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 10px}
.rt-b{min-height:44px;padding:8px 14px;font-size:15px}
.rt-b[disabled]{opacity:.45;cursor:default}
.rt-yr{display:inline-flex;align-items:center;gap:2px;border:1px solid var(--line);background:var(--paper)}
.rt-yr b{min-width:56px;text-align:center;font-size:16px;font-variant-numeric:tabular-nums}
.rt-ib{width:44px;min-height:44px;border:0;background:transparent;color:var(--ink);font:700 20px/1 var(--body);cursor:pointer}
.rt-ib:hover{background:var(--surface)}
.rt-co{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--muted);font-weight:600}
.rt-co select{min-height:44px;font:600 16px var(--body);color:var(--ink);background:var(--paper);border:1.5px solid var(--line-strong);padding:6px 10px;max-width:220px}
.rt-st{font-size:13.5px;color:var(--muted);min-height:1em}
.rt-st.bad{color:var(--gap);font-weight:600}
.rt-lnk{border:0;background:none;color:var(--navy);font:700 13.5px var(--body);text-decoration:underline;cursor:pointer;padding:0 2px;min-height:32px}
.rt-hint{font-size:13.5px;color:var(--muted);margin:8px 0 0}
.rt-out{margin:10px 0 0}   /* "⬇ הורדה לאקסל" (שופט r25 #1492) */
.rt-load,.rt-err{padding:18px 0;font-size:16px}
.rt-err{color:var(--gap);font-weight:600}
.rt-empty{margin:0 0 10px;padding:12px 14px;border:1px dashed var(--line-strong);background:var(--surface);color:var(--ink-2);font-size:15.5px;line-height:1.5}   /* מחוץ לטבלה הנגללת — לא נחתך בטלפון (T37) */
.rt-empty b{color:var(--ink)}
.rt-t tfoot th,.rt-t tfoot td{height:44px;box-sizing:border-box}
.rt-load{min-height:280px}   /* "טוען את הטבלה…" תופס את מקום הטבלה — בלי קפיצה כשהיא מגיעה */
/* ההודעה עם "בטל" — נשארת עד ✕ או עד הפעולה הבאה */
.rt-toast{position:sticky;bottom:12px;z-index:5;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 0;padding:8px 10px 8px 8px;background:var(--ink);color:var(--page);font-size:15px;box-shadow:var(--shadow)}
.rt-toast span{flex:1 1 200px}
.rt-toast .rt-tu{min-height:44px;padding:6px 16px;border:1.5px solid var(--page);background:transparent;color:var(--page);font:700 15px var(--body);cursor:pointer}
.rt-toast .rt-tx{width:44px;min-height:44px;border:0;background:transparent;color:var(--page);font-size:18px;cursor:pointer}
/* הקריאה לפעולה לאורח */
.rt-cta{margin-top:16px;background:var(--navy-soft);border:1px solid var(--line);padding:18px 20px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.rt-cta b{font-family:var(--display);font-size:21px;font-weight:800}
.rt-cta p{margin:0;color:var(--ink-2);font-size:16px}
.rt-cta .row-btns .btn{min-height:44px}
.rt-prose{max-width:760px}
@media (max-width:560px){
  .rt-t .rt-nm{width:156px;min-width:156px;max-width:156px;padding:5px 6px}
  .rt-wrap{scroll-padding-inline-start:156px}
  .rt-t th.rt-mh,.rt-t td.rt-c,.rt-t td.n,.rt-t td.rt-ct,.rt-t .rt-tot{box-sizing:border-box;width:var(--rt-cw,62px);min-width:var(--rt-cw,62px)}
  .rt-t .rt-mh .l{display:none}.rt-t .rt-mh .s{display:inline}
  .rt-name{font-size:14.5px}
  .rt-rem{font-size:12px}
  .rt-b{padding:8px 10px;font-size:14.5px}
  .rt-bar{gap:6px}
  .rt-st{flex-basis:100%}
}
@media print{.rt-bar,.rt-toast,.rt-hint,.rt-out,.rt-rem,.rt-more{display:none!important}.rt-wrap{overflow:visible;border:0}}
