/* ═══════════════ פרויקטים — רשימה, כרטיס, מפת ההחלטות, אודו (F2 · סבב 3) ═══════════════
   טוקנים מ-app.css בלבד: בלי חום, בלי גרדיאנטים, צבע רק כשיש לו משמעות.
   RTL: inline-start/end, לא left/right. */

/* ───────── רשימת הפרויקטים ───────── */
.seg-holder{display:inline-flex}
.proj-toolbar .more-filters{min-width:0;max-width:100%}
.proj-toolbar .mf-group{display:flex;align-items:center;gap:7px;min-width:0;max-width:100%}
.proj-toolbar .mf-lbl{font-size:12px;color:var(--muted);letter-spacing:.04em;flex-shrink:0;padding-top:2px}
/* חמש עמודות (סבב 6): פרויקט · שלב · יח"ד · הפעולה הבאה · פעילות אחרונה + ⋯ */
.proj-list table{table-layout:fixed}
.proj-list th:nth-child(1){width:31%}
.proj-list th:nth-child(2){width:16%}
.proj-list th:nth-child(3){width:16%}
.proj-list th:nth-child(4){width:22%}
.proj-list th:nth-child(5){width:15%}
.proj-list th:nth-child(6){width:44px}
.proj-list td{overflow:hidden;text-overflow:ellipsis}
.proj-list td.actions,.dm-table td.actions{overflow:visible}  /* תפריט ה-⋯ נפתח מחוץ לתא */
.proj-list td.title .cell-main{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;min-width:0}
/* שם הפרויקט מודגש (DESIGN-R6 §5: 15–16px/600–700) */
.proj-list td.title .cell-main a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;text-decoration:none;font-weight:700;font-size:15px;color:var(--ink)}
.proj-list td.title .cell-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.proj-list td.next{max-width:280px}
.proj-list td.next,.proj-list td:nth-child(5){white-space:nowrap}
/* כותרת בשורה, מועד בשורת משנה — בשורה אחת המועד בלע את כל רוחב העמודה
   והכותרת הצטמצמה לשתי אותיות. גובה השורה לא משתנה (עמודת השם ממילא דו-שורתית). */
.proj-list .next-line{display:block;min-width:0;max-width:100%}
.proj-list .next-line .t{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.proj-list .next-line .d{display:block;color:var(--muted);font-size:12.5px;white-space:nowrap;margin-top:1px}
.proj-list .next-line .d.overdue{color:var(--danger);font-weight:500}
.proj-list .no-next{color:var(--danger);font-size:13px}
.proj-list .stale-warn{color:var(--warn)}
.proj-list td.actions{width:44px;text-align:end}
.proj-list .pager{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-top:1px solid var(--rule-soft);font-size:13px;color:var(--muted)}
.proj-list .pager .row{gap:6px}
.empty.err{color:var(--danger)}

/* קו-מפתח בצבע השלב בקצה השורה + אווטאר הסוכן בשורת המטא (סבב 4 §3.1–3.2) */
.proj-list td.title.keyline{position:relative}
.proj-list td.title .cell-sub.row-agent{display:flex;align-items:center;gap:7px;min-width:0}
.proj-list td.title .cell-sub.row-agent .rs{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.proj-list td.title .avatar{flex-shrink:0}

/* צ'יפ שלב — ui/stageChip → .badge.st.st-<stage> (הצבעים ב-app.css) */
.proj-list .badge.st,.tbl .badge.st{font-size:12px;padding:3px 10px}

/* ───────── «סטטוס» ו«שלב בנייה» — שני פקדים בולטים בפס ה-hero (סבב 9, DESIGN-R9 §2) ─────────
   הצ'יפ הגדול (button.badge.st.stage-big) פותח את מודאל «שינוי סטטוס»; לידו select לשלב הבנייה
   באותו גודל, עם אייקון building לפני הטקסט דרך העוטף .hero-build. כל פקד נושא תווית קטנה
   מעליו (.hero-lbl, כמו .proj-facts .fact .k). בורר תת-הסטטוס שהיה כאן (‏select.status-in-stage) ירד. */
.hero-ctls{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}
.hero-ctl{display:flex;flex-direction:column;gap:3px;min-width:0}
.hero-lbl{font-size:11.5px;letter-spacing:.05em;color:var(--muted)}
button.badge.st.stage-big{
  cursor:pointer;font-size:15px;font-weight:600;padding:8px 15px;min-height:40px;border-radius:22px;
  transition:box-shadow .15s;letter-spacing:-.01em;
}
button.badge.st.stage-big::before{width:9px;height:9px;border-radius:3px}
button.badge.st.stage-big:hover{box-shadow:0 0 0 3px var(--surface-3)}
button.badge.st.stage-big svg{width:13px;height:13px;opacity:.5;transform:rotate(-90deg)}
.hero-build{position:relative;display:inline-flex;align-items:center;min-width:0}
.hero-build svg{position:absolute;inset-inline-start:12px;width:15px;height:15px;color:var(--muted);pointer-events:none}
.hero-build select{
  border:1px solid var(--rule);border-radius:22px;background:var(--surface);color:var(--ink);
  padding:8px 15px;padding-inline-start:34px;font-size:15px;font-weight:600;min-height:40px;max-width:220px;
}
.hero-build select:hover{border-color:var(--accent-3)}
.hero-build select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-2);outline:0}

/* מודאל «שינוי סטטוס» — משתמש ב-.stage-move/.stage-opt של pipeline.css;
   כאן רק הצביעה הסמנטית של שלבי הסגירה. */
.stage-move .stage-opt.lost{color:var(--danger)}
.stage-move .stage-opt.won{color:var(--success)}

/* ───────── כרטיס פרויקט — פס hero בגוון השלב (DESIGN-R8 §1) ─────────
   pageHead + שורת העובדות מתאחדים לפס אחד: רקע/גבול מעורבבים מ-‎--st‎ (צבע השלב) —
   כל פרויקט בגוון שלו — וקו-מפתח 5px. שלוש העובדות יושבות בתוך הפס עצמו, לא בכרטיס לבן נפרד. */
.proj-hero-band{
  position:relative;overflow:hidden;
  background:color-mix(in srgb, var(--st) 9%, var(--surface));
  border:1px solid color-mix(in srgb, var(--st) 28%, var(--rule));
  border-radius:var(--r);
  padding:16px 18px 14px;padding-inline-start:20px;
  margin-bottom:14px;
}
.proj-hero-band.keyline::before{top:0;bottom:0;width:5px}
.proj-hero-band .page-head{margin-bottom:14px}
.proj-sub{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.proj-sub>span::before,.proj-sub>a:not(:first-child)::before{content:"· ";color:var(--muted-2)}
.proj-sub>*:first-child::before{content:none}
.proj-sub .badge::before{content:none}
.proj-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
.proj-facts .fact{min-width:0;padding-inline-end:14px}
.proj-facts .fact .k{font-size:11.5px;letter-spacing:.05em;color:var(--muted);margin-bottom:2px}
.proj-facts .fact .v{font-size:17px;font-weight:500;line-height:1.25;overflow-wrap:anywhere}
.proj-facts .fact .v.brass{font-family:"IBM Plex Mono",ui-monospace,monospace;font-variant-numeric:tabular-nums}
/* עובדה דומיננטית אחת (DESIGN-R4 §3.3) — «יח"ד» גדולה מהשאר */
.proj-facts .fact .v.big{font-size:26px;font-weight:600;letter-spacing:-.02em}
.proj-facts .fact .v.bad{color:var(--danger)}
.proj-facts .fact .v.warn{color:var(--warn)}
.proj-facts .fact .v.good{color:var(--success)}
.proj-facts .fact .s{font-size:12px;color:var(--muted);margin-top:2px}
.proj-facts .fact .s.bad{color:var(--danger)}
.proj-facts .fact .s.warn{color:var(--warn)}

/* ───────── כותרות כרטיסים במסך הפרויקט — קו קצר מתחת לכותרת בלבד (DESIGN-R8 §5) ─────────
   אותו דפוס כמו .sect-h h2 ב-entities.css, במקום הקו האפור לרוחב כל הכותרת. שאר המסכים לא משתנים. */
.tab-panel .card-h{border-bottom:0}
.tab-panel .card-h h2{border-bottom:2px solid var(--accent);padding-bottom:7px}
.proj-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px;align-items:center}
.proj-actions .btn{min-height:40px}
.proj-actions .menu-wrap .icon-btn{border:1px solid var(--rule);background:var(--surface);width:40px;height:40px}
.tab-panel{display:flex;flex-direction:column;gap:16px}
.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
@media(max-width:1000px){.two-col{grid-template-columns:1fr}}

/* כרטיס «הפעולה הבאה» (DESIGN-R8 §3) — רקע --accent-2 עדין, תווית ב-600 בצבע הקו-מפתח */
.next-action{border-inline-start:3px solid var(--accent);background:var(--accent-2)}
.next-action.overdue,.next-action.none{border-inline-start-color:var(--danger);background:var(--danger-2)}
.next-action .na-lbl{font-size:11.5px;letter-spacing:.06em;color:var(--accent);font-weight:600;margin-bottom:4px}
.next-action.overdue .na-lbl,.next-action.none .na-lbl{color:var(--danger)}
.next-action .na-title{font-size:17px;font-weight:500;line-height:1.3}
.next-action .na-meta{display:flex;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-top:6px;align-items:center}
.next-action .na-meta .overdue{color:var(--danger);font-weight:500}
.next-action .na-meta a{text-decoration:none}
.next-action .na-meta a svg{width:13px;height:13px;vertical-align:-2px;margin-inline-end:2px}
.next-action .na-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.next-action.none .na-title{color:var(--danger);font-weight:500}
/* «סומן ב-… על ידי …: <סיבה>» — הסיבה שתועדה ל«אין פעולה הבאה», מתחת לאזהרה ולא במקומה */
.next-action .na-none-reason{display:flex;gap:6px;align-items:flex-start;font-size:13px;color:var(--ink-2);margin-top:8px}
.next-action .na-none-reason svg{width:14px;height:14px;flex-shrink:0;margin-top:2px;opacity:.6}
.snooze-menu{display:flex;gap:6px;flex-wrap:wrap}

/* פרטים — עריכה אינליין */
.card-b.sec{border-top:1px solid var(--rule-soft)}
.sec-lbl{font-size:11.5px;letter-spacing:.05em;color:var(--muted);margin-bottom:8px}
.edit-inline{display:inline-flex;align-items:center;gap:6px;min-height:28px;cursor:text;border-radius:6px;padding:2px 6px;margin:-2px -6px}
.edit-inline:hover{background:var(--surface-2)}
.edit-inline svg{width:12px;height:12px;opacity:0;color:var(--muted)}
.edit-inline:hover svg{opacity:1}
.inline-editor{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.inline-editor input,.inline-editor select,.inline-editor textarea{padding:6px 9px;border:1px solid var(--accent);border-radius:7px;font-size:14px;background:var(--surface);min-width:160px;max-width:100%}
.inline-editor textarea{width:100%;min-height:70px}
.notes-block{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;color:var(--ink-2);line-height:1.6}

/* רשימות בטאב הפעילות: משימות, מסעות, היסטוריה */
.mini-list{display:flex;flex-direction:column}
.mini-list .mi{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--rule-soft);font-size:13.5px;flex-wrap:wrap}
.mini-list .mi:last-child{border-bottom:0}
.mini-list .mi .t{flex:1;min-width:140px}
.mini-list .mi .t b{font-weight:500}
.mini-list .mi .t a{text-decoration:none}
.mini-list .mi .s{font-size:12px;color:var(--muted)}
.mini-list .mi .overdue{color:var(--danger)}
.mini-list .mi .acts{display:flex;gap:4px;align-items:center}
.history-list .hi{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;padding:7px 0;border-bottom:1px solid var(--rule-soft);font-size:13px;align-items:center}
.history-list .hi:last-child{border-bottom:0}
.history-list .hi .when{color:var(--muted);font-size:12px;white-space:nowrap}
.history-list .arrow{color:var(--muted);margin:0 5px}

/* ───────── מפת מקבלי ההחלטות ───────── */
.dm-warn{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--warn-2);color:var(--warn);border-bottom:1px solid var(--warn-3);font-size:13.5px}
.dm-warn svg{width:16px;height:16px;flex-shrink:0}
.dm-table td{vertical-align:middle}
/* שם איש הקשר מודגש (DESIGN-R6 §5) */
.dm-table td.title.name .cell-main{display:flex;align-items:center;gap:6px;min-width:0}
.dm-table td.title.name .cell-main a{text-decoration:none;font-weight:700;font-size:15px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.dm-table .cell-sub.note{font-style:italic}
.dm-table td.last-act .overdue{color:var(--danger);font-weight:500}
/* מקבל החלטה רדום (DESIGN-R8 §4) — רקע danger-2 עדין לתא «פעילות אחרונה» של השורה */
.dm-table tr.dm-stale td.last-act{background:var(--danger-2)}
.dm-table tr.role-decision_maker td.name .cell-main::before{content:"★";color:var(--accent);font-size:12px}
.dm-table td.actions{width:44px;text-align:end}
.dm-table select.role-select{border:1px solid var(--rule);border-radius:20px;padding:4px 26px 4px 10px;font-size:12.5px;background:var(--surface);max-width:170px;min-height:32px;-webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;background-size:12px}
/* צ'יפ תפקיד מלא, לא רק מסגרת (DESIGN-R8 §4) */
.dm-table select.role-select.decision_maker{border-color:var(--accent-3);color:var(--accent);font-weight:500;background:var(--accent-2)}
.dm-table select.role-select.influencer{border-color:var(--info-3);color:var(--info);background:var(--info-2)}
.scale{display:inline-flex;gap:5px;align-items:center}
.scale button{width:12px;height:12px;border-radius:50%;background:var(--tier-x);padding:0;flex-shrink:0;transition:background .12s,transform .1s}
/* השפעה: כל נקודה בגוון משלה, מבהיר (1) לכהה (5); הקריאה המספרית בגוון הרמה */
.scale button.on{background:var(--inf-5)}
.scale button:nth-child(1).on{background:var(--inf-1)} .scale button:nth-child(2).on{background:var(--inf-2)}
.scale button:nth-child(3).on{background:var(--inf-3)} .scale button:nth-child(4).on{background:var(--inf-4)}
.scale button:nth-child(5).on{background:var(--inf-5)}
.scale.rel button.on{background:var(--rel-5)}
.scale.rel button:nth-child(1).on{background:var(--rel-1)} .scale.rel button:nth-child(2).on{background:var(--rel-2)}
.scale.rel button:nth-child(3).on{background:var(--rel-3)} .scale.rel button:nth-child(4).on{background:var(--rel-4)}
.scale.rel button:nth-child(5).on{background:var(--rel-5)}
.scale button:hover:not(:disabled){transform:scale(1.3)}
.scale button:disabled{cursor:default;transform:none}
.scale .sv{font-size:12px;color:var(--muted);margin-inline-start:5px;font-variant-numeric:tabular-nums;min-width:10px}
.scale .sv:not(:empty){font-weight:600}
.scale.rel .sv.l1{color:var(--rel-3)} .scale.rel .sv.l2{color:var(--rel-3)} .scale.rel .sv.l3{color:var(--rel-4)} .scale.rel .sv.l4{color:var(--rel-4)} .scale.rel .sv.l5{color:var(--rel-5)}
.scale:not(.rel) .sv.l1{color:var(--inf-2)} .scale:not(.rel) .sv.l2{color:var(--inf-2)} .scale:not(.rel) .sv.l3{color:var(--inf-3)} .scale:not(.rel) .sv.l4{color:var(--inf-4)} .scale:not(.rel) .sv.l5{color:var(--inf-5)}
.scale.ro .sv{margin-inline-start:4px}
.dm-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid var(--rule-soft);font-size:12.5px;color:var(--muted);flex-wrap:wrap}
.dm-add-new{border:1px dashed var(--rule);border-radius:var(--r-sm);padding:12px;background:var(--surface-2)}
.dm-add-new .ttl{font-size:12.5px;color:var(--ink-2);font-weight:500;margin-bottom:8px}
.dm-add-picked{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--surface-2);border-radius:var(--r-sm);font-size:14px}
.dm-add-picked b{font-weight:500}
.dm-add-picked button{margin-inline-start:auto}

/* ───────── אודו — שני אגפים, גיליון אחד עם סקשנים (סבב 4: פחות מסגרות) ───────── */
.odoo-panel{display:flex;flex-direction:column;gap:16px}
/* מצב ריק «אודו לא מחובר» (DESIGN-R8 §8): אייקון 36px בעיגול accent-2/accent מעל התווית.
   icon() מ-ui.js מחזיר <svg> ישירות (בלי span עוטף) — העיגול מצויר על ה-svg עצמו
   (padding + box-sizing:border-box מכווצים את הציור הווקטורי פנימה, כמו ב-img). */
.odoo-blank>.card-h{justify-content:center;padding-bottom:6px}
.odoo-blank>.card-h h2{flex-direction:column;gap:8px;font-size:12.5px;font-weight:600;letter-spacing:.02em;color:var(--ink-2)}
.odoo-blank>.card-h h2 svg{width:36px;height:36px;padding:9px;box-sizing:border-box;border-radius:50%;background:var(--accent-2);color:var(--accent)}
.odoo-link{display:flex;flex-direction:column;gap:12px}
.odoo-empty{padding:24px 16px;text-align:center;color:var(--muted);font-size:13.5px;display:flex;flex-direction:column;gap:12px;align-items:center}
/* גיליון האודו: מסגרת אחת, שלושה סקשנים מופרדים בקו — לא ארבעה כרטיסים מקוננים */
.odoo-sheet{overflow:hidden}
.odoo-sheet>.odoo-divider{border-top:1px solid var(--rule-soft);padding:13px 16px;background:var(--surface-2)}
.odoo-sheet>.odoo-sec.meta{border-top:1px solid var(--rule-soft)}
.odoo-sec .sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:14px 16px 0}
.odoo-sec .sec-head h3{font-size:14.5px;font-weight:600;display:flex;align-items:center;gap:8px}
.odoo-sec .sec-body{padding:11px 16px 16px}
/* נקודת השלב של האגף: פס דק בקצה הכותרת במקום מסגרת צבועה סביב כל הכרטיס */
.odoo-sec.tenant .sec-head h3::before,.odoo-sec.contractor .sec-head h3::before{content:"";width:8px;height:8px;border-radius:2px;flex-shrink:0}
.odoo-sec.tenant .sec-head h3::before{background:var(--success)}
.odoo-sec.contractor .sec-head h3::before{background:var(--info)}
.odoo-sec.meta{background:var(--surface-2)}
.odoo-link-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 16px;font-size:13.5px}
.odoo-link-head b{font-weight:600}
.odoo-link-head .s{font-size:12px;color:var(--muted);margin-top:2px}
.odoo-link-head .lh-acts{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.odoo-link-head a{text-decoration:none}
.odoo-sec .types{font-size:11.5px;color:var(--muted);font-family:"IBM Plex Mono",monospace;white-space:nowrap}
.odoo-lbl{font-size:11.5px;letter-spacing:.05em;color:var(--muted);margin-bottom:6px}
.odoo-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px 14px;margin-bottom:12px}
.odoo-kpis .ok{display:flex;flex-direction:column;gap:1px;min-width:0}
.odoo-kpis .ok .k{font-size:11px;letter-spacing:.05em;color:var(--muted)}
.odoo-kpis .ok .v{font-size:19px;font-weight:500}
.odoo-kpis .ok .v.brass{color:var(--ink);font-weight:600}
.odoo-breakdown{display:flex;gap:6px;flex-wrap:wrap;font-size:12px}
.odoo-breakdown .badge{gap:5px}
.odoo-breakdown .badge .num{color:var(--ink);font-weight:600}
.odoo-divider{display:flex;align-items:center;gap:10px;font-size:12.5px;color:var(--muted);text-align:center}
.odoo-divider::before,.odoo-divider::after{content:"";flex:1;height:1px;background:var(--rule)}
.odoo-divider span{max-width:440px}
.odoo-sec.meta .dl{font-size:13px;gap:5px 14px}
.odoo-billing{margin:12px -16px -16px;padding:12px 16px;border-top:1px solid var(--rule-soft);background:var(--accent-2)}
.odoo-billing .side-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;flex-wrap:wrap}
.odoo-billing .side-h .odoo-lbl{margin-bottom:0}
.odoo-billing .dl{font-size:13px;gap:5px 14px}
.odoo-err{padding:12px 16px;color:var(--danger);font-size:13.5px;background:var(--danger-2);border-radius:var(--r-sm)}
.odoo-err[hidden]{display:none}
.odoo-err svg{width:15px;height:15px;vertical-align:-3px;margin-inline-end:4px}
.err-txt{color:var(--danger)}
.odoo-preview{margin-top:12px;background:var(--surface-2);border:1px solid var(--rule);border-radius:var(--r-sm);padding:12px}
.odoo-partner-list{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.odoo-partner-list[hidden]{display:none}
.odoo-partner-list .pl{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;background:var(--surface-2);border-radius:var(--r-sm);font-size:14px}
.odoo-partner-list .pl .mono{font-size:12px;color:var(--muted)}

/* ───────── דירות ומחירים · חוזה ומסמכים ───────── */
/* פס חלוקה מחיר מטרה / שוק חופשי (DESIGN-R8 §6) */
.units-bar-wrap{margin-top:10px}
.units-bar{display:flex;height:8px;border-radius:4px;overflow:hidden;background:var(--surface-3)}
.units-bar .seg{display:block}
.units-bar .seg.target{background:var(--accent)}
.units-bar .seg.free{background:var(--hot)}
.units-bar .seg.rest{background:var(--surface-3)}
.units-legend{display:flex;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:6px}
.units-legend .lg-item{display:inline-flex;align-items:center;gap:5px}
.units-legend .lg-item+.lg-item::before{content:"· ";margin-inline-end:5px;color:var(--muted-2)}
.units-legend .lg-item i{width:7px;height:7px;border-radius:50%;display:inline-block;font-style:normal}
.units-legend .lg-item.target i{background:var(--accent)}
.units-legend .lg-item.free i{background:var(--hot)}
/* «חיוב בגין» (DESIGN-R8 §6): רקע surface-2, תווית בצבע accent, ערכים במונו */
.units-card .card-b.sec{background:var(--surface-2)}
.units-card .sec-lbl{color:var(--accent)}
/* מצב ריק «חוזה ומסמכים» (DESIGN-R8 §8): אייקון 36px בעיגול accent-2/accent מעל הטקסט */
.files-empty{display:flex;flex-direction:column;align-items:center;gap:10px}
.empty-ico{width:36px;height:36px;border-radius:50%;background:var(--accent-2);color:var(--accent);display:flex;align-items:center;justify-content:center}
.units-warn{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--warn);background:var(--warn-2);border:1px solid var(--warn-3);border-radius:var(--r-sm);padding:8px 12px}
.units-warn svg{width:15px;height:15px;flex-shrink:0}
.proj-form .units-warn{grid-column:1/-1}
.proj-form .form-sep{font-size:12px;letter-spacing:.08em;color:var(--accent);font-weight:500;padding-top:6px;border-top:1px solid var(--rule-soft);margin-top:4px}
.files-form{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1.4fr) auto;gap:10px;align-items:end}
/* בורר קובץ בעברית — ה-input המקורי מוסתר (הטקסט שלו נשלט ע"י הדפדפן ואינו ניתן לתרגום) */
.file-pick{position:relative;display:flex;align-items:center;gap:9px;min-width:0;cursor:pointer;min-height:38px}
/* הסלקטור מפורט כמו .field input שב-app.css (ומאוחר ממנו) — אחרת width:100% גובר וגורם לגלישה אופקית */
.field .file-pick input.file-native{position:absolute;inset-inline-start:0;top:0;width:1px;max-width:1px;height:1px;min-height:0;padding:0;margin:0;opacity:0;border:0;overflow:hidden;clip:rect(0 0 0 0)}
.file-pick .btn{flex-shrink:0;pointer-events:none}
.file-pick:hover .btn{border-color:var(--accent-3);color:var(--accent);background:var(--accent-2)}
.file-pick input.file-native:focus-visible ~ .btn{outline:2px solid var(--accent);outline-offset:2px}
.file-pick .file-name{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.files-form .field.act label{visibility:hidden}
.files-form .field.act .btn{width:100%;justify-content:center}
.files-list{display:flex;flex-direction:column}
.files-list .fi{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--rule-soft)}
.files-list .fi:last-child{border-bottom:0}
.files-list .fi-main{flex:1;min-width:0}
.files-list .fi-name{font-size:14px;font-weight:500;display:flex;align-items:center;gap:6px;flex-wrap:wrap;overflow-wrap:anywhere}
.files-list .fi-name a{text-decoration:none;color:var(--accent)}
.files-list .fi-name a:hover{text-decoration:underline}
.files-list .fi-meta{font-size:12px;color:var(--muted);margin-top:2px}
.files-list .fi-note{color:var(--ink-2);margin-top:2px;white-space:pre-wrap;overflow-wrap:anywhere}
.files-list .fi-acts{display:inline-flex;gap:4px;flex-shrink:0}
.files-list .fi-acts a.icon-btn{text-decoration:none}

/* ───────── מודאל פרויקט (טופס) ───────── */
.proj-form .picker-wrap .search{min-width:0}
.proj-form .dup-warn{grid-column:1/-1;font-size:13px;color:var(--warn);background:var(--warn-2);border:1px solid var(--warn-3);border-radius:var(--r-sm);padding:8px 12px}
.proj-form .chips .chip{font-size:12.5px;padding:5px 11px}
.proj-form .date-row input{flex:1;min-width:0}
.proj-form .date-row input[type=time]{flex:0 0 auto;min-width:110px}
.date-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.date-chips .chip{font-size:12.5px;padding:5px 11px}
.company-rows{display:flex;flex-direction:column;gap:8px}
.company-rows .cr{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:6px;align-items:center}
.company-rows .cr select{padding:8px 10px;border:1px solid var(--rule);border-radius:var(--r-sm);background:var(--surface);font-size:13.5px}

/* ───────── מובייל (375px) ───────── */
@media(max-width:900px){
  .proj-hero-band{padding:14px;padding-inline-start:16px}
  /* שלוש העובדות בשורה אחת (DESIGN-R8 §9) — יח"ד גדולה, שתי הקטנות 15px */
  .proj-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}
  .proj-facts .fact{padding-inline-end:6px}
  .proj-facts .fact .v{font-size:15px}
  .proj-facts .fact .v.big{font-size:21px}
  .proj-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 44px;gap:6px}
  .proj-actions .btn{justify-content:center;min-height:44px;padding-inline:8px}
  .proj-actions .menu-wrap{justify-self:end}
  .proj-actions .menu-wrap .icon-btn{width:44px;height:44px}
  .next-action .na-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .next-action .na-actions .btn{justify-content:center;min-height:44px;padding-inline:8px}
  .stage-move .stage-opt{min-height:48px}
  /* ערך ריק («—») הצטמצם ל-42px — יעד המגע חייב 44 גם ברוחב */
  .edit-inline{min-height:44px;min-width:44px;padding:6px 8px;margin:-6px -8px}
  .edit-inline svg{opacity:1}
  .inline-editor input,.inline-editor select{min-height:44px;font-size:16px}
  .inline-editor .btn.sm{min-height:44px}
  .odoo-link-head .btn{min-height:44px}
  .proj-tabs button{min-height:44px}
  button.badge.st.stage-big{min-height:44px}
  .hero-ctls{width:100%}
  .hero-ctl{flex:1 1 150px;min-width:0}
  .hero-build{width:100%}
  .hero-build select{min-height:44px;font-size:16px;max-width:none;flex:1;min-width:0}
  .mini-list .mi .acts .btn.sm{min-height:44px}   /* «בוצע» במשימות הפתוחות היה 40px */
  .proj-toolbar .mf-group select{flex:1;min-width:0;min-height:44px}
  .proj-toolbar .search input{min-height:44px}
  .proj-list .tbl.cards td.title .cell-main a{display:inline-flex;align-items:center;min-height:44px}
  .dm-table.cards td.title.name .cell-main a{display:inline-flex;align-items:center;min-height:44px}
}
@media(max-width:640px){
  /* מתחת ל-640: 2+1 (DESIGN-R8 §9) — «יח"ד» ברוחב מלא, שתי העובדות האחרות בשורה זוגית */
  .proj-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .proj-facts .fact.dom{grid-column:1/-1}
  .seg-holder{width:100%}
  .seg-holder .seg{width:100%;overflow-x:auto;scrollbar-width:none}
  .seg-holder .seg::-webkit-scrollbar{display:none}
  .seg-holder .seg button{flex:1 0 auto;min-height:44px;white-space:nowrap}
  /* בתצוגת הכרטיסים app.css תופס את ‎td::before‎ לתווית (data-label) ומאפס אותו בתא הכותרת,
     ולכן קו-המפתח של ‎.keyline‎ לא מצויר שם — מציירים אותו כגבול באותו צבע שלב. */
  .proj-list .tbl.cards td.title.keyline{padding-inline-start:11px;border-inline-start:3px solid var(--st,var(--rule))}
  .proj-list td.next{max-width:none}
  .proj-list .next-line{max-width:100%}
  .proj-list .next-line .t{white-space:normal}
  .proj-list td.actions,.dm-table td.actions{width:auto}
  .proj-list .pager{flex-direction:column;align-items:stretch}
  .proj-list .pager .row{justify-content:space-between}
  .proj-list .pager .btn{flex:1;justify-content:center}
  /* מפת ההחלטות ככרטיסים: סולמות 1–5 ביעד מגע 40px, בורר התפקיד ברוחב מלא */
  .dm-table.cards td.scale-cell .scale{gap:0}
  /* 16px ולא 13px — מתחת ל-16 ה-iOS מזגזג לזום בכל פתיחת בורר */
  .dm-table.cards select.role-select{max-width:none;min-height:44px;width:100%;font-size:16px}
  .dm-table.cards td.actions{justify-content:flex-end;padding-top:8px}
  .dm-table.cards .menu-wrap .icon-btn{width:44px;height:44px;border:1px solid var(--rule)}
  .dm-foot{flex-direction:column;align-items:flex-start;gap:4px}
  .odoo-divider span{max-width:none}
  .odoo-link-head{flex-direction:column;align-items:stretch}
  .odoo-link-head .lh-acts .btn{flex:1;justify-content:center;min-height:44px}
  .odoo-kpis{grid-template-columns:repeat(2,1fr)}
  .history-list .hi{grid-template-columns:1fr}
  .files-form{grid-template-columns:1fr}
  .files-form .field.act label{display:none}
  .files-form .btn,.files-form .field select,.files-form .field input:not(.file-native){min-height:44px}
  .file-pick{min-height:44px}
  .files-list .fi{flex-wrap:wrap}
  .files-list .fi-acts{width:100%;justify-content:flex-end}
  .files-list .fi-acts .icon-btn{width:44px;height:44px}
  .odoo-billing .side-h .btn{width:100%;justify-content:center;min-height:44px}
  .company-rows .cr{grid-template-columns:1fr}
  .company-rows .cr .icon-btn{justify-self:end}
}

/* ── ליטוש מובייל (סבב 3): רצפת טקסט 13px ── */
@media(max-width:900px){
  .proj-toolbar .mf-lbl,.proj-list .next-line .d,
  .proj-list .badge.st,.tbl .badge.st,.stage-move .stage-opt .p,.proj-facts .fact .k,
  .proj-facts .fact .s,.next-action .na-lbl,.sec-lbl,.mini-list .mi .s,.history-list .hi .when,
    .dm-foot,.dm-add-new .ttl,.odoo-link-head .s,
  .odoo-lbl,.odoo-kpis .ok .k,.odoo-breakdown,.odoo-divider,.odoo-partner-list .pl .mono,
  .proj-form .form-sep,.files-list .fi-meta,.proj-form .chips .chip,.date-chips .chip,
  .dm-table tr.role-decision_maker td.name .cell-main::before,.units-legend,.history-list .badge.st{font-size:13px}
  /* סולמות 1–5: הנקודה נשארת 18px, אבל הכפתור סביבה הוא יעד מגע 44px */
  .scale{gap:0}
  .scale button{width:44px;height:44px;border-radius:0;background:transparent;display:grid;place-items:center}
  .scale button::before{content:"";width:18px;height:18px;border-radius:50%;background:var(--tier-x)}
  .scale button.on{background:transparent}
  .scale button.on::before{background:var(--inf-5)}
  .scale button:nth-child(1).on::before{background:var(--inf-1)} .scale button:nth-child(2).on::before{background:var(--inf-2)}
  .scale button:nth-child(3).on::before{background:var(--inf-3)} .scale button:nth-child(4).on::before{background:var(--inf-4)}
  .scale button:nth-child(5).on::before{background:var(--inf-5)}
  .scale.rel button.on::before{background:var(--rel-5)}
  .scale.rel button:nth-child(1).on::before{background:var(--rel-1)} .scale.rel button:nth-child(2).on::before{background:var(--rel-2)}
  .scale.rel button:nth-child(3).on::before{background:var(--rel-3)} .scale.rel button:nth-child(4).on::before{background:var(--rel-4)}
  .scale.rel button:nth-child(5).on::before{background:var(--rel-5)}
  .scale button:hover:not(:disabled){transform:none}
  .scale button:hover:not(:disabled)::before{transform:scale(1.15)}
  .scale .sv{font-size:13px;margin-inline-start:8px}
}

/* ── ליטוש מובייל: קלט הקובץ ──
   app.css קובע ‎.field input:not([type=checkbox]):not([type=radio]){width:100%}‎ בסגוליות
   (0,3,1) — גבוהה מ-‎.file-pick .file-native‎ — ולכן הקלט המוסתר קיבל 100%. בלי
   position:relative על העוטף הוא נצמד לחלון (375px) ויצר גלילה אופקית של 29px בטאב «מסמכים». */
.file-pick{position:relative}
.field .file-pick input.file-native{width:1px;max-width:1px;height:1px;min-height:0;padding:0;border:0}

/* ═══ ביקורת נייד (סבב 4) — חיוג ישיר במפת מקבלי ההחלטות ═══
   בדסקטופ השורה נשארת «תפריט ⋯ אחד» (DESIGN-R3 §3) ולכן האייקונים מוסתרים;
   בנייד, שבו הפעולה הראשית היא להתקשר, הם מופיעים ליד ה-⋯ ביעד מגע 44px. */
.dm-quick{display:none}
@media(max-width:900px){
  .dm-quick{display:inline-flex;align-items:center;gap:2px;vertical-align:middle;margin-inline-end:4px}
  .dm-table td.actions .icon-link{min-width:44px;min-height:44px;padding:10px;margin-block:0}
}
