/* ============================================
   DATA AUTO - Custom Styles
   ============================================ */

/* Gotham Font Family */
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham/Gotham-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham/Gotham-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham/Gotham-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-color: #E85D04;
    --primary-light: #F48C06;
    --primary-dark: #DC2F02;
    --accent-color: #FAA307;
    --secondary-color: #1c1c1c;
    --sidebar-bg: #162d50;
    --sidebar-hover: #1e3a5f;
    --font-family: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family) !important;
}

/* ============================================
   Sidebar Styles
   ============================================ */
.sidebar {
    box-shadow: 0 -5px 25px rgba(22, 45, 80, 0.15);
}

.sidebar .nav .nav-item .nav-link {
    font-family: var(--font-family) !important;
    color: var(--secondary-color) !important;
}

.sidebar .nav .nav-item .nav-link .menu-title {
    color: var(--secondary-color) !important;
}

.sidebar .nav .nav-item .nav-link .menu-icon {
    color: var(--secondary-color) !important;
}

.sidebar .nav .nav-item .nav-link:hover {
    color: var(--primary-color) !important;
}

.sidebar .nav .nav-item .nav-link:hover .menu-title,
.sidebar .nav .nav-item .nav-link:hover .menu-icon {
    color: var(--primary-color) !important;
}

.sidebar .nav .nav-item.active > .nav-link {
    color: var(--primary-color) !important;
}

.sidebar .nav .nav-item.active > .nav-link .menu-icon {
    color: var(--primary-color) !important;
}

.sidebar .nav .nav-item.active > .nav-link .menu-title {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Submenu items */
.sidebar .nav.sub-menu .nav-item .nav-link {
    color: var(--secondary-color) !important;
}

.sidebar .nav.sub-menu .nav-item .nav-link:hover {
    color: var(--primary-color) !important;
}

.sidebar .nav.sub-menu .nav-item.active .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
}

/* ============================================
   Navbar/Topbar Styles
   ============================================ */
.navbar .navbar-brand-wrapper {
    background: #fff !important;
    display: flex;
    align-items: center;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar .navbar-menu-wrapper {
    background: #fff !important;
}

.navbar .navbar-toggler {
    color: var(--primary-color) !important;
}

.navbar .nav-profile-text p {
    color: var(--secondary-color) !important;
    font-family: var(--font-family) !important;
    font-weight: 600;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 5px 25px rgba(22, 45, 80, 0.15);
    border-radius: 10px;
}

.navbar .dropdown-item {
    font-size: 13px;
    font-family: var(--font-family) !important;
}

.navbar .dropdown-item:hover {
    background: rgba(22, 45, 80, 0.05);
}

/* ============================================
   Content Area
   ============================================ */
.content-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%) !important;
    min-height: calc(100vh - 120px);
}

/* ============================================
   Cards
   ============================================ */
.card {
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(22, 45, 80, 0.08) !important;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(22, 45, 80, 0.12) !important;
}

.card-title {
    color: var(--primary-color) !important;
    font-family: var(--font-family) !important;
    font-weight: 700;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    border: none !important;
    border-radius: 8px;
    font-family: var(--font-family) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(22, 45, 80, 0.3);
}

.btn-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 45, 80, 0.3);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%) !important;
}

.btn-link {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

.btn-link:hover {
    color: var(--primary-dark) !important;
}

/* ============================================
   Tables
   ============================================ */

/* DataTables scroll body and fixed footer */
.dataTables_wrapper {
    display: flex;
    flex-direction: column;
}

.dataTables_wrapper .dt-toolbar {
    flex-shrink: 0;
}

.dataTables_wrapper .dt-scroll-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
    max-height: 550px;
}

/* Sticky headers for x-datatable */
.dataTables_wrapper .dt-scroll-body thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.dataTables_wrapper .dt-scroll-body thead tr:first-child th {
    background: #fff !important;
    box-shadow: 0 1px 0 #dee2e6;
}

.dataTables_wrapper .dt-scroll-body thead tr.column-search-row th {
    background: #f8f9fa !important;
    box-shadow: 0 1px 0 #dee2e6;
}

.dataTables_wrapper .dt-fixed-footer {
    flex-shrink: 0;
    background: #fff;
    padding: 15px 0 !important;
    border-top: 1px solid #dee2e6;
    margin-top: 0 !important;
}

/* Ensure table takes full width in scroll container */
.dt-scroll-body .table {
    margin-bottom: 0;
}

.table thead tr:first-child th {
    background: #fff !important;
    color: var(--secondary-color) !important;
    font-family: var(--font-family) !important;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6 !important;
    position: relative;
}

.table thead tr:first-child th:hover {
    background: #f8f9fa !important;
}

/* Column Resizer */
.dt-col-resizer {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    background: transparent;
    z-index: 10;
    transition: background 0.2s ease;
}

.dt-col-resizer:hover,
.dt-col-resizer.active {
    background: var(--primary-color);
}

.dt-col-resizer::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 16px;
    background: #dee2e6;
    border-radius: 1px;
    transition: background 0.2s ease;
}

.dt-col-resizer:hover::after,
.dt-col-resizer.active::after {
    background: #fff;
}

/* Column search row */
.table thead tr.column-search-row th {
    background: #f8f9fa !important;
    padding: 8px 5px !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.table thead tr.column-search-row th input {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-family: var(--font-family) !important;
    background: #fff;
    height: 32px !important;
    box-sizing: border-box;
}

.table thead tr.column-search-row th input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.15);
    outline: none;
}

.table thead tr.column-search-row th input::placeholder {
    color: #adb5bd;
    font-size: 11px;
}

/* Column filter select */
.table thead tr.column-search-row th select {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-family: var(--font-family) !important;
    background: #fff;
    cursor: pointer;
}

.table thead tr.column-search-row th select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.15);
    outline: none;
}

.table tbody tr:hover {
    background: rgba(22, 45, 80, 0.03);
}

/* ============================================
   Form Controls
   ============================================ */
.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(22, 45, 80, 0.1) !important;
}

/* ============================================
   Badges
   ============================================ */
.badge-primary,
.badge.bg-primary {
    background: var(--primary-color) !important;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #fff !important;
    border-top: 1px solid rgba(22, 45, 80, 0.1);
    font-family: var(--font-family) !important;
}

.footer a {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    border-radius: 10px;
    border: none;
    font-family: var(--font-family) !important;
}

.alert-success {
    background: linear-gradient(135deg, #fff5eb 0%, #ffedd5 100%);
    color: #9c4a00;
    border-left: 4px solid var(--primary-color);
}

.alert-danger {
    background: linear-gradient(135deg, #fdeaea 0%, #f8d7da 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, #fff5eb 0%, #ffedd5 100%);
    color: #9c4a00;
    border-left: 4px solid var(--accent-color);
}

.alert .btn-close {
    padding: 18px;
    opacity: 0.6;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* ============================================
   Text Colors
   ============================================ */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-success-theme {
    color: #155724 !important;
}

.text-danger-theme {
    color: #721c24 !important;
}

.bg-success-theme {
    background-color: #155724 !important;
}

.bg-danger-theme {
    background-color: #721c24 !important;
}

.border-danger-theme {
    border-color: #721c24 !important;
}

.alert-danger-theme {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* ============================================
   Links
   ============================================ */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Page Title
   ============================================ */
.page-title {
    font-family: var(--font-family) !important;
    font-weight: 700;
    color: var(--primary-color);
}


/* ============================================
   Checkbox Custom Styling
   ============================================ */
.form-check .form-check-label input[type="checkbox"]:checked + .input-helper:before {
    background: var(--primary-color) !important;
    background-image: none !important;
}

.form-check .form-check-label input[type="checkbox"] + .input-helper:before {
    border-color: var(--primary-color) !important;
}

.form-check .form-check-label input[type="checkbox"]:focus + .input-helper:before {
    box-shadow: 0 0 0 0.2rem rgba(22, 45, 80, 0.25) !important;
}

.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

.form-check-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(22, 45, 80, 0.25) !important;
}

/* ============================================
   Guest/Auth Page Styles - Reizen Orange Theme
   ============================================ */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6fa;
    position: relative;
}

.auth-page-wrapper,
.auth-page-wrapper * {
    font-family: var(--font-family);
}

.auth-form-container {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #E85D04 0%, #F48C06 35%, #FAA307 65%, #FFBA08 100%);
}

.brand-logo {
    text-align: center;
}

.brand-logo img {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.auth-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 30px;
}

/* Form styles */
.auth-page-wrapper .form-group {
    margin-bottom: 22px;
}

.auth-page-wrapper .form-group label {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 0.3px;
}

.auth-page-wrapper .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.auth-page-wrapper .form-control:focus {
    border-color: #E85D04;
    box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.1);
    background: #fff;
}

.auth-page-wrapper .form-control::placeholder {
    color: #adb5bd;
}

/* Orange Button */
.btn-gradient-primary {
    background: linear-gradient(135deg, #E85D04 0%, #F48C06 50%, #FAA307 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-gradient-primary:hover::before {
    left: 100%;
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #DC2F02 0%, #E85D04 50%, #F48C06 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 93, 4, 0.4);
}

.btn-gradient-primary:active {
    transform: translateY(0);
}

/* Remember me and forgot password */
.auth-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* Checkbox */
.auth-page-wrapper .form-check {
    margin: 0;
    padding-left: 0;
}

.auth-page-wrapper .form-check-input:checked {
    background-color: #E85D04 !important;
    border-color: #E85D04 !important;
}

.auth-page-wrapper .form-check-input:focus {
    border-color: #E85D04 !important;
    box-shadow: 0 0 0 0.2rem rgba(232, 93, 4, 0.25) !important;
}

.auth-page-wrapper .form-check-label {
    font-size: 13px;
    color: #495057;
}

/* Checkbox with input-helper (template style) - Orange theme */
.auth-page-wrapper .form-check .form-check-label input[type="checkbox"]:checked + .input-helper:before {
    background: #E85D04 !important;
    border-color: #E85D04 !important;
    background-image: none !important;
}

.auth-page-wrapper .form-check .form-check-label input[type="checkbox"] + .input-helper:before {
    border-color: #E85D04 !important;
}

.auth-page-wrapper .form-check .form-check-label input[type="checkbox"]:focus + .input-helper:before {
    box-shadow: 0 0 0 0.2rem rgba(232, 93, 4, 0.25) !important;
}

/* Links */
.auth-link {
    color: #E85D04 !important;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.auth-link:hover {
    color: #DC2F02 !important;
    text-decoration: none;
}

.auth-link i {
    font-size: 14px;
}

/* Footer text */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.auth-footer p {
    font-size: 12px;
    color: #adb5bd;
    margin: 0;
}

/* Alert styles for auth */
.auth-page-wrapper .alert {
    border-radius: 12px;
    font-size: 13px;
    padding: 14px 18px;
    margin-bottom: 25px;
    border: none;
}

.auth-page-wrapper .alert-info {
    background: linear-gradient(135deg, #fff5eb 0%, #ffedd5 100%);
    color: #9c4a00;
    box-shadow: 0 2px 8px rgba(232, 93, 4, 0.1);
}

.auth-page-wrapper .alert-success {
    background: linear-gradient(135deg, #fff5eb 0%, #ffedd5 100%);
    color: #9c4a00;
    border-left: 4px solid #F48C06;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.auth-divider span {
    padding: 0 15px;
    color: #adb5bd;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Responsive - Guest Page
   ============================================ */
@media (max-width: 576px) {
    .auth-form-container {
        padding: 20px;
    }

    .auth-card {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .brand-logo img {
        max-width: 120px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-options {
        gap: 12px;
    }
}

/* ============================================
   Responsive - Page Buttons
   ============================================ */
@media (max-width: 768px) {
    .row > [class*="col-"] .btn-gradient-primary {
        width: 100%;
        display: block;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    .row > [class*="col-"][align="right"] {
        text-align: left !important;
    }
}

/* ============================================
   DataTables Advanced Styles
   ============================================ */

/* Toolbar container */
.dt-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Toolbar buttons container */
.dt-toolbar-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Generic toolbar button */
.dt-toolbar-btn {
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    color: var(--secondary-color) !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-family) !important;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dt-toolbar-btn:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.dt-toolbar-btn:active {
    transform: scale(0.98);
}

.dt-toolbar-btn i {
    font-size: 12px;
}

/* Refresh button spinning animation */
.dt-toolbar-btn i.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Column visibility button */
.dt-button.buttons-colvis {
    background: var(--primary-color) !important;
    border: none !important;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-family) !important;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
}

.dt-button.buttons-colvis:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

/* Column visibility dropdown */
.dt-button-collection {
    background: #fff !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    border-radius: 12px !important;
    padding: 15px !important;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
}

.dt-button-collection .dt-button {
    background: transparent !important;
    border: none !important;
    color: var(--secondary-color) !important;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-family) !important;
    font-size: 14px;
    display: block;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.dt-button-collection .dt-button:hover {
    background: rgba(232, 93, 4, 0.1) !important;
    color: var(--primary-color) !important;
}

.dt-button-collection .dt-button.active {
    background: rgba(232, 93, 4, 0.15) !important;
    color: var(--primary-color) !important;
}

.dt-button-collection .dt-button span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dt-button-collection .dt-button.active span::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
}

/* Column search inputs */
.dt-column-search {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.dt-column-search input {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-family: var(--font-family) !important;
    transition: all 0.2s ease;
    min-width: 100px;
    flex: 1;
}

.dt-column-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1);
    outline: none;
}

.dt-column-search input::placeholder {
    color: #adb5bd;
    font-size: 11px;
}

/* Table header with search */
thead .column-search-row th {
    padding: 8px 5px !important;
    background: #f1f3f5 !important;
}

thead .column-search-row input {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-family: var(--font-family) !important;
}

thead .column-search-row input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.1);
    outline: none;
}

/* ColReorder styling */
.dt-colReorder-moving {
    outline: 2px dashed var(--primary-color) !important;
    outline-offset: -2px;
}

.dt-colReorder-moving th {
    background: rgba(232, 93, 4, 0.2) !important;
}

/* DataTables buttons group */
.dt-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dt-buttons .dt-button {
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    color: var(--secondary-color) !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-family) !important;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dt-buttons .dt-button:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Pagination styling */
.dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    margin: 0 2px !important;
    font-family: var(--font-family) !important;
}

.dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.dataTables_paginate .paginate_button:hover:not(.current) {
    background: rgba(232, 93, 4, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Info and length selector */
.dataTables_info,
.dataTables_length label,
.dataTables_filter label {
    font-family: var(--font-family) !important;
    font-size: 13px;
    color: var(--secondary-color);
}

.dataTables_length select,
.dataTables_filter input {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 12px;
    font-family: var(--font-family) !important;
}

.dataTables_length select:focus,
.dataTables_filter input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1);
    outline: none;
}

/* Processing indicator */
.dataTables_processing {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    padding: 20px 30px !important;
    font-family: var(--font-family) !important;
    color: var(--secondary-color) !important;
}

/* DataTables Loading Spinner - Orange */
.dataTables_processing > div:last-child {
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
}

.dataTables_processing > div:last-child > div {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: var(--primary-color) !important;
    animation: dtSpinnerBounce 1.4s infinite ease-in-out both !important;
}

.dataTables_processing > div:last-child > div:nth-child(1) {
    animation-delay: -0.32s !important;
}

.dataTables_processing > div:last-child > div:nth-child(2) {
    animation-delay: -0.16s !important;
}

@keyframes dtSpinnerBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Orange Outline Button */
.btn-outline-primary {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

/* Consistent button sizing for small buttons */
.btn-sm.btn-gradient-primary,
.btn-sm.btn-outline-primary {
    padding: 8px 16px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Select2 in DataTable filters */
.column-search-row .select2-container,
.table thead tr.column-search-row th .select2-container {
    width: 100% !important;
    display: block !important;
}

.column-search-row .select2-container .select2-selection--single,
.column-search-row .select2-container--default .select2-selection--single,
.table thead tr.column-search-row th .select2-container--default .select2-selection--single {
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    height: 32px !important;
    min-height: 32px !important;
    font-size: 12px !important;
    font-family: var(--font-family) !important;
    background: #fff !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.column-search-row .select2-selection__rendered,
.column-search-row .select2-container--default .select2-selection--single .select2-selection__rendered,
.table thead tr.column-search-row th .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    color: var(--secondary-color) !important;
    font-size: 12px !important;
}

.column-search-row .select2-selection__arrow,
.table thead tr.column-search-row th .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

.column-search-row .select2-selection__placeholder,
.table thead tr.column-search-row th .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #adb5bd !important;
    font-size: 11px !important;
    line-height: 26px !important;
}

.column-search-row .select2-container--focus .select2-selection--single,
.table thead tr.column-search-row th .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.15) !important;
    outline: none !important;
}

/* Ensure input and select2 have same height */
.column-search-row th input,
.table thead tr.column-search-row th input.form-control-sm,
.table thead tr.column-search-row th input {
    height: 32px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    box-sizing: border-box !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 10px;
    font-family: var(--font-family) !important;
    font-size: 13px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.15);
    outline: none;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--primary-color) !important;
}

.select2-container--default .select2-results__option--selected {
    background-color: rgba(232, 93, 4, 0.1) !important;
}

.select2-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    font-family: var(--font-family) !important;
}

.select2-results__option {
    padding: 10px 12px;
    font-size: 13px;
}

/* Select2 clear button */
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #adb5bd;
    font-size: 16px;
    margin-right: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: var(--primary-color);
}

/* ============================================
   Custom Column Visibility Dropdown
   ============================================ */
.dt-colvis-wrapper {
    position: relative;
    display: inline-block;
}

.dt-colvis-btn {
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    color: var(--secondary-color) !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-family) !important;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dt-colvis-btn:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.dt-colvis-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.dt-colvis-dropdown.show {
    display: block;
    animation: dtColvisSlideIn 0.2s ease;
}

@keyframes dtColvisSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dt-colvis-header {
    padding: 15px 18px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.dt-colvis-header strong {
    display: block;
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.dt-colvis-header small {
    display: block;
    font-size: 12px;
    color: #6c757d;
}

.dt-colvis-list {
    padding: 10px 0;
    max-height: 300px;
    overflow-y: auto;
}

.dt-colvis-item {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin: 0;
    font-weight: normal;
}

.dt-colvis-item:hover {
    background: rgba(232, 93, 4, 0.05);
}

.dt-colvis-item input[type="checkbox"] {
    display: none;
}

.dt-colvis-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: #fff;
}

.dt-colvis-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 11px;
    color: transparent;
    transition: color 0.2s ease;
}

.dt-colvis-item input[type="checkbox"]:checked + .dt-colvis-checkbox {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.dt-colvis-item input[type="checkbox"]:checked + .dt-colvis-checkbox::after {
    color: #fff;
}

.dt-colvis-item input[type="checkbox"]:not(:checked) + .dt-colvis-checkbox {
    background: #fff;
    border-color: #dee2e6;
}

.dt-colvis-item input[type="checkbox"]:not(:checked) + .dt-colvis-checkbox::after {
    color: transparent;
}

.dt-colvis-label {
    font-size: 14px;
    color: var(--secondary-color);
    font-family: var(--font-family) !important;
}

.dt-colvis-item:hover .dt-colvis-label {
    color: var(--primary-color);
}

.dt-colvis-item input[type="checkbox"]:not(:checked) ~ .dt-colvis-label {
    color: #adb5bd;
    text-decoration: line-through;
}

/* ============================================
   Flatpickr Datepicker Styles
   ============================================ */
.table thead tr.column-search-row th {
    position: relative;
}

.dt-datepicker {
    cursor: pointer !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23adb5bd' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E") no-repeat right 8px center !important;
    background-size: 14px !important;
    padding-right: 28px !important;
}

.dt-datepicker-clear {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    cursor: pointer;
    color: #adb5bd;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    transition: color 0.2s ease;
}

.dt-datepicker-clear:hover {
    color: var(--primary-color);
}

/* Date Range Wrapper */
.dt-daterange-wrapper {
    display: flex;
    gap: 4px;
    width: 100%;
}

.dt-daterange-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.dt-daterange-wrapper .dt-datepicker {
    width: 100%;
    font-size: 11px !important;
    padding: 4px 24px 4px 6px !important;
    background-position: right 4px center !important;
    background-size: 12px !important;
}

.dt-daterange-wrapper .dt-datepicker::placeholder {
    font-size: 10px;
}

.dt-daterange-input-wrapper .dt-datepicker-clear {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    width: 14px;
    height: 14px;
    line-height: 12px;
    cursor: pointer;
    color: #adb5bd;
    font-weight: bold;
    z-index: 10;
    text-align: center;
}

.dt-daterange-input-wrapper .dt-datepicker-clear:hover {
    color: var(--primary-color);
}

/* Flatpickr theme customization */
.flatpickr-calendar {
    font-family: var(--font-family) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.flatpickr-months {
    border-radius: 10px 10px 0 0;
    background: var(--primary-color);
    padding: 5px 0;
}

.flatpickr-months .flatpickr-month {
    background: transparent;
    color: #fff;
    fill: #fff;
}

.flatpickr-current-month {
    color: #fff !important;
    font-weight: 600;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent;
    color: #fff;
    font-weight: 600;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: rgba(255, 255, 255, 0.1);
}

.flatpickr-current-month input.cur-year {
    color: #fff !important;
    font-weight: 600;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: #fff;
    color: #fff;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    fill: #fff;
    color: #fff;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #fff;
}

span.flatpickr-weekday {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 11px;
}

.flatpickr-day {
    color: var(--secondary-color);
    border-radius: 6px;
    font-weight: 500;
}

.flatpickr-day:hover {
    background: rgba(232, 93, 4, 0.1);
    border-color: transparent;
}

.flatpickr-day.today {
    border-color: var(--primary-color);
}

.flatpickr-day.today:hover {
    background: rgba(232, 93, 4, 0.1);
    border-color: var(--primary-color);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #adb5bd;
}

.flatpickr-day.disabled {
    color: #dee2e6;
}

/* ============================================
   SweetAlert2 Theme Styles
   ============================================ */
.swal2-popup {
    font-family: var(--font-family) !important;
    border-radius: 16px !important;
}

.swal2-title {
    font-family: var(--font-family) !important;
    color: var(--secondary-color) !important;
}

.swal2-html-container {
    font-family: var(--font-family) !important;
    color: #6c757d !important;
}

.swal2-icon.swal2-info {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.swal2-icon.swal2-warning {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

.swal2-icon.swal2-success {
    border-color: #28a745 !important;
    color: #28a745 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #28a745 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(40, 167, 69, 0.3) !important;
}

.swal2-styled.swal2-confirm {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: var(--font-family) !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    transition: all 0.3s ease !important;
}

.swal2-styled.swal2-confirm:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
    box-shadow: 0 5px 20px rgba(232, 93, 4, 0.4) !important;
}

.swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.3) !important;
}

.swal2-styled.swal2-cancel {
    background: var(--secondary-color) !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: var(--font-family) !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    transition: all 0.3s ease !important;
}

.swal2-styled.swal2-cancel:hover {
    background: #333 !important;
}

.swal2-styled.swal2-cancel:focus {
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.3) !important;
}

/* ============================================
   Action Buttons (View/Edit/Delete)
   ============================================ */
.btn-action-view {
    background: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.2s ease;
}

.btn-action-view:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-action-edit {
    background: transparent;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.2s ease;
}

.btn-action-edit:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-action-delete {
    background: transparent;
    border: 1px solid var(--secondary-color) !important;
    color: var(--secondary-color) !important;
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.2s ease;
}

.btn-action-delete:hover {
    background: var(--secondary-color) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-action-log {
    background: #d4edda !important;
    border: 1px solid #155724 !important;
    color: #155724 !important;
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.2s ease;
}

.btn-action-log:hover {
    background: #c3e6cb !important;
    border-color: #155724 !important;
    color: #155724 !important;
    transform: translateY(-1px);
}

.form-control-sm{
    min-height: 32px !important;
}

/* ============================================
   DataTable Inactive Toggle Switch
   ============================================ */
.dt-inactive-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #dee2e6;
}

.dt-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.dt-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dt-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dee2e6;
    transition: 0.3s;
    border-radius: 24px;
}

.dt-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dt-switch input:checked + .dt-slider {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.dt-switch input:checked + .dt-slider:before {
    transform: translateX(20px);
}

.dt-switch input:focus + .dt-slider {
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.dt-switch-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary-color);
    font-family: var(--font-family);
    user-select: none;
}

/* ============================================
   DataTable Responsive Pagination (Mobile)
   ============================================ */
@media (max-width: 768px) {
    /* Fixed footer layout for mobile */
    .dataTables_wrapper .dt-fixed-footer {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px !important;
    }

    /* Length selector styling */
    .dataTables_wrapper .dataTables_length {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .dataTables_wrapper .dataTables_length label {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 12px;
    }

    .dataTables_wrapper .dataTables_length select {
        width: auto;
        min-width: 60px;
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Info text styling */
    .dataTables_wrapper .dataTables_info {
        text-align: center;
        width: 100%;
        font-size: 11px;
        color: #6c757d;
        order: 1;
    }

    /* Pagination styling */
    .dataTables_wrapper .dataTables_paginate {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
        order: 2;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 6px 10px !important;
        font-size: 12px !important;
        min-width: 32px;
        text-align: center;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
    .dataTables_wrapper .dataTables_paginate .paginate_button.next {
        padding: 6px 12px !important;
    }

    /* Ellipsis styling */
    .dataTables_wrapper .dataTables_paginate .ellipsis {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens */
    .dataTables_wrapper .dt-fixed-footer {
        padding: 12px 8px !important;
        gap: 12px;
    }

    .dataTables_wrapper .dataTables_length label {
        font-size: 11px;
    }

    .dataTables_wrapper .dataTables_length select {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 55px;
    }

    .dataTables_wrapper .dataTables_info {
        font-size: 10px;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 5px 8px !important;
        font-size: 11px !important;
        min-width: 28px;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
    .dataTables_wrapper .dataTables_paginate .paginate_button.next {
        padding: 5px 10px !important;
    }

    /* Hide page numbers and keep only prev/next on very small screens */
    .dataTables_wrapper .dataTables_paginate span .paginate_button:not(.current) {
        display: none;
    }

    .dataTables_wrapper .dataTables_paginate span .paginate_button.current {
        display: inline-block;
    }

    /* Show adjacent pages to current */
    .dataTables_wrapper .dataTables_paginate span .paginate_button.current + .paginate_button,
    .dataTables_wrapper .dataTables_paginate span .paginate_button:has(+ .current) {
        display: inline-block;
    }
}

/* ============================================
   Tabs - Primary Color (Orange)
   ============================================ */
.nav-tabs-primary .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-tabs-primary .nav-link:hover {
    color: var(--primary-color);
    border-color: transparent;
    border-bottom-color: var(--primary-color);
}

.nav-tabs-primary .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.nav-tabs-primary {
    border-bottom: 1px solid #dee2e6;
}

/* ============================================
   Image Preview Container
   ============================================ */
.img-preview-container {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.img-preview-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.img-preview-container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.img-preview-label {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    font-size: 12px;
    color: #6c757d;
}

/* SweetAlert Image Preview */
.swal-image-preview {
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
}

/* ============================================
   Verified Check Icon (Primary Color)
   ============================================ */
.icon-verified {
    color: var(--primary-color);
}

/* ============================================
   Badge Styles (Soft Colors)
   ============================================ */
.badge-success-soft {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning-soft {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger-soft {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-secondary-soft {
    background-color: #e9ecef;
    color: #6c757d;
}

.badge-info-soft {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-primary-soft {
    background-color: #fff5eb;
    color: #9c4a00;
}

/* ============================================
   Internal DataTables (User Detail Tabs)
   ============================================ */
.tab-content .dataTables_wrapper {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.tab-content .dataTables_wrapper .dt-scroll-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    max-height: 450px;
    min-height: 200px;
}

.tab-content .dataTables_wrapper .dt-scroll-body .table {
    margin-bottom: 0;
}

/* Sticky headers for internal DataTables */
.tab-content .dataTables_wrapper .dt-scroll-body thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.tab-content .dataTables_wrapper .dt-scroll-body thead tr:first-child th {
    background: #fff !important;
    box-shadow: 0 1px 0 #dee2e6;
}

.tab-content .dataTables_wrapper .dt-scroll-body thead tr.column-search-row th {
    background: #f8f9fa !important;
    box-shadow: 0 1px 0 #dee2e6;
}

.tab-content .dataTables_wrapper .dt-fixed-footer {
    flex-shrink: 0;
    background: #fff;
    padding: 15px 0 !important;
    margin-top: 0 !important;
}

.tab-content .dataTables_info {
    font-size: 13px;
    color: #6c757d;
    padding: 0;
    margin: 0;
}

.tab-content .dataTables_paginate {
    padding: 0;
    margin: 0;
}

.tab-content .dataTables_paginate .paginate_button {
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    margin: 0 2px !important;
    padding: 6px 12px !important;
    font-family: var(--font-family) !important;
    font-size: 13px !important;
    background: #fff !important;
    color: var(--secondary-color) !important;
    transition: all 0.2s ease;
}

.tab-content .dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
    background: rgba(232, 93, 4, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.tab-content .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.tab-content .dataTables_paginate .paginate_button.disabled {
    color: #adb5bd !important;
    cursor: not-allowed;
}

/* Detail View Action Button */
.btn-detail-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-detail-action:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* ============================================
   User Info Table (Responsive)
   ============================================ */
.user-info-table {
    width: 100%;
}

.user-info-table td:first-child {
    width: 140px;
    min-width: 100px;
    padding-right: 10px;
}

.user-info-table td:last-child {
    word-break: break-word;
}

.min-width-0 {
    min-width: 0;
}

/* Responsive for user info cards */
@media (max-width: 576px) {
    .user-info-table td:first-child {
        width: auto;
        min-width: 80px;
        font-size: 12px;
    }

    .user-info-table td:last-child {
        font-size: 13px;
    }
}

/* Tab content card body padding - only for tabs with DataTables */
#nav-vehicles .card .card-body,
#nav-requests .card .card-body,
#nav-bonuses .card .card-body,
#nav-activity .card .card-body,
#nav-documents .card .card-body {
    padding: 20px;
}

.small{
    font-size: 11px !important;
}

/* ============================================
   Custom Toggle Switch (Orange Theme)
   ============================================ */
.form-switch-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.form-switch-custom .switch-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.form-switch-custom .switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-switch-custom .switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.form-switch-custom .switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.form-switch-custom input:checked + .switch-slider {
    background-color: var(--primary-color);
}

.form-switch-custom input:checked + .switch-slider.switch-slider-danger {
    background-color: #dc3545;
}

.form-switch-custom input:checked + .switch-slider:before {
    transform: translateX(24px);
}

.form-switch-custom .switch-label {
    font-size: 14px;
    color: #333;
}

/* ============================================
   Sensitive Field Container (Edit User)
   ============================================ */
.sensitive-field-container {
    position: relative;
}

.sensitive-field-container .lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: not-allowed;
}

.sensitive-field-container .lock-overlay i {
    font-size: 20px;
    color: #6c757d;
}

/* ============================================
   Conflict Alert (Edit User)
   ============================================ */
.conflict-alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.conflict-alert .conflict-user-info {
    font-size: 13px;
    color: #856404;
}

.conflict-alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
}

.conflict-alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
}

/* ============================================
   Orange Gradient Button (Rounded)
   ============================================ */
.btn-orange-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-orange-gradient:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.3);
}

.btn-orange-gradient i {
    margin-right: 0.4rem;
}