/*
 * Admin Feature Styles
 * Styles for administration pages (users list, projects management, etc.)
 */

/* ===========================================
   ADMIN LIST PAGE LAYOUT
   =========================================== */

/* Admin list pages with fixed header scrolling */
.admin-list-page {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1rem;
    box-sizing: border-box;
}

.admin-list-page > .row {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.admin-list-page .col-12 {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

/* Fixed filter sections */
.admin-list-page .mb-4 {
    flex-shrink: 0;
    flex-grow: 0;
}

.admin-list-page .card.mb-4 {
    flex-shrink: 0;
    flex-grow: 0;
}

.admin-list-page .card.mb-4 .card-body {
    flex-shrink: 0;
    flex-grow: 0;
}

/* Scrollable table card */
.admin-list-page .card:not(.mb-4) {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.admin-list-page .card:not(.mb-4) .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* ===========================================
   ADMIN TABLE WRAPPERS
   =========================================== */

/* Users table wrapper with sticky header */
.users-table-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.users-table-wrapper .table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #343a40;
}

/* Prevent body scroll on admin list pages */
.admin-list-page-body {
    overflow: hidden;
}
