/* כותרות טבלה דביקות: הכותרת נשארת למעלה בזמן גלילה, כדי לדעת באיזו עמודה אתה עומד */
.table-responsive {
    max-height: calc(100vh - 265px);
    overflow-y: auto;
}

.table-responsive > .table > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: var(--color-card-bg, #fff);
    box-shadow: inset 0 -1px 0 var(--color-border, rgba(0, 0, 0, .12));
}

/* טבלאות עם כותרת אפורה (table-light) - שומרות על הצבע המקורי */
.table-responsive > .table > thead.table-light > tr > th {
    background-color: #f8f9fa;
}

/* טבלאות עם כותרת צבעונית של המותג */
.table-responsive > .table > thead.thead-primary > tr > th {
    background-color: var(--color-primary);
    color: #fff;
}

/* טבלה בתוך חלון קופץ */
.modal .table-responsive {
    max-height: 60vh;
}

/* סרגל מעבר דפים קבוע בתחתית המסך: נראה תמיד, בלי לגלול עד סוף הרשימה */
.tf-pager {
    position: fixed;
    bottom: 0;
    left: 0;
    right: var(--sidebar-width, 280px);
    z-index: 990;
    margin: 0;
    /* הסרגל ברוחב מלא, והתוכן מוזז פנימה כדי לא לשבת מתחת לכפתור הנגישות */
    padding-left: 5.5rem !important;
    font-weight: 600;
    background-color: var(--color-card-bg, #fff);
    border-top: 2px solid var(--primary, #0d6efd);
    box-shadow: 0 -8px 20px -8px rgba(0, 0, 0, .35);
}

@media (max-width: 992px) {
    .tf-pager { right: 0; }
}
