/* Driver POD pages: large touch targets, readable outdoors */
:root {
    --pod-bg: #f2f4f7;
    --pod-card: #ffffff;
    --pod-text: #1b2430;
    --pod-muted: #667085;
    --pod-border: #d0d5dd;
    --pod-primary: #008e57;      /* Century Logistics green */
    --pod-primary-dark: #006b41;
    --brand-orange: #ee7700;     /* Century Logistics orange */
    --pod-success: #1e7a46;
    --pod-danger: #b42318;
    --pod-radius: 12px;
}

html, body { margin: 0; padding: 0; }
a { color: var(--pod-primary); }

.pod-shell {
    min-height: 100vh;
    background: var(--pod-bg);
    color: var(--pod-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang HK", sans-serif;
    font-size: 17px;
}

.pod-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    background: var(--pod-primary);
    color: #fff;
}

.pod-header__title { font-weight: 600; }
.pod-header__logout { display: flex; align-items: center; gap: 10px; margin: 0; }
.pod-header__user { font-size: 15px; opacity: 0.9; }
.pod-header .pod-link-button { color: #fff; }

.pod-main {
    max-width: 560px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.pod-card {
    background: var(--pod-card);
    border-radius: var(--pod-radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.pod-card h1, .pod-card h2 { margin: 0 0 12px; font-size: 20px; }
.pod-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pod-card__head h2 { margin: 0; }

.pod-field { display: block; margin-bottom: 14px; }
.pod-field span { display: block; margin-bottom: 6px; font-size: 15px; color: var(--pod-muted); }
.pod-field input, .pod-field select, .pod-manual input {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 17px;
    border: 1px solid var(--pod-border);
    border-radius: 10px;
    background: #fff;
}

.pod-manual { display: flex; gap: 8px; margin-top: 12px; }
.pod-manual input { flex: 1; text-transform: uppercase; }

.pod-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 10px 16px;
    font-size: 17px;
    font-weight: 600;
    border: 1px solid var(--pod-border);
    border-radius: 10px;
    background: #fff;
    color: var(--pod-text);
    cursor: pointer;
    box-sizing: border-box;
}

.pod-button--block { display: flex; width: 100%; margin-bottom: 12px; }
.pod-button--primary { background: var(--pod-primary); border-color: var(--pod-primary); color: #fff; }
.pod-button--success { background: var(--pod-success); border-color: var(--pod-success); color: #fff; }
.pod-button--danger { background: var(--pod-danger); border-color: var(--pod-danger); color: #fff; }
.pod-button:disabled, .pod-button--disabled { opacity: 0.5; pointer-events: none; }

.pod-link-button {
    background: none;
    border: none;
    padding: 6px 0;
    font-size: 16px;
    color: var(--pod-primary);
    text-decoration: underline;
    cursor: pointer;
}

.pod-back { margin-top: 4px; }
.pod-hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.pod-message { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; font-size: 16px; }
.pod-message--error { background: #fef3f2; color: var(--pod-danger); border: 1px solid #fecdca; }
.pod-message--ok { background: #ecfdf3; color: var(--pod-success); border: 1px solid #abefc6; }
.pod-muted { color: var(--pod-muted); }

.pod-list { list-style: none; margin: 0; padding: 0; }
.pod-list li + li { border-top: 1px solid #eaecf0; }
.pod-list__item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.pod-list__no { font-weight: 600; }
.pod-list__sub { grid-column: 1 / -1; font-size: 15px; color: var(--pod-muted); }

.pod-status { font-size: 14px; padding: 2px 10px; border-radius: 999px; white-space: nowrap; align-self: start; }
.pod-status--pending { background: #f2f4f7; color: #344054; }
.pod-status--outfordelivery { background: #eff8ff; color: #175cd3; }
.pod-status--delivered { background: #ecfdf3; color: var(--pod-success); }
.pod-status--failed { background: #fef3f2; color: var(--pod-danger); }

.pod-detail { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 14px; }
.pod-detail dt { color: var(--pod-muted); }
.pod-detail dd { margin: 0; word-break: break-word; }

.pod-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pod-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }

.pod-scanner__view { width: 100%; border-radius: 10px; overflow: hidden; margin-bottom: 12px; background: #000; }
.pod-fail { border-top: 1px solid #eaecf0; padding-top: 12px; margin-top: 4px; }

.pod-busy {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(16, 24, 40, 0.85);
    color: #fff;
    font-size: 15px;
}

.pod-login { margin-top: 24px; }
.pod-login input[name="driverCode"] { text-transform: uppercase; }

/* ---------- Office layout (side menu) ---------- */
.office-shell {
    --office-nav-width: 232px;
    --office-topbar-height: 52px;
    min-height: 100vh;
    background: #f5f6f8;
    color: var(--pod-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang HK", sans-serif;
}
.office-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.office-topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 30;
    height: var(--office-topbar-height);
    display: flex; align-items: center; gap: 12px;
    padding: 0 16px; background: var(--pod-primary); color: #fff;
}
.office-topbar__menu { display: none; font-size: 22px; cursor: pointer; padding: 4px 8px; user-select: none; }
.office-topbar__brand { color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; margin-right: auto; }
.office-topbar__user { font-size: 14px; opacity: 0.9; }
.office-topbar__logout { color: #fff; font-size: 14px; }

.office-nav {
    position: fixed; top: var(--office-topbar-height); bottom: 0; left: 0; z-index: 20;
    width: var(--office-nav-width); overflow-y: auto;
    background: #fff; border-right: 1px solid #e4e7ec; padding: 8px 0 24px;
}
.office-nav__section {
    padding: 14px 18px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
    color: var(--pod-muted); text-transform: uppercase;
}
.office-nav__link {
    display: flex; align-items: center; gap: 10px;
    margin: 1px 8px; padding: 9px 10px; border-radius: 8px;
    color: var(--pod-text); text-decoration: none; font-size: 15px;
}
.office-nav__link:hover { background: #f2f4f7; }
.office-nav__link.active { background: #e8eef7; color: var(--pod-primary); font-weight: 600; }
.office-nav__icon { width: 22px; text-align: center; }
.office-nav-backdrop { display: none; }

.office-main {
    margin-left: var(--office-nav-width);
    padding: calc(var(--office-topbar-height) + 16px) 24px 24px;
}
.office-main h1 { font-size: 22px; margin: 0 0 12px; }
.office-page-title { margin-bottom: 4px !important; }
.office-section-title { font-size: 17px; margin: 24px 0 10px; }

/* Home page */
.office-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.office-stat {
    display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
    background: #fff; border-radius: 12px; border: 1px solid #e4e7ec;
    text-decoration: none; color: var(--pod-text);
}
.office-stat:hover { border-color: var(--pod-primary); }
.office-stat__label { font-size: 13px; color: var(--pod-muted); }
.office-stat__value { font-size: 28px; font-weight: 700; }
.office-stat--pending .office-stat__value { color: #344054; }
.office-stat--out .office-stat__value { color: #175cd3; }
.office-stat--done .office-stat__value { color: var(--pod-success); }
.office-stat--failed .office-stat__value { color: var(--pod-danger); }
.office-stat--warn .office-stat__value { color: #b54708; }
.office-overdue { margin: 0; padding-left: 18px; line-height: 1.8; }

.office-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.office-tile {
    display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px;
    padding: 16px; background: #fff; border-radius: 12px; border: 1px solid #e4e7ec;
    text-decoration: none; color: var(--pod-text);
}
.office-tile:hover { border-color: var(--pod-primary); box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08); }
.office-tile__icon { grid-row: 1 / 3; font-size: 26px; align-self: center; }
.office-tile__title { font-weight: 600; }
.office-tile__desc { font-size: 13px; color: var(--pod-muted); }

/* Phone / narrow window: menu slides in from the left */
@media (max-width: 900px) {
    .office-topbar__menu { display: inline-block; }
    .office-nav { transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15); }
    .office-nav-toggle:checked ~ .office-nav { transform: translateX(0); }
    .office-nav-toggle:checked ~ .office-nav-backdrop {
        display: block; position: fixed; inset: var(--office-topbar-height) 0 0 0; z-index: 15; background: rgba(0, 0, 0, 0.3);
    }
    .office-main { margin-left: 0; padding: calc(var(--office-topbar-height) + 12px) 12px 16px; }
    .office-topbar__user { display: none; }
}

/* Admin page photo preview */
.pod-admin-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.pod-admin-thumbs img { width: 160px; height: 160px; object-fit: cover; border-radius: 6px; }
.pod-admin-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.pod-admin-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }

/* Office manual entry window */
.pod-entry-sub { margin: 0 0 12px; color: #667085; }
.pod-entry-grid { display: grid; grid-template-columns: 90px 1fr; gap: 10px 12px; align-items: center; margin-bottom: 16px; }
.pod-entry-hint { font-size: 13px; color: #667085; margin-top: 4px; }
.pod-entry-photos { border-top: 1px solid #eaecf0; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pod-entry-files { margin: 0; padding-left: 18px; }
.pod-entry-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.pod-pre, .portal-table__pre { white-space: pre-line; }
.pod-import-bar { display: flex; align-items: center; gap: 16px; margin: 12px 0; }
.pod-import-warnings { margin: 8px 0; }

/* ---------- Customer portal ---------- */
.portal-shell {
    min-height: 100vh;
    background: var(--pod-bg);
    color: var(--pod-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang HK", sans-serif;
    font-size: 15px;
}
.portal-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; background: var(--pod-primary); color: #fff;
}
.portal-header__title { font-weight: 600; font-size: 17px; }
.portal-header__logout { display: flex; align-items: center; gap: 10px; margin: 0; }
.portal-header__user { font-size: 14px; opacity: 0.9; }
.portal-header .pod-link-button { color: #fff; }
.portal-main { padding: 16px; max-width: 1600px; margin: 0 auto; }
.portal-login { max-width: 420px; margin: 32px auto; }

.portal-filters {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
    background: var(--pod-card); border-radius: var(--pod-radius); padding: 12px 16px; margin-bottom: 12px;
}
.portal-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--pod-muted); }
.portal-filters input, .portal-filters select {
    min-height: 40px; padding: 6px 10px; font-size: 15px;
    border: 1px solid var(--pod-border); border-radius: 8px; background: #fff; color: var(--pod-text);
}
.portal-filters .pod-button { min-height: 40px; text-decoration: none; }

.portal-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }

.portal-table-wrap { overflow-x: auto; background: var(--pod-card); border-radius: var(--pod-radius); }
.portal-table { border-collapse: collapse; width: 100%; min-width: 1400px; }
.portal-table th, .portal-table td { padding: 8px 10px; border-bottom: 1px solid #eaecf0; text-align: left; vertical-align: top; }
.portal-table th { position: sticky; top: 0; background: #f9fafb; font-weight: 600; white-space: nowrap; }
.portal-table__order { font-weight: 600; white-space: nowrap; }
.portal-table__num { text-align: right; }
.portal-table__store { min-width: 140px; }
.portal-table__wide { min-width: 220px; }
.portal-table__note { font-size: 13px; color: var(--pod-danger); margin-top: 4px; }
.portal-thumbs { display: flex; gap: 4px; }
.portal-thumbs img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; display: block; }

/* Phone: each delivery becomes a card */
@media (max-width: 760px) {
    .portal-main { padding: 12px; }
    .portal-table-wrap { background: none; }
    .portal-table { min-width: 0; }
    .portal-table thead { display: none; }
    .portal-table, .portal-table tbody, .portal-table tr, .portal-table td { display: block; width: 100%; box-sizing: border-box; }
    .portal-table tr { background: var(--pod-card); border-radius: var(--pod-radius); margin-bottom: 10px; padding: 8px 0; }
    .portal-table td { border: none; padding: 4px 14px; display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
    .portal-table td::before { content: attr(data-label); color: var(--pod-muted); font-size: 13px; }
    .portal-table td:empty { display: none; }
    .portal-table__wide, .portal-table__store { min-width: 0; }
    .portal-thumbs img { width: 72px; height: 72px; }
}

/* ---------- Topbar extras ---------- */
.office-topbar__role { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 12px; }
.office-topbar__link { color: #fff; font-size: 14px; text-decoration: underline; }
.office-topbar__logout { margin: 0; }
.office-topbar__button { background: none; border: none; padding: 0; cursor: pointer; font: inherit; }
.office-form-card { max-width: 460px; }

/* ---------- Office sign-in / setup pages ---------- */
.auth-shell {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center;
    padding: 48px 16px 24px; box-sizing: border-box;
    background: #f3f6f4;
    border-top: 6px solid var(--brand-orange);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang HK", sans-serif;
    color: var(--pod-text);
}
.auth-brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 24px; }
.auth-brand__logo { font-size: 30px; }
.auth-brand__name { font-size: 22px; font-weight: 700; }
.auth-main { width: 100%; max-width: 400px; }
.auth-card { background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12); }
.auth-card h1 { font-size: 20px; margin: 0 0 16px; }
.auth-note { font-size: 14px; color: var(--pod-muted); margin: 14px 0 0; text-align: center; }
.auth-footer { margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--pod-muted); text-align: center; }

/* ---------- Customer portal: header, login, detail ---------- */
.portal-header__title { color: #fff; text-decoration: none; }
.portal-header__account { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.portal-header__link { color: #fff; font-size: 14px; }
.portal-header__logout { margin: 0; }
.portal-header .pod-link-button { color: #fff; }

.portal-login-wrap {
    display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: center;
    max-width: 920px; margin: 40px auto;
}
.portal-login-intro h1 { font-size: 28px; margin: 0 0 12px; color: var(--pod-primary); }
.portal-login-intro p { color: var(--pod-muted); }
.portal-login-intro ul { list-style: none; padding: 0; margin: 16px 0 0; line-height: 2.1; font-size: 16px; }
.portal-login-wrap .portal-login { margin: 0; max-width: none; }
.portal-login h2 { margin: 0 0 16px; font-size: 20px; }

.portal-back { color: var(--pod-primary); }
.portal-table__order a { color: var(--pod-primary); }

.portal-detail__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.portal-detail__head h1 { margin: 0; font-size: 26px; }
.portal-detail__status { font-size: 15px; padding: 4px 14px; }
.portal-detail__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.portal-detail h2, .pod-card > h2 { font-size: 17px; margin: 8px 0 12px; }

.portal-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid #e4e7ec; }
.portal-timeline__item { position: relative; display: flex; flex-direction: column; padding: 0 0 18px 12px; color: var(--pod-muted); }
.portal-timeline__item::before {
    content: ""; position: absolute; left: -31px; top: 3px; width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 2px solid #d0d5dd;
}
.portal-timeline__item--done { color: var(--pod-text); }
.portal-timeline__item--done::before { background: var(--pod-success); border-color: var(--pod-success); }
.portal-timeline__item--failed { color: var(--pod-danger); }
.portal-timeline__item--failed::before { background: var(--pod-danger); border-color: var(--pod-danger); }
.portal-timeline__title { font-weight: 600; }
.portal-timeline__time { font-size: 14px; }
.portal-timeline__note { font-size: 14px; margin-top: 2px; }

.portal-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.portal-photos figure { margin: 0; }
.portal-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.portal-photos figcaption { font-size: 13px; color: var(--pod-muted); margin-top: 4px; }

@media (max-width: 760px) {
    .portal-login-wrap { grid-template-columns: 1fr; margin: 16px auto; gap: 16px; }
    .portal-login-intro ul { display: none; }
    .portal-detail__grid { grid-template-columns: 1fr; }
    .portal-header { flex-wrap: wrap; }
}

/* ---------- Driver login ---------- */
.pod-login-hero { text-align: center; padding: 24px 0 8px; }
.pod-login-hero__icon { font-size: 44px; }
.pod-login-hero__title { font-size: 24px; font-weight: 700; color: var(--pod-primary); }
.pod-login-hero__sub { color: var(--pod-muted); margin-top: 4px; }
.pod-login { margin-top: 12px; }
.pod-login__hint { font-size: 14px; margin: 10px 0 0; text-align: center; }

/* ---------- Blazor reconnect prompt ---------- */
.reconnect-modal { display: none; }
.reconnect-modal.components-reconnect-show,
.reconnect-modal.components-reconnect-failed,
.reconnect-modal.components-reconnect-rejected {
    display: flex; position: fixed; inset: 0; z-index: 1000;
    align-items: center; justify-content: center; background: rgba(16, 24, 40, 0.45);
}
.reconnect-modal__box {
    background: #fff; border-radius: 14px; padding: 24px; width: min(320px, 86vw); text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang HK", sans-serif;
}
.reconnect-modal__box p { margin: 0 0 12px; font-size: 16px; }
.reconnect-modal__hint { font-size: 14px !important; color: #667085; }
.reconnect-modal__show, .reconnect-modal__failed, .reconnect-modal__rejected { display: none; }
.components-reconnect-show .reconnect-modal__show,
.components-reconnect-failed .reconnect-modal__failed,
.components-reconnect-rejected .reconnect-modal__rejected { display: block; }
.reconnect-modal__spinner {
    width: 32px; height: 32px; margin: 0 auto 12px; border-radius: 50%;
    border: 3px solid #e4e7ec; border-top-color: #008e57; animation: reconnect-spin 0.9s linear infinite;
}
@keyframes reconnect-spin { to { transform: rotate(360deg); } }

/* ---------- Start page (3 big buttons) ---------- */
.landing-shell {
    min-height: 100vh; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 32px 16px;
    background: #f3f6f4;
    border-top: 8px solid var(--brand-orange);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang HK", sans-serif;
    color: #1b2430;
}
.landing-header { text-align: center; margin-bottom: 36px; }
.landing-header__logo { display: block; width: min(520px, 90vw); height: auto; margin: 0 auto; }
.landing-header__title {
    margin: 18px 0 4px; font-size: 26px; font-weight: 700; color: var(--pod-primary);
    letter-spacing: 0.08em;
}
.landing-header__sub { margin: 0; font-size: 16px; color: #667085; }

.landing-buttons {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    width: 100%; max-width: 960px;
}
.landing-button {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    min-height: 250px; padding: 28px 20px; box-sizing: border-box;
    background: #fff; border-radius: 18px; border: 3px solid transparent;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.10);
    text-decoration: none; color: inherit; text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
/* Coloured strip at the top of each button */
.landing-button::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--btn-color); }
.landing-button:hover, .landing-button:focus-visible {
    transform: translateY(-4px); box-shadow: 0 14px 32px rgba(16, 24, 40, 0.16);
    border-color: var(--btn-color); outline: none;
}
.landing-button:active { transform: translateY(0); }
.landing-button__icon { font-size: 60px; line-height: 1; }
.landing-button__title { font-size: 34px; font-weight: 800; letter-spacing: 0.1em; color: var(--btn-color); }
.landing-button__desc { font-size: 15px; color: #667085; }

.landing-button--driver { --btn-color: #ee7700; }
.landing-button--customer { --btn-color: #008e57; }
.landing-button--office { --btn-color: #34495e; }

.landing-footer { margin-top: 32px; font-size: 13px; color: #667085; }

/* Phone: stack the buttons */
@media (max-width: 760px) {
    .landing-shell { justify-content: flex-start; padding-top: 24px; }
    .landing-header { margin-bottom: 20px; }
    .landing-header__title { font-size: 21px; margin-top: 12px; }
    .landing-buttons { grid-template-columns: 1fr; gap: 14px; }
    .landing-button {
        min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left;
        padding: 22px 20px 20px 24px; gap: 16px; border-radius: 16px;
    }
    .landing-button::before { top: 0; bottom: 0; right: auto; width: 8px; height: auto; }
    .landing-button__icon { font-size: 42px; }
    .landing-button__title { font-size: 26px; min-width: 64px; }
    .landing-button__desc { font-size: 14px; }
}

/* ---------- Logo on login pages ---------- */
.brand-logo { display: block; height: auto; max-width: 100%; }
.auth-brand .brand-logo { width: 340px; }
.portal-login-intro .brand-logo { width: 360px; margin-bottom: 20px; }
.pod-login-hero .brand-logo { width: min(300px, 80vw); margin: 0 auto 12px; }

/* Driver: jobs not yet taken */
.pod-filter {
    width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; margin-bottom: 8px;
    font-size: 16px; border: 1px solid var(--pod-border); border-radius: 10px;
}
.pod-list__row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.pod-list__info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pod-claim { min-height: 44px; padding: 8px 16px; flex-shrink: 0; }
.pod-overdue { color: var(--pod-danger); }

/* Office dispatch bar above the delivery grid */
.pod-dispatch-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 10px 12px; margin-bottom: 10px;
    background: #fff; border: 1px solid #e4e7ec; border-left: 4px solid var(--brand-orange); border-radius: 10px;
}
.pod-dispatch-bar__hint { font-size: 13px; }

/* ---------- Login page switcher (bottom of each login page) ---------- */
.login-switcher {
    max-width: 560px; margin: 24px auto 8px; padding: 0 16px; box-sizing: border-box;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang HK", sans-serif;
}
.login-switcher__label { font-size: 14px; color: #667085; margin-bottom: 10px; }
.login-switcher__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.login-switcher__button {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 10px 14px; box-sizing: border-box;
    background: #fff; border: 2px solid var(--btn-color); border-radius: 12px;
    color: var(--btn-color); font-size: 16px; font-weight: 700; text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.login-switcher__button:hover, .login-switcher__button:focus-visible { background: var(--btn-color); color: #fff; outline: none; }
.login-switcher__icon { font-size: 20px; }
.login-switcher__button--driver { --btn-color: #ee7700; }
.login-switcher__button--customer { --btn-color: #008e57; }
.login-switcher__button--office { --btn-color: #34495e; }
.login-switcher__home { display: inline-block; margin-top: 14px; font-size: 14px; color: #667085; }
.portal-main .login-switcher { margin-top: 8px; }
