* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background: #f3f5f9;
    color: #1f2937;
}

/* =========================
   ALERTS
========================= */
.alert {
    background: #fee2e2 !important;
    color: #ff0000 !important;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #ff0000;
}

.alert i,
.alert span {
    color: #ff0000 !important;
}
.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border-left: 5px solid #dc2626;
}

.alert-success {
    background: #ecfdf3;
    border: 1px solid #22c55e;
    border-left: 6px solid #16a34a;
    color: #15803d !important;
}

.alert-success i {
    color: #16a34a !important;
}
/* =========================
   SIDEBAR
========================= */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #003366, #00264d);
    color: white;
    padding: 22px 16px;
    overflow-y: auto;
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.sidebar h2 {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    margin: 8px 0;
    padding: 12px 14px;
    border-radius: 12px;
    transition: all 0.25s ease;
    font-size: 16px;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.sidebar a.active {
    background: #ffffff;
    color: #003366;
    font-weight: bold;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.sidebar a i {
    width: 20px;
    text-align: center;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1100;
    background: #003366;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* =========================
   MAIN CONTENT
========================= */
.main-content {
    position: relative;
    margin-left: 250px;
    padding: 24px;
    min-height: 100vh;
    max-width: calc(100vw - 250px);
    overflow-x: hidden;
    animation: fadeIn 0.4s ease;
}

.topbar {
    margin-bottom: 24px;
}

.topbar h1 {
    font-size: 42px;
    color: #111827;
    margin-bottom: 6px;
}

.topbar p {
    color: #4b5563;
    font-size: 16px;
}

/* =========================
   CARDS
========================= */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
    width: 100%;
}

.card {
    background: linear-gradient(135deg, #003366, #0055a5);
    color: white;
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(0, 51, 102, 0.16);
    transition: all 0.3s ease;
    min-height: 130px;
    cursor: pointer;
}

.card:hover {
    transform: none;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card p {
    font-size: 34px;
    font-weight: bold;
    color: #ffffff;
}

/* =========================
   PANELS
========================= */
.panel {
    background: #ffffff;
    padding: 22px;
    border-radius: 20px;
    margin-bottom: 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    overflow: auto;
    width: 100%;
    max-width: 100%;
}

.panel:hover {
    transform: none;
}

.panel-header {
    margin-bottom: 16px;
}

.panel-header h2 {
    color: #111827;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================
   DASHBOARD GRID
========================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    align-items: start;
}

.top-grid {
    grid-template-columns: 1fr;
}

.small-panel {
    min-height: 260px;
}

.chart-panel {
    min-height: 420px;
    overflow: hidden;
}

.chart-panel canvas,
.panel canvas {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 320px !important;
}

.notes-panel {
    min-height: 420px;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    color: #334155;
}

.note-item i {
    color: #0055a5;
    margin-top: 2px;
}

.between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.income-panel {
    min-height: 430px;
}

.income-chart-title {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.chart-switcher {
    display: flex;
    gap: 8px;
}

.chart-toggle {
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    background: #e5e7eb;
    color: #1f2937;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.chart-toggle.active {
    background: linear-gradient(135deg, #003366, #0055a5);
    color: white;
}

.chart-toggle:hover {
    transform: none;
}

#loading {
    display: none;
    margin-bottom: 12px;
    color: #0055a5;
    font-weight: bold;
}

/* =========================
   FORMS
========================= */
.grid-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.grid-form > div {
    display: flex;
    flex-direction: column;
}

.grid-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.grid-form input,
.grid-form select,
.grid-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    background: #fff;
    transition: 0.2s ease;
}

.grid-form input:focus,
.grid-form select:focus,
.grid-form textarea:focus {
    border-color: #0055a5;
    box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.12);
}

.grid-form button {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #003366, #0055a5);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s ease;
}

.grid-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 51, 102, 0.2);
}

.field-note {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

/* =========================
   FORMS
========================= */
.grid-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.grid-form > div {
    display: flex;
    flex-direction: column;
}

.grid-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.grid-form input,
.grid-form select,
.grid-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    background: #fff;
    transition: 0.2s ease;
}

.grid-form input:focus,
.grid-form select:focus,
.grid-form textarea:focus {
    border-color: #0055a5;
    box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.12);
}

.field-note {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

/* =========================
   FORM ACTIONS
========================= */
/* ===== DRIVER ACTION BUTTONS FINAL FIX ===== */
.form-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    grid-column: span 2;
    flex-wrap: wrap;
    margin-top: 10px;
}

.form-actions button {
    width: 160px;
    height: 45px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.25s ease;
}

.form-actions button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

#saveBtn,
#updateBtn {
    background: linear-gradient(135deg, #003366, #0055a5);
    color: white;
}

#cancelEditBtn {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    color: white;
}

#printBtn {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
}




.print-btn {
    background: linear-gradient(135deg, #374151, #6b7280);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}




/* =========================
   DRIVER ACTION / TRASH / RESTORE BUTTONS
========================= */
#deleteBtn {
    height: 45px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #7f1d1d, #b91c1c);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
}

#deleteBtn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.trash-btn {
    height: 45px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
}

.trash-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.restore-btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, #166534, #22c55e);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.restore-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.table-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-toolbar-actions input {
    height: 45px;
    padding: 0 14px;
}

@media (max-width: 576px) {
    .form-actions {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }

    .form-actions button {
        width: 160px !important;
    }
}

/* =========================
   TABLE TOOLBAR
========================= */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.table-toolbar input {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    min-width: 260px;
}

/* =========================
   DRIVERS TABLE
========================= */
#driversTable {
    width: 100%;
    min-width: 1400px;
}

#driversTable th,
#driversTable td {
    padding: 8px 10px;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

#driversTable th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #003366;
    color: white;
}

#driversTable td:nth-child(5) {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#driversTable th:nth-child(7),
#driversTable td:nth-child(7),
#driversTable th:nth-child(10),
#driversTable td:nth-child(10) {
    border-right: 2px solid #e5e7eb;
}

#driversTable td:nth-child(1),
#driversTable td:nth-child(7),
#driversTable td:nth-child(8),
#driversTable td:nth-child(11) {
    text-align: center;
}

.driver-row {
    cursor: pointer;
    transition: 0.2s ease;
}

.driver-row:hover td {
    background: #eef6ff !important;
}

.driver-row.active td {
    background: #dbeafe !important;
}

/* =========================
   HERO SECTION
========================= */
.page-hero {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.page-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.page-hero-text h1 {
    font-size: 30px;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-hero-text p {
    color: #475569;
    font-size: 15px;
    max-width: 720px;
    line-height: 1.6;
}

.page-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn.primary {
    background: linear-gradient(135deg, #003366, #0055a5);
    color: white;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.hero-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.hero-stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    color: #0f172a;
}

.hero-stat-label {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.hero-stat-card.warning {
    background: #fffbea;
    border-color: #fde68a;
}

.hero-stat-card.danger {
    background: #fff1f2;
    border-color: #fecdd3;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
    .grid-form {
        grid-template-columns: 1fr;
    }

    .form-actions {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .page-hero-text h1 {
        font-size: 24px;
    }

    @media (max-width: 576px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .page-hero-text h1 {
        font-size: 24px;
    }

    .form-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .form-actions button {
        width: 160px;
    }
}
}

#updateBtn {
    order: 2;
}

#cancelEditBtn {
    order: 1;
}

.form-actions button {
    width: 160px;
    height: 45px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s ease;
}

.form-actions button:hover {
    transform: translateY(-2px);
}

#updateBtn {
    background: linear-gradient(135deg, #003366, #0055a5);
    color: white;
}

#cancelEditBtn {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    color: white;
}

/* =========================
   TABLE TOOLBAR
========================= */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.table-toolbar input {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    min-width: 260px;
}

/* =========================
   TABLES
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    overflow: hidden;
    border-radius: 12px;
}

table th,
table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 12px;
    text-align: left;
}

table th {
    background: #003366;
    color: white;
    font-weight: 600;
}

table tr:hover td {
    background: #f9fafb;
}

#driversTable {
    width: 100%;
    min-width: 1400px;
}

#driversTable th,
#driversTable td {
    padding: 8px 10px;
    font-size: 13px;
}

#driversTable th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#driversTable td {
    white-space: nowrap;
}

#driversTable td:nth-child(5) {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#driversTable th:nth-child(7),
#driversTable td:nth-child(7),
#driversTable th:nth-child(10),
#driversTable td:nth-child(10) {
    border-right: 2px solid #e5e7eb;
}

#driversTable td:nth-child(1),
#driversTable td:nth-child(7),
#driversTable td:nth-child(8),
#driversTable td:nth-child(11) {
    text-align: center;
}

.driver-row:hover td {
    background: #eef6ff !important;
}

/* =========================
   BADGES
========================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.badge-active,
.badge-valid,
.badge-passed {
    background: #dcfce7;
    color: #166534;
}

.badge-inactive,
.badge-expired,
.badge-failed {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-pending {
    background: #ede9fe;
    color: #6b21a8;
}

/* if you still use text-only drug classes anywhere */
.drug-passed {
    color: #16a34a;
    font-weight: bold;
}

.drug-failed {
    color: #dc2626;
    font-weight: bold;
}

.drug-pending {
    color: #7c3aed;
    font-weight: bold;
}

.drug-passed i,
.drug-failed i,
.drug-pending i {
    margin-right: 5px;
}

/* =========================
   LOGIN PAGE
========================= */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #003366, #0055a5);
}

.login-container {
    background: #ffffff;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.login-container h1 {
    margin-bottom: 10px;
    color: #003366;
    font-size: 30px;
}

.login-container p {
    margin-bottom: 20px;
    color: #6b7280;
}

.login-container input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    transition: 0.2s ease;
}

.login-container input:focus {
    border-color: #0055a5;
    box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.12);
}

.login-container button {
    width: 100%;
    padding: 12px;
    border: none;
    background: linear-gradient(135deg, #003366, #0055a5);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.25s ease;
}

.login-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.25);
}

.login-page {
    min-height: 100vh;
    margin: 0;
    background: url('../images/bus.jpg') center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(0, 31, 63, 0.82), rgba(0, 85, 165, 0.45)),
        rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
}

.login-wrapper {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 1150px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.login-brand-panel {
    color: #fff;
    padding: 20px 10px;
    animation: fadeInLeft 0.7s ease;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.brand-badge i {
    font-size: 18px;
}

.login-brand-panel h1 {
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #ffffff;
    max-width: 600px;
}

.login-brand-panel p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 580px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
}

.login-feature-list {
    display: grid;
    gap: 14px;
    max-width: 420px;
}

.login-feature-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    transition: none;
}

.login-feature-list div:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.12);
}

.login-feature-list i {
    width: 20px;
    text-align: center;
}

.modern-login {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 32px 28px;
    color: #fff;
    animation: fadeInUp 0.7s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 22px;
}

.login-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    color: #003366;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    font-size: 28px;
}

.modern-login h2 {
    font-size: 30px;
    color: #fff;
    margin-bottom: 8px;
}

.modern-login p {
    color: rgba(255, 255, 255, 0.88);
}

.login-form {
    margin-top: 18px;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #5b6b7f;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
    font-size: 15px;
    outline: none;
    transition: 0.25s ease;
    margin-bottom: 0;
}

.input-group input:focus {
    transform: translateY(-1px);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.login-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #003366, #0055a5);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.25s ease;
    box-shadow: 0 10px 24px rgba(0, 51, 102, 0.28);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 51, 102, 0.34);
}

.login-footer-note {
    margin-top: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.login-footer-note i {
    margin-right: 6px;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .grid-form {
        grid-template-columns: 1fr;
    }

    .main-content {
        max-width: calc(100vw - 250px);
    }
}

@media (max-width: 992px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .login-brand-panel {
        text-align: center;
        padding: 0;
    }

    .login-brand-panel h1,
    .login-brand-panel p,
    .login-feature-list {
        margin-left: auto;
        margin-right: auto;
    }

    .modern-login {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        display: none;
        padding: 70px 16px 16px;
    }

    .sidebar.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
        width: 100%;
        padding: 70px 16px 16px;
    }

    .topbar h1 {
        font-size: 30px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .card p {
        font-size: 28px;
    }

    .chart-panel canvas,
    .panel canvas {
        height: 260px !important;
    }

    .chart-switcher {
        width: 100%;
    }

    .chart-toggle {
        flex: 1;
    }

    .login-page {
        padding: 18px;
        align-items: stretch;
    }

    .login-wrapper {
        width: 100%;
        align-self: center;
    }

    .login-brand-panel h1 {
        font-size: 30px;
    }

    .login-brand-panel p {
        font-size: 15px;
    }

    .modern-login {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .modern-login h2 {
        font-size: 24px;
    }

    .login-feature-list div {
        font-size: 14px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.driver-row.active td {
    background: #dbeafe !important;
}


#vehiclesTable {
    width: 100%;
    min-width: 1300px;
}

#vehiclesTable th,
#vehiclesTable td {
    padding: 8px 10px;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

#vehiclesTable th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #003366;
    color: white;
}

.vehicle-row {
    cursor: pointer;
    transition: 0.2s ease;
}

.vehicle-row:hover td {
    background: #eef6ff !important;
}

.page-hero {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.page-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.page-hero-text h1 {
    font-size: 30px;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-hero-text p {
    color: #475569;
    font-size: 15px;
    max-width: 720px;
    line-height: 1.6;
}

.page-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn.primary {
    background: linear-gradient(135deg, #003366, #0055a5);
    color: white;
}

.hero-btn.secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.hero-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.hero-stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    color: #0f172a;
}

.hero-stat-label {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.hero-stat-card.warning {
    background: #fffbea;
    border-color: #fde68a;
}

.hero-stat-card.danger {
    background: #fff1f2;
    border-color: #fecdd3;
}

@media (max-width: 992px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .page-hero-text h1 {
        font-size: 24px;
    }
}



/* MODAL BACKDROP */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* MODAL BOX */
.modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ACTIONS */
.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-confirm {
    flex: 1;
    background: #16a34a;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-cancel {
    flex: 1;
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-confirm:hover,
.btn-cancel:hover {
    opacity: 0.9;
}

/* BASE BUTTON STYLE (used everywhere) */
.hero-btn {
    height: 45px;              /* SAME HEIGHT */
    padding: 0 18px;           /* horizontal spacing */
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: 0.25s ease;
}

/* PRIMARY BUTTON (same as Add Driver / Save style) */
.hero-btn.primary {
    background: linear-gradient(135deg, #003366, #0055a5);
    color: #fff;
}

/* HOVER EFFECT */
.hero-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}


/* =========================
   CLEAN TOOLBAR (TRASH PAGE)
========================= */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Subtitle under title */
.sub-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* =========================
   BUTTON STANDARDIZATION
========================= */

/* FORCE ALL HERO BUTTONS SAME SIZE */
.hero-btn {
    height: 45px !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: none !important;
    cursor: pointer;
    text-decoration: none;
    transition: 0.25s ease;
}

/* PRIMARY BUTTON */
.hero-btn.primary {
    background: linear-gradient(135deg, #003366, #0055a5);
    color: #fff;
}

/* HOVER */
.hero-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* =========================
   RESTORE BUTTON (TABLE)
========================= */
.restore-btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, #166534, #22c55e);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.restore-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* =========================
   FIX BUTTON ICON ALIGNMENT
========================= */
.restore-btn i,
.hero-btn i {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

/* =========================
   TABLE FIX (TRASH PAGE)
========================= */
#driversTable {
    width: 100%;
    min-width: 1000px; /* slightly smaller for trash */
}

/* CENTER ACTION COLUMN */
#driversTable td:last-child {
    text-align: center;
}

/* =========================
   TRASH PAGE
========================= */
.trash-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sub-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.trash-back-btn {
    height: 45px;
    min-width: 170px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    text-decoration: none;
    border: none;

    /* 🔥 NEW COLOR (MAROON GRADIENT) */
    background: linear-gradient(135deg, #7f1d1d, #b91c1c);
    color: #fff;

    transition: 0.25s ease;
}

.trash-back-btn:hover {
    background: linear-gradient(135deg, #991b1b, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(185, 28, 28, 0.3);
}


.trash-table {
    width: 100%;
    min-width: 1000px;
}

.trash-table td:last-child,
.trash-table th:last-child {
    text-align: center;
}

.empty-state {
    text-align: center;
    color: #6b7280;
    padding: 18px;
    font-style: italic;
}

/* =========================
   RESTORE BUTTON
========================= */
.restore-btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, #166534, #22c55e);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.restore-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* =========================
   CUSTOM RESTORE MODAL
========================= */
.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.custom-modal-box {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    text-align: center;
    animation: fadeInUp 0.2s ease;
}

.custom-modal-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    font-size: 24px;
}

.custom-modal-box h3 {
    font-size: 22px;
    color: #111827;
    margin-bottom: 8px;
}

.custom-modal-box p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 20px;
}

.custom-modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-confirm-btn,
.modal-cancel-btn {
    min-width: 140px;
    height: 42px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.modal-confirm-btn {
    background: linear-gradient(135deg, #166534, #22c55e);
    color: #fff;
}

.modal-cancel-btn {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    color: #fff;
}

.modal-confirm-btn:hover,
.modal-cancel-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.table-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #6b7280;
    font-size: 14px;
}

.search-box input {
    height: 45px;
    padding: 0 14px 0 36px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    min-width: 240px;
    transition: 0.2s ease;
}

.search-box input:focus {
    border-color: #0055a5;
    box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.12);
}

/* responsive */
@media (max-width: 576px) {
    .trash-toolbar {
        align-items: stretch;
    }

    .trash-back-btn {
        width: 100%;
        min-width: 100%;
    }

    .custom-modal-actions {
        flex-direction: column;
    }

    .modal-confirm-btn,
    .modal-cancel-btn {
        width: 100%;
    }
}


.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    z-index: 5;
    font-size: 15px;
}

.toggle-password:hover {
    color: #003366;
}


.alert.alert-success {
    background: #ecfdf3 !important;
    border: 1px solid #22c55e !important;
    border-left: 6px solid #16a34a !important;
    color: #15803d !important;
}

.alert.alert-success i,
.alert.alert-success .fas,
.alert.alert-success .fa-check-circle,
.alert.alert-success .fa-trash {
    color: #16a34a !important;
}

.driver-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    min-width: 170px;
}

.driver-hero-actions .hero-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.trash-modern {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: #fff7ed !important;
    color: #9a3412 !important;
    border: 1px solid #fed7aa !important;

    padding: 11px 16px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 14px;
    text-decoration: none !important;

    box-shadow: 0 6px 14px rgba(194, 65, 12, 0.08);
    transition: all 0.2s ease;
}

.trash-modern:hover {
    background: #ffedd5 !important;
    color: #7c2d12 !important;
    border-color: #fdba74 !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(194, 65, 12, 0.14);
}

.trash-modern i {
    color: #c2410c !important;
    font-size: 15px;
}

.trash-modern span {
    color: #9a3412 !important;
}

.trash-modern:hover span,
.trash-modern:hover i {
    color: #7c2d12 !important;
}

@media (max-width: 768px) {
    .page-hero-top {
        align-items: stretch;
    }

    .driver-hero-actions {
        width: 100%;
    }
}

/* =========================================================
   GLOBAL RESPONSIVE SYSTEM OVERRIDES
   BITCO TERMINAL MIS
========================================================= */

:root {
    --sidebar-width: 250px;
    --mobile-header-height: 60px;
    --page-padding-desktop: 24px;
    --page-padding-tablet: 18px;
    --page-padding-mobile: 12px;
}

/* =========================================================
   GLOBAL SAFETY
========================================================= */

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 280px;
    min-height: 100vh;
    overflow-x: hidden;
}

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

img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

button,
input,
select,
textarea {
    max-width: 100%;
    font: inherit;
}

input,
select,
textarea {
    font-size: 16px;
}

a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
a,
label,
select {
    touch-action: manipulation;
}

p,
span,
strong,
small,
label,
td,
th,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: anywhere;
}

/* =========================================================
   MOBILE HEADER
========================================================= */

.mobile-header {
    display: none;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
}

.mobile-brand i {
    font-size: 20px;
}

.mobile-brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    width: var(--sidebar-width);
    height: 100dvh;
    min-height: 100vh;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sidebar-header h2 {
    min-width: 0;
    margin: 0;
}

.sidebar-header h2 span {
    white-space: nowrap;
}

.sidebar-close {
    display: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

.sidebar-navigation {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.sidebar-navigation a {
    width: 100%;
    min-height: 46px;
    margin: 4px 0;
}

.sidebar-navigation a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-user-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-user-details {
    min-width: 0;
}

.sidebar-user-details strong,
.sidebar-user-details small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-details strong {
    color: #ffffff;
    font-size: 13px;
}

.sidebar-user-details small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

.sidebar-logout {
    margin-bottom: 0 !important;
}

.sidebar-overlay {
    display: none;
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {
    width: auto;
    min-width: 0;
    max-width: none;
    margin-left: var(--sidebar-width);
    padding: var(--page-padding-desktop);
    overflow: visible;
}

.main-content > * {
    min-width: 0;
    max-width: 100%;
}

.topbar,
.page-header,
.panel-header,
.table-toolbar,
.ticket-history-header,
.account-toolbar,
.report-toolbar,
.trash-toolbar {
    min-width: 0;
}

.topbar h1,
.page-header h1 {
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
}

/* =========================================================
   GLOBAL CONTAINERS
========================================================= */

.panel,
.card,
.chart-panel,
.ticketing-card,
.account-panel,
.report-panel,
.view-panel,
.driver-card,
.vehicle-card,
.payment-card,
.expense-card {
    min-width: 0;
    max-width: 100%;
}

.cards,
.dashboard-grid,
.ticketing-grid,
.ticketing-layout,
.account-layout,
.report-layout,
.view-grid,
.grid-form,
.form-grid,
.stats-grid,
.ticketing-stats,
.account-stats,
.report-stats {
    min-width: 0;
}

/* =========================================================
   FORMS
========================================================= */

form {
    max-width: 100%;
}

.grid-form,
.form-grid,
.report-grid-2 {
    min-width: 0;
}

.grid-form > *,
.form-grid > *,
.report-grid-2 > * {
    min-width: 0;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    max-width: 100%;
}

input[type="file"] {
    min-height: 46px;
    padding: 9px;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="number"] {
    min-width: 0;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-actions button,
.form-actions a {
    max-width: 100%;
}

/* =========================================================
   TABLES
========================================================= */

.table-responsive,
.table-wrapper,
.table-container,
.ticket-table-wrap,
.ticket-history-scroll,
.driver-table-wrap,
.vehicle-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    vertical-align: middle;
}

.table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.table-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

.search-box {
    width: min(100%, 320px);
    min-width: 0;
}

.search-box input,
.table-toolbar input,
.ticket-search input,
.account-search input,
.report-search {
    width: 100%;
    min-width: 0;
}

/* =========================================================
   BUTTONS
========================================================= */

button,
.btn,
.hero-btn,
.action-btn,
.create-account-button,
.issue-ticket-button,
.submit-report-btn,
.print-ticket-button,
.new-ticket-button {
    min-height: 44px;
}

button,
.btn,
.hero-btn,
.action-btn {
    white-space: normal;
    text-align: center;
}

/* =========================================================
   MODALS
========================================================= */

.custom-modal,
.account-modal {
    padding: 12px;
    overflow-y: auto;
}

.custom-modal-box,
.account-modal-box {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
}

/* =========================================================
   CHARTS
========================================================= */

.chart-panel,
.chart-container,
.panel:has(canvas) {
    min-width: 0;
}

canvas {
    max-width: 100% !important;
}

/* =========================================================
   LAPTOPS AND SMALL DESKTOPS
========================================================= */

@media (max-width: 1200px) {
    .main-content {
        padding: 20px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-stats,
    .report-stats,
    .ticketing-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .ticketing-layout,
    .account-layout,
    .report-layout,
    .view-grid {
        gap: 16px;
    }
}

/* =========================================================
   TABLETS AND PHONES
========================================================= */

@media (max-width: 900px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .mobile-header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1200;

        height: var(--mobile-header-height);
        padding: 0 14px;

        display: flex;
        align-items: center;
        gap: 13px;

        background: linear-gradient(135deg, #003366, #0055a5);
        box-shadow: 0 3px 16px rgba(15, 23, 42, 0.2);
    }

    .menu-toggle {
        position: static;
        z-index: auto;

        width: 42px;
        height: 42px;
        min-width: 42px;

        display: grid;
        place-items: center;

        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 11px;

        background: rgba(255, 255, 255, 0.13);
        color: #ffffff;
        box-shadow: none;
    }

    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1300;

        width: min(86vw, 310px);
        height: 100dvh;
        min-height: 100dvh;

        display: flex;
        padding: 18px 14px;

        transform: translateX(-105%);
        visibility: hidden;

        transition:
            transform 0.25s ease,
            visibility 0.25s ease;

        box-shadow: 16px 0 35px rgba(15, 23, 42, 0.28);
    }

    .sidebar.active {
        display: flex;
        transform: translateX(0);
        visibility: visible;
    }

    .sidebar-close {
        display: grid;
        place-items: center;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 1250;

        display: block;
        visibility: hidden;
        opacity: 0;

        background: rgba(15, 23, 42, 0.58);
        backdrop-filter: blur(2px);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
    }

    .sidebar-overlay.active {
        visibility: visible;
        opacity: 1;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding:
            calc(var(--mobile-header-height) + 18px)
            var(--page-padding-tablet)
            20px;
    }

    .topbar {
        margin-bottom: 18px;
    }

    .dashboard-grid,
    .ticketing-grid,
    .ticketing-layout,
    .account-layout,
    .report-layout,
    .view-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .ticket-form-card {
        position: static !important;
    }

    .page-hero-top,
    .ticketing-hero-top,
    .account-hero-top,
    .report-card-top,
    .account-item-top {
        align-items: stretch;
        flex-direction: column;
    }

    .driver-hero-actions,
    .hero-actions {
        width: 100%;
    }

    .driver-hero-actions .hero-btn,
    .hero-actions .hero-btn {
        width: 100%;
    }

    .table-toolbar,
    .ticket-history-header,
    .account-toolbar,
    .report-toolbar,
    .trash-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .table-toolbar-actions,
    .search-box,
    .ticket-search,
    .account-search,
    .report-search {
        width: 100% !important;
        max-width: none !important;
    }

    .chart-panel canvas,
    .panel canvas {
        min-height: 260px;
    }
}

/* =========================================================
   MOBILE PHONES
========================================================= */

@media (max-width: 640px) {
    :root {
        --mobile-header-height: 56px;
    }

    .mobile-header {
        padding: 0 10px;
    }

    .mobile-brand {
        font-size: 15px;
    }

    .main-content {
        padding:
            calc(var(--mobile-header-height) + 12px)
            var(--page-padding-mobile)
            16px;
    }

    .topbar h1,
    .page-header h1,
    .ticketing-hero h1,
    .account-hero h1,
    .reports-hero h1,
    .view-report-hero h1 {
        font-size: clamp(22px, 7vw, 29px) !important;
    }

    .topbar p,
    .page-header p,
    .ticketing-hero p,
    .account-hero p,
    .reports-hero p {
        font-size: 13px;
    }

    .panel,
    .ticketing-card,
    .account-panel,
    .report-panel,
    .view-panel,
    .ticketing-hero,
    .account-hero,
    .reports-hero,
    .view-report-hero {
        padding: 15px !important;
        border-radius: 15px !important;
    }

    .cards,
    .ticket-stats,
    .ticketing-stats,
    .account-stats,
    .report-stats,
    .boarding-options,
    .payment-methods,
    .quick-fare-grid,
    .role-cards,
    .report-grid-2,
    .info-grid,
    .proof-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .discount-options {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ticket-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .image-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .form-actions,
    .account-actions,
    .account-modal-actions,
    .custom-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions button,
    .form-actions a,
    .account-actions button,
    .account-actions a,
    .account-action-button,
    .modal-confirm-btn,
    .modal-cancel-btn {
        width: 100% !important;
        min-width: 0 !important;
    }

    .ticket-summary-row {
        gap: 8px;
    }

    .ticket-summary-row strong {
        max-width: 58%;
    }

    .report-card,
    .account-item {
        padding: 13px;
    }

    .report-badges,
    .account-badges {
        gap: 5px;
    }

    .table-responsive,
    .table-wrapper,
    .table-container,
    .ticket-table-wrap,
    .ticket-history-scroll {
        margin-right: -5px;
        margin-left: -5px;
        padding-right: 5px;
        padding-left: 5px;
    }

    table {
        min-width: 700px;
        font-size: 12px;
    }

    table th,
    table td {
        padding: 9px 8px !important;
    }

    .custom-modal-box,
    .account-modal-box {
        padding: 17px;
        border-radius: 15px;
    }
}

/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {
    .mobile-brand span {
        max-width: 185px;
    }

    .main-content {
        padding-right: 9px;
        padding-left: 9px;
    }

    .panel,
    .ticketing-card,
    .account-panel,
    .report-panel,
    .view-panel {
        padding: 12px !important;
    }

    .discount-options,
    .ticket-flow,
    .image-preview-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    button,
    .btn,
    .hero-btn,
    .action-btn {
        font-size: 13px;
    }
}

/* =========================================================
   LANDSCAPE PHONES
========================================================= */

@media (max-width: 900px) and (orientation: landscape) {
    .sidebar {
        width: min(55vw, 310px);
    }

    .sidebar-navigation a {
        min-height: 41px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .main-content {
        padding-top: calc(var(--mobile-header-height) + 10px);
    }

    .custom-modal-box,
    .account-modal-box {
        max-height: calc(100dvh - 20px);
    }
}

/* =========================================================
   PRINT
========================================================= */

@media print {
    .mobile-header,
    .menu-toggle,
    .sidebar,
    .sidebar-overlay {
        display: none !important;
    }

    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}



/* =========================================================
   GLOBAL LIVE UPDATE NOTICE
========================================================= */

#bitcoLiveUpdateBanner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10050;

    display: none;
    align-items: center;
    gap: 10px;

    max-width: min(
        440px,
        calc(100vw - 28px)
    );

    padding: 12px;

    border: 1px solid #bfdbfe;
    border-radius: 14px;

    background: #eff6ff;
    color: #0f172a;

    box-shadow:
        0 18px 45px
        rgba(15, 23, 42, 0.2);
}

#bitcoLiveUpdateBanner.is-visible {
    display: flex;
}

.bitco-live-update-message {
    display: flex;
    align-items: center;
    gap: 8px;

    flex: 1;

    font-size: 14px;
    font-weight: 700;
}

#bitcoLiveRefreshButton {
    min-height: 38px;

    padding: 8px 12px;

    border: 0;
    border-radius: 9px;

    background: #0055a5;
    color: #ffffff;

    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

#bitcoLiveDismissButton {
    width: 34px;
    height: 34px;
    min-width: 34px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #475569;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}

#bitcoLiveDismissButton:hover {
    background:
        rgba(15, 23, 42, 0.08);
}

@media (max-width: 600px) {
    #bitcoLiveUpdateBanner {
        right: 12px;
        bottom: 12px;
        left: 12px;

        max-width: none;
        flex-wrap: wrap;
    }

    .bitco-live-update-message {
        flex-basis:
            calc(100% - 44px);
    }
}


/* =========================================================
   SIDEBAR LIVE DATE AND TIME
========================================================= */

.sidebar-footer {
    margin-top: auto;
    width: 100%;
}

.sidebar-date-time {
    width: 100%;
    margin-bottom: 12px;
    padding: 11px 12px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-date-row,
.sidebar-time-row {
    display: flex;
    align-items: center;
    gap: 9px;

    width: 100%;
    min-width: 0;
}

.sidebar-date-row {
    margin-bottom: 7px;

    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.35;
}

.sidebar-time-row {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.sidebar-date-row i,
.sidebar-time-row i {
    width: 18px;
    min-width: 18px;

    text-align: center;
    color: #facc15;
}

#sidebarLiveDate,
#sidebarLiveTime {
    display: block;
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user {
    margin-top: 0;
}

@media (max-width: 768px) {
    .sidebar-date-time {
        padding: 10px;
    }

    .sidebar-date-row {
        font-size: 11px;
    }

    .sidebar-time-row {
        font-size: 15px;
    }
}




/* =========================================================
   PROFESSIONAL BITCO NOTIFICATION PANEL
========================================================= */

.sidebar-brand-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    flex: 1;
    min-width: 0;
}

.sidebar-brand-area h2 {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
    margin: 0;
}

.bitco-notification-bell {
    position: relative;

    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    min-width: 42px;

    margin: 0;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;

    font-size: 17px;
    cursor: pointer;
    box-shadow: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.bitco-notification-bell:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.bitco-notification-bell:focus-visible {
    outline: 3px solid rgba(147, 197, 253, 0.5);
    outline-offset: 2px;
}

.bitco-notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;

    display: grid;
    place-items: center;

    min-width: 21px;
    height: 21px;

    padding: 0 5px;

    border: 2px solid #06376b;
    border-radius: 999px;

    background: #ef4444;
    color: #ffffff;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.bitco-notification-badge.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.7);
    pointer-events: none;
}

.bitco-notification-panel {
    position: fixed;
    z-index: 50000;

    display: none;

    width: 400px;
    max-width: calc(100vw - 24px);
    max-height: min(590px, calc(100vh - 80px));

    overflow: hidden;

    border: 1px solid #dbe3ee;
    border-radius: 20px;

    background: #ffffff;
    color: #0f172a;

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.28),
        0 8px 24px rgba(15, 23, 42, 0.12);

    animation:
        bitcoNotificationOpen 0.2s ease;
}

.bitco-notification-panel.is-open {
    display: block;
}

@keyframes bitcoNotificationOpen {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bitco-notification-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    padding: 18px;

    border-bottom: 1px solid #e8edf4;

    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #eef6ff 100%
        );
}

.bitco-notification-title-group {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
}

.bitco-notification-title-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    min-width: 42px;

    border-radius: 13px;

    background: #0b5cab;
    color: #ffffff;

    box-shadow:
        0 8px 18px rgba(11, 92, 171, 0.22);
}

.bitco-notification-title-group h3 {
    margin: 0;

    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.bitco-notification-title-group p {
    margin: 3px 0 0;

    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.bitco-notification-panel-close {
    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;
    min-width: 36px;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 10px;

    background: rgba(148, 163, 184, 0.12);
    color: #64748b;

    font-size: 16px;
    cursor: pointer;
    box-shadow: none;
}

.bitco-notification-panel-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.bitco-notification-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin: 14px 16px 8px;
    padding: 13px 14px;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    background: #f8fafc;
}

.bitco-notification-summary > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bitco-notification-summary-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.bitco-notification-summary strong {
    display: grid;
    place-items: center;

    min-width: 28px;
    height: 28px;

    padding: 0 8px;

    border-radius: 9px;

    background: #0b5cab;
    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
}

.bitco-notification-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 9px;

    border-radius: 999px;

    background: #fff7ed;
    color: #c2410c;

    font-size: 11px;
    font-weight: 700;
}

.bitco-notification-status i {
    font-size: 7px;
}

.bitco-notification-status.is-clear {
    background: #ecfdf5;
    color: #15803d;
}

.bitco-notification-list {
    max-height: 380px;

    padding: 8px 10px 12px;

    overflow-y: auto;
    overscroll-behavior: contain;
}

.bitco-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 8px;
    padding: 14px;

    border: 1px solid #e5eaf1;
    border-radius: 15px;

    background: #ffffff;
    color: #0f172a;
    text-decoration: none;

    box-shadow:
        0 3px 10px rgba(15, 23, 42, 0.04);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.bitco-notification-item:last-child {
    margin-bottom: 0;
}

.bitco-notification-item:hover {
    border-color: #bfdbfe;

    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.09);

    transform: translateY(-1px);
}

.bitco-notification-item-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    min-width: 42px;

    border-radius: 13px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 16px;
}

.bitco-notification-warning
.bitco-notification-item-icon {
    background: #fff7ed;
    color: #ea580c;
}

.bitco-notification-danger
.bitco-notification-item-icon {
    background: #fef2f2;
    color: #dc2626;
}

.bitco-notification-info
.bitco-notification-item-icon {
    background: #eff6ff;
    color: #2563eb;
}

.bitco-notification-item-content {
    flex: 1;
    min-width: 0;
}

.bitco-notification-item-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.bitco-notification-item-heading strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.bitco-notification-type-label {
    flex: 0 0 auto;

    padding: 4px 7px;

    border-radius: 999px;

    background: #eef2ff;
    color: #4338ca;

    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bitco-notification-item-content p {
    margin: 5px 0 9px;

    color: #64748b;
    font-size: 12px;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.bitco-notification-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #0b5cab;
    font-size: 11px;
    font-weight: 800;
}

.bitco-notification-action i {
    font-size: 9px;
    transition: transform 0.2s ease;
}

.bitco-notification-item:hover
.bitco-notification-action i {
    transform: translateX(3px);
}

.bitco-notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 250px;
    padding: 34px 22px;

    text-align: center;
}

.bitco-notification-empty-icon {
    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    margin-bottom: 14px;

    border-radius: 18px;

    background: #ecfdf5;
    color: #16a34a;

    font-size: 25px;
}

.bitco-notification-empty strong {
    color: #0f172a;
    font-size: 15px;
}

.bitco-notification-empty span {
    max-width: 260px;
    margin-top: 6px;

    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.bitco-notification-panel-footer {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 11px 16px;

    border-top: 1px solid #e8edf4;

    background: #f8fafc;
    color: #64748b;

    font-size: 11px;
    line-height: 1.4;
}

.bitco-notification-panel-footer i {
    color: #0b5cab;
}

.sidebar {
    z-index: 1000;
}

@media (max-width: 768px) {
    .bitco-notification-panel {
        top: 68px !important;
        right: 12px;
        left: 12px !important;

        width: auto !important;
        max-width: none;
        max-height: calc(100vh - 82px);

        border-radius: 17px;
    }

    .bitco-notification-list {
        max-height: calc(100vh - 270px);
    }

    .bitco-notification-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}



/* ===== Requested 2026 dashboard/login updates ===== */
.dashboard-link-card{display:block;text-decoration:none;cursor:pointer;}
.dashboard-link-card:visited{color:#fff;}
.dashboard-link-card:hover{color:#fff;}
.login-feature-list div{cursor:default!important;}
.login-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#68778a;z-index:3;cursor:pointer;padding:8px;}
.input-group:has(.login-password-toggle) input{padding-right:46px;}
.finance-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr));}
.live-pill{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;background:#eaf5ef;color:#17643a;font-size:13px;font-weight:700;}.live-pill i{font-size:8px;}
.table-responsive{width:100%;overflow:auto;}
.device-wait-page{min-height:100vh;display:grid;place-items:center;background:#eef3f8;padding:24px;}.device-wait-card{width:min(560px,100%);background:#fff;border-radius:20px;padding:34px;box-shadow:0 18px 45px rgba(0,51,102,.12);text-align:center;border:1px solid #dbe4ee;}.device-wait-icon{width:72px;height:72px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;background:#e8f1fb;color:#003d73;font-size:30px}.device-wait-card h1{font-size:27px;margin-bottom:10px}.device-request-details{display:grid;gap:8px;margin:20px 0;text-align:left;background:#f8fafc;padding:15px;border-radius:12px}.device-request-details span{display:flex;gap:9px;align-items:center}.device-status{padding:14px;border-radius:12px;font-weight:700;margin:16px 0}.device-status.pending{background:#fff7df;color:#845f00}.device-status.approved{background:#eaf8ef;color:#17643a}.device-status.declined{background:#fff0f0;color:#a33}.device-help{font-size:14px;color:#64748b;line-height:1.6}.device-cancel-btn{display:inline-block;margin-top:12px;color:#003d73;text-decoration:none;font-weight:700}.device-spinner{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:deviceSpin .8s linear infinite;margin-right:8px}@keyframes deviceSpin{to{transform:rotate(360deg)}}
.device-approval-list{display:grid;gap:12px}.device-approval-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:16px;border:1px solid #e5e7eb;border-radius:14px}.device-approval-item small{display:block;margin-top:5px;color:#64748b}.device-request-status{padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800}.device-request-status.pending{background:#fff3cd;color:#7a5b00}.device-request-status.approved{background:#e7f6ec;color:#17643a}.device-request-status.declined,.device-request-status.expired{background:#fdecec;color:#a33}.device-approval-actions{display:flex;gap:8px}.device-approval-actions button{border:0;border-radius:9px;padding:9px 11px;color:#fff;font-weight:700;cursor:pointer}.device-approve-btn{background:#19734a}.device-decline-btn{background:#b53d3d}
@media(max-width:800px){.finance-summary-cards{grid-template-columns:1fr}.device-approval-item{grid-template-columns:1fr}.device-approval-actions{justify-content:flex-start}}

.dashboard-summary-cards{grid-template-columns:repeat(5,minmax(0,1fr));}
@media(max-width:1250px){.dashboard-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:760px){.dashboard-summary-cards{grid-template-columns:1fr;}}





/* =========================================================
   BITCO TERMINAL MIS
   PROFESSIONAL TYPOGRAPHY OVERRIDE
   ========================================================= */

html,
body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

button,
input,
select,
textarea,
table {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}

/* Main page headings */
h1 {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

/* Sidebar */
.sidebar,
.sidebar a,
.sidebar span,
.sidebar p,
.sidebar strong {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}

/* Navigation */
nav,
nav a,
.nav-link {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}

/* Dashboard cards */
.card,
.card-title,
.card-value,
.card-label {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}

/* Tables */
table,
table th,
table td {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}

table th {
    font-weight: 600;
}

/* Forms */
input,
select,
textarea {
    font-size: 14px;
    font-weight: 400;
}

label {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-weight: 500;
}

/* Buttons */
button,
.btn {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-weight: 500;
    letter-spacing: 0;
}

/* Remove overly heavy text */
strong,
b {
    font-weight: 600;
}

/* =========================================================
   PROFESSIONAL ICON REFINEMENT
   Added for consistent, restrained MIS icon styling
========================================================= */

/* Keep navigation icons aligned and compact */
.sidebar a i,
.sidebar-navigation a i,
.nav-link i,
.topbar i {
    width: 20px;
    min-width: 20px;
    text-align: center;
    font-size: 15px;
    line-height: 1;
}

/* Dashboard summary icons: simple and consistent */
.card h3 i,
.dashboard-link-card h3 i {
    width: 18px;
    min-width: 18px;
    text-align: center;
    font-size: 16px;
    line-height: 1;
}

/* Buttons use small utility icons rather than decorative icons */
.btn i,
button i {
    font-size: 14px;
    line-height: 1;
}

/* Login icon: flatter office-system appearance */
.login-icon {
    width: 54px !important;
    height: 54px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #003366 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    font-size: 21px !important;
}

/* Login feature icons stay informational and understated */
.login-feature-list i {
    width: 18px !important;
    min-width: 18px;
    font-size: 15px;
    text-align: center;
}

/* Notification/status icons remain compact */
.bitco-notification-item i,
.alert i {
    font-size: 14px;
}

/* Do not animate or float icons */
.sidebar a i,
.sidebar-navigation a i,
.card h3 i,
.dashboard-link-card h3 i,
.login-feature-list i,
.login-icon i,
.btn i,
button i {
    transform: none !important;
    transition: none !important;
}


/* =========================================================
   DRIVER SUMMARY CARDS - DASHBOARD STYLE
========================================================= */

.compact-driver-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.driver-dashboard-card {
    min-height: 120px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

    padding: 18px 20px;

    border: none;
    border-radius: 18px;

    background: #0b4f90;
    color: #ffffff;

    text-align: left;
    font-family: inherit;

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.08);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.driver-dashboard-card:hover {
    transform: translateY(-4px);

    background: #0a579f;

    box-shadow:
        0 12px 24px rgba(15, 23, 42, 0.14);
}

.driver-dashboard-card:active {
    transform: translateY(-1px);
}


/* TOP LABEL AREA */

.driver-card-top {
    display: flex;
    align-items: center;
    gap: 9px;
}

.driver-card-top i {
    font-size: 15px;
    color: #ffffff;
}

.driver-card-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}


/* VALUE */

.driver-card-value {
    margin-top: 18px;

    font-size: 30px;
    font-weight: 700;
    line-height: 1;

    color: #ffffff;
}


/* ACTIVE FILTER */

.driver-dashboard-card.active-filter {
    background: #083f74;

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.18),
        0 12px 24px rgba(15, 23, 42, 0.16);
}


/* SPECIAL STATES */

.driver-dashboard-card.warning-card {
    background: #a56f00;
}

.driver-dashboard-card.warning-card:hover {
    background: #b47a00;
}

.driver-dashboard-card.danger-card {
    background: #a62e2e;
}

.driver-dashboard-card.danger-card:hover {
    background: #b53636;
}


/* RESPONSIVE */

@media (max-width: 1400px) {
    .compact-driver-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .compact-driver-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .compact-driver-stats {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   2026 FINANCE MODULE UI — SALES / EXPENSES / REPORTS
========================================================= */
.finance-page .topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:22px}
.finance-page .topbar h1{font-size:clamp(28px,4vw,40px);line-height:1.08;color:#0f172a}
.finance-page .topbar p{max-width:760px;line-height:1.6;color:#64748b}
.finance-page .cards{gap:16px}
.finance-page .card,.finance-page a.card{position:relative;overflow:hidden;background:linear-gradient(145deg,#064e3b,#047857);border:1px solid rgba(255,255,255,.18);color:#fff!important;box-shadow:0 10px 26px rgba(6,78,59,.18);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;cursor:default}
.finance-page a.card{cursor:pointer}
.finance-page .card::after{content:"";position:absolute;width:110px;height:110px;border-radius:50%;right:-35px;top:-42px;background:rgba(255,255,255,.09)}
.finance-page .card:hover,.finance-page a.card:hover{transform:translateY(-5px);box-shadow:0 18px 36px rgba(6,78,59,.25);border-color:rgba(255,255,255,.4)}
.finance-page .card h3,.finance-page .card h3 i,.finance-page .card p,.finance-page .card small{position:relative;z-index:1;color:#fff!important}
.finance-page .card h3{font-size:14px;text-transform:uppercase;letter-spacing:.45px;font-weight:800;margin-bottom:14px}
.finance-page .card p{font-size:clamp(26px,3vw,36px);line-height:1.1}
.finance-page .card small{display:block;margin-top:9px;opacity:.86;font-size:12px}
.finance-page .selected-card{outline:none!important;background:linear-gradient(145deg,#022c22,#059669)!important;box-shadow:0 0 0 3px rgba(16,185,129,.24),0 16px 32px rgba(6,78,59,.24)!important}
.finance-page .panel{border:1px solid #e2e8f0;box-shadow:0 8px 28px rgba(15,23,42,.07);overflow:hidden}
.finance-page .panel:hover{transform:none}
.finance-page .panel-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid #eef2f7}
.finance-page .panel-header h2{color:#0f172a}
.finance-page .panel-header p{color:#64748b;margin-top:5px}
.finance-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.finance-search{position:relative;flex:1;min-width:240px}
.finance-search i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#64748b}
.finance-search input{width:100%;min-height:46px;padding:10px 14px 10px 42px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#0f172a;font-size:14px;outline:none;transition:.2s}
.finance-search input:focus{border-color:#059669;box-shadow:0 0 0 3px rgba(5,150,105,.12)}
.finance-page input,.finance-page select,.finance-page textarea{border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;background:#fff;color:#0f172a;outline:none;max-width:100%}
.finance-page input:focus,.finance-page select:focus,.finance-page textarea:focus{border-color:#059669;box-shadow:0 0 0 3px rgba(5,150,105,.1)}
.finance-page .btn.primary{background:#047857;color:#fff;border-color:#047857}
.finance-page .btn.primary:hover{background:#065f46}
.finance-page .table-responsive{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e5e7eb;border-radius:14px}
.finance-page table{width:100%;border-collapse:collapse;min-width:760px;background:#fff}
.finance-page table thead th{background:#f0fdf4!important;color:#14532d!important;font-size:11px;text-transform:uppercase;letter-spacing:.45px;font-weight:800;white-space:nowrap;border-bottom:1px solid #d1fae5;padding:13px 12px}
.finance-page table td{padding:13px 12px;border-bottom:1px solid #f1f5f9;color:#334155;vertical-align:middle}
.finance-page table tbody tr{transition:background .18s ease}
.finance-page table tbody tr:hover{background:#f8fafc}
.finance-page .status-pill{background:#dcfce7!important;color:#166534!important;border:1px solid #bbf7d0}
.finance-page .alert{border-radius:12px}
.finance-empty{text-align:center!important;padding:34px!important;color:#64748b!important}
@media(max-width:1000px){.finance-page .cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.finance-page .main-content{padding:20px}}
@media(max-width:640px){.finance-page .main-content{padding:72px 12px 18px}.finance-page .cards{grid-template-columns:1fr!important;gap:12px}.finance-page .card{min-height:112px;padding:18px;border-radius:15px}.finance-page .panel{padding:15px;border-radius:15px}.finance-page .panel-header{align-items:flex-start}.finance-toolbar{align-items:stretch}.finance-search{min-width:100%}.finance-page .btn{min-height:44px}.finance-page .expense-form,.finance-page .report-upload-form{display:grid!important;grid-template-columns:1fr!important}.finance-page .expense-form>*,.finance-page .report-upload-form>*{min-width:0!important;width:100%}.finance-page .topbar{margin-bottom:16px}}


/* =========================================================
   BITCO SUCCESS NOTICES + TEMPORARY NOTIFICATION BELL HIDE
   2026-08-26
========================================================= */
/* Generic .alert styling is intentionally red for errors, so successful
   alerts need a stronger selector to remain green across every module. */
.alert.alert-success,
.alert.success {
    background: #ecfdf3 !important;
    border: 1px solid #86efac !important;
    border-left: 6px solid #16a34a !important;
    color: #166534 !important;
}

.alert.alert-success i,
.alert.alert-success span,
.alert.alert-success strong,
.alert.alert-success .fas,
.alert.success i,
.alert.success span,
.alert.success strong,
.alert.success .fas {
    color: #15803d !important;
}

/* Notification UI is kept in the codebase for later use, but the bell is
   temporarily hidden as requested. */
.bitco-notification-bell {
    display: none !important;
}

/* =========================================================
   GLOBAL FORM VALIDATION
   Missing or invalid values are highlighted consistently.
========================================================= */
.bitco-invalid-field,
.bitco-field-invalid input:not([type="checkbox"]):not([type="radio"]),
.bitco-field-invalid select,
.bitco-field-invalid textarea {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10) !important;
}

.bitco-field-invalid label {
    color: #991b1b;
}

.bitco-field-error {
    display: block;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.bitco-field-error[hidden] {
    display: none !important;
}

/* =========================================================
   FINAL MOBILE / IN-APP BROWSER SAFETY OVERRIDES
========================================================= */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 900px) {
    .sidebar {
        width: min(88vw, 320px) !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 16px 14px calc(16px + env(safe-area-inset-bottom)) !important;
        display: flex !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        background: linear-gradient(180deg, #003366 0%, #004f8f 100%) !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .sidebar:not(.active) {
        transform: translateX(-105%) !important;
        visibility: hidden !important;
        pointer-events: none;
    }

    .sidebar.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto;
    }

    .sidebar-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .main-content {
        min-height: 100dvh;
        padding-left: max(12px, env(safe-area-inset-left)) !important;
        padding-right: max(12px, env(safe-area-inset-right)) !important;
        padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
    }

    .topbar,
    .page-header,
    .table-toolbar,
    .drivers-list-toolbar,
    .vehicle-list-header,
    .rp-head {
        min-width: 0;
        max-width: 100%;
    }

    .global-table-scroll,
    .table-scroll,
    .vehicle-table-scroll,
    .rp-table-wrap {
        max-width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 992px) {
    .login-page {
        min-height: var(--bitco-login-vh, 100svh) !important;
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding:
            max(18px, env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            max(28px, env(safe-area-inset-bottom))
            max(16px, env(safe-area-inset-left)) !important;
    }

    .login-wrapper {
        width: min(100%, 680px) !important;
        margin: 0 auto !important;
        align-self: auto !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .modern-login {
        width: 100% !important;
        max-width: 520px !important;
        margin: 0 auto !important;
        flex: 0 0 auto;
    }

    .login-brand-panel {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    .login-page {
        padding-top: 14px !important;
    }

    .brand-badge {
        margin-bottom: 12px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .login-brand-panel h1 {
        margin-bottom: 10px;
        font-size: clamp(24px, 7vw, 32px) !important;
    }

    .login-brand-panel p {
        margin-bottom: 14px;
        font-size: 14px !important;
    }

    .login-feature-list {
        gap: 9px !important;
    }

    .login-feature-list div {
        padding: 11px 13px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
    }

    .modern-login {
        padding: 20px 16px !important;
        border-radius: 18px !important;
    }

    .login-icon {
        width: 58px;
        height: 58px;
        font-size: 23px;
        margin-bottom: 10px;
    }

    .login-header {
        margin-bottom: 14px;
    }

    .login-form {
        margin-top: 12px;
    }
}

/* When a software keyboard reduces the visual viewport, keep focused form controls visible. */
@media (max-height: 650px) and (max-width: 992px) {
    .login-brand-panel h1,
    .login-brand-panel > p,
    .login-feature-list {
        display: none;
    }

    .login-page {
        padding-top: 10px !important;
    }

    .modern-login {
        margin-top: 8px !important;
    }
}

/* =========================================================
   AUTOMATIC GPS ALERTS
========================================================= */
.bitco-gps-global-alerts {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 20050;
    display: grid;
    gap: 10px;
    width: min(430px, calc(100vw - 28px));
    pointer-events: none;
}

.bitco-gps-global-toast {
    display: grid;
    grid-template-columns: 42px 1fr 34px;
    gap: 10px;
    align-items: start;
    padding: 13px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff;
    color: #7f1d1d;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
    pointer-events: auto;
    cursor: pointer;
}

.bitco-gps-global-toast-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 18px;
}

.bitco-gps-global-toast-content strong {
    display: block;
    color: #991b1b;
    font-size: 13px;
}

.bitco-gps-global-toast-content p {
    margin: 4px 0 0;
    color: #7f1d1d;
    font-size: 12px;
    line-height: 1.45;
}

.bitco-gps-global-toast-close {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #991b1b;
    cursor: pointer;
}

#bitcoLiveGpsNotificationList[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .bitco-gps-global-alerts {
        top: calc(var(--mobile-header-height, 58px) + 10px);
        right: 10px;
        left: 10px;
        width: auto;
    }
}


/* BITCO required-field indicator */
.bitco-required-indicator{color:#dc2626!important;font-weight:800;margin-left:2px}
