/* LV Location — Modern Bootstrap 5 Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary: #6c757d;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --dark: #212529;
    --light: #f8f9fa;
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --header-height: 64px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f1f5f9;
    color: #334155;
    overflow-x: hidden;
}

/* ========== LOGIN / REGISTER ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 20px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-box {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.3);
}

.login-box h1 {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-box label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}

.login-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: var(--transition);
    background: #fff;
}

.login-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13,110,253,0.1);
}

.login-box .btn {
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.login-box .btn-primary {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
}

.login-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.4);
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    min-height: -webkit-fill-available;
    background: linear-gradient(180deg, #0f172a 0%, #1e2942 100%);
    color: #fff;
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

/* Overlay — caché par défaut sur tous les écrans */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-brand {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sidebar-brand .brand-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sidebar-brand .brand-version {
    font-size: 0.625rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.sidebar-nav {
    padding: 16px 12px;
}

.nav-section {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    padding: 16px 12px 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(30,64,175,0.25));
    border: 1px solid rgba(59,130,246,0.35);
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: auto;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-info .name { font-size: 0.8125rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info .role { font-size: 0.6875rem; color: rgba(255,255,255,0.5); }

/* ========== MAIN CONTENT ========== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

.topbar {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.breadcrumb {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin: 0;
}

.breadcrumb a { color: #64748b; text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

.content-wrapper {
    padding: 24px 28px;
}

/* ========== CARDS ========== */
.card {
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.card-body { padding: 24px; }

/* Stat Cards */
.stat-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.stat-card .stat-icon.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.stat-card .stat-icon.green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.stat-card .stat-icon.orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #ea580c; }
.stat-card .stat-icon.purple { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #7c3aed; }
.stat-card .stat-icon.red { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; }

.stat-card .stat-value {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 4px;
}

.stat-card .stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
}

.stat-card .stat-change.up { color: #059669; background: #d1fae5; }
.stat-card .stat-change.down { color: #dc2626; background: #fee2e2; }

/* ========== TABLES ========== */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 20px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.table-modern tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #334155;
    vertical-align: middle;
}

.table-modern tbody tr:hover td {
    background: #f8fafc;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-success { background: #d1fae5; color: #059669; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-info { background: #dbeafe; color: #2563eb; }
.badge-secondary { background: #f1f5f9; color: #64748b; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm { padding: 6px 14px; font-size: 0.8125rem; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.4);
    color: white;
}

.btn-success { background: #198754; color: white; }
.btn-success:hover { background: #157347; color: white; }

.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover { background: #bb2d3b; color: white; }

.btn-warning { background: #ffc107; color: #000; }
.btn-warning:hover { background: #ffca2c; }

.btn-info { background: #0dcaf0; color: #000; }
.btn-info:hover { background: #31d2f2; }

.btn-outline-primary {
    background: transparent;
    border: 2px solid #1e40af;
    color: #1e40af;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    border-color: transparent;
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid #cbd5e1;
    color: #64748b;
}

.btn-outline-secondary:hover {
    background: #f1f5f9;
    color: #334155;
}

.btn-ghost {
    background: transparent;
    color: #64748b;
    padding: 8px 12px;
}

.btn-ghost:hover { background: #f1f5f9; color: #334155; }

/* ========== FORMS ========== */
.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.form-control, .form-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    transition: var(--transition);
    background: #fff;
    width: 100%;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13,110,253,0.1);
}

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

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .input-group-text {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #64748b;
    font-size: 0.875rem;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
}

/* ========== SEARCH ========== */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 44px;
    padding-right: 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13,110,253,0.1);
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* ========== VEHICLE SELECT WITH PHOTO ========== */
.vehicle-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.vehicle-select-item:hover {
    background: #f8fafc;
}

.vehicle-select-item img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.vehicle-select-item .vehicle-info {
    flex: 1;
    min-width: 0;
}

.vehicle-select-item .vehicle-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-select-item .vehicle-details {
    font-size: 0.75rem;
    color: #64748b;
}

.vehicle-select-item .vehicle-price {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary);
    white-space: nowrap;
}

/* ========== PHOTO UPLOAD ========== */
.photo-upload {
    position: relative;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    background: #f8fafc;
}

.photo-upload:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.photo-upload.has-image {
    border-style: solid;
    border-color: #e2e8f0;
}

.photo-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload .upload-placeholder {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
}

.photo-upload .upload-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: block;
}

.photo-upload .upload-placeholder span {
    font-size: 0.8125rem;
    font-weight: 500;
}

.photo-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* ========== LOGO PREVIEW (Amazon style) ========== */
.logo-preview {
    width: 120px;
    height: 120px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    background: #f8fafc;
    overflow: hidden;
    position: relative;
}

.logo-preview:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.logo-preview .logo-placeholder {
    text-align: center;
    color: #94a3b8;
    padding: 16px;
}

.logo-preview .logo-placeholder i {
    font-size: 2rem;
    margin-bottom: 4px;
    display: block;
}

.logo-preview .logo-placeholder span {
    font-size: 0.6875rem;
    font-weight: 500;
}

.logo-preview input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* ========== MODAL ========== */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 24px;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.125rem;
}

.modal-body { padding: 24px; }

.modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 16px 24px;
}

/* ========== FLASH MESSAGES ========== */
.flash {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

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

.flash-success { background: #d1fae5; color: #059669; border: 1px solid #a7f3d0; }
.flash-danger { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.flash-warning { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.flash-info { background: #dbeafe; color: #2563eb; border: 1px solid #bfdbfe; }

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #94a3b8;
}

.empty-state h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 20px;
}

/* ========== PRINT ========== */
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main-wrapper { margin-left: 0 !important; }
    .content-wrapper { padding: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .sidebar {
        -webkit-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        transform: translateX(-100%);
        width: 280px;
    }
    .sidebar.show {
        -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
        transform: translateX(0);
    }
    .main-wrapper { margin-left: 0; }
    .sidebar-overlay.show { display: block; }
}

@media (max-width: 767.98px) {
    .content-wrapper { padding: 16px; }
    .topbar { padding: 0 16px; }
    .card-header, .card-body { padding: 16px; }
    .stat-card { padding: 16px; }
    .stat-card .stat-value { font-size: 1.5rem; }
    .table-modern { font-size: 0.8125rem; }
    .table-modern thead th, .table-modern tbody td { padding: 10px 12px; }
    .btn { padding: 8px 14px; font-size: 0.8125rem; }
    .login-box { padding: 28px 20px; margin: 10px; }
}

/* ========== ANIMATIONS ========== */
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.slide-up { animation: slideUp 0.4s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ========== CONTRACT PRINT ========== */
.contract-print {
    max-width: 210mm;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.contract-print .contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #1e293b;
}

.contract-print .contract-header img {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
}

.contract-print h2 {
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: #1e293b;
}

.contract-print .contract-section {
    margin-bottom: 16px;
}

.contract-print .contract-section h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
}

.contract-print .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}

.contract-print .info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dotted #e2e8f0;
}

.contract-print .info-row .label { font-weight: 600; color: #475569; }
.contract-print .info-row .value { color: #1e293b; }

.contract-print .signature-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contract-print .signature-box {
    text-align: center;
}

.contract-print .signature-line {
    border-top: 1px solid #1e293b;
    margin-top: 60px;
    padding-top: 8px;
    font-size: 0.8125rem;
    color: #64748b;
}

/* DataTables custom */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    font-size: 0.8125rem;
    padding: 8px 0;
}

.dataTables_wrapper .dataTables_filter input {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    margin-left: 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    border-radius: 8px;
    margin: 0 2px;
    border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #1e40af, #1e3a8a) !important;
    color: white !important;
}

/* Vehicle card in select */
.vehicle-card-select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
}

.vehicle-card-select:hover, .vehicle-card-select.selected {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(13,110,253,0.15);
}

.vehicle-card-select.selected {
    background: #eff6ff;
}

.vehicle-card-select img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.vehicle-card-select .v-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: #1e293b;
}

.vehicle-card-select .v-plate {
    font-size: 0.75rem;
    color: #64748b;
}

.vehicle-card-select .v-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9375rem;
}

/* ========== LV Location — Brand refresh (dashboard.html style) ========== */
:root {
    --brand: #1e40af;
    --brand-dark: #1e3a8a;
    --brand-soft: #eff4ff;
}

/* Colorful stat tiles like dashboard.html */
.stat-card { position: relative; overflow: hidden; color: #fff; border: none; }
.stat-card .stat-value { color: #fff; }
.stat-card .stat-label { color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.78rem; }
.stat-card .stat-change { color: #fff; background: rgba(255,255,255,0.18); }
.stat-card .stat-icon { color: #fff !important; background: rgba(255,255,255,0.18) !important; }

.stat-card:has(.stat-icon.blue)   { background: linear-gradient(135deg,#2563eb,#3b82f6); }
.stat-card:has(.stat-icon.green)  { background: linear-gradient(135deg,#0891b2,#06b6d4); }
.stat-card:has(.stat-icon.orange) { background: linear-gradient(135deg,#ea580c,#f59e0b); }
.stat-card:has(.stat-icon.purple) { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.stat-card:has(.stat-icon.red)    { background: linear-gradient(135deg,#dc2626,#ef4444); }

/* Fallback for browsers without :has — colored left border */
.stat-card { border-left: 4px solid var(--brand); }

/* Bootstrap primary alignment with brand */
.btn-primary { --bs-btn-bg:#1e40af; --bs-btn-border-color:#1e40af; --bs-btn-hover-bg:#1e3a8a; --bs-btn-hover-border-color:#1e3a8a; --bs-btn-active-bg:#1c3688; --bs-btn-active-border-color:#1c3688; --bs-btn-focus-shadow-rgb:30,64,175; }
.btn-outline-primary { --bs-btn-color:#1e40af; --bs-btn-border-color:#1e40af; --bs-btn-hover-bg:#1e40af; --bs-btn-hover-border-color:#1e40af; --bs-btn-focus-shadow-rgb:30,64,175; }
.text-primary { color:#1e40af !important; }
.text-bg-primary { color:#fff !important; background-color:#1e40af !important; }
.border-primary { border-color:#1e40af !important; }
.form-control:focus, .form-select:focus { border-color:#1e40af; box-shadow:0 0 0 .25rem rgba(30,64,175,.15); }

/* Sidebar accent (matches dashboard.html) */
.nav-link.active { border-left: 3px solid #60a5fa; }

/* Cards - subtle border like dashboard.html */
.card { border: 1px solid #e9edf5; border-radius: 12px; }
