html,
body {
    width: 100%;
    height: var(--app-viewport-height) !important;
}

:root {
    --app-header-height: 56px;
    --app-bottom-nav-height: 0px;
    --app-viewport-height: 100dvh;
    --app-accent: #4249a6;
    --app-accent-hover: #333b90;
    --bs-link-color: #4249a6;
    --bs-link-color-rgb: 66, 73, 166;
    --bs-link-hover-color: #333b90;
    --bs-link-hover-color-rgb: 51, 59, 144;
}

.btn-primary {
    --bs-btn-bg: var(--app-accent);
    --bs-btn-border-color: var(--app-accent);
    --bs-btn-hover-bg: var(--app-accent-hover);
    --bs-btn-hover-border-color: var(--app-accent-hover);
    --bs-btn-focus-shadow-rgb: 66, 73, 166;
    --bs-btn-active-bg: var(--app-accent-hover);
    --bs-btn-active-border-color: var(--app-accent-hover);
    --bs-btn-disabled-bg: var(--app-accent);
    --bs-btn-disabled-border-color: var(--app-accent);
}

[data-bs-theme="dark"] {
    --app-accent: #5965d8;
    --app-accent-hover: #4c58c2;
    --app-dark-surface: #1b2a40;
    --app-dark-button: #29415e;
    --app-dark-button-hover: #365374;
    --app-dark-border: #6883a8;
    --bs-link-color: #aeb8ff;
    --bs-link-color-rgb: 174, 184, 255;
    --bs-link-hover-color: #d1d6ff;
    --bs-link-hover-color-rgb: 209, 214, 255;
}

[data-bs-theme="dark"] .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: 174, 184, 255;
}

[data-bs-theme="dark"] .btn-secondary,
[data-bs-theme="dark"] .btn-light {
    --bs-btn-color: #f8fafc;
    --bs-btn-bg: var(--app-dark-button);
    --bs-btn-border-color: var(--app-dark-border);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--app-dark-button-hover);
    --bs-btn-hover-border-color: #9bb2d0;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--app-dark-button-hover);
    --bs-btn-active-border-color: #9bb2d0;
    --bs-btn-disabled-color: #cbd5e1;
    --bs-btn-disabled-bg: #263951;
    --bs-btn-disabled-border-color: #526b89;
}

[data-bs-theme="dark"] .btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #147d58;
    --bs-btn-border-color: #23a474;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #106c4d;
    --bs-btn-hover-border-color: #42c494;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #126b4d;
    --bs-btn-active-border-color: #42c494;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    --bs-btn-color: #f8fafc;
    --bs-btn-bg: var(--app-dark-button);
    --bs-btn-border-color: var(--app-dark-border);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--app-dark-button-hover);
    --bs-btn-hover-border-color: #9bb2d0;
    --bs-btn-focus-shadow-rgb: 148, 163, 184;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--app-dark-button-hover);
    --bs-btn-active-border-color: #9bb2d0;
    --bs-btn-disabled-color: #cbd5e1;
    --bs-btn-disabled-bg: #263951;
    --bs-btn-disabled-border-color: #526b89;
}

body {
    background: #f5f7fb;
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: var(--app-viewport-height);
    overflow: hidden;
}

[data-bs-theme="dark"] body {
    background: #0b1323;
}

[data-bs-theme="dark"] .page-navigation-loader {
    background: rgba(15, 23, 42, 0.76);
}

[data-bs-theme="dark"] .page-navigation-loader-content {
    border-color: #334155;
    color: #e2e8f0;
    background: #111827;
}

.app-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: var(--app-viewport-height);
    overflow: hidden;
}

/* Set padding to keep content from hitting the edges */
.container-fluid.body-content {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    margin-top: 0;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Override the default bootstrap behavior where horizontal description lists
   will truncate terms that are too long to fit in the left column
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.app-brand-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.app-brand-group .navbar-brand {
    margin-right: 0;
}

.app-back-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.app-back-button:hover,
.app-back-button:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

.app-back-button:focus-visible {
    outline: 3px solid #f7b801;
    outline-offset: 2px;
}

.app-back-button .material-symbols-rounded {
    font-size: 26px;
}

[x-cloak] {
    display: none !important;
}

.page-navigation-loader {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(248, 250, 252, 0.72);
    backdrop-filter: blur(3px);
    transition: opacity 120ms ease, visibility 120ms ease;
}

.page-navigation-loader.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.page-navigation-loader-content {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 1px solid #d8e2ee;
    border-radius: 999px;
    color: #001f4d;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    font-weight: 700;
}

.page-navigation-loader-content .spinner-border {
    width: 1.35rem;
    height: 1.35rem;
}

.app-header {
    min-height: var(--app-header-height);
    padding-top: max(0.5rem, env(safe-area-inset-top));
    background-color: var(--app-accent) !important;
    z-index: 1020;
}

.app-header .container-fluid {
    flex-wrap: nowrap;
    gap: 8px;
}

.pull-refresh-indicator {
    position: fixed;
    top: calc(var(--app-header-height) - 48px);
    left: 50%;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #d8dee6;
    border-radius: 999px;
    color: #344054;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
    font-size: 0.86rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, 0, 0);
    transition: opacity 140ms ease, transform 140ms ease;
}

.pull-refresh-indicator.is-visible {
    opacity: 1;
}

.pull-refresh-indicator.is-ready {
    color: #fff;
    border-color: var(--app-accent);
    background: var(--app-accent);
}

.app-header-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-left: auto;
}

.desktop-nav {
    display: none;
}

.top-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 10px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.top-nav-link:hover,
.top-nav-link:focus,
.top-nav-link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.top-nav-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24);
}

.top-nav-link .material-symbols-rounded {
    width: 24px;
    height: 24px;
    overflow: hidden;
    font-size: 24px;
    text-align: center;
}

.app-menu-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-menu-action .material-symbols-rounded {
    flex: 0 0 auto;
    width: 22px;
    overflow: hidden;
    font-size: 22px;
    text-align: center;
}

.driver-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 5px;
    border-radius: 12px;
    border: none;
}

.driver-menu-toggle::after {
    display: none;
}

[data-bs-theme="dark"] .driver-menu-toggle {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(15, 23, 42, 0.24);
}

[data-bs-theme="dark"] .driver-menu-toggle:hover,
[data-bs-theme="dark"] .driver-menu-toggle:focus-visible {
    background: rgba(15, 23, 42, 0.42);
}

.driver-menu-avatar {
    width: 26px;
    height: 26px;
    overflow: hidden;
    font-size: 26px;
    text-align: center;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-bottom-nav {
        display: flex;
        flex: 0 0 auto;
        gap: 4px;
        padding: 5px 6px max(5px, env(safe-area-inset-bottom));
        border-top: 1px solid #dce2ec;
        background: #fff;
        z-index: 1010;
    }

    .mobile-bottom-nav-link {
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 0;
        min-height: 56px;
        padding: 5px 2px;
        border-radius: 10px;
        color: #536075;
        font-size: 0.75rem;
        font-weight: 700;
        line-height: 1.15;
        text-decoration: none;
    }

    .mobile-bottom-nav-link .material-symbols-rounded {
        font-size: 23px;
    }

    .mobile-bottom-nav-link:hover,
    .mobile-bottom-nav-link:focus-visible,
    .mobile-bottom-nav-link.is-active {
        color: #333b90;
        background: #eef0fd;
    }

    .mobile-bottom-nav-link:focus-visible {
        outline: 3px solid #f7b801;
        outline-offset: -3px;
    }

    [data-bs-theme="dark"] .mobile-bottom-nav {
        border-color: #526b89;
        background: #152238;
    }

    [data-bs-theme="dark"] .mobile-bottom-nav-link {
        color: #cbd5e1;
    }

    [data-bs-theme="dark"] .mobile-bottom-nav-link:hover,
    [data-bs-theme="dark"] .mobile-bottom-nav-link:focus-visible,
    [data-bs-theme="dark"] .mobile-bottom-nav-link.is-active {
        color: #fff;
        background: #424eab;
    }
}

.driver-menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(72vw, 320px);
    color: #344054;
    font-weight: 700;
    white-space: normal;
}

.driver-menu-header .material-symbols-rounded {
    flex: 0 0 auto;
    width: 22px;
    overflow: hidden;
    font-size: 22px;
    text-align: center;
}

.driver-menu-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.home-scan-page {
    min-height: 100%;
}

.home-scan-panel {
    width: 100%;
    text-align: center;
}

.home-scan-button {
    width: min(100%, 360px);
    min-height: 56px;
    font-weight: 700;
}

.location-permission-card {
    border-color: #d8dee6;
    border-radius: 14px;
}

.location-permission-card .app-notice-row {
    flex-wrap: wrap;
}

.location-permission-card .app-notice-content p {
    margin-top: 4px;
    color: #536075;
    font-size: 0.9rem;
}

.location-permission-card .app-notice-action,
.driver-dashboard #installAppButton {
    min-height: 48px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
}

@media (max-width: 400px) {
    .location-permission-card .app-notice-action {
        width: 100%;
    }
}

[data-bs-theme="dark"] .location-permission-card .app-notice-content p {
    color: #cbd5e1;
}

[data-bs-theme="dark"] #installAppInstructions {
    --bs-secondary-bg-subtle: var(--app-dark-surface);
    --bs-modal-color: #f1f5f9;
    --bs-modal-border-color: var(--app-dark-border);
    --bs-modal-header-border-color: var(--app-dark-border);
}

.app-notice {
    margin-bottom: 0;
}

.app-notice-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.material-symbols-rounded.app-notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    font-size: 28px;
    line-height: 1;
    text-align: center;
}

.app-notice-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.app-notice-action {
    flex: 0 0 auto;
    white-space: nowrap;
}

.location-permission-card .app-notice-icon {
    color: #4c7396;
}

[data-bs-theme="dark"] .location-permission-card .app-notice-icon {
    color: #93b8d8;
}

.location-reset-inline-icon {
    font-size: 16px;
    line-height: 1;
    vertical-align: text-bottom;
}

.app-empty-card,
.app-form-card,
.app-history-card {
    border-color: #d8dee6;
    border-radius: 16px;
}

.report-issue-page .app-form-card .card-body,
.history-page .app-history-card .card-body {
    padding: 18px;
}

.report-issue-page .app-page-heading h1,
.history-page .app-page-heading h1 {
    color: #172033;
    font-size: 1.6rem;
    font-weight: 750;
    line-height: 1.15;
}

.report-issue-form .form-control,
.report-issue-form .form-select {
    max-width: 100%;
    min-height: 48px;
    border-radius: 10px;
    font-size: 1rem;
}

.report-issue-form .btn[type="submit"] {
    min-height: 52px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
}

[data-bs-theme="dark"] .report-issue-page .app-page-heading h1,
[data-bs-theme="dark"] .history-page .app-page-heading h1 {
    color: #f1f5f9;
}

.app-history-card {
    display: flex;
    flex-direction: column;
    height: calc(var(--app-viewport-height) - var(--app-header-height) - var(--app-bottom-nav-height) - 30px);
    min-height: calc(var(--app-viewport-height) - var(--app-header-height) - var(--app-bottom-nav-height) - 30px);
}

.app-history-card .card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.app-form-card textarea,
.app-form-card input,
.app-form-card select,
.report-issue-form textarea,
.report-issue-form input,
.report-issue-form select,
.driver-login-card input,
.driver-login-card select {
    max-width: 100%;
}

.driver-login-card {
    border-color: #c9cdd2;
    border-radius: 0;
}

.login-otp-icon {
    align-items: center;
    border: 2px solid #2f3f4f;
    border-radius: 4px;
    color: #2f3f4f;
    display: flex;
    height: 56px;
    justify-content: center;
    width: 42px;
}

.login-otp-icon .material-symbols-rounded {
    font-size: 30px;
}

.driver-login-card .otp-input {
    border-color: #c7ccd2;
    border-radius: 4px;
    font-size: 1.25rem;
    font-weight: 600;
    height: 52px;
    letter-spacing: 0.15em;
    margin: 0 auto;
    max-width: 316px;
    text-align: center;
}

.driver-login-card .otp-input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.18);
}

.otp-resend-row {
    align-items: center;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    margin-left: auto;
    margin-right: auto;
    max-width: 316px;
    min-height: 24px;
}

.login-verify-button {
    margin: 0 auto;
    max-width: 340px;
    min-height: 44px;
    width: 100%;
}

.app-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.location-reset-help {
    font-size: 0.95rem;
}

.location-reset-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    text-align: left;
}

.location-reset-toggle::before {
    content: "▸";
    font-size: 0.9rem;
    line-height: 1;
}

.location-reset-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.location-reset-toggle:focus-visible {
    outline: 3px solid #f7b801;
    outline-offset: 2px;
}

.material-symbols-rounded {
    font-family: "Material Symbols Rounded";
    font-size: 28px;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

.qr-generator-form textarea,
.qr-generator-form input {
    max-width: 100%;
}

.qr-generator-card {
    border-color: #d8dee6;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.qr-generator-card .card-body {
    padding: 24px;
}

.qr-generator-input {
    min-height: 160px;
}

.qr-generator-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 24px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
}

.qr-generator-image {
    width: min(100%, 360px);
    height: auto;
    image-rendering: pixelated;
}

.qr-generator-empty {
    width: min(100%, 320px);
    aspect-ratio: 1;
    border: 2px dashed #adb5bd;
    border-radius: 6px;
    background: #fff;
}

.qr-scanner-reader {
    width: 100%;
    min-height: 280px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #111;
}

.qr-scanner-reader > div:not(#qr-shaded-region) {
    width: 100% !important;
}

.qr-scanner-reader video,
.qr-scanner-reader canvas {
    width: 100% !important;
    max-width: 100%;
    object-fit: cover;
}

.qr-scanner-status {
    min-height: 48px;
    overflow-wrap: anywhere;
}

.driver-dashboard {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 20px 0 28px;
}

.dashboard-intro {
    margin-bottom: 20px;
}

.dashboard-eyebrow,
.dashboard-section-title {
    margin: 0 0 8px;
    color: #333b90;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dashboard-intro h1 {
    margin: 0 0 7px;
    color: #172033;
    font-size: clamp(1.7rem, 7vw, 2rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.dashboard-intro > p:last-child {
    margin: 0;
    color: #536075;
    font-size: 1rem;
}

.dashboard-actions {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.dashboard-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 60px;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 14px;
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background 120ms ease, transform 120ms ease;
}

.dashboard-action:hover {
    text-decoration: none;
}

.dashboard-action:active,
.dashboard-quick-link:active {
    transform: scale(0.985);
}

.dashboard-action:focus-visible,
.dashboard-quick-link:focus-visible,
.dashboard-contact-actions a:focus-visible {
    outline: 3px solid #f7b801;
    outline-offset: 3px;
}

.dashboard-action .material-symbols-rounded {
    font-size: 25px;
}

.dashboard-action-primary,
.dashboard-action-primary:hover {
    color: #fff;
    background: #4249a6;
    box-shadow: 0 5px 12px rgba(54, 68, 160, 0.2);
}

.dashboard-action-primary:hover {
    background: #333b90;
}

.dashboard-action-secondary,
.dashboard-action-secondary:hover {
    border-color: #b7c2e5;
    color: #333b90;
    background: #fff;
}

.dashboard-action-secondary:hover {
    background: #f2f4ff;
}

.dashboard-more {
    margin-top: 27px;
}

.dashboard-section-title {
    margin-bottom: 12px;
    color: #536075;
}

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-quick-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    min-height: 96px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #dce2ec;
    border-radius: 14px;
    color: #172033;
    background: #fff;
    box-shadow: 0 2px 6px rgba(31, 42, 75, 0.04);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.dashboard-quick-link:hover {
    border-color: #b7c2e5;
    color: #172033;
    text-decoration: none;
}

.dashboard-quick-link .material-symbols-rounded {
    color: #333b90;
    font-size: 24px;
}

.dashboard-customer {
    margin-top: 26px;
    border-color: #dce2ec;
    border-radius: 16px;
}

.dashboard-customer .card-body {
    padding: 18px;
}

.dashboard-customer-heading h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #172033;
    font-size: 1.2rem;
    font-weight: 750;
}

.dashboard-customer-help {
    margin: 6px 0 13px;
    color: #536075;
    font-size: 0.9rem;
}

.dashboard-contact-actions {
    display: flex;
    gap: 10px;
}

.dashboard-contact-actions a {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px;
    border: 1px solid #b7c2e5;
    border-radius: 10px;
    color: #333b90;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-contact-actions a:hover {
    background: #f2f4ff;
    text-decoration: none;
}

.dashboard-customer-disclosure {
    margin-top: 14px;
}

.dashboard-customer-disclosure summary,
.location-reset-toggle {
    min-height: 44px;
    padding: 10px 0;
    color: #333b90;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-customer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 12px 18px;
    margin-top: 8px;
}

.dashboard-customer-details dt {
    color: #536075;
    font-size: 0.82rem;
}

.dashboard-customer-details dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

[data-bs-theme="dark"] .dashboard-intro h1,
[data-bs-theme="dark"] .dashboard-customer-heading h2 {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .dashboard-eyebrow,
[data-bs-theme="dark"] .dashboard-customer-disclosure summary,
[data-bs-theme="dark"] .location-reset-toggle {
    color: #c4c8ff;
}

[data-bs-theme="dark"] .dashboard-intro > p:last-child,
[data-bs-theme="dark"] .dashboard-section-title,
[data-bs-theme="dark"] .dashboard-customer-help,
[data-bs-theme="dark"] .dashboard-customer-details dt {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .dashboard-action-secondary,
[data-bs-theme="dark"] .dashboard-quick-link,
[data-bs-theme="dark"] .dashboard-customer{
    border-color: var(--app-dark-border);
    color: #f1f5f9;
    background: var(--app-dark-surface);
}

[data-bs-theme="dark"] .dashboard-action-secondary,
[data-bs-theme="dark"] .dashboard-quick-link,
[data-bs-theme="dark"] .dashboard-contact-actions a {
    border-color: #0b1323;
    color: #fff;
    background: var(--app-dark-button);
}

[data-bs-theme="dark"] .dashboard-action-primary,
[data-bs-theme="dark"] .dashboard-action-primary:hover {
    color: #fff;
    background: var(--app-accent);
}

[data-bs-theme="dark"] .dashboard-action-primary:hover {
    background: var(--app-accent-hover);
}

[data-bs-theme="dark"] .dashboard-action-secondary:hover,
[data-bs-theme="dark"] .dashboard-quick-link:hover,
[data-bs-theme="dark"] .dashboard-contact-actions a:hover {
    border-color: #9bb2d0;
    color: #fff;
    background: var(--app-dark-button-hover);
}

[data-bs-theme="dark"] .dashboard-quick-link .material-symbols-rounded {
    color: #d1d6ff;
}

.fuel-stops-screen {
    display: flex;
    flex-direction: column;
    height: calc(var(--app-viewport-height) - var(--app-header-height) - var(--app-bottom-nav-height) - 16px);
    min-height: 0;
}

.fuel-advisory-page {
    position: relative;
    height: calc(var(--app-viewport-height) - var(--app-header-height) - var(--app-bottom-nav-height) - 32px);
    min-height: 480px;
    margin: 16px 0 0;
    overflow: hidden;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    background: #eef2f6;
}

.fuel-stops-screen .fuel-advisory-page {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    margin-top: 10px;
}

.fuel-advisory-map {
    width: 100%;
    height: 100%;
}

.fuel-advisory-toolbar {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(calc(100% - 24px), 440px);
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}

.fuel-advisory-range-label {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    min-width: 68px;
    margin: 0;
    color: #475467;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.15;
}

.fuel-advisory-card-picker {
    display: flex;
    flex: 0 0 150px;
    flex-direction: column;
    gap: 3px;
}

.fuel-advisory-card-picker label {
    margin: 0;
    color: #475467;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.15;
}

.fuel-advisory-card-picker .form-select {
    min-height: 32px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 0.82rem;
}

.fuel-advisory-range-label strong {
    color: #1d2939;
    font-size: 0.95rem;
}

.fuel-advisory-range {
    flex: 1 1 auto;
    max-width: none;
    margin: 0;
}

.fuel-advisory-loader {
    position: absolute;
    top: 82px;
    left: 50%;
    z-index: 3;
    display: none;
    width: min(300px, calc(100% - 32px));
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 6px;
    color: #fff;
    background-color: rgba(25, 135, 84, 0.82);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    transform: translateX(-50%);
}

.fuel-advisory-location-button {
    width: 39px;
    height: 39px;
    margin-right: 10px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    outline: 0;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    text-align: center;
}

.fuel-advisory-location-icon {
    width: 18px;
    height: 18px;
    margin: auto;
    background-size: 180px 18px;
    background-position: 0 0;
    background-repeat: no-repeat;
}

[data-bs-theme="dark"] .fuel-advisory-page {
    border-color: #344054;
    background: #111827;
}

[data-bs-theme="dark"] .fuel-advisory-toolbar {
    border-color: #344054;
    background: #1f2937;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}

[data-bs-theme="dark"] .fuel-advisory-range-label {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .fuel-advisory-card-picker label {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .fuel-advisory-range-label strong {
    color: #f8fafc;
}

[data-bs-theme="dark"] .fuel-advisory-location-button,
[data-bs-theme="dark"] .fuel-advisory-map .gm-control-active {
    background-color: #1f2937 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

[data-bs-theme="dark"] .fuel-advisory-map .gm-control-active img,
[data-bs-theme="dark"] .fuel-advisory-location-icon {
    filter: invert(1) hue-rotate(180deg);
}

[data-bs-theme="dark"] .fuel-advisory-map .gm-style-iw,
[data-bs-theme="dark"] .fuel-advisory-map .gm-style-iw-c,
[data-bs-theme="dark"] .fuel-advisory-map .gm-style-iw-d {
    color: #e5e7eb;
    background-color: #1f2937 !important;
}

[data-bs-theme="dark"] .fuel-advisory-map .gm-style-iw-tc::after {
    background-color: #1f2937 !important;
}

[data-bs-theme="dark"] .fuel-advisory-map .gm-ui-hover-effect {
    filter: invert(1) hue-rotate(180deg);
}

[data-bs-theme="dark"] .myInfoWindow h5,
[data-bs-theme="dark"] .myInfoWindow p {
    color: #e5e7eb;
}

[data-bs-theme="dark"] .fuel-advisory-info-main,
[data-bs-theme="dark"] .fuel-advisory-cheaper-location {
    border-bottom-color: #475467;
}

[data-bs-theme="dark"] .fuel-advisory-info-date,
[data-bs-theme="dark"] .fuel-advisory-price-note {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .fuel-advisory-info-actions .btn,
[data-bs-theme="dark"] .fuel-advisory-cheaper-location .btn {
    color: #93c5fd;
}

.myInfoWindow * {
    font-size: 14px;
}

.fuel-advisory-info-main {
    padding-bottom: 15px;
    border-bottom: 1px solid #949191;
}

.fuel-advisory-info-actions {
    margin-top: 10px;
    text-align: right;
}

.fuel-advisory-info-actions .btn {
    padding: 0 !important;
    border: 0;
    box-shadow: none;
    text-decoration: none;
}

.fuel-advisory-info-date,
.fuel-advisory-price-note {
    font-size: 12px;
}

.fuel-advisory-info-old-date {
    color: orangered;
}

.fuel-advisory-cheaper-location {
    padding: 10px 2px;
    border-bottom: 1px solid #949191;
    overflow: auto;
    text-align: center;
}

.fuel-advisory-cheaper-location .btn {
    padding-left: 0;
    text-align: left;
    text-decoration: none;
}

.fuel-advisory-cheaper-location i,
.fuel-advisory-cheaper-location span {
    color: green;
}

.gm-ui-hover-effect {
    padding: 3px !important;
    right: 6px !important;
    font-size: large;
}

.fueling-timeline {
    width: min(100%, 720px);
    margin-left: auto;
    margin-right: auto;
}

.fueling-timeline-toolbar {
    display: flex;
    justify-content: flex-end;
}

.fueling-timeline-step {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 12px;
    padding-bottom: 18px;
}

.fueling-timeline-step::before {
    content: "";
    position: absolute;
    top: 32px;
    bottom: 0;
    left: 16px;
    width: 2px;
    background: #d8dee6;
}

.fueling-timeline-step-last::before {
    display: none;
}

.fueling-timeline-marker {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    color: #6c757d;
    background: #f8fafc;
    font-weight: 700;
    line-height: 1;
}

.fueling-timeline-step.is-complete .fueling-timeline-marker {
    border-color: #198754;
    color: #fff;
    background: #198754;
}

.fueling-timeline-step.is-active .fueling-timeline-marker {
    border-color: var(--app-accent);
    color: var(--app-accent);
    background: #fff;
}

.fueling-timeline-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.fueling-timeline-step.is-pending .fueling-timeline-card {
    opacity: 0.72;
}

.fueling-timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.fueling-timeline-eyebrow {
    color: #6c757d;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.fueling-timeline-copy {
    color: #5f6b7a;
}

.fueling-timeline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fueling-timeline-details {
    padding: 12px;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    background: #f8fafc;
}

.fueling-timeline-details dl {
    display: grid;
    grid-template-columns: minmax(100px, 0.42fr) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 8px;
}

.fueling-timeline-details dt {
    color: #5f6b7a;
    font-weight: 700;
}

.fueling-timeline-details dd {
    min-width: 0;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.fueling-timeline-detail-label {
    color: #5f6b7a;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.fueling-timeline-address {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.fueling-flow {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc(var(--app-viewport-height) - var(--app-header-height) - var(--app-bottom-nav-height) - 132px);
    margin-left: auto;
    margin-right: auto;
}

.fueling-flow-card {
    flex: 1 1 auto;
    width: 100%;
    min-height: 100%;
    border-color: #d8dee6;
    border-radius: 16px;
}

.fueling-flow-card-body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 16px;
}

.fueling-flow-content {
    flex: 1 1 auto;
    min-height: 0;
}

.fueling-flow-hero {
    display: flex;
    width: min(100%, 320px, 60vh);
    min-height: 0;
    aspect-ratio: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 12px;
    padding: 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #0d8de8;
    text-align: center;
    box-shadow: 0 12px 24px rgba(13, 141, 232, 0.22);
    cursor: default;
    user-select: none;
}

.fueling-flow-hero:focus {
    outline: none;
}

.fueling-flow-hero:focus-visible {
    box-shadow: 0 0 0 3px rgba(13, 141, 232, 0.28), 0 12px 24px rgba(13, 141, 232, 0.22);
}

.fueling-flow-hero-primary {
    background: #0d8de8;
}

.fueling-flow-hero-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.fueling-flow-hero .material-symbols-rounded {
    width: 96px;
    height: 96px;
    font-size: 96px;
}

.fueling-flow-message {
    margin-bottom: 14px;
    text-align: center;
}

.fueling-flow-message p {
    font-size: 0.92rem;
}

.fueling-flow-section-header {
    margin-bottom: 14px;
}

.fueling-flow-unit-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    background: #fff;
}

.fueling-flow-unit-entry .material-symbols-rounded {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #0d6efd;
    background: #eef6ff;
    font-size: 30px;
}

.fueling-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-height: inherit;
    margin: 0;
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    position: relative;
}

.fueling-shell-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e4eaf1;
}

.fueling-shell > template + div,
.fueling-shell > div:not(.fueling-shell-topline) {
    flex: 1 1 auto;
}

.fueling-step-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.fueling-complete-panel {
    min-height: 100%;
    justify-content: space-between;
}

.fueling-step-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.fueling-restart-countdown {
    min-height: 24px;
    margin: 0;
    color: #415166;
    font-size: 0.9rem;
    text-align: center;
}

.fueling-loader-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(2px);
}

.fueling-loader {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #d8e2ee;
    border-radius: 999px;
    color: #001f4d;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    font-weight: 700;
}

.fueling-progress-dots {
    display: flex;
    gap: 6px;
}

.fueling-progress-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cdd6e1;
}

.fueling-progress-dots span.is-active {
    background: #0d6efd;
}

.fueling-progress-dots span.is-complete {
    background: #0ab879;
}

.fueling-step-label {
    color: #5f6b7a;
    font-size: 0.9rem;
}

.fueling-brand-mark {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #001f4d;
    font-size: 1rem;
}

.fueling-brand-mark .material-symbols-rounded {
    color: #0d6efd;
    font-size: 22px;
}

.fueling-panel-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 16px;
    color: #001f4d;
}

.fueling-panel-heading .material-symbols-rounded {
    color: #0d6efd;
    font-size: 24px;
}

.fueling-scan-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 104px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #e1e8f0;
    border-radius: 14px;
    color: #0d6efd;
    background: #f7faff;
    text-align: center;
}

.fueling-scan-visual .material-symbols-rounded {
    font-size: 42px;
}

.fueling-scan-visual span:last-child {
    color: #415166;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fueling-scanner-frame {
    margin-bottom: 16px;
}

.fueling-detail-card {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #e1e8f0;
    border-radius: 14px;
    background: #f7faff;
}

.fueling-success-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    margin: 0;
    /*padding: 44px 18px;*/
    border-color: transparent;
    background: #fff;
    text-align: center;
}

.fueling-success-card .fueling-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    color: #12b76a;
    font-size: 56px;
    line-height: 1;
}

.fueling-success-card .fueling-pending-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    color: #f79009;
    font-size: 56px;
    line-height: 1;
}

.fueling-success-card .fueling-denied-icon {
    color: #f04438;
}

.fueling-success-title {
    margin: 0 0 8px;
    color: #1d2939;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.25;
}

.fueling-success-message {
    max-width: 280px;
}

.fueling-success-copy {
    color: #475467;
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.compact-company-contact {
    width: 100%;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e1e8f0;
    text-align: left;
}

.report-issue-contact {
    margin-top: 16px;
}

.fueling-approval-wait {
    margin: 12px 0 0;
    color: #475467;
    font-size: 0.9rem;
    line-height: 1.4;
}

.compact-company-contact summary {
    min-height: 44px;
    padding: 10px 0;
    color: #475467;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.compact-company-contact-details {
    padding: 8px 12px;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
    background: #f7faff;
    font-size: 0.86rem;
}

.compact-company-contact-name {
    display: block;
    margin-bottom: 8px;
    color: #1d2939;
    font-size: 0.94rem;
}

.compact-company-contact-details dl > div {
    display: flex;
    gap: 12px;
    padding: 3px 0;
}

.compact-company-contact-details dt {
    flex: 0 0 54px;
    color: #667085;
    font-weight: 500;
}

.compact-company-contact-details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.compact-company-contact-details a {
    color: #333b90;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fueling-pin-panel {
    width: 100%;
}

.fueling-pin-label {
    color: #067647;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fueling-pin-code {
    display: block;
    color: #034c2f;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.fueling-detail-row {
    display: grid;
    grid-template-columns: 24px minmax(70px, 0.45fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e7edf4;
}

.fueling-detail-row:last-child {
    border-bottom: 0;
}

.fueling-detail-row .material-symbols-rounded {
    color: #0d6efd;
    font-size: 22px;
}

.fueling-detail-row > span:not(.material-symbols-rounded),
.fueling-detail-row label {
    color: #415166;
}

.fueling-detail-row strong {
    min-width: 0;
    color: #001f4d;
    overflow-wrap: anywhere;
}

.fueling-card-select-row .form-select {
    min-width: 0;
}

.fueling-unit-inline-input {
    min-height: 38px;
    border-color: #cfd9e5;
}

.fueling-helper-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: #415166;
    font-size: 0.94rem;
}

.fueling-helper-text .material-symbols-rounded {
    color: #0d6efd;
    font-size: 19px;
}

.fueling-inline-message {
    margin: 0 0 14px;
    font-size: 0.94rem;
}

.fueling-primary-button,
.fueling-secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 56px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.fueling-primary-button {
    box-shadow: 0 12px 22px rgba(13, 110, 253, 0.22);
}

.fueling-authorize-button {
    box-shadow: 0 12px 22px rgba(25, 135, 84, 0.24);
}

.fueling-secondary-button {
    color: #415166;
    text-transform: none;
}

.fueling-primary-button .material-symbols-rounded,
.fueling-secondary-button .material-symbols-rounded {
    font-size: 24px;
}

.fueling-flow-actions {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 16px;
    margin-top: auto;
}

.fueling-flow-actions .btn {
    min-width: 120px;
    min-height: 48px;
    font-weight: 700;
}

.fueling-flow-input {
    max-width: 100%;
}

.fueling-flow-result {
    padding: 12px;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    background: #f8fafc;
    overflow-wrap: anywhere;
}

.fueling-flow-sms-result {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fueling-flow-sms-result .material-symbols-rounded {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    color: #198754;
    font-size: 44px;
}

.history-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}

.history-empty-state .material-symbols-rounded {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 42px;
}

.history-table-wrap {
    --history-table-scroll-y: calc(var(--app-viewport-height) - var(--app-header-height) - var(--app-bottom-nav-height) - 206px);
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    padding: 0 0 12px;
}

.history-table-wrap .dataTables_wrapper {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.history-table-wrap .dataTables_scroll {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.history-table-wrap .dataTables_scrollBody {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.history-request-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.history-request-status.is-activated {
    color: #067647;
    background: #dcfae6;
}

.history-request-status.is-pending {
    color: #93370d;
    background: #fef0c7;
}

.history-request-status.is-failed {
    color: #b42318;
    background: #fee4e2;
}

.history-table {
    width: 100% !important;
    table-layout: fixed;
    vertical-align: middle;
}

.history-table th,
.history-table td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.history-table th:nth-child(1),
.history-table td:nth-child(1) {
    width: 28%;
}

.history-table th:nth-child(2),
.history-table td:nth-child(2) {
    width: 92px;
}

.history-table thead th {
    color: #344054;
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.history-table tbody td {
    color: #475467;
    font-size: 0.9rem;
}

.history-reason-cell {
    min-width: 0;
}

.history-table-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px 0;
    padding: 0 12px;
}

.history-table-controls > [class*="col-"] {
    flex: 0 1 auto;
    width: auto;
}

.history-table-controls .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    color: #475467;
    font-size: 0;
    flex-wrap: wrap;
}

.history-table-controls .dataTables_length select {
    max-width: 96px;
    font-size: 0.88rem;
}

.history-table-controls .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
}

.history-table-controls .pagination {
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.history-table-controls .pagination .page-item.active .page-link {
    color: #fff;
    background-color: var(--app-accent);
    border-color: var(--app-accent);
}

.qr-scanner-inline {
    display: flex;
    width: min(100%, 320px, 60vh);
    flex-direction: column;
    min-height: 0;
    margin: 0 auto 12px;
}

.qr-scanner-reader-inline {
    aspect-ratio: 1;
    min-height: 0;
    height: auto;
    border-radius: 8px;
}

[data-bs-theme="dark"] .location-permission-card,
[data-bs-theme="dark"] .app-empty-card,
[data-bs-theme="dark"] .app-form-card,
[data-bs-theme="dark"] .app-history-card,
[data-bs-theme="dark"] .driver-login-card,
[data-bs-theme="dark"] .qr-generator-card,
[data-bs-theme="dark"] .fueling-flow-card {
    border-color: #334155;
}

[data-bs-theme="dark"] .login-otp-icon {
    border-color: #cbd5e1;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .driver-login-card .otp-input {
    border-color: #475569;
}

[data-bs-theme="dark"] .pull-refresh-indicator {
    color: #e2e8f0;
    border-color: #334155;
    background: #111827;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}

[data-bs-theme="dark"] .pull-refresh-indicator.is-ready {
    color: #fff;
    border-color: var(--app-accent);
    background: var(--app-accent);
}

[data-bs-theme="dark"] .driver-menu-header {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .qr-generator-preview,
[data-bs-theme="dark"] .fueling-timeline-details,
[data-bs-theme="dark"] .fueling-flow-result,
[data-bs-theme="dark"] .history-empty-state {
    border-color: #334155;
    background: #111827;
}

[data-bs-theme="dark"] .qr-generator-empty {
    border-color: #64748b;
    background: #0f172a;
}

[data-bs-theme="dark"] .qr-scanner-reader {
    border-color: #334155;
    background: #020617;
}

[data-bs-theme="dark"] .fueling-timeline-eyebrow,
[data-bs-theme="dark"] .fueling-timeline-copy,
[data-bs-theme="dark"] .fueling-timeline-details dt,
[data-bs-theme="dark"] .fueling-timeline-detail-label,
[data-bs-theme="dark"] .fueling-step-label,
[data-bs-theme="dark"] .fueling-scan-visual span:last-child,
[data-bs-theme="dark"] .fueling-detail-row > span:not(.material-symbols-rounded),
[data-bs-theme="dark"] .fueling-detail-row label,
[data-bs-theme="dark"] .fueling-helper-text,
[data-bs-theme="dark"] .fueling-restart-countdown,
[data-bs-theme="dark"] .history-table tbody td {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .fueling-timeline-step::before {
    background: #334155;
}

[data-bs-theme="dark"] .fueling-timeline-marker {
    border-color: #64748b;
    color: #cbd5e1;
    background: #0f172a;
}

[data-bs-theme="dark"] .fueling-timeline-step.is-active .fueling-timeline-marker {
    border-color: var(--app-accent);
    color: #fff;
    background: var(--app-accent);
}

[data-bs-theme="dark"] .fueling-timeline-card,
[data-bs-theme="dark"] .fueling-flow-unit-entry,
[data-bs-theme="dark"] .fueling-shell {
    border-color: #334155;
    background: #111827;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

[data-bs-theme="dark"] .fueling-shell-topline {
    border-bottom-color: #334155;
}

[data-bs-theme="dark"] .fueling-loader-overlay {
    background: rgba(15, 23, 42, 0.72);
}

[data-bs-theme="dark"] .fueling-loader {
    border-color: #334155;
    color: #e2e8f0;
    background: #111827;
}

[data-bs-theme="dark"] .fueling-progress-dots span {
    background: #475569;
}

[data-bs-theme="dark"] .fueling-brand-mark,
[data-bs-theme="dark"] .fueling-panel-heading,
[data-bs-theme="dark"] .fueling-detail-row strong {
    color: #f8fafc;
}

[data-bs-theme="dark"] .fueling-flow-unit-entry .material-symbols-rounded,
[data-bs-theme="dark"] .fueling-scan-visual,
[data-bs-theme="dark"] .fueling-detail-card {
    border-color: #334155;
    background: #0f172a;
}

[data-bs-theme="dark"] .fueling-success-card {
    border-color: transparent;
    background: #111827;
}

[data-bs-theme="dark"] .fueling-success-card .fueling-success-icon {
    color: #12b76a;
}

[data-bs-theme="dark"] .fueling-flow-unit-entry .material-symbols-rounded {
    color: #60a5fa;
}

[data-bs-theme="dark"] .fueling-brand-mark .material-symbols-rounded,
[data-bs-theme="dark"] .fueling-panel-heading .material-symbols-rounded,
[data-bs-theme="dark"] .fueling-scan-visual,
[data-bs-theme="dark"] .fueling-detail-row .material-symbols-rounded,
[data-bs-theme="dark"] .fueling-helper-text .material-symbols-rounded {
    color: #60a5fa;
}

[data-bs-theme="dark"] .fueling-success-copy {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .fueling-approval-wait,
[data-bs-theme="dark"] .compact-company-contact summary {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .compact-company-contact {
    border-color: #334155;
}

[data-bs-theme="dark"] .compact-company-contact-details {
    border-color: #334155;
    background: #0f172a;
}

[data-bs-theme="dark"] .compact-company-contact-name {
    color: #f8fafc;
}

[data-bs-theme="dark"] .compact-company-contact-details dt {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .compact-company-contact-details a {
    color: #c4c8ff;
}

[data-bs-theme="dark"] .fueling-success-title {
    color: #f8fafc;
}

[data-bs-theme="dark"] .fueling-pin-label {
    color: #bbf7d0;
}

[data-bs-theme="dark"] .fueling-pin-code {
    color: #f0fdf4;
}

[data-bs-theme="dark"] .fueling-detail-row {
    border-bottom-color: #334155;
}

[data-bs-theme="dark"] .fueling-unit-inline-input {
    border-color: #475569;
}

[data-bs-theme="dark"] .fueling-secondary-button {
    border: 1px solid var(--app-dark-border);
    border-radius: 10px;
    color: #fff;
    background: var(--app-dark-button);
}

[data-bs-theme="dark"] .fueling-secondary-button:hover {
    border-color: #9bb2d0;
    color: #fff;
    background: var(--app-dark-button-hover);
}

[data-bs-theme="dark"] .history-empty-state .material-symbols-rounded {
    color: #94a3b8;
}

[data-bs-theme="dark"] .history-table-wrap {
    border-color: #334155;
}

[data-bs-theme="dark"] .history-table thead th {
    color: #e2e8f0;
    background: #0f172a;
}

[data-bs-theme="dark"] .report-issue-page .app-page-heading {
    border-bottom-color: #334155;
    background: #111827;
}

[data-bs-theme="dark"] .history-table-controls .dataTables_length label {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .history-request-status.is-activated {
    color: #bbf7d0;
    background: #14532d;
}

[data-bs-theme="dark"] .history-request-status.is-pending {
    color: #fedf89;
    background: #78350f;
}

[data-bs-theme="dark"] .history-request-status.is-failed {
    color: #fecaca;
    background: #7f1d1d;
}

[data-bs-theme="dark"] .swal2-popup {
    color: #e2e8f0;
    background: #111827;
}

@media (max-width: 575.98px) {
    .navbar-brand {
        max-width: min(44vw, 180px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .container-fluid.body-content {
        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 12px;
    }

    .home-scan-page {
        min-height: 100%;
        padding: 24px 0;
    }

    .home-scan-button {
        width: 100%;
    }

    .qr-generator-page {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .qr-generator-card .card-body {
        padding: 16px;
    }

    .qr-scanner-dialog {
        margin: 0;
    }

    .qr-scanner-content {
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .qr-scanner-body {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 12px;
    }

    .qr-scanner-camera select {
        max-width: 100%;
    }

    .qr-scanner-reader {
        flex: 1 1 auto;
        min-height: 0;
        height: calc(100dvh - 220px);
        border-radius: 0;
    }

    .qr-scanner-reader video,
    .qr-scanner-reader canvas {
        min-height: 100%;
    }

    .qr-scanner-status {
        flex: 0 0 auto;
        min-height: 72px;
        font-size: 0.95rem;
    }

    .qr-scanner-content .modal-footer {
        padding: 12px;
    }

    .qr-scanner-content .modal-footer .btn {
        width: 100%;
        min-height: 48px;
    }

    .fueling-timeline-step {
        grid-template-columns: 30px minmax(0, 1fr);
        column-gap: 10px;
    }

    .fueling-timeline-step::before {
        left: 14px;
    }

    .fueling-timeline-marker {
        width: 30px;
        height: 30px;
    }

    .fueling-timeline-card {
        padding: 14px;
    }

    .fueling-timeline-header {
        flex-direction: column;
        gap: 8px;
    }

    .fueling-timeline-details dl {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }

    .fueling-flow {
        min-height: calc(var(--app-viewport-height) - var(--app-header-height) - var(--app-bottom-nav-height) - 30px);
    }

    .fuel-advisory-page {
        height: calc(var(--app-viewport-height) - var(--app-header-height) - var(--app-bottom-nav-height) - 24px);
        min-height: 0;
        margin-top: 12px;
    }

    .fuel-advisory-toolbar {
        align-items: center;
        gap: 8px;
        width: min(calc(100% - 80px), 320px);
        min-height: 44px;
        padding: 8px 10px;
    }

    .fuel-advisory-card-picker {
        flex-basis: 120px;
    }

    .fuel-advisory-range-label {
        min-width: 58px;
        font-size: 0.7rem;
    }

    .fuel-advisory-range-label strong {
        font-size: 0.86rem;
    }

    .fuel-advisory-range {
        max-width: 170px;
    }

    .app-page-heading {
        flex-direction: column;
        gap: 8px;
    }

    .history-table-wrap {
        overflow: hidden;
        padding: 12px 0;
    }

    .history-table-wrap .dataTables_wrapper,
    .history-table-wrap .dataTables_scroll {
        width: 100%;
        overflow: hidden;
    }

    .history-table-wrap .dataTables_scrollHead {
        display: none;
    }

    .history-table-wrap .dataTables_scrollBody {
        box-sizing: border-box;
        width: 100% !important;
        max-height: 100% !important;
        padding: 0 12px;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border: 0 !important;
    }

    .history-table {
        display: block;
        max-width: 100%;
        margin: 0 !important;
        border-collapse: separate;
        border-spacing: 0;
    }

    .history-table thead {
        display: none;
    }

    .history-table tbody {
        display: grid;
        gap: 12px;
    }

    .history-table tbody tr {
        display: grid;
        box-sizing: border-box;
        width: 100%;
        gap: 10px;
        padding: 14px;
        border: 1px solid #e5e9ef;
        border-radius: 8px;
        background: #fff;
    }

    .history-table tbody td {
        display: grid;
        grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        padding: 0;
        border-bottom: 0;
        font-size: 0.88rem;
    }

    .history-table tbody td::before {
        content: attr(data-label);
        color: #667085;
        font-size: 0.74rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .history-table th:nth-child(1),
    .history-table td:nth-child(1),
    .history-table th:nth-child(2),
    .history-table td:nth-child(2) {
        width: auto;
    }

    .history-table-controls {
        justify-content: flex-end;
        padding: 12px 12px 0;
    }

    .history-table-controls .dataTables_length {
        display: none;
    }

    .history-table-controls .pagination {
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    [data-bs-theme="dark"] .history-table tbody tr {
        border-color: #334155;
        background: #111827;
    }

    [data-bs-theme="dark"] .history-table tbody td::before {
        color: #94a3b8;
    }

    .report-issue-page .app-page-heading {
        position: sticky;
        top: 0;
        z-index: 2;
        margin: -16px -16px 16px;
        padding: 16px 16px 12px;
        border-bottom: 1px solid #e5e9ef;
        background: #fff;
    }

    .fueling-flow-card-body {
        padding: 12px;
    }

    .fueling-flow-hero {
        width: min(100%, 50vh);
        padding: 14px;
    }

    .fueling-flow-hero .material-symbols-rounded {
        width: 82px;
        height: 82px;
        font-size: 82px;
    }

    .fueling-flow-hero-label {
        font-size: 1.08rem;
    }

    .fueling-flow-actions {
        flex-direction: column-reverse;
    }

    .fueling-flow-actions .btn {
        width: 100%;
    }

    .qr-scanner-inline {
        width: min(100%, 60vh);
    }

    .qr-scanner-reader-inline {
        height: auto;
    }
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    .body-content {
        flex-basis: calc(100dvh - var(--app-header-height));
        height: calc(100dvh - var(--app-header-height));
        padding-bottom: 16px;
    }

    .app-header .container-fluid {
        gap: 16px;
    }

    .fueling-flow {
        min-height: calc(100dvh - var(--app-header-height) - 112px);
    }

    .app-history-card {
        height: calc(var(--app-viewport-height) - var(--app-header-height) - 112px);
        min-height: calc(var(--app-viewport-height) - var(--app-header-height) - 112px);
    }

    .fuel-advisory-page {
        height: calc(100dvh - var(--app-header-height) - 48px);
    }

    .history-table-wrap {
        --history-table-scroll-y: calc(100dvh - var(--app-header-height) - 206px);
    }
}
