﻿:root {
    --color-ink: #1A1A1A;
    --color-ink-soft: #444441;
    --color-text-secondary: #5F5E5A;
    --color-text-muted: #888780;
    --color-gold: #C9A227;
    --color-gold-light: #E8D48A;
    --color-gold-deep: #9C7D1A;
    --color-gold-pale: #FBF3DC;
    --color-red: #D91C1C;
    --color-red-pale: #FDEDED;
    --color-cream: #FAF8F2;
    --color-cream-deep: #F4EFE3;
    --color-white: #FFFFFF;
    --color-page-bg: #E9EFF4;
    --color-navy: #546A7B;
    --color-navy-light: #DCE6F2;
    --color-border: #E4DDCF;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-card: 0 8px 20px rgba(0,0,0,.06);
    --shadow-soft: 0 4px 12px rgba(0,0,0,.05);
}

* {
    box-sizing: border-box;
}

html body {
    margin: 0;
    background: var(--color-page-bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--color-ink);
}

a {
    color: var(--color-navy);
}



.top-banner {
    background: var(--color-ink);
    padding: 20px 50px;
    border-bottom: 4px solid var(--color-navy);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 80px;
}

.logo-section h1 {
    color: white;
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: .2px;
}

.logo-section p {
    color: white;
    margin: 4px 0 0;
    font-size: 14px;
}



.step-tracker {
    max-width: 520px;
    margin: 0 auto 10px;
    padding: 28px 20px 4px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 110px;
    flex-shrink: 0;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: .2s;
}

    .step-circle svg {
        width: 18px;
        height: 18px;
    }

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    margin-top: 20px;
    transition: .2s;
}

.step.is-complete .step-circle {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #FFFFFF;
}

.step.is-complete + .step-connector {
    background: var(--color-navy);
}

.step.is-active .step-circle {
    border-color: var(--color-navy);
    color: var(--color-navy);
    box-shadow: 0 0 0 4px var(--color-navy-light);
}

.step.is-active .step-label {
    color: var(--color-ink);
}



.main-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

    .main-container .card {
        background: var(--color-white);
        border-radius: var(--radius-lg);
        padding: 30px;
        margin-bottom: 30px;
        border: 1px solid #D7DEE8;
        border-top: 5px solid var(--color-navy);
        box-shadow: var(--shadow-card);
    }

    .main-container .card-title {
        color: var(--color-ink);
        font-size: 22px;
        font-weight: 700;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--color-navy);
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .main-container .card-title svg {
            width: 22px;
            height: 22px;
            color: var(--color-navy);
            flex-shrink: 0;
        }



.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.main-container .form-group {
    margin-bottom: 0;
    min-height: 138px;  
}

    .main-container .form-group label {
        display: block;
        width: 100%;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--color-ink-soft);
        line-height: 1.5;
        font-size: 14.5px;
    }

.field-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E8EDF1;
    color: #546A7B;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
}

.label-en {
    display: block;
    padding-left: 30px;
    margin-top: 3px;
    font-style: italic;
    font-weight: 500;
    font-size: 13.5px;
    color: var(--color-text-secondary);
}

.textbox {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border: 1.5px solid #C7D1D9;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--color-white);
    transition: .15s;
}

    .textbox:hover {
        border-color: #D8CFB8;
    }

    .textbox:focus {
        outline: none;
        border-color: #546A7B;
        box-shadow: 0 0 0 3px rgba(84, 106, 123, .16);
    }

.datebox {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: .15s;
}

    .datebox:focus {
        outline: none;
        border-color: var(--color-gold);
        box-shadow: 0 0 0 3px var(--color-gold-pale);
    }

.field-error {
    min-height: 14px;
    display: block;
    color: #B42318;
    font-size: 11.5px;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.35;
}

    .field-error::before {
        content: none;
    }



.btn-next {
    background: var(--color-navy);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 15px 44px 15px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 15px;
}

    .btn-next:hover {
        background-color: #465A69;
        background-position: right 14px center;
        transform: translateY(-2px);
        box-shadow: var(--shadow-soft);
    }

    .btn-next:focus-visible {
        outline: 3px solid var(--color-gold);
        outline-offset: 2px;
    }

    .btn-next:disabled {
        background-color: var(--color-border);
        background-image: none;
        color: var(--color-text-muted);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }



.intro-card {
    background: linear-gradient( 135deg, #FFFFFF 0%, #F1F5F8 100% );
    border-left: 6px solid var(--color-navy);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

    .intro-card h2 {
        margin-top: 0;
        color: var(--color-ink);
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .intro-card h2 svg {
            width: 26px;
            height: 26px;
            color: var(--color-navy);
        }

    .intro-card p {
        line-height: 1.9;
        color: var(--color-ink-soft);
    }



.declaration-box {
    background: #FFFDF8;
    border: 1px solid var(--color-border);
    padding: 20px;
    border-radius: var(--radius-sm);
    max-height: 220px;
    overflow-y: auto;
    line-height: 1.8;
    color: var(--color-ink-soft);
}

.warning-box {
    background: var(--color-gold-pale);
    color: var(--color-gold-deep);
    padding: 12px 16px;
    margin-top: 18px;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

    .warning-box svg {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
    }

.radio-list {
    border-collapse: collapse;
}

    .radio-list td {
        padding: 0;
        position: relative;
    }

    .radio-list input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
    }

    .radio-list label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 26px;
        border: 2px solid var(--color-border);
        border-radius: 999px;
        font-weight: 700;
        color: var(--color-text-secondary);
        cursor: pointer;
        transition: .15s;
        min-width: 110px;
        justify-content: center;
    }

        .radio-list label::before {
            content: "";
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid var(--color-border);
            flex-shrink: 0;
            transition: .15s;
        }

    .radio-list input[type="radio"]:checked + label {
        border-color: var(--color-gold);
        background: var(--color-gold-pale);
        color: var(--color-ink);
    }

        .radio-list input[type="radio"]:checked + label::before {
            border-color: var(--color-gold);
            border-width: 5px;
        }

    .radio-list input[type="radio"]:focus-visible + label {
        box-shadow: 0 0 0 3px var(--color-gold-pale);
    }


.video-page {
    max-width: 1100px;
    margin: auto;
}

.video-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-ink);
    border-bottom: 2px solid var(--color-navy);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .video-title svg {
        width: 18px;
        height: 18px;
        color: var(--color-navy);
    }

.video-player {
    width: 100%;
    height: auto;
    display: block;
}

.video-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid #D7DEE8;
    border-top: 5px solid var(--color-navy-light);
}

.video-container {
    width: 100%;
    overflow: hidden;
    border: 1px solid #D7DEE8;
    border-radius: var(--radius-md);
    background: #000;
}

.safety-card {
    background: linear-gradient( 135deg, #FFFFFF 0%, #F1F5F8 100% );
    border-radius: var(--radius-md);
    padding: 22px 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid #D7DEE8;
    border-top: 5px solid var(--color-navy);
}

    .safety-card label {
        font-size: 15px;
        font-weight: 600;
        color: var(--color-ink);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .safety-card input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--color-gold-deep);
    }


.quiz-card {
    background: #FFFFFF;
    border: 1px solid #D7DEE8;
    border-left: 5px solid var(--color-navy);
    padding: 26px 28px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

    .quiz-header .q-number {
        font-weight: 700;
        color: var(--color-ink);
        font-size: 16px;
    }

    .quiz-header .q-points {
        font-size: 12px;
        font-weight: 700;
        color: #546A7B;
        background: #DCE6F2;
        padding: 4px 12px;
        border-radius: 999px;
    }

.quiz-text {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 18px;
    color: var(--color-ink-soft);
}

.quiz-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-options-grid {
    flex-direction: row;
    flex-wrap: wrap;
}

    .quiz-options-grid li {
        flex: 1 1 220px;
    }

.quiz-options li {
    position: relative;
}

.quiz-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.quiz-options label {
    display: block;
    border: 1.5px solid #D7DEE8;
    border-radius: 12px;
    background: #FFFFFF;
    padding: 16px 18px;
    cursor: pointer;
    transition: .15s;
    font-weight: normal;
    color: var(--color-ink-soft);
    position: relative;
}

    .quiz-options label:hover {
        border-color: #AEBBC7;
        background: #F8FAFC;
    }

.quiz-options input[type="radio"]:checked + label {
    border-color: var(--color-gold);
    background: #FFF8E1;
}

    .quiz-options input[type="radio"]:checked + label::after {
        content: "";
        position: absolute;
        top: 12px;
        right: 12px;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--color-gold);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 13px;
    }

.quiz-options input[type="radio"]:focus-visible + label {
    box-shadow: 0 0 0 3px var(--color-gold-pale);
}

.option-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}



.option-text {
    color: var(--color-ink-soft);
    font-size: 14px;
    line-height: 1.5;
}

.option-img,
.question-image img {
    border-radius: 12px;
    border: 1px solid #D7DEE8;
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
}


@media (prefers-reduced-motion: reduce) {
    .btn-next, .btn-next svg, .step-circle, .step-connector,
    .quiz-options label, .radio-list label, .textbox, .datebox {
        transition: none !important;
    }

        .btn-next:hover {
            transform: none;
        }
}


@media (max-width: 700px) {
    .top-banner {
        padding: 16px 22px;
    }

    .company-info h1 {
        font-size: 24px;
    }

    .main-container {
        margin: 24px auto;
        padding: 0 14px;
    }

    .card {
        padding: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .step-tracker {
        padding: 18px 4px 4px;
    }

    .step {
        width: 78px;
    }

    .step-label {
        font-size: 10.5px;
    }

    .datebox {
        max-width: 100%;
    }

    .quiz-options-grid {
        flex-direction: column;
    }

        .quiz-options-grid li {
            flex: 1 1 auto;
        }
}


.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    position: relative;
}

    .form-grid::before {
        content: "";
        width: 1px;
        background: #E3E8EE;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
    }

.form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

        .form-grid::before {
            display: none;
        }
}

.form-actions {
    border-top: 1px solid #D7DEE8;
    padding-top: 22px;
    margin-top: 10px;
    text-align: right;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

@media (max-width: 800px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.card p {
    line-height: 1.8;
    color: var(--color-ink-soft);
}

.section-break {
    border-top: 1px solid #D7DEE8;
    margin: 32px 0;
}



.pass-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.digital-pass {
    width: 300px;
    min-height: 420px;
    background: #FFFFFF;
    border: 3px solid #050404;
    border-radius: 4px;
    padding: 20px 18px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.pass-logo {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 45px;
    margin-bottom: 15px;
}

.pass-logo-img {
    max-width: 220px;
    width: 100%;
    height: auto;
}

.pass-qr img {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}

.pass-info {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 38px;
    margin-top: 0;
}

.pass-field {
    margin-bottom: 10px;
}

.pass-no {
    font-size: 20px;
    font-weight: 800;
}

.pass-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #6B7280;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.pass-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-ink);
}

.result-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.result-card {
    width: 100%;
    max-width: 540px;
    text-align: center;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

    .result-card h2 {
        margin-bottom: 12px;
        font-size: 28px;
    }

    .result-card h1 {
        margin: 12px 0 18px;
        font-size: 52px;
        font-weight: 800;
    }

    .result-card p {
        font-size: 15px;
        color: #555;
        line-height: 1.6;
    }

.passed-result {
    border-top: 6px solid #2E7D32;
}

    .passed-result h2,
    .passed-result h1 {
        color: #2E7D32;
    }

.failed-result {
    border-top: 6px solid #C62828;
}

    .failed-result h2,
    .failed-result h1 {
        color: #C62828;
    }


.verification-status {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    margin: 15px 0 20px;
}

.status-valid {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-invalid {
    background: #FDEDED;
    color: #D91C1C;
}

.verification-details {
    text-align: left;
    background: #F8FAFC;
    border: 1px solid #D7DEE8;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 15px;
}

    .verification-details p {
        margin: 10px 0;
        color: var(--color-ink-soft);
    }


.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
}

    .admin-table th {
        background: #F1F5F8;
        color: var(--color-ink);
        font-size: 13px;
        text-align: left;
        padding: 14px;
        border-bottom: 1px solid #D7DEE8;
    }

    .admin-table td {
        padding: 14px;
        border-bottom: 1px solid #E5EAF0;
        color: var(--color-ink-soft);
        font-size: 14px;
    }

    .admin-table tr:hover td {
        background: #F8FAFC;
    }

.driver-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
}

    .driver-detail-grid p {
        background: #F8FAFC;
        border: 1px solid #D7DEE8;
        border-radius: var(--radius-sm);
        padding: 12px 14px;
        margin: 0;
        color: var(--color-ink-soft);
    }

@media (max-width: 700px) {
    .driver-detail-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.dashboard-card {
    background: #F8FAFC;
    border: 1px solid #D7DEE8;
    border-left: 5px solid var(--color-navy);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

    .dashboard-card span {
        display: block;
        color: var(--color-text-secondary);
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 10px;
    width: 1288px;
}

        .dashboard-card label,
        .dashboard-card span[id] {
            font-size: 32px;
            font-weight: 800;
            color: var(--color-ink);
        }

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.filter-row {
    display: flex;
    gap: 14px;
    align-items: center;
    max-width: 520px;
}

    .filter-row .textbox {
        flex: 1;
    }

@media (max-width: 700px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #E9EFF4;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1A1A1A 0%, #24313A 100%);
    color: white;
    padding: 26px 18px;
    box-shadow: 4px 0 18px rgba(0,0,0,.08);
}

.admin-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .4px;
    padding: 14px 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    margin-bottom: 22px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .admin-nav a {
        color: #E8EDF1;
        text-decoration: none;
        padding: 13px 15px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
        transition: .18s;
    }

        .admin-nav a:hover {
            background: rgba(255,255,255,.10);
            transform: translateX(3px);
        }

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid #D7DEE8;
    padding: 18px 30px;
    font-weight: 800;
    color: #1A1A1A;
    box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

.admin-content {
    max-width: 1250px;
    margin: 30px auto;
    padding: 0 26px;
}

.page-shell {
    display: flex;
    align-items: flex-start;
}

.admin-sidebar {
    width: 245px;
    min-height: calc(100vh - 124px);
    background: #FFFFFF;
    border-right: 1px solid #D7DEE8;
    padding: 24px 18px;
    box-shadow: 4px 0 16px rgba(0,0,0,.04);
    position: sticky;
    top: 0;
}

.admin-sidebar-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-ink);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #D7DEE8;
}

.admin-sidebar a {
    display: block;
    text-decoration: none;
    color: var(--color-ink-soft);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: .18s;
}

    .admin-sidebar a:hover {
        background: #F1F5F8;
        color: var(--color-navy);
        transform: translateX(3px);
    }

.page-shell .main-container {
    flex: 1;
}




.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    overflow-x: hidden;
}

.dashboard-hero-panel {
    background: linear-gradient(135deg, #FFFFFF 0%, #F6F8FB 65%, #EEF3F7 100%);
    border: 1px solid #DDE4EA;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(0,0,0,.045);
}

.dashboard-hero-main {
    margin-bottom: 22px;
}

.dashboard-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.dashboard-hero-main h2 {
    margin: 0;
    font-size: 30px;
    color: var(--color-ink);
}

.dashboard-hero-main p {
    margin-top: 10px;
    max-width: 720px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.dashboard-quick-actions,
.dashboard-kpis,
.dashboard-row {
    display: grid;
    gap: 16px;
}

.dashboard-quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-column-main {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr);
}

.two-column-even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-action {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    text-decoration: none;
    background: rgba(255,255,255,.82);
    border: 1px solid #DDE4EA;
    border-radius: 16px;
    padding: 15px;
    transition: .18s;
}

    .dash-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0,0,0,.07);
        border-color: #AAB7C2;
        background: #FFFFFF;
    }

.dash-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #EEF3F7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    flex-shrink: 0;
}

    .dash-action-icon svg {
        width: 21px;
        height: 21px;
    }

.dash-action b {
    display: block;
    color: var(--color-ink);
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
}

.dash-action small {
    display: block;
    color: #6D7882;
    font-size: 12px;
    line-height: 1.3;
}

.kpi-card {
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid #DDE4EA;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 5px 14px rgba(0,0,0,.04);
    position: relative;
    overflow: hidden;
}

    .kpi-card::before {
        content: "";
        width: 5px;
        height: 42px;
        background: #DCE6F2;
        border-radius: 999px;
        position: absolute;
        top: 20px;
        left: 0;
    }

    .kpi-card span {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: #7D8893;
        margin-bottom: 8px;
    }

    .kpi-card label {
        font-size: 31px;
        font-weight: 800;
        color: var(--color-ink);
        line-height: 1.1;
    }

.dashboard-card {
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid #DDE4EA;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 5px 16px rgba(0,0,0,.04);
    overflow: hidden;
}

.analytics-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FBFD 100%);
}

.summary-card {
    background: #FFFFFF;
}

.info-card {
    background: linear-gradient( 135deg, #FFFDFC 0%, #FFF8F0 55%, #FDEEDC 100% );
    border: 1px solid #F4DEC4;
    
    box-shadow: 0 8px 18px rgba(228,163,90,.08);
}

    .info-card .section-title {
        color: #A56726;
        font-weight: 800;
    }

    .info-card p,
    .info-card li {
        color: #685A4C;
    }

.section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--color-ink);
    margin-bottom: 12px;
}

.note-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.dashboard-card canvas {
    width: 100% !important;
    max-width: 100%;
}

#monthlyAssessmentChart {
    height: 330px !important;
}

#scoreDistributionChart {
    height: 260px !important;
}

#passFailChart {
    height: 320px !important;
}

#topCompaniesChart {
    height: 330px !important;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .dashboard-table th {
        background: #F7F9FB;
        padding: 9px 12px;
        text-align: left;
        font-size: 12px;
        font-weight: 800;
        color: #7D8893;
        border-bottom: 1px solid #E4EAEF;
        white-space: nowrap;
    }

    .dashboard-table td {
        padding: 9px 12px;
        font-size: 12.5px;
        border-bottom: 1px solid #EEF2F5;
        color: var(--color-ink-soft);
        vertical-align: middle;
    }

    .dashboard-table tr:hover td {
        background: #FAFCFD;
    }

.compact-table th,
.compact-table td {
    padding: 9px 10px;
    font-size: 12px;
}

.dashboard-table td:nth-child(2) {
    max-width: 240px;
    white-space: normal;
    word-break: break-word;
}

#MainContent_gvMonthlySummary td:nth-child(3) {
    color: #2E7D32;
    font-weight: 700;
}

#MainContent_gvMonthlySummary td:nth-child(4) {
    color: #B45309;
    font-weight: 700;
}

.dashboard-table td:last-child {
    font-weight: 700;
    color: var(--color-navy);
}

#MainContent_gvScoreDistribution td:first-child {
    font-weight: 700;
    color: var(--color-navy);
}

.insight-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.65;
    color: #4F5963;
    font-size: 13px;
}

    .insight-list li {
        margin-bottom: 6px;
    }

@media (max-width: 1100px) {
    .two-column-main,
    .two-column-even {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 950px) {
    .dashboard-kpis,
    .dashboard-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .dashboard-kpis,
    .dashboard-quick-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-panel {
        padding: 22px;
    }

    .dashboard-hero-main h2 {
        font-size: 25px;
    }

    .kpi-card label {
        font-size: 27px;
    }
}


.admin-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.admin-page-header {
    background: linear-gradient(135deg, #FFFFFF 0%, #F6F8FB 65%, #EEF3F7 100%);
    border: 1px solid #DDE4EA;
    border-radius: 22px;
    padding: 26px 28px;
    box-shadow: 0 10px 24px rgba(0,0,0,.045);
}

    .admin-page-header h2 {
        margin: 0;
        font-size: 28px;
        color: var(--color-ink);
    }

    .admin-page-header p {
        margin-top: 8px;
        color: var(--color-text-secondary);
    }

.admin-toolbar {
    display: flex;
    gap: 14px;
    align-items: center;
}

    .admin-toolbar .textbox {
        flex: 1;
    }

@media (max-width: 700px) {
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}


.driver-profile-hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F6F8FB 65%, #EEF3F7 100%);
    border: 1px solid #DDE4EA;
    border-radius: 22px;
    padding: 24px 26px;
    box-shadow: 0 10px 24px rgba(0,0,0,.045);
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
}

    .driver-profile-hero h2 {
        margin: 0;
        font-size: 28px;
        color: var(--color-ink);
    }

    .driver-profile-hero p {
        margin: 8px 0 0;
        color: var(--color-text-secondary);
        font-size: 14px;
    }

.profile-status-box {
    background: #FFFFFF;
    border: 1px solid #DDE4EA;
    border-radius: 14px;
    padding: 14px 18px;
    min-width: 150px;
    text-align: center;
}

    .profile-status-box span {
        display: block;
        font-size: 11.5px;
        color: #7D8893;
        font-weight: 700;
        margin-bottom: 5px;
    }

    .profile-status-box label {
        font-size: 18px;
        font-weight: 800;
        color: var(--color-navy);
    }

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .85fr);
    gap: 18px;
    align-items: start;
}

.profile-card {
    padding: 20px !important;
}

    .profile-card .section-title {
        margin-bottom: 14px;
        font-size: 16px;
    }

.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    background: #FAFBFC;
    border: 1px solid #E8EDF2;
    border-radius: 10px;
    padding: 10px 13px;
    min-width: 0;
}

    .profile-row span {
        font-size: 12px;
        font-weight: 700;
        color: #7A8793;
        line-height: 1.3;
    }

.profile-value {
    display: block;
    min-width: 0;
    max-width: 100%;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--color-ink) !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 900px) {
    .driver-profile-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .profile-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* =========================================================
   FINAL FIX - DRIVER PROFILE VALUE SIZES
========================================================= */

.profile-card .profile-row {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #FAFBFC;
    border: 1px solid #E8EDF2;
    border-radius: 10px;
    min-width: 0;
}

.profile-card .profile-label {
    font-size: 12px;
    font-weight: 700;
    color: #7A8793;
    line-height: 1.3;
}

.profile-card .profile-data {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.profile-card .profile-value,
.profile-card label.profile-value,
.profile-card span.profile-value {
    display: block !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #24313A !important;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

#MainContent_lblPassNo {
    font-size: 11.5px !important;
    font-family: Consolas, monospace !important;
    letter-spacing: .2px;
}

#MainContent_lblEmail {
    font-size: 11.8px !important;
}

.profile-status-box label {
    font-size: 16px !important;
    font-weight: 800 !important;
}

.profile-card {
    padding: 18px !important;
    margin-bottom: 8px;
}

.profile-info-list {
    gap: 7px;
}

@media (max-width: 520px) {
    .profile-card .profile-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}


.profile-form-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 8px;
}

@media (max-width: 700px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SAFE FINAL OVERRIDES - ADMIN PROFILE + VALIDATION
   Does not affect driver-facing pages
========================================================= */

/* Stop dashboard card labels from becoming huge except KPI cards */
.dashboard-card label,
.dashboard-card span[id] {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit;
}

/* Keep only KPI numbers large */
.kpi-card label,
.kpi-card span[id] {
    font-size: 31px !important;
    font-weight: 800 !important;
    color: var(--color-ink) !important;
    line-height: 1.1;
}

/* Professional smaller validation messages */
.field-error,
span.field-error,
.profile-card .field-error,
.dashboard-card .field-error {
    display: block !important;
    min-height: 0 !important;
    margin-top: 3px !important;
    font-size: 10.8px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    color: #B42318 !important;
}

    .field-error::before {
        content: none !important;
    }

/* Reduce admin form whitespace only */
.profile-card .form-group,
.profile-form-grid .form-group {
    min-height: auto !important;
    margin-bottom: 6px !important;
}

.profile-form-grid {
    gap: 12px !important;
    margin-bottom: 10px !important;
}

/* Driver profile field values */
.profile-card .profile-row {
    grid-template-columns: 120px minmax(0, 1fr) !important;
    padding: 7px 10px !important;
    gap: 8px !important;
}

.profile-card .profile-label {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #7A8793 !important;
}

.profile-card .profile-value,
.profile-card label.profile-value,
.profile-card span.profile-value {
    font-size: 11.8px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    color: #24313A !important;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

/* Long values */
#MainContent_lblPassNo {
    font-size: 11px !important;
    font-family: Consolas, monospace !important;
}

#MainContent_lblEmail {
    font-size: 11px !important;
}

.profile-status-box label:not(.status-badge),
.profile-status-box span[id]:not(.status-badge) {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--color-navy) !important;
}

/* Smaller admin buttons only inside profile cards */
.profile-card .btn-next {
    font-size: 12.5px !important;
    padding: 11px 34px 11px 22px !important;
    background-position: right 14px center;
}

/* Smaller admin inputs only inside profile cards */
.profile-card .textbox,
.profile-card select,
.profile-card textarea {
    font-size: 12.5px !important;
    padding: 9px 11px !important;
}

.expiry-badge {
    display: inline-block;
    min-width: 72px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}

.badge-safe {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-warning {
    background: #FFF8E1;
    color: #9A6B00;
}

.badge-danger {
    background: #FDEDED;
    color: #B42318;
}

.badge-muted {
    background: #EEF2F6;
    color: #667085;
}

.verify-wrapper {
    max-width: 720px;
    margin: 40px auto;
}

.verify-banner {
    text-align: center;
    margin-bottom: 25px;
    border-radius: 18px;
    padding: 18px;
    font-size: 20px;
    font-weight: 700;
}

.verify-valid {
    background: #EAF8EE;
    color: #2E7D32;
    border: 1px solid #CFE8D5;
}

.verify-expired {
    background: #FFF7E6;
    color: #B7791F;
    border: 1px solid #F2D79E;
}

.verify-revoked {
    background: #FDECEC;
    color: #C53030;
    border: 1px solid #F4C6C6;
}

.verify-invalid {
    background: #F4F6F8;
    color: #5F6B76;
    border: 1px solid #D7DEE5;
}

.attempt-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.attempt-kpi {
    background: #FFFFFF;
    border: 1px solid #DDE4EA;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 5px 14px rgba(0,0,0,.035);
}

    .attempt-kpi span {
        display: block;
        font-size: 11.5px;
        font-weight: 700;
        color: #7D8893;
        margin-bottom: 6px;
    }

        .attempt-kpi label,
        .attempt-kpi span[id] {
            font-size: 24px !important;
            font-weight: 800 !important;
            color: var(--color-ink) !important;
        }

@media (max-width: 900px) {
    .attempt-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .attempt-kpis {
        grid-template-columns: 1fr;
    }
}

.top-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-bell {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: .18s;
}

    .notification-bell:hover {
        background: rgba(255,255,255,.14);
        transform: translateY(-2px);
    }

    .notification-bell svg {
        width: 21px;
        height: 21px;
    }

.notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #D91C1C;
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-banner-link {
    margin-left: auto;
}

.btn-admin-link {
    display: inline-block;
    padding: 10px 18px;
    background: #C9A227;
    color: #1A1A1A;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: .25s;
}

    .btn-admin-link:hover {
        background: #B28E1E;
        color: #fff;
    }

.admin-menu-wrapper {
    position: relative;
}

.admin-menu-button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

    .admin-menu-button span {
        width: 18px;
        height: 2px;
        background: #FFFFFF;
        border-radius: 99px;
    }

.admin-menu-dropdown {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    width: 180px;
    background: #FFFFFF;
    border: 1px solid #DDE4EA;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
    overflow: hidden;
    z-index: 999;
}

    .admin-menu-dropdown a,
    .admin-menu-link {
        display: block;
        width: 100%;
        padding: 12px 14px;
        text-decoration: none;
        color: #24313A;
        font-size: 13px;
        font-weight: 600;
        background: #FFFFFF;
        border: none;
        text-align: left;
        cursor: pointer;
    }

        .admin-menu-dropdown a:hover,
        .admin-menu-link:hover {
            background: #F6F8FB;
            color: var(--color-navy);
        }

.show-admin-menu {
    display: block;
}

.driver-top-links {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.driver-header-link {
    color: #FAF8F2;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 12px;
    transition: .25s;
}

    .driver-header-link:hover {
        background: rgba(255,255,255,.12);
    }


.notification-feed-card {
    background: #FFFFFF;
    border: 1px solid #DDE4EA;
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(0,0,0,.045);
    overflow: hidden;
}

.notification-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #EEF2F5;
}

    .notification-item:last-child {
        border-bottom: none;
    }

.notification-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
}

.notification-danger {
    background: #FDEDED;
    color: #B42318;
}

.notification-warning {
    background: #FFF8E1;
    color: #9A6B00;
}

.notification-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.notification-info {
    background: #EEF3F7;
    color: var(--color-navy);
}

.notification-muted {
    background: #F1F3F5;
    color: #667085;
}

.notification-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-ink);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: #59636E;
    line-height: 1.45;
}

.notification-date {
    margin-top: 6px;
    font-size: 11.5px;
    color: #8A96A3;
}

.notification-view-link {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 999px;
    background: #F6F8FB;
    border: 1px solid #DDE4EA;
    color: var(--color-navy);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

    .notification-view-link:hover {
        background: #EEF3F7;
    }

.notification-empty {
    text-align: center;
    padding: 46px 20px;
}

    .notification-empty h3 {
        margin: 0 0 6px;
        font-size: 20px;
        color: var(--color-ink);
    }

    .notification-empty p {
        margin: 0;
        color: #7D8893;
    }

@media (max-width: 700px) {
    .notification-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .notification-action {
        grid-column: 2;
    }
}


/* =========================================================
   MOBILE RESPONSIVE FIX
========================================================= */

* {
    box-sizing: border-box;
}

img,
video {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .top-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
    }

    .logo-section {
        width: 100%;
    }

        .logo-section h1 {
            font-size: 22px;
        }

    .driver-top-links,
    .admin-top-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    
    

    .main-container,
    .admin-page,
    .form-shell,
    .verify-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 14px;
        margin: 0;
    }

    .admin-page-header {
        padding: 18px;
        border-radius: 18px;
    }

        .admin-page-header h2,
        .card-header h2 {
            font-size: 24px;
        }

        .admin-page-header p,
        .card-header p {
            font-size: 13px;
        }

    .dashboard-card,
    .form-card,
    .profile-card,
    .notification-feed-card {
        width: 100%;
        padding: 16px !important;
        border-radius: 18px;
    }

    .attempt-kpis,
    .profile-grid,
    .profile-form-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .textbox,
    select,
    textarea {
        width: 100%;
        max-width: 100%;
        font-size: 13px;
    }

    .btn-next {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .table-scroll {
        overflow-x: auto;
        width: 100%;
    }

    .dashboard-table {
        min-width: 720px;
    }

    .digital-pass {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        transform: none;
    }

    .pass-wrapper {
        padding: 10px 0;
    }

    .result-card {
        width: 100%;
        padding: 24px 18px;
    }

    .notification-item {
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: start;
    }

    .notification-action {
        grid-column: 2;
    }
}

/* =========================================================
   MOBILE HEADER FIX
========================================================= */

@media (max-width: 768px) {

    .top-banner {
        width: 100%;
        overflow: visible;
        padding: 14px 16px;
    }

    .logo-section {
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo {
        width: 46px;
        height: auto;
        flex-shrink: 0;
    }

    .logo-section h1 {
        font-size: 18px !important;
        line-height: 1.15;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: normal;
        margin: 0;
    }

    .driver-top-links,
    .admin-top-actions {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        overflow: visible;
    }

    .driver-header-link {
        font-size: 12px;
        padding: 8px 12px;
    }

    .notification-bell,
    .admin-menu-button {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .admin-menu-wrapper {
        position: relative;
    }

    .admin-menu-dropdown {
        right: auto;
        left: 0;
        top: 48px;
        width: min(220px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        z-index: 9999;
    }
}

@media (max-width:768px) {

    .page-shell {
        display: flex;
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 0;
        position: relative;
        scrollbar-width: none;
    }

        .admin-sidebar::-webkit-scrollbar {
            display: none;
        }

    .admin-sidebar-title {
        display: none;
    }

    .admin-sidebar a {
        flex: 0 0 auto;
        min-width: max-content;
        padding: 10px 16px;
        border-radius: 12px;
        font-size: 13px;
        margin: 0;
    }
}


@media (max-width: 768px) {

    .page-shell {
        display: block !important;
    }

    .admin-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        margin: 0 !important;
        position: relative !important;
        border-radius: 0 !important;
        white-space: nowrap !important;
    }

    .admin-sidebar-title {
        display: none !important;
    }

    .admin-sidebar a {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content !important;
        padding: 9px 14px !important;
        margin: 0 !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
    }

    .main-container {
        width: 100% !important;
        margin-left: 0 !important;
    }
}



    .delivery-radio-list table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 12px;
    }

    

    .delivery-radio-list input[type="radio"] {
        display: none;
    }

    .delivery-radio-list label {
        display: inline-flex;
        align-items: center;
        padding: 12px 18px;
        border: 2px solid #D7DEE8;
        border-radius: 12px;
        background: #FFFFFF;
        cursor: pointer;
        transition: .2s;
        font-size: 14px;
        font-weight: 600;
        color: var(--color-ink-soft);
    }

        .delivery-radio-list label:hover {
            border-color: var(--color-navy);
            background: #F8FAFC;
        }

    .delivery-radio-list input[type="radio"]:checked + label {
        border-color: var(--color-navy);
        background: #EEF3F7;
        color: var(--color-ink);
        font-weight: 700;
        box-shadow: 0 0 0 3px rgba(84,106,123,.15);
    }


.table-total-row td {
    background: #EEF3F7 !important;
    font-weight: 800 !important;
    color: #1A1A1A !important;
    border-top: 2px solid #C9D6E1;
}

.score-high td {
    background: #EAF7EE !important;
}

.score-mid td {
    background: #FFF8E1 !important;
}

.score-low td {
    background: #FDEDED !important;
}

    .score-high td:first-child,
    .score-mid td:first-child,
    .score-low td:first-child {
        font-weight: 800;
    }


.score-card .table-scroll {
    max-height: none;
    overflow: visible;
}

.company-card .table-scroll {
    max-height: 340px;
    overflow-y: auto;
}

.monthly-summary-card .table-scroll,
.pass-summary-card .table-scroll {
    max-height: 340px;
    overflow-y: auto;
}

/*=====================================
    STATUS BADGES
======================================*/

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .3px;
    border: 1px solid transparent;
}

/* Active */

.status-active {
    color: #15803d;
    background: #dcfce7;
    border-color: #86efac;
}

/* Expired */

.status-expired {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Revoked / Invalid */

.status-revoked {
    color: #991b1b;
    background: #fde2e2;
    border-color: #ef4444;
}

/* =========================================================
   FINAL DRIVER ACCESS PAGE OVERRIDES
   Keep this at the very bottom of site.css
========================================================= */

.driver-access-page {
    max-width: 1050px !important;
}

    .driver-access-page .intro-card {
        text-align: center !important;
        padding: 26px 28px !important;
        border-left: none !important;
        border-top: 5px solid var(--color-navy) !important;
        background: linear-gradient(135deg, #FFFFFF, #F1F5F8) !important;
    }

        .driver-access-page .intro-card h2 {
            justify-content: center !important;
            margin: 0 0 10px !important;
            font-size: 27px !important;
        }

        .driver-access-page .intro-card p {
            max-width: 650px !important;
            margin: 6px auto !important;
            font-size: 14px !important;
        }

    .driver-access-page .driver-choice-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px !important;
        margin-top: 24px !important;
    }

    .driver-access-page .driver-choice-card {
        min-height: 310px !important;
        padding: 26px 24px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        background: #FFFFFF !important;
        border: 1px solid #D7DEE8 !important;
        border-top: 5px solid var(--color-navy) !important;
        border-radius: 18px !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .055) !important;
        transition: transform .2s ease, box-shadow .2s ease !important;
    }

        .driver-access-page .driver-choice-card:last-child {
            border-top-color: var(--color-gold) !important;
        }

        .driver-access-page .driver-choice-card:hover {
            transform: translateY(-4px) !important;
            box-shadow: 0 14px 28px rgba(0, 0, 0, .09) !important;
        }

    .driver-access-page .driver-choice-icon {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        margin-bottom: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 13px !important;
        border: 1px solid #D7DEE8 !important;
        background: #EEF3F7 !important;
        color: var(--color-navy) !important;
        box-shadow: none !important;
    }

    .driver-access-page .driver-choice-card:last-child .driver-choice-icon {
        background: #FFF7DA !important;
        border-color: #E8D48A !important;
        color: var(--color-gold-deep) !important;
    }

    .driver-access-page .driver-choice-icon svg {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }

    .driver-access-page .driver-choice-card h3 {
        margin: 0 0 10px !important;
        font-size: 21px !important;
        font-weight: 800 !important;
        color: var(--color-ink) !important;
    }

    .driver-access-page .driver-choice-card p {
        max-width: 360px !important;
        margin: 0 0 9px !important;
        font-size: 13.5px !important;
        line-height: 1.65 !important;
        color: var(--color-text-secondary) !important;
    }

    .driver-access-page .choice-language {
        margin-bottom: 20px !important;
        font-size: 12.5px !important;
        font-style: italic !important;
        color: var(--color-text-muted) !important;
    }

    .driver-access-page .driver-choice-button {
        width: 100% !important;
        max-width: 240px !important;
        margin-top: auto !important;
        padding: 12px 36px 12px 22px !important;
        font-size: 13px !important;
    }

    .driver-access-page .driver-choice-card:last-child .driver-choice-button {
        background-color: var(--color-gold) !important;
        color: #1A1A1A !important;
    }

        .driver-access-page .driver-choice-card:last-child .driver-choice-button:hover {
            background-color: #B28E1E !important;
            color: #FFFFFF !important;
        }

@media (max-width: 750px) {
    .driver-access-page .driver-choice-grid {
        grid-template-columns: 1fr !important;
    }

    .driver-access-page .driver-choice-card {
        min-height: auto !important;
        padding: 24px 20px !important;
    }

    .driver-access-page .driver-choice-button {
        max-width: 100% !important;
    }
}

/* =========================================================
   REVOKED PASS PAGE
========================================================= */

.revoked-page {
    width: 100%;
    max-width: 760px;
    margin: 38px auto;
}

.revoked-card {
    width: 100%;
    padding: 34px;
    background: #FFFFFF;
    border: 1px solid #E6D5D5;
    border-top: 6px solid #C53030;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
}

.revoked-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #F4C6C6;
    border-radius: 50%;
    background: #FDECEC;
    color: #C53030;
    font-size: 25px;
    font-weight: 900;
}

.revoked-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #B42318;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.revoked-card h2 {
    margin: 0 0 14px;
    color: #1A1A1A;
    font-size: 27px;
    font-weight: 800;
}

.revoked-card > p {
    max-width: 620px;
    margin: 0 auto 9px;
    color: #5F5E5A;
    font-size: 14px;
    line-height: 1.7;
}

.revoked-card .revoked-translation {
    margin-bottom: 24px;
    color: #7D7D78;
    font-size: 12.5px;
    font-style: italic;
}

.revoked-details {
    margin-bottom: 22px;
    border: 1px solid #E3E8ED;
    border-radius: 14px;
    overflow: hidden;
    text-align: left;
}

.revoked-detail-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px 15px;
    background: #FAFBFC;
    border-bottom: 1px solid #EDF1F4;
}

    .revoked-detail-row:last-child {
        border-bottom: none;
    }

    .revoked-detail-row > span:first-child {
        color: #7A8793;
        font-size: 12px;
        font-weight: 700;
    }

    .revoked-detail-row > label,
    .revoked-detail-row > span[id] {
        color: #24313A;
        font-size: 13px;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

.revoked-notice {
    padding: 17px 18px;
    margin-bottom: 20px;
    border: 1px solid #E8D48A;
    border-radius: 12px;
    background: #FFF8E1;
    text-align: left;
}

    .revoked-notice strong {
        display: block;
        margin-bottom: 7px;
        color: #806000;
        font-size: 13px;
    }

    .revoked-notice label,
    .revoked-notice span[id] {
        display: block;
        color: #685A32;
        font-size: 12.5px;
        line-height: 1.6;
    }

.revoked-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.revoked-update-button {
    min-width: 220px;
}

.revoked-return-button {
    min-width: 210px;
    padding: 12px 20px;
    border: 1px solid #CDD7DF;
    border-radius: 9px;
    background: #EEF3F7;
    color: #546A7B;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .18s;
}

    .revoked-return-button:hover {
        background: #E1E9EF;
        border-color: #AEBCC7;
    }

@media (max-width: 600px) {

    .revoked-page {
        margin: 22px auto;
        padding: 0 14px;
    }

    .revoked-card {
        padding: 26px 19px;
    }

    .revoked-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .revoked-actions {
        flex-direction: column;
    }

    .revoked-update-button,
    .revoked-return-button {
        width: 100%;
        min-width: 0;
    }
}

/*==========================================================
UPDATE DRIVER INFORMATION
==========================================================*/

.renewal-container {
    max-width: 950px;
    margin: 35px auto;
    padding: 0 20px;
}

.renewal-card {
    background: #FFFFFF;
    border: 1px solid #E5EAF0;
    border-radius: 18px;
    padding: 38px 42px;
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

/*==========================================================
HEADER
==========================================================*/

.renewal-header {
    margin-bottom: 32px;
    text-align: center;
}

    .renewal-header h2 {
        margin: 8px 0 12px;
        font-size: 30px;
        font-weight: 700;
        color: #1A1A1A;
    }

    .renewal-header p {
        margin: 0;
        color: #687684;
        font-size: 15px;
        line-height: 1.7;
    }

/*==========================================================
VALIDATION
==========================================================*/

.validation-summary {
    margin-bottom: 26px;
    padding: 16px 20px;
    background: #FFF7F7;
    border-left: 5px solid #D93025;
    border-radius: 10px;
    color: #C62828;
    font-size: 14px;
}

    .validation-summary:empty {
        display: none;
    }

    .validation-summary ul {
        margin: 8px 0 0 20px;
    }

/*==========================================================
ROWS
==========================================================*/

.form-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #EEF2F6;
}

    .form-row:last-of-type {
        border-bottom: none;
    }

    /*==========================================================
LABELS
==========================================================*/

    .form-row label {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        display: flex;
        align-items: center;
    }

.optional-text {
    margin-left: 8px;
    color: #8A96A3;
    font-size: 12px;
    font-weight: 500;
}

/*==========================================================
TEXTBOXES
==========================================================*/

.form-row .textbox {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #D7DEE7;
    border-radius: 10px;
    background: #FFFFFF;
    font-size: 14px;
    transition: .25s;
}

    .form-row .textbox:focus {
        border-color: #546A7B;
        box-shadow: 0 0 0 3px rgba(84,106,123,.15);
    }

/*==========================================================
READONLY
==========================================================*/

.readonly-box {
    background: #E8EDF2 !important;
    border-color: #C8D1DB !important;
    color: #4B5563 !important;
    font-weight: 600;
    cursor: not-allowed;
}

/*==========================================================
DATE BOXES
==========================================================*/

input[type=date] {
    cursor: pointer;
}

/*==========================================================
NOTE
==========================================================*/

.renewal-note {
    margin-top: 28px;
    padding: 18px 22px;
    border-left: 5px solid #C9A227;
    background: #FFFBEF;
    border-radius: 10px;
}

    .renewal-note strong {
        display: block;
        margin-bottom: 6px;
        color: #7A5C00;
        font-size: 15px;
    }

    .renewal-note p {
        margin: 0;
        color: #5F6368;
        line-height: 1.7;
        font-size: 14px;
    }

/*==========================================================
BUTTON
==========================================================*/

.renewal-actions {
    text-align: right;
    margin-top: 34px;
}

    .renewal-actions .btn-next {
        min-width: 260px;
    }

/*==========================================================
MOBILE
==========================================================*/

@media(max-width:768px) {

    .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px 0;
    }

        .form-row label {
            margin-bottom: 4px;
        }

    .renewal-card {
        padding: 28px 22px;
    }

    .renewal-header h2 {
        font-size: 26px;
    }

    .renewal-actions {
        text-align: center;
    }

        .renewal-actions .btn-next {
            width: 100%;
        }
}

/* =========================================================
   RESTORE COMPACT ADMIN STATUS BADGES
   Keep this at the absolute bottom of site.css
========================================================= */

.admin-page .status-badge,
.dashboard-card .status-badge,
.profile-card .status-badge,
.admin-table .status-badge,
.table-scroll .status-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;
    height: auto !important;
    flex: 0 0 auto !important;
    padding: 5px 12px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    text-align: center !important;
}

    /* Restore the correct status colours */

    .admin-page .status-badge.status-active,
    .dashboard-card .status-badge.status-active,
    .profile-card .status-badge.status-active {
        color: #15803D !important;
        background: #DCFCE7 !important;
        border: 1px solid #86EFAC !important;
    }

    .admin-page .status-badge.status-expired,
    .dashboard-card .status-badge.status-expired,
    .profile-card .status-badge.status-expired {
        color: #B91C1C !important;
        background: #FEE2E2 !important;
        border: 1px solid #FCA5A5 !important;
    }

    .admin-page .status-badge.status-revoked,
    .dashboard-card .status-badge.status-revoked,
    .profile-card .status-badge.status-revoked {
        color: #991B1B !important;
        background: #FDE2E2 !important;
        border: 1px solid #EF4444 !important;
    }

/* Prevent the profile status container from stretching the badge */

.profile-status-box .status-badge,
.profile-status-box label.status-badge,
.profile-status-box span.status-badge {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;
    align-self: flex-start !important;
}

/* =========================================================
   RESTORE COMPACT DAYS-LEFT BADGES
   Admin Expiry Monitoring
========================================================= */

.admin-page .expiry-badge,
.admin-table .expiry-badge,
.table-scroll .expiry-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;
    height: auto !important;
    padding: 5px 11px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-align: center !important;
    vertical-align: middle !important;
    flex: 0 0 auto !important;
}

    /* 7 days or fewer */

    .admin-page .expiry-badge.badge-danger {
        color: #B91C1C !important;
        background: #FEE2E2 !important;
        border: 1px solid #FCA5A5 !important;
    }

    /* 8–30 days */

    .admin-page .expiry-badge.badge-warning {
        color: #8A6100 !important;
        background: #FEF3C7 !important;
        border: 1px solid #FCD34D !important;
    }

    /* More than 30 days */

    .admin-page .expiry-badge.badge-safe {
        color: #166534 !important;
        background: #DCFCE7 !important;
        border: 1px solid #86EFAC !important;
    }

    /* Missing value */

    .admin-page .expiry-badge.badge-muted {
        color: #5F6B75 !important;
        background: #EEF2F5 !important;
        border: 1px solid #CBD5DE !important;
    }


/* =========================================================
   SECURITY SCANNER PAGE
========================================================= */

.security-scanner-page {
    width: 100%;
    max-width: 760px;
    margin: 34px auto;
    padding: 0 18px;
}

.security-scanner-header {
    margin-bottom: 20px;
}

    .security-scanner-header h2 {
        margin: 5px 0 8px;
        color: #1A1A1A;
        font-size: 27px;
        font-weight: 800;
    }

    .security-scanner-header p {
        max-width: 620px;
        margin: 0;
        color: #68747E;
        font-size: 13.5px;
        line-height: 1.6;
    }

.security-scanner-card {
    padding: 24px;
    border: 1px solid #DCE3E9;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 9px 25px rgba(0, 0, 0, .06);
}

.security-qr-reader {
    width: 100%;
    overflow: hidden;
    border: 1px solid #CDD7DF !important;
    border-radius: 14px;
    background: #F6F8FA;
}

    .security-qr-reader video {
        border-radius: 11px;
    }

.security-scanner-help {
    margin: 14px 0 0;
    color: #74808A;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.security-scan-message {
    display: block;
    margin-top: 14px;
    color: #B42318;
    font-size: 12.5px;
    font-weight: 600;
}

/* =========================================================
   FIXED RESULT POPUP
========================================================= */

.security-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(16, 24, 32, .72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow-y: auto;
}

.security-modal-card {
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 25px;
    border: 1px solid #DCE3E9;
    border-top: 7px solid #546A7B;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 24px 65px rgba(0, 0, 0, .28);
    animation: securityPopupIn .18s ease-out;
}

@keyframes securityPopupIn {

    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Result colours */

.security-modal-card.result-valid {
    border-top-color: #15803D;
}

.security-modal-card.result-revoked,
.security-modal-card.result-expired,
.security-modal-card.result-invalid,
.security-modal-card.result-not-found {
    border-top-color: #B42318;
}

/* Heading */

.security-result-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 21px;
}

.security-result-heading-text {
    min-width: 0;
}

.security-result-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #EEF3F6;
    color: #546A7B;
    font-size: 24px;
    font-weight: 900;
}

.result-valid .security-result-icon {
    background: #DCFCE7;
    color: #15803D;
}

.result-revoked .security-result-icon,
.result-expired .security-result-icon,
.result-invalid .security-result-icon,
.result-not-found .security-result-icon {
    background: #FEE2E2;
    color: #B42318;
}

.security-result-title {
    display: block;
    color: #1A1A1A;
    font-size: 21px;
    font-weight: 800;
}

.security-result-subtitle {
    display: block;
    margin-top: 4px;
    color: #6D7882;
    font-size: 12.5px;
    line-height: 1.5;
}

/* Details */

.security-result-details {
    overflow: hidden;
    border: 1px solid #E1E7EC;
    border-radius: 12px;
}

.security-detail-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-bottom: 1px solid #E9EEF2;
}

    .security-detail-row:last-child {
        border-bottom: none;
    }

    .security-detail-row > span:first-child {
        color: #74808A;
        font-size: 11.5px;
        font-weight: 700;
    }

    .security-detail-row > label,
    .security-detail-row > span[id] {
        color: #27343D;
        font-size: 13px;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

/* Button */

.security-scan-again {
    display: block;
    min-width: 210px;
    margin: 21px auto 0;
}

/* Mobile */

@media (max-width: 600px) {

    .security-scanner-page {
        margin: 22px auto;
        padding: 0 13px;
    }

    .security-scanner-card {
        padding: 17px;
    }

    .security-modal-overlay {
        align-items: flex-start;
        padding: 12px;
    }

    .security-modal-card {
        max-height: calc(100vh - 24px);
        padding: 19px;
        border-radius: 15px;
    }

    .security-detail-row {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 9px 12px;
    }

    .security-scan-again {
        width: 100%;
        min-width: 0;
    }
}

