﻿*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: #F6F7FB;
    color: #1E1E2D;
    font-size: 14px;
    line-height: 1.5;
}
a { text-decoration: none; }

.vx-shell { display: flex; min-height: 100vh; width: 100%; }
.vx-sidebar {
    width: 245px;
    min-width: 245px;
    background-color: #12102C;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    padding: 26px 18px;
}
.vx-logo { padding: 0 10px 26px; }
.vx-logo-text { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: #FFFFFF; }
.vx-logo-x { color: #7B61FF; font-style: italic; }

.vx-nav { display: flex; flex-direction: column; gap: 6px; }
.vx-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 12px;
    color: #A2A3B7;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.18s ease;
}
.vx-nav-item:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.vx-nav-item.active {
    background: linear-gradient(90deg, #7B61FF 0%, #6A4FF7 100%);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(123, 97, 255, 0.35);
}
.vx-icon { font-size: 15px; width: 18px; text-align: center; }

.vx-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.vx-topbar {
    background: #FFFFFF;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #ECEEF5;
}
.vx-greeting h2 { margin: 0; font-size: 20px; font-weight: 700; color: #1E1E2D; }
.vx-greeting p { margin: 2px 0 0; font-size: 12px; color: #8A8D9F; }

.vx-global-search {
    display: flex;
    align-items: center;
    background: #F6F7FB;
    border-radius: 12px;
    padding: 9px 16px;
    width: 300px;
    max-width: 100%;
}
.vx-global-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    margin-left: 8px;
    font-size: 13px;
    color: #1E1E2D;
}
.vx-top-actions { display: flex; align-items: center; gap: 16px; }
.vx-profile-box { display: flex; align-items: center; gap: 10px; }
.vx-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #EDE9FE;
    color: #7B61FF;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vx-profile-name { font-weight: 700; font-size: 13px; color: #1E1E2D; }
.vx-profile-role { font-size: 11px; color: #8A8D9F; }
.vx-logout-btn {
background: #FFF1F2;
color: #E11D48;
border: none;
padding: 8px 14px;
border-radius: 10px;
font-weight: 600;
font-size: 12px;
cursor: pointer;
}
.vx-logout-btn:hover { background: #FFE4E6; }
.vx-content { padding: 26px 32px; }
.vx-dashboard-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 300px;
gap: 24px;
align-items: start;
}
.vx-center-col { display: flex; flex-direction: column; gap: 22px; }
.vx-right-col { display: flex; flex-direction: column; gap: 22px; }
/* 4 Pastel KPI Cards */
.vx-kpi-row {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
}
.vx-kpi-card {
border-radius: 16px;
padding: 18px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.vx-kpi-purple { background: #F4F2FF; }
.vx-kpi-coral { background: #FFF2F0; }
.vx-kpi-mint { background: #EFFBF6; }
.vx-kpi-amber { background: #FFF8EF; }
.vx-kpi-tag {
display: inline-block;
width: fit-content;
padding: 3px 10px;
border-radius: 8px;
font-size: 11px;
font-weight: 600;
margin-bottom: 12px;
}
.vx-kpi-purple .vx-kpi-tag { background: #E4DFFF; color: #6B4EFF; }
.vx-kpi-coral .vx-kpi-tag { background: #FFE1DD; color: #E55347; }
.vx-kpi-mint .vx-kpi-tag { background: #D7F5E8; color: #109665; }
.vx-kpi-amber .vx-kpi-tag { background: #FDEBD2; color: #D9821E; }
.vx-kpi-label { font-size: 13px; color: #6E7185; font-weight: 500; margin-bottom: 6px; }
.vx-kpi-val { font-size: 28px; font-weight: 800; color: #1E1E2D; line-height: 1; }
/* Cards */
.vx-card, .card {
background: #FFFFFF;
border-radius: 18px;
padding: 22px;
box-shadow: 0 2px 12px rgba(24, 24, 48, 0.03);
border: 1px solid #F0F1F7;
}
.card { padding: 0; overflow: hidden; }
.card-header {
padding: 16px 22px;
background: #FFFFFF;
border-bottom: 1px solid #F0F1F7;
font-weight: 700;
font-size: 15px;
display: flex;
align-items: center;
justify-content: space-between;
}
.card-header.bg-primary { background: #7B61FF !important; color: #FFFFFF !important; }
.card-body { padding: 20px 22px; }
.vx-card-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18px;
gap: 12px;
}
.vx-card-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: #1E1E2D; }
.vx-pill-select {
background: #F6F7FB;
color: #6E7185;
padding: 6px 12px;
border-radius: 10px;
font-size: 12px;
font-weight: 600;
}
/* Statistics Strip & SVG Wave */
.vx-stat-strip {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 8px;
margin-bottom: 8px;
}
.vx-stat-col { padding: 14px 12px; border-radius: 14px; }
.vx-stat-col.featured { background: #9C89FF; color: #FFFFFF; }
.vx-stat-date { font-size: 12px; color: #8A8D9F; margin-bottom: 4px; }
.vx-stat-col.featured .vx-stat-date { color: rgba(255,255,255,0.85); }
.vx-stat-num { font-size: 20px; font-weight: 800; }
.vx-stat-num small { font-size: 12px; font-weight: 500; }
.vx-chart-wrap { width: 100%; height: 110px; overflow: hidden; border-radius: 12px; }
.vx-area-svg { width: 100%; height: 100%; display: block; }
/* Table & Tools */
.vx-table-tools { display: flex; align-items: center; gap: 10px; }
.vx-mini-search input {
background: #F6F7FB;
border: 1px solid #ECEEF5;
border-radius: 10px;
padding: 8px 14px;
font-size: 13px;
outline: none;
}
.vx-btn-purple, .btn-primary {
background: #7B61FF;
color: #FFFFFF;
padding: 9px 16px;
border-radius: 10px;
font-weight: 600;
font-size: 13px;
border: none;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
}
.vx-btn-purple:hover, .btn-primary:hover { background: #684DF0; }
.vx-table, .table { width: 100%; border-collapse: collapse; text-align: left; }
.vx-table th, .table th {
color: #8A8D9F;
font-weight: 600;
font-size: 12px;
padding: 12px 14px;
border-bottom: 1px solid #F0F1F7;
}
.vx-table td, .table td {
padding: 14px;
border-bottom: 1px solid #F6F7FB;
vertical-align: middle;
}
.vx-person-cell { display: flex; align-items: center; gap: 10px; }
.vx-row-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
background: #EDE9FE;
color: #7B61FF;
font-weight: 700;
font-size: 13px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.vx-status {
padding: 5px 12px;
border-radius: 8px;
font-size: 12px;
font-weight: 600;
display: inline-block;
}
.vx-status-in { background: #DCFCE7; color: #15803D; }
.vx-status-out { background: #FEF3C7; color: #B45309; }
/* Donut Chart */
.vx-donut-wrap { display: flex; justify-content: center; margin: 14px 0 20px; }
.vx-donut {
width: 155px;
height: 155px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.vx-donut-hole {
width: 102px;
height: 102px;
border-radius: 50%;
background: #FFFFFF;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}
.vx-donut-pct { font-size: 20px; font-weight: 800; color: #1E1E2D; }
.vx-donut-sub { font-size: 11px; color: #8A8D9F; }
.vx-legend { display: flex; flex-direction: column; gap: 10px; }
.vx-legend-item { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #6E7185; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.dot-purple { background: #7B61FF; }
.dot-mint { background: #10B981; }
.dot-amber { background: #F59E0B; }
/* Shared CRUD Helpers */
.row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 22px; }
.col-md-4 { flex: 0 0 360px; max-width: 100%; }
.col-md-8 { flex: 1 1 560px; min-width: 0; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 22px; }
.form-label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; color: #334155; }
.form-control, .form-select {
width: 100%;
padding: 9px 12px;
border: 1px solid #E2E8F0;
border-radius: 10px;
font-size: 14px;
outline: none;
}
.form-control:focus, .form-select:focus { border-color: #7B61FF; }
.btn { padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; border: none; cursor: pointer; }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn-success { background: #10B981; color: #fff; }
.btn-danger { background: #EF4444; color: #fff; }
.btn-outline-primary { background: #F4F2FF; color: #7B61FF; }
.btn-outline-secondary { background: #F1F5F9; color: #475569; }
.badge { padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.bg-success { background: #DCFCE7; color: #166534; }
.bg-danger { background: #FEE2E2; color: #991B1B; }
.bg-warning { background: #FEF3C7; color: #92400E; }
.bg-info { background: #E0F2FE; color: #075985; }
.bg-dark { background: #12102C; color: #fff; }
.bg-secondary { background: #E2E8F0; color: #475569; }
.w-100 { width: 100%; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 10px; }
.fw-semibold, .fw-bold { font-weight: 600; }
.text-muted { color: #8A8D9F; }
.text-center { text-align: center; }
.table-responsive { width: 100%; overflow-x: auto; }
.vx-auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #12102C; padding: 20px; }
.vx-auth-shell .row { width: 100%; justify-content: center; }
.alert-danger { background: #FEE2E2; color: #991B1B; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
@media (max-width: 1150px) {
.vx-dashboard-grid { grid-template-columns: 1fr; }
.vx-kpi-row { grid-template-columns: repeat(2, 1fr); }
}
/* Floating Settings Dropdown */
.vx-settings-dropdown { position: relative; display: inline-block; }
.vx-settings-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #ECEEF5;
    background: #F6F7FB;
    color: #1E1E2D;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.vx-settings-btn:hover { background: #EDE9FE; color: #7B61FF; border-color: #DDD6FE; }
.vx-settings-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    width: 210px;
    background: #FFFFFF;
    border: 1px solid #ECEEF5;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(18, 16, 44, 0.14);
    padding: 8px;
    z-index: 9999;
}
.vx-settings-menu.show { display: block; }
.vx-menu-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8A8D9F;
    padding: 6px 12px;
}
.vx-menu-item {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border-radius: 9px;
    color: #1E1E2D;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}
.vx-menu-item:hover { background: #F4F2FF; color: #7B61FF; }
.vx-menu-divider { height: 1px; background: #F0F1F7; margin: 6px 0; }
.vx-menu-logout { color: #E11D48; }
.vx-menu-logout:hover { background: #FFF1F2; color: #BE123C; }
/* Alerts & Inline Edit Modal */
.vx-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; font-size: 13px; }
.vx-alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.vx-alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.btn-warning { background: #F59E0B; color: #FFFFFF; }
.btn-warning:hover { background: #D97706; }
/* Action Icon Buttons (Edit & Delete) */
.vx-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}
.vx-edit-btn { background: #FEF3C7; color: #D97706; }
.vx-edit-btn:hover { background: #F59E0B; color: #FFFFFF; }
.vx-del-btn { background: #FEE2E2; color: #DC2626; }
.vx-del-btn:hover { background: #EF4444; color: #FFFFFF; }
/* Centered Delete Confirmation Modal */
.vx-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18, 16, 44, 0.55);
    backdrop-filter: blur(2px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.vx-modal-backdrop.show {
    display: flex;
}
.vx-modal-box {
    background: #FFFFFF;
    width: 100%;
    max-width: 380px;
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(18, 16, 44, 0.25);
    animation: vxPopIn 0.16s ease-out;
}
@keyframes vxPopIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.vx-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #FEE2E2;
    color: #DC2626;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.vx-modal-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1E1E2D;
}
.vx-modal-desc {
    margin: 0 0 22px;
    font-size: 13px;
    color: #8A8D9F;
}
.vx-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.vx-modal-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.vx-btn-no {
    background: #F1F5F9;
    color: #475569;
}
.vx-btn-no:hover {
    background: #E2E8F0;
}
.vx-btn-yes {
    background: #EF4444;
    color: #FFFFFF;
}
.vx-btn-yes:hover {
    background: #DC2626;
}
/* Sidebar Expandable Submenu for Reports & Logs */
.vx-nav-group { display: flex; flex-direction: column; }
.vx-nav-dropdown-btn {
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.vx-nav-submenu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0 6px 14px;
    margin-top: 2px;
}
.vx-nav-submenu.open { display: flex; }
.vx-sub-item {
    display: block;
    padding: 8px 14px;
    border-radius: 10px;
    color: #9E9FB4;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}
.vx-sub-item:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.vx-sub-item.active {
    color: #FFFFFF;
    background: rgba(123, 97, 255, 0.28);
    font-weight: 600;
    border-left: 3px solid #7B61FF;
}
/* Menu Icon Alignment */
.vx-nav-item { display: flex; align-items: center; gap: 11px; }
.vx-icon { width: 20px; text-align: center; font-size: 16px; display: inline-block; }
.vx-menu-item { display: flex; align-items: center; gap: 10px; }
.vx-m-icon { width: 18px; text-align: center; font-size: 15px; display: inline-block; }
/* Professional Enterprise Split-Screen Login */
.vx-auth-shell {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #231E54 0%, #12102C 55%, #0B0A1D 100%);
    padding: 24px;
}
.vx-login-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    width: 100%;
    max-width: 920px;
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.45);
}
.vx-login-left {
    background: linear-gradient(155deg, #1A1642 0%, #12102C 60%, #241B5B 100%);
    color: #FFFFFF;
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.vx-login-brand {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}
.vx-login-hero {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 14px;
    color: #FFFFFF;
}
.vx-login-sub {
    font-size: 14px;
    color: #B4B6CC;
    line-height: 1.6;
    margin: 0 0 28px;
}
.vx-login-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
}
.vx-login-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #E2E4F3;
    font-weight: 500;
}
.vx-feat-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(123, 97, 255, 0.28);
    color: #A78BFA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.vx-login-right {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FFFFFF;
}
.vx-login-form-head h3 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: #1E1E2D;
}
.vx-login-form-head p {
    margin: 0 0 26px;
    font-size: 14px;
    color: #8A8D9F;
}
.vx-field { margin-bottom: 18px; }
.vx-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}
.vx-input-wrap {
    display: flex;
    align-items: center;
    background: #F6F7FB;
    border: 1.5px solid #E4E7F2;
    border-radius: 12px;
    padding: 0 14px;
    transition: all 0.15s ease;
}
.vx-input-wrap:focus-within {
    background: #FFFFFF;
    border-color: #7B61FF;
    box-shadow: 0 0 0 4px rgba(123, 97, 255, 0.12);
}
.vx-input-icon {
    font-size: 15px;
    color: #8A8D9F;
    margin-right: 10px;
}
.vx-login-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 13px 0;
    font-size: 14px;
    color: #1E1E2D;
    outline: none;
}
.vx-eye-btn {
    background: transparent;
    border: none;
    color: #8A8D9F;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}
.vx-eye-btn:hover { color: #7B61FF; }
.vx-login-submit {
    width: 100%;
    padding: 13px 18px;
    margin-top: 6px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #7B61FF 0%, #6346F5 100%);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(123, 97, 255, 0.35);
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.vx-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(123, 97, 255, 0.45);
}
.vx-login-foot {
    margin-top: 26px;
    text-align: center;
    font-size: 12px;
    color: #9E9FB4;
}
@media (max-width: 780px) {
    .vx-login-card { grid-template-columns: 1fr; max-width: 440px; }
    .vx-login-left { display: none; }
    .vx-login-right { padding: 36px 28px; }
}
/* Pure CSS Rotating Chevron for Reports Dropdown */
.vx-chevron {
    margin-left: auto;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    display: inline-block;
}
.vx-nav-dropdown-btn.open .vx-chevron {
    transform: rotate(45deg);
}

/* vx-clean-action-override */
.vx-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 3px solid #D1D5DB !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.22), inset 0 2px 3px rgba(255, 255, 255, 0.35), inset 0 -3px 5px rgba(0, 0, 0, 0.45) !important;
    color: #FFFFFF !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease !important;
    cursor: pointer;
    text-decoration: none !important;
}
.vx-edit-btn {
    background: radial-gradient(circle at 32% 28%, #3B82F6 0%, #1D4ED8 55%, #0F296D 100%) !important;
}
.vx-edit-btn:hover {
    transform: translateY(-1px) scale(1.06);
    box-shadow: 0 5px 10px rgba(29, 78, 216, 0.38), inset 0 2px 4px rgba(255, 255, 255, 0.45) !important;
}
.vx-del-btn {
    background: radial-gradient(circle at 32% 28%, #2563EB 0%, #1E3A8A 60%, #0B1B4D 100%) !important;
}
.vx-del-btn:hover {
    background: radial-gradient(circle at 32% 28%, #EF4444 0%, #B91C1C 60%, #7F1D1D 100%) !important;
    transform: translateY(-1px) scale(1.06);
    box-shadow: 0 5px 10px rgba(185, 28, 28, 0.38), inset 0 2px 4px rgba(255, 255, 255, 0.45) !important;
}

/* vx-sticky-sidebar-override */
.vx-sidebar, aside, .sidebar {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    align-self: flex-start !important;
    flex-shrink: 0 !important;
}

/* vx-mobile-responsive-override */
@media (max-width: 768px) {
    .vx-shell, .app-wrapper, body > div {
        flex-direction: column !important;
    }
    .vx-sidebar, aside, .sidebar {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        padding: 10px 12px !important;
    }
    .vx-nav, .nav-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .vx-main, main {
        padding: 12px !important;
        width: 100% !important;
    }
}/* Lock Desktop Dark Navy Sidebar to 100% Full Viewport Height from Top to Bottom */
@media (min-width: 992px) {
    .vx-sidebar, aside.vx-sidebar, nav.vx-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 235px !important;
        height: 100vh !important;
        min-height: 100vh !important;
        background: #16183D !important;
        overflow-y: auto !important;
        z-index: 1000 !important;
    }
    .vx-main {
        margin-left: 235px !important;
        width: calc(100% - 235px) !important;
        min-height: 100vh !important;
    }
}/* Keep table status/pass badges on one crisp line on Desktop */
@media (min-width: 769px) {
    table .badge, td .badge, .vx-pass-pill {
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ==========================================================================
   VISITX GLOBAL MASTER UI & PERFECT FORM ALIGNMENT SYSTEM
   ========================================================================== */

/* 1. Full-Width Stacked Cards on All Form + Table Pages */
.vx-content .row > .col-md-4,
.vx-content .row > .col-md-8,
.vx-content .row > .vx-reg-col,
.vx-content .row > .vx-dir-col,
.vx-content .row > .vx-appt-form-col,
.vx-content .row > .vx-appt-list-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.vx-content .row > .col-md-4,
.vx-content .row > .vx-reg-col,
.vx-content .row > .vx-appt-form-col {
    margin-bottom: 20px !important;
}

/* 2. Card Container & Header Aesthetics */
.vx-content .card {
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
    background: #FFFFFF !important;
    overflow: hidden !important;
}

.vx-content .row > .col-md-4 > .card > .card-header,
.vx-content .row > .vx-reg-col > .card > .card-header,
.vx-content .row > .vx-appt-form-col > .card > .card-header {
    background: linear-gradient(90deg, #F8FAFC 0%, #EEF2FF 100%) !important;
    border-bottom: 1px solid #E2E8F0 !important;
    padding: 13px 24px !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    color: #1E1B4B !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.vx-content .row > .col-md-4 > .card > .card-body,
.vx-content .row > .vx-reg-col > .card > .card-body,
.vx-content .row > .vx-appt-form-col > .card > .card-body {
    padding: 20px 24px !important;
}

/* 3. Strict 4-Column Symmetrical Form Grid (Overrides visitor-page.css flex/grid) */
.vx-content .row > .col-md-4 > .card > .card-body > form,
.vx-content .row > .vx-reg-col > .card > .card-body > form,
.vx-content .row > .vx-appt-form-col > .card > .card-body > form {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px 18px !important;
    align-items: start !important;
}

.vx-content .row > .col-md-4 form > div,
.vx-content .row > .vx-reg-col form > div,
.vx-content .row > .vx-appt-form-col form > div {
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
}

/* Keep Hidden Camera/Preview Boxes Hidden Until Activated */
#vxCameraBox[style*="display:none"], #vxCameraBox[style*="display: none"],
#vxPhotoPreviewWrap[style*="display:none"], #vxPhotoPreviewWrap[style*="display: none"],
#vxPhoneMatchHint[style*="display:none"], #vxPhoneMatchHint[style*="display: none"],
#vxApptPhoneHint[style*="display:none"], #vxApptPhoneHint[style*="display: none"] {
    display: none !important;
}

/* 4. Visitor Photo Buttons: Single-Line, Equal Height, Crisp Alignment */
.vx-reg-col form > div:first-of-type > div:first-of-type {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    width: 100% !important;
}

.vx-reg-col form > div:first-of-type button {
    flex: 1 1 0 !important;
    height: 39px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* 5. Clean, Non-Overlapping Single-Line Form Labels */
.vx-content .row > .col-md-4 .form-label,
.vx-content .row > .vx-reg-col .form-label,
.vx-content .row > .vx-appt-form-col .form-label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 6. Uniform Input, Dropdown & Address Height (39px Exact) */
.vx-content .row > .col-md-4 .form-control,
.vx-content .row > .col-md-4 .form-select,
.vx-content .row > .vx-reg-col .form-control,
.vx-content .row > .vx-reg-col .form-select,
.vx-content .row > .vx-appt-form-col .form-control,
.vx-content .row > .vx-appt-form-col .form-select,
.vx-content .vx-cal-display {
    width: 100% !important;
    height: 39px !important;
    min-height: 39px !important;
    max-height: 39px !important;
    padding: 0 13px !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 37px !important;
    color: #0F172A !important;
    background-color: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
}

/* Address Textarea Styled as Wide Single-Line Input (No Vertical Scrollbar) */
.vx-content .row > .col-md-4 textarea.form-control,
.vx-content .row > .vx-reg-col textarea.form-control {
    padding: 8px 13px !important;
    line-height: 21px !important;
    resize: none !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.vx-content .row > .col-md-4 .form-control:focus,
.vx-content .row > .col-md-4 .form-select:focus,
.vx-content .row > .vx-reg-col .form-control:focus,
.vx-content .row > .vx-reg-col .form-select:focus,
.vx-content .row > .vx-appt-form-col .form-control:focus,
.vx-content .row > .vx-appt-form-col .form-select:focus {
    background-color: #FFFFFF !important;
    border-color: #6366F1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.13) !important;
    outline: none !important;
}

/* 7. Wide Address Field (Spans 3 Columns in Row 3 to Complete the 4-Col Grid) */
.vx-reg-col form > .mb-3:not(:first-of-type),
.vx-appt-form-col form > .mb-3,
.vx-content .row > .col-md-4 form > .mb-3:has(textarea) {
    grid-column: span 3 !important;
}

.vx-appt-form-col form > .mb-3 { order: 1 !important; }

/* 8. Full-Width Accompanying Visitors / Persons Box */
.vx-reg-col form > .vx-comp-box,
.vx-appt-form-col form > div:nth-of-type(10),
.vx-appt-form-col form > div:has(#vxApptAddCompBtn),
.vx-content .row > .col-md-4 form > .vx-comp-box {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    background: #F8FAFC !important;
    border: 1px dashed #CBD5E1 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    order: 2 !important;
}

.vx-appt-form-col form > div:nth-of-type(10) > div:first-child,
.vx-appt-form-col form > div:has(#vxApptAddCompBtn) > div:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* 9. Right-Aligned Primary Submit Action Bar */
.vx-content .row > .col-md-4 form > .d-flex.gap-2,
.vx-content .row > .col-md-4 form > button[type="submit"],
.vx-reg-col form > .d-flex.gap-2,
.vx-appt-form-col form > .d-flex.gap-2 {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
    padding-top: 12px !important;
    margin-top: 2px !important;
    border-top: 1px solid #F1F5F9 !important;
    order: 3 !important;
    width: 100% !important;
}

.vx-content .row > .col-md-4 form button[type="submit"],
.vx-reg-col form button[type="submit"],
.vx-appt-form-col form button[type="submit"] {
    width: auto !important;
    min-width: 215px !important;
    height: 40px !important;
    padding: 0 24px !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.vx-content .row > .col-md-4 form button[type="submit"]:hover,
.vx-reg-col form button[type="submit"]:hover,
.vx-appt-form-col form button[type="submit"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.34) !important;
}

/* 10. Dashboard Filter Bar & Gate Table Inline Controls */
.vx-content form[method="get"][action*="Dashboard"],
.vx-content form[method="get"][action="/"] {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}
.vx-content form[method="get"][action*="Dashboard"] .vx-cal-wrap,
.vx-content form[method="get"][action="/"] .vx-cal-wrap {
width: 165px !important;
min-width: 155px !important;
}
.vx-content form[method="get"][action*="Dashboard"] .vx-cal-display,
.vx-content form[method="get"][action="/"] .vx-cal-display {
height: 35px !important;
min-height: 35px !important;
line-height: 33px !important;
font-size: 12.5px !important;
}
.vx-content table td form {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
gap: 8px !important;
margin: 0 !important;
}
.vx-content table td form .vx-cal-wrap {
width: 195px !important;
min-width: 185px !important;
}
.vx-content table td form .vx-cal-display {
height: 34px !important;
min-height: 34px !important;
line-height: 32px !important;
font-size: 12px !important;
padding: 0 32px 0 10px !important;
}
.vx-content table td form button[type="submit"] {
height: 34px !important;
padding: 0 14px !important;
font-size: 12px !important;
font-weight: 700 !important;
border-radius: 8px !important;
white-space: nowrap !important;
min-width: auto !important;
margin: 0 !important;
}
/* 11. Instant Page Render Fix (No Blank Screen on Menu Click) */
html, body, .vx-shell, .vx-main, .vx-content {
opacity: 1 !important;
visibility: visible !important;
animation: none !important;
transition: none !important;
}
/* 12. Responsive Breakpoints */
@media (max-width: 1100px) {
.vx-content .row > .col-md-4 > .card > .card-body > form,
.vx-reg-col > .card > .card-body > form,
.vx-appt-form-col > .card > .card-body > form {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.vx-reg-col form > .mb-3:not(:first-of-type),
.vx-appt-form-col form > .mb-3,
.vx-content .row > .col-md-4 form > .mb-3:has(textarea) {
grid-column: span 1 !important;
}
}
@media (max-width: 600px) {
.vx-content .row > .col-md-4 > .card > .card-body > form,
.vx-reg-col > .card > .card-body > form,
.vx-appt-form-col > .card > .card-body > form {
grid-template-columns: 1fr !important;
}
}

/* ==========================================================================
   FINAL SYMMETRY POLISH: INLINE PHOTO PREVIEW & FULL-SPAN ADDRESS
   ========================================================================== */

/* 1. Keep Visitor Photo & Preview in ONE Single 39px Line (No Extra Row Height) */
.vx-reg-col form > div:first-of-type {
    display: flex !important;
    flex-direction: column !important;
}
.vx-reg-col form > div:first-of-type > div:first-of-type {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    height: 39px !important;
}
#vxPhotoPreviewWrap:not([style*="display:none"]):not([style*="display: none"]) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 6px !important;
    padding: 4px 10px !important;
    background: #F1F5F9 !important;
    border-radius: 8px !important;
}
#vxPhotoPreviewImg {
    width: 28px !important;
    height: 28px !important;
}
#vxPhotoStatusText {
    font-size: 11px !important;
    white-space: nowrap !important;
}
#vxPhotoPreviewWrap button {
    height: 24px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    flex: 0 0 auto !important;
}

/* 2. Make Address Field Span ALL 3 Remaining Columns (Cols 2, 3 & 4) */
.vx-reg-col form > div:has(#vxAddressInput),
.vx-appt-form-col form > div:has(textarea[name="Address"]),
.vx-content .row > .col-md-4 form > div:has(textarea[name="Address"]) {
    grid-column: 2 / -1 !important;
    width: 100% !important;
}

/* ==========================================================================
   GATE CHECK-IN & CARD ALLOTMENT: SINGLE-ROW 4-COLUMN COMPACT FIX
   ========================================================================== */
.vx-content form[action*="CheckIn"] > .mb-3,
.vx-content form[action*="Gate"] > .mb-3,
.vx-content form[action*="CheckIn"] > div:nth-of-type(4),
.vx-content form[action*="Gate"] > div:nth-of-type(4) {
    grid-column: span 1 !important;
    width: 100% !important;
}

/* ==========================================================================
   GATE CHECK-IN & CARD ALLOTMENT: UNIVERSAL 4TH COLUMN FIX FOR REMARKS
   ========================================================================== */
.vx-content .row > .col-md-4 form > div:has(textarea[name*="Remark"]),
.vx-content .row > .col-md-4 form > div:has(input[name*="Remark"]),
.vx-content .row > .col-md-4 form > div:has([placeholder*="remarks" i]) {
    grid-column: span 1 !important;
    width: 100% !important;
}

/* ==========================================================================
   DASHBOARD VISITOR STATISTICS SINGLE-LINE HORIZONTAL DATE FILTER BAR
   ========================================================================== */
.vx-content form:has(input[name="fromDate"]),
.vx-content form:has(input[name="startDate"]),
.vx-content form:has(.vx-cal-wrap):not(.vx-appt-form-col form):not(table form) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
}

.vx-content form:has(input[name="fromDate"]) .vx-cal-wrap,
.vx-content form:has(input[name="startDate"]) .vx-cal-wrap,
.vx-content form:has(.vx-cal-wrap):not(.vx-appt-form-col form):not(table form) .vx-cal-wrap {
    width: 145px !important;
    min-width: 140px !important;
    max-width: 150px !important;
    flex: 0 0 145px !important;
}

.vx-content form:has(input[name="fromDate"]) .vx-cal-display,
.vx-content form:has(input[name="startDate"]) .vx-cal-display,
.vx-content form:has(.vx-cal-wrap):not(.vx-appt-form-col form):not(table form) .vx-cal-display {
    height: 34px !important;
    min-height: 34px !important;
    line-height: 32px !important;
    font-size: 12px !important;
    padding: 0 30px 0 10px !important;
}

.vx-content form:has(input[name="fromDate"]) button[type="submit"],
.vx-content form:has(input[name="startDate"]) button[type="submit"],
.vx-content form:has(.vx-cal-wrap):not(.vx-appt-form-col form):not(table form) button[type="submit"] {
    height: 34px !important;
    padding: 0 16px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}
