/* VMS Custom Theme Enhancements - Tabler Integration */

/* ===== BODY & MAIN CONTENT ===== */
body {
    background-color: #f8f9fa;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 2rem !important;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* ===== CARDS ===== */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    overflow: hidden;
}

.card-body {
    background-color: #ffffff;
    color: #1e293b;
    padding: 1.5rem;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Exclude modals from card hover effects */
.modal .card:hover {
    transform: none !important;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 600;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
}

/* Hero/Welcome cards */
.card.border-primary {
    border-width: 2px;
    border-color: #206bc4 !important;
}

.card.border-primary .card-body {
    background: transparent;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-size: 0.875rem;
    line-height: 1.5;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #206bc4;
    border-color: #206bc4;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1a5aa0;
    border-color: #1a5aa0;
    color: #ffffff;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
}

.btn-outline-primary {
    color: #206bc4;
    border-color: #206bc4;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #206bc4;
    border-color: #206bc4;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(32, 107, 196, 0.25);
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(108, 117, 125, 0.25);
}

/* ===== NAVBAR (public portal — base.html) ===== */
.navbar.navbar-expand-lg.navbar-dark.bg-primary {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    background-color: #206bc4 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    font-weight: 600;
    color: #ffffff !important;
}

.nav-link {
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    margin: 0 0.25rem;
    padding: 0.5rem 0.75rem !important;
    font-weight: 500;
}

.navbar-dark .nav-link,
.navbar.bg-primary .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-dark .nav-link:hover,
.navbar.bg-primary .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

.nav-link i {
    margin-right: 0.375rem;
}

/* Mobile: white top bar + white dropdown panel (matches Security portal) */
@media (max-width: 991.98px) {
    .navbar.navbar-expand-lg.navbar-dark.bg-primary.vms-portal-navbar,
    header.navbar.vms-admin-topbar {
        position: relative;
        z-index: 1030;
        background-color: #ffffff !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }

    .navbar.navbar-expand-lg.navbar-dark.bg-primary.vms-portal-navbar .navbar-brand {
        color: #1e293b !important;
    }

    .vms-portal-navbar .navbar-toggler,
    .vms-admin-topbar .navbar-toggler {
        border-color: rgba(0, 0, 0, 0.15);
        padding: 0.5rem 0.65rem;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .vms-portal-navbar .navbar-toggler:focus,
    .vms-admin-topbar .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(32, 107, 196, 0.25);
    }

    .vms-portal-navbar .vms-navbar-toggler,
    .vms-admin-topbar .vms-navbar-toggler {
        color: #334155;
        font-size: 1.5rem;
        line-height: 1;
    }

    .vms-navbar-toggler .navbar-toggler-icon {
        display: none;
    }

    .vms-navbar-toggler[aria-expanded="true"] .vms-nav-icon-menu {
        display: none !important;
    }

    .vms-navbar-toggler[aria-expanded="true"] .vms-nav-icon-close {
        display: inline-block !important;
    }

    .vms-navbar-toggler[aria-expanded="false"] .vms-nav-icon-close {
        display: none !important;
    }

    .vms-mobile-nav-collapse {
        flex-basis: 100%;
        flex-grow: 1;
        background-color: #ffffff;
        margin-top: 0.5rem;
        padding: 0.5rem 0 0.75rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .vms-mobile-nav-collapse .navbar-nav {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .vms-mobile-nav-collapse .navbar-nav .nav-item {
        width: 100%;
    }

    .vms-mobile-nav-collapse .navbar-nav .nav-link,
    .vms-mobile-nav-collapse .navbar-nav .nav-link.btn {
        display: block;
        width: 100%;
        text-align: start;
        color: #334155 !important;
        padding: 0.45rem 0.75rem !important;
        font-weight: 500;
        border-radius: 0.375rem;
        margin: 0;
    }

    .vms-mobile-nav-collapse .navbar-nav .nav-link:hover,
    .vms-mobile-nav-collapse .navbar-nav .nav-link.btn:hover {
        color: #206bc4 !important;
        background-color: rgba(32, 107, 196, 0.08);
    }

    .vms-mobile-nav-collapse .navbar-nav .nav-link.active {
        color: #206bc4 !important;
        background-color: rgba(32, 107, 196, 0.12);
        font-weight: 600;
    }

    .vms-mobile-nav-collapse form.d-flex {
        width: 100%;
        margin: 0 !important;
    }

    .vms-mobile-nav-collapse .lang-switch-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== FORMS ===== */
.form-control,
.form-select {
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background-color: #ffffff;
    color: #1e293b;
}

.form-control:focus,
.form-select:focus {
    border-color: #206bc4;
    box-shadow: 0 0 0 0.2rem rgba(32, 107, 196, 0.15);
    outline: none;
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* ===== TABLES ===== */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #206bc4;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 0.75rem 1rem;
    color: #475569;
}

.table tbody {
    background-color: #ffffff;
}

.table tbody tr {
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.table tbody tr:hover {
    background-color: rgba(32, 107, 196, 0.05);
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    color: #1e293b;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-striped tbody tr:nth-of-type(odd):hover {
    background-color: rgba(32, 107, 196, 0.05);
}

/* ===== BADGES ===== */
.badge {
    padding: 0.4em 0.75em;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* Status badges with better styling */
.badge.bg-success.bg-opacity-10 {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
    border: 1px solid rgba(25, 135, 84, 0.3) !important;
}

.badge.bg-secondary.bg-opacity-10 {
    background-color: rgba(108, 117, 125, 0.1) !important;
    color: #6c757d !important;
    border: 1px solid rgba(108, 117, 125, 0.3) !important;
}

.badge.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.15) !important;
    color: #b8860b !important;
    border: 1px solid rgba(255, 193, 7, 0.4) !important;
}

.badge.bg-danger.bg-opacity-10 {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
}

.badge.bg-primary.bg-opacity-10 {
    background-color: rgba(32, 107, 196, 0.1) !important;
    color: #206bc4 !important;
    border: 1px solid rgba(32, 107, 196, 0.3) !important;
}

.badge.bg-info.bg-opacity-10 {
    background-color: rgba(13, 202, 240, 0.1) !important;
    color: #0dcaf0 !important;
    border: 1px solid rgba(13, 202, 240, 0.3) !important;
}

.badge i {
    font-size: 0.875em;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: 0.5rem;
    border-left: 4px solid;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1rem 1.25rem;
    border-top: none;
    border-right: none;
    border-bottom: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.alert {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.lead {
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #64748b;
    font-size: 1.125rem;
}

p, .text-muted {
    color: #64748b;
    line-height: 1.6;
}

.text-muted {
    color: #94a3b8 !important;
}

/* ===== SPACING IMPROVEMENTS ===== */
.mb-4 {
    margin-bottom: 2rem !important;
}

.py-4 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* ===== INPUT GROUPS ===== */
.input-group .form-control:focus {
    z-index: 3;
}

.input-group .btn {
    box-shadow: none;
}

.input-group .btn:hover {
    transform: none;
}

/* ===== FOOTER ===== */
footer {
    box-shadow: 0 -0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    background-color: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

footer a {
    color: #64748b !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #206bc4 !important;
}

/* ===== SUCCESS/ERROR STATES ===== */
.card.border-success {
    border-width: 2px;
    border-color: #2fb344 !important;
}

.card.border-warning {
    border-width: 2px;
    border-color: #f59f00 !important;
}

/* ===== FORM SECTIONS ===== */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: 0;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    main {
        padding: 1.5rem !important;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .card {
        border-radius: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* ===== AVATARS ===== */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(0, 0, 0, 0.08);
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.avatar-lg {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
}

.avatar.bg-primary {
    background-color: #206bc4;
    color: #ffffff;
}

.avatar.bg-success {
    background-color: #198754;
    color: #ffffff;
}

.avatar.bg-info {
    background-color: #0dcaf0;
    color: #ffffff;
}

.avatar.bg-warning {
    background-color: #ffc107;
    color: #000000;
}

.avatar.bg-danger {
    background-color: #dc3545;
    color: #ffffff;
}

.avatar.bg-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

/* ===== DASHBOARD STATS ===== */
.stat-icon {
    font-size: 2.5rem;
    opacity: 0.7;
}

.stat-icon.text-warning {
    color: #ffc107 !important;
}

.stat-icon.text-success {
    color: #198754 !important;
}

.stat-icon.text-primary {
    color: #206bc4 !important;
}

.stat-icon.text-info {
    color: #0dcaf0 !important;
}

.card .h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

/* ===== MODAL STABILIZATION ===== */
.modal {
    /* Prevent vibration/shaking - completely disable transitions */
    will-change: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
    animation: none !important;
}

.modal.show {
    transform: none !important;
    -webkit-transform: none !important;
}

.modal.fade {
    transition: none !important;
    animation: none !important;
}

.modal.fade.show {
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
}

.modal-dialog {
    /* Completely stable - no transforms, no transitions */
    will-change: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
    animation: none !important;
    margin: 0 !important;
}

.modal-dialog:hover,
.modal-dialog:focus,
.modal-dialog:active {
    transform: none !important;
    -webkit-transform: none !important;
}

.modal-content {
    /* Completely stable - no movement on hover */
    will-change: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
    animation: none !important;
    position: relative !important;
}

.modal-content:hover,
.modal-content:focus,
.modal-content:active {
    transform: none !important;
    -webkit-transform: none !important;
    box-shadow: inherit !important;
}

/* Disable all transforms and transitions on modal child elements */
.modal-body,
.modal-header,
.modal-footer {
    transition: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    animation: none !important;
}

.modal-body:hover,
.modal-header:hover,
.modal-footer:hover {
    transform: none !important;
    -webkit-transform: none !important;
}

.modal .btn,
.modal button {
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
    transform: none !important;
}

.modal .btn:hover,
.modal .btn:focus,
.modal .btn:active,
.modal button:hover,
.modal button:focus,
.modal button:active {
    transform: none !important;
    -webkit-transform: none !important;
}

/* Ensure no card hover effects apply to modal content */
.modal .card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
    transform: none !important;
}

.modal .card:hover {
    transform: none !important;
    -webkit-transform: none !important;
}

/* Modal backdrop - prevent any movement */
.modal-backdrop {
    transition: opacity 0.15s linear !important;
    transform: none !important;
    -webkit-transform: none !important;
}

.modal-backdrop.show {
    opacity: 0.5 !important;
    transform: none !important;
    -webkit-transform: none !important;
}

/* Camera modal - ULTRA AGGRESSIVE stability fixes - prevent ALL movement */
#cameraModal {
    /* Completely lock modal */
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
    animation: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1055 !important;
}

#cameraModal.show {
    transform: none !important;
    -webkit-transform: none !important;
    opacity: 1 !important;
}

#cameraModal.fade {
    transition: none !important;
    opacity: 1 !important;
}

#cameraModal.fade.show {
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
}

#cameraModal .modal-dialog {
    /* Completely lock dialog - use fixed positioning */
    transform: translate(-50%, -50%) !important;
    -webkit-transform: translate(-50%, -50%) !important;
    transition: none !important;
    animation: none !important;
    margin: 0 !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    will-change: auto !important;
    pointer-events: auto !important;
}

#cameraModal .modal-dialog:hover,
#cameraModal .modal-dialog:focus,
#cameraModal .modal-dialog:active,
#cameraModal .modal-dialog * {
    transform: translate(-50%, -50%) !important;
    -webkit-transform: translate(-50%, -50%) !important;
}

#cameraModal .modal-content {
    /* Completely lock content - no transforms at all */
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
    animation: none !important;
    position: relative !important;
    will-change: auto !important;
    pointer-events: auto !important;
}

#cameraModal .modal-content:hover,
#cameraModal .modal-content:focus,
#cameraModal .modal-content:active,
#cameraModal .modal-content * {
    transform: none !important;
    -webkit-transform: none !important;
    box-shadow: inherit !important;
}

#cameraModal .modal-body,
#cameraModal .modal-header,
#cameraModal .modal-footer {
    /* Lock all modal sections - absolutely no movement */
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
    animation: none !important;
    position: relative !important;
    will-change: auto !important;
    pointer-events: auto !important;
}

#cameraModal .modal-body:hover,
#cameraModal .modal-header:hover,
#cameraModal .modal-footer:hover {
    transform: none !important;
    -webkit-transform: none !important;
}

/* Video element - completely stable */
#videoStream {
    /* Lock video element completely */
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: auto !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    /* Prevent any size changes */
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    /* Lock position */
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Video container - completely stable wrapper */
#video-container {
    /* Lock container completely */
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: auto !important;
    /* Lock container size */
    min-height: 300px !important;
    position: relative !important;
    /* Prevent any layout shifts */
    overflow: hidden !important;
    display: block !important;
}

/* Prevent any card hover effects on modal */
#cameraModal .card,
#cameraModal .card:hover {
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
}

/* Prevent button transforms in modal - ensure buttons are clickable */
#cameraModal .btn,
#cameraModal button {
    transform: none !important;
    -webkit-transform: none !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

#cameraModal .btn:hover,
#cameraModal .btn:focus,
#cameraModal .btn:active,
#cameraModal button:hover,
#cameraModal button:focus,
#cameraModal button:active {
    transform: none !important;
    -webkit-transform: none !important;
    position: relative !important;
    z-index: 1001 !important;
}

/* Ensure capture button is always clickable */
#capturePhotoBtn {
    position: relative !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    transform: none !important;
    -webkit-transform: none !important;
}

#capturePhotoBtn:hover,
#capturePhotoBtn:focus,
#capturePhotoBtn:active {
    transform: none !important;
    -webkit-transform: none !important;
    z-index: 10001 !important;
}

/* Photo modal image - prevent vibration */
.modal img.img-fluid {
    /* Prevent layout shifts */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Smooth rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
}

/* ===== Security dashboards: pending / approved / rejected visit tables ===== */
.security-visits-table tbody td {
    color: #334155;
    font-size: 0.9375rem;
    font-weight: 500;
    vertical-align: middle;
}

.security-visits-table tbody td .text-muted {
    color: #5c6d7e !important;
}

/* Visitor column: name + detail lines (matches pending approvals) */
.pending-approval-visitor-name {
    font-size: 1.3125rem;
    line-height: 1.3;
    font-weight: 700;
    color: #1f4aa8;
    letter-spacing: -0.015em;
}

.pending-approval-visitor-meta {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #5c6d7e;
    margin-top: 0.4rem;
    font-weight: 500;
}

[data-bs-theme="dark"] .security-visits-table tbody td {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .security-visits-table tbody td .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .pending-approval-visitor-name {
    color: #93c5fd;
}

[data-bs-theme="dark"] .pending-approval-visitor-meta {
    color: #94a3b8;
}
