h1, h2 {
    color: #333;
    text-align: center;
}
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    text-align: center;
    padding: 12px;
}

th input {
    width: 100%; /* גורם לשדה להתרחב */
    text-align: center;
}
th {
    background-color: #f2f2f2;
    font-weight: bold;
}


form label {
    font-weight: bold;
}

select.form-select {
    direction: rtl;
    text-align-last: center;
}

form input:not(.form-control),
form select:not(.form-control),
form textarea:not(.form-control) {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.custom-btn {
    border-radius: 12px !important; /* פינות מעוגלות כמו ב-form-control */
    box-shadow: 0 1px 4px #eee !important; /* צל כמו ב-form-control */
    width: 100px; /* שומר על רוחב קבוע כמו action-btn */
    text-align: center; /* מרכז את הטקסט */
    display: inline-block; /* שומר על התנהגות inline-block */
}

.styled-link {
    display: inline-block;
    color: #fff;
    background-color: #198754; /* צבע הרקע של btn-success */
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    margin: 0 auto;
}

.styled-link:hover {
    background-color: #157347; /* צבע בהיר יותר לריחוף כמו btn-success:hover */
    transform: translateY(-2px);
}

.styled-link:active {
    background-color: #146c43; /* צבע לחיצה דומה ל-active של btn-success */
    transform: translateY(0);
}




.flash-messages {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

.status-approved {
    background-color: #d4edda; /* ירוק בהיר */
    color: #155724; /* טקסט ירוק כהה */
    padding: 5px;
    border-radius: 5px;
    text-align: center;
}

.status-pending {
    background-color: #fff3cd; /* כתום בהיר */
    color: #856404; /* טקסט כתום כהה */
    padding: 5px;
    border-radius: 5px;
    text-align: center;
}

.status-rejected {
    background-color: #f8d7da; /* אדום בהיר */
    color: #721c24; /* טקסט אדום כהה */
    padding: 5px;
    border-radius: 5px;
    text-align: center;
}

.flash-messages li {
    background-color: #ffdddd;
    margin-bottom: 10px;
    padding: 10px;
    border-right: 6px solid #f44336;
}

.error-message {
    color: red;
    font-size: 0.9em;
    text-align: center;
}

.date-column {
    white-space: nowrap; /* מונע ירידת טקסט לשורה חדשה */
    text-align: center;  /* יישור הטקסט למרכז */
}

/* עיצוב ספציפי ל-form של הסינון */
.filter-form {
    display: flex;
    flex-wrap: nowrap; /* שומר על כפתורים באותה שורה */
    overflow-x: auto;  /* גלילה רק במסכים קטנים */
    gap: 10px;         /* רווח בין האלמנטים */
}

/* התאמה למסכים קטנים */
@media (max-width: 768px) {
    .filter-form {
        flex-wrap: nowrap; /* מונע גלישת האלמנטים לשורה נוספת */
        overflow-x: auto;  /* מוסיף פס גלילה אופקי */
        white-space: nowrap;
    }
}

.action-btn {
    width: 100px; /* Set a fixed width for the buttons */
    margin: 2px;  /* Add some margin for spacing */
    text-align: center; /* Center the text inside the buttons */
    display: inline-block; /* Ensure buttons are inline-block */
}

.credit {
    text-align: left; /* יישור הקרדיט לשמאל */
    position: relative; /* מוודא שהקרדיט מתיישב נכון */
    bottom: 10px;
    left: 10px;
    font-size: 0.8rem;
    color: #6c757d;
}

.credit a {
    text-decoration: none;
    color: #6c757d;
}

.credit a:hover {
    color: #495057;
}


@media (max-width: 768px) {
  #data_table td,
  #all_users td
  {
    white-space: normal !important;
    word-wrap: break-word;
  }
}

/*!* מסתיר את שורת החיפוש הכללית *!*/
/*.dataTables_filter {*/
/*    display: none;*/
/*}*/


.mobile-filters-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1050;
}

/* אנימציית "פולס" עדינה שתמשוך תשומת לב */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* יישום האנימציה והוספת צל */
#mobileFilters_bn {
    animation: pulse 2s infinite;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


/* אפקט הרחבה חלקה */
.pending-reports-card:hover .pending-details {
    display: block !important;
    animation: expandBox 0.3s ease-in-out;
}

@keyframes expandBox {
    from { max-height: 0; opacity: 0; }
    to { max-height: 200px; opacity: 1; }
}
/*#admin_table_summary_wrapper .dataTables_filter,*/
/*#reports_table_wrapper .dataTables_filter {*/
/*    display: none !important;*/
/*}*/

/* רקע בהיר לשורת החיפוש */
.filter-table thead tr {
    background-color: #f8f9fa; /* אפור בהיר */
}

/* טבלת הפילטרים תתאים את הרוחב שלה לטבלה הראשית */
.filter-table {
    table-layout: fixed; /* מבטיח שהרוחב יתאים ולא ישתנה בצורה אקראית */
}

/* התאמה דינמית של הרוחב לפי מספר שדות החיפוש */
.filter-table thead th {
    text-align: center; /* ממרכז את הטקסט */
    white-space: nowrap; /* מונע ירידת טקסט לשורה חדשה */
}

/* עיצוב של השדות - טקסט ברור */
.filter-table input,
.filter-table select {
    background-color: #e9f5ff; /* רקע כחול בהיר */
    border: 1px solid #007bff;
    font-weight: normal;
    color: #333; /* צבע טקסט כהה וברור */
    font-size: 16px;
    padding: 8px;
    outline: none;
    box-shadow: none;
    height: 38px; /* גובה אחיד */
    width: 100%; /* גורם לשדה למלא את כל התא */
    display: block;
}

/* עיצוב placeholder */
.filter-table input::placeholder {
    color: #333;
    opacity: 1;
}

/* עיצוב אפשרות ראשונה ב-select */
.filter-table select option:first-child {
    color: #333;
    opacity: 1;
}

/* מניעת הדגשת border כחול כאשר לוחצים */
.filter-table input:focus,
.filter-table select:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: none;
}



/*!* צבע רקע לכפתור של Select2 *!*/
/*.select2-container--bootstrap-5 .select2-selection {*/
/*    background-color: #e9f5ff !important; !* רקע כחול בהיר *!*/
/*    border: 1px solid #007bff !important;*/
/*    font-weight: normal;*/
/*    color: #333 !important;*/
/*    font-size: 16px;*/
/*    height: 38px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*}*/

/*!* צבע טקסט placeholder *!*/
/*.select2-container--bootstrap-5 .select2-selection__placeholder {*/
/*    color: #333 !important;*/
/*}*/

/*!* מניעת border כחול *!*/
/*.select2-container--bootstrap-5 .select2-selection:focus {*/
/*    border-color: #0056b3 !important;*/
/*    outline: none !important;*/
/*    box-shadow: none !important;*/
/*}*/



#filter-dropdown {
    transform: translateX(-50px);
    }

    /* עיצוב הפילטר בדף אדמין (פילטר צד שרת) - התחלה*/

/* כללי */
.filter-container {
    margin-bottom: 0.0rem;
}

/* כפתור פתיחה במובייל */
.filter-toggle {
    width: 100%;
    max-width: 200px;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

/* כרטיס הפילטרים */
.filter-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* טופס הפילטרים */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* קבוצת הפילטרים */
.filter-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* פריט פילטר בודד */
.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-item .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.filter-item .form-select {
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.95rem;
    border: 1px solid #ced4da;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* כפתורי פעולה */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.filter-buttons .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.filter-buttons .btn:hover {
    transform: translateY(-2px);
}

/* תצוגת פילטרים שנבחרו */
.selected-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    background-color: #007bff;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-remove {
    margin-left: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.filter-remove:hover {
    color: #f8f9fa;
}

/* התאמות למחשב */
@media (min-width: 768px) {
    .filter-toggle {
        display: none;
    }

    .filter-card {
        padding: 0.25rem;
    }

    .filter-group {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-buttons {
        margin-top: 0.5rem;
    }
}

/* התאמות למובייל */
@media (max-width: 767px) {
    .filter-form {
        padding: 0.5rem;
    }

    .filter-item .form-select {
        width: 100%;
    }
}

/* עיצוב הפילטר בדף אדמין (פילטר צד שרת) - סוף*/


/* דריסת סגנונות המקור של ה-'+ וה'- */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
  content: "▶" !important;          /* חץ ימין */
  color: #666 !important;
  background: transparent !important; /* מסיר רקע ירוק */
  border: none !important;          /* מסיר מסגרת */
  box-shadow: none !important;      /* מסיר צל */
  left: auto !important;            /* מאפס מיקום שמאלי */
  right: .25em !important;         /* מעט רווח מקצה התא */
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-family: SansSerif !important;   /* קונסיסטנטיות */
  width: auto !important;          /* מתקן גודל */
  height: auto !important;
  margin: 0 !important;            /* מאפס מרווחים */
  text-indent: 0 !important;       /* מתקן טקסט */
  line-height: 1 !important;
  transition: transform 0.3s ease;

}

/* סגנון כשורה פתוחה */
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before {
  content: "▼" !important;         /* חץ למטה */
  color: #333 !important;
}

/* אופציונלי - אנימציית סיבוב */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before {
  transition: transform 0.3s ease;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before {
  transform: translateY(-50%) rotate(90deg);
}

/* סגנון בסיסי - חץ הפונה שמאלה */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
  content: "▶" !important;
  transform: translateY(-50%) rotate(180deg) !important; /* סיבוב 180 מעלות */
  /* שאר התכונות נשארות כמו שהיו */
}

/* סגנון במצב פתוח - חץ למטה */
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before {
  content: "▼" !important;
  transform: translateY(-50%) !important; /* מאפס סיבוב */
}

/* אנימציה חלקה */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before {
  transition: transform 0.3s ease;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    position: relative !important;       /* מאפשר מיקום חץ יחסי לתא */
    padding-left: 1em !important;
    padding-right: 2.5em !important; /* רווח בין החץ לטקסט */
}

/* ריווח נוסף לטבלת הדוחות המפורטת במצב רספונסיבי */
#admin_data_table td.dtr-control {
    padding-right: 2em !important;
    white-space: nowrap;
}

.dataTables_filter {
    padding-bottom: 10px;
}

.daterangepicker .drp-calendar.left {
    float: right !important;
}
.daterangepicker .drp-calendar.right {
    float: left !important;
}
.daterangepicker {
    direction: rtl;
    text-align: right;
}
.daterangepicker .calendar-table table {
    direction: rtl; // סדר הימים מימין לשמאל
}
.daterangepicker .calendar-table thead tr th,
.daterangepicker .calendar-table tbody td {
    text-align: right;
}
/* סיבוב החצים ב-180 מעלות מהמצב המקורי */
.daterangepicker .calendar-table .next span {
    transform: rotate(-225deg) !important; // 135° - 180° = -45° (שמאלה)
    -webkit-transform: rotate(-45deg) !important;
}
.daterangepicker .calendar-table .prev span {
    transform: rotate(315deg) !important; // 135° + 180° = 315° (ימינה)
    -webkit-transform: rotate(315deg) !important;
}

.date-range-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    padding-left: 18px; /* מרווח מקצה התא משמאל */
}
.form-control {
    padding-left: 15px; /* מרווח קטן יותר בתוך ה-input */
}
.reset-date-icon {
    position: absolute;
    top: 50%;
    left: 1px; /* מרווח מקצה התא */
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    color: #888;
    display: none;
    transition: all 0.2s ease; /* מעבר חלק */
}
.reset-date-icon:hover {
    color: #ff0000;
    font-size: 16px;
    text-shadow: 0 0 2px rgba(255, 0, 0, 0.5);
}

.dataTables_length {
    padding-bottom: 10px;
}

/* החל padding-left רק במסכים גדולים (לא מובייל) */
@media (min-width: 768px) {
    .dataTables_length {
        padding-left: 7%;
    }
}

.btn-custom-dark {
    background-color: #212529; /* צבע ה-bg-dark מה-Navbar */
    border-color: #212529;
    color: white;
}
.btn-custom-dark:hover {
    background-color: #343a40; /* גוון בהיר מעט ל-hover */
    border-color: #343a40;
    color: white;
}

.delete-btn {
    width: 100px; /* רוחב קבוע כמו בכפתור "ערוך" */
    margin: 2px;  /* מרווחים תואמים */
    text-align: center; /* מרכוז הטקסט */
    display: inline-block; /* התנהגות כמו inline-block */
}


@media (max-width: 992px) and (min-width: 768px) {
    table.dataTable {
        width: 90% !important;
        margin: 0 auto !important;
    }
}




/* התאמת עמודה "פעולות" ב-#reports_table למסכי מחשב */
@media (min-width: 768px) {
    #reports_table td:nth-child(8) { /* עמודה "פעולות" היא ה-8 בטבלה */
        white-space: nowrap; /* מונע מעבר שורה */
        padding: 8px; /* מקטין את הריווח הפנימי כדי לחסוך מקום */
    }

    #reports_table .action-btn {
        margin: 0 2px; /* מרווח קטן יותר בין הכפתורים */
        font-size: 0.9rem; /* מקטין מעט את גודל הטקסט */
        padding: 6px 8px; /* מקטין את הריווח הפנימי של הכפתור */
    }

    #reports_table_wrapper {
        overflow-x: auto; /* מוסיף גלילה אופקית לטבלה אם היא לא נכנסת */
    }
}

/* התאמה למובייל - שומר על התנהגות ברירת המחדל */
@media (max-width: 767px) {
    #reports_table td:nth-child(8) {
        white-space: normal; /* מאפשר עטיפה במובייל */
    }

    #reports_table .action-btn {
        width: 100px; /* שומר על הרוחב המקורי במובייל */
        display: block; /* מאפשר לכפתורים להיות אחד מתחת לשני במובייל */
        margin: 2px auto; /* מרכז את הכפתורים במובייל */
    }
}


.navbar-brand .dropdown .nav-link {
    padding: 0.5rem 1rem; /* התאמה לגודל ה-nav-link הרגיל */
}

.navbar-brand .dropdown-menu {
    min-width: 120px; /* רוחב מינימלי לתפריט הנפתח */
}

/* התאמה למובייל */
@media (max-width: 767px) {
    .navbar-brand .dropdown {
        margin-left: 10px; /* מרווח קטן יותר במובייל */
    }
}

/*@media (min-width: 1025px) and (max-width: 1440px) {*/
/*    body:not(.no-zoom) #main-content {*/
/*        zoom: 0.9 !important; !* מקטין את התוכן הראשי ב-10% *!*/
/*    }*/
/*}*/






/*!* עיצוב הפוטר בתחתית הדף *!*/
/*.footer-bottom {*/
/*    background-color: #eceff1; !* צבע תואם ל-body *!*/

/*}*/


.dataTables_scrollHead {
    z-index: 1000; /* מעל תוכן אחר */
    background: white; /* רקע לבן */
    width: 100%; /* מתאים לרוחב הטבלה */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* צל עדין למראה נקי */
}

#users_table thead th {
    white-space: nowrap; /* מונע שבירת שורות בכותרת */
    vertical-align: middle; /* מיישר אנכית */
}

.filter-table th {
    padding: 5px; /* ריווח בסיסי */
}



/* סרגל תחתון צף */
.filter-bottom-bar {
    position: fixed;
    bottom: -100px; /* מוסתר מתחת למסך */
    left: 0;
    width: 100%; /* רוחב מלא */
    background-color: #fff;
    transition: bottom 0.3s ease;
    z-index: 1000;
    padding: 10px;
}

.filter-bottom-bar.active {
    bottom: 0; /* נכנס לתצוגה */
}

/* הגבלת העיצוב ל-filter-table בתוך הסרגל התחתון בלבד */
.filter-bottom-bar .filter-table {
    display: flex; /* שדות אחד ליד השני */
    justify-content: center; /* מרכז את השדות */
    gap: 10px; /* מרווח בין השדות */
}

/* הגבלת העיצוב ל-filter-item בתוך הסרגל התחתון בלבד */
.filter-bottom-bar .filter-item {
    display: inline-block; /* שומר על שדות באותה שורה */
}

/* כותרת מעל השדות - תחול גם בכותרת וגם בסרגל התחתון */
.filter-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

/* שמירה על עיצוב מקורי לשורת הסינון בכותרת */
#users_table thead .filter-table {
    display: table-row; /* מבטיח ששורת הסינון בכותרת תישאר טבלאית */
}

/* וידוא שהשדות בכותרת לא מושפעים מהעיצוב של הסרגל התחתון */
#users_table thead .filter-item {
    display: table-cell; /* שומר על מבנה טבלאי בכותרת */
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center; /* מרכז את התוכן (כולל ה-select) אופקית */
}

.form-control, .form-select {
    border-radius: 12px;
    box-shadow: 0 1px 4px #eee;
}
/* override for all selects */
select.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 12px !important;
  box-shadow: 0 1px 4px #eee !important;
}

/* override for selects בתוכן filter-item */
.filter-item .form-select {
  border-radius: 12px !important;
  box-shadow: 0 1px 4px #eee !important;

}

#wizard-content .form-control,
#wizard-content .form-select {
     max-width: none !important; /* לוודא שאין הגבלת max-width */
     width: 100%; /* לוודא שתמיד יתפוס 100% מהעמודה ההורה */
}

/* כללים ספציפיים ליישור גובה שדות הקלט והבחירה בתוך wizard-content */
#wizard-content .form-control,
#wizard-content .form-select {
    /* ודא שאין הגבלת רוחב אם ביטלת אותה קודם, למרות שזה נושא גובה */
    max-width: none !important;

    /* הגדרת גובה קבוע לשניהם */
    height: 38px !important; /* השתמש בגובה שראינו בשדות אחרים, התאם אם צריך */

    /* הגדרת ריפוד פנימי אחיד - חשוב גם עם גובה קבוע כדי שהטקסט יהיה ממורכז אנכית */
    padding: 0.375rem 0.75rem !important; /* ריפוד סטנדרטי של Bootstrap */
    /* או ריפוד אחר שנראה טוב עם הגובה שבחרת */
    /* padding: 0.5rem 0.75rem !important; */

    /* ודא שהעיצובים הקיימים נשמרים ומוחלים באופן עקבי */
    border-radius: 12px !important;
    box-shadow: 0 1px 4px #eee !important;
}

/* כלל ספציפי נוסף ל-select בתוך wizard-content אם הכלל הקודם לא מספיק לדרוס */
#wizard-content select.form-select
{
    /* חזור על הגדרות הגובה והריפוד אם יש צורך בדריסה ספציפית יותר */
    height: 38px !important;
    padding: 0.375rem 0.75rem !important;
    /* שומרים על הגדרות RTL ויישור הטקסט האחרון */
    direction: rtl;
    text-align-last: center;
    /* ודא עקביות גם בborder-radius ו-box-shadow */
    border-radius: 12px !important;
    box-shadow: 0 1px 4px #eee !important;
}

/* בתוך style.css, בסוף הקובץ: */
/* עבור inputs רגילים */
.form-control.is-valid,
.form-control.is-invalid {
  /* שני הצדדים – נחליף את מיקום האייקון לצד השמאלי (כי זה RTL) */
  background-position: left !important;
  /* נגדיל את הפדינג משמאל כדי לא ללחוץ על הטקסט */
  padding-left: 5.5rem !important;
  /* נחזיר את הפדינג הימני ל־1rem רגיל */
  padding-right: 1rem !important;
}

/* אם גם ל־<select> יש אייקון ולידציית תקינות/שגיאה */
.form-select.is-valid,
.form-select.is-invalid {
  background-position: left !important;
  padding-left: 2.5rem !important;
  padding-right: 1rem !important;
}


/* static/apply/css/custom.css או בתוך <style> ב-maonot_step_2.html */

.smart-other-container .form-select {
    /* אם נרצה להסיר את הפינות התחתונות של ה-select כשה-input מתחתיו גלוי */
    /* border-bottom-left-radius: 0; */
    /* border-bottom-right-radius: 0; */
    /* זה יכול להיות מופעל/כבוי עם JS */
}

.smart-other-container .other-input-wrapper .form-control {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    /* אפשר להסיר את הגבול העליון כדי שייראה מחובר יותר, אבל זה יכול להיראות מוזר אם יש הבדלי צבע קלים */
    /* border-top: none; */
}

/* אופציונלי: אנימציית פתיחה/סגירה עדינה */
.other-input-wrapper {
    transition: opacity 0.3s ease-out, max-height 0.3s ease-out;
    overflow: hidden;
    max-height: 0; /* התחלה במצב סגור לאנימציה */
    opacity: 0;
}

.other-input-wrapper:not(.d-none) { /* כאשר הוא גלוי (לא מכיל d-none) */
    max-height: 100px; /* גובה מקסימלי משוער, אפשר להתאים או להשתמש ב-JS לחישוב מדויק */
    opacity: 1;
}

/* ------------------------------------------------------------------- עיצוב מודרני לפילטר וסרגל כותרת --- */

/* משתני עיצוב גלובליים (מומלץ להתאים לפלטת הצבעים של המערכת) */
:root {
    --filter-primary-accent: #007bff; /* כחול CRM קלאסי */
    --filter-secondary-accent: #6c757d; /* אפור משני */
    --filter-text-main: #333a40;
    --filter-text-label: #555e68;
    --filter-border-color: #d1d9e0;
    --filter-bg-light: #f8f9fa;
    --filter-bg-white: #ffffff;
    --filter-dropdown-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --filter-border-radius: 4px;
    --filter-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --filter-transition-speed: 0.2s;
}

/* קונטיינר ראשי לכותרת ולפילטרים */
.page-controls-header {
    display: flex;
    flex-direction: column;
    gap: 16px; /* רווח בין אזור הכותרת לסרגל הפילטרים */
    padding: 12px 16px;
    background-color: var(--filter-bg-white);
    border-bottom: 1px solid #e9ecef; /* קו תחתון עדין */
    margin-bottom: 20px; /* רווח מתחת לכל הבלוק */
}

.page-main-title-area {
    display: flex;
    flex-direction: column; /* כותרת ושם משתמש אחד מתחת לשני */

}

.page-title-text {
    font-family: var(--filter-font-family);
    font-size: 35px; /* גודל כותרת */
    font-weight: 600; /* משקל פונט מודגש קלות */
    color: var(--filter-text-main);
    margin: 0;
    line-height: 1.3;
}

.page-subtitle-text {
    font-family: var(--filter-font-family);
    font-size: 23px;
    color: var(--filter-text-label);
    line-height: 1.3;
}

.page-2nd_title-text {
    font-family: var(--filter-font-family);
    font-size: 23px; /* גודל כותרת */
    font-weight: 600; /* משקל פונט מודגש קלות */
    color: var(--filter-text-main);
    margin: 0;
    line-height: 1.3;

}


.filters-action-toolbar,
.modern-filter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    text-align: center;
}


.filter-item-group.main-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-item-label {
    font-family: var(--filter-font-family);
    font-size: 14px;
    font-weight: 500;
    color: var(--filter-text-label);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-controls-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-select-dropdown-container {
    position: relative;
    display: inline-block;
}

.filter-action-buttons-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-select-dropdown-toggle {
    font-family: var(--filter-font-family);
    background-color: var(--filter-bg-white);
    border: 1px solid var(--filter-border-color);
    border-radius: var(--filter-border-radius);
    padding: 7px 28px 7px 12px;
    font-size: 14px;
    color: var(--filter-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 180px;
    text-align: right;
    transition: border-color var(--filter-transition-speed) ease;
    position: relative;
}

.custom-select-dropdown-toggle:hover {
    border-color: var(--filter-primary-accent);
}

.custom-select-dropdown-toggle:focus,
.custom-select-dropdown-container.open .custom-select-dropdown-toggle {
    outline: none;
    border-color: var(--filter-primary-accent);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

#year-filter-selected-value-text {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--filter-secondary-accent);
    transition: transform var(--filter-transition-speed) ease;
}

.custom-select-dropdown-container.open .dropdown-arrow-icon {
    transform: translateY(-50%) rotate(180deg);
}

body.rtl .dropdown-arrow-icon {
    right: 10px;
    left: auto;
}
body.ltr .dropdown-arrow-icon {
    left: 10px;
    right: auto;
}


.custom-select-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: auto;
    background-color: var(--filter-bg-white);
    border: 1px solid #e0e4e8;
    border-radius: var(--filter-border-radius);
    box-shadow: var(--filter-dropdown-shadow);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 1050;
    min-width: 220px;
    max-height: 280px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--filter-transition-speed) ease, visibility var(--filter-transition-speed) ease, transform var(--filter-transition-speed) ease;
}

.custom-select-dropdown-container.open .custom-select-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.custom-select-dropdown-menu li {
    padding: 0;
    margin: 0;
    list-style-type: none; /* ודא שאין עיצוב ברירת מחדל ל-li */
}

.dropdown-option-label {
    display: flex;
    align-items: center;
    padding: 5px 12px; /* התאם לפי הצורך */
    font-size: 14px;
    line-height: 1.4; /* עוזר לקבוע גובה שורה אחיד */
    color: var(--filter-text-main);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--filter-transition-speed) ease;
}

.dropdown-option-label:hover {
    background-color: var(--filter-bg-light);
}

/* ***** תיקון חשוב כאן ***** */
/* הגדלת הספציפיות של הסלקטור ודריסת הכללים הגלובליים */
.custom-select-dropdown-menu .dropdown-option-label input.custom-styled-checkbox[type="checkbox"] {
    /* דריסת הכללים הגלובליים */
    width: 15px !important;         /* גודל רצוי ל-checkbox */
    height: 15px !important;        /* גודל רצוי ל-checkbox */
    max-width: 15px !important;     /* חשוב לדרוס את ה-max-width הגלובלי */
    padding: 0 !important;          /* דרוס את ה-padding הגלובלי */
    border: 1px solid #888 !important; /* או initial אם ברירת המחדל עדיפה, והסר important */
    border-radius: 3px !important;  /* או initial, והסר important */
    box-sizing: border-box !important; /* שמור על זה או שנה ל-content-box אם מתאים יותר */

    /* הגדרות ספציפיות שלנו */
    accent-color: var(--filter-primary-accent);
    flex-shrink: 0;

    /* המרווח בין ה-checkbox לטקסט (בהנחה של RTL: טקסט מימין, צ'קבוקס משמאל לו) */
    margin-left: 6px !important; /* או margin-right ב-LTR */
    margin-right: 0 !important; /* אפס את הצד השני */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    /* ודא שאין ריווחים נוספים מהכלל הגלובלי */
    appearance: checkbox !important; /* נסה להחזיר את המראה הדיפולטי אם הכלל הגלובלי שינה אותו */
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
}
/* ***** סוף התיקון החשוב ***** */


.option-text {
    /* flex-grow: 1; -- אפשר להחזיר אם הטקסט צריך להתפשט */
}

.dropdown-menu-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 4px 1px;
}

/* כפתורי פעולה */
.action-button {
    font-family: var(--filter-font-family);
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--filter-border-radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color var(--filter-transition-speed) ease, border-color var(--filter-transition-speed) ease, color var(--filter-transition-speed) ease;
    white-space: nowrap;
}

.button-icon-left {
    /* אין צורך בהגדרות מיוחדות אם ה-gap מטפל בזה */
}

.filter-apply-button {
    background-color: var(--filter-primary-accent);
    color: var(--filter-bg-white);
    border-color: var(--filter-primary-accent);
}

.filter-apply-button:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.filter-reset-button {
    background-color: var(--filter-bg-white);
    color: var(--filter-secondary-accent);
    border: 1px solid var(--filter-border-color);
}

.filter-reset-button:hover {
    background-color: var(--filter-bg-light);
    border-color: #adb5bd;
    color: var(--filter-text-main);
}

/* מקום לתוספות מהרחבות */
.additional-filters-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 767px) {
    .filters-action-toolbar,
    .modern-filter-form {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .modern-filter-form,
    .filter-item-group.main-filter-group,
    .filter-controls-wrapper {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    .filter-controls-wrapper > *,
    .filter-item-group.main-filter-group > * {
        max-width: 360px;
        text-align: center !important;
    }
}
/*-----------------------------------------------------------*/
/* --- CSS לעמודת הגדרות וכפתור --- */
.settings-col {
  width: 50px;
  min-width: 48px;
  text-align: center;
  padding: 0.25rem 0.25rem;
  vertical-align: middle;
}
.btn-settings {
  padding: 4px 9px;
  font-size: 1.1rem;
  color: #6c757d;
  border: none;
  background: none;
  outline: none;
}
.btn-settings:hover, .btn-settings:focus {
  color: #343a40;
  background: #e9ecef;
  border-radius: 50%;
  box-shadow: 0 0 3px #bfc9d1;
}

/* --- עיצוב רקע לשורות בטבלה (פועל גם עם rowIndicator) --- */
#users_table tbody tr[data-user-id] {
  /*cursor: pointer;                  !* סמן יד על כל השורה *!*/
  transition: background-color .2s ease;
}
/*#users_table tbody tr[data-user-id]:hover {*/
/*  background-color: #eef6fc;        !* רקע בהיר ב-hover *!*/
/*}*/
#users_table tbody tr.active-row td {
  background-color: #cfe2ff !important;  /* טון תכלת נקי */
}

.settings-col {
  background: #f4f7fa;
  vertical-align: middle;
  min-width: 90px;
  text-align: center;
}

.btn-management {
  background: linear-gradient(90deg, #1576e6 0%, #36b2ee 100%);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 7px 15px;
  font-size: 1.1rem;
  box-shadow: 0 1px 7px rgba(21,118,230,0.07);
  transition: background 0.15s, box-shadow 0.15s;
  outline: none;
}

.btn-management:hover,
.btn-management:focus {
  background: linear-gradient(90deg, #1161c9 0%, #249edb 100%);
  color: #fff;
  box-shadow: 0 2px 14px rgba(21,118,230,0.11);
}

.btn-management i {
  margin-inline-end: 0;
  font-size: 1.25em;
  vertical-align: middle;
}


/*הגדרות OFF-CANVAS*/
@media (min-width: 1400px) {
  .offcanvas.offcanvas-responsive {
    width: 600px;
  }
}
/*------------------------------------------*/
.organizations-display {
    max-width: 200px;
    text-align: center; /* *** הוספה: מירכוז תוכן ***/
}

.org-item {
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: center; /* *** הוספה: מירכוז כל פריט ***/
}

.org-name {
    display: block;
    color: #2c5aa0;
    margin-bottom: 4px; /* *** שינוי: הגדלת המרווח בין השם לתגיות ***/
}

.years-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center; /* *** הוספה: מירכוז התגיות ***/
}

.years-badges .badge {
    font-size: 0.7rem;
    padding: 2px 6px;
}

.org-item hr {
    border-color: #dee2e6;
    opacity: 0.5;
}

/* צבעים לסטטוסים שונים */
.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-success {
    background-color: #198754 !important; /* *** השנה הנוכחית - ירוק ***/
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

.badge.bg-primary {
    background-color: #0d6efd !important; /* *** שנים אחרות - כחול ***/
}

/* רספונסיביות */
@media (max-width: 768px) {
    .organizations-display {
        max-width: 150px;
        font-size: 0.8rem;
    }

    .years-badges .badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}

/* ==========================================
   עיצוב מודרני לOffcanvas ניהול משתמשים
   ========================================== */

/* משתני עיצוב לOffcanvas */
:root {
  --offcanvas-bg: #ffffff;
  --offcanvas-header-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --offcanvas-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  --offcanvas-border-radius: 0 16px 16px 0;
  --primary-blue: #0d6efd;
  --success-green: #198754;
  --warning-orange: #fd7e14;
  --danger-red: #dc3545;
  --light-gray: #f8f9fa;
  --border-color: #e9ecef;
  --text-dark: #333333;
  --text-muted: #6c757d;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* כפתור הניהול המודרני בטבלה */
.btn-management {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-management::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-management:hover::before {
  left: 100%;
}

.btn-management:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-management:active {
  transform: translateY(0) scale(1.02);
}

.btn-management i {
  font-size: 1.1em;
  transition: var(--transition-smooth);
}

.btn-management:hover i {
  transform: rotate(180deg);
}

/* Offcanvas Container */
.modern-offcanvas {
  width: 480px !important;
  max-width: 90vw;
  background: var(--offcanvas-bg);
  box-shadow: var(--offcanvas-shadow);
  border-radius: var(--offcanvas-border-radius);
  border: none;
}

@media (min-width: 1400px) {
  .modern-offcanvas {
    width: 520px !important;
  }
}

/* Header מודרני */
.modern-offcanvas-header {
  background: var(--offcanvas-header-bg);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 0 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.modern-offcanvas-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.user-info-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

.user-avatar {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar i {
  font-size: 1.8rem;
  color: white;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.user-role {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  align-self: flex-start;
  backdrop-filter: blur(5px);
}

.user-role-canvas {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  align-self: flex-start;
  backdrop-filter: blur(5px);
}
.user-username {
  font-size: 0.9rem;
  opacity: 0.9;
  font-family: monospace;
}

.modern-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.modern-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.modern-close-btn i {
  font-size: 1.1rem;
}

/* Body עם תוכן */
.modern-offcanvas-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  overflow: hidden;
}

/* Navigation Tabs מודרני */
.modern-nav-tabs {
  display: flex;
  background: var(--light-gray);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.modern-nav-item {
  flex: 1;
  background: none;
  border: none;
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-muted);
  position: relative;
  min-width: 200px;
}

.modern-nav-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-blue);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.modern-nav-item.active::before {
  transform: scaleX(1);
}

.modern-nav-item:hover {
  background: rgba(13, 110, 253, 0.05);
  color: var(--text-dark);
}

.modern-nav-item.active {
  background: white;
  color: var(--primary-blue);
}

.tab-icon {
  width: 40px;
  height: 40px;
  background: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modern-nav-item.active .tab-icon {
  background: rgba(13, 110, 253, 0.15);
  transform: scale(1.1);
}

.tab-icon i {
  font-size: 1.1rem;
}

.tab-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tab-title {
  font-weight: 600;
  font-size: 1rem;
}

.tab-subtitle {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Tab Content */
.modern-tab-content {
  flex: 1;
  padding: 0;
}

.modern-tab-pane {
  padding: 1.5rem;
  height: 100%;

}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--light-gray);
}

.section-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-blue), #0a58ca);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.section-icon i {
  font-size: 1.3rem;
}

.section-info {
  flex: 1;
}

.section-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.section-description {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Loading Spinner מודרני */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.modern-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.spinner-circle {
  width: 40px;
  height: 40px;
  border: 3px solid var(--light-gray);
  border-top: 3px solid var(--primary-blue);
  border-radius: 50%;
  animation: modernSpin 1s linear infinite;
}

@keyframes modernSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Form Container */
.form-container {
  background: white;
  border-radius: 12px;
  padding: 0;
}

/* Footer מודרני */
.modern-offcanvas-footer {
  background: var(--light-gray);
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-actions {
  display: flex;
  gap: 0.75rem;
}

.footer-action-btn {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-action-btn.danger {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger-red);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.footer-action-btn.danger:hover {
  background: var(--danger-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.footer-action-btn.secondary {
  background: rgba(108, 117, 125, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(108, 117, 125, 0.2);
}

.footer-action-btn.secondary:hover {
  background: var(--text-muted);
  color: white;
  transform: translateY(-2px);
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-info i {
  opacity: 0.7;
}

/* התאמות נייד */
@media (max-width: 768px) {
  .modern-offcanvas {
    width: 95vw !important;
    border-radius: 0 12px 12px 0;
  }

  .modern-offcanvas-header {
    padding: 1.5rem 1rem 1rem;
  }

  .user-avatar {
    width: 50px;
    height: 50px;
  }

  .user-avatar i {
    font-size: 1.5rem;
  }

  .user-name {
    font-size: 1.2rem;
  }

  .modern-nav-tabs {
    flex-direction: column;
  }

  .modern-nav-item {
    min-width: auto;
    padding: 1rem;
  }

  .footer-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .footer-action-btn {
    justify-content: center;
    width: 100%;
  }
}

/* אנימציות כניסה */
.modern-offcanvas.showing {
  animation: slideInFromLeft 0.3s ease-out;
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* שיפורי נגישות */
.modern-nav-item:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: -2px;
}

.footer-action-btn:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}



/* ==========================================
   עיצוב מודרני לטפסים בOffcanvas
   ========================================== */

/* Form Wrapper */
.modern-form-wrapper {
  padding: 0;
  max-width: 100%;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Security Notice */
.security-notice {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notice-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.notice-icon i {
  font-size: 1.1rem;
}

.notice-content {
  flex: 1;
}

.notice-title {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-blue);
}

.notice-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Form Fields */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modern-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modern-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.modern-label i {
  color: var(--primary-blue);
  font-size: 0.9rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.modern-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: white;
  color: var(--text-dark);
}

.modern-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.modern-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.input-icon {
  position: absolute;
  left: 12px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  padding: 4px;
  border-radius: 4px;
}

.input-icon:hover {
  color: var(--primary-blue);
  background: rgba(13, 110, 253, 0.1);
}

/* Password Strength Indicator */
.password-strength {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.strength-bar {
  width: 100%;
  height: 6px;
  background: var(--light-gray);
  border-radius: 3px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.strength-fill.weak {
  background: linear-gradient(90deg, #dc3545, #fd7e14);
}

.strength-fill.medium {
  background: linear-gradient(90deg, #fd7e14, #ffc107);
}

.strength-fill.strong {
  background: linear-gradient(90deg, #28a745, #20c997);
}

.strength-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.strength-level {
  font-weight: 600;
}

/* Password Match Indicator */
.password-match {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.password-match.match {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success-green);
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.password-match.no-match {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger-red);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Field Errors */
.field-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--danger-red);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  padding: 0.5rem;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
  border-radius: 6px;
}

.field-error i {
  font-size: 0.8rem;
}

/* Form Actions */
.form-actions {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.modern-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-blue), #0a58ca);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.modern-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.modern-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.loader-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: loaderSpin 1s linear infinite;
}

@keyframes loaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Security Tips */
.security-tips {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.tips-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.tips-title i {
  color: #ffc107;
  font-size: 1rem;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.tips-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

.tips-list li::before {
  content: '✓';
  color: var(--success-green);
  font-weight: bold;
  font-size: 0.9rem;
}

/* Enhanced Input States */
.modern-input:valid {
  border-color: var(--success-green);
}

.modern-input:invalid:not(:placeholder-shown) {
  border-color: var(--danger-red);
}

/* Accessibility Improvements */
.modern-input:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.modern-submit-btn:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .modern-form {
    gap: 1.25rem;
  }

  .modern-input {
    padding: 0.75rem 2.5rem 0.75rem 0.875rem;
    font-size: 16px; /* מונע זום באייפון */
  }

  .input-icon {
    left: 10px;
  }

  .tips-list {
    grid-template-columns: 1fr;
  }

  .modern-submit-btn {
    padding: 0.875rem 1.25rem;
    min-height: 52px;
  }
}

/* Animation for form appearance */
.modern-form-wrapper {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*תוספת לאייקון ניהול all_user*/



/* ==========================================
   עיצוב קומפקטי לOffcanvas - הוסף לסוף style.css
   ========================================== */

/* Header קומפקטי */
/*.modern-offcanvas-header.compact {*/
/*  padding: 1.25rem 1.25rem 1rem; !* הקטנה מ-2rem *!*/
/*}*/

/*.user-avatar.compact {*/
/*  width: 45px; !* הקטנה מ-60px *!*/
/*  height: 45px;*/
/*}*/

/*.user-avatar.compact i {*/
/*  font-size: 1.4rem; !* הקטנה מ-1.8rem *!*/
/*}*/

/*.user-name.compact {*/
/*  font-size: 1.2rem; !* הקטנה מ-1.4rem *!*/
/*  margin-bottom: 0.15rem;*/
/*}*/

/*.user-role.compact {*/
/*  padding: 0.2rem 0.6rem; !* הקטנה *!*/
/*  font-size: 0.75rem; !* הקטנה מ-0.8rem *!*/
/*}*/

/*!* Navigation Tabs קומפקטי *!*/
/*.modern-nav-tabs.compact {*/
/*  border-bottom: 1px solid var(--border-color);*/
/*}*/

/*.modern-nav-item.compact {*/
/*  padding: 0.875rem 0.75rem; !* הקטנה מ-1.25rem *!*/
/*  gap: 0.5rem; !* הקטנה מ-0.75rem *!*/
/*  min-width: 160px; !* הקטנה מ-200px *!*/
/*}*/

/*.tab-icon.compact {*/
/*  width: 32px; !* הקטנה מ-40px *!*/
/*  height: 32px;*/
/*}*/

/*.tab-icon.compact i {*/
/*  font-size: 0.95rem; !* הקטנה מ-1.1rem *!*/
/*}*/

/*.tab-content.compact {*/
/*  gap: 0.15rem; !* הקטנה מ-0.25rem *!*/
/*}*/

.tab-title {
  font-size: 0.9rem; /* הקטנה מ-1rem */
}

/*!* הסרת ה-subtitle בגרסה הקומפקטית *!*/
/*.tab-content.compact .tab-subtitle {*/
/*  display: none;*/
/*}*/

/* Body קומפקטי */
.modern-offcanvas-body {
  height: calc(100vh - 160px); /* הקטנה מ-200px */
}

.modern-tab-pane {
  padding: 1rem; /* הקטנה מ-1.5rem */
}

/*!* Content Section קומפקטי *!*/
/*.content-section.compact {*/
/*  gap: 1rem; !* הקטנה מ-1.5rem *!*/
/*}*/

/*.section-header.compact {*/
/*  padding-bottom: 0.75rem; !* הקטנה מ-1rem *!*/
/*  margin-bottom: 0; !* הסרת margin *!*/
/*}*/

/*.section-icon.compact {*/
/*  width: 40px; !* הקטנה מ-50px *!*/
/*  height: 40px;*/
/*  border-radius: 8px; !* הקטנה מ-12px *!*/
/*}*/

/*.section-icon.compact i {*/
/*  font-size: 1.1rem; !* הקטנה מ-1.3rem *!*/
/*}*/

/*.section-title.compact {*/
/*  font-size: 1.1rem; !* הקטנה מ-1.2rem *!*/
/*  margin-bottom: 0.25rem; !* הקטנה מ-0.5rem *!*/
/*}*/

/*.section-description.compact {*/
/*  font-size: 0.85rem; !* הקטנה מ-0.95rem *!*/
/*}*/

/*!* Loading Container קומפקטי *!*/
/*.loading-container.compact {*/
/*  padding: 2rem 1rem; !* הקטנה מ-3rem *!*/
/*}*/

.modern-spinner {
  gap: 0.75rem; /* הקטנה מ-1rem */
}

.spinner-circle {
  width: 32px; /* הקטנה מ-40px */
  height: 32px;
  border-width: 2.5px; /* הקטנה מ-3px */
}

.loading-text {
  font-size: 0.85rem; /* הקטנה מ-0.9rem */
}

/*!* Footer קומפקטי *!*/
/*.modern-offcanvas-footer.compact {*/
/*  padding: 1rem 1.25rem; !* הקטנה מ-1.5rem *!*/
/*  gap: 0.75rem; !* הקטנה מ-1rem *!*/
/*}*/

.footer-action-btn {
  padding: 0.625rem 0.875rem; /* הקטנה מ-0.75rem 1rem */
  font-size: 0.85rem; /* הקטנה מ-0.9rem */
  gap: 0.375rem; /* הקטנה מ-0.5rem */
}

.footer-info {
  font-size: 0.75rem; /* הקטנה מ-0.8rem */
}

/* Form Container קומפקטי */
.form-container {
  margin-top: 0.5rem; /* הקטנה */
}

/* הסתרת הספינרים בברירת מחדל */
.loading-container {
  display: none !important;
}

.loading-container.show {
  display: flex !important;
}

/* שיפור הגלילה */
.modern-tab-content {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.modern-tab-content::-webkit-scrollbar {
  width: 6px;
}

.modern-tab-content::-webkit-scrollbar-track {
  background: transparent;
}

.modern-tab-content::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 3px;
}

.modern-tab-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,0.3);
}

/* התאמות מיוחדות למובייל */
@media (max-width: 768px) {
  .modern-offcanvas {
    width: 92vw !important;
  }

  /*.modern-offcanvas-header.compact {*/
  /*  padding: 1rem;*/
  /*}*/

  /*.user-avatar.compact {*/
  /*  width: 40px;*/
  /*  height: 40px;*/
  /*}*/

  /*.user-avatar.compact i {*/
  /*  font-size: 1.2rem;*/
  /*}*/

  /*.user-name.compact {*/
  /*  font-size: 1.1rem;*/
  /*}*/

  /*.modern-nav-item.compact {*/
  /*  padding: 0.75rem 0.5rem;*/
  /*  min-width: auto;*/
  /*  flex: 1;*/
  /*}*/

  /*.tab-icon.compact {*/
  /*  width: 28px;*/
  /*  height: 28px;*/
  /*}*/

  .tab-title {
    font-size: 0.85rem;
  }

  .modern-tab-pane {
    padding: 0.75rem;
  }

  .footer-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .footer-action-btn {
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
  }
}


/* ==========================================
   עיצוב קומפקטי לטפסים בOffcanvas
   ========================================== */

/* טופס שינוי סיסמה קומפקטי */
.modern-form {
  gap: 1rem; /* הקטנה מ-1.5rem */
}

.security-notice {
  padding: 0.75rem; /* הקטנה מ-1rem */
  gap: 0.5rem; /* הקטנה מ-0.75rem */
}

.notice-icon {
  width: 32px; /* הקטנה מ-40px */
  height: 32px;
}

.notice-icon i {
  font-size: 0.95rem; /* הקטנה מ-1.1rem */
}

.notice-title {
  font-size: 0.9rem; /* הקטנה מ-1rem */
  margin-bottom: 0.15rem; /* הקטנה מ-0.25rem */
}

.notice-text {
  font-size: 0.8rem; /* הקטנה מ-0.9rem */
}

.form-fields {
  gap: 1rem; /* הקטנה מ-1.25rem */
}

.modern-form-group {
  gap: 0.375rem; /* הקטנה מ-0.5rem */
}

.modern-label {
  font-size: 0.85rem; /* הקטנה מ-0.95rem */
  gap: 0.375rem; /* הקטנה מ-0.5rem */
}

.modern-input {
  padding: 0.625rem 2.5rem 0.625rem 0.875rem; /* הקטנה */
  font-size: 0.9rem; /* הקטנה מ-1rem */
}

.input-icon {
  left: 8px; /* התאמה לפדינג החדש */
  font-size: 0.85rem;
}

.password-strength {
  gap: 0.375rem; /* הקטנה מ-0.5rem */
  margin-top: 0.15rem; /* הקטנה מ-0.25rem */
}

.strength-bar {
  height: 4px; /* הקטנה מ-6px */
}

.strength-text {
  font-size: 0.75rem; /* הקטנה מ-0.8rem */
}

.password-match {
  font-size: 0.8rem; /* הקטנה מ-0.9rem */
  margin-top: 0.15rem; /* הקטנה מ-0.25rem */
  padding: 0.375rem; /* הקטנה מ-0.5rem */
}

.field-error {
  font-size: 0.75rem; /* הקטנה מ-0.85rem */
  margin-top: 0.15rem; /* הקטנה מ-0.25rem */
  padding: 0.375rem; /* הקטנה מ-0.5rem */
}

.form-actions {
  padding-top: 0.75rem; /* הקטנה מ-1rem */
}

.modern-submit-btn {
  padding: 0.75rem 1.25rem; /* הקטנה מ-1rem 1.5rem */
  font-size: 0.9rem; /* הקטנה מ-1rem */
  min-height: 48px; /* הקטנה מ-56px */
}

.security-tips {
  padding: 0.75rem; /* הקטנה מ-1rem */
  margin-top: 0.25rem; /* הקטנה מ-0.5rem */
}

.tips-title {
  margin-bottom: 0.5rem; /* הקטנה מ-0.75rem */
  font-size: 0.85rem; /* הקטנה מ-0.95rem */
}

.tips-list {
  gap: 0.25rem; /* הקטנה מ-0.5rem */
  grid-template-columns: 1fr; /* רק עמודה אחת בoffcanvas */
}

.tips-list li {
  font-size: 0.75rem; /* הקטנה מ-0.85rem */
  padding: 0.15rem 0; /* הקטנה מ-0.25rem */
}


.form-header {
  padding: 1rem; /* הקטנה מ-1.25rem */
  gap: 0.75rem; /* הקטנה מ-1rem */
  margin-bottom: 0.25rem; /* הקטנה מ-0.5rem */
}

.header-icon {
  width: 40px; /* הקטנה מ-50px */
  height: 40px;
  border-radius: 8px; /* הקטנה מ-12px */
}

.header-icon i {
  font-size: 1.2rem; /* הקטנה מ-1.4rem */
}

.form-title {
  font-size: 1.1rem; /* הקטנה מ-1.3rem */
  margin-bottom: 0.15rem; /* הקטנה מ-0.25rem */
}

.form-subtitle {
  font-size: 0.85rem; /* הקטנה מ-0.95rem */
}

.section-title {
  padding: 0.75rem 1rem; /* הקטנה מ-1rem 1.25rem */
  gap: 0.5rem; /* הקטנה מ-0.75rem */
  font-size: 0.9rem;
}

.section-title i {
  font-size: 0.95rem; /* הקטנה מ-1.1rem */
}

.form-grid {
  padding: 1rem; /* הקטנה מ-1.25rem */
  gap: 0.75rem; /* הקטנה מ-1rem */
  grid-template-columns: 1fr; /* עמודה אחת בoffcanvas */
}

.field-label {
  font-size: 0.85rem; /* הקטנה מ-0.95rem */
  gap: 0.375rem; /* הקטנה מ-0.5rem */
}

.modern-field-input {
  padding: 0.625rem 0.875rem; /* הקטנה מ-0.875rem 1rem */
  font-size: 0.9rem; /* הקטנה מ-1rem */
}

/* Organizations Section קומפקטי */
.year-selection {
  padding: 0.875rem; /* הקטנה מ-1.25rem */
  gap: 0.75rem; /* הקטנה מ-1rem */
  flex-direction: column; /* סידור אנכי בoffcanvas */
  align-items: flex-start;
}

.year-label {
  gap: 0.375rem; /* הקטנה מ-0.5rem */
  font-size: 0.85rem;
}

.year-select-input {
  padding: 0.5rem 0.75rem; /* הקטנה מ-0.75rem 1rem */
  width: 100%;
  font-size: 0.9rem;
}

.organizations-content {
  padding: 0.875rem; /* הקטנה מ-1.25rem */
}

.organization-card {
  margin-bottom: 0.75rem; /* הקטנה מ-1rem */
}

.card-header {
  padding: 0.625rem 0.875rem; /* הקטנה מ-0.875rem 1rem */
}

.org-number {
  font-size: 0.85rem; /* הקטנה מ-0.95rem */
}

.remove-org-btn {

  height: 28px;
}

.remove-org-btn i {
  font-size: 0.7rem; /* הקטנה מ-0.8rem */
}

.card-body {
  padding: 0.75rem; /* הקטנה מ-1rem */
  grid-template-columns: 1fr; /* עמודה אחת בoffcanvas */
  gap: 0.75rem; /* הקטנה מ-1rem */
}

.org-label, .hours-label {
  gap: 0.375rem; /* הקטנה מ-0.5rem */
  font-size: 0.8rem; /* הקטנה מ-0.9rem */
}

.org-label i, .hours-label i {
  font-size: 0.75rem; /* הקטנה מ-0.8rem */
}

.org-select, .hours-input, .scholarship-select {
  padding: 0.5rem; /* הקטנה מ-0.75rem */
  font-size: 0.85rem;
}

.add-org-btn {
  padding: 0.75rem; /* הקטנה מ-1rem */
  gap: 0.5rem; /* הקטנה מ-0.75rem */
  margin-top: 0.25rem; /* הקטנה מ-0.5rem */
  font-size: 0.85rem;
}

.add-org-btn i {
  font-size: 0.95rem; /* הקטנה מ-1.1rem */
}

.form-footer {
  padding: 0.875rem; /* הקטנה מ-1.25rem */
}

.save-btn {
  padding: 0.75rem 1.25rem; /* הקטנה מ-1rem 1.5rem */
  font-size: 0.9rem; /* הקטנה מ-1rem */
  min-height: 48px; /* הקטנה מ-56px */
}

/* התאמות נוספות למובייל בoffcanvas */
@media (max-width: 768px) {
  .modern-form {
    gap: 0.875rem;
  }

  .security-notice {
    padding: 0.625rem;
    flex-direction: column;
    text-align: center;
  }

  .notice-icon {
    width: 28px;
    height: 28px;
    align-self: center;
  }

  .modern-input {
    padding: 0.625rem 2.25rem 0.625rem 0.75rem;
    font-size: 16px; /* מונע זום באייפון */
  }

  .form-grid {
    padding: 0.75rem;
    gap: 0.625rem;
  }

  .modern-field-input, .org-select, .scholarship-select, .hours-input, .year-select-input {
    font-size: 16px; /* מונע זום באייפון */
  }

  .organization-card {
    margin-bottom: 0.5rem;
  }

  .card-body {
    padding: 0.625rem;
    gap: 0.5rem;
  }

  .save-btn, .modern-submit-btn {
    padding: 0.75rem 1rem;
    min-height: 44px;
  }
}

/* שיפור חוויית המשתמש */
.modern-form-wrapper,
.modern-edit-form-wrapper {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.form-container::-webkit-scrollbar {
  width: 4px;
}

.form-container::-webkit-scrollbar-track {
  background: transparent;
}

.form-container::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 2px;
}

.form-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,0.3);
}



/* ========= ביטול גלילה פנימית בטפסים ========= */
.form-container,
.modern-tab-pane,
.modern-form-wrapper,
.modern-form {
  overflow: visible !important;   /* מסיר overflow:auto */
  max-height: none !important;    /* מבטל הגבלת גובה */
  height: auto !important;        /* מבטל height:100% שהוסיף גלילה */
}

/* ========== עיצוב כפתורי ההרחבה והסגירה ========== */
.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.modern-control-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.modern-control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.modern-control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.modern-control-btn:hover::before {
    transform: scale(1);
}

.modern-control-btn:active {
    transform: scale(0.95);
}

.modern-control-btn i {
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.expand-btn:hover i {
    transform: rotate(180deg);
}

/* ========== מצב הרחבה מלאה ========== */
.modern-offcanvas.expanded {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    transform: translateX(0) !important;
    border-radius: 0 !important;
    z-index: 9999 !important;
}

/* במצב הרחבה - הסתרת הbackdrop */
.offcanvas-backdrop.expanded-mode {
    display: none !important;
}

/* אנימציה חלקה למעבר למצב הרחבה */
.modern-offcanvas {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* במצב הרחבה - התאמת התוכן */
.modern-offcanvas.expanded .modern-offcanvas-body {
    height: calc(100vh - 200px);
}

.modern-offcanvas.expanded .modern-tab-content {
    overflow-y: auto;
    max-height: none;
}

/* התאמות נוספות למצב הרחבה */
.modern-offcanvas.expanded .content-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* אייקון במצב כווץ */
.expand-btn.contracted i::before {
    content: "\f066"; /* fa-compress */
}

/* הודעת הנחיה קטנה */
.expand-hint {
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 5px;
    z-index: 1001;
}

.modern-control-btn:hover .expand-hint {
    opacity: 1;
    visibility: visible;
}

/* התאמות למובייל */
@media (max-width: 768px) {
    .modern-control-btn {
        width: 32px;
        height: 32px;
    }

    .modern-control-btn i {
        font-size: 0.8rem;
    }

    .header-controls {
        gap: 6px;
    }
}

/* ========== אפקטים ויזואליים נוספים ========== */
.modern-offcanvas.expanding {
    animation: expandOffcanvas 0.4s ease-out;
}

.modern-offcanvas.contracting {
    animation: contractOffcanvas 0.4s ease-out;
}

@keyframes expandOffcanvas {
    from {
        width: 520px;
        height: 100vh;
    }
    to {
        width: 100vw;
        height: 100vh;
    }
}

@keyframes contractOffcanvas {
    from {
        width: 100vw;
        height: 100vh;
    }
    to {
        width: 520px;
        height: 100vh;
    }
}

/* התאמות לנגישות */
.modern-control-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* אפקט ריפל בלחיצה */
.modern-control-btn.ripple {
    position: relative;
    overflow: hidden;
}

.modern-control-btn.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.modern-control-btn.ripple:active::after {
    width: 40px;
    height: 40px;
}



/* ========== תיקון z-index ל-SweetAlert2 במצב הרחבה ========== */

/* הוסף את הקוד הזה בסוף style.css */

/* ========== תיקון z-index ל-SweetAlert2 במצב הרחבה ========== */

/* מחלקה מיוחדת ל-SweetAlert במצב הרחבה */
.swal2-container.swal-expanded-mode {
    z-index: 10000 !important; /* גבוה יותר מה-offcanvas המורחב (9999) */
}

/* ודא שגם ה-backdrop של SweetAlert יהיה בz-index נכון */
.swal2-container.swal-expanded-mode .swal2-backdrop-show {
    z-index: 10000 !important;
}

/* שיפורים נוספים ל-SweetAlert במצב הרחבה */
.swal2-container.swal-expanded-mode .swal2-popup {
    position: relative;
    z-index: 10001 !important; /* גבוה עוד יותר מה-container */
}

/* ודא שהאנימציות עובדות נכון גם במצב הרחבה */
.swal2-container.swal-expanded-mode.swal2-backdrop-show {
    background-color: rgba(0, 0, 0, 0.4) !important;
}

/* תמיכה בטוסטים של SweetAlert2 במצב הרחבה */
.swal2-container.swal2-toast.swal-expanded-mode {
    z-index: 10002 !important; /* עוד יותר גבוה לטוסטים */
}

/* ========== שיפורים נוספים לחוויית משתמש ========== */

/* וידוא שכל הpopups של SweetAlert יהיו מעל הoffcanvas המורחב */
.swal2-container {
    transition: z-index 0.3s ease;
}

/* אנימציות חלקות יותר */
.swal2-container.swal-expanded-mode .swal2-popup {
    animation-duration: 0.3s;
}

/* שיפור contrast של הbackdrop במצב הרחבה */
.swal2-container.swal-expanded-mode.swal2-backdrop-show {
    backdrop-filter: blur(2px);
}

/* התאמות למובייל במצב הרחבה */
@media (max-width: 768px) {
    .swal2-container.swal-expanded-mode .swal2-popup {
        width: 90% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    .swal2-container.swal-expanded-mode .swal2-title {
        font-size: 1.2rem !important;
    }

    .swal2-container.swal-expanded-mode .swal2-content {
        font-size: 0.9rem !important;
    }
}

/*------------------------------------------------------*/
/*עיצוב כפתור איפוס לטבלאות Datatables*/
.reset-filters-modern-btn {
  background-color: #e0ecff;
  color: #0a58ca;
  border: 1px solid #a5c5f9;
  border-radius: 30px;
  padding: 7px 18px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(0, 91, 187, 0.1);
  transition: all 0.2s ease;
}
.reset-filters-modern-btn:hover {
  background-color: #c5dcfa;
  color: #06357a;
  border-color: #90b8f7;
}
/*--------------------------------------------------*/
/* === סרגל פילטר תחתון מודרני === */

/* === סרגל פילטר תחתון מודרני - תיקון גובה === */

/* איפוס בסיסי */
.bottom-filters-bar *,
.bottom-filters-bar *:before,
.bottom-filters-bar *:after {
  all: unset;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  direction: rtl;
}

/* סרגל הפילטרים הראשי */
.bottom-filters-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px; /* גובה קבוע כשהסרגל מכווץ */
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: height 0.3s ease-in-out;
  z-index: 1050;
  direction: rtl;
  display: flex;
  align-items: center;
}

/* הרחבת הסרגל ב-hover או עם קלאס ייעודי */
.bottom-filters-bar:hover,
.bottom-filters-bar.force-open {
  height: 60px; /* גובה קבוע ומחושב למצב מורחב */
                  /* התאם ערך זה אם יש צורך ביותר/פחות גובה */
                  /* לדוגמה, אם יש לך גם כפתור איפוס בולט, ייתכן שתצטרך מעט יותר גובה */
}

/* תוכן הפילטרים */
.bottom-filters-content {
  width: 100%;
  padding: 6px 15px;
  display: flex;
  gap: 15px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  height: 100%;
}

/* עיצוב לכל "תא" פילטר */
.bottom-filters-content > th {
  display: flex;
  align-items: center;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 180px;
  min-width: 150px;
}

/* עיצוב שדות הקלט */
.bottom-filters-content select,
.bottom-filters-content input[type="text"] {
  width: 100%;
  padding: 6px 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #333333;
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  display: block;
}

.bottom-filters-content select:focus,
.bottom-filters-content input[type="text"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.2);
  background-color: #ffffff;
}

.bottom-filters-content select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.6rem center;
  background-size: 14px 10px;
  padding-left: 2rem;
}

/* עיצוב לכפתור איפוס */
.bottom-filters-bar .reset-filters-modern-btn {
  margin-right: auto;
  margin-left: 10px;
  align-self: center;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #007bff;
  background-color: transparent;
  border: 1px solid #007bff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  flex-shrink: 0;
}

.bottom-filters-bar .reset-filters-modern-btn:hover {
  background-color: rgba(0, 123, 255, 0.05);
  color: #0056b3;
  border-color: #0056b3;
}

.bottom-filters-bar .reset-filters-modern-btn i {
  font-size: 0.85em;
  margin-left: 5px;
}

.bottom-filters-bar::after {
  display: none;
}

/* התאמה למסכים קטנים */
@media (max-width: 768px) {
  .bottom-filters-bar:hover,
  .bottom-filters-bar.force-open {
     /* גם במובייל, נשתמש בגובה קבוע מחושב או בגובה אוטומטי עם max-height */
     /* אם 60px קבוע עובד טוב, אפשר להשאיר גם כאן או להגדיל מעט */
     height: 70px; /* לדוגמה, אם רוצים מעט יותר מקום במובייל כשהוא פתוח */
     max-height: 40vh; /* בכל מקרה, הגבלה כדי שלא יתפוס יותר מדי מהמסך */
  }

  /* אם הגובה המורחב קבוע, אולי אין צורך ב-max-height ב-hover כאן, */
  /* אלא אם כן רוצים התנהגות שונה לגמרי במובייל. */
  /* ה-max-height הכללי (40vh) עדיין יכול להיות שימושי למקרה של תוכן גולש. */

  .bottom-filters-content {
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    padding: 10px 15px;
    gap: 10px;
  }

  .bottom-filters-content > th {
    flex-basis: auto;
    min-width: 0;
    width: 100%;
  }

   .bottom-filters-content select {
    background-position: left 0.75rem center;
  }
}
/*------------------------------------------------------*/
/*ספינר וtoast בadmin_dashboard לאחר פילטור או פעולות אישור ודחייה*/

.field-container {
    position: relative;
    display: block;
    width: 100%; /* הוספה - שמירה על רוחב מלא */
}

.field-loading-dot {
    position: absolute;
    left: 35px; /* שינוי מ-left ל-right עבור עברית */
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #e8f4fd;
    border-top: 2px solid #1976d2;
    border-radius: 50%;
    animation: fieldSpin 0.9s ease-in-out infinite;
    display: none;
    z-index: 10;
    pointer-events: none; /* כדי שלא יפריע ללחיצה על השדה */
}

.rtl .field-loading-dot {
    right: 35px;
    left: auto;
}

@keyframes fieldSpin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.form-select.is-loading {
    background-color: #f8fbff;
    border-color: #bbdefb;
    cursor: wait;
    padding-left: 50px; /* מקום לספינר */
    color: #757575;
    transition: all 0.3s ease;
}

.rtl .form-select.is-loading {
    padding-right: 50px;
    padding-left: 12px;
}

.status-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
}

.status-toast.show {
    top: 25px;
    transform: translateX(-50%);
    opacity: 1;
    visibility: visible;
}

.status-toast.hide {
    top: -100px;
    opacity: 0;
    visibility: hidden;
}

.toast-spinner {
    width: 12px;
    height: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-top: 1.5px solid white;
    border-radius: 50%;
    animation: toastSpin 0.8s linear infinite;
    flex-shrink: 0; /* כדי שלא יתכווץ */
}

@keyframes toastSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.reset-filters-modern-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.reset-filters-modern-btn:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    color: white;
}

/* רספונסיביות למובייל */
@media (max-width: 768px) {
    .field-loading-dot {
        width: 14px;
        height: 14px;
        left: 30px; /* שינוי מ-right ל-left */
    }


    .rtl .field-loading-dot {
        right: 30px; /* שינוי מ-left ל-right */
        left: auto;
    }

    .status-toast {
        padding: 12px 18px;
        font-size: 13px;
        border-radius: 10px;
        max-width: 90%;
    }

    .form-select.is-loading {
        padding-left: 45px; /* שינוי מ-padding-right ל-padding-left */
    }

    .rtl .form-select.is-loading {
        padding-right: 45px; /* שינוי מ-padding-left ל-padding-right */
        padding-left: 12px;
    }
}
/* ==========================================
   עיצוב מודרני מלא לטופס עריכת משתמש בOffcanvas
   ========================================== */

/* Form Wrapper עם אנימציה */
.modern-edit-form-wrapper {
  padding: 0;
  max-width: 100%;
  animation: fadeInUp 0.4s ease-out;
  overflow: visible;
  max-height: none;
}

.modern-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* כותרת הטופס */
.form-header {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.header-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-blue), #0a58ca);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  flex-shrink: 0;
}

.header-icon i {
  font-size: 1.4rem;
}

.header-content {
  flex: 1;
}

.form-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.2;
}

.form-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.4;
}

/* כותרות קטגוריות */
.section-title {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #212529;
  margin: 0.5rem 0;
  border-left: 3px solid #0d6efd;
  font-size: 0.9rem;
}

.section-title i {
  color: #0d6efd;
  font-size: 1.1rem;
}

/* רשת שדות הטופס */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

/* קבוצת שדות מודרנית */
.modern-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #212529;
  font-size: 0.95rem;
}

.field-label i {
  color: #0d6efd;
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

/* שדות קלט מודרניים */
.modern-field-input,
.org-select,
.scholarship-select,
.hours-input,
.year-select-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: #212529;
  font-family: inherit;
}

.modern-field-input:focus,
.org-select:focus,
.scholarship-select:focus,
.hours-input:focus,
.year-select-input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.modern-field-input::placeholder {
  color: #6c757d;
  opacity: 0.7;
}

/* שגיאות שדות */
.field-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  padding: 0.5rem;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
  border-radius: 6px;
}

.field-error i {
  font-size: 0.8rem;
}

/* ==========================================
   קטע הארגונים - עיצוב מלא ללא scroll
   ========================================== */

.organizations-section {
  background: white;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  overflow: visible;
  max-width: 100%;
  position: relative;
}

/* בחירת שנה */
.year-selection {
  background: #f8f9fa;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #dee2e6;
  flex-wrap: wrap;
}

.year-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  color: #212529;
  white-space: nowrap;
  font-size: 0.85rem;
}

.year-label i {
  color: #0d6efd;
  font-size: 0.75rem;
}

.year-select-input {
  flex: 1;
  max-width: 150px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: white;
  font-size: 0.85rem;
}

/* תוכן הארגונים - ללא scroll bar */
.organizations-content {
  padding: 0.75rem;
  max-height: none;
  overflow: visible;
}

/* כרטיס ארגון */
.organization-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  max-width: 100%;
}

.organization-card:hover {
  border-color: rgba(13, 110, 253, 0.3);
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

/* כותרת כרטיס */
.card-header {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 7px 7px 0 0;
}

.org-number {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.org-number::before {
  content: '🏢';
  font-size: 0.85rem;
}

/* כפתור הסרה */
.remove-org-btn {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.7rem;
}

.remove-org-btn:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* תוכן כרטיס */
.card-body {
  padding: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 0.5rem;
}

/* ספציפית לעריכת משתמש - 3 עמודות */
.modern-edit-form .card-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
}

.container-fluid .card-body {
  display: block;
  grid-template-columns: none;
  gap: 0;
}

.settings-page-wrapper .card-body  {
    display: unset;
    grid-template-columns: unset;
}

/* תוויות */
.org-label,
.hours-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  color: #212529;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.org-label i,
.hours-label i {
  color: #0d6efd;
  font-size: 0.7rem;
  width: 12px;
  text-align: center;
}

/* שדות בכרטיס */
.org-select,
.scholarship-select,
.hours-input {
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.org-select:focus,
.scholarship-select:focus,
.hours-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.1);
}

/* שדה השעות */
.hours-input {
  text-align: center;
  font-weight: 600;
  max-width: 80px;
}

/* כפתור הוספה */
.add-org-btn {
  width: 100%;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
  color: #198754;
  border: 1px dashed rgba(40, 167, 69, 0.3);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.add-org-btn:hover {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(40, 167, 69, 0.1));
  border-color: rgba(40, 167, 69, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.add-org-btn i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.add-org-btn:hover i {
  transform: rotate(90deg);
}

/* ==========================================
   כפתור שמירה וחתימה
   ========================================== */

.form-footer {
  background: white;
  border-radius: 12px;
}

.save-btn {
  width: 100%;
  background: linear-gradient(135deg, #198754, #157347);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.save-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
  background: linear-gradient(135deg, #157347, #146c43);
}

.save-btn:active:not(:disabled) {
  transform: translateY(0);
}

.save-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.loader-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: loaderSpin 1s linear infinite;
}

@keyframes loaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* הודעת אבטחה */
.security-notice {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.notice-icon {
  width: 40px;
  height: 40px;
  background: #0d6efd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.notice-icon i {
  font-size: 1.1rem;
}

.notice-content {
  flex: 1;
}

.notice-title {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0d6efd;
}

.notice-text {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.4;
}

/* ==========================================
   התאמות מובייל
   ========================================== */

@media (max-width: 768px) {
  .modern-edit-form {
    gap: 1.25rem;
  }

  .form-header {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .header-icon {
    width: 45px;
    height: 45px;
  }

  .header-icon i {
    font-size: 1.2rem;
  }

  .form-title {
    font-size: 1.2rem;
  }

  .form-subtitle {
    font-size: 0.9rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0.875rem;
  }

  .modern-field-input,
  .org-select,
  .scholarship-select,
  .hours-input,
  .year-select-input {
    padding: 0.75rem;
    font-size: 16px; /* מונע זום באייפון */
  }

  .year-selection {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .year-select-input {
    max-width: 100%;
  }

  .card-body {
    grid-template-columns: 1fr;
    gap: 0.375rem;
    padding: 0.375rem;
  }

  .organizations-content {
    padding: 0.5rem;
  }

  .organization-card {
    margin-bottom: 0.375rem;
  }

  .save-btn {
    padding: 0.875rem 1.25rem;
    min-height: 52px;
  }

  .security-notice {
    flex-direction: column;
    text-align: center;
    padding: 0.875rem;
  }

  .notice-icon {
    width: 36px;
    height: 36px;
    align-self: center;
  }

  .hours-input {
    max-width: 100%;
  }

  .remove-org-btn {
    width: 18px; /* הקטנה במובייל */
    height: 18px;
    font-size: 0.55rem;
  }
}

/* ==========================================
   עיצוב מותאם לselect
   ========================================== */

.org-select,
.scholarship-select,
.year-select-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 8px center;
  background-size: 10px;
  padding-left: 2rem;
  cursor: pointer;
}

.org-select:focus,
.scholarship-select:focus,
.year-select-input:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230d6efd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
}

/* שיפור עיצוב השדות */
.modern-field-input:valid {
  border-color: #198754;
}

.modern-field-input:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

/* עיצוב מיוחד לשדה מספר */
.hours-input {
  text-align: center;
  font-weight: 600;
}

.hours-input::-webkit-outer-spin-button,
.hours-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hours-input[type=number] {
  -moz-appearance: textfield;
}

/* ==========================================
   אנימציות ואפקטים ויזואליים
   ========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes highlightFlash {
  0%, 100% {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  }
  50% {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
  }
}

.changed {
  position: relative;
}

.changed::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, rgba(13, 110, 253, 0.1), transparent);
  border-radius: 8px;
  z-index: -1;
  animation: changeGlow 2s ease infinite;
  pointer-events: none;
}

@keyframes changeGlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.organization-card {
  position: relative;
}

.organization-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, #0a58ca);
  border-radius: 8px 8px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.organization-card:hover::before {
  opacity: 1;
}

/* אנימציה לכרטיסי ארגון חדשים */
.organization-card.new-card {
  animation: slideInFromTop 0.4s ease-out;
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* שיפורי נגישות */
.modern-field-input:focus-visible,
.org-select:focus-visible,
.scholarship-select:focus-visible,
.hours-input:focus-visible,
.year-select-input:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.save-btn:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.remove-org-btn:focus-visible,
.add-org-btn:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* אנימציה מיוחדת לכפתור השמירה */
.save-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.save-btn:hover::before {
  left: 100%;
}

/* מצב success לכפתור */
.save-btn.success {
  background: linear-gradient(135deg, #198754, #157347);
  animation: successPulse 0.6s ease;
}

@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* מצב loading לכפתור */
.save-btn.loading .btn-content {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.save-btn.loading .btn-loader {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* שיפור hover effects */
.modern-field-input:hover:not(:focus) {
  border-color: rgba(13, 110, 253, 0.3);
}

.org-select:hover:not(:focus),
.scholarship-select:hover:not(:focus),
.hours-input:hover:not(:focus),
.year-select-input:hover:not(:focus) {
  border-color: rgba(13, 110, 253, 0.3);
}

/* שיפור תצוגת הטקסט */
.field-label span,
.org-label span,
.hours-label span,
.year-label span {
  user-select: none;
}

/* אפקט focus חכם */
.modern-form-group:focus-within .field-label i,
.modern-form-group:focus-within .org-label i,
.modern-form-group:focus-within .hours-label i {
  color: #0d6efd;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

/* שיפור מצב disabled */
.modern-field-input:disabled,
.org-select:disabled,
.scholarship-select:disabled,
.hours-input:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}

/* אינדיקטור מונה ארגונים */
.organizations-section[data-count]::after {
  content: attr(data-count) ' ארגונים';
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 1;
}

/* הבטחת עקביות בעיצוב */
* {
  box-sizing: border-box;
}

/* תיקון לעיצוב הספציפי של הטופס */
.modern-edit-form input[type="hidden"] {
  display: none !important;
}

/* שמירה על האספקט הוויזואלי */
.modern-edit-form-wrapper .form-control,
.modern-edit-form-wrapper .form-select {
  border-radius: 8px !important;
  border-width: 2px !important;
  transition: all 0.3s ease !important;
}

/* הגדרות מיוחדות לעיצוב RTL */
[dir="rtl"] .org-select,
[dir="rtl"] .scholarship-select,
[dir="rtl"] .year-select-input {
  background-position: right 8px center;
  padding-right: 2rem;
  padding-left: 0.75rem;
}

/* הבטחת תאימות עם Bootstrap */
.modern-edit-form .btn:not(.save-btn):not(.add-org-btn):not(.remove-org-btn) {
  all: revert;
}

/* ביטול גלילה פנימית */
.modern-edit-form-wrapper,
.modern-edit-form,
.organizations-content {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

/* שיפור תמיכה במצב הרחבה */
.modern-offcanvas.expanded .modern-edit-form-wrapper {
  max-width: 1000px; /* הגבלת רוחב במצב הרחבה */
  margin: 0 auto;
  padding: 0 1rem;
}

/* אופטימיזציה לביצועים */
.organization-card,
.modern-field-input,
.save-btn {
  will-change: transform, opacity;
}

/* תמיכה במצב כהה (אם יידרש בעתיד) */
@media (prefers-color-scheme: dark) {
  .modern-edit-form-wrapper {
    /* צבעים קבועים במקום variables */
    --text-dark: #e9ecef;
    --text-muted: #adb5bd;
    --border-color: #495057;
    --light-gray: #343a40;
  }
}
/*------------------------------------------------------*/
/*עיצוב ספינר בהעלאת קובץ אקסל*/
#upload-btn.loading {
    cursor: wait;
    pointer-events: none;
    filter: brightness(0.97) saturate(1.1);
    transition: box-shadow 0.4s, filter 0.4s;
}

#upload-btn .btn-spinner {
    align-items: center;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    font-size: 1.1em;
    transition: opacity 0.3s;
}

#upload-btn .waiting-text {
    animation: fadeInOut 2s linear infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}
/*-------------------------------------------------------*/
/*עיצוב פילטרים טבלאות Datatables*/
/* סטיילים מתוקנים לאינדיקטורי פילטרים פעילים */
.filter-table th {
    position: relative;
}

/* אינדיקטור פילטר פעיל - ללא אייקון ✓ */
.filter-active-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border: 2px solid white;
    border-radius: 50%;
    z-index: 15;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
    animation: pulse-green 2s infinite;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.filter-active-indicator.show {
    opacity: 1;
    transform: scale(1);
}

/* אנימציית דופק ירוק */
@keyframes pulse-green {
    0% {
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4), 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4), 0 0 0 8px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4), 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* עיצוב מיוחד לשדות פילטר פעילים */
.filter-table input.filter-active {
    border: 2px solid #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(32, 201, 151, 0.08)) !important;
}

.filter-table input.filter-active::placeholder {
    color: #28a745 !important;
    opacity: 0.8;
    font-weight: 500;
}

/* עיצוב מיוחד ל-Select2 פעיל */
.filter-table .select2-container--bootstrap-5.filter-active .select2-selection--single {
    border: 2px solid #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(32, 201, 151, 0.08)) !important;
}

.filter-table .select2-container--bootstrap-5.filter-active .select2-selection__rendered {
    color: #28a745 !important;
    font-weight: 600;
}

/* סגירת dropdown של Select2 אחרי בחירה */
.filter-table .select2-container--bootstrap-5 .select2-dropdown {
    z-index: 9999;
}

/* אפקט hover משופר לפילטרים פעילים */
.filter-table input.filter-active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

.filter-table .select2-container--bootstrap-5.filter-active:hover .select2-selection {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

/* עיצוב מיוחד לכפתור איפוס פילטרים */
.reset-filters-modern-btn {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
    animation: pulse-orange 3s infinite;
}

.reset-filters-modern-btn:hover {
    background: linear-gradient(135deg, #e0a800, #e8590c) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(255, 193, 7, 0.5);
    color: white !important;
}

.reset-filters-modern-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5) !important;
    color: white !important;
}

/* אנימציית דופק כתום לכפתור איפוס */
@keyframes pulse-orange {
    0% {
        box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 3px 15px rgba(255, 193, 7, 0.6);
    }
    100% {
        box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
    }
}

/* תווית מספר פילטרים פעילים */
.active-filters-count {
    position: fixed;
    top: 70px;
    left: 60px;
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.4);
    z-index: 1050;
    opacity: 0;
    transform: translateX(-30px) scale(0.8);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.active-filters-count.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.active-filters-count i {
    margin-left: 8px;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* רספונסיביות */
@media (max-width: 768px) {
    .filter-active-indicator {
        width: 14px;
        height: 14px;
        top: -6px;
        right: -6px;
    }

    .active-filters-count {
        top: 8px;
        left: 8px;
        font-size: 12px;
        padding: 8px 12px;
        border-radius: 20px;
    }
}

/* עיצוב לתאריכון פעיל */
.date-range-wrapper.filter-active input {
    border: 2px solid #28a745 !important;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(32, 201, 151, 0.08)) !important;
}





/* אפקט מיוחד לכותרות עמודות עם פילטר פעיל */
.filter-table th.has-active-filter {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(32, 201, 151, 0.08));
    position: relative;
}

.filter-table th.has-active-filter::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(135deg, #28a745, #20c997);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        opacity: 0.6;
        background: linear-gradient(135deg, #28a745, #20c997);
    }
    50% {
        opacity: 1;
        background: linear-gradient(135deg, #20c997, #28a745);
    }
    100% {
        opacity: 0.6;
        background: linear-gradient(135deg, #28a745, #20c997);
    }
}

/* תיקון לבעיות עם select2 שנשאר פתוח */
.select2-container--open .select2-dropdown {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* הסתרת dropdown כשלא נחוץ */
.select2-container--bootstrap-5 .select2-dropdown--below {
    border-top: none;
}

/* וידוא שה-select2 נסגר אחרי בחירה */
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/*-------------------------------*/
/*תיקון card-body עבור דשבורד סטודנט*/
.card-body2 {
    flex: 1 1 auto;
    padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
    color: var(--bs-card-color);
}
/*--------------------------------------------------*/
/* CSS עיצוב תצוגת מלגות וארגונים מודרני - all_users */

/* קונטיינר ראשי */
.scholarships-organizations-display-all-users {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
}

/* קבוצת מלגה */
.scholarship-group-all-users {
    border-radius: 8px;
    border: 1px solid transparent;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* כותרת המלגה - צבעי קידוד */
.scholarship-header-all-users {
    padding: 6px 10px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.scholarship-icon-all-users {
    font-size: 0.8rem;
    opacity: 0.9;
}

.scholarship-name-all-users {
    flex: 1;
}

.org-count-badge-all-users {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
}

/* צבעי קידוד למלגות */
.scholarship-group-all-users[data-scholarship*="מנהלת הדיור"] .scholarship-header-all-users {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #4CAF50;
}

.scholarship-group-all-users[data-scholarship*="מעונות"] .scholarship-header-all-users {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border-color: #2196F3;
}

.scholarship-group-all-users[data-scholarship*="מעורבות חברתית"] .scholarship-header-all-users {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border-color: #FF9800;
}

/* צבעי גבול לקבוצת המלגה */
.scholarship-group-all-users[data-scholarship*="מנהלת הדיור"] {
    border-color: #4CAF50;
    border-left: 3px solid #4CAF50;
}

.scholarship-group-all-users[data-scholarship*="מעונות"] {
    border-color: #2196F3;
    border-left: 3px solid #2196F3;
}

.scholarship-group-all-users[data-scholarship*="מעורבות חברתית"] {
    border-color: #FF9800;
    border-left: 3px solid #FF9800;
}

/* אפקט הובר לקבוצת מלגה */
.scholarship-group-all-users:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* קונטיינר הארגונים תחת המלגה */
.scholarship-organizations-all-users {
    padding: 8px 10px;
    background: #fafbfc;
}

/* פריט ארגון בודד תחת מלגה */
.org-item-in-scholarship-all-users {
    padding: 4px 0;
}

.org-content-all-users {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 24px;
}

/* שם הארגון */
.org-content-all-users .org-name {
    font-weight: 500;
    font-size: 0.85rem;
    color: #2c3e50;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

/* תגיות השנים - מקרה כללי */
.org-content-all-users .years-badges {
    display: flex;
    gap: 3px;
    align-items: flex-start;
    flex-shrink: 0;
    max-width: 150px;
}

/* אם יש רק badge אחד - שורה אחת */
.org-content-all-users .years-badges:has(.badge:only-child) {
    flex-wrap: nowrap;
    align-items: center; /* מרכז יחיד באותה שורה */
}

/* אם יש יותר מ-badge אחד - ערימה */
.org-content-all-users .years-badges:not(:has(.badge:only-child)) {
    flex-wrap: wrap;
    flex-direction: column; /* ערימה אנכית */
    align-items: flex-start; /* יישור לימין */
    gap: 2px; /* פער קטן יותר בין badges בערימה */
}

/* עיצוב הbadges */
.org-content-all-users .years-badges .badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* התאמה למובייל - עדכון */
@media (max-width: 768px) {
    .scholarship-header-all-users {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    .org-content-all-users {
        flex-direction: row;
        align-items: flex-start;
        gap: 6px;
    }

    .org-content-all-users .org-name {
        font-size: 0.8rem;
        flex: 1;
    }

    .org-content-all-users .years-badges {
        flex-shrink: 0;
        max-width: 120px;
    }

    .org-content-all-users .years-badges .badge {
        font-size: 0.65rem;
        padding: 1px 4px;
    }

    /* במובייל - גם ערימות של badges יהיו קומפקטיות יותר */
    .org-content-all-users .years-badges:not(:has(.badge:only-child)) {
        gap: 1px;
    }
}
/* אם תרצה, אפשר להחליף במשהו שלא דורס את הצבעים הספציפיים: */
.scholarships-organizations-display-all-users:has(.scholarship-group-all-users:only-child) .scholarship-group-all-users:not([data-scholarship*="מנהלת הדיור"]):not([data-scholarship*="מעונות"]):not([data-scholarship*="מעורבות חברתית"]) .scholarship-header-all-users {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.scholarships-organizations-display-all-users:has(.scholarship-group-all-users:only-child) .scholarship-group-all-users:not([data-scholarship*="מנהלת הדיור"]):not([data-scholarship*="מעונות"]):not([data-scholarship*="מעורבות חברתית"]) {
    border-left-color: #6c757d;
}

/* אנימציה קלה לטעינה */
.scholarship-group-all-users {
    animation: slideInFromLeft-all-users 0.3s ease-out;
}

@keyframes slideInFromLeft-all-users {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* עיצוב מיוחד לטבלה ברגע הובר על השורה */
tr:hover .scholarship-group-all-users {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* התאמת עמודת הטבלה */
td:has(.scholarships-organizations-display-all-users) {
    vertical-align: top;
    padding: 8px 12px;
}

/* מצב ריק או שגיאה */
.scholarships-organizations-display-all-users:empty::after {
    content: "אין נתוני מלגות";
    color: #6c757d;
    font-style: italic;
    font-size: 0.85rem;
}
/*------------------------------------------------------------------------*/
/* CSS מודרני לכפתורי Toggle מלגות - all_users */

.scholarships-filter-section-all-users {
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.scholarships-filter-container-all-users {
    max-width: 100%;
}

/* כותרת הפילטר - מרכוז אמיתי עם Grid */
.filter-header-all-users {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* 3 עמודות: ריק, תוכן, מונה */
    align-items: center;
    margin-bottom: 12px;
}

.filter-title-all-users {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    justify-content: center; /* מרכוז בעמודה האמצעית */
    grid-column: 2; /* ממוקם בעמודה האמצעית */
}

.filter-counter-all-users {
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #6c757d;
    transition: all 0.3s ease;
    grid-column: 3; /* ממוקם בעמודה השלישית */
    justify-self: end; /* יישור לסוף העמודה */
}

.filter-counter-all-users.has-filter {
    background: #007bff;
    color: white;
}

/* קונטיינר הכפתורים - מרכוז */
.scholarships-toggles-all-users {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* מרכוז הכפתורים */
}

/* עיצוב בסיסי לכפתורי Toggle */
.scholarship-toggle-all-users {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid transparent;
    border-radius: 25px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    overflow: hidden;
}

.scholarship-toggle-all-users:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.scholarship-toggle-all-users .toggle-icon-all-users {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.scholarship-toggle-all-users .toggle-text-all-users {
    white-space: nowrap;
}

/* כפתור "בחר הכל" - צבע סגול ייחודי */
.scholarship-toggle-all-users.all-scholarships-all-users {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    border-color: #8e44ad;
}

.scholarship-toggle-all-users.all-scholarships-all-users.active {
    background: linear-gradient(135deg, #6c63ff, #5a52d1);
    border-color: #6c63ff;
    box-shadow: 0 3px 6px rgba(108, 99, 255, 0.3);
}

/* כפתור מנהלת הדיור */
.scholarship-toggle-all-users.scholarship-dormitory-all-users {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    color: #2d5a2d;
    border-color: #c3e6c3;
}

.scholarship-toggle-all-users.scholarship-dormitory-all-users.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #4CAF50;
    box-shadow: 0 3px 6px rgba(76, 175, 80, 0.3);
}

/* כפתור מעונות */
.scholarship-toggle-all-users.scholarship-residence-all-users {
    background: linear-gradient(135deg, #e3f2fd, #f0f8ff);
    color: #1565c0;
    border-color: #bbdefb;
}

.scholarship-toggle-all-users.scholarship-residence-all-users.active {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border-color: #2196F3;
    box-shadow: 0 3px 6px rgba(33, 150, 243, 0.3);
}

/* כפתור מעורבות חברתית */
.scholarship-toggle-all-users.scholarship-social-all-users {
    background: linear-gradient(135deg, #fff3e0, #fdf6f0);
    color: #e65100;
    border-color: #ffcc02;
}

.scholarship-toggle-all-users.scholarship-social-all-users.active {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border-color: #FF9800;
    box-shadow: 0 3px 6px rgba(255, 152, 0, 0.3);
}

/* אפקט רחף מתקדם */
.scholarship-toggle-all-users.active .toggle-icon-all-users {
    opacity: 1;
    transform: scale(1.1);
}

/* סטטוס הפילטר - מרכוז */
.filter-status-all-users {
    margin-top: 10px;
    text-align: center;
}

.filter-status-all-users small {
    font-style: italic;
}

/* אנימציות */
@keyframes pulse-all-users {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.scholarship-toggle-all-users.active {
    animation: pulse-all-users 0.3s ease-in-out;
}

/* התאמה למובייל */
@media (max-width: 768px) {
    .scholarships-filter-section-all-users {
        padding: 12px 16px;
        margin-bottom: 15px;
    }

    .filter-header-all-users {
        display: flex; /* חזרה ל-flex במובייל */
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .filter-title-all-users {
        grid-column: unset; /* איפוס grid במובייל */
        justify-self: unset; /* איפוס grid במובייל */
        justify-content: center;
        flex: none;
    }

    .filter-counter-all-users {
        grid-column: unset; /* איפוס grid במובייל */
        justify-self: unset; /* איפוס grid במובייל */
    }

    .scholarships-toggles-all-users {
        gap: 6px;
        justify-content: center;
    }

    .scholarship-toggle-all-users {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .scholarship-toggle-all-users .toggle-text-all-users {
        display: none; /* הסתר טקסט במובייל */
    }

    .scholarship-toggle-all-users .toggle-icon-all-users {
        font-size: 1rem;
    }
}

/* אפקט loading */
.scholarships-filter-section-all-users.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.scholarships-filter-section-all-users.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin-all-users 1s linear infinite;
}

@keyframes spin-all-users {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/*----------------------------------------------------*/

/* CSS למרכוז אנכי של תכני הטבלה - all_users */

/* מרכוז אנכי עבור כל התאים בטבלת המשתמשים */
#users_table tbody td {
    vertical-align: middle !important;
}

/* ודא שגם הכותרות ממורכזות אנכית */
#users_table thead th {
    vertical-align: middle !important;
}

/* מרכוז מיוחד עבור עמודת הארגונים שיש בה תוכן גבוה */
#users_table tbody td:nth-child(6) {
    vertical-align: middle !important;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* מרכוז עבור כל העמודות האחרות */
#users_table tbody td:not(:nth-child(6)) {
    vertical-align: middle !important;
    text-align: center;
}

/* מרכוז מיוחד עבור עמודת הניהול (הכפתורים) */
#users_table tbody td:last-child {
    vertical-align: middle !important;
    text-align: center;
}

/* ודא שגם תכני השורות ממורכזים */
#users_table tbody tr {
    vertical-align: middle;
}

/* התאמה למובייל */
@media (max-width: 768px) {
    #users_table tbody td {
        vertical-align: middle !important;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* מרכוז עבור תאי הסינון גם כן */
#users_table thead .filter-table th {
    vertical-align: middle !important;
}

/* עבור הסרגל התחתון */
#filterTableClone th {
    vertical-align: middle !important;
}


/*!*------------------------------------------------*!*/
/*שיפור עיצוב all_users*/

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-responsive {
    animation: fadeInUp 0.6s ease-out;
}

.scholarships-filter-section-all-users {
    animation: fadeInUp 0.4s ease-out;
}

.page-main-title-area {
    animation: fadeInUp 0.3s ease-out;
}

/* אפקט loading משופר */
.scholarships-filter-section-all-users.loading::after {
    border-top-color: #667eea;
}

/* שיפורים נבחרים - רק טבלה וסרגל תחתון */

/*!* =====================================================*/
/*   1. עיצוב הטבלה - עיגולים, צללים ואפקט hover*/
/*===================================================== *!*/

/*.table-responsive {*/
/*    background: white;*/
/*    border-radius: 15px;*/
/*    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);*/
/*    overflow: hidden;*/
/*    margin-bottom: 30px;*/
/*}*/

/*#users_table {*/
/*    margin-bottom: 0;*/
/*    border: none;*/
/*}*/

/* עיצוב שורות הטבלה - אפקט hover */
#users_table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

#users_table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/*#users_table tbody td {*/
/*    border: none;*/
/*}*/

/*#users_table thead th {*/
/*    border: none;*/
/*}*/

/* =====================================================
    עיצוב הסרגל התחתון
===================================================== */
/* סרגל פילטרים תחתון מתקפל */
.filter-bottom-bar {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    box-shadow: 0 -4px 16px rgba(44, 62, 80, 0.2);
    border-radius: 15px 15px 0 0;
    padding: 10px 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;


    /* התחלה עם רק קצה עליון מוצג */
    transform: translateY(calc(100% - 25px));
    transition: transform 0.3s ease-in-out;
    min-height: 80px;
}

/* כאשר הסרגל פעיל והמשתמש מעליו - הוא נפתח */
.filter-bottom-bar.active:hover,
.filter-bottom-bar.active.force-open {
    transform: translateY(0);
}

/* כאשר הסרגל פעיל אבל המשתמש לא מעליו */
.filter-bottom-bar.active {
    transform: translateY(calc(100% - 25px));
}

/* אזור הטריגר - הקצה העליון */
.filter-bottom-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-radius: 15px 15px 0 0;
    cursor: pointer;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

/* אייקון חץ */
.filter-bottom-bar::after {
    content: '▲';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 12px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* החץ מסתובב כשפתוח */
.filter-bottom-bar.active:hover::after,
.filter-bottom-bar.active.force-open::after {
    transform: translateX(-50%) rotate(180deg);
}

/* תוכן הפילטרים */
.filter-bottom-bar #filterTableClone {
    margin-top: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-bottom-bar.active:hover #filterTableClone,
.filter-bottom-bar.active.force-open #filterTableClone {
    opacity: 1;
}

/* עיצוב שדות קיים... */
.filter-bottom-bar #filterTableClone th {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px;
}

.filter-bottom-bar #filterTableClone input,
.filter-bottom-bar #filterTableClone select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.filter-bottom-bar #filterTableClone input:focus,
.filter-bottom-bar #filterTableClone select:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.filter-bottom-bar #filterTableClone input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.filter-bottom-bar #filterTableClone select option {
    background: #2c3e50;
    color: white;
}

/* הסתרה במובייל */
@media (max-width: 768px) {
    .filter-bottom-bar {
        display: none;
    }
}

/* אפקט פעמון עדין */
.filter-bottom-bar.active:not(:hover):not(.force-open) {
    animation: gentle-pulse 3s infinite;
}

@keyframes gentle-pulse {
    0%, 100% {
        box-shadow: 0 -4px 16px rgba(44, 62, 80, 0.2);
    }
    50% {
        box-shadow: 0 -4px 20px rgba(44, 62, 80, 0.4);
    }
}

/* אפקט מיוחד לפילטרים פעילים */
.filter-bottom-bar.has-active-filters::before {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.filter-bottom-bar.has-active-filters::after {
    color: #fff;
    text-shadow: 0 0 4px rgba(255,255,255,0.5);
}


/* =================================
   🎨 עיצוב מודרני לשורת פילטרים
   ================================= */

/* שורת הפילטרים הכללית - עיצוב כהה כמו הסרגל התחתון */
.filter-table {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-bottom: 3px solid #34495e;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.2);
    position: relative;
    border-radius: 15px 15px 0 0;
}

.filter-table th {
    padding: 14px 10px !important;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    vertical-align: middle;
    position: relative;
    color: white;
}

/* שדות הקלט הכלליים */
.filter-table input[type="text"] {
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Select רגיל (לא Select2) */
.filter-table select:not(.select2-hidden-accessible) {
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    text-align: center;
    text-align-last: center;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* עיצוב Select2 - דריסה זהירה של הקיים */
.filter-table .select2-container--bootstrap-5 .select2-selection--single {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    height: 38px !important;
    transition: all 0.3s ease !important;
}

.filter-table .select2-container--bootstrap-5 .select2-selection__rendered {
    color: white !important;
    line-height: 34px !important;
}

.filter-table .select2-container--bootstrap-5 .select2-selection__arrow {
    height: 34px !important;
}

.filter-table .select2-container--bootstrap-5 .select2-selection__arrow b {
    border-color: white transparent transparent transparent !important;
}

/* פוקוס על שדות */
.filter-table input[type="text"]:focus,
.filter-table select:not(.select2-hidden-accessible):focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.filter-table .select2-container--bootstrap-5.select2-container--focus .select2-selection--single {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}

/* Placeholder styling */
.filter-table input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.filter-table .select2-container--bootstrap-5 .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.7) !important;

}

/* מצב פעיל של פילטר - משלב עם הקיים */
.filter-table input.filter-active {
    border: 2px solid #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(32, 201, 151, 0.08)) !important;
}

.filter-table input.filter-active::placeholder {
    color: #28a745 !important;
    opacity: 0.8;
    font-weight: 500;
}

/* עיצוב מיוחד ל-Select2 פעיל - דריסה של הקיים */
.filter-table .select2-container--bootstrap-5.filter-active .select2-selection--single {
    border: 2px solid #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(32, 201, 151, 0.08)) !important;
}

.filter-table .select2-container--bootstrap-5.filter-active .select2-selection__rendered {
    color: #28a745 !important;
    font-weight: 600 !important;
}

/* התא שמכיל פילטר פעיל */
.has-active-filter {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 6px;
}

/* עיצוב hover על התאים */
.filter-table th:hover:not(.has-active-filter) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    transition: background 0.2s ease;
    border-radius: 6px;
}

/* אפקט hover משופר לפילטרים פעילים */
.filter-table input.filter-active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

.filter-table .select2-container--bootstrap-5.filter-active:hover .select2-selection {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

/* אנימציות עדינות */
.filter-table input[type="text"],
.filter-table select,
.filter-table .select2-container {
    animation: filterFieldSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes filterFieldSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* אפקט loading עדין */
.filter-table.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    animation: filterLoading 1.5s infinite;
    z-index: 5;
}

@keyframes filterLoading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive design */
@media (max-width: 768px) {
    .filter-table th {
        padding: 10px 6px !important;
    }

    .filter-table input[type="text"],
    .filter-table select:not(.select2-hidden-accessible) {
        height: 34px;
        font-size: 12px;
        padding: 6px 8px;
        border-radius: 6px;
    }

    .filter-table .select2-container--bootstrap-5 .select2-selection--single {
        height: 34px !important;
        font-size: 12px !important;
    }
}

/* =================================
   🎨 עיצוב מודרני לשורת פילטרים
   ================================= */

/* שורת הפילטרים הכללית - עיצוב כהה כמו הסרגל התחתון */
.filter-table {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-bottom: 3px solid #34495e;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.2);
    position: relative;
    border-radius: 15px 15px 0 0;
}

.filter-table th {
    padding: 14px 10px !important;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    vertical-align: middle;
    position: relative;
    color: white;
}

/* שדות הקלט הכלליים */
.filter-table input[type="text"] {
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Select רגיל (לא Select2) */
.filter-table select:not(.select2-hidden-accessible) {
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* עיצוב Select2 - דריסה זהירה של הקיים */
.filter-table .select2-container--bootstrap-5 .select2-selection--single {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    height: 38px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.filter-table .select2-container--bootstrap-5 .select2-selection__rendered {
    color: white !important;
    line-height: normal !important;
    font-size: 13px !important;
    font-weight: normal !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: block !important;
}

.filter-table .select2-container--bootstrap-5 .select2-selection__arrow {
    height: 34px !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.filter-table .select2-container--bootstrap-5 .select2-selection__arrow b {
    border-color: white transparent transparent transparent !important;
}

/* פוקוס על שדות */
.filter-table input[type="text"]:focus,
.filter-table select:not(.select2-hidden-accessible):focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.filter-table .select2-container--bootstrap-5.select2-container--focus .select2-selection--single {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}

/* Placeholder styling */
.filter-table input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.filter-table .select2-container--bootstrap-5 .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* מצב פעיל של פילטר - משלב עם הקיים */
.filter-table input.filter-active {
    border: 2px solid #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(32, 201, 151, 0.08)) !important;
}

.filter-table input.filter-active::placeholder {
    color: #28a745 !important;
    opacity: 0.8;
    font-weight: 500;
}

/* עיצוב מיוחד ל-Select2 פעיל - דריסה של הקיים */
.filter-table .select2-container--bootstrap-5.filter-active .select2-selection--single {
    border: 2px solid #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(32, 201, 151, 0.08)) !important;
}

.filter-table .select2-container--bootstrap-5.filter-active .select2-selection__rendered {
    color: #28a745 !important;
    font-weight: 600 !important;
}

/* התא שמכיל פילטר פעיל */
.has-active-filter {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 6px;
}

/* עיצוב hover על התאים */
.filter-table th:hover:not(.has-active-filter) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    transition: background 0.2s ease;
    border-radius: 6px;
}

/* אפקט hover משופר לפילטרים פעילים */
.filter-table input.filter-active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

.filter-table .select2-container--bootstrap-5.filter-active:hover .select2-selection {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

/* אנימציות עדינות */
.filter-table input[type="text"],
.filter-table select,
.filter-table .select2-container {
    animation: filterFieldSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes filterFieldSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* אפקט loading עדין */
.filter-table.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    animation: filterLoading 1.5s infinite;
    z-index: 5;
}

@keyframes filterLoading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive design */
@media (max-width: 768px) {
    .filter-table th {
        padding: 10px 6px !important;
    }

    .filter-table input[type="text"],
    .filter-table select:not(.select2-hidden-accessible) {
        height: 34px;
        font-size: 12px;
        padding: 6px 8px;
        border-radius: 6px;
    }

    .filter-table .select2-container--bootstrap-5 .select2-selection--single {
        height: 34px !important;
        font-size: 12px !important;
    }
}

.select2-container--bootstrap-5 .select2-selection--single {
    padding: 0 30px 0 10px; /* ← שנה מ-unset */
    text-align: center; /* ← הוסף */
}

/* =================================
    סרגל פילטרים תחתון מתקפל
   ================================= */

.filter-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-top: 3px solid #34495e;
    border-radius: 15px 15px 0 0;
    max-height: 25px; /* גובה ברירת המחדל - צר */
    overflow: hidden;
}

/* מצב פעיל - הסרגל מופיע */
.filter-bottom-bar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* מצב פתוח (hover או פתיחה ידנית) */
.filter-bottom-bar.active:hover,
.filter-bottom-bar.force-open {
    max-height: 120px; /* גובה פתוח */
    transition: all 0.3s ease;
}

/* אפקט עם פילטרים פעילים */
.filter-bottom-bar.has-active-filters {
    border-top-color: #28a745;
    box-shadow: 0 -4px 20px rgba(40, 167, 69, 0.3);
}

.filter-bottom-bar.has-active-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997, #28a745);
    animation: activeFilterPulse 2s infinite;
}

/* התוכן של הסרגל */
.filter-bottom-bar .filter-table {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 15px;
    gap: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
}

.filter-bottom-bar .filter-table th {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    margin: 0;
    padding: 5px !important;
    border: none !important;
    background: transparent;
}

/* התאמה לשדות בסרגל התחתון */
.filter-bottom-bar input[type="text"],
.filter-bottom-bar select:not(.select2-hidden-accessible) {
    height: 32px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    width: 100%;
}

.filter-bottom-bar .select2-container--bootstrap-5 .select2-selection--single {
    height: 32px !important;
    font-size: 12px !important;
}

/* אזור ה-trigger לפתיחה */
.filter-bottom-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
}

/* הודעת עזרה */
.filter-bottom-bar:not(.force-open)::before {
    content: 'גלול או לחץ להצגת פילטרים';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}

/* הסתרת ההודעה כשהסרגל פתוח */
.filter-bottom-bar.active:hover::before,
.filter-bottom-bar.force-open::before {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* אנימציות */
@keyframes activeFilterPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .filter-bottom-bar {
        max-height: 20px;
    }

    .filter-bottom-bar.active:hover,
    .filter-bottom-bar.force-open {
        max-height: 100px;
    }

    .filter-bottom-bar .filter-table {
        padding: 8px 10px;
        gap: 8px;
    }

    .filter-bottom-bar .filter-table th {
        min-width: 100px;
        max-width: 150px;
    }

    .filter-bottom-bar input[type="text"],
    .filter-bottom-bar select:not(.select2-hidden-accessible) {
        height: 28px;
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* תמיכה במכשירים עם מסך מגע */
@media (hover: none) and (pointer: coarse) {
    .filter-bottom-bar {
        max-height: 35px; /* גובה גדול יותר במובייל */
    }

    .filter-bottom-bar.active:hover,
    .filter-bottom-bar.force-open {
        max-height: 110px;
    }
}

   /*=================================*/
/* תגיות מלגה בטבלה preview_upload - מבוסס על העיצוב מ-all_users */
.preview-upload-scholarship-badge-dormitory {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
    border: 1px solid #4CAF50;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.preview-upload-scholarship-badge-residence {
    background: linear-gradient(135deg, #2196F3, #1976D2) !important;
    color: white !important;
    border: 1px solid #2196F3;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.preview-upload-scholarship-badge-social {
    background: linear-gradient(135deg, #FF9800, #F57C00) !important;
    color: white !important;
    border: 1px solid #FF9800;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

/* אפקט hover עדין */
.preview-upload-scholarship-badge-dormitory:hover,
.preview-upload-scholarship-badge-residence:hover,
.preview-upload-scholarship-badge-social:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/*----------------------------*/
/*עבור admin_dashboard - מה מוצג בטבלה?*/
/* כפתור ההסבר */
.compact-explanation-btn {
    border-radius: 20px;
    padding: 6px 15px;
    background: linear-gradient(135deg, #17a2b8, #138496);
    border: none;
    color: white;
    transition: all 0.3s ease;
    font-size: 13px;
}

.compact-explanation-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(23, 162, 184, 0.3);
    color: white;
}

.compact-explanation-btn[aria-expanded="true"] {
    background: linear-gradient(135deg, #28a745, #218838);
}

/* מיכל ההסבר */
.compact-explanation-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
}

/* כרטיס מידע ראשי */
.main-info-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-right: 4px solid #17a2b8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* תגיות תכונות */
.feature-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.tag-scholarship {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.tag-organization {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.tag-year {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

/* דוגמה מהירה */
.quick-example {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-right: 4px solid #28a745;
}

.example-box {
    background: #e8f5e8;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.example-box ul {
    padding-right: 20px;
    font-size: 13px;
}

.example-box li {
    margin-bottom: 5px;
}

/* תגיות מלגות בדוגמה */
.scholarship-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;

}

.scholarship-dormitory-manager {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.scholarship-dormitories {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.scholarship-social-involvement {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

/* רשת מידע על הטבלה */
.table-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.info-item {
    background: white;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-item i {
    color: #6c757d;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-item strong {
    color: #2c3e50;
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
}

.info-item small {
    color: #6c757d;
    font-size: 11px;
    line-height: 1.3;
}

/* רספונסיביות */
@media (max-width: 768px) {
    .compact-explanation-container {
        padding: 15px;
    }

    .table-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .main-info-card {
        padding: 12px;
    }

    .quick-example {
        padding: 12px;
    }

    .feature-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 576px) {
    .compact-explanation-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .row.align-items-center .col-md-4 {
        margin-bottom: 10px;
    }
}


/* ========================================
   🎯 פתרון מעודכן: מרכז אמיתי עם Flex
======================================== */

/* עוטף את כל שורת הבקרה (כפתורים, הצג, חיפוש) */
div.dataTables_wrapper div.dt-container {
  display: flex !important;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* עיצוב בסיסי לכל שלושת האלמנטים */
div.dataTables_wrapper div.dataTables_length,
div.dataTables_wrapper div.dataTables_filter,
div.dataTables_wrapper div.dt-buttons {
  margin: 0 !important;
  padding: 0;
}

/* מיקום כפתורי הייצוא - בצד ימין */
div.dataTables_wrapper div.dt-buttons {
  order: 3;
}

/* מיקום האלמנט "הצג X פריטים" - באמצע */
div.dataTables_wrapper div.dataTables_length {
  order: 2;
  flex: 1 1 auto;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* מיקום שדה החיפוש - בצד שמאל */
div.dataTables_wrapper div.dataTables_filter {
  order: 1;
}




/*!* ===== טעינת הדף הראשית ===== *!*/
/*.admin-page-loader {*/
/*    position: fixed;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    z-index: 9999;*/
/*    transition: all 0.8s ease-out;*/
/*}*/

/*.admin-page-loader.fade-out {*/
/*    opacity: 0;*/
/*    transform: scale(0.9);*/
/*    pointer-events: none;*/
/*}*/

/*.loading-spinner-wrapper {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    gap: 30px;*/
/*}*/

/*!* ספינר מתקדם *!*/
/*.advanced-spinner {*/
/*    width: 80px;*/
/*    height: 80px;*/
/*    position: relative;*/
/*}*/

/*.spinner-ring {*/
/*    position: absolute;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    border: 4px solid transparent;*/
/*    border-radius: 50%;*/
/*    animation: spin 2s linear infinite;*/
/*}*/

/*.spinner-ring:nth-child(1) {*/
/*    border-top-color: #fff;*/
/*    animation-delay: 0s;*/
/*}*/

/*.spinner-ring:nth-child(2) {*/
/*    border-right-color: #fff;*/
/*    animation-delay: 0.3s;*/
/*    width: 70%;*/
/*    height: 70%;*/
/*    top: 15%;*/
/*    left: 15%;*/
/*}*/

/*.spinner-ring:nth-child(3) {*/
/*    border-bottom-color: #fff;*/
/*    animation-delay: 0.6s;*/
/*    width: 40%;*/
/*    height: 40%;*/
/*    top: 30%;*/
/*    left: 30%;*/
/*}*/

/*@keyframes spin {*/
/*    0% { transform: rotate(0deg); }*/
/*    100% { transform: rotate(360deg); }*/
/*}*/

/*!* טקסט טעינה דינמי *!*/
/*.loading-text {*/
/*    color: white;*/
/*    font-size: 24px;*/
/*    font-weight: 600;*/
/*    text-align: center;*/
/*    margin-bottom: 15px;*/
/*    text-shadow: 0 2px 4px rgba(0,0,0,0.3);*/
/*}*/

/*.loading-subtext {*/
/*    color: rgba(255,255,255,0.8);*/
/*    font-size: 16px;*/
/*    text-align: center;*/
/*    animation: pulse 2s ease-in-out infinite;*/
/*}*/

/*@keyframes pulse {*/
/*    0%, 100% { opacity: 0.8; }*/
/*    50% { opacity: 1; }*/
/*}*/

/*!* פרוגרס בר *!*/
/*.progress-container {*/
/*    width: 300px;*/
/*    height: 6px;*/
/*    background: rgba(255,255,255,0.2);*/
/*    border-radius: 3px;*/
/*    overflow: hidden;*/
/*    margin-top: 20px;*/
/*}*/

/*.progress-bar-custom {*/
/*    height: 100%;*/
/*    background: linear-gradient(90deg, #fff, #f0f8ff);*/
/*    border-radius: 3px;*/
/*    transition: width 0.5s ease;*/
/*    animation: shimmer 2s infinite;*/
/*}*/

/*@keyframes shimmer {*/
/*    0% { opacity: 0.8; }*/
/*    50% { opacity: 1; }*/
/*    100% { opacity: 0.8; }*/
/*}*/

/*!* ===== מסיכי טבלאות ===== *!*/
/*.table-loading-mask {*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/

/*.table-loading-mask::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    bottom: 0;*/
/*    background: rgba(255,255,255,0.95);*/
/*    z-index: 10;*/
/*    transition: all 0.8s ease;*/
/*}*/

/*.table-loading-mask.loaded::before {*/
/*    opacity: 0;*/
/*    pointer-events: none;*/
/*}*/

/*.table-skeleton {*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    left: 50%;*/
/*    transform: translate(-50%, -50%);*/
/*    z-index: 11;*/
/*    width: 90%;*/
/*    transition: all 0.8s ease;*/
/*}*/

/*.table-loading-mask.loaded .table-skeleton {*/
/*    opacity: 0;*/
/*    pointer-events: none;*/
/*}*/

/*!* שלד הטבלה *!*/
/*.skeleton-table {*/
/*    width: 100%;*/
/*    border-collapse: collapse;*/
/*    background: white;*/
/*    border-radius: 12px;*/
/*    overflow: hidden;*/
/*    box-shadow: 0 4px 20px rgba(0,0,0,0.1);*/
/*}*/

/*.skeleton-row {*/
/*    height: 60px;*/
/*}*/

/*.skeleton-cell {*/
/*    padding: 15px;*/
/*    border-bottom: 1px solid #f0f0f0;*/
/*}*/

/*.skeleton-content {*/
/*    height: 18px;*/
/*    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);*/
/*    background-size: 200% 100%;*/
/*    border-radius: 4px;*/
/*    animation: loading-wave 1.5s infinite;*/
/*}*/

/*.skeleton-content.wide { width: 85%; }*/
/*.skeleton-content.medium { width: 65%; }*/
/*.skeleton-content.narrow { width: 45%; }*/

/*@keyframes loading-wave {*/
/*    0% { background-position: 200% 0; }*/
/*    100% { background-position: -200% 0; }*/
/*}*/

/*!* הסתרת התוכן המקורי בזמן הטעינה *!*/
/*.content-hidden {*/
/*    opacity: 0;*/
/*    pointer-events: none;*/
/*    transition: all 0.8s ease-out;*/
/*}*/

/*.content-visible {*/
/*    opacity: 1;*/
/*    pointer-events: auto;*/
/*}*/

/*!* ===== רספונסיביות ===== *!*/
/*@media (max-width: 768px) {*/
/*    .loading-text {*/
/*        font-size: 20px;*/
/*    }*/

/*    .loading-subtext {*/
/*        font-size: 14px;*/
/*    }*/

/*    .progress-container {*/
/*        width: 250px;*/
/*    }*/

/*    .advanced-spinner {*/
/*        width: 60px;*/
/*        height: 60px;*/
/*    }*/

/*    .table-skeleton {*/
/*        width: 95%;*/
/*    }*/
/*}*/

/*!* ===== אנימציות כניסה ===== *!*/
/*.fade-in-up {*/
/*    animation: fadeInUp 0.8s ease-out forwards;*/
/*    opacity: 0;*/
/*    transform: translateY(30px);*/
/*}*/

/*@keyframes fadeInUp {*/
/*    to {*/
/*        opacity: 1;*/
/*        transform: translateY(0);*/
/*    }*/
/*}*/

/*!* עיכובים שונים לאלמנטים *!*/
/*.delay-1 { animation-delay: 0.2s; }*/
/*.delay-2 { animation-delay: 0.4s; }*/
/*.delay-3 { animation-delay: 0.6s; }*/
/*.delay-4 { animation-delay: 0.8s; }*/

/* חצים לא פעילים - גישה יותר ספציפית */
table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting::after {
    color: #6B7280 !important;
    opacity: 1 !important; /* וודא שהם נראים */
}

/* מיון עולה - רק החץ העליון ירוק */
table.dataTable thead th.sorting_asc::before {
    color: #00FF00 !important;
    opacity: 1 !important;
}
table.dataTable thead th.sorting_asc::after {
    color: #6B7280 !important;
    opacity: 1 !important;
}

/* מיון יורד - רק החץ התחתון ירוק */
table.dataTable thead th.sorting_desc::before {
    color: #6B7280 !important;
    opacity: 1 !important;
}
table.dataTable thead th.sorting_desc::after {
    color: #00FF00 !important;
    opacity: 1 !important;
}

