* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
    background-color: #f8fafc;
}

/* -------------------------------------------------------------
 * MOBILE HEADER BAR & OVERLAY
 * ------------------------------------------------------------- */
.mobile-header-bar {
    display: none;
    background: #0f172a;
    color: white;
    padding: 12px 18px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1020;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.mobile-menu-trigger {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mobile-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
}

.mobile-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* -------------------------------------------------------------
 * MAIN SIDEBAR STYLING
 * ------------------------------------------------------------- */
.sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #090d16 0%, #0f172a 60%, #1e293b 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    z-index: 1030;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Header & Brand */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 68px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    overflow: hidden;
}

.logo-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: #ffffff;
}

.sidebar-toggle-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: scale(1.04);
}

.mobile-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
}

.mobile-close-btn:hover {
    color: #ffffff;
}

/* User Profile Card */
.sidebar-user-card {
    margin: 14px 14px 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.user-meta {
    overflow: hidden;
    flex: 1;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 3px;
}

.user-role-badge.role-admin {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.user-role-badge.role-driver {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* -------------------------------------------------------------
 * NAVIGATION MENU & ITEMS
 * ------------------------------------------------------------- */
.nav-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 10px 24px;
}

.nav-menu::-webkit-scrollbar {
    width: 5px;
}

.nav-menu::-webkit-scrollbar-track {
    background: transparent;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 4px;
}

.nav-group {
    margin-bottom: 14px;
}

.nav-heading {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 8px 12px 4px;
    user-select: none;
    white-space: nowrap;
}

/* Inactive Navigation Item */
.nav-menu a, .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    margin: 2px 0;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.nav-menu a:hover, .nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    transform: translateX(3px);
    border-color: rgba(255, 255, 255, 0.05);
}

.nav-icon {
    font-size: 17px;
    width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.nav-menu a:hover .nav-icon, .nav-item:hover .nav-icon {
    transform: scale(1.15);
}

.nav-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Active Navigation Item - Vibrant, High Contrast */
.nav-menu a.active, .nav-item.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: none !important;
}

.nav-menu a.active .nav-icon, .nav-item.active .nav-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.active-dot {
    width: 7px;
    height: 7px;
    background: #93c5fd;
    border-radius: 50%;
    margin-left: auto;
    flex-shrink: 0;
    box-shadow: 0 0 10px #bfdbfe;
}

/* Logout Item */
.nav-item-logout {
    color: #f87171 !important;
    margin-top: 6px;
}

.nav-item-logout:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    transform: translateX(3px) !important;
}

/* -------------------------------------------------------------
 * COLLAPSED DESKTOP SIDEBAR (72px)
 * ------------------------------------------------------------- */
.sidebar.collapsed {
    width: 72px;
    min-width: 72px;
    overflow-x: visible;
}

.sidebar.collapsed .logo-box,
.sidebar.collapsed .user-meta,
.sidebar.collapsed .nav-heading,
.sidebar.collapsed .nav-title,
.sidebar.collapsed .active-dot {
    display: none !important;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 16px 8px;
}

.sidebar.collapsed .sidebar-toggle-btn {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-user-card {
    margin: 8px 10px;
    padding: 6px;
    justify-content: center;
    background: transparent;
    border-color: transparent;
}

.sidebar.collapsed .nav-menu {
    padding: 8px 6px;
}

.sidebar.collapsed .nav-item,
.sidebar.collapsed .nav-menu a {
    justify-content: center;
    padding: 12px 0;
    margin: 4px 4px;
    transform: none !important;
    border-radius: 8px;
}

.sidebar.collapsed .nav-icon {
    margin: 0;
    font-size: 20px;
}

/* Floating Tooltip in Collapsed Mode */
.sidebar.collapsed .nav-item:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 9999;
    pointer-events: none;
    animation: fadeInSidebarTooltip 0.15s ease-out;
}

@keyframes fadeInSidebarTooltip {
    from { opacity: 0; transform: translateY(-50%) translateX(-4px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* -------------------------------------------------------------
 * MAIN CONTENT & CONTAINER RESPONSIVENESS
 * ------------------------------------------------------------- */
.main-content {
    margin-left: 250px;
    flex: 1;
    min-width: 0;
    padding: 28px 32px;
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.collapsed {
    margin-left: 68px;
    min-width: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h2 {
    font-size: 28px;
    color: #1e3a8a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-icon.blue { background: #dbeafe; color: #1e40af; }
.stat-icon.green { background: #d1fae5; color: #065f46; }
.stat-icon.yellow { background: #fef3c7; color: #92400e; }
.stat-icon.purple { background: #ede9fe; color: #5b21b6; }

.stat-info h3 {
    font-size: 32px;
    color: #1e3a8a;
}

.stat-info p {
    color: #666;
    font-size: 14px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.card-header h3 {
    color: #1e3a8a;
    font-size: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: white;
}

/* -------------------------------------------------------------
 * MODERN DATA TABLES & BADGES
 * ------------------------------------------------------------- */
table, .modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 5px;
}

table th, .modern-table th {
    background-color: #f8fafc;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 13px 16px;
    text-align: left;
    border-top: 1px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

table td, .modern-table td {
    padding: 13px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 13.5px;
}

table tbody tr, .modern-table tbody tr {
    transition: background-color 0.15s ease;
}

table tbody tr:hover, .modern-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Modern Action Buttons in Tables */
.actions {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.id-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 11.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.btn-sm-edit, .btn-warning.btn-sm {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-sm-edit:hover, .btn-warning.btn-sm:hover {
    background: #fde68a !important;
    color: #92400e !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(180, 83, 9, 0.15);
}

.btn-sm-delete, .btn-danger.btn-sm {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-sm-delete:hover, .btn-danger.btn-sm:hover {
    background: #fecaca !important;
    color: #991b1b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(185, 28, 28, 0.15);
}

/* Modern Status Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.badge-success {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}
.badge-success .badge-dot { background-color: #10b981; }

.badge-warning {
    background: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}
.badge-warning .badge-dot { background-color: #f59e0b; }

.badge-danger {
    background: #fff1f2 !important;
    color: #be123c !important;
    border: 1px solid #fecdd3 !important;
}
.badge-danger .badge-dot { background-color: #ef4444; }

.badge-info {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}
.badge-info .badge-dot { background-color: #3b82f6; }

/* Sortable column header link */
.sortable-th-link {
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s ease;
}
.sortable-th-link:hover {
    color: #2563eb;
}
.sort-indicator {
    font-size: 11px;
    color: #2563eb;
    font-weight: 800;
}

/* Active Filter Tags Bar */
.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.active-filters-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 4px;
}

.active-filter-tag {
    background: #ffffff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.active-filter-tag .remove-filter {
    color: #60a5fa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    margin-left: 2px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.active-filter-tag .remove-filter:hover {
    background: #fee2e2;
    color: #dc2626;
}

.clear-all-filters {
    font-size: 11.5px;
    font-weight: 600;
    color: #ef4444;
    text-decoration: none;
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 6px;
    transition: background 0.15s ease;
}
.clear-all-filters:hover {
    background: #fee2e2;
}

/* Empty State Component */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}
.empty-state-icon {
    font-size: 38px;
    margin-bottom: 12px;
    opacity: 0.8;
}
.empty-state-title {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}
.empty-state-text {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #1e3a8a;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.actions {
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    margin-bottom: 0 !important;
    cursor: pointer;
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #1e3a8a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.page-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.page-btn.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
    color: #999;
}

/* -------------------------------------------------------------
 * SLEEK SINGLE-LINE FILTER TOOLBAR
 * ------------------------------------------------------------- */
.filter-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.filter-form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.filter-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 150px;
    min-width: 130px;
}

.filter-input-wrap.wrap-search {
    flex: 2 1 200px;
    min-width: 170px;
}

.filter-input-wrap.wrap-select {
    flex: 1 1 140px;
    min-width: 130px;
}

.filter-input-wrap.wrap-date {
    flex: 0 1 145px;
    min-width: 125px;
}

.filter-input-icon {
    position: absolute;
    left: 10px;
    font-size: 13px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
    display: inline-flex;
    align-items: center;
}

.filter-ctrl {
    width: 100%;
    height: 38px;
    padding: 6px 10px 6px 32px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 13px;
    color: #1e293b;
    outline: none;
    transition: all 0.15s ease;
}

.filter-input-wrap.no-icon .filter-ctrl {
    padding-left: 10px;
}

.filter-ctrl:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.filter-ctrl::placeholder {
    color: #94a3b8;
    font-size: 12.5px;
}

.filter-date-prefix {
    position: absolute;
    left: 9px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    pointer-events: none;
    z-index: 1;
    letter-spacing: 0.02em;
}

.filter-input-wrap.has-prefix .filter-ctrl {
    padding-left: 38px;
    font-size: 12.5px;
}

.filter-actions-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-filter-submit {
    height: 38px;
    padding: 0 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-filter-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn-filter-reset {
    height: 38px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-filter-reset:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Card Table Header & Count Badge */
.card-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 12px;
}

.table-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.table-count-badge strong {
    color: #0f172a;
    font-weight: 700;
}

/* -------------------------------------------------------------
 * RESPONSIVE ADAPTATIONS (Docked Compact Rail on Mobile)
 * ------------------------------------------------------------- */
@media (max-width: 768px) {
    .sidebar {
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
        overflow-x: visible !important;
    }

    .sidebar .logo-box,
    .sidebar .user-meta,
    .sidebar .nav-heading,
    .sidebar .nav-title,
    .sidebar .active-dot {
        display: none !important;
    }

    .sidebar .sidebar-header {
        justify-content: center !important;
        padding: 16px 6px !important;
    }

    .sidebar .sidebar-user-card {
        margin: 8px 6px !important;
        padding: 6px !important;
        justify-content: center !important;
        background: transparent !important;
        border-color: transparent !important;
    }

    .sidebar .nav-item {
        justify-content: center !important;
        padding: 11px 0 !important;
        margin: 3px 2px !important;
    }

    .sidebar .nav-icon {
        font-size: 19px !important;
    }

    .main-content {
        margin-left: 68px !important;
        padding: 20px 14px !important;
    }

    .filter-form-inline {
        gap: 8px;
    }

    .filter-input-wrap {
        flex: 1 1 calc(50% - 6px);
        min-width: 130px;
    }

    .filter-input-wrap.wrap-search {
        flex: 1 1 100%;
    }

    .filter-actions-inline {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
        justify-content: flex-end;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card {
        padding: 16px;
        border-radius: 10px;
    }

    .modal-content {
        width: 95% !important;
        margin: 20px auto;
        padding: 18px !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    .pagination-bar {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }
}

