.loader{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, .1);
    border-radius: 0.6rem;
    z-index: 99;
}
.spin {
    animation: spin 1.5s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.bg-selected{
    background-color: rgba(65, 150, 250, .2) !important;
}
.table-xs thead th{
    padding: .5rem 1rem !important;
}
.table-xs tbody td{
    padding: 0 1rem !important;
    vertical-align: top !important;
}
.btn-primary:disabled{
    background-color: #4594CF !important;
    border-color: #4594CF !important;
}
.no-sub:not(.active) a:hover {
    color: #4594CF !important;
}
.form-label{
    margin-bottom: .2rem;
}

/* ==================== LOGS CSS ==================== */
/* Activity Log Icon Colors and Backgrounds */

/* Green - CREATE, LOGIN */
.text-green-600 {
    color: #16a34a;
}
.bg-green-50 {
    background-color: #f0fdf4;
}

/* Blue - UPDATE, EMAIL_SENT */
.text-blue-600 {
    color: #2563eb;
}
.bg-blue-50 {
    background-color: #eff6ff;
}

/* Red - DELETE, EMAIL_FAILED */
.text-red-600 {
    color: #dc2626;
}
.bg-red-50 {
    background-color: #fef2f2;
}

/* Gray - LOGOUT, NULL/Unknown */
.text-gray-600 {
    color: #4b5563;
}
.bg-gray-50 {
    background-color: #f9fafb;
}

/* ==================== SHARED TABLE & TOOLBAR CSS ==================== */
/* No-click overlay for tables during AJAX */
.no-click {
    pointer-events: none;
}

/* Select2 form styling (global) */
.select2-container .select2-selection--single {
    height: 38px;
    padding: 8px 12px;
    font-size: 16px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 19px;
    text-align: left;
    font-size: 14px;
}

/* Input wrapper for loaders inside inputs */
.input-wrapper {
    position: relative;
    display: flex;
}

/* Search row in DataTable thead */
.table-xs thead tr.search-row th {
    padding: 4px 5px;
}
.table-xs thead tr.search-row input,
.table-xs thead tr.search-row select {
    width: 100%;
    padding: 4px 6px;
    box-sizing: border-box;
    font-size: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
}
.table-xs thead tr.search-row select {
    height: 28px;
    cursor: pointer;
}
.table-xs thead tr.search-row {
    background-color: #f8f9fa;
}

/* Status badge (shared across all pages) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    margin: 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    width: 155px;
    justify-content: flex-start;
}
.status-badge i { font-size: 13px; }
.status-badge .status-time {
    display: block;
    font-size: 10px;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 1px;
}

/* Page toolbar (shared across all pages) */
.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.page-toolbar .toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.page-toolbar .toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Filter select in toolbar */
.filter-select {
    height: 34px;
    padding: 4px 10px;
    font-size: 13px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    min-width: 160px;
}

/* Edit panel header action buttons */
.edit-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.edit-actions .btn { white-space: nowrap; }

/* Status timeline (edit panel) */
.status-timeline-item {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #333;
}
.status-timeline-item i {
    margin-right: 3px;
}
.status-timeline-item .timeline-date {
    opacity: 0.7;
}

/* DataTable info/pagination row styling */
.dataTables_wrapper .dataTables_info {
    font-size: 13px;
    color: #6c757d;
}
.dataTables_wrapper .dataTables_length select {
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}