/* פרופיל "הישות היא האדם" (מכון יופי, רפואה משלימה): מסתיר שדות של כלב ומודולים שכבויים. מופעל רק כש-body.profile-person, כלומר אף לקוח קיים לא מושפע.
   מתג מודול: body.off-<שם> (reports, training, diagnosis, boarding). */
body.profile-person .pp-hide { display: none !important; }
body.profile-person .tabbar [data-s="reports"],
body.off-reports .tabbar [data-s="reports"] { display: none !important; }
body.off-training .tabbar [data-s="training"],
body.off-training .tabbar [data-s="trainings"],
body.off-training .qa-main { display: none !important; }
body.off-reports .kpi[onclick*="reports"] { display: none !important; }
body.off-training .kpis { grid-template-columns: repeat(2, 1fr); }

/* תמונות לפני / אחרי בכרטיס הלקוח/ה */
.cph .cph-add { display: flex; gap: 14px; }
.cph .cph-add a { cursor: pointer; }
.cph .cph-day { margin: 8px 0 12px; }
.cph .cph-day > small { display: block; color: #6b7280; margin-bottom: 6px; }
.cph .cph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cph figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: #f3f4f6; }
.cph figure img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: zoom-in; }
.cph figcaption { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; font-size: 13px; }
.cph figcaption button { border: 0; background: transparent; font-size: 20px; line-height: 1; color: #9ca3af; cursor: pointer; padding: 4px 6px; }
.cph .cph-before { color: #8a4b6b; }
.cph .cph-after { color: #0f766e; }

/* תמונות אנשים כבויות (config.peoplePhotos=false): בלי העלאה, החלפה או הסרה בכרטיס ובטופס הרישום הפנימי */
body.no-people-photos [onclick*="changeProfilePhoto"],
body.no-people-photos [onclick*="removeProfilePhoto"],
body.no-people-photos .photo-up { display: none !important; }
/* חיפוש לקוחה חוזרת: הירוק הבהיר נקבע inline ב-index.html, ולכן כאן !important */
body.profile-person #screen-register > .card:first-child { background: #fff !important; border-color: var(--line) !important; }
/* מסך בית של קליניקה: שלושה מדדים בשורה אחת */
body.profile-person .kpis.kpis-3 { grid-template-columns: repeat(3, 1fr); }
body.profile-person .kpis.kpis-3 .kpi span { font-size: 12px; }
/* בית הקליניקה: שלוש קוביות ומתחת לכל אחת כפתור הפעולה שלה */
body.profile-person .kpi-acts.kpi-acts-3 { grid-template-columns: repeat(3, 1fr); }
body.profile-person .kpi-acts-3 .qa { padding: 10px 4px; font-size: 13px; gap: 4px; }
body.profile-person .kpis-3 .kpi small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
/* כרטיס לקוח/ה: אחרי שאבחון ואימון מוסתרים נשאר כפתור "טפסים" אחד, והוא במרכז ולא בחצי הימני של השורה */
body.profile-person .dg-pair { display: flex; justify-content: center; }
body.profile-person .dg-pair > .btn-s:not(.pp-hide) { flex: 0 1 min(100%, 420px); }

/* מסך הבית של מערכת ישות (כלבנות טיפולית): אותן קוביות כמו בקליניקה, בלי להפעיל את מצב person */
body.mode-entity .kpis.kpis-3 { grid-template-columns: repeat(3, 1fr); }
body.mode-entity .kpis.kpis-3 .kpi span { font-size: 12px; }
body.mode-entity .kpi-acts.kpi-acts-3 { grid-template-columns: repeat(3, 1fr); }
body.mode-entity .kpi-acts-3 .qa { padding: 10px 4px; font-size: 13px; gap: 4px; }
body.mode-entity .kpis-3 .kpi small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
