.dataTables_wrapper .dataTables_info {
            font-size: 0.9rem;
            color: var(--color-foreground);
            padding-top: 0.6rem;
            padding: 10px; 
        }
        .dataTables_wrapper{
        	border: 1px solid #e5e7eb;
        	border-radius: 14px 14px 14px 14px;
        }
        .dataTables_wrapper .dataTables_paginate .paginate_button {
            padding: 0.3rem 1rem;
            border-radius: 40px;
            border: 1px solid #d2dfee;
            background: white;
            color: var(--color-foreground);
            font-weight: 500;
            margin: 0 2px;
        }
        .dataTables_wrapper .dataTables_paginate .paginate_button.current {
            background: #1f3a5c;
            color: white !important;
            border: 1px solid #1f3a5c;
        }
        .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            background: #e6eefa;
            border-color: #a5bedc;
        }
        
        .dataTables_wrapper .dataTables_length {
            color: var(--color-foreground);
        }

        /* footer note */
        .footer-note {
            margin-top: 1.4rem;
            font-size: 0.85rem;
            color: #4b6a89;
            border-top: 1px solid #e3ebf5;
            padding-top: 1.2rem;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
        }
        .footer-note span i {
            color: #2563eb;
            margin-right: 4px;
        }
		.dataTables_wrapper .row:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 0.6rem 1.2rem;
    margin-bottom: 1.2rem;
}

/* Override Bootstrap grid for the first row */
.dataTables_wrapper .row:first-child .col-sm-12 {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0;
}

/* Left side: "Show entries" */
.dataTables_wrapper .row:first-child .col-sm-12:first-child {
    display: flex;
    align-items: center;
}

.dataTables_wrapper .dataTables_length {
    display: flex;
    align-items: center;
    margin: 0;
}

.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-foreground);
    margin: 0;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #d2dfee;
    border-radius: 40px;
    padding: 0.3rem 1.8rem 0.3rem 1rem;
    background: white;
    font-weight: 450;
    font-size: 0.85rem;
    color: var(--select-color, var(--color-foreground));
    background-color: var(--select-bg, var(--color-surface));
    cursor: pointer;
    outline: none;
    width: auto;
    min-width: 60px;
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Right side: Search */
.dataTables_wrapper .row:first-child .col-sm-12:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_filter {
    display: flex;
    align-items: center;
    margin: 0;
}

.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    position: relative;
}

.dataTables_wrapper .dataTables_filter label::before {
    content: "";
    position: absolute;
    left: 14px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b85a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #d2dfee;
    border-radius: 40px;
    padding: 0.4rem 1rem 0.4rem 2.4rem;
    color: var(--select-color, var(--color-foreground));
    background-color: var(--select-bg, var(--color-surface));
    font-size: 0.9rem;
    width: 220px;
    outline: none;
    transition: all 0.2s;
    height: auto;
    min-height: 38px;
}
.dataTables_wrapper tbody td {
    font-size: 0.8rem;
}
.dataTables_wrapper .pagination {
    font-size: 0.8rem;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    width: 260px;
}

.dataTables_wrapper .dataTables_filter input::placeholder {
    color: #9aafc7;
}

/* Normal pagination buttons */
.dataTables_wrapper .paginate_button.page-item {
    border: 1px solid #c9ddff !important;
    color: var(--select-color, var(--color-foreground)) !important;
    background-color: var(--select-bg, var(--color-surface)) !important;
    border-radius: 12px !important;
}

/* Active page */
.dataTables_wrapper .paginate_button.page-item.active {
    background: #e8f1ff !important;
    border: 1px solid #c9ddff !important;
    color: #1677ff !important;
    border-radius: 12px !important;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate {
    height: 50px;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}


/* Processing overlay */
.dataTables_processing {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 20px 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    z-index: 1000 !important;
    border: 1px solid #eef2f7 !important;
    backdrop-filter: blur(4px) !important;
}

/* Spinner size and color */
.dataTables_processing .fa-spinner {
    font-size: 32px !important;
    color: #2563eb !important;
}

/* Hide default text */
.dataTables_processing {
    font-size: 0 !important;
}

/* Show only spinner */
.dataTables_processing .fa-spinner {
    font-size: 32px !important;
}

.dataTables_processing .sr-only {
    display: none !important;
}

/* ===== OPTIONAL: Animated spinner ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dataTables_processing .fa-spinner {
    animation: spin 1s linear infinite !important;
}

        /* responsive */
        @media (max-width: 700px) {
            .card { padding: 1.2rem; }
            .header { flex-direction: column; align-items: flex-start; gap: 10px; }
            .dataTables_filter input { width: 170px; }
        }
        /* small inline pagination hint */
        .pagination-hint {
            background: #eef4fa;
            border-radius: 40px;
            padding: 0.1rem 1.2rem;
            font-size: 0.8rem;
            color: #2b4b6e;
            border: 1px solid #d4e0ec;
        }
        
        
        @media (max-width: 480px) {
		    .sticky-bar {
		    	position: fixed;
		        bottom: 0;
		        left: 0;
		        right: 0;
		        margin: 0 auto;
		        padding: 12px 16px;
		        padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
		    }
		    
		    .sticky-bar .button--primary {
		        padding: 12px 16px;
		        font-size: 14px;
		    }
		}
		
		#loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 0.3s ease;
        }
        
        #loader.hidden {
            display: none;
        }
        
        /* Spinner */
        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #e5e7eb;
            border-top: 4px solid #3b82f6;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Loading text */
        .loader-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }
        
        .loader-text {
            color: #374151;
            font-size: 18px;
            font-weight: 600;
        }
        
        .loader-subtext {
            color: #6b7280;
            font-size: 14px;
        }
        
        /* ===== Modal Overlay ===== */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
        }
        
        .modal-overlay.active {
            display: flex;
        }
        
        /* ===== Modal Box ===== */
        .modal-box {
            background: white;
            border-radius: 12px;
            padding: 32px;
            max-width: 420px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            animation: modalSlideIn 0.3s ease;
        }
        
        @keyframes modalSlideIn {
            from {
                transform: translateY(-30px) scale(0.95);
                opacity: 0;
            }
            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }
        
        /* ===== Modal Header ===== */
        .modal-icon {
            width: 48px;
            height: 48px;
            background: #fee2e2;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
        }
        
        .modal-icon svg {
            width: 24px;
            height: 24px;
            color: #dc2626;
        }
        
        .modal-title {
            text-align: center;
            font-size: 20px;
            font-weight: 600;
            color: #111827;
            margin-bottom: 8px;
        }
        
        .modal-message {
            text-align: center;
            font-size: 14px;
            color: #6b7280;
            margin-bottom: 24px;
            line-height: 1.5;
        }
        
        .modal-message strong {
            color: #111827;
        }
        
        /* ===== Modal Buttons ===== */
        .modal-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
        }
        
        .modal-btn {
            padding: 10px 24px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .modal-btn-cancel {
            background: #e5e7eb;
            color: #374151;
        }
        
        .modal-btn-cancel:hover {
            background: #d1d5db;
        }
        
        .modal-btn-delete {
            background: #dc2626;
            color: white;
        }
        
        .modal-btn-delete:hover {
            background: #b91c1c;
        }
        
        .modal-btn-delete:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
		@media (min-width: 768px) {
  /* Target the bottom controls row inside any DataTables wrapper */
  .dataTables_wrapper .row:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Right-align the pagination element */
  .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
  }

  /* Remove default bottom margins causing vertical misalignments */
  .dataTables_info, 
  .dataTables_paginate .pagination {
    margin-bottom: 0 !important;
  }
}