/* modal_design.css — שכבת הניראות המשותפת של המודלים.

   26.8.2026: המודלים שנטענים במסך המאגר (main/persons/view.php) הועברו לשפת
   העיצוב שהדף עצמו קיבל באותו יום — טורקיז #0e6f63, משטח #f4f8f7,
   מסגרת #e2e9e7, רדיוס 10-12px, פקדים בגובה 40px.

   הקובץ הזה הוא הבית המשותף של הטוקנים. persons_view.css ו-add_person.css
   מחזיקים כל אחד עותק משלו מהזמן שבו הם היו היחידים שהשתמשו בהם; הערכים
   זהים בשלושתם. כל דבר חדש נכתב כאן ולא בעותק רביעי.

   שלושה קבצי בוטסטראפ נטענים בכל דף מאומת ו-4.5.2 אחרון שבהם. לכן:
   - כל מחלקה חדשה כאן בקידומת pv- / pvm- ואינה נשענת על מחלקות שירות שלו.
   - הכללים שכן נוגעים במחלקות של בוטסטראפ (.modal-content, .modal-body,
     .alert) ממוסגרים תחת .pvm-modal, כלומר בספציפיות גבוהה משלו ובלי לדלוף
     למודלים אחרים באותו דף.
   - text-align: right נכתב במפורש, כי reboot של 4.5.2 מציב body{text-align:left}.

   מי טוען אותו:
   - basic_settings/import.php — בכל דף מאומת, אחרי כל גיליונות בוטסטראפ.
     משם מגיעים גם עיצוב דיאלוגי SweetAlert2 ומודל ההרשאות, ששניהם נבנים
     ב-JS ויכולים לצוץ בכל דף.
   - modals/add_idea.php, modals/add_engaged.php,
     modals/notifications/notifications.php — כל אחד פולט <link> משלו, כדי
     שיישאר עומד בפני עצמו גם בדפים שאינם טוענים את import.php (למשל
     modals/add_idea_popup.php). הדפדפן מוריד את הקובץ פעם אחת.

   מה שנטען גלובלית חייב להיות ממוסגר. כללי הפופאפ ממוסגרים תחת
   .notification-container, כי modals/idea/card_idea.php משתמש במחלקה
   .notification-icon למשהו אחר לגמרי. */

:root {
    --pv-accent:      #0e6f63;
    --pv-accent-dark: #0a544b;
    --pv-accent-soft: #e8f2f0;
    --pv-ink:         #16211f;
    --pv-ink-2:       #2c3b38;
    --pv-muted:       #5c6b67;
    --pv-surface:     #ffffff;
    --pv-surface-2:   #f4f8f7;
    --pv-line:        #e2e9e7;
    --pv-line-2:      #edf2f1;
    --pv-line-3:      #cbd8d4;
    --pv-danger:      #a8322a;
    --pv-danger-soft: #fdeaea;
    --pv-warn:        #8a5a12;
    --pv-warn-soft:   #fdf3e2;

    /* שני צבעי הזיהוי של העמודות. מכוונים לצד המושתק של הגלגל כדי לשבת
       ליד הטורקיז — הם מחליפים את text-primary/text-danger של בוטסטראפ,
       שהיו כחול וארגמן רוויים. הזיהוי לפי צבע נשמר, הרעש לא. */
    --pv-man:         #1f6f8f;
    --pv-man-soft:    #e7f1f5;
    --pv-woman:       #9f4a6b;
    --pv-woman-soft:  #f7ebef;
}

/* =====================================================================
   שלד המודל
   ===================================================================== */

.pvm-modal { direction: rtl; text-align: right; }

/* הגובה נמדד באחוזים מתוך .modal (שהוא fixed בגובה מסך מלא) ולא ב-vh,
   כי body מקבל zoom:80% מ-basic_settings/import.php ויחידות vh נמדדות
   לפני ההקטנה — מודל של 90vh היה מצטייר בפועל כ-72% מהמסך. */
.pvm-modal .modal-dialog {
    display: flex;
    align-items: center;
    width: auto;
    max-width: 1040px;
    min-height: calc(100% - 3rem);
    max-height: calc(100% - 3rem);
    margin: 1.5rem auto;
    padding: 0 12px;
}
.pvm-modal .modal-dialog-narrow { max-width: 760px; }

.pvm-modal .modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 100%;
    background: var(--pv-surface);
    border: 1px solid var(--pv-line);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16,33,31,.05), 0 26px 60px -32px rgba(16,33,31,.6);
    overflow: hidden;
    color: var(--pv-ink-2);
    text-align: right;
}

/* ---------- הכותרת ---------- */
.pvm-modal .modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    padding: 14px 18px;
    background: var(--pv-surface-2);
    border-bottom: 1px solid var(--pv-line);
    border-radius: 0;
}

.pvm-head-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    background: var(--pv-accent-soft);
    border-radius: 11px;
    color: var(--pv-accent);
    font-size: 1.15rem;
}

/* גוון האייקון לפי הפעולה, באותם שני צבעים שנושאים הכפתורים בסרגל
   של מסך המאגר (.pv-ico-idea / .pv-ico-engaged). מי שלחץ על כפתור כתום
   רואה כותרת כתומה — זו החוליה בין הכפתור למודל שנפתח. */
.pvm-head-ico-idea    { background: #fdf2e6; color: #b9721d; }
.pvm-head-ico-engaged { background: #fdeef1; color: #c33f53; }

.pvm-head-txt { flex: 1 1 auto; min-width: 0; }

.pvm-modal .modal-title,
.pvm-title {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pv-ink);
}
.pvm-modal .modal-title strong,
.pvm-title strong { color: var(--pv-accent); font-weight: 700; }

.pvm-sub {
    margin-top: 2px;
    font-size: .84rem;
    line-height: 1.35;
    color: var(--pv-muted);
}

/* כפתור הסגירה. מחליף את .btn-close של בוטסטראפ 5, שנצבע בקובץ 4.5.2
   שנטען אחריו ומצטייר שם כריבוע ריק. */
.pvm-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--pv-muted);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pvm-close:hover { background: var(--pv-surface); border-color: var(--pv-line); color: var(--pv-ink); }
.pvm-close:focus-visible { outline: 2px solid var(--pv-accent); outline-offset: 2px; }

/* ---------- הגוף ---------- */
.pvm-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px;
    background: var(--pv-surface);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--pv-line-3) transparent;
}
.pvm-modal .modal-body::-webkit-scrollbar { width: 9px; }
.pvm-modal .modal-body::-webkit-scrollbar-track { background: transparent; }
.pvm-modal .modal-body::-webkit-scrollbar-thumb {
    background: var(--pv-line-3);
    border: 2px solid var(--pv-surface);
    border-radius: 9px;
}
.pvm-modal .modal-body::-webkit-scrollbar-thumb:hover { background: #b3c4bf; }

/* ---------- התחתית ---------- */
.pvm-modal .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex: 0 0 auto;
    padding: 12px 18px;
    background: var(--pv-surface-2);
    border-top: 1px solid var(--pv-line);
}
.pvm-footer-note {
    margin-inline-start: auto;
    font-size: .82rem;
    color: var(--pv-muted);
}

/* =====================================================================
   כפתורים
   ===================================================================== */

.pvm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    background: var(--pv-surface);
    border: 1px solid var(--pv-line);
    border-radius: 10px;
    color: var(--pv-ink-2);
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pvm-btn:hover { background: var(--pv-surface-2); border-color: var(--pv-line-3); color: var(--pv-ink); text-decoration: none; }
.pvm-btn:focus-visible { outline: 2px solid var(--pv-accent); outline-offset: 2px; }
.pvm-btn[disabled], .pvm-btn:disabled { opacity: .6; cursor: default; }
.pvm-btn .bi, .pvm-btn .fas { font-size: 1rem; line-height: 1; }

.pvm-btn-primary { background: var(--pv-accent); border-color: var(--pv-accent); color: #fff; }
.pvm-btn-primary:hover { background: var(--pv-accent-dark); border-color: var(--pv-accent-dark); color: #fff; }
.pvm-btn-primary:focus-visible { outline-offset: 3px; }

.pvm-btn-sm { height: 32px; padding: 0 11px; border-radius: 9px; font-size: .83rem; gap: 5px; }
.pvm-btn-sm .bi { font-size: .92rem; }

/* =====================================================================
   מתג "שידוך פעיל / רק רעיון"
   קודם: .custom-switch של בוטסטראפ 4, מוטבע בין הכותרת לגוף המודל —
   מחוץ לשניהם — עם מדרג אדום/ירוק. עכשיו: פקד יחיד בשורת הכותרת.
   ===================================================================== */

.pvm-switch {
    position: relative;   /* מסגרת ההצבה של ה-input המוסתר */
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
    height: 40px;
    padding: 0 12px;
    background: var(--pv-surface);
    border: 1px solid var(--pv-line);
    border-radius: 10px;
}

.pvm-switch-input {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.pvm-switch-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--pv-ink-2);
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

/* המסילה והידית מצוירות על ::before/::after של התווית, ולכן לחיצה על
   הטקסט מחליפה מצב בלי שורת JS. */
.pvm-switch-label::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 40px;
    height: 22px;
    background: var(--pv-line-3);
    border-radius: 22px;
    transition: background-color .18s ease;
}
.pvm-switch-label::after {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-start: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(16,33,31,.35);
    transform: translateY(-50%);
    transition: transform .18s ease;
}
.pvm-switch-input:checked ~ .pvm-switch-label::before { background: var(--pv-accent); }
/* מסלול הידית: 40 (מסילה) - 16 (ידית) - 3+3 (ריפוד) = 18px, שמאלה ב-RTL */
.pvm-switch-input:checked ~ .pvm-switch-label::after { transform: translateY(-50%) translateX(-18px); }
.pvm-switch-input:focus-visible ~ .pvm-switch-label::before { outline: 2px solid var(--pv-accent); outline-offset: 2px; }

.pvm-switch-txt { color: var(--pv-muted); }
.pvm-switch-input:checked ~ .pvm-switch-label .pvm-switch-txt { color: var(--pv-accent-dark); }

/* =====================================================================
   הודעות
   ===================================================================== */

.pvm-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 16px;
    padding: 11px 13px;
    background: var(--pv-surface-2);
    border: 1px solid var(--pv-line);
    border-radius: 10px;
    font-size: .87rem;
    line-height: 1.5;
    color: var(--pv-ink-2);
}
.pvm-note .bi { flex: 0 0 auto; margin-top: 1px; color: var(--pv-accent); font-size: 1rem; }
.pvm-note strong { color: var(--pv-ink); }

/* המחלקות של בוטסטראפ נשארות בסימון כי PHP ו-JS מחפשים אותן
   (למשל fadeOut על .alert-success אחרי שמירה), רק המראה מוחלף. */
.pvm-modal .alert {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid var(--pv-line);
    background: var(--pv-surface-2);
    color: var(--pv-ink-2);
    font-size: .89rem;
    line-height: 1.5;
    text-align: right;
}
.pvm-modal .alert .bi, .pvm-modal .alert .fas { flex: 0 0 auto; font-size: 1rem; }
.pvm-modal .alert-success { background: var(--pv-accent-soft); border-color: #c9e0db; color: #0c554b; }
.pvm-modal .alert-success .bi, .pvm-modal .alert-success .fas { color: var(--pv-accent); }
.pvm-modal .alert-danger  { background: var(--pv-danger-soft); border-color: #f3cfcc; color: var(--pv-danger); }
.pvm-modal .alert-danger .bi, .pvm-modal .alert-danger .fas { color: var(--pv-danger); }
.pvm-modal .alert-warning { background: var(--pv-warn-soft); border-color: #efdcbb; color: var(--pv-warn); }
.pvm-modal .alert-info    { background: var(--pv-surface-2); border-color: var(--pv-line); color: var(--pv-ink-2); }

/* =====================================================================
   מצב טעינה
   ===================================================================== */

.pvm-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 46px 20px;
    text-align: center;
}
.pvm-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid var(--pv-line);
    border-top-color: var(--pv-accent);
    border-radius: 50%;
    animation: pvm-spin .8s linear infinite;
}
.pvm-loading-txt { font-size: .95rem; font-weight: 600; color: var(--pv-ink-2); }
@keyframes pvm-spin { to { transform: rotate(360deg); } }

/* =====================================================================
   שתי עמודות הבחירה
   קודם: .row + .col-md-6 של בוטסטראפ, עם מחלקה שנייה שמוחלפת ב-PHP
   כשצד אחד נבחר מראש. עכשיו: רשת משלנו, והמקרה של צד יחיד הוא מחלקה
   אחת על המכל במקום החלפת מחלקות עמודה.
   ===================================================================== */

.pvm-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;   /* שני הכרטיסים בגובה זהה גם כשרק באחד נבחר מועמד */
}
.pvm-cols-one { grid-template-columns: minmax(0, 620px); justify-content: center; }
@media (max-width: 860px) { .pvm-cols { grid-template-columns: minmax(0, 1fr); } }

/* עמודת flex עם gap ולא margin על השדות: כרטיס הפרטים בתחתית העמודה
   מתחיל כ-display:none, ו-gap אינו נספר בין פריטים שאינם מוצגים —
   כלומר אין רווח תלוי באוויר כל עוד לא נבחר מועמד. */
.pvm-col {
    display: flex;
    flex-direction: column;
    gap: 13px;
    background: var(--pv-surface);
    border: 1px solid var(--pv-line);
    border-radius: 12px;
    padding: 14px;
}

.pvm-col-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--pv-line-2);
    font-size: .98rem;
    font-weight: 700;
    color: var(--pv-ink);
}
.pvm-col-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 1rem;
}
.pvm-col-man   .pvm-col-ico { background: var(--pv-man-soft);   color: var(--pv-man); }
.pvm-col-woman .pvm-col-ico { background: var(--pv-woman-soft); color: var(--pv-woman); }

/* =====================================================================
   שדות
   ===================================================================== */

.pvm-field { margin-bottom: 0; }

.pvm-label {
    display: block;
    margin-bottom: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--pv-ink-2);
    text-align: right;
    float: none;
}

.pvm-input {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background-color: var(--pv-surface);
    border: 1px solid var(--pv-line);
    border-radius: 10px;
    color: var(--pv-ink-2);
    font-family: inherit;
    font-size: .9rem;
    line-height: 1;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pvm-input:hover { border-color: var(--pv-line-3); }
.pvm-input:focus {
    outline: none;
    border-color: var(--pv-accent);
    box-shadow: 0 0 0 3px rgba(14,111,99,.13);
}
.pvm-input::placeholder { color: var(--pv-muted); opacity: .65; }
.pvm-input[readonly] { background-color: var(--pv-surface-2); color: var(--pv-muted); cursor: default; }

/* אותו פקד כשהוא <textarea>: הגובה הקבוע של 40px היה חותך אותו לשורה
   אחת, וריפוד אופקי בלבד היה מצמיד את הטקסט לקצה העליון. */
textarea.pvm-input {
    height: auto;
    min-height: 92px;
    padding: 10px 12px;
    line-height: 1.5;
    resize: vertical;
}

.pvm-hint {
    display: block;
    margin-top: 5px;
    font-size: .79rem;
    color: var(--pv-muted);
    text-align: right;
}
.pvm-hint-ok { color: var(--pv-accent); font-weight: 600; }

/* ===== צד לא מזוהה =====
   כשהחיפוש לא מצא את המועמד, העמודה מציעה להזין אותו כטקסט חופשי.
   הקופסה מחליפה את רשימת הבחירה ולא מתווספת אליה, כדי שלא יהיו
   שני מקורות סותרים לאותו צד. */
.pvm-free-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: none;
    color: var(--pv-accent);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}
.pvm-free-open:hover { text-decoration: underline; }

.pvm-free-box {
    margin-top: 10px;
    padding: 12px;
    background-color: var(--pv-surface-2);
    border: 1px dashed var(--pv-line-3);
    border-radius: 12px;
}
.pvm-free-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: .84rem;
    font-weight: 700;
    color: var(--pv-ink-2);
}
.pvm-free-cancel {
    padding: 0;
    background: none;
    border: none;
    color: var(--pv-muted);
    font-family: inherit;
    font-size: .78rem;
    cursor: pointer;
}
.pvm-free-cancel:hover { color: var(--pv-ink-2); }
.pvm-free-box .pvm-input { margin-bottom: 8px; }
.pvm-free-box textarea.pvm-input { min-height: 62px; }

/* רשימת התוצאות. זהו <select size="5"> ולא רשימה שנבנית ב-JS, ולכן
   המראה שאפשר לתת לו מוגבל לגובה, למסגרת ולריפוד של האפשרויות. */
.pvm-list {
    display: block;
    width: 100%;
    min-height: 168px;
    padding: 5px;
    background-color: var(--pv-surface);
    border: 1px solid var(--pv-line);
    border-radius: 10px;
    color: var(--pv-ink-2);
    font-family: inherit;
    font-size: .87rem;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pvm-list:hover { border-color: var(--pv-line-3); }
.pvm-list:focus {
    outline: none;
    border-color: var(--pv-accent);
    box-shadow: 0 0 0 3px rgba(14,111,99,.13);
}
.pvm-list option {
    padding: 7px 9px;
    border-radius: 7px;
    text-align: right;
}
.pvm-list option:checked { background: var(--pv-accent) linear-gradient(0deg, var(--pv-accent), var(--pv-accent)); color: #fff; }
.pvm-list optgroup { color: var(--pv-muted); font-size: .8rem; font-style: normal; font-weight: 700; }
.pvm-list:disabled { background-color: var(--pv-surface-2); color: var(--pv-muted); }

/* =====================================================================
   כרטיס הפרטים שנפתח מתחת לבחירה (נבנה ב-JS)
   ===================================================================== */

.pvm-person {
    padding: 12px;
    background: var(--pv-surface-2);
    border: 1px solid var(--pv-line);
    border-radius: 10px;
    direction: rtl;
    text-align: right;
}
.pvm-person-name {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    font-size: .94rem;
    font-weight: 700;
    color: var(--pv-ink);
}
.pvm-person-name .bi { color: var(--pv-accent); font-size: 1rem; }
.pvm-person-row {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 4px;
    font-size: .85rem;
    line-height: 1.45;
    color: var(--pv-ink-2);
}
.pvm-person-row .bi { flex: 0 0 auto; margin-top: 2px; color: var(--pv-muted); font-size: .9rem; }
.pvm-person-actions { margin-top: 9px; }
.pvm-person-err { font-size: .87rem; font-weight: 600; color: var(--pv-danger); }

/* =====================================================================
   פופאפ ההתראות (modals/notifications/notifications.php)
   שמות המחלקות נשארו כשהיו — הפופאפ הבא נבנה ב-JS מאותם שמות.
   קודם: ארבעה מדרגי צבע, border-left ב-RTL (כלומר בצד הלא נכון),
   הבהוב shimmer אינסופי ו-scale על hover. עכשיו: אותו כרטיס של הדף,
   עם פס צבע צר בצד ההתחלה שמסמן את סוג ההתראה.
   ===================================================================== */

.notification-container {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 999999;
    width: auto;
    max-width: 340px;
    direction: rtl;
    text-align: right;
}

.notification-container .notification-popup {
    position: relative;
    min-width: 300px;
    max-width: 340px;
    margin-bottom: 12px;
    padding: 14px 16px 13px 14px;
    background: var(--pv-surface);
    border: 1px solid var(--pv-line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16,33,31,.05), 0 18px 40px -24px rgba(16,33,31,.6);
    color: var(--pv-ink-2);
    font-family: inherit;
    font-size: .87rem;
    line-height: 1.5;
    direction: rtl;
    text-align: right;
    cursor: pointer;
    overflow: hidden;
    animation: pvm-note-in .32s cubic-bezier(.2,.8,.3,1);
}

/* פס הסוג. inset-inline-start = הצד הימני ב-RTL, כלומר הקצה שהעין
   פוגשת ראשונה. קודם זה היה border-left קבוע, שנחת בצד השמאלי. */
.notification-container .notification-popup::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--pv-accent);
}
.notification-container .notification-popup.success::before { background: var(--pv-accent); }
.notification-container .notification-popup.info::before { background: var(--pv-man); }
.notification-container .notification-popup.warning::before { background: #c08a2e; }
.notification-container .notification-popup.error::before { background: var(--pv-danger); }

.notification-container .notification-popup:hover { border-color: var(--pv-line-3); }
.notification-container .notification-popup.seen { opacity: .75; }

.notification-container .notification-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--pv-line-2);
}

.notification-container .notification-title-wrapper {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
}

.notification-container .notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--pv-accent-soft);
    color: var(--pv-accent);
    font-size: 13px;
    line-height: 1;
}
.notification-container .notification-popup.info .notification-icon { background: var(--pv-man-soft);   color: var(--pv-man); }
.notification-container .notification-popup.warning .notification-icon { background: var(--pv-warn-soft);  color: #a8761f; }
.notification-container .notification-popup.error .notification-icon { background: var(--pv-danger-soft); color: var(--pv-danger); }

.notification-container .notification-title {
    margin: 0;
    font-size: .93rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pv-ink);
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-container .notification-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--pv-muted);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.notification-container .notification-close:hover { background: var(--pv-surface-2); border-color: var(--pv-line); color: var(--pv-ink); }

.notification-container .notification-message {
    margin-bottom: 10px;
    font-size: .86rem;
    line-height: 1.5;
    color: var(--pv-ink-2);
    text-align: right;
}

.notification-container .notification-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    margin-top: 2px;
    padding: 0 11px;
    background: var(--pv-surface);
    border: 1px solid var(--pv-line);
    border-radius: 9px;
    color: var(--pv-accent-dark);
    font-size: .83rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.notification-container .notification-link:hover {
    background: var(--pv-accent-soft);
    border-color: #c9e0db;
    color: var(--pv-accent-dark);
    text-decoration: none;
}
.notification-container .notification-link::after { content: "←"; font-size: .9em; }

.notification-container .notification-time {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 9px;
    font-size: .76rem;
    color: var(--pv-muted);
}

@keyframes pvm-note-in {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes pvm-note-out {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(16px); opacity: 0; }
}
.notification-container .notification-popup.closing { animation: pvm-note-out .25s ease-in forwards; }

@media (max-width: 768px) {
    .notification-container { right: 10px; bottom: 10px; max-width: calc(100vw - 20px); }
    .notification-container .notification-popup { min-width: auto; max-width: none; }
}

/* =====================================================================
   מודל "נדרשת הרשאה גבוהה יותר"
   נבנה ב-JS ב-basic_settings/function_global_js.php ומוזרק ל-body בכל
   דף שבו checkAccess() חוסם פעולה. משתמש באותן מחלקות של שאר המודלים
   (.pvm-modal / .pvm-*) ומוסיף רק את שורות המסלול.
   ===================================================================== */

.pvm-head-ico-lock { background: var(--pv-warn-soft); color: #a8761f; }

.pvm-access-text {
    margin: 0 0 14px;
    font-size: .92rem;
    line-height: 1.6;
    color: var(--pv-ink-2);
}

.pvm-plan {
    border: 1px solid var(--pv-line);
    border-radius: 10px;
    overflow: hidden;
}
.pvm-plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    background: var(--pv-surface);
    font-size: .89rem;
    color: var(--pv-muted);
}
.pvm-plan-row + .pvm-plan-row { border-top: 1px solid var(--pv-line-2); background: var(--pv-surface-2); }
.pvm-plan-row strong { font-weight: 700; color: var(--pv-ink-2); }
.pvm-plan-row strong.is-req { color: var(--pv-accent); }

/* =====================================================================
   דיאלוגי SweetAlert2

   נטענים גלובלית מ-basic_settings/import.php ומופיעים ב-51 קבצים, ולכן
   כאן מעוצבת רק המעטפת: הקופסה, הטיפוגרפיה, צורת הכפתורים והשדות.

   צבעי הכפתורים נשארים של הקורא. יש באתר כ-140 קריאות שמעבירות
   confirmButtonColor מפורש — אדום למחיקה, ירוק לאישור — והצבע שם נושא
   משמעות. הכלל למטה נותן ברירת מחדל דרך var() ולכן נסוג מאליו ברגע
   שהקורא קבע צבע, בלי !important ובלי לגעת באף קריאה קיימת.

   טוסטים (toast: true, 17 קריאות) מוחרגים מכללי הקופסה: הפריסה הפנימית
   שלהם צרה ומחושבת, ומקבלים כאן רק משטח ומסגרת.
   ===================================================================== */

/* הרקע נכתב עם אותו סלקטור של sweetalert2 עצמו: הכלל שלו הוא
   .swal2-container.swal2-backdrop-show, וסלקטור במחלקה אחת לא היה גובר. */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation { background: rgba(16,33,31,.45); }

.swal2-popup:not(.swal2-toast) {
    padding: 22px 22px 18px;
    background: var(--pv-surface);
    border: 1px solid var(--pv-line);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16,33,31,.05), 0 26px 60px -32px rgba(16,33,31,.6);
    font-family: inherit;
    font-size: 1rem;
    color: var(--pv-ink-2);
}

.swal2-popup:not(.swal2-toast) .swal2-title {
    padding: 0;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--pv-ink);
}
.swal2-popup:not(.swal2-toast) .swal2-html-container {
    margin: 8px 0 0;
    padding: 0;
    font-size: .93rem;
    line-height: 1.6;
    color: var(--pv-ink-2);
}
.swal2-popup:not(.swal2-toast) .swal2-html-container strong { color: var(--pv-ink); }

/* האייקון שומר על מידותיו: קווי הוי והאיקס ממוקמים ב-em ביחס לגודלו,
   ושינוי width/height היה מזיז אותם ביחס לעיגול. רק המרווח והצבע. */
.swal2-popup:not(.swal2-toast) .swal2-icon { margin: 1.2em auto .8em; }
.swal2-popup .swal2-icon.swal2-success { border-color: #bfe0da; color: var(--pv-accent); }
.swal2-popup .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(14,111,99,.22); }
.swal2-popup .swal2-icon.swal2-success [class^='swal2-success-line'] { background-color: var(--pv-accent); }
.swal2-popup .swal2-icon.swal2-error { border-color: #f0cdca; color: var(--pv-danger); }
.swal2-popup .swal2-icon.swal2-error [class^='swal2-x-mark-line'] { background-color: var(--pv-danger); }
.swal2-popup .swal2-icon.swal2-warning { background-color: #fdf2e6; border-color: #eddcbe; color: #b9721d; }
.swal2-popup .swal2-icon.swal2-info,
.swal2-popup .swal2-icon.swal2-question { background-color: var(--pv-man-soft); border-color: #cfe0e8; color: var(--pv-man); }

/* ---------- כפתורים ---------- */
.swal2-popup:not(.swal2-toast) .swal2-actions { gap: 8px; margin: 18px 0 0; }
.swal2-popup:not(.swal2-toast) .swal2-styled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
}
.swal2-popup:not(.swal2-toast) .swal2-styled:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14,111,99,.2);
}
.swal2-popup .swal2-styled.swal2-confirm { background-color: var(--swal2-confirm-button-background-color, var(--pv-accent)); }
.swal2-popup .swal2-styled.swal2-deny    { background-color: var(--swal2-deny-button-background-color, var(--pv-danger)); }
.swal2-popup .swal2-styled.swal2-cancel  { background-color: var(--swal2-cancel-button-background-color, #6b7a76); }

.swal2-popup .swal2-close {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: var(--pv-muted);
    font-size: 1.7rem;
    line-height: 1;
    transition: background-color .15s ease, color .15s ease;
}
.swal2-popup .swal2-close:hover { background: var(--pv-surface-2); color: var(--pv-ink); }
.swal2-popup .swal2-close:focus { outline: none; box-shadow: 0 0 0 3px rgba(14,111,99,.2); }

/* ---------- שדות בתוך דיאלוג ---------- */
.swal2-popup .swal2-input,
.swal2-popup .swal2-select,
.swal2-popup .swal2-file,
.swal2-popup .swal2-textarea {
    box-sizing: border-box;
    width: 100%;
    margin: 12px 0 0;
    padding: 0 12px;
    background: var(--pv-surface);
    border: 1px solid var(--pv-line);
    border-radius: 10px;
    color: var(--pv-ink-2);
    font-family: inherit;
    font-size: .9rem;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.swal2-popup .swal2-input,
.swal2-popup .swal2-select,
.swal2-popup .swal2-file { height: 40px; }
.swal2-popup .swal2-textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; }
.swal2-popup .swal2-input:focus,
.swal2-popup .swal2-select:focus,
.swal2-popup .swal2-file:focus,
.swal2-popup .swal2-textarea:focus {
    outline: none;
    border-color: var(--pv-accent);
    box-shadow: 0 0 0 3px rgba(14,111,99,.13);
}
.swal2-popup .swal2-input::placeholder,
.swal2-popup .swal2-textarea::placeholder { color: var(--pv-muted); opacity: .65; }

.swal2-popup .swal2-validation-message {
    margin: 12px 0 0;
    padding: 9px 12px;
    background: var(--pv-danger-soft);
    border-radius: 10px;
    color: var(--pv-danger);
    font-size: .86rem;
    font-weight: 600;
}
.swal2-popup .swal2-validation-message::before { display: none; }

.swal2-popup .swal2-timer-progress-bar { background: var(--pv-line-3); }

.swal2-popup .swal2-footer {
    margin: 16px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--pv-line-2);
    color: var(--pv-muted);
    font-size: .84rem;
}

/* ---------- טוסט ---------- */
.swal2-popup.swal2-toast {
    background: var(--pv-surface);
    border: 1px solid var(--pv-line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16,33,31,.05), 0 18px 40px -26px rgba(16,33,31,.6);
    font-family: inherit;
    color: var(--pv-ink-2);
}

/* ==========================================================================
   מסלול "חתן מהאלפון" (add_engaged.php)
   חתן שמעולם לא היה מועמד קיים רק ב-alphone; הקופסה הזו נפתחת מתחת לבחירת
   הבחור ומאפשרת לבחור אותו משם. אין מקבילה בעמודת הבחורה — לאישה אין שורת
   אלפון משלה.
   ========================================================================== */
.pvm-alph { margin-top: 10px; }

.pvm-alph-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--pv-accent);
    text-decoration: none;
    cursor: pointer;
}
.pvm-alph-toggle:hover { color: var(--pv-accent-dark); text-decoration: underline; }

.pvm-alph-box {
    margin-top: 10px;
    padding: 12px;
    border: 1px dashed var(--pv-line-3);
    border-radius: 10px;
    background: var(--pv-surface-2);
}

.pvm-alph-warn {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--pv-warn-soft);
    color: var(--pv-warn);
    font-size: .83rem;
    line-height: 1.5;
}

.pvm-alph-choice {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    font-size: .86rem;
    color: var(--pv-ink-2);
    cursor: pointer;
}
.pvm-alph-choice input { margin: 0; }
