﻿:root {
    --ink: #172033;
    --muted: #667085;
    --line: #dde5f0;
    --surface: #ffffff;
    --soft: #f5f7fb;
    --brand: #0f7fd5;
    --brand-dark: #07599e;
    --accent: #ff6b2c;
    --success: #12805c;
    --shadow: 0 20px 55px rgba(31, 49, 79, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    background: var(--soft);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
    padding: 14px clamp(16px, 4vw, 64px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(221, 229, 240, 0.8);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-radius: 8px;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

    .main-nav a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 10px 13px;
        color: #344054;
        font-size: 14px;
        font-weight: 700;
        border-radius: 8px;
    }

        .main-nav a:hover,
        .main-nav .nav-cta {
            color: #fff;
            background: var(--brand);
        }

    .main-nav .nav-login {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--brand-dark);
        background: #eaf4ff;
    }

.nav-menu {
    position: relative;
}

.nav-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 10px 13px;
    color: #344054;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.nav-menu-button::after {
    content: "▾";
    color: var(--muted);
    font-size: 11px;
}

.nav-menu:hover .nav-menu-button,
.nav-menu.is-open .nav-menu-button {
    color: #fff;
    background: var(--brand);
}

.nav-menu:hover .nav-menu-button::after,
.nav-menu.is-open .nav-menu-button::after {
    color: #fff;
}

.nav-menu-panel {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 42;
    display: none;
    min-width: 190px;
    padding: 10px 8px 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.nav-menu:hover .nav-menu-panel,
.nav-menu.is-open .nav-menu-panel {
    display: grid;
}

.nav-menu-panel a {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-height: 38px;
    padding: 9px 11px;
    color: #344054;
    background: transparent;
    text-align: left;
}

.nav-menu-panel a:hover {
    color: #fff;
    background: var(--brand);
}

.user-menu {
    position: relative;
}

.user-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    color: var(--brand-dark);
    background: #eaf4ff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

.user-menu-panel {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 40;
    display: none;
    min-width: 190px;
    padding: 10px 8px 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.user-menu.is-open .user-menu-panel,
.user-menu:hover .user-menu-panel {
    display: grid;
}

.user-menu-panel a {
    display: block;
    padding: 10px 12px;
    color: #344054;
    background: transparent;
    text-align: left;
}

.user-menu-panel a:hover {
    color: #fff;
    background: var(--brand);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
}

    .nav-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        margin: 4px auto;
        background: var(--ink);
    }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    min-height: calc(100vh - 74px);
    padding: clamp(34px, 6vw, 84px) clamp(16px, 4vw, 64px);
    background: linear-gradient(115deg, rgba(10, 35, 66, 0.88), rgba(15, 127, 213, 0.62)), url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: #fff;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffd3c2;
}

.hero h1,
.section-heading h2,
.booking-header h2,
.tracking h2,
.confirmation h1 {
    margin: 0;
    line-height: 1.05;
}

.hero h1 {
    max-width: 820px;
    font-size: clamp(38px, 6vw, 74px);
}

.hero p {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-primary {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 14px 30px rgba(255, 107, 44, 0.28);
}

.btn-secondary {
    color: var(--ink);
    background: #fff;
}

.login-modal[hidden],
.account-modal[hidden],
.booking-auth-modal[hidden],
.order-action-modal[hidden] {
    display: none !important;
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

    .login-modal.is-open {
        display: flex;
    }

.login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 28, 0.62);
}

.login-panel {
    position: relative;
    width: min(500px, 100%);
    padding: 78px clamp(28px, 5vw, 64px) 64px;
    color: #fff;
    background: linear-gradient(180deg, rgba(14, 88, 190, 0.44), rgba(1, 10, 63, 0.92)), url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1000&q=80") center/cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 28px 70px rgba(4, 8, 24, 0.42);
}

.login-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(5, 12, 35, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.login-form {
    display: grid;
    gap: 20px;
}

.login-create,
.login-role,
.login-submit {
    min-height: 52px;
    color: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.login-create,
.login-role {
    justify-self: start;
    padding: 0 18px;
    background: #1378ff;
    font-size: 20px;
}

.login-role-primary {
    min-width: 278px;
}

.login-role.is-active {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.login-title {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.15;
    text-align: center;
}

.login-input {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    min-height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    background: rgba(0, 10, 48, 0.16);
}

    .login-input span {
        display: grid;
        height: 100%;
        place-items: center;
        font-size: 18px;
    }

    .login-input input {
        width: 100%;
        height: 100%;
        min-height: 68px;
        color: #fff;
        background: transparent;
        border: 0;
        outline: 0;
    }

        .login-input input::placeholder {
            color: rgba(255, 255, 255, 0.82);
        }

        .login-input input:-webkit-autofill {
            -webkit-text-fill-color: #fff;
            caret-color: #fff;
            box-shadow: 0 0 0 1000px rgba(0, 10, 48, 0.16) inset;
            -webkit-box-shadow: 0 0 0 1000px rgba(0, 10, 48, 0.16) inset;
            transition: background-color 9999s ease-in-out 0s;
        }

        .login-input input:-webkit-autofill:hover,
        .login-input input:-webkit-autofill:focus,
        .login-input input:-webkit-autofill:active {
            -webkit-text-fill-color: #fff;
            caret-color: #fff;
            box-shadow: 0 0 0 1000px rgba(0, 10, 48, 0.16) inset;
            -webkit-box-shadow: 0 0 0 1000px rgba(0, 10, 48, 0.16) inset;
        }

    .login-input:focus-within {
        border-color: #fff;
        box-shadow: 0 0 0 4px rgba(19, 120, 255, 0.26);
    }

    .login-input .input-error,
    .login-input:has(.input-error) {
        border-color: #ff6767;
    }

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: max-content;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 700;
}

    .login-remember input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #1378ff;
    }

.login-forgot {
    justify-self: start;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.login-captcha-help {
    margin: -10px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.login-submit {
    width: 100%;
    background: #ff474d;
    font-size: 22px;
}

.login-role-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

    .login-role-row .login-role {
        justify-self: stretch;
        width: 100%;
        padding: 0 12px;
        font-size: 17px;
        line-height: 1.2;
    }

.login-error {
    margin: 0 0 16px;
    color: #fff;
    background: rgba(199, 50, 50, 0.64);
    padding: 10px 12px;
    border-radius: 8px;
}

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

    .account-modal.is-open {
        display: flex;
    }

.account-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 107, 44, 0.32), rgba(7, 18, 42, 0.7)), rgba(13, 20, 33, 0.58);
}

.account-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: min(820px, calc(100vh - 32px));
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.account-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

    .account-dialog-header h2 {
        margin: 0;
        font-size: 24px;
    }

.account-close {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #667085;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
}

.account-form {
    padding: 22px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 20px;
}

    .account-field {
        display: grid;
        gap: 4px;
        margin: 0;
    }

    .account-field[hidden] {
        display: none;
    }

    .account-grid input,
    .account-grid select {
        box-sizing: border-box;
        width: 100%;
        height: 52px;
        padding: 12px 16px;
        color: var(--ink);
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        outline: 0;
        font: inherit;
    }

        .account-grid input:focus,
        .account-grid select:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 4px rgba(15, 127, 213, 0.12);
        }

    .account-grid .input-error {
        border-color: #c73232;
        box-shadow: 0 0 0 4px rgba(199, 50, 50, 0.12);
    }

.account-wide {
    grid-column: 1 / -1;
}

.account-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.account-error {
    margin: 16px 22px 0;
}

.btn-account-submit {
    color: #fff;
    background: var(--success);
}

.btn-account-close {
    color: #fff;
    background: #6c7784;
}

.booking-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

    .booking-auth-modal.is-open {
        display: flex;
    }

.booking-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 28, 0.66);
    backdrop-filter: blur(3px);
}

.booking-auth-dialog {
    position: relative;
    display: grid;
    gap: 14px;
    width: min(430px, 100%);
    padding: 32px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
}

    .booking-auth-dialog h2 {
        margin: 0;
        font-size: clamp(24px, 4vw, 34px);
        line-height: 1.12;
    }

    .booking-auth-dialog p {
        margin: 0;
        color: var(--muted);
        font-size: 17px;
        line-height: 1.55;
    }

.booking-auth-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-radius: 8px;
    font-size: 24px;
}

.booking-auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #667085;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.booking-auth-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

    .booking-auth-actions .btn {
        width: 100%;
    }

.duplicate-consignee-modal {
    z-index: 145;
}

.duplicate-consignee-modal .booking-auth-dialog {
    width: min(500px, 100%);
}

.hero-panel {
    display: grid;
    gap: 16px;
}

.route-card,
.route-stats {
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.route-card {
    padding: clamp(20px, 4vw, 34px);
}

    .route-card span,
    .route-card small,
    .booking-summary span,
    .booking-summary small,
    .confirm-list dt {
        color: var(--muted);
    }

    .route-card strong {
        display: block;
        margin: 10px 0;
        font-size: clamp(26px, 4vw, 42px);
    }

.route-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

    .route-stats div {
        padding: 22px;
    }

        .route-stats div + div {
            border-left: 1px solid var(--line);
        }

    .route-stats strong {
        display: block;
        font-size: 28px;
    }

.booking-shell,
.services,
.tracking,
.confirmation {
    width: min(1160px, calc(100% - 32px));
    margin: 28px auto;
}

.booking-shell {
    padding: clamp(18px, 3vw, 28px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.review-notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    color: #7a4a00;
    background: #fff4dd;
    border: 1px solid #ffd899;
    border-radius: 8px;
    font-weight: 700;
}

.global-notice {
    width: min(1160px, calc(100% - 32px));
    margin: 18px auto 0;
}

.admin-shell {
    max-width: 1180px;
}

.admin-table-wrap {
    margin-top: 20px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-grid-filter {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

    .admin-grid-filter label {
        display: grid;
        gap: 6px;
        width: min(460px, 100%);
        margin: 0;
        color: #344054;
        font-weight: 800;
    }

    .admin-grid-filter input {
        width: 100%;
        height: 46px;
        padding: 10px 14px;
        color: var(--ink);
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        outline: 0;
        font-size: 14px;
        font-weight: 600;
    }

        .admin-grid-filter input::placeholder {
            color: #667085;
            font-size: 14px;
            font-weight: 600;
            opacity: 1;
        }

        .admin-grid-filter input:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 4px rgba(15, 127, 213, 0.12);
        }

    .admin-grid-filter strong {
        color: var(--muted);
        font-size: 14px;
        white-space: nowrap;
    }

.admin-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    background: #fff;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: #344054;
    background: #f7f9fc;
    font-size: 13px;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.user-management-table {
    min-width: 0;
    table-layout: fixed;
}

.user-management-table .user-col-username {
    width: 22%;
}

.user-management-table .user-col-type {
    width: 14%;
}

.user-management-table .user-col-name {
    width: 18%;
}

.user-management-table .user-col-mobile {
    width: 11%;
}

.user-management-table .user-col-email {
    width: auto;
}

.user-management-table .user-col-status {
    width: 128px;
}

.user-management-table .user-col-action {
    width: 76px;
}

.user-management-table th:nth-child(6),
.user-management-table td:nth-child(6),
.user-management-table th:nth-child(7),
.user-management-table td:nth-child(7) {
    white-space: nowrap;
}

.user-management-table .wrap-cell {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.user-management-table .status-pill {
    min-width: 112px;
}

.user-management-table .table-action {
    justify-content: center;
    width: 58px;
}

.status-pill {
    display: inline-flex;
    min-width: 96px;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.status-active {
    color: var(--success);
    background: #eaf8f2;
}

.status-pendingreview {
    color: #7a4a00;
    background: #fff4dd;
}

.status-inactive {
    color: #b42318;
    background: #fee4e2;
}

.table-action {
    display: inline-flex;
    padding: 8px 10px;
    color: var(--brand-dark);
    background: #eaf4ff;
    border-radius: 8px;
    font-weight: 800;
}

.track-action {
    color: #fff;
    background: var(--brand);
}

.receipt-action {
    color: #027a48;
    background: #e6f7ef;
}

.fare-price {
    color: var(--success);
}

.manage-action {
    color: #344054;
    background: #ffe699;
}

.action-cell-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-width: 150px;
}

    .action-cell-buttons .table-action {
        border: 0;
        cursor: pointer;
        text-decoration: none;
    }

.booking-number-link {
    padding: 0;
    color: var(--brand-dark);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .booking-number-link:hover {
        color: var(--brand);
    }

.order-summary-list {
    margin: 16px 0 0;
}

.user-map-panel {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.user-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.user-map-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
}

.user-map-header input {
    box-sizing: border-box;
    width: min(320px, 100%);
    height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.user-map-list {
    display: grid;
    max-height: 360px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.user-map-row {
    display: grid;
    grid-template-columns: 24px minmax(220px, 1fr) minmax(120px, 160px) minmax(120px, 180px);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.user-map-row:last-child {
    border-bottom: 0;
}

.user-map-row input {
    width: 18px;
    height: 18px;
}

.user-map-row strong,
.user-map-row small {
    display: block;
}

.user-map-row small,
.user-map-row > span:not(:first-of-type),
.user-map-empty {
    color: var(--muted);
}

.user-map-empty {
    margin: 0;
    padding: 14px;
}

.order-summary-modal .order-action-dialog-narrow {
    width: min(980px, 96vw);
    max-height: min(88vh, 720px);
}

.order-summary-list.confirm-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

    .order-summary-list.confirm-list div {
        min-height: 76px;
        padding: 12px;
    }

    .order-summary-list.confirm-list dt {
        font-size: 13px;
        line-height: 1.2;
    }

    .order-summary-list.confirm-list dd {
        margin-top: 5px;
        font-size: 14px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

.bill-shell {
    max-width: 1280px;
}

.bill-tabs {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    border-bottom: 1px solid var(--line);
}

.bill-tabs a {
    padding: 10px 14px;
    color: #344054;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    font-weight: 800;
}

.bill-tabs a.is-active {
    color: var(--brand-dark);
    background: #eaf4ff;
    border-color: var(--line);
    border-bottom-color: #eaf4ff;
}

.bill-filter-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.bill-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bill-filter-grid.compact {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.bill-search-filter-form .bill-filter-grid.compact {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    align-items: end;
}

.bill-filter-grid label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #344054;
    font-weight: 800;
}

.bill-filter-grid input,
.bill-filter-grid select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
}

.bill-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
}

.bill-search-inline-action {
    display: grid;
    align-self: end;
}

.bill-search-inline-action .btn {
    width: 100%;
}

.bill-grid-wrap {
    min-height: 260px;
    background: #a9a9a9;
}

.bill-table {
    min-width: 1060px;
}

.bill-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.bill-history-heading {
    margin-top: 30px;
}

.order-action-modal {
    position: fixed;
    inset: 0;
    z-index: 125;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

    .order-action-modal.is-open {
        display: flex;
    }

.order-action-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 28, 0.62);
    backdrop-filter: blur(3px);
}

.order-action-dialog {
    position: relative;
    z-index: 1;
    width: min(860px, 96vw);
    max-height: min(86vh, 780px);
    overflow: auto;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.order-action-dialog-narrow {
    width: min(520px, 96vw);
}

.order-action-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

    .order-action-header h3 {
        margin: 4px 0;
        color: var(--ink);
        font-size: 20px;
        line-height: 1.15;
    }

.order-action-header small,
.muted-copy {
    color: var(--muted);
    font-weight: 700;
}

.field-hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.order-action-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

    .order-action-sections.one-column {
        grid-template-columns: 1fr;
    }

    .order-action-sections section {
        padding: 16px;
        background: #f8fafc;
        border: 1px solid var(--line);
        border-radius: 8px;
    }

.order-action-sections h4 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 18px;
}

.order-action-side-stack {
    display: grid;
    gap: 16px;
    align-content: start;
}

    .order-action-side-stack section {
        min-height: 0;
    }

@media (max-width: 760px) {
    .order-action-sections {
        grid-template-columns: 1fr;
    }
}

.admin-form {
    padding-right: 0;
    padding-left: 0;
}

.admin-validation {
    margin: 16px 0 0;
}

.admin-help-note {
    margin: 16px 0;
    padding: 12px 14px;
    color: #344054;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.admin-card-grid {
    margin-top: 22px;
}

    .admin-card-grid .service-card {
        position: relative;
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

        .admin-card-grid .service-card:hover,
        .admin-card-grid .service-card:focus-within {
            transform: translateY(-4px);
            background: linear-gradient(180deg, #fff, #f8fbff);
            border-color: rgba(15, 127, 213, 0.34);
            box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
        }

        .admin-card-grid .service-card:hover .table-action,
        .admin-card-grid .service-card:focus-within .table-action {
            color: #fff;
            background: var(--brand);
            box-shadow: 0 10px 22px rgba(15, 127, 213, 0.22);
        }

.inline-form {
    display: inline;
}

.dashboard-shell {
    display: grid;
    gap: 20px;
}

.dashboard-range {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.dashboard-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

    .dashboard-filter-row span {
        display: block;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .dashboard-filter-row strong {
        color: var(--ink);
        font-size: 18px;
    }

.dashboard-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

    .dashboard-filter-form select {
        min-width: 240px;
        min-height: 42px;
        padding: 9px 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--ink);
        font-weight: 700;
    }

.period-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    background: #f2f6fb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

    .period-tabs a {
        min-width: 76px;
        padding: 9px 12px;
        color: #344054;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 800;
        text-align: center;
        text-decoration: none;
    }

        .period-tabs a.is-active,
        .period-tabs a:hover {
            color: #fff;
            background: var(--brand);
        }

.dashboard-grid {
    display: grid;
    gap: 14px;
}

.dashboard-top-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-payment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-status-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dashboard-card {
    display: grid;
    gap: 8px;
    min-height: 128px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

    .dashboard-card span {
        color: var(--muted);
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .dashboard-card strong,
    .dashboard-metric-button {
        color: var(--ink);
        font-size: 28px;
        line-height: 1.1;
    }

.dashboard-metric-button,
.dashboard-metric-link {
    width: fit-content;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-weight: 800;
}

    .dashboard-metric-button:hover,
    .dashboard-metric-button:focus,
    .dashboard-metric-link:hover,
    .dashboard-metric-link:focus {
        color: var(--brand);
        text-decoration: underline;
    }

.dashboard-metric-link {
    color: var(--brand);
    font-size: 13px;
}

.dashboard-orders-dialog {
    width: min(1180px, 97vw);
}

.dashboard-orders-content {
    margin-top: 18px;
}

    .dashboard-orders-content .admin-table-wrap {
        max-height: 58vh;
        overflow: auto;
    }

.dashboard-popup-filter {
    margin-top: 0;
    margin-bottom: 14px;
}

.dashboard-order-summary-view {
    display: grid;
    gap: 16px;
}

.dashboard-summary-back {
    justify-self: start;
}

.dashboard-summary-header {
    padding: 0 0 14px;
    border-bottom: 1px solid var(--line);
}

    .dashboard-card small {
        color: #526071;
        font-weight: 700;
        line-height: 1.35;
    }

.dashboard-card-strong {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border-color: rgba(15, 127, 213, 0.28);
}

.payment-card {
    border-top: 4px solid var(--brand);
}

@media (max-width: 1180px) {
    .dashboard-top-grid,
    .dashboard-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dashboard-filter-row,
    .dashboard-filter-form {
        display: grid;
        justify-content: stretch;
    }

    .dashboard-filter-form select {
        min-width: 0;
        width: 100%;
    }

    .period-tabs,
    .period-tabs a {
        width: 100%;
    }

    .dashboard-top-grid,
    .dashboard-payment-grid,
    .dashboard-status-grid {
        grid-template-columns: 1fr;
    }
}

.danger-action {
    margin-left: 6px;
    color: #b42318;
    background: #fee4e2;
    border: 0;
    cursor: pointer;
}

.order-action-form {
    display: grid;
    gap: 6px;
    min-width: 150px;
    margin: 0 0 6px;
}

.order-action-form input,
.order-action-form select {
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 12px;
}

.office-field-label {
    display: grid;
    gap: 4px;
    margin: 0;
}

    .office-field-label span {
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
    }

.office-field-row {
    display: grid;
    gap: 6px;
}

@media (min-width: 900px) {
    .office-field-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.order-action-form .table-action {
    justify-content: center;
    border: 0;
    cursor: pointer;
}

.order-action-message {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
}

.order-action-message.is-success {
    color: #166534;
    background: #dcfce7;
}

.order-action-message.is-error {
    color: #991b1b;
    background: #fee2e2;
}

.office-amount-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 2px 0;
}

    .office-amount-summary div {
        padding: 8px 9px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 6px;
    }

    .office-amount-summary span {
        display: block;
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
    }

    .office-amount-summary strong {
        display: block;
        margin-top: 3px;
        color: var(--ink);
        font-size: 13px;
    }

.booking-header,
.booking-summary,
.tracking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

    .booking-header h2,
    .section-heading h2,
    .tracking h2 {
        font-size: clamp(26px, 4vw, 42px);
    }

.secure-badge {
    display: inline-flex;
    min-width: max-content;
    padding: 9px 12px;
    color: var(--success);
    background: #eaf8f2;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.mode-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 22px 0;
}

.mode-tab {
    min-height: 50px;
    color: #344054;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

    .mode-tab.active {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.field {
    position: relative;
    display: grid;
    gap: 8px;
}

    .field span {
        color: #344054;
        font-size: 13px;
        font-weight: 800;
    }

    .field .weight-control {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 0;
        color: inherit;
        font-size: inherit;
        font-weight: 400;
    }

    .field .date-control {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 52px;
        color: inherit;
        font-size: inherit;
        font-weight: 400;
    }

    .field input,
    .field select,
    .field textarea,
    .tracking-form input {
        width: 100%;
        min-height: 48px;
        padding: 12px 14px;
        color: var(--ink);
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        outline: 0;
    }

.weight-control input {
    border-radius: 8px 0 0 8px;
}

.weight-control select {
    border-left: 0;
    border-radius: 0 8px 8px 0;
}

.date-control input {
    min-width: 0;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
}

    .date-control input::-webkit-calendar-picker-indicator {
        opacity: 0;
    }

.date-picker-button {
    display: grid;
    min-height: 48px;
    place-items: center;
    color: var(--brand);
    background: #eef7ff;
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 18px;
}

.date-control:focus-within .date-picker-button {
    border-color: var(--brand);
    box-shadow: 4px 0 0 rgba(15, 127, 213, 0.12);
}

.calendar-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    width: min(328px, 100vw - 32px);
    padding: 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(31, 49, 79, 0.18);
}

    .calendar-popover[hidden] {
        display: none;
    }

.calendar-head,
.calendar-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

    .calendar-head strong {
        font-size: 15px;
    }

    .calendar-nav,
    .calendar-actions button,
    .calendar-day {
        border: 0;
        border-radius: 8px;
        cursor: pointer;
    }

.calendar-nav {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--brand-dark);
    background: #eaf4ff;
    font-size: 24px;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-weekdays {
    margin: 14px 0 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.calendar-day {
    display: grid;
    min-height: 36px;
    place-items: center;
    color: var(--ink);
    background: transparent;
    font-size: 14px;
}

    .calendar-day:hover {
        background: #eaf4ff;
    }

    .calendar-day.is-muted {
        color: #98a2b3;
    }

    .calendar-day.is-today {
        color: var(--brand-dark);
        box-shadow: inset 0 0 0 1px #b9dbff;
    }

    .calendar-day.is-selected {
        color: #fff;
        background: var(--brand);
        box-shadow: 0 8px 18px rgba(15, 127, 213, 0.26);
    }

.calendar-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

    .calendar-actions button {
        min-height: 34px;
        padding: 0 10px;
        color: var(--brand-dark);
        background: #eef7ff;
        font-weight: 800;
    }

.field textarea {
    resize: vertical;
}

    .field input:focus,
    .field select:focus,
    .field textarea:focus,
    .tracking-form input:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 4px rgba(15, 127, 213, 0.12);
    }

.field .input-error,
.field .input-error:focus {
    border-color: #c73232;
    box-shadow: 0 0 0 4px rgba(199, 50, 50, 0.12);
}

.field-validation-error,
.form-error,
.client-validation-error {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d92d20 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-family: "Inter", sans-serif !important;
    font-style: italic;
    letter-spacing: 0.2px;
    animation: softBlink 1.0s ease-in-out infinite;
}



/* Smooth professional blinking */
@keyframes softBlink {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(1.01);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.client-validation-error {
    display: block;
    margin-top: 2px;
}

.wide {
    margin-top: 14px;
}

.swap-field {
    display: grid;
    align-self: start;
    padding-top: 23px;
}

.swap-button {
    display: grid;
    width: 100%;
    min-height: 48px;
    place-items: center;
    color: var(--brand);
    background: #eef7ff;
    border: 1px solid #cfe9ff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 22px;
}

.booking-summary {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

    .booking-summary strong {
        display: block;
        font-size: 28px;
    }

.consignee-select-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 8px;
}

.add-consignee-button {
    display: grid;
    min-height: 48px;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 8px;
    font-size: 26px;
    font-weight: 900;
    cursor: pointer;
}

.add-consignee-button[hidden],
.account-credential-field[hidden],
.consignee-empty-hint[hidden] {
    display: none !important;
}

.consignee-empty-hint {
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
}

.search-results {
    display: none;
    margin-top: 24px;
    padding: 22px;
    background: #f1f4f8;
    border: 1px solid #e4eaf2;
    border-radius: 8px;
}

    .search-results.is-visible {
        display: block;
    }

.results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

    .results-heading h3 {
        margin: 0;
        font-size: 22px;
        line-height: 1.2;
    }

.results-count {
    min-width: max-content;
    padding: 8px 12px;
    color: var(--brand-dark);
    background: #eaf4ff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.result-list {
    display: grid;
    gap: 12px;
}

.result-card {
    display: grid;
    grid-template-columns: minmax(210px, 1.2fr) minmax(130px, 0.8fr) minmax(220px, 1fr) minmax(210px, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 86px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(31, 49, 79, 0.06);
}

.result-train h4 {
    margin: 0 0 8px;
    color: #222831;
    font-size: 18px;
    line-height: 1.2;
}

.result-train span {
    color: #303846;
    font-size: 14px;
}

.result-route {
    color: #101828;
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
}

.result-price {
    color: #1268ff;
    font-size: 15px;
    line-height: 1.35;
    text-align: right;
}

    .result-price small {
        display: block;
        margin-top: 3px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
    }

.book-result {
    min-height: 36px;
    padding: 0 16px;
    color: #fff;
    background: #12805c;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

    .book-result:hover {
        background: #0f6c4e;
    }

.result-card-muted {
    opacity: 0.78;
}

.book-result:disabled {
    cursor: not-allowed;
    background: #98a2b3;
}

.order-preview {
    margin-top: 18px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(31, 49, 79, 0.08);
}

.order-preview[hidden] {
    display: none;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.preview-grid div {
    padding: 12px;
    background: #f7f9fc;
    border: 1px solid #e7edf5;
    border-radius: 8px;
}

.preview-grid dt,
.preview-grid dd {
    margin: 0;
}

.preview-grid dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.preview-grid dd {
    margin-top: 4px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.preview-edit-field input {
    width: 100%;
    min-height: 36px;
    padding: 7px 9px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    font-weight: 800;
}

.tracking-shell {
    max-width: 1260px;
}

.tracking-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
    align-items: center;
    gap: 24px;
    margin-top: 18px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.tracking-hero-main {
    text-align: left;
}

.tracking-payment-summary {
    display: grid;
    justify-items: start;
    gap: 5px;
    min-width: 170px;
    padding: 12px 14px;
    color: var(--ink);
    text-align: left;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

    .tracking-payment-summary span,
    .tracking-payment-summary small {
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
    }

    .tracking-payment-summary strong {
        font-size: 22px;
        line-height: 1.1;
    }

.tracking-number {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.tracking-hero h3 {
    margin: 8px 0;
    font-size: 28px;
}

.tracking-hero p {
    margin: 0;
    color: #344054;
    font-size: 17px;
}

.tracking-booked-time {
    display: inline-block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.tracking-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 26px 0;
    padding: 0 16px;
}

.tracking-progress-six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tracking-progress::before {
    content: "";
    position: absolute;
    top: 17px;
    right: 12%;
    left: 12%;
    height: 4px;
    background: #d0d5dd;
}

.tracking-progress-six::before {
    right: 8.33%;
    left: 8.33%;
}

.tracking-progress::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 12%;
    width: var(--progress);
    max-width: 76%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), #43a5ff);
    transform: scaleX(0);
    transform-origin: left center;
    animation: trackingDraw 2.8s ease-out forwards;
}

.tracking-progress-six::after {
    left: 8.33%;
    max-width: 83.34%;
}

@keyframes trackingDraw {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.tracking-step {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #475467;
    text-align: center;
}

.tracking-dot {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: transparent;
    background: #fff;
    border: 3px solid #98a2b3;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 900;
}

.tracking-step.is-done .tracking-dot {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.tracking-step:not(:first-child).is-done .tracking-dot {
    color: transparent;
    background: #fff;
    border-color: #98a2b3;
    animation: trackingDotComplete 0.28s ease-out var(--step-delay, 0s) forwards;
}

@keyframes trackingDotComplete {
    from {
        color: transparent;
        background: #fff;
        border-color: #98a2b3;
        transform: scale(0.86);
    }

    to {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
        transform: scale(1);
    }
}

.tracking-step.is-current .tracking-dot {
    color: transparent;
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 6px rgba(15, 127, 213, 0.16);
    animation: trackingPulse 1.4s ease-in-out infinite;
}

.tracking-step.is-cancelled .tracking-dot {
    color: #fff;
    background: #d92d20;
    border-color: #d92d20;
}

@keyframes trackingPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 127, 213, 0.32);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(15, 127, 213, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(15, 127, 213, 0);
    }
}

.tracking-step strong {
    color: var(--ink);
    font-size: 14px;
}

.tracking-step small {
    min-height: 16px;
    color: var(--muted);
    font-size: 12px;
}

.tracking-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tracking-detail-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.tracking-detail-card h4 {
    margin: 10px 0 6px;
    font-size: 18px;
}

.tracking-detail-card p {
    margin: 0;
    color: #344054;
}

.tracking-detail-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.tracking-detail-card dt,
.tracking-detail-card dd {
    margin: 0;
}

.tracking-detail-card dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.tracking-detail-card dd {
    margin-top: 4px;
    font-weight: 800;
}

.services {
    padding: 34px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 22px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.service-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-bottom: 14px;
    background: #eef7ff;
    border-radius: 8px;
    font-size: 22px;
}

.service-card h3 {
    margin: 0 0 8px;
}

.service-card p,
.tracking p,
.confirmation p {
    color: var(--muted);
    line-height: 1.6;
}

.tracking {
    padding: clamp(22px, 4vw, 34px);
    background: #172033;
    color: #fff;
    border-radius: 8px;
}

.tracking-form {
    display: flex;
    gap: 10px;
    width: min(520px, 100%);
}

.confirmation {
    max-width: 760px;
    padding: clamp(24px, 5vw, 48px);
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.success-mark {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 14px;
    color: #fff;
    background: var(--success);
    border-radius: 50%;
    font-size: 32px;
    font-weight: 800;
}

.confirm-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
    text-align: left;
}

    .confirm-list div {
        padding: 14px;
        background: var(--soft);
        border-radius: 8px;
    }

    .confirm-list dt,
    .confirm-list dd {
        margin: 0;
    }

.confirm-list dd {
    margin-top: 4px;
    font-weight: 800;
}

.profile-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-list div {
    padding: 12px;
}

.profile-list dd {
    overflow-wrap: anywhere;
}

.profile-wide {
    grid-column: 1 / -1;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 30px clamp(16px, 4vw, 64px);
    color: #d0d8e7;
    background: #101828;
}

    .site-footer p {
        margin: 6px 0 0;
        color: #98a2b3;
    }

.footer-grid {
    display: grid;
    gap: 8px;
    text-align: right;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .form-grid,
    .account-grid,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .swap-field {
        order: 3;
    }
}

@media (max-width: 740px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 74px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

        .main-nav.open {
            display: flex;
        }

        .main-nav a {
            text-align: center;
            justify-content: center;
        }

    .nav-menu,
    .nav-menu-button {
        width: 100%;
    }

    .nav-menu-button {
        justify-content: center;
    }

    .nav-menu-panel {
        position: static;
        display: none;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
    }

    .nav-menu:hover .nav-menu-panel,
    .nav-menu.is-open .nav-menu-panel {
        display: grid;
    }

    .nav-menu-panel a {
        justify-content: center;
    }

    .login-panel {
        padding: 68px 22px 34px;
    }

    .login-role-primary,
    .login-create {
        width: 100%;
    }

    .login-role-row {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 44px;
    }

    .mode-tabs,
    .form-grid,
    .account-grid,
    .service-grid,
    .preview-grid,
    .route-stats,
    .confirm-list {
        grid-template-columns: 1fr;
    }

    .account-wide {
        grid-column: auto;
    }

    .account-actions {
        flex-direction: column;
    }

    .profile-list {
        grid-template-columns: 1fr;
    }

    .swap-field {
        justify-self: center;
        padding-top: 0;
    }

    .swap-button {
        width: 48px;
        min-height: 48px;
        margin-bottom: 0;
        transform: rotate(90deg);
    }

    .route-stats div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .booking-header,
    .booking-summary,
    .results-heading,
    .tracking,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .result-card {
        grid-template-columns: 1fr;
        align-items: stretch;
        min-height: 0;
    }

    .tracking-progress {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0;
    }

    .tracking-progress::before {
        top: 18px;
        bottom: 18px;
        left: 18px;
        width: 4px;
        height: auto;
    }

    .tracking-progress::after {
        top: 18px;
        bottom: auto;
        left: 18px;
        width: 4px;
        height: var(--progress);
        max-height: calc(100% - 36px);
        transform-origin: center top;
        animation-name: trackingDrawVertical;
    }

    @keyframes trackingDrawVertical {
        from {
            transform: scaleY(0);
        }

        to {
            transform: scaleY(1);
        }
    }

    .tracking-step {
        grid-template-columns: 36px minmax(0, 1fr);
        justify-items: start;
        text-align: left;
    }

    .tracking-step small {
        grid-column: 2;
    }

    .tracking-detail-grid,
    .tracking-detail-card dl {
        grid-template-columns: 1fr;
    }

    .result-route,
    .result-price {
        text-align: left;
    }

    .book-result {
        width: 100%;
    }

    .tracking-form {
        flex-direction: column;
    }

    .tracking-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tracking-payment-summary {
        justify-items: center;
        text-align: center;
    }

    .admin-grid-filter {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .admin-grid-filter label {
        width: 100%;
    }

    .admin-grid-filter strong {
        align-self: flex-start;
    }

    .bill-shell {
        padding: 28px 18px;
        overflow: hidden;
    }

    .bill-shell .booking-header {
        gap: 12px;
    }

    .bill-shell .booking-header h2 {
        font-size: 36px;
        line-height: 1.08;
    }

    .bill-shell .booking-header .btn {
        width: 100%;
    }

    .bill-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    .bill-filter-form {
        padding: 14px;
    }

    .bill-filter-grid,
    .bill-filter-grid.compact,
    .bill-search-filter-form .bill-filter-grid.compact {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bill-filter-grid label {
        min-width: 0;
    }

    .bill-filter-grid input,
    .bill-filter-grid select {
        min-width: 0;
        font-size: 16px;
    }

    .bill-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bill-actions .btn,
    .bill-search-inline-action .btn {
        width: 100%;
    }

    .bill-grid-wrap {
        min-height: 0;
        background: transparent;
    }

    .bill-shell .admin-table-wrap {
        overflow: visible;
    }

    .bill-shell .admin-table,
    .bill-shell .admin-table thead,
    .bill-shell .admin-table tbody,
    .bill-shell .admin-table tr,
    .bill-shell .admin-table th,
    .bill-shell .admin-table td {
        display: block;
    }

    .bill-shell .admin-table {
        min-width: 0;
    }

    .bill-shell .admin-table thead {
        display: none;
    }

    .bill-shell .admin-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
        background: #f7f9fc;
    }

    .bill-shell .admin-table tr {
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
    }

    .bill-shell .admin-table td {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid var(--line);
        overflow-wrap: anywhere;
    }

    .bill-shell .admin-table td:last-child {
        border-bottom: 0;
    }

    .bill-shell .admin-table td::before {
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
    }

    .bill-shell .admin-table td[colspan] {
        display: block;
        border-bottom: 0;
    }

    .bill-shell .admin-table td[colspan]::before {
        content: none;
    }

    .bill-table td:nth-child(1)::before {
        content: "Select";
    }

    .bill-table td:nth-child(2)::before {
        content: "Date";
    }

    .bill-table td:nth-child(3)::before {
        content: "AWB";
    }

    .bill-table td:nth-child(4)::before {
        content: "Consignee";
    }

    .bill-table td:nth-child(5)::before {
        content: "Destination";
    }

    .bill-table td:nth-child(6)::before {
        content: "Pieces";
    }

    .bill-table td:nth-child(7)::before {
        content: "Weight";
    }

    .bill-table td:nth-child(8)::before {
        content: "Amount";
    }

    .bill-table td:nth-child(9)::before {
        content: "Consignor";
    }

    .bill-shell .admin-table:not(.bill-table) td:nth-child(1)::before {
        content: "Bill";
    }

    .bill-shell .admin-table:not(.bill-table) td:nth-child(2)::before {
        content: "Mode";
    }

    .bill-shell .admin-table:not(.bill-table) td:nth-child(3)::before {
        content: "Branch";
    }

    .bill-shell .admin-table:not(.bill-table) td:nth-child(4)::before {
        content: "Party";
    }

    .bill-shell .admin-table:not(.bill-table) td:nth-child(5)::before {
        content: "AWB";
    }

    .bill-shell .admin-table:not(.bill-table) td:nth-child(6)::before {
        content: "Amount";
    }

    .bill-shell .admin-table:not(.bill-table) td:nth-child(7)::before {
        content: "Print";
    }

    .user-management-table,
    .user-management-table thead,
    .user-management-table tbody,
    .user-management-table tr,
    .user-management-table th,
    .user-management-table td {
        display: block;
    }

    .user-management-table {
        min-width: 0;
    }

    .user-management-table colgroup,
    .user-management-table thead {
        display: none;
    }

    .user-management-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
        background: #f7f9fc;
    }

    .user-management-table tr {
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
    }

    .user-management-table td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid var(--line);
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .user-management-table td::before {
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
    }

    .user-management-table td:nth-child(1)::before {
        content: "Username";
    }

    .user-management-table td:nth-child(2)::before {
        content: "Type";
    }

    .user-management-table td:nth-child(3)::before {
        content: "Name";
    }

    .user-management-table td:nth-child(4)::before {
        content: "Mobile";
    }

    .user-management-table td:nth-child(5)::before {
        content: "Email";
    }

    .user-management-table td:nth-child(6)::before {
        content: "Status";
    }

    .user-management-table td:nth-child(7)::before {
        content: "";
    }

    .user-management-table td:last-child {
        display: flex;
        justify-content: flex-end;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .user-management-table .status-pill {
        min-width: 104px;
        justify-self: start;
    }

    .user-management-table .table-action {
        width: auto;
        min-width: 88px;
    }

    .order-summary-modal .order-action-dialog-narrow {
        width: min(640px, 96vw);
    }

    .order-summary-list.confirm-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        text-align: left;
    }
}

@media (max-width: 440px) {
    .brand small {
        display: none;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-actions .btn,
    .booking-summary .btn {
        width: 100%;
    }

    .booking-shell,
    .services,
    .tracking,
    .confirmation {
        width: min(100% - 20px, 1160px);
    }

    .order-summary-list.confirm-list {
        grid-template-columns: 1fr;
    }
}

.calendar-day.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f2f4f7;
    color: #98a2b3;
    text-decoration: line-through;
}

    .calendar-day.is-disabled:hover {
        background: #f2f4f7;
    }
