/* ══════════════════════════════════════════════════════════════
   🎨 RunnerCRM Design System — v1.1 iOS (4.692.0)
   שכבת עיצוב אחידה: טוקנים, רכיבים, ושדרוג הקנבן כמסך הראשון.
   נטען אחרון — דורס סגנונות אינליין היסטוריים בעדינות.
   ══════════════════════════════════════════════════════════════ */
:root{
  /* 🍎 iOS (Human Interface Guidelines): SF על אפל, Heebo (הכי קרוב ל-SF Hebrew) על ווינדוס/אנדרואיד */
  --ds-font:-apple-system,BlinkMacSystemFont,'SF Pro Text','SF Pro Display','Heebo','Segoe UI',Roboto,sans-serif;
  --ds-bg:#f2f2f7; --ds-surface:#ffffff; --ds-surface2:#f2f2f7; --ds-line:rgba(60,60,67,.12); --ds-line2:rgba(60,60,67,.2);
  --ds-ink:#1c1c1e; --ds-ink2:#3a3a3c; --ds-ink3:#8e8e93;
  --ds-brand:#0a1f44; --ds-primary:#007aff; --ds-primary2:#007aff; --ds-primary-soft:rgba(0,122,255,.1);
  --ds-ok:#34c759; --ds-ok-soft:rgba(52,199,89,.12); --ds-warn:#ff9500; --ds-warn-soft:rgba(255,149,0,.12); --ds-danger:#ff3b30; --ds-danger-soft:rgba(255,59,48,.1); --ds-violet:#5856d6; --ds-violet-soft:rgba(88,86,214,.12);
  --ds-r-sm:8px; --ds-r:12px; --ds-r-lg:14px; --ds-r-xl:20px;
  --ds-sh-1:0 0 0 .5px rgba(60,60,67,.06);
  --ds-sh-2:0 6px 20px rgba(0,0,0,.08);
  --ds-sh-3:0 16px 48px rgba(0,0,0,.16);
  --ds-focus:0 0 0 3px rgba(0,122,255,.25);
}
html,body{font-family:var(--ds-font)!important;letter-spacing:-.01em!important}
body{background:var(--ds-bg)!important;color:var(--ds-ink)!important}
button,input,select,textarea{font-family:var(--ds-font)}
/* ── כפתורים ── */
/* iOS: כפתור ראשי שטוח כחול-מערכת, כפתורים משניים "tinted" ללא מסגרת, לחיצה = שקיפות */
.btn-main{background:var(--ds-primary)!important;color:#fff!important;border:none!important;border-radius:var(--ds-r)!important;padding:11px 18px!important;font-weight:600!important;font-size:15px!important;box-shadow:none!important;transition:opacity .12s,transform .12s!important;letter-spacing:-.01em}
.btn-main:hover{opacity:.92}
.btn-main:active{opacity:.75;transform:scale(.98)}
.mt-btn{background:rgba(120,120,128,.12)!important;border:none!important;border-radius:10px!important;padding:8px 13px!important;font-weight:600!important;font-size:13.5px!important;color:var(--ds-primary)!important;box-shadow:none!important;cursor:pointer;transition:opacity .12s,transform .1s!important;line-height:1.2}
.mt-btn:hover{background:rgba(120,120,128,.18)!important}
.mt-btn:active{opacity:.7;transform:scale(.98)}
.mt-btn.pri{background:var(--ds-primary)!important;color:#fff!important}
.mt-btn.pri:hover{opacity:.92;background:var(--ds-primary)!important}
.btn-ghost-sm{border-radius:10px!important;border:none!important;background:rgba(120,120,128,.12)!important;padding:7px 12px!important;font-weight:600!important;font-size:13px!important;color:var(--ds-primary)!important}
.btn-ghost-sm:hover{background:rgba(120,120,128,.18)!important}
/* ── שדות ── */
.att-input,input[type=text],input[type=search],input[type=number],input[type=date],input[type=email],input[type=tel],select,textarea{border:1px solid var(--ds-line);border-radius:10px;background:var(--ds-surface);color:var(--ds-ink);transition:border-color .12s,box-shadow .12s}
.att-input:focus,input:focus,select:focus,textarea:focus{outline:none!important;border-color:var(--ds-primary)!important;box-shadow:var(--ds-focus)!important}
::placeholder{color:#9aa3b2;opacity:1}
/* ── כרטיסים וכותרות ── */
.mt-card{background:var(--ds-surface)!important;border:1px solid var(--ds-line)!important;border-radius:var(--ds-r-lg)!important;box-shadow:var(--ds-sh-1)!important}
.mt-th{font-size:14px!important;font-weight:800!important;color:var(--ds-ink)!important;letter-spacing:0}
.section-head{align-items:center}
/* iOS Large Title */
.section-head h1,.section-head h2,.page>h2:first-of-type{font-size:26px!important;font-weight:700!important;color:var(--ds-ink)!important;letter-spacing:-.02em;margin:0}
.pill{border-radius:999px!important;font-weight:700!important;letter-spacing:0}
.stats-grid>*{background:var(--ds-surface)!important;border:1px solid var(--ds-line)!important;border-radius:var(--ds-r-lg)!important;box-shadow:var(--ds-sh-1)!important}
/* ── קנבן העסקאות ── */
#page-pipeline .lead-board{gap:12px;padding-bottom:16px}
#page-pipeline .lb-col{background:rgba(120,120,128,.08)!important;border:none!important;border-radius:var(--ds-r-lg)!important;box-shadow:none}
#page-pipeline .lb-col.lb-drop{outline:2px dashed var(--ds-primary2)!important;background:var(--ds-primary-soft)!important}
#page-pipeline .lb-head{padding:10px 12px 8px!important;background:transparent!important;border-bottom:none;border-radius:var(--ds-r-lg) var(--ds-r-lg) 0 0!important;backdrop-filter:none!important;gap:8px}
#page-pipeline .lb-head .ds-stage-ico{width:26px;height:26px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px}
#page-pipeline .lb-head .ds-stage-ico svg{width:15px;height:15px;stroke-width:2.2}
#page-pipeline .lb-head .lb-cnt{background:var(--ds-surface)!important;border:none!important;color:var(--ds-ink2)!important;font-size:11.5px!important;padding:2px 8px!important}
#page-pipeline .lb-head .lb-sum{color:var(--ds-ink3)!important;font-weight:700!important;font-size:11px!important;font-variant-numeric:tabular-nums}
#page-pipeline .lb-body{padding:8px 8px 10px!important}
#page-pipeline .lb-body:empty::after{content:'אין עסקאות בשלב הזה'!important;color:var(--ds-ink3)!important;font-size:11.5px!important;padding:18px 0!important;border:1px dashed var(--ds-line2);border-radius:10px;margin:2px}
#page-pipeline .lb-card{border:none!important;border-radius:var(--ds-r)!important;box-shadow:var(--ds-sh-1)!important;padding:11px 12px!important;margin-bottom:8px!important;background:var(--ds-surface)!important}
#page-pipeline .lb-card:hover{box-shadow:var(--ds-sh-2)!important;transform:translateY(-1px)}
#page-pipeline .lb-card.lb-new{border-color:var(--ds-danger)!important}
#page-pipeline .lbc-name{font-size:14px;font-weight:800;color:var(--ds-ink)}
#page-pipeline .lbc-val{font-weight:800;color:var(--ds-ok);font-variant-numeric:tabular-nums;font-size:13px}
#page-pipeline .lbc-sub{color:var(--ds-ink3);font-size:11.5px}
#page-pipeline .lbc-now{border-radius:10px;font-size:12px;font-weight:700;padding:7px 10px;margin-top:8px}
#page-pipeline .lbc-now.next{background:var(--ds-primary-soft);color:var(--ds-brand)}
#page-pipeline .lbc-now.next b{color:var(--ds-primary)}
#page-pipeline .lbc-now.warn{background:var(--ds-danger-soft);color:#991b1b}
#page-pipeline .lbc-now.done{background:var(--ds-ok-soft);color:#166534}
#page-pipeline .lbc-foot{border-top:1px dashed var(--ds-line);margin-top:8px;padding-top:7px}
#page-pipeline .lb-qa{width:28px;height:28px;border-radius:999px;border:none;background:rgba(120,120,128,.12);display:inline-flex;align-items:center;justify-content:center;font-size:13px;color:var(--ds-primary);text-decoration:none;cursor:pointer}
#page-pipeline .lb-qa:hover{background:rgba(120,120,128,.2)}
/* iOS search field */
#page-pipeline #pipeline-search{border:none!important;border-radius:10px!important;background:rgba(120,120,128,.12)!important;padding:9px 14px!important;box-shadow:none}
#page-pipeline select{border:none!important;border-radius:10px!important;background:rgba(120,120,128,.12)!important;box-shadow:none}
/* ── מצבי טעינה / ריק (גלובלי) ── */
.mt-empty{color:var(--ds-ink3)!important;font-size:12.5px!important;text-align:center;padding:22px 10px!important;border:1px dashed var(--ds-line2);border-radius:var(--ds-r);background:var(--ds-surface2)}
.ds-skel{background:linear-gradient(90deg,#eef1f5 25%,#f7f8fb 37%,#eef1f5 63%);background-size:400% 100%;animation:dsSk 1.2s ease infinite;border-radius:8px}
@keyframes dsSk{0%{background-position:100% 0}100%{background-position:0 0}}

/* ══════ שלב 2 (4.693.0): כרטיסי משימות — iOS Reminders ══════ */
.task-card{background:var(--ds-surface)!important;border:none!important;border-radius:var(--ds-r-lg)!important;box-shadow:var(--ds-sh-1)!important;padding:12px 14px!important;margin-bottom:9px!important}
.task-card:hover{box-shadow:var(--ds-sh-2)!important;transform:translateY(-1px)}
.task-card.done-card{opacity:.62}
/* פס עדיפות דק בצד ימין (iOS: צבע עדין, לא מסגרת) */
.task-card.prio-high{border-inline-start:3px solid var(--ds-danger)!important}
.task-card.prio-med{border-inline-start:3px solid transparent!important}
.task-card.prio-low{border-inline-start:3px solid transparent!important}
.task-check{width:22px!important;height:22px!important;border:1.8px solid rgba(60,60,67,.3)!important;background:transparent!important;border-radius:50%!important}
.task-check.done{background:var(--ds-primary)!important;border-color:var(--ds-primary)!important}
.task-check.done::after{font-size:12px;font-weight:700}
.task-title{font-size:15px!important;font-weight:600!important;color:var(--ds-ink)!important;line-height:1.35}
.task-title .ds-num{background:rgba(120,120,128,.12)!important;color:var(--ds-ink2)!important;border-radius:6px!important;padding:1px 6px!important;font-size:10.5px!important;font-weight:600!important;font-family:var(--ds-font)!important;font-variant-numeric:tabular-nums}
.task-meta .pill{font-size:11px!important;font-weight:600!important;padding:3px 9px!important;border:none!important}
.task-upd{background:var(--ds-primary-soft)!important;color:var(--ds-primary)!important;border-radius:8px!important;padding:4px 8px!important;font-size:11.5px!important;font-weight:600!important;margin:4px 0!important}
.task-bottom{border-top:1px solid var(--ds-line)!important;margin-top:9px!important;padding-top:8px!important;color:var(--ds-ink3)!important}
.task-bottom span{color:var(--ds-ink3)}
.task-date{font-variant-numeric:tabular-nums}
.task-date.overdue{color:var(--ds-danger)!important;font-weight:600!important}
.task-btn{border:none!important;border-radius:999px!important;background:rgba(120,120,128,.12)!important;color:var(--ds-primary)!important;font-weight:600!important;font-size:12.5px!important;padding:6px 13px!important}
.task-btn.start{background:var(--ds-primary)!important;color:#fff!important}
.task-btn.done-btn{background:var(--ds-ok)!important;color:#fff!important}
/* רשימת המשימות: סינון עליון וכותרת */
#page-tasks .filter-scroll button,#page-tasks .btn-ghost-sm{border-radius:999px!important}
#page-tasks input[type=text],#page-tasks input[type=search]{border:none!important;background:rgba(120,120,128,.12)!important;border-radius:10px!important}
/* 🍎 iOS segmented control לפילטרים עם .seg */
.seg{display:inline-flex;background:rgba(120,120,128,.12);border-radius:9px;padding:2px;gap:2px}
.seg>button{border:none;background:transparent;border-radius:7px;padding:6px 12px;font-size:13px;font-weight:600;color:var(--ds-ink);cursor:pointer}
.seg>button.on{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12)}

/* ══════ שלב 3 (4.694.0): כרטיס לקוח + דף הבית — iOS grouped lists ══════ */
.detail-overlay{background:var(--ds-bg)!important}
.detail-topbar{background:rgba(248,248,250,.86)!important;color:var(--ds-ink)!important;border-bottom:.5px solid var(--ds-line)!important;backdrop-filter:saturate(180%) blur(16px);-webkit-backdrop-filter:saturate(180%) blur(16px)}
.detail-topbar .detail-title{font-weight:600!important;font-size:17px!important;color:var(--ds-ink)!important}
.detail-topbar button{color:var(--ds-primary)!important;font-weight:600!important}
.detail-topbar button[id$="-edit-btn"]{background:rgba(120,120,128,.12)!important;border-radius:999px!important;font-size:13px!important}
/* כל "כרטיס לבן" אינליין בכרטיס הלקוח, בכרטיס המשימה ובכרטיס העסקה — בלי מסגרת, צל iOS, רדיוס אחיד */
#cdetail-body [style*="background:#fff"],#detail-body [style*="background:#fff"],#lead-detail-body [style*="background:#fff"],#cdetail-body .mt-card,#cdetail-body .ios-group{border:none!important;box-shadow:var(--ds-sh-1)!important;border-radius:var(--ds-r-lg)!important}
.ios-group{border:none!important;box-shadow:var(--ds-sh-1)!important;border-radius:var(--ds-r-lg)!important}
.ios-group-t{font-size:13px!important;font-weight:600!important;color:var(--ds-ink3)!important;text-transform:uppercase;letter-spacing:.02em}
.ios-row{border-top:.5px solid var(--ds-line)!important;min-height:44px!important}
/* פריטי לשוניות הלקוח (עסקאות / משימות / טפסים) — שורת רשימה iOS עם פס צבע דק */
#cdetail-body .cd-item{border:none!important;border-right-width:3px!important;border-right-style:solid!important;box-shadow:var(--ds-sh-1)!important;border-radius:12px!important}
#cdetail-body .cd-item:active{opacity:.75}
#cdetail-body .cd-brchip{border-radius:999px!important;border:none!important;background:rgba(120,120,128,.12)!important;color:var(--ds-ink)!important;font-weight:600!important;font-size:12px!important;padding:5px 11px!important}
#cdetail-body .cd-brchip.on{background:var(--ds-primary)!important;color:#fff!important}
#cd-tabs{background:rgba(120,120,128,.12)!important;border-radius:9px!important;padding:2px!important}
#cd-tabs .cd-tab{border-radius:7px!important;font-weight:600!important;font-size:13px!important}
#cd-tabs .cd-tab.on{background:#fff!important;box-shadow:0 1px 3px rgba(0,0,0,.12)!important;color:var(--ds-ink)!important}
#cdetail-body input,#cdetail-body select{border:none!important;background:rgba(120,120,128,.12)!important;border-radius:10px!important}
/* דף הבית / דשבורדים: אריחי KPI */
.stat-card{background:var(--ds-surface)!important;border:none!important;border-radius:var(--ds-r-lg)!important;box-shadow:var(--ds-sh-1)!important;padding:14px 14px 12px!important}
.stat-card:hover{box-shadow:var(--ds-sh-2)!important;transform:translateY(-1px)}
.stat-card .stat-num,.stat-card .num,.stat-card b{font-size:26px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--ds-ink)}
.stat-card .stat-lbl,.stat-card .lbl,.stat-card small{font-size:12px;color:var(--ds-ink3);font-weight:500}
.stat-card.green{border-inline-start:3px solid var(--ds-ok)!important}
.stat-card.orange{border-inline-start:3px solid var(--ds-warn)!important}
.stat-card.red{border-inline-start:3px solid var(--ds-danger)!important}
.stat-card.blue{border-inline-start:3px solid var(--ds-primary)!important}
#page-dashboard .mt-card,#page-mydash .mt-card,#page-myday .mt-card{border:none!important}
/* רשימות כלליות: שורות עם מפריד עדין במקום מסגרות */
.mt-list>div,.list-row{border-color:var(--ds-line)!important}
/* הודעות toast / blocked דיאלוג: iOS alert */
.blocked-box,#blocked-modal .box{border-radius:var(--ds-r-xl)!important;box-shadow:var(--ds-sh-3)!important;border:none!important}

/* ══════ שלב 4 (4.695.0): כותרות בלי אימוג׳י, טבלאות, טפסים ══════ */
.section-head{font-size:17px!important;font-weight:700!important;color:var(--ds-ink)!important;display:flex!important;align-items:center;justify-content:flex-start!important;gap:8px;margin:18px 0 8px!important;letter-spacing:-.01em}
.section-head .ds-h-ico{width:26px;height:26px;border-radius:8px;background:var(--ds-primary-soft);color:var(--ds-primary);display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px}
.section-head .ds-h-ico svg{width:15px;height:15px}
.section-head a{margin-inline-start:auto;color:var(--ds-primary)!important;font-weight:600;font-size:14px;text-decoration:none}
.mt-th .ds-h-ico{width:22px;height:22px;border-radius:7px;background:var(--ds-primary-soft);color:var(--ds-primary);display:inline-flex;align-items:center;justify-content:center;margin-inline-end:6px;vertical-align:middle}
.mt-th .ds-h-ico svg{width:13px;height:13px}
/* טבלאות: iOS inset grouped */
.page table:not(.dlv-eq):not([class*="calendar"]){border-collapse:separate!important;border-spacing:0;width:100%;background:var(--ds-surface);border-radius:var(--ds-r-lg);overflow:hidden;box-shadow:var(--ds-sh-1)}
.page table:not(.dlv-eq) thead th{background:var(--ds-surface2)!important;color:var(--ds-ink3)!important;font-size:12px!important;font-weight:600!important;text-transform:none;border-bottom:.5px solid var(--ds-line)!important;padding:9px 12px!important}
.page table:not(.dlv-eq) tbody td{border-bottom:.5px solid var(--ds-line)!important;padding:10px 12px!important;font-size:13.5px}
.page table:not(.dlv-eq) tbody tr:last-child td{border-bottom:none!important}
.page table:not(.dlv-eq) tbody tr:hover td{background:rgba(120,120,128,.05)}
/* טפסים (מסירה / פירוק / פתיחת לקוח) */
.att-label,label.lbl{font-size:12.5px!important;font-weight:600!important;color:var(--ds-ink3)!important;margin-bottom:4px!important}
.att-input,.att-select,.att-textarea{border:none!important;background:rgba(120,120,128,.1)!important;border-radius:10px!important;padding:10px 12px!important;font-size:15px!important}
.att-input:focus{background:#fff!important;box-shadow:var(--ds-focus)!important}
/* דיאלוגים */
.modal-box,.att-modal,.ios-sheet{border-radius:var(--ds-r-xl)!important;border:none!important;box-shadow:var(--ds-sh-3)!important}
/* הודעות toast */
.toast,#toast{border-radius:999px!important;background:rgba(28,28,30,.92)!important;color:#fff!important;backdrop-filter:blur(10px);font-weight:600;box-shadow:var(--ds-sh-3)!important}

/* ── 🔧 תיקוני ציוד (RMA) — v4.715 iOS ── */
#page-repairs #repair-search{border:none!important;background:rgba(120,120,128,.12)!important;border-radius:12px!important;padding:11px 40px 11px 14px!important;font-size:15px!important;color:var(--ds-ink)}
#page-repairs #repair-search:focus{background:var(--ds-surface)!important;box-shadow:var(--ds-focus)!important}
.rp-card{background:var(--ds-surface);border:1px solid var(--ds-line);border-radius:var(--ds-r-lg);box-shadow:var(--ds-sh-1);padding:14px 16px 12px;margin-bottom:10px;position:relative;overflow:hidden}
.rp-card::before{content:'';position:absolute;inset-block:0;inset-inline-start:0;width:4px;background:var(--rp-color)}
.rp-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rp-num{font-size:22px;font-weight:800;letter-spacing:-.02em;color:var(--ds-ink);font-variant-numeric:tabular-nums;font-family:var(--ds-font)}
.rp-status{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:999px;font-size:12.5px;font-weight:700;color:var(--rp-color);background:color-mix(in srgb,var(--rp-color) 14%,transparent)}
.rp-status::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--rp-color)}
.rp-days{margin-inline-start:auto;font-size:12.5px;color:var(--ds-ink3);font-weight:600;font-variant-numeric:tabular-nums}
.rp-title{font-size:16px;font-weight:700;color:var(--ds-ink);margin-top:8px;letter-spacing:-.01em}
.rp-qty{font-size:13px;font-weight:700;color:var(--ds-ink3);background:rgba(120,120,128,.12);border-radius:6px;padding:1px 7px;vertical-align:middle}
.rp-sub{font-size:13.5px;color:var(--ds-ink2);margin-top:3px;line-height:1.4}
.rp-sub b{color:var(--ds-warn)}
.rp-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:700;font-size:13px;letter-spacing:.02em;unicode-bidi:isolate}
.rp-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.rp-chip{display:inline-flex;align-items:center;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;background:rgba(120,120,128,.1);color:var(--ds-ink2);white-space:nowrap}
.rp-chip.blue{background:var(--ds-primary-soft);color:var(--ds-primary)}
.rp-chip.ok{background:var(--ds-ok-soft);color:#1f9d47}
.rp-chip.warn{background:var(--ds-warn-soft);color:#c76a00}
.rp-chip.danger{background:var(--ds-danger-soft);color:var(--ds-danger)}
.rp-chip.violet{background:var(--ds-violet-soft);color:var(--ds-violet)}
.rp-match{margin-top:8px;background:var(--ds-warn-soft);border-radius:10px;padding:8px 12px;font-size:12.5px;color:var(--ds-ink2);line-height:1.5}
.rp-match>b{display:block;color:#c76a00;margin-bottom:2px}
.rp-note{margin-top:8px;padding:8px 12px;background:var(--ds-warn-soft);border-radius:10px;font-size:12.5px;color:var(--ds-ink2)}
.rp-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:12px;padding-top:10px;border-top:1px solid var(--ds-line)}
.rp-spacer{flex:1}
.rp-btn{border:none;border-radius:10px;padding:7px 12px;font-size:13px;font-weight:600;cursor:pointer;background:rgba(120,120,128,.12);color:var(--ds-primary);font-family:var(--ds-font);transition:.15s}
.rp-btn:hover{background:rgba(120,120,128,.18)}
.rp-btn:active{opacity:.7;transform:scale(.97)}
.rp-btn.pri{background:var(--ds-primary);color:#fff}
.rp-btn.pri:hover{opacity:.92;background:var(--ds-primary)}
.rp-btn.ok{background:var(--ds-ok-soft);color:#1f9d47}
.rp-btn.icon{padding:7px 9px;color:var(--ds-ink2);font-size:14px;line-height:1}
.rp-btn.icon.danger{color:var(--ds-danger)}
@media(max-width:600px){.rp-num{font-size:19px}.rp-days{width:100%;margin-inline-start:0;order:9}}
.rpd .rpd-sec{font-size:12px;font-weight:700;color:var(--ds-ink3);letter-spacing:.04em;margin:14px 4px 6px}
.rpd .rpd-sec:first-child{margin-top:0}
.rpd .rpd-group{background:var(--ds-surface2);border-radius:12px;overflow:hidden}
.rpd .rpd-row{display:flex;align-items:center;gap:10px;padding:10px 14px;font-size:14px;border-bottom:1px solid var(--ds-line)}
.rpd .rpd-row:last-child{border-bottom:none}
.rpd .rpd-k{color:var(--ds-ink3);flex:0 0 92px;font-size:13px}
.rpd .rpd-v{color:var(--ds-ink);flex:1;min-width:0;text-align:right;overflow-wrap:anywhere}
.rpd .rpd-tl{display:flex;gap:10px;padding:9px 14px;border-bottom:1px solid var(--ds-line);align-items:flex-start}
.rpd .rpd-tl:last-child{border-bottom:none}
.rpd .rpd-dot{width:8px;height:8px;border-radius:50%;background:var(--ds-primary);margin-top:6px;flex:0 0 8px}
/* ☑️ v4.716 — בחירה מרובה בתיקונים */
.rp-card.rp-selectable{cursor:pointer;user-select:none}
.rp-card.rp-selected{outline:2px solid var(--ds-primary);outline-offset:-2px;background:rgba(0,122,255,.04)}
.rp-check{width:24px;height:24px;border-radius:50%;border:2px solid rgba(60,60,67,.3);display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:900;color:#fff;flex:0 0 24px;background:var(--ds-surface);transition:.15s}
.rp-check.on{background:var(--ds-primary);border-color:var(--ds-primary)}
.rp-selbar{position:fixed;left:0;right:0;bottom:0;z-index:950;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.85);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-top:1px solid var(--ds-line)}
.rp-selbar-in{display:flex;align-items:center;gap:8px;max-width:1100px;margin:auto;flex-wrap:wrap}
.rp-selbar-n{font-size:14px;color:var(--ds-ink2)} .rp-selbar-n b{font-size:16px;color:var(--ds-ink)}
body:has(#rp-sel-bar) #repairs-list{padding-bottom:84px}
/* 🏭 v4.717 — צ׳יפי ספקים בתיקונים */
.rp-supchips{align-items:center;gap:6px}
.rp-suplbl{font-size:12px;color:var(--ds-ink3);font-weight:600;flex-shrink:0;margin-inline-end:2px}
.rp-supchips .fchip{padding:6px 12px;font-size:12.5px}
.rp-supn{display:inline-block;min-width:18px;text-align:center;padding:0 5px;border-radius:999px;background:rgba(0,0,0,.08);font-size:11px;font-weight:700;margin-inline-start:4px}
.rp-supchips .fchip.active .rp-supn{background:rgba(255,255,255,.25)}
/* 🧩 v4.720 — קבוצת דגם בטופס קריאת תיקון */
.rp-grp{background:var(--ds-primary-soft);border:1px dashed rgba(0,122,255,.45);border-radius:10px;padding:9px 10px;margin:10px 0 6px}
/* ⚡ v4.721 — סריקה ברצף */
.rp-batch{background:#fff;border:2px solid var(--ds-primary);border-radius:12px;padding:10px 12px;margin-bottom:10px;box-shadow:0 0 0 4px rgba(0,122,255,.08)}

/* ══════════════════════════════════════════════════════════════
   🧾 תהליך שכר חודשי — v4.726.0 (app-payroll.js, #att-payroll)
   שישה צעדים · כרטיסים נפתחים · פעולה במקום
   ══════════════════════════════════════════════════════════════ */
#att-payroll{padding-bottom:30px}
.pr-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:4px 0 12px}
.pr-top-title{font-size:20px;font-weight:800;color:var(--ds-ink);letter-spacing:-.02em}
.pr-top-ctl{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pr-top-ctl .att-input{width:auto!important;min-width:110px;padding:8px 12px!important;font-size:14px!important;font-weight:600}
/* סרגל הצעדים — נגלל אופקית במובייל */
.pr-steps{display:flex;gap:6px;flex-wrap:wrap;padding:4px 2px 10px;margin:0 -2px 10px}
.pr-steps::-webkit-scrollbar{display:none}
.pr-step{flex:1 0 auto;display:inline-flex;align-items:center;gap:8px;border:none;background:var(--ds-surface);border-radius:999px;padding:7px 14px 7px 8px;font-family:var(--ds-font);font-size:13.5px;font-weight:600;color:var(--ds-ink2);cursor:pointer;box-shadow:var(--ds-sh-1);white-space:nowrap;transition:.15s;position:relative}
.pr-step:hover{background:#fff;box-shadow:var(--ds-sh-2)}
.pr-step-n{width:24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(120,120,128,.14);color:var(--ds-ink2);font-size:12.5px;font-weight:800;flex:none}
.pr-step.cur{background:var(--ds-primary);color:#fff;box-shadow:0 4px 14px rgba(0,122,255,.3)}
.pr-step.cur .pr-step-n{background:rgba(255,255,255,.25);color:#fff}
.pr-step.done .pr-step-n{background:var(--ds-ok);color:#fff}
.pr-step.done:not(.cur){color:#1f9d47}
.pr-step-c{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:rgba(120,120,128,.14);color:var(--ds-ink2);font-size:11.5px;font-weight:800;display:inline-flex;align-items:center;justify-content:center}
.pr-step-c.warn{background:var(--ds-danger);color:#fff}
.pr-step.cur .pr-step-c{background:rgba(255,255,255,.28);color:#fff}
/* כותרת צעד */
.pr-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:6px 0 12px}
.pr-title{font-size:18px;font-weight:800;color:var(--ds-ink);letter-spacing:-.02em}
.pr-sub{font-size:13px;color:var(--ds-ink3);margin-top:3px;line-height:1.45;max-width:640px}
.pr-head-act{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pr-sec{font-size:12.5px;font-weight:700;color:var(--ds-ink3);text-transform:uppercase;letter-spacing:.02em;margin:14px 4px 6px;user-select:none}
.pr-empty{background:var(--ds-surface);border:1px dashed var(--ds-line2);border-radius:var(--ds-r-lg);padding:26px 16px;text-align:center;color:var(--ds-ink3);font-size:14px;font-weight:600}
.pr-warn{background:var(--ds-warn-soft);color:#8a4b00;border-radius:var(--ds-r);padding:10px 14px;font-size:13px;font-weight:600;margin-bottom:10px;line-height:1.5}
/* רשימת כרטיסים */
.pr-list{display:flex;flex-direction:column;gap:8px}
.pr-card{background:var(--ds-surface);border:1px solid var(--ds-line);border-radius:var(--ds-r-lg);box-shadow:var(--ds-sh-1);overflow:hidden;transition:box-shadow .15s}
.pr-card:hover{box-shadow:var(--ds-sh-2)}
.pr-card.has-issues{border-inline-start:4px solid var(--ds-warn)}
.pr-row{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:56px;flex-wrap:wrap}
.pr-row:active{background:rgba(120,120,128,.06)}
.pr-av{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:16px;flex:none;letter-spacing:0}
.pr-main{flex:1 1 180px;min-width:0}
.pr-name{font-size:15px;font-weight:700;color:var(--ds-ink);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pr-meta{font-size:12.5px;color:var(--ds-ink3);margin-top:2px;line-height:1.5}
.pr-meta b{color:var(--ds-ink);font-weight:700}
.pr-chev{color:var(--ds-ink3);font-size:15px;width:16px;text-align:center;flex:none}
.pr-gross{font-size:17px;font-weight:800;color:var(--ds-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.pr-detail{border-top:1px solid var(--ds-line);background:var(--ds-surface2);padding:10px 14px 12px}
.pr-ok{color:#1f9d47;font-weight:600;font-size:13.5px;padding:6px 0}
.pr-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px;align-items:center}
/* חריגות */
.pr-flag{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--ds-surface);border-radius:var(--ds-r);padding:9px 12px;margin-bottom:6px;box-shadow:var(--ds-sh-1)}
.pr-flag-d{font-weight:700;font-size:13.5px;color:var(--ds-ink);white-space:nowrap;min-width:92px}
.pr-flag-t{flex:1 1 160px;font-size:13px;color:var(--ds-ink2)}
.pr-flag-a{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-inline-start:auto}
.pr-thumb{width:38px;height:38px;border-radius:9px;object-fit:cover;cursor:pointer;flex:none;border:1px solid var(--ds-line)}
.pr-amt{width:96px;padding:7px 10px!important;border-radius:10px;border:1px solid var(--ds-line2)!important;font-size:14px;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}
/* פירוט שכר */
.pr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px}
.pr-grid>div{background:var(--ds-surface);border-radius:10px;padding:8px 11px;display:flex;flex-direction:column;gap:2px}
.pr-grid>div span{font-size:11.5px;color:var(--ds-ink3);font-weight:600}
.pr-grid>div b{font-size:15px;color:var(--ds-ink);font-variant-numeric:tabular-nums}
.pr-grid-tot{grid-column:1/-1;background:var(--ds-primary-soft)!important}
.pr-grid-tot b{color:var(--ds-primary)!important;font-size:18px!important}
.pr-total{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px;margin-top:12px;background:var(--ds-brand);border-radius:var(--ds-r-lg);padding:12px 14px;color:#fff}
.pr-total>div{display:flex;flex-direction:column;gap:2px}
.pr-total>div span{font-size:11.5px;opacity:.75;font-weight:600}
.pr-total>div b{font-size:16px;font-variant-numeric:tabular-nums}
.pr-total>div.big{grid-column:span 2}
.pr-total>div.big b{font-size:24px;letter-spacing:-.02em}
/* טופס תעריפים */
.pr-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px 10px}
.pr-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--ds-ink3)}
.pr-form input,.pr-form select{padding:9px 11px;border-radius:10px;border:1px solid var(--ds-line2);background:#fff;font-size:14.5px;font-weight:600;color:var(--ds-ink);font-family:var(--ds-font);width:100%}
.pr-form input:disabled,.pr-form select:disabled{background:var(--ds-surface2);color:var(--ds-ink3)}
.pr-toggle{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--ds-ink2);cursor:pointer;user-select:none}
.pr-toggle input{width:16px;height:16px;accent-color:var(--ds-primary)}
@media (max-width:640px){
  .pr-steps{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin-inline:-14px;padding-inline:14px}
  .pr-steps::-webkit-scrollbar{display:none}
  .pr-step{padding:6px 11px 6px 6px;font-size:12.5px}
  .pr-row{padding:11px 12px;gap:10px}
  .pr-gross{font-size:16px}
  .pr-flag-a{margin-inline-start:0;width:100%}
  .pr-total>div.big{grid-column:1/-1}
}
