/* ==========================================================================
   RTFlow Mobile - ממשק טכנאי שטח
   נקרא בשמש: רקע "נייר" אפור-ירקרק קריר (לא לבן מסנוור), דיו כהה, וצבע רק
   לסטטוס: ירוק = פעיל/במלאי, אדום = חסר/תקלה, כחול = בתהליך, צהוב = אזהרה.
   כל פעולה ראשית באזור האגודל (חצי תחתון), מטרות מגע 48px ומעלה.
   ========================================================================== */

.rtf {
    --paper:   #EEF1EC;
    --surface: #FFFFFF;
    --ink:     #10202B;
    --muted:   #4F5E68;
    --line:    #C9D2CB;
    --go:      #12824A;
    --stop:    #C42536;
    --work:    #1D5BD0;
    --caution: #F2B300;
    --idle:    #7A868E;
    --go-tint:   #DDF1E4;
    --stop-tint: #FBE3E5;
    --work-tint: #E1EAFB;
    --caution-tint: #FFF3CC;

    --nav-h: 64px;
    --tabs-h: 54px;
    --top-h: 52px;
    --r-sm: 6px;
    --r-md: 10px;

    font-family: 'IBM Plex Sans Hebrew', 'Assistant', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: var(--ink);
    background: var(--paper);
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.rtf *, .rtf *::before, .rtf *::after { box-sizing: border-box; }
.rtf h1, .rtf h2, .rtf h3 { font-family: inherit; margin: 0; color: var(--ink); }
.rtf p { margin: 0; }
.rtf [hidden] { display: none !important; }
/* ---- הגנה מעיצוב ערכת הנושא של האתר ----
   ערכות נושא מעצבות button / input / h1 / ul גלובלית, וכללים כמו "button:hover" (ספציפיות 0,1,1)
   גברו על הכללים שלנו (0,1,0): בטלפון כפתור שנלחץ נשאר בצבע של התבנית, והריפוד שלה דחף את הלשונית
   הרביעית בסרגל התחתון אל מחוץ למסך. כל הכללים כאן מתחילים ב-.rtf כדי לגבור עליה. */
.rtf button, .rtf input, .rtf select, .rtf textarea {
    font-family: inherit; text-transform: none; letter-spacing: normal; line-height: 1.25;
    text-shadow: none; box-shadow: none; margin: 0; white-space: normal; transition: none;
}
.rtf button { padding: 0; border-radius: 0; font-weight: inherit; color: inherit; background: none; border: 0; }
.rtf button:hover, .rtf button:focus { text-decoration: none; }
.rtf ul, .rtf ol { margin: 0; padding: 0; }
.rtf li { margin: 0; }
.rtf label { line-height: inherit; vertical-align: baseline; }
.rtf a:hover { color: inherit; }
.rtf p { margin-block-end: 0; }
.rtf h1, .rtf h2, .rtf h3 { margin-block: 0; font-weight: 700; line-height: 1.25; letter-spacing: normal; text-transform: none; }
.rtf img, .rtf svg { max-width: 100%; }

.rtf button { font-family: inherit; cursor: pointer; }
.rtf :focus-visible { outline: 3px solid var(--work); outline-offset: 2px; }
.rtf .rtf-time, .rtf .rtf-money, .rtf .rtf-items, .rtf .rtf-quote-due, .rtf .rtf-quote-tag, .rtf .rtf-count { font-variant-numeric: tabular-nums; }

/* ---------- סרגל עליון ---------- */
.rtf .rtf-top {
    position: sticky; top: 0; z-index: 50;
    height: var(--top-h);
    display: flex; align-items: center; gap: 8px;
    padding: 0 12px;
    background: var(--ink); color: #fff;
}
.rtf .rtf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--idle); flex: 0 0 auto; }
.rtf .rtf-conn { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 14px; font-weight: 500; }
.rtf .rtf-conn-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtf .rtf-conn.is-actionable { cursor: pointer; }
.rtf .rtf-conn.is-actionable .rtf-conn-text { text-decoration: underline; text-underline-offset: 3px; }
.rtf .rtf-conn[data-state="offline"] .rtf-conn-text { color: #FFB3BA; font-weight: 600; }
.rtf .rtf-conn[data-state="ok"] .rtf-dot { background: #33C46F; box-shadow: 0 0 0 3px rgba(51,196,111,.25); }
.rtf .rtf-conn[data-state="nogps"] .rtf-dot { background: var(--caution); }
.rtf .rtf-conn[data-state="offline"] .rtf-dot { background: #FF4D5E; box-shadow: 0 0 0 3px rgba(255,77,94,.25); }

.rtf .rtf-avail, .rtf .rtf-chat-btn {
    height: 36px; border-radius: 18px; border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.08); color: #fff;
    display: inline-flex; align-items: center; gap: 6px; padding: 0 12px;
    font-size: 14px; font-weight: 600;
}
.rtf .rtf-avail svg { width: 16px; height: 16px; }
.rtf .rtf-chat-btn { width: 36px; padding: 0; justify-content: center; position: relative; }
.rtf .rtf-chat-btn svg { width: 20px; height: 20px; }
.rtf #rozin-tech-chat-unread { position: absolute; top: -3px; left: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--stop); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.rtf .rtf-avail[data-status="available"] .rtf-dot, .rtf .rtf-avail-opt[data-avail="available"] .rtf-dot { background: #33C46F; }
.rtf .rtf-avail[data-status="break"] .rtf-dot, .rtf .rtf-avail-opt[data-avail="break"] .rtf-dot { background: var(--caution); }
.rtf .rtf-avail[data-status="end_day"] .rtf-dot, .rtf .rtf-avail-opt[data-avail="end_day"] .rtf-dot { background: var(--idle); }

.rtf .rtf-chat-panel {
    position: fixed; z-index: 60; top: calc(var(--top-h) + 8px); left: 8px; right: 8px;
    max-width: 544px; margin: 0 auto; height: min(60vh, 420px);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    flex-direction: column; overflow: hidden;
}
.rtf .rtf-chat-head { background: var(--ink); color: #fff; padding: 10px 14px; font-weight: 600; }
.rtf #rozin-tech-chat-messages { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--paper); }
.rtf .rtf-chat-input { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.rtf .rtf-chat-input input { flex: 1; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 16px; }
.rtf .rtf-chat-input button { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--work); color: #fff; font-weight: 600; }

/* ---------- מסכים ---------- */
.rtf .rtf-main { padding: 16px 14px calc(var(--nav-h) + 28px); }
.rtf .rtf-view-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.rtf .rtf-section { font-size: 15px; font-weight: 600; color: var(--muted); margin: 22px 0 8px; }
.rtf .rtf-hint { font-size: 14px; color: var(--muted); }
.rtf .rtf-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; margin-top: 10px; }
.rtf .rtf-center { text-align: center; }
.rtf .rtf-row { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.rtf .rtf-empty { text-align: center; padding: 48px 12px; color: var(--muted); display: grid; gap: 14px; justify-items: center; }

.rtf .rtf-day { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rtf .rtf-day h1 { font-size: 24px; font-weight: 700; }
.rtf .rtf-day p { font-size: 14px; color: var(--muted); font-weight: 500; }

/* בורר משני (היום / הבאות / תיאום / חיפוש) */
.rtf .rtf-seg { display: flex; gap: 4px; padding: 4px; background: #DCE2DC; border-radius: var(--r-md); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.rtf .rtf-seg::-webkit-scrollbar { display: none; }
.rtf .rtf-seg button { flex: 1 0 auto; min-height: 42px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
.rtf .rtf-seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; }

/* ---------- כפתורים ---------- */
.rtf .rtf-btn {
    min-height: 52px; padding: 0 18px; border-radius: var(--r-sm); border: 0;
    font-size: 17px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; text-decoration: none;
}
.rtf .rtf-btn:disabled { opacity: .55; }
.rtf .rtf-btn-work { background: var(--work); color: #fff; }
.rtf .rtf-btn-go { background: var(--go); color: #fff; }
.rtf .rtf-btn-stop { background: var(--surface); color: var(--stop); border: 2px solid var(--stop); }
.rtf .rtf-btn-quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.rtf .rtf-inline-link { background: none; border: 0; padding: 8px 0; color: var(--work); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.rtf .rtf-danger { color: var(--stop); }

/* ---------- היומן: מסילת זמן ---------- */
.rtf .rtf-rail { list-style: none; margin: 0; padding: 0; }
.rtf .rtf-slot { display: grid; grid-template-columns: 62px 1fr; gap: 0 14px; position: relative; padding-bottom: 18px; }
.rtf .rtf-slot::before { /* המסילה */
    content: ""; position: absolute; top: 34px; bottom: 0; right: 30px; width: 2px; background: var(--line);
}
.rtf .rtf-slot:last-child::before { display: none; }
.rtf .rtf-time {
    font-size: 21px; font-weight: 700; letter-spacing: -.01em; text-align: center;
    padding-top: 2px; position: relative; display: block;
}
.rtf .rtf-time::after { /* הצומת - צבע הסטטוס */
    content: ""; display: block; width: 14px; height: 14px; margin: 6px auto 0; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--idle); position: relative; z-index: 1;
}
.rtf .rtf-slot-work .rtf-time::after { border-color: var(--work); background: var(--work); }
.rtf .rtf-slot-stop .rtf-time::after { border-color: var(--stop); background: var(--stop); }
.rtf .rtf-slot-go   .rtf-time::after { border-color: var(--go);   background: var(--go); }
.rtf .rtf-slot.is-done .rtf-time { color: var(--muted); }

.rtf .rtf-ticket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 6px; }
.rtf .rtf-slot-work .rtf-ticket { border-color: var(--work); box-shadow: inset -4px 0 0 var(--work); }
.rtf .rtf-slot-stop .rtf-ticket { box-shadow: inset -4px 0 0 var(--stop); }
.rtf .rtf-slot.is-done .rtf-ticket { background: transparent; }
.rtf .rtf-slot.is-done .rtf-ticket-addr { display: none; }
.rtf .rtf-ticket-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rtf .rtf-ticket h2 { font-size: 19px; font-weight: 700; line-height: 1.25; }
.rtf .rtf-ticket-what { color: var(--ink); font-size: 15px; }
.rtf .rtf-ticket-addr { color: var(--muted); font-size: 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.rtf .rtf-ticket .rtf-btn { margin-top: 6px; }
.rtf .rtf-quote-tag {
    justify-self: start; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
    padding: 4px 10px; border-radius: var(--r-sm);
}

.rtf .rtf-state { flex: 0 0 auto; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 12px; background: #E3E8E4; color: var(--muted); white-space: nowrap; }
.rtf .rtf-state-tech_on_way, .rtf .rtf-state-in_progress { background: var(--work-tint); color: var(--work); }
.rtf .rtf-state-waiting_part { background: var(--stop-tint); color: var(--stop); }
.rtf .rtf-state-completed { background: var(--go-tint); color: var(--go); }

/* בלון ניווט */
.rtf .rtf-nav-balloon { position: relative; display: inline-block; }
.rtf .rtf-nav-balloon summary {
    list-style: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px;
    border-radius: 18px; background: var(--work-tint); color: var(--work); font-weight: 600; font-size: 14px; cursor: pointer;
}
.rtf .rtf-nav-balloon summary::-webkit-details-marker { display: none; }
.rtf .rtf-nav-balloon svg { width: 16px; height: 16px; }
.rtf .rtf-nav-options {
    position: absolute; z-index: 20; top: calc(100% + 6px); right: 0;
    display: grid; min-width: 160px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.rtf .rtf-nav-options a { padding: 14px 16px; color: var(--ink); text-decoration: none; font-weight: 600; }
.rtf .rtf-nav-options a + a { border-top: 1px solid var(--line); }

/* ---------- רשימות קיימות שהוטמעו (הבאות / תיאום / חיפוש / מלאי) ---------- */
.rtf .rozin-tab-panel { display: block; }
.rtf .rozin-call-card:not(.rtf-job) {
    background: var(--surface); border: 1px solid var(--line); border-right-width: 1px; border-radius: var(--r-md);
    box-shadow: none; padding: 14px; margin-bottom: 10px;
}
.rtf .rozin-call-title { font-family: inherit; font-size: 17px; font-weight: 600; color: var(--ink); }
.rtf .rozin-call-sub { color: var(--muted); font-size: 15px; }
.rtf .rozin-call-when { color: var(--ink); font-weight: 600; }
.rtf .rozin-action-btn, .rtf .rozin-btn-secondary {
    min-height: 44px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
    color: var(--ink); font-weight: 600; font-size: 15px;
}
.rtf .rozin-btn-primary { min-height: 48px; background: var(--work); border-radius: var(--r-sm); font-size: 16px; font-weight: 600; }
.rtf .rozin-link-btn { color: var(--work); font-size: 15px; }
.rtf .rozin-empty { color: var(--muted); padding: 30px 0; }
.rtf .rozin-qty-badge { background: var(--ink); border-radius: var(--r-sm); }
.rtf .rozin-coord-form label { color: var(--ink); font-size: 15px; font-weight: 600; }
.rtf .rozin-coord-form input, .rtf .rozin-coord-form select, .rtf .rozin-coord-form textarea, .rtf #rozin-customer-history-search { min-height: 48px; border-color: var(--line); border-radius: var(--r-sm); font-size: 16px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); }
.rtf .rozin-coord-hint { font-size: 14px; color: var(--muted); }
.rtf .rozin-attendance-widget.rtf-attendance { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; margin: 0; font-size: 16px; }
.rtf .rtf-attendance .rtf-row .rtf-btn { flex: 1; width: auto; min-height: 46px; font-size: 15px; }
.rtf .rozin-quick-replies-box summary { color: var(--ink); font-weight: 600; }

/* ---------- פרופיל ---------- */
.rtf .rtf-profile-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 6px; }
.rtf .rtf-profile-card h1 { font-size: 24px; font-weight: 700; }
.rtf .rtf-profile-card p { color: var(--muted); }
.rtf .rtf-avail-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rtf .rtf-avail-opt {
    min-height: 56px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink);
}
.rtf .rtf-avail-opt[aria-pressed="true"] { border: 2px solid var(--ink); background: #F7F9F7; }
.rtf .rtf-privacy { margin-top: 28px; }

/* ---------- סרגל ניווט תחתון ---------- */
.rtf .rtf-nav {
    position: fixed; z-index: 55; bottom: 0; left: 0; right: 0; max-width: 560px; margin: 0 auto;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--surface); border-top: 1px solid var(--line);
}
.rtf .rtf-nav button {
    border: 0; background: none; color: var(--muted); position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 12px; font-weight: 500; white-space: nowrap;
}
.rtf .rtf-nav svg { width: 25px; height: 25px; }
.rtf .rtf-nav button[aria-current="page"] { color: var(--ink); font-weight: 700; }
.rtf .rtf-nav button[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; background: var(--ink); border-radius: 0 0 3px 3px; }
.rtf .rtf-nav-live { position: absolute; top: 9px; left: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--work); border: 2px solid var(--surface); }

/* ---------- קריאה פעילה ---------- */
.rtf .rtf-job.rozin-call-card { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; border-radius: 0;
    /* ⚠ מקום לסרגל השלבים הקבוע בתחתית - קודם padding:0 כאן דרס את זה והשורה האחרונה של הכפתורים נשארה מתחתיו */
    padding-bottom: calc(var(--tabs-h) + 16px); }
.rtf .rtf-job.rozin-call-completed > * { opacity: 1; }
.rtf .rtf-job { padding-bottom: var(--tabs-h); }
.rtf .rtf-job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px solid var(--ink); }
.rtf .rtf-job-customer { font-size: 24px; font-weight: 700; line-height: 1.2; }
.rtf .rtf-job-title { color: var(--muted); font-size: 16px; margin-top: 2px; }

.rtf .rtf-job-tabs {
    position: fixed; z-index: 54; left: 0; right: 0; max-width: 560px; margin: 0 auto;
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
    height: var(--tabs-h); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 8px; /* 4 לשוניות (נוספה "אתר וציוד") */
    background: var(--paper); border-top: 1px solid var(--line);
}
.rtf .rtf-job-tabs button { border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; position: relative; white-space: normal; line-height: 1.15; text-align: center; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.rtf .rtf-job-tabs button[aria-current="true"] { background: var(--ink); color: #fff; font-weight: 600; }
.rtf .rtf-count { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; margin-inline-start: 6px; padding: 0 5px; border-radius: 10px; background: var(--work); color: #fff; font-size: 12px; font-weight: 700; }
.rtf .rtf-job-tabs button[aria-current="true"] .rtf-count { background: #fff; color: var(--ink); }

.rtf .rtf-stepper { display: grid; gap: 8px; margin: 0 0 16px; }
.rtf .rtf-stepper .rozin-status-btn { margin: 0; }

.rtf .rtf-facts { margin: 0 0 14px; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.rtf .rtf-facts > div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 12px 14px; align-items: baseline; }
.rtf .rtf-facts > div + div { border-top: 1px solid var(--line); }
.rtf .rtf-facts dt { color: var(--muted); font-size: 14px; }
.rtf .rtf-facts dd { margin: 0; font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rtf .rtf-desc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 14px; }

/* תיבת "תיאום לפי הצעת מחיר" */
.rtf .rtf-quote {
    display: grid; grid-template-columns: 30px 1fr; grid-template-areas: "box text" "box due"; align-items: center; gap: 0 12px;
    background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md); padding: 14px; margin-bottom: 14px; cursor: pointer;
}
.rtf .rtf-quote input { position: absolute; opacity: 0; pointer-events: none; }
.rtf .rtf-quote-box { grid-area: box; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--surface); position: relative; }
.rtf .rtf-quote-text { grid-area: text; font-weight: 600; font-size: 17px; }
.rtf .rtf-quote-due { grid-area: due; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.rtf .rtf-quote-due strong { color: var(--ink); font-size: 26px; font-weight: 700; }
.rtf .rtf-quote:has(input:checked) { border-color: var(--go); background: var(--go-tint); }
.rtf .rtf-quote input:checked ~ .rtf-quote-box { background: var(--go); border-color: var(--go); }
.rtf .rtf-quote input:checked ~ .rtf-quote-box::after { content: ""; position: absolute; inset: 4px 8px 8px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.rtf .rtf-quote input:checked ~ .rtf-quote-due { max-height: 48px; }
.rtf .rtf-quote input:focus-visible ~ .rtf-quote-box { outline: 3px solid var(--work); outline-offset: 2px; }

.rtf .rtf-collect { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 14px; font-weight: 600; display: grid; gap: 2px; }
.rtf .rtf-collect small { font-weight: 400; color: var(--muted); font-size: 14px; }
.rtf .rtf-collect-paid { border-color: var(--go); background: var(--go-tint); }
.rtf .rtf-collect-unknown { border-color: var(--stop); background: var(--stop-tint); }

.rtf .rtf-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rtf .rtf-tool {
    min-height: 48px; display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
    color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; padding: 0 6px; text-align: center;
}
.rtf .rtf-note { display: grid; gap: 8px; margin-top: 12px; }
.rtf .rtf-note textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: 16px; font-family: inherit; }
.rtf .rtf-history { margin-top: 12px; }
.rtf .rozin-attach-photo-status { margin-top: 8px; }

/* מלאי וסריקה */
.rtf .rtf-items-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rtf .rtf-items-head h3 { font-size: 18px; font-weight: 700; }
.rtf .rtf-items { list-style: none; margin: 0; padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.rtf .rtf-items li { display: grid; grid-template-columns: 12px 1fr auto auto; align-items: center; gap: 10px; padding: 12px 14px; min-height: 56px; }
.rtf .rtf-items li + li { border-top: 1px solid var(--line); }
.rtf .rtf-items .rtf-items-empty { display: block; text-align: center; color: var(--muted); }
.rtf .rtf-item-name { font-weight: 500; line-height: 1.3; }
.rtf .rtf-item-name small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.rtf .rtf-item-qty { font-weight: 700; white-space: nowrap; }
.rtf .rtf-item-remove { width: 40px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; border-radius: 50%; }
.rtf .rtf-flag { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--go); vertical-align: middle; }
.rtf .rtf-flag-warn { background: var(--caution); box-shadow: 0 0 0 2px #8A6500 inset; }
.rtf .rtf-items li.is-exception { background: var(--caution-tint); }
.rtf .rtf-legend { font-size: 13px; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.rtf .rtf-fab {
    position: fixed; z-index: 53; left: 50%; transform: translateX(-50%);
    bottom: calc(var(--nav-h) + var(--tabs-h) + 16px + env(safe-area-inset-bottom, 0px));
    min-height: 60px; padding: 0 26px; border: 0; border-radius: 30px;
    background: var(--ink); color: #fff; font-size: 18px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    box-shadow: 0 6px 18px rgba(16,32,43,.35);
}
.rtf .rtf-fab svg { width: 26px; height: 26px; }
.rtf .rtf-pane[data-pane="stock"] { padding-bottom: 96px; }

/* סיכום ותשלום */
.rtf .rtf-bill { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.rtf .rtf-bill-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.rtf .rtf-bill-row + .rtf-bill-row { border-top: 1px dashed var(--line); }
.rtf .rtf-bill-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtf .rtf-bill-total { border-top: 2px solid var(--ink) !important; font-weight: 700; font-size: 18px; }
.rtf .rtf-amount { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 16px 0; }
.rtf .rtf-amount label { font-weight: 600; }
.rtf .rtf-amount-field { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--surface); padding: 0 14px; }
.rtf .rtf-amount-field span { font-size: 28px; font-weight: 700; color: var(--muted); }
.rtf .rtf-amount-field input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; font-family: inherit; font-size: 34px; font-weight: 700; padding: 8px 8px; font-variant-numeric: tabular-nums; color: var(--ink); }
.rtf .rtf-amount-field input:focus { outline: none; }
.rtf .rtf-amount-field:focus-within { outline: 3px solid var(--work); outline-offset: 2px; }
.rtf .rtf-amount-note { font-size: 14px; color: var(--muted); }
.rtf .rtf-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.rtf .rtf-method {
    min-height: 60px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
    font-size: 17px; font-weight: 600; color: var(--ink);
}
.rtf .rtf-method[aria-pressed="true"] { border: 2px solid var(--ink); background: var(--ink); color: #fff; }
.rtf .rtf-error { background: var(--stop-tint); color: var(--stop); border-radius: var(--r-sm); padding: 10px 12px; font-weight: 600; margin-bottom: 12px; }
.rtf .rtf-receipt { background: var(--surface); border: 2px solid var(--go); border-radius: var(--r-md); padding: 18px; display: grid; gap: 10px; text-align: center; }
.rtf .rtf-receipt h3 { font-size: 20px; color: var(--go); }
.rtf .rtf-receipt .rtf-big { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rtf .rtf-receipt .rtf-row .rtf-btn { flex: 1; width: auto; }
.rtf .rtf-btn-wa { background: #1E8E4E; color: #fff; }

/* ---------- סורק ברקוד ---------- */
.rtf .rtf-scanner { position: fixed; inset: 0; z-index: 10001; background: #000; color: #fff; display: flex; flex-direction: column; }
.rtf .rtf-scanner-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.rtf .rtf-scanner-close { min-height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.5); background: none; color: #fff; border-radius: 22px; font-weight: 600; }
.rtf #rtf-scan-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.rtf #rtf-scanner-video { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.rtf #rtf-scanner-video video { width: 100% !important; height: 100% !important; object-fit: cover; }
.rtf .rtf-scan-flash { position: absolute; inset: 0; background: rgba(18,130,74,.55); pointer-events: none; animation: rtf-flash .45s ease-out forwards; }
@keyframes rtf-flash { from { opacity: 1; } to { opacity: 0; } }
.rtf .rtf-scan-warn {
    position: absolute; left: 16px; right: 16px; top: 38%;
    background: var(--caution); color: var(--ink); border-radius: var(--r-md); padding: 18px; text-align: center; display: grid; gap: 4px;
}
.rtf .rtf-scan-warn strong { font-size: 20px; }
.rtf .rtf-scan-warn span { font-size: 16px; font-weight: 600; }
.rtf .rtf-scan-warn small { font-size: 14px; }
.rtf .rtf-scan-last { min-height: 28px; text-align: center; padding: 8px 14px 0; font-weight: 600; }
.rtf .rtf-scan-manual { display: flex; gap: 8px; padding: 12px 14px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.rtf .rtf-scan-manual input { flex: 1; min-width: 0; min-height: 50px; border-radius: var(--r-sm); border: 0; padding: 0 12px; font-size: 18px; font-family: inherit; }
.rtf .rtf-scan-manual button { min-height: 50px; padding: 0 18px; border: 0; border-radius: var(--r-sm); background: #fff; color: var(--ink); font-weight: 700; font-size: 16px; }
.rtf .rtf-scan-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #fff; font-size: 16px; }

/* ---------- חלונות ו-toast ---------- */
.rtf .rtf-sheet { position: fixed; inset: 0; z-index: 10000; background: rgba(16,32,43,.55); display: flex; align-items: flex-end; justify-content: center; }
.rtf .rtf-sheet-box { width: 100%; max-width: 560px; background: var(--paper); border-radius: 14px 14px 0 0; padding: 18px 14px calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
.rtf .rtf-sheet-box h2 { font-size: 20px; }
.rtf .rtf-toast {
    position: fixed; z-index: 10002; left: 14px; right: 14px; max-width: 532px; margin: 0 auto;
    bottom: calc(var(--nav-h) + var(--tabs-h) + 16px + env(safe-area-inset-bottom, 0px));
    background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 14px 16px; font-weight: 600; text-align: center;
}
.rtf .rtf-toast[data-tone="warn"] { background: var(--caution); color: var(--ink); }
.rtf .rtf-toast[data-tone="error"] { background: var(--stop); }

/* החלונות הקיימים (הודעה / שינוי מועד / לקוח חדש / חתימה) - מותאמים לשפה החדשה */
.rtf .rozin-sheet { background: rgba(16,32,43,.55); }
.rtf .rozin-sheet-box { background: var(--paper); border-radius: 14px 14px 0 0; }
.rtf .rozin-sheet-box label { color: var(--ink); font-size: 15px; font-weight: 600; }
.rtf .rozin-sheet-box input, .rtf .rozin-sheet-box select, .rtf .rozin-sheet-box textarea { border-color: var(--line); border-radius: var(--r-sm); min-height: 48px; }
.rtf .rozin-msg-channel.active { background: var(--ink); border-color: var(--ink); }
.rtf .rozin-modal { background: rgba(16,32,43,.6); align-items: flex-end; }
.rtf .rozin-modal-content { width: 100%; max-width: 560px; max-width: min(560px, 100vw); border-radius: 14px 14px 0 0; border-top: 0; text-align: right; background: var(--paper); }
.rtf .rozin-modal-content h3 { color: var(--ink); }
.rtf .rozin-modal-content textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; font-size: 16px; font-family: inherit; }
.rtf #rozin-signature-pad { width: 100%; height: auto; border: 2px dashed var(--muted) !important; border-radius: var(--r-sm); }
.rtf .rozin-modal-actions { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 8px; }
.rtf .rozin-modal-actions button { min-height: 50px; }

@media (prefers-reduced-motion: reduce) {
    .rtf *, .rtf *::before, .rtf *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 600px) {
    .rtf { border-inline: 1px solid var(--line); }
}

/* ---- מסכים צרים (iPhone SE ודומיו, 320-359px) ---- */
.rtf .rtf-day { flex-wrap: wrap; row-gap: 2px; }
.rtf .rtf-nav-long { display: inline; }
.rtf .rtf-nav-short { display: none; }
@media (max-width: 359px) {
    .rtf .rtf-main { padding-left: 10px; padding-right: 10px; }
    .rtf .rtf-nav-long { display: none; }
    .rtf .rtf-nav-short { display: inline; }
    .rtf .rtf-nav button { font-size: 11.5px; }
    .rtf .rtf-seg button { font-size: 14px; padding: 0 8px; }
    .rtf .rtf-day h1 { font-size: 21px; }
    .rtf .rtf-slot { grid-template-columns: 52px 1fr; gap: 0 10px; }
    .rtf .rtf-slot::before { right: 25px; }
    .rtf .rtf-time { font-size: 18px; }
    .rtf .rtf-ticket { padding: 12px; }
    .rtf .rtf-facts > div { grid-template-columns: 72px 1fr; padding: 10px 12px; }
    .rtf .rtf-job-tabs button { font-size: 13.5px; }
    .rtf .rtf-tools { grid-template-columns: repeat(2, 1fr); }
    .rtf .rtf-avail { padding: 0 10px; }
    .rtf .rtf-amount-field input { font-size: 28px; }
    .rtf .rtf-fab { font-size: 16px; padding: 0 20px; }
}

/* היסטוריית קריאות של הלקוח (כפתור "היסטוריה") */
.rtf .rozin-customer-history { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 14px; margin-top: 12px; }
.rtf .rozin-history-list { list-style: none; margin: 0; padding: 0; }
.rtf .rozin-history-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rtf .rozin-history-list li:last-child { border-bottom: 0; }
.rtf .rozin-history-date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.rtf .rozin-history-title { font-weight: 500; }
.rtf .rozin-history-status { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: #E3E8E4; color: var(--muted); white-space: nowrap; }

/* ---- סוג חיוב והצעת מחיר מקושרת (2.101.0) ---- */
.rtf .rtf-billing { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "k v" "k n"; gap: 0 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; margin-bottom: 14px; }
.rtf .rtf-billing span { grid-area: k; color: var(--muted); font-size: 14px; }
.rtf .rtf-billing strong { grid-area: v; font-size: 17px; }
.rtf .rtf-billing em { grid-area: n; font-style: normal; font-size: 13px; font-weight: 600; }
.rtf .rtf-billing-pay { border-color: var(--caution); box-shadow: inset -4px 0 0 var(--caution); }
.rtf .rtf-billing-pay em { color: #8A6500; }
.rtf .rtf-billing-free em { color: var(--go); }
.rtf .rtf-bill-chip { justify-self: start; font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-sm); }
.rtf .rtf-bill-chip-pay { background: var(--caution-tint); color: #6B4E00; }
.rtf .rtf-bill-chip-free { background: var(--go-tint); color: var(--go); }

.rtf .rtf-qcard { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-md); margin-bottom: 14px; overflow: hidden; }
.rtf .rtf-qcard header { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; background: var(--ink); color: #fff; }
.rtf .rtf-qcard header span { font-size: 14px; opacity: .85; }
.rtf .rtf-qcard header strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.rtf .rtf-qcard ul { list-style: none; margin: 0; padding: 4px 14px; }
.rtf .rtf-qcard li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.rtf .rtf-qcard li:last-child { border-bottom: 0; }
.rtf .rtf-qcard li small { color: var(--muted); }
.rtf .rtf-qcard li b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rtf .rtf-qcard footer { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-top: 2px solid var(--ink); }
.rtf .rtf-qcard footer strong { font-size: 26px; font-variant-numeric: tabular-nums; }

.rtf .rtf-qref { background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 8px 12px; margin-bottom: 10px; font-size: 15px; }
.rtf .rtf-amount-label { font-weight: 600; }
.rtf .rtf-amount-field.is-locked { background: #F7F9F7; border-style: dashed; }
.rtf .rtf-amount-field output { flex: 1; font-size: 34px; font-weight: 700; padding: 8px; font-variant-numeric: tabular-nums; }
.rtf .rtf-amount-field i { font-style: normal; font-size: 20px; }
.rtf .rtf-methods-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 400px) { .rtf .rtf-methods-4 { grid-template-columns: repeat(2, 1fr); } }
.rtf .rtf-nocollect { border-color: var(--go); }
.rtf .rtf-nocollect h3 { color: var(--go); }

/* ---- מסוף טרנזילה (2.102.0) ---- */
.rtf .rtf-card { position: fixed; inset: 0; z-index: 10003; background: var(--paper); display: flex; flex-direction: column; }
.rtf .rtf-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); background: var(--ink); color: #fff; }
.rtf .rtf-card-top strong { display: block; font-size: 17px; }
.rtf .rtf-card-top span { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rtf .rtf-card-cancel { min-height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.5); border-radius: 22px; color: #fff; font-weight: 600; }
.rtf .rtf-card-status { padding: 10px 14px; background: var(--work-tint); color: var(--work); font-weight: 600; font-size: 14px; text-align: center; }
.rtf #rtf-card-frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---- תנאי חיוב ומחירון מהנה"ח (2.103.0) ---- */
.rtf .rtf-terms { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; }
.rtf .rtf-terms summary { list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 14px; cursor: pointer; min-height: 48px; }
.rtf .rtf-terms summary::-webkit-details-marker { display: none; }
.rtf .rtf-terms summary span { color: var(--muted); font-size: 14px; }
.rtf .rtf-terms summary b { font-size: 15px; text-align: left; }
.rtf .rtf-terms summary::after { content: "▾"; color: var(--muted); }
.rtf .rtf-terms[open] summary::after { content: "▴"; }
.rtf .rtf-terms dl { margin: 0; border-top: 1px solid var(--line); }
.rtf .rtf-terms dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 9px 14px; }
.rtf .rtf-terms dl > div + div { border-top: 1px dashed var(--line); }
.rtf .rtf-terms dt { color: var(--muted); font-size: 14px; }
.rtf .rtf-terms dd { margin: 0; font-weight: 500; }
.rtf .rtf-terms .rtf-hint { padding: 0 14px 12px; font-size: 13px; }

/* מסוף טרנזילה: פתיחה במסך מלא אם המסגרת לא נטענת */
.rtf .rtf-card-fallback { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
.rtf .rtf-card-fallback span { color: var(--muted); font-size: 14px; }
.rtf .rtf-card-fallback .rtf-btn { width: auto; min-height: 44px; font-size: 15px; padding: 0 16px; }

/* ===== אתר וציוד ===== */
/* ⚠ לא rtf-card: השם הזה תפוס ע"י חלון מסוף האשראי (position:fixed על כל המסך) */
.rtf .rtf-sitecard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.rtf .rtf-site h3 { margin: 0 0 8px; font-size: 16px; }
.rtf .rtf-site-where { margin: 0 0 10px; color: var(--muted); }
.rtf .rtf-site-list { list-style: none; margin: 0; padding: 0; }
.rtf .rtf-site-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 0; border-top: 1px solid var(--line); min-height: 48px; }
.rtf .rtf-site-list li:first-child { border-top: 0; }
.rtf .rtf-site-k { color: var(--muted); font-size: 13px; flex-basis: 100%; } /* תווית מעל הערך - לערך כל הרוחב */
.rtf .rtf-site-v { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; direction: ltr; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rtf .rtf-site-secret .rtf-site-v.is-shown { background: #fff7ed; border-radius: 6px; padding: 2px 6px; font-family: ui-monospace, Menlo, monospace; }
.rtf .rtf-site-btn { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; font-size: 18px; line-height: 1; color: var(--ink); }
.rtf .rtf-site-btn:active { transform: scale(.96); }
.rtf .rtf-site-btn[aria-pressed="true"] { background: #fff7ed; border-color: #fdba74; }
.rtf .rtf-site-block > summary { font-weight: 700; font-size: 15px; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.rtf .rtf-site-dl { margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.rtf .rtf-site-dl dt { color: var(--muted); font-size: 12px; }
.rtf .rtf-site-dl dd { margin: 0; font-weight: 600; font-size: 14px; word-break: break-word; }
.rtf .rtf-site h4 { margin: 12px 0 6px; font-size: 14px; }
.rtf .rtf-site-rows, .rtf .rtf-site-history { list-style: none; margin: 0; padding: 0; }
.rtf .rtf-site-rows li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; display: block; }
.rtf .rtf-site-rows .rtf-site-btn { min-width: 36px; min-height: 36px; font-size: 15px; vertical-align: middle; }
.rtf .rtf-site-history li { padding: 10px 0; border-top: 1px solid var(--line); }
.rtf .rtf-site-history p { margin: 4px 0; font-size: 14px; }
.rtf .rtf-site-history small { color: var(--muted); }
.rtf .rtf-site-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rtf .rtf-site-photos a { display: block; text-decoration: none; color: var(--muted); font-size: 11px; }
.rtf .rtf-site-photos img, .rtf .rtf-site-photos span { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--line); display: flex; align-items: center; justify-content: center; font-size: 28px; }

/* ===== ציוד באתר (הוספה / החלפה) ===== */
.rtf .rtf-eq-wrap h3 small { color: var(--muted); font-weight: 400; }
.rtf .rtf-eq-list { list-style: none; margin: 0 0 12px; padding: 0; }
.rtf .rtf-eq { border-top: 1px solid var(--line); padding: 10px 0; }
.rtf .rtf-eq:first-child { border-top: 0; }
.rtf .rtf-eq-main strong { font-size: 15px; }
.rtf .rtf-eq-model { color: var(--muted); font-size: 13px; }
.rtf .rtf-eq-loc, .rtf .rtf-eq-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.rtf .rtf-eq-sn { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 600; }
.rtf .rtf-eq-sn bdi { direction: ltr; font-variant-numeric: tabular-nums; }
.rtf .rtf-eq-actions { display: flex; gap: 8px; margin-top: 8px; }
.rtf .rtf-eq-actions .rtf-btn { flex: 1; min-height: 44px; font-size: 14px; }
.rtf .rtf-eq-form { display: grid; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; }
.rtf .rtf-eq-form[hidden] { display: none; }
.rtf .rtf-eq-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.rtf .rtf-eq-form input, .rtf .rtf-eq-form select { min-height: 46px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--surface); color: var(--ink); width: 100%; box-sizing: border-box; }
.rtf .rtf-eq-snrow { display: flex; gap: 6px; }
.rtf .rtf-eq-snrow input { flex: 1; min-width: 0; }
.rtf .rtf-eq-snrow .rtf-btn { width: auto; min-height: 46px; padding: 0 12px; white-space: nowrap; font-size: 14px; }
.rtf .rtf-eq-formtitle { margin: 0; font-weight: 700; color: var(--ink); }
.rtf .rtf-eq-buttons { display: flex; gap: 8px; }
.rtf .rtf-eq-buttons .rtf-btn { flex: 1; min-height: 48px; }
.rtf .rtf-eq-past { margin-top: 12px; }
.rtf .rtf-eq-past summary { min-height: 44px; display: flex; align-items: center; color: var(--muted); cursor: pointer; }
.rtf .rtf-eq-past ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.rtf .rtf-eq-past li { padding: 6px 0; border-top: 1px solid var(--line); }
.rtf .rtf-eq-badge { display: inline-block; border-radius: 999px; padding: 0 8px; font-size: 12px; background: #eef2f7; margin-inline-end: 4px; }
.rtf .rtf-eq-replaced { background: #e0f2fe; } .rtf .rtf-eq-faulty { background: #fee2e2; } .rtf .rtf-eq-removed { background: #f1f5f9; }
/* מסמכים חתומים ותיעוד */
.rtf .rtf-doc-list { list-style: none; margin: 6px 0 0; padding: 0; }
.rtf .rtf-doc-list a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.rtf .rtf-doc-list li:first-child a { border-top: 0; }
.rtf .rtf-doc-ic { font-size: 22px; }
.rtf .rtf-doc-t { flex: 1; font-weight: 600; font-size: 14px; display: grid; }
.rtf .rtf-doc-t small { color: var(--muted); font-weight: 400; font-size: 12px; }
.rtf .rtf-doc-open { color: #1d5bd0; font-size: 14px; font-weight: 600; }

/* ===== התלושים שלי / המשמרות שלי =====
   ⚠ לא rtf-avail: השם תפוס ע"י כפתור "זמין" בכותרת (גובה 36px) - כל שורות הימים נדחסו לתוכו */
.rtf .rtf-hr-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.rtf .rtf-hr-links .rtf-btn { min-height: 52px; font-size: 15px; }
.rtf .rtf-slips { list-style: none; margin: 0 0 16px; padding: 0; }
.rtf .rtf-slip { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.rtf .rtf-slip-ic { font-size: 26px; }
.rtf .rtf-slip-t { flex: 1; display: grid; gap: 2px; }
.rtf .rtf-slip-t small { color: var(--muted); }
.rtf .rtf-slip-new { background: #dbeafe; color: #1e40af; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.rtf .rtf-slip-dl { color: #1d5bd0; font-weight: 700; }
.rtf .rtf-myshifts { list-style: none; margin: 0; padding: 0; }
.rtf .rtf-myshifts li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); min-height: 44px; align-items: center; }
.rtf .rtf-myshifts li:first-child { border-top: 0; }
.rtf .rtf-myshifts li.is-today { background: #eff6ff; border-radius: 8px; padding-inline: 8px; }
.rtf .rtf-myshifts bdi { direction: ltr; color: var(--muted); }
.rtf .rtf-shiftavail h3 small { color: var(--muted); font-weight: 400; }
.rtf .rtf-avail-help { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.rtf .rtf-avail-day { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.rtf .rtf-avail-dn { min-width: 74px; font-weight: 700; } .rtf .rtf-avail-dn small { color: var(--muted); font-weight: 400; }
.rtf .rtf-avail-btn { min-height: 44px; min-width: 84px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; }
.rtf .rtf-avail-btn[data-state="yes"] { background: #dcfce7; border-color: #16a34a; }
.rtf .rtf-avail-btn[data-state="yes"] .rtf-avail-mark::before { content: "✓"; color: #15803d; font-weight: 800; }
.rtf .rtf-avail-btn[data-state="no"] { background: #fee2e2; border-color: #dc2626; }
.rtf .rtf-avail-btn[data-state="no"] .rtf-avail-mark::before { content: "✗"; color: #b91c1c; font-weight: 800; }
.rtf .rtf-shiftavail [data-avail-save] { margin-top: 12px; width: 100%; min-height: 48px; }
.rtf .rtf-shiftavail.is-dirty [data-avail-save] { box-shadow: 0 0 0 3px #bfdbfe; }
