/* Quản lý xe khách - Modern Design System */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #64748b;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --info: #0891b2;
    --info-light: #cffafe;
    --sidebar-width: 240px;
    --sidebar-bg: #1e293b;
    --sidebar-text: #94a3b8;
    --sidebar-active: #ffffff;
    --sidebar-hover-bg: #334155;
    --bg: #f1f5f9;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
}

/* ===================== SIDEBAR ===================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    padding: 20px 16px;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sidebar-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-brand-text {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.sidebar-brand-sub {
    color: var(--sidebar-text);
    font-size: 0.7rem;
    font-weight: 400;
}

.sidebar-section {
    padding: 20px 8px 8px;
}

.sidebar-section-label {
    color: #475569;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 8px;
    margin-bottom: 4px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 6px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 1px;
}

.sidebar-nav a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.sidebar-nav a:hover {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-active);
}

.sidebar-nav a.active {
    background: var(--primary);
    color: var(--sidebar-active);
}

.sidebar-footer {
    margin-top: auto;
    padding: 12px 8px;
    border-top: 1px solid #334155;
}

.sidebar-clock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    color: var(--sidebar-text);
    font-size: 0.75rem;
}

/* ===================== MAIN LAYOUT ===================== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.page-content {
    padding: 24px;
    flex: 1;
}

/* ===================== CARDS ===================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-header h4, .card-header h5, .card-header h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.card-body {
    padding: 20px;
}

/* ===================== STAT CARDS ===================== */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-card-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-card-icon.green { background: var(--success-light); color: var(--success); }
.stat-card-icon.yellow { background: var(--warning-light); color: var(--warning); }
.stat-card-icon.red { background: var(--danger-light); color: var(--danger); }
.stat-card-icon.cyan { background: var(--info-light); color: var(--info); }

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.table thead tr {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.table thead th {
    padding: 11px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    white-space: nowrap;
}

.table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s;
}

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

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

.table td {
    padding: 13px 16px;
    font-size: 0.875rem;
    color: var(--text-primary);
    vertical-align: middle;
    border: none;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }

.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}
.btn-success:hover { background: #15803d; border-color: #15803d; color: white; }

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: white; }

.btn-warning {
    background: var(--warning);
    color: white;
    border-color: var(--warning);
}
.btn-warning:hover { background: #b45309; border-color: #b45309; color: white; }

.btn-secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn-secondary:hover { background: #f1f5f9; color: var(--text-primary); }

.btn-outline-primary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: white; }

.btn-outline-warning { background: transparent; color: var(--warning); border-color: var(--warning); }
.btn-outline-warning:hover { background: var(--warning); color: white; }

.btn-outline-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); color: white; }

.btn-outline-info { background: transparent; color: var(--info); border-color: var(--info); }
.btn-outline-info:hover { background: var(--info); color: white; }

.btn-outline-secondary { background: transparent; color: var(--secondary); border-color: var(--border); }
.btn-outline-secondary:hover { background: #f1f5f9; color: var(--text-primary); }

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn:disabled, .btn-outline-secondary[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===================== BADGES ===================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1.4;
}

.badge.bg-success  { background: var(--success-light) !important; color: var(--success) !important; }
.badge.bg-danger   { background: var(--danger-light)  !important; color: var(--danger)  !important; }
.badge.bg-warning  { background: var(--warning-light) !important; color: var(--warning) !important; }
.badge.bg-info     { background: var(--info-light)    !important; color: var(--info)    !important; }
.badge.bg-primary  { background: var(--primary-light) !important; color: var(--primary) !important; }
.badge.bg-secondary{ background: #f1f5f9 !important; color: var(--secondary) !important; }

/* Non-badge bg utilities */
.bg-success { background: var(--success-light) !important; }
.bg-danger  { background: var(--danger-light)  !important; }
.bg-warning { background: var(--warning-light) !important; }
.bg-info    { background: var(--info-light)    !important; }
.bg-secondary { background: #f1f5f9 !important; }

/* card-header colored variants */
.card-header.bg-primary { background: var(--primary) !important; color: white !important; }
.card-header.bg-success { background: var(--success) !important; color: white !important; }
.card-header.bg-danger  { background: var(--danger)  !important; color: white !important; }
.card-header.bg-warning { background: var(--warning) !important; color: white !important; }
.card-header.bg-info    { background: var(--info)    !important; color: white !important; }
.card-header.bg-warning.text-dark { color: #000 !important; }
.card-header.bg-info.text-white   { color: white !important; }

/* ===================== FORMS ===================== */
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control, .form-select {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
    line-height: 1.5;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder { color: var(--text-muted); }

.form-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.invalid-feedback { font-size: 0.75rem; color: var(--danger); margin-top: 4px; }
.was-validated .form-control:invalid { border-color: var(--danger); }
.was-validated .form-control:valid { border-color: var(--success); }

/* ===================== ALERTS ===================== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid transparent;
}

.alert-success { background: var(--success-light); color: #14532d; border-color: #bbf7d0; }
.alert-danger  { background: var(--danger-light);  color: #7f1d1d; border-color: #fecaca; }
.alert-warning { background: var(--warning-light); color: #78350f; border-color: #fde68a; }
.alert-info    { background: var(--info-light);    color: #164e63; border-color: #a5f3fc; }

.btn-close {
    margin-left: auto;
    opacity: 0.5;
    transition: opacity 0.15s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    color: inherit;
}
.btn-close:hover { opacity: 1; }

/* ===================== PAGE HEADER ===================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.page-header-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.page-header-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0;
    margin-bottom: 16px;
}

.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: var(--border);
}

/* ===================== EMPTY STATE ===================== */
.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-state-text {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ===================== MISC ===================== */
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-secondary { color: var(--text-secondary) !important; }

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fs-6 { font-size: 0.875rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.me-1 { margin-right: 4px !important; }
.me-2 { margin-right: 8px !important; }
.me-3 { margin-right: 12px !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }

.p-0 { padding: 0 !important; }

.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.flex-wrap { flex-wrap: wrap !important; }
.ms-auto { margin-left: auto !important; }

.text-center { text-align: center !important; }
.text-end { text-align: right !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.small { font-size: 0.8rem !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.border-0 { border: none !important; }
.rounded { border-radius: var(--radius) !important; }

/* ===================== GRID HELPERS ===================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -8px;
}

.row > * { padding: 8px; }

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-md-9 { flex: 0 0 75%; max-width: 75%; }
.col-md-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }

.col-auto { flex: 0 0 auto; width: auto; }
.col { flex: 1; }

.justify-content-center.row { justify-content: center; }

/* ===================== TABLE RESPONSIVE ===================== */
.table-responsive { overflow-x: auto; }

/* ===================== FOOTER ===================== */
.page-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    gap: 12px;
}

/* ===================== DROPDOWN (Bootstrap compat) ===================== */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 4px;
    background: var(--surface);
    min-width: 180px;
}

.dropdown-item {
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 6px;
    transition: background 0.1s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover { background: var(--bg); color: var(--primary); }
.dropdown-item.text-danger { color: var(--danger); }
.dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; }

/* ===================== MOBILE SIDEBAR ===================== */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    #sidebar-overlay.active {
        display: block;
    }
    .main-wrapper {
        margin-left: 0;
    }
    .sidebar-toggle {
        display: block;
    }
    .col-md-2, .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9,
    .col-lg-6, .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .page-content { padding: 16px; }
}

@media (max-width: 576px) {
    .page-header { flex-direction: column; align-items: flex-start; }
}

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

/* ===================== EXTRA BOOTSTRAP COMPAT ===================== */
.container-fluid { width: 100%; }
.col-sm-6 { flex: 0 0 50%; max-width: 50%; }

.fade { opacity: 1; }
.show { display: block !important; }

.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; border-right-width: 0; }
.btn-group .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.btn-group .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-right-width: 1px; }
.btn-group .btn:only-child { border-radius: var(--radius); border-right-width: 1px; }

.needs-validation .form-control:invalid ~ .invalid-feedback { display: block; }
.d-md-flex { display: flex; }
.justify-content-md-end { justify-content: flex-end; }
.d-none { display: none !important; }

/* ===================== TABLE VARIANTS ===================== */
.table-dark thead tr { background: #1e293b; }
.table-dark thead th { background: transparent; color: #e2e8f0; }
.table-light thead tr { background: #f8fafc; }
.table-light thead th { background: transparent; color: var(--text-secondary); }
.table-hover tbody tr:hover { background: #f8fafc; }
.table-borderless td, .table-borderless th { border: none !important; }
.table-sm td, .table-sm th { padding: 6px 10px; }

/* ===================== CARD VARIANTS ===================== */
.border-primary { border-color: var(--primary-light) !important; border-width: 1px; border-style: solid; }
.border-success { border-color: #bbf7d0 !important; border-width: 1px; border-style: solid; }
.border-warning { border-color: #fde68a !important; border-width: 1px; border-style: solid; }
.border-info    { border-color: #a5f3fc !important; border-width: 1px; border-style: solid; }
.border-danger  { border-color: #fecaca !important; border-width: 1px; border-style: solid; }

/* ===================== SPACING EXTRAS ===================== */
.mb-5 { margin-bottom: 24px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-5 { margin-top: 24px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-5 { padding-top: 24px !important; padding-bottom: 24px !important; }
.px-3 { padding-left: 12px !important; padding-right: 12px !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.p-5 { padding: 24px !important; }
.pe-2 { padding-right: 8px !important; }
.ps-2 { padding-left: 8px !important; }

/* ===================== ADDITIONAL COLS ===================== */
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-md-11 { flex: 0 0 91.666%; max-width: 91.666%; }

/* ===================== INLINE / DISPLAY UTILS ===================== */
.d-inline-flex { display: inline-flex !important; }
.d-inline { display: inline !important; }
.d-block { display: block !important; }
.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.overflow-hidden { overflow: hidden !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }
.text-dark { color: var(--text-primary) !important; }
.text-white { color: white !important; }
.text-black { color: #000 !important; }
.bg-primary-color { background: var(--primary) !important; color: white !important; }
/* .bg-primary for non-badge/non-card-header elements (avatar icons etc.) */
div.bg-primary, span.bg-primary:not(.badge) { background: var(--primary) !important; color: white !important; }
.bg-light { background: var(--bg) !important; }
.bg-white { background: white !important; }

/* h tags reset */
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text-primary); line-height: 1.3; margin-bottom: 8px; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 8px; }
a { color: var(--primary); }

hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* nav aria-label breadcrumb compat */
nav[aria-label="breadcrumb"] { margin-bottom: 0; }

/* display-4 compat */
.display-4 { font-size: 2rem; font-weight: 700; }
.lead { font-size: 1rem; color: var(--text-secondary); }

/* my- spacing */
.my-4 { margin-top: 16px !important; margin-bottom: 16px !important; }

/* text-dark for warnings */
.badge.text-dark { color: #000 !important; }
.btn.text-dark { color: #000 !important; }

/* form-floating compat */
.form-floating { position: relative; }
.form-floating > label { position: absolute; top: 0; left: 0; padding: 0.75rem; color: var(--text-muted); font-size: 0.875rem; pointer-events: none; }

/* input-group compat */
.input-group { display: flex; }
.input-group .form-control { flex: 1; border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.input-group-text {
    padding: 9px 12px;
    font-size: 0.875rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--text-secondary);
}

/* nav-tabs compat */
.nav-tabs { display: flex; border-bottom: 2px solid var(--border); list-style: none; gap: 4px; margin-bottom: 16px; padding: 0; }
.nav-tabs .nav-link { padding: 8px 16px; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; border-radius: var(--radius) var(--radius) 0 0; border: 1px solid transparent; cursor: pointer; }
.nav-tabs .nav-link.active { color: var(--primary); border-color: var(--border) var(--border) white; background: white; border-bottom: 2px solid var(--primary); }
.nav-tabs .nav-link:hover { color: var(--primary); background: var(--bg); }
.nav-item { list-style: none; }

/* alert compat for Bootstrap close button */
.alert-dismissible { position: relative; }
.alert-dismissible .btn-close { position: absolute; top: 12px; right: 12px; }

/* Additional utilities */
.bg-dark { background: #1e293b !important; color: white !important; }
.border-dark { border-color: #334155 !important; border-width: 1px; border-style: solid; }
.fs-5 { font-size: 1rem !important; }
.fs-4 { font-size: 1.1rem !important; }
.align-items-end { align-items: flex-end !important; }
.ms-1 { margin-left: 4px !important; }
.ms-2 { margin-left: 8px !important; }
.ms-3 { margin-left: 12px !important; }
.mt-0 { margin-top: 0 !important; }
.mb-md-0 { margin-bottom: 0 !important; }
.text-md-end { text-align: right !important; }
.no-print { }

/* Table row variants */
.table-danger td { background: #fff5f5 !important; }
.table-warning td { background: #fffbeb !important; }
.table-success td { background: #f0fdf4 !important; }

/* filter-btn custom style */
.filter-btn { transition: all 0.15s; }
.filter-btn.active, .filter-btn:focus { outline: 2px solid var(--primary); }

/* btn-outline-success */
.btn-outline-success { background: transparent; color: var(--success); border-color: var(--success); }
.btn-outline-success:hover { background: var(--success); color: white; }

/* nav-link outside tabs */
.nav-link { color: var(--primary); text-decoration: none; padding: 6px 12px; border-radius: var(--radius); }
.nav-link:hover { background: var(--bg); }
