@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800&display=swap');

:root {
    --ss-bg: #0f0f0f;
    --ss-bg-deep: #090909;
    --ss-surface: #171717;
    --ss-surface-2: #1d1d1d;
    --ss-surface-3: #242424;
    --ss-border: #303030;
    --ss-border-strong: #414141;
    --ss-text: #f8fafc;
    --ss-text-soft: #d6dbe2;
    --ss-text-muted: #9ca3af;
    --ss-primary: #e87722;
    --ss-primary-hover: #f28b3b;
    --ss-primary-dark: #b95512;
    --ss-primary-soft: rgba(232, 119, 34, .16);
    --ss-success: #2fbf71;
    --ss-success-soft: rgba(47, 191, 113, .14);
    --ss-danger: #ef4444;
    --ss-danger-soft: rgba(239, 68, 68, .13);
    --ss-warning: #f59e0b;
    --ss-warning-soft: rgba(245, 158, 11, .14);
    --ss-radius-sm: 6px;
    --ss-radius: 8px;
    --ss-radius-lg: 10px;
    --ss-sidebar-width: 284px;
    --ss-header-height: 74px;
    --ss-page-max: 1180px;
    --ss-shadow: 0 20px 50px rgba(0, 0, 0, .38);
    font-family: 'Inter Tight', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: var(--ss-bg-deep);
    color: var(--ss-text);
    font-family: 'Inter Tight', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

h1,
h2,
h3,
p,
span,
small,
label,
a,
button,
input,
select,
textarea {
    letter-spacing: 0;
}

h1:focus {
    outline: none;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.kt-app-shell {
    min-height: 100vh;
    background: linear-gradient(180deg, #0f0f0f 0%, #151515 48%, #090909 100%);
}

.kt-sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--ss-sidebar-width);
    flex-direction: column;
    border-right: 1px solid var(--ss-border);
    background: #101010;
}

.kt-sidebar.dark {
    background: linear-gradient(180deg, #101010 0%, #151515 100%);
}

.kt-sidebar-header {
    display: flex;
    min-height: var(--ss-header-height);
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.shiftseat-brand-mark {
    display: flex;
    width: 100%;
    align-items: center;
    text-decoration: none;
}

.shiftseat-logo-plate,
.auth-logo-plate {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--ss-radius);
    background: linear-gradient(180deg, #202020, #111);
    box-shadow: inset 0 0 0 1px rgba(232, 119, 34, .16), 0 14px 36px rgba(0, 0, 0, .32);
}

.brand-logo-compact {
    display: block;
    width: 100%;
    max-height: 54px;
    object-fit: cover;
    object-position: center;
}

.auth-logo-plate {
    max-width: 380px;
    margin: 0 auto 18px;
    padding: 8px;
}

.auth-logo-plate img {
    display: block;
    width: 100%;
    border-radius: var(--ss-radius-sm);
    object-fit: cover;
}

.kt-sidebar-content {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding: 18px 12px;
}

.kt-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kt-menu-heading {
    margin: 14px 8px 6px;
    color: var(--ss-text-muted);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.kt-menu-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: var(--ss-radius);
    padding: 8px 10px;
    color: var(--ss-text-soft);
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.kt-menu-link:hover,
.kt-menu-link.active {
    border-color: rgba(232, 119, 34, .25);
    background: var(--ss-primary-soft);
    color: var(--ss-text);
}

.kt-menu-link.static:hover {
    border-color: transparent;
    background: transparent;
}

.kt-menu-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-sm);
    background: rgba(255, 255, 255, .04);
    color: var(--ss-primary);
    font-size: .8rem;
    font-weight: 800;
}

.kt-menu-title {
    display: grid;
    min-width: 0;
    gap: 1px;
    font-size: .94rem;
    font-weight: 700;
}

.kt-menu-title small {
    color: var(--ss-text-muted);
    font-size: .76rem;
    font-weight: 600;
}

.kt-wrapper {
    min-height: 100vh;
    padding-left: var(--ss-sidebar-width);
}

.kt-header {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: var(--ss-header-height);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(15, 15, 15, .92);
    backdrop-filter: blur(16px);
}

.kt-header-container {
    display: flex;
    min-height: var(--ss-header-height);
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.kt-container-fixed {
    width: min(var(--ss-page-max), calc(100vw - var(--ss-sidebar-width) - 48px));
    margin: 0 auto;
}

.kt-page-heading {
    display: grid;
    gap: 4px;
}

.kt-breadcrumbs {
    color: var(--ss-text-muted);
    font-size: .82rem;
    font-weight: 700;
}

.kt-page-heading h1 {
    margin: 0;
    color: var(--ss-text);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 800;
    line-height: 1.1;
}

.kt-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.kt-user-chip {
    display: inline-flex;
    max-width: 260px;
    min-height: 36px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    padding: 0 10px;
    color: var(--ss-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kt-main {
    min-height: calc(100vh - var(--ss-header-height));
    padding: 26px 0 42px;
}

.kt-page,
.start-page,
.auth-page,
.register-page,
.dashboard-page {
    width: 100%;
}

.kt-page-stack {
    display: grid;
    gap: 16px;
}

.kt-page-title-row,
.dashboard-header,
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.kt-page-title-row h1,
.dashboard-header h1,
.page-header h1,
.start-panel h1,
.auth-card h1,
.auth-panel h1,
.register-panel h1 {
    margin: 0;
    color: var(--ss-text);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
}

.kt-page-title-row p,
.dashboard-header p,
.page-header p,
.kt-card p,
.start-panel p,
.auth-card p,
.muted,
.field-hint {
    color: var(--ss-text-muted);
}

.kt-card,
.start-panel,
.auth-panel,
.register-panel,
.user-summary,
.dashboard-card,
.panel-card,
.listing-card {
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-lg);
    background: linear-gradient(180deg, rgba(31, 31, 31, .98), rgba(18, 18, 18, .98));
    box-shadow: var(--ss-shadow);
}

.kt-card-header {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    padding: 16px 18px;
}

.kt-card-title {
    display: grid;
    gap: 4px;
}

.kt-card-title h2,
.kt-card-title h3,
.dashboard-card h2,
.listing-card h2,
.panel-card h2 {
    margin: 0;
    color: var(--ss-text);
    font-size: 1.05rem;
    font-weight: 800;
}

.kt-card-title p,
.kt-card-content p,
.dashboard-card p,
.listing-card p,
.panel-card p {
    margin: 0;
}

.kt-card-content {
    padding: 18px;
}

.kt-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 14px 18px;
}

.kt-grid,
.dashboard-grid,
.listing-grid {
    display: grid;
    gap: 16px;
}

.kt-grid-2 {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
}

.dashboard-grid,
.listing-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.kt-account-stack {
    display: grid;
    gap: 14px;
}

.kt-account-card {
    display: grid;
    gap: 8px;
    min-height: 142px;
}

.kt-account-card .kt-card-content {
    display: grid;
    gap: 12px;
}

.kt-account-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.start-panel,
.auth-card,
.auth-panel,
.register-panel {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 24px;
}

.start-page,
.auth-page,
.register-page {
    display: grid;
    min-height: calc(100vh - var(--ss-header-height) - 52px);
    place-items: center;
}

.brand-lockup {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.brand-kicker {
    margin: 0;
    color: var(--ss-primary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.start-actions,
.auth-actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.kt-btn,
.primary-link,
.secondary-link,
.primary-button,
.secondary-button,
.link-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--ss-radius);
    padding: 0 14px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.kt-btn:hover,
.primary-link:hover,
.secondary-link:hover,
.primary-button:hover,
.secondary-button:hover,
.link-button:hover {
    transform: translateY(-1px);
}

.kt-btn-primary,
.primary-link,
.primary-button {
    border: 1px solid var(--ss-primary);
    background: linear-gradient(180deg, var(--ss-primary-hover), var(--ss-primary));
    color: #160b04;
}

.kt-btn-outline,
.secondary-link,
.secondary-button {
    border: 1px solid var(--ss-border-strong);
    background: rgba(255, 255, 255, .04);
    color: var(--ss-text);
}

.kt-btn-ghost,
.link-button {
    border: 1px solid transparent;
    background: transparent;
    color: var(--ss-text-soft);
}

.kt-btn-block,
.primary-button,
.secondary-button {
    width: 100%;
}

.kt-btn:disabled,
.primary-button:disabled,
.secondary-button:disabled {
    cursor: not-allowed;
    opacity: .65;
    transform: none;
}

.form-field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.form-field label {
    color: var(--ss-text-soft);
    font-size: .92rem;
    font-weight: 700;
}

.kt-input,
.kt-select,
.text-input {
    min-height: 44px;
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--ss-border-strong);
    border-radius: var(--ss-radius-sm);
    background: #101010;
    color: var(--ss-text);
    outline: none;
}

.kt-select {
    height: 44px;
    padding: 9px 34px 9px 11px;
    line-height: 24px;
    vertical-align: top;
}

textarea.kt-input {
    min-height: 92px;
    resize: vertical;
}

.kt-input:focus,
.kt-select:focus,
.text-input:focus {
    border-color: var(--ss-primary);
    box-shadow: 0 0 0 3px var(--ss-primary-soft);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--ss-success);
}

.invalid {
    outline: 1px solid var(--ss-danger);
}

.validation-message {
    color: #ff8a8a;
    font-size: .9rem;
}

.status-message {
    margin: 16px 0 0;
    padding: 12px;
    border-radius: var(--ss-radius);
}

.status-message.success {
    border: 1px solid rgba(47, 191, 113, .45);
    background: var(--ss-success-soft);
    color: #baf7d4;
}

.status-message.error {
    border: 1px solid rgba(239, 68, 68, .45);
    background: var(--ss-danger-soft);
    color: #ffb4b4;
}

.form-grid,
.truck-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.truck-form-grid .form-field {
    grid-template-rows: 20px 44px auto;
    align-content: start;
}

.truck-form-grid .form-field label {
    display: block;
    min-height: 20px;
    line-height: 20px;
}
.form-section {
    margin: 22px 0 16px;
    padding-top: 18px;
    border-top: 1px solid var(--ss-border);
}

.form-section h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 16px;
    color: var(--ss-text-soft);
    font-weight: 700;
    cursor: pointer;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    accent-color: var(--ss-primary);
}

.profile-completion-card.complete {
    border-color: rgba(47, 191, 113, .45);
}

.profile-completion-card.incomplete {
    border-color: rgba(232, 119, 34, .5);
}

.profile-requirements {
    display: grid;
    gap: 6px;
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--ss-text-soft);
}

.profile-date-field {
    max-width: 420px;
}

.profile-qualification-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
    margin-top: 1rem;
}

.driver-qualification-summary {
    display: grid;
    gap: 0.4rem;
    margin: 0.75rem 0;
    padding: 0.8rem;
    border: 1px solid var(--ss-border);
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--ss-primary) 5%, var(--ss-surface));
}

.driver-qualification-chips,
.team-qualification-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.team-qualification-grid {
    margin: 0.75rem 0;
}

@media (max-width: 700px) {
    .profile-qualification-grid {
        grid-template-columns: 1fr;
    }
}

.profile-save-actions {
    grid-template-columns: minmax(180px, 320px);
}

.user-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.user-summary strong {
    color: var(--ss-text);
}

.dashboard-card,
.panel-card,
.listing-card {
    padding: 18px;
}

.dashboard-card {
    min-height: 138px;
}

.dashboard-action {
    width: 100%;
    margin-top: 12px;
}

.kt-badge,
.badge,
.pay-chip,
.status-chip {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
}

.kt-badge-primary,
.pay-chip {
    border: 1px solid rgba(232, 119, 34, .45);
    background: var(--ss-primary-soft);
    color: #ffb46f;
}

.kt-badge-success,
.status-chip.active {
    border: 1px solid rgba(47, 191, 113, .45);
    background: var(--ss-success-soft);
    color: #baf7d4;
}

.kt-badge-warning,
.status-chip.paused,
.status-chip.draft {
    border: 1px solid rgba(245, 158, 11, .45);
    background: var(--ss-warning-soft);
    color: #ffd28a;
}

.kt-badge-muted,
.status-chip {
    border: 1px solid var(--ss-border-strong);
    background: rgba(255, 255, 255, .06);
    color: var(--ss-text-soft);
    text-transform: capitalize;
}

.agreement-panel,
.agreement-preview {
    display: grid;
    gap: 14px;
}

.agreement-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ss-border);
}

.agreement-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ss-text-soft);
    font-weight: 700;
    line-height: 1.35;
}

.agreement-check input {
    margin-top: 2px;
    accent-color: var(--ss-primary);
}

.application-actions {
    margin-top: 12px;
}
.truck-listings-page {
    display: grid;
    gap: 16px;
}

.truck-listings-page .kt-card-content {
    min-width: 0;
}

.truck-list-stack {
    display: grid;
    gap: 14px;
}
.pull-refresh {
    --pull-refresh-offset: 0px;
    position: relative;
    overscroll-behavior-y: contain;
}

.pull-refresh-content {
    display: grid;
    gap: inherit;
    transform: translateY(var(--pull-refresh-offset));
    transition: transform .16s ease;
}

.pull-refresh.is-pulling .pull-refresh-content {
    transition: none;
}

.pull-refresh-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ss-border-strong);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(24, 24, 24, .92);
    color: var(--ss-text-soft);
    font-size: .82rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity .16s ease, transform .16s ease;
}

.pull-refresh.is-pulling .pull-refresh-indicator,
.pull-refresh.is-refreshing .pull-refresh-indicator {
    opacity: 1;
    transform: translate(-50%, 0);
}

.pull-refresh.is-ready .pull-refresh-indicator {
    border-color: rgba(232, 119, 34, .65);
    color: var(--ss-text);
}

.pull-refresh-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .22);
    border-top-color: var(--ss-primary);
    border-radius: 999px;
}

.pull-refresh.is-refreshing .pull-refresh-spinner {
    animation: pull-refresh-spin .75s linear infinite;
}

@keyframes pull-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

.applications-refresh {
    display: grid;
    gap: 16px;
}

.truck-listing-card {
    display: grid;
    gap: 12px;
    padding: 0;
}

.listing-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.listing-card-header > div {
    min-width: 0;
    flex: 1;
}

.listing-card-header .status-chip {
    flex: 0 0 auto;
    margin-top: 2px;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.terms-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.terms-list li,
.terms-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--ss-border);
    padding-top: 8px;
    color: var(--ss-text-muted);
}

.terms-list strong,
.terms-list dt {
    color: var(--ss-text-soft);
    font-weight: 800;
}

.terms-list dd {
    margin: 0;
    text-align: right;
}

.empty-state {
    display: grid;
    gap: 8px;
    border: 1px dashed var(--ss-border-strong);
    border-radius: var(--ss-radius);
    padding: 18px;
    color: var(--ss-text-muted);
    text-align: center;
}

.field-hint {
    font-size: .88rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: 'An error has occurred.';
}

#blazor-error-ui {
    display: none;
    position: fixed;
    z-index: 1000;
    right: 1rem;
    bottom: 1rem;
    max-width: 420px;
    border: 1px solid var(--ss-danger);
    border-radius: var(--ss-radius);
    padding: 1rem;
    background: #220909;
    color: var(--ss-text);
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--ss-text-muted);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@media (max-width: 980px) {
    :root {
        --ss-sidebar-width: 92px;
    }

    .kt-sidebar {
        position: fixed;
        width: var(--ss-sidebar-width);
        border-right: 1px solid var(--ss-border);
        border-bottom: 0;
    }

    .kt-sidebar-header {
        justify-content: center;
        padding: 10px 8px;
    }

    .shiftseat-brand-mark {
        max-width: 68px;
    }

    .kt-sidebar-content {
        padding: 10px 8px;
        overflow-x: hidden;
    }

    .kt-menu {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .kt-menu-title,
    .kt-menu-soon {
        display: none;
    }

    .kt-menu-link {
        justify-content: center;
        padding: 8px;
    }

    .kt-menu-icon {
        margin: 0;
    }

    .kt-wrapper {
        padding-left: var(--ss-sidebar-width);
    }

    .kt-container-fixed {
        width: calc(100vw - var(--ss-sidebar-width) - 28px);
    }

    .kt-header {
        position: sticky;
    }

    .kt-header-container,
    .kt-page-title-row,
    .dashboard-header,
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .kt-header-actions {
        justify-content: flex-start;
    }

    .kt-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .kt-main {
        padding: 18px 0 30px;
    }

    .form-grid,
    .truck-form-grid,
    .form-actions {
        grid-template-columns: 1fr;
    }

    .start-panel,
    .auth-panel,
    .register-panel {
        padding: 18px;
    }

    .kt-card-header,
    .kt-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .kt-btn,
    .primary-link,
    .secondary-link,
    .primary-button,
    .secondary-button {
        width: 100%;
    }
}

/* ShiftSeat product shell refinements */
.shiftseat-shell .kt-sidebar {
    justify-content: space-between;
}

.shiftseat-shell .kt-sidebar-header {
    min-height: 86px;
    padding: 14px 16px;
}

.shiftseat-shell .shiftseat-brand-mark {
    justify-content: center;
    min-height: 58px;
    border: 1px solid rgba(232, 119, 34, .22);
    border-radius: var(--ss-radius);
    padding: 6px 10px;
    background: linear-gradient(180deg, rgba(31, 31, 31, .96), rgba(10, 10, 10, .96));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 14px 34px rgba(0, 0, 0, .32);
}

.shiftseat-shell .brand-logo-compact {
    width: auto;
    max-width: 214px;
    height: auto;
    max-height: 58px;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
}

.shiftseat-nav {
    gap: 5px;
}

.shiftseat-nav .kt-menu-link {
    min-height: 40px;
    padding: 7px 9px;
}

.shiftseat-nav .kt-menu-link.disabled {
    cursor: default;
    opacity: .68;
}

.shiftseat-nav .kt-menu-link.disabled:hover {
    border-color: transparent;
    background: transparent;
    color: var(--ss-text-soft);
    transform: none;
}

.shiftseat-nav .kt-menu-title {
    flex: 1;
}

.kt-menu-soon {
    margin-left: auto;
    border: 1px solid var(--ss-border);
    border-radius: 999px;
    padding: 3px 7px;
    color: var(--ss-text-muted);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.shiftseat-profile-strip {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0 12px 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--ss-radius);
    padding: 10px;
    background: rgba(255, 255, 255, .035);
}

.profile-avatar {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(232, 119, 34, .32);
    border-radius: 50%;
    background: var(--ss-primary-soft);
    color: var(--ss-primary);
    font-size: .9rem;
    font-weight: 800;
}

.profile-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.profile-copy strong,
.profile-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy strong {
    color: var(--ss-text);
    font-size: .86rem;
}

.profile-copy span {
    color: var(--ss-text-muted);
    font-size: .75rem;
    font-weight: 700;
}

.profile-logout {
    min-height: 30px;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-sm);
    background: rgba(255, 255, 255, .04);
    color: var(--ss-text-soft);
    font: inherit;
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
}

.profile-logout:hover {
    border-color: rgba(232, 119, 34, .35);
    color: var(--ss-text);
}

.shiftseat-start {
    min-height: calc(100vh - var(--ss-header-height) - 88px);
}

.start-card,
.auth-card {
    padding: 22px;
}

.hero-logo-plate,
.auth-logo-plate.hero-logo-plate {
    max-width: 440px;
    margin-bottom: 20px;
    padding: 14px 18px;
    overflow: visible;
    border-color: rgba(232, 119, 34, .24);
    background:
        radial-gradient(circle at 50% 0%, rgba(232, 119, 34, .16), transparent 68%),
        linear-gradient(180deg, rgba(31, 31, 31, .98), rgba(8, 8, 8, .98));
}

.hero-logo-plate img,
.auth-logo-plate.hero-logo-plate img {
    width: 100%;
    height: auto;
    max-height: 196px;
    border-radius: 0;
    object-fit: contain;
}

.kt-main {
    padding-top: 20px;
}

.kt-page-title-row,
.dashboard-header,
.page-header {
    margin-bottom: 14px;
}

@media (max-width: 980px) {
    .shiftseat-profile-strip {
        margin: 8px 12px 12px;
    }

    .shiftseat-shell .brand-logo-compact {
        max-width: 220px;
    }
}


/* Keep navigation in the shell, not page content */
.kt-wrapper {
    overflow-x: hidden;
}

.kt-main {
    padding-top: 14px;
}

.dashboard-page-content,
.agreement-panel,
.agreement-preview {
    display: grid;
    gap: 14px;
}

.agreement-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ss-border);
}

.agreement-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ss-text-soft);
    font-weight: 700;
    line-height: 1.35;
}

.agreement-check input {
    margin-top: 2px;
    accent-color: var(--ss-primary);
}

.application-actions {
    margin-top: 12px;
}
.truck-listings-page {
    padding-top: 0;
}

.kt-header-actions .kt-btn {
    width: auto;
    min-width: 0;
}

.kt-header-actions {
    flex-wrap: nowrap;
}

.shiftseat-shell .kt-container-fixed {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 680px) {
    .kt-header-actions .kt-btn {
        width: auto;
    }

    .kt-user-chip {
        display: none;
    }

    .shiftseat-shell .brand-logo-compact {
        max-width: 62px;
        max-height: 46px;
    }
}

/* Split authentication layout and Metronic-style app shell */
.auth-layout-shell {
    min-height: 100vh;
background: radial-gradient(ellipse at 50% 0%, rgba(232, 119, 34, .22) 0%, rgba(26, 26, 26, .78) 34%, #090909 100%);
}

.auth-layout-main {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: clamp(18px, 4vw, 42px);
}

.auth-layout-shell .start-page,
.auth-layout-shell .auth-page,
.auth-layout-shell .register-page {
    min-height: 0;
    width: min(100%, 560px);
}

.auth-layout-shell .auth-card,
.auth-layout-shell .start-card {
    width: 100%;
    margin: 0;
border: 0;
    background: transparent;
    box-shadow: none;
}

.auth-layout-shell .auth-logo-plate,
.auth-layout-shell .hero-logo-plate,
.auth-layout-shell .auth-logo-plate.hero-logo-plate {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.shiftseat-shell.sidebar-collapsed {
    --ss-sidebar-width: 92px;
}

.shiftseat-shell.sidebar-collapsed .kt-menu-title,
.shiftseat-shell.sidebar-collapsed .kt-menu-soon {
    display: none;
}

.shiftseat-shell.sidebar-collapsed .kt-menu-link {
    justify-content: center;
    padding: 8px;
}

.shiftseat-shell.sidebar-collapsed .shiftseat-brand-mark {
    padding: 6px;
}

.shiftseat-shell.sidebar-collapsed .brand-logo-compact {
    max-width: 62px;
    max-height: 46px;
}

/* Keep the desktop navigation in its own column when an assignment page is taller than the viewport. */
@media (min-width: 981px) {
    .shiftseat-shell {
        display: grid;
        grid-template-columns: var(--ss-sidebar-width) minmax(0, 1fr);
        align-items: start;
    }

    .shiftseat-shell .kt-sidebar {
        position: sticky;
        top: 0;
        right: auto;
        bottom: auto;
        left: auto;
        grid-column: 1;
        grid-row: 1;
        width: var(--ss-sidebar-width);
        height: 100dvh;
    }

    .shiftseat-shell .kt-wrapper,
    .shiftseat-shell.sidebar-collapsed .kt-wrapper {
        grid-column: 2;
        min-width: 0;
        padding-left: 0;
    }

    .shiftseat-shell .kt-container-fixed,
    .shiftseat-shell.sidebar-collapsed .kt-container-fixed {
        width: min(var(--ss-page-max), calc(100% - 48px));
    }
}

.kt-header-left {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.kt-btn-icon,
.sidebar-toggle {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
}

.sidebar-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    border-color: var(--ss-border-strong);
    background: rgba(255, 255, 255, .04);
}

.sidebar-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: var(--ss-text-soft);
}

.sidebar-toggle:hover span {
    background: var(--ss-primary);
}

.profile-menu-host {
    position: relative;
}

.profile-trigger {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(232, 119, 34, .32);
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
}

.profile-trigger:hover {
    background: var(--ss-primary-soft);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    display: grid;
    width: min(310px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-lg);
    background: linear-gradient(180deg, rgba(31, 31, 31, .99), rgba(14, 14, 14, .99));
    box-shadow: var(--ss-shadow);
}

.profile-dropdown-header {
    display: grid;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 14px;
}

.profile-dropdown-header strong {
    overflow: hidden;
    color: var(--ss-text);
    font-size: .96rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown-header span:not(.kt-badge) {
    overflow: hidden;
    color: var(--ss-text-muted);
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: transparent;
    color: var(--ss-text-soft);
    padding: 0 14px;
    font: inherit;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.profile-dropdown-link:last-child {
    border-bottom: 0;
}

.profile-dropdown-link:hover {
    background: var(--ss-primary-soft);
    color: var(--ss-text);
}

.profile-dropdown-link.disabled,
.profile-dropdown-link:disabled {
    cursor: default;
    opacity: .68;
}

.profile-dropdown-link.disabled:hover,
.profile-dropdown-link:disabled:hover {
    background: transparent;
    color: var(--ss-text-soft);
}

.profile-dropdown-link .kt-menu-soon {
    display: inline-flex;
}

.shiftseat-shell .kt-header-container {
    min-width: 0;
}

.shiftseat-shell .kt-page-heading {
    min-width: 0;
}

.shiftseat-shell .kt-page-heading h1,
.shiftseat-shell .kt-breadcrumbs {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .shiftseat-shell .kt-header-container {
        flex-direction: row;
        align-items: center;
    }

    .shiftseat-shell .kt-header-actions {
        margin-left: auto;
    }

    .shiftseat-shell .kt-page-heading h1 {
        max-width: 46vw;
    }
}

@media (max-width: 520px) {
    .shiftseat-shell .kt-breadcrumbs {
        display: none;
    }

    .shiftseat-shell .kt-page-heading h1 {
        max-width: 34vw;
        font-size: 1rem;
    }
}

/* Mobile drawer, navigation icons, and avatar behavior */
.nav-svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.kt-menu-icon {
    color: var(--ss-text-muted);
}

.kt-menu-link:hover .kt-menu-icon,
.kt-menu-link.active .kt-menu-icon {
    color: var(--ss-primary);
}

.sidebar-backdrop {
    display: none;
}

.profile-trigger {
    color: var(--ss-primary);
    font-weight: 800;
    line-height: 1;
}

.profile-trigger .profile-avatar {
    border: 0;
    background: transparent;
}

@media (min-width: 981px) {
    .shiftseat-shell.sidebar-collapsed .kt-sidebar {
        width: var(--ss-sidebar-width);
    }
}

@media (max-width: 980px) {
    .shiftseat-shell {
        --ss-sidebar-width: 284px;
    }

    .shiftseat-shell .kt-sidebar {
        position: fixed;
        z-index: 60;
        width: min(82vw, 284px);
        max-width: 284px;
        transform: translateX(-105%);
        transition: transform .2s ease;
        box-shadow: 20px 0 60px rgba(0, 0, 0, .42);
    }

    .shiftseat-shell.sidebar-open .kt-sidebar {
        transform: translateX(0);
    }

    .shiftseat-shell.sidebar-open .kt-menu-title {
        display: grid;
    }

    .shiftseat-shell.sidebar-open .kt-menu-soon,
    .shiftseat-shell.sidebar-open .profile-dropdown-link .kt-menu-soon {
        display: inline-flex;
    }

    .shiftseat-shell.sidebar-open .kt-menu-link {
        justify-content: flex-start;
        padding: 8px 10px;
    }

    .shiftseat-shell.sidebar-open .brand-logo-compact {
        max-width: 214px;
        max-height: 58px;
    }

    .shiftseat-shell .kt-wrapper,
    .shiftseat-shell.sidebar-collapsed .kt-wrapper {
        padding-left: 0;
    }

    .shiftseat-shell .kt-container-fixed,
    .shiftseat-shell.sidebar-collapsed .kt-container-fixed {
        width: min(var(--ss-page-max), calc(100vw - 28px));
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: block;
        border: 0;
        background: rgba(0, 0, 0, .54);
        backdrop-filter: blur(2px);
    }
}

.applications-page .application-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.applications-page .application-form label {
    color: var(--kt-text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
}

.listing-filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -4px;
}

.listing-filter-chip {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--ss-border-strong);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, .04);
    color: var(--ss-text-soft);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.listing-filter-chip strong {
    min-width: 24px;
    border-radius: 999px;
    padding: 3px 7px;
    background: rgba(255, 255, 255, .08);
    color: var(--ss-text);
    font-size: .78rem;
    text-align: center;
}

.listing-filter-chip.active {
    border-color: rgba(232, 119, 34, .65);
    background: var(--ss-primary-soft);
    color: var(--ss-text);
}

.listing-filter-chip.active strong {
    background: var(--ss-primary);
    color: #111;
}

.listing-application-groups {
    display: grid;
    gap: 22px;
}

.listing-application-group {
    display: grid;
    gap: 12px;
}

.listing-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--ss-border);
}

.listing-group-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.listing-group-header p {
    margin: 4px 0 0;
    color: var(--ss-text-muted);
}

.application-card h3 {
    margin: 0;
    font-size: 1.15rem;
}
.application-card .application-note {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    display: grid;
    gap: 0.3rem;
    margin-top: 0.85rem;
    padding: 0.85rem;
}

.application-card .application-note strong {
    color: var(--kt-text-strong);
    font-size: 0.9rem;
}

.application-card .application-note span {
    color: var(--kt-text-muted);
}

.isp-trucks-page {
    max-width: 980px;
}

.posted-trucks-panel {
    min-height: 0;
}

.posted-trucks-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-chip.expired {
    border-color: rgba(239, 68, 68, .45);
    background: var(--ss-danger-soft);
    color: #ffb4b4;
}

.status-chip-button {
    cursor: pointer;
    appearance: none;
    border-style: solid;
    font-family: inherit;
}

.status-chip-button:hover,
.status-chip-button:focus-visible {
    border-color: var(--ss-primary);
    box-shadow: 0 0 0 3px var(--ss-primary-soft);
    color: var(--ss-text);
    outline: none;
}

.kt-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
}

.kt-modal {
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.kt-modal .kt-card-content {
    max-height: calc(100vh - 170px);
    overflow-y: auto;
}

.renewal-modal {
    width: min(520px, 100%);
}

.renewal-copy {
    margin: 0 0 18px;
    color: var(--ss-text-muted);
}

.kt-icon-btn {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ss-border-strong);
    border-radius: var(--ss-radius-sm);
    background: rgba(255, 255, 255, .05);
    color: var(--ss-text-soft);
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.kt-icon-btn:hover,
.kt-icon-btn:focus-visible {
    border-color: var(--ss-primary);
    color: var(--ss-text);
    outline: none;
}

@media (max-width: 680px) {
    .posted-trucks-actions {
        width: 100%;
        justify-content: space-between;
    }

    .kt-modal-backdrop {
        align-items: end;
        padding: 10px;
    }

    .kt-modal {
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
    }

    .kt-modal .kt-card-content {
        max-height: calc(100vh - 145px);
        max-height: calc(100dvh - 145px);
        padding-bottom: 28px;
        padding-bottom: max(28px, env(safe-area-inset-bottom));
        scroll-padding-bottom: 28px;
        scroll-padding-bottom: max(28px, env(safe-area-inset-bottom));
        overscroll-behavior: contain;
    }
}

.agreement-contract {
    border-top: 1px solid var(--ss-border);
}

.agreement-contract-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.agreement-contract-header h3 {
    margin: 0;
}

.agreement-terms-list .agreement-section-label {
    border-top-color: var(--ss-border-strong);
    padding-top: 14px;
}

.agreement-terms-list .agreement-section-label dt {
    color: var(--ss-text);
    font-size: .95rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.agreement-rate-detail {
    color: var(--ss-text-muted);
    margin-left: 8px;
}

.dashboard-assigned-card {
    grid-column: span 2;
}

.dashboard-assigned-list {
    display: grid;
    gap: 12px;
}

.dashboard-assigned-item {
    display: grid;
    gap: 10px;
    border: 1px solid var(--ss-border);
    border-radius: 12px;
    padding: 12px;
}

.dashboard-assigned-item > div:first-child {
    display: grid;
    gap: 4px;
}

.dashboard-assigned-item strong {
    color: var(--ss-text);
    font-size: 1rem;
}

.dashboard-assigned-item span {
    color: var(--ss-text-muted);
}

@media (max-width: 900px) {
    .dashboard-assigned-card {
        grid-column: auto;
    }
}

.dashboard-list-card .kt-card-content {
    --dashboard-result-gap: 12px;
    display: grid;
    gap: var(--dashboard-result-gap);
}

.dashboard-list-header,
.dashboard-list-actions,
.dashboard-result-row,
.dashboard-result-meta {
    display: flex;
    align-items: center;
}

.dashboard-list-header {
    justify-content: space-between;
    gap: 16px;
}

.dashboard-list-actions {
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-result-list {
    display: grid;
    gap: var(--dashboard-result-gap);
}

.dashboard-result-row {
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--ss-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
    padding: 10px 14px 10px 10px;
}

.dashboard-result-icon {
    display: grid;
    width: 56px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--ss-border);
    border-radius: 10px;
    background: rgba(232, 119, 34, .1);
    color: var(--ss-primary);
}

.dashboard-result-icon svg {
    width: 25px;
    height: 25px;
}

.dashboard-result-main {
    display: grid;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.dashboard-result-main strong {
    color: var(--ss-text);
    font-size: .98rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-result-meta {
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--ss-text-muted);
    font-size: .86rem;
}

.dashboard-compact-grid .kt-account-card .kt-card-content {
    min-height: auto;
}

@media (max-width: 700px) {
    .dashboard-list-header,
    .dashboard-result-row {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-result-row {
        position: relative;
    }

    .dashboard-result-icon {
        width: 48px;
        height: 42px;
    }
}

.dashboard-result-row {
    color: inherit;
    text-decoration: none;
}

.dashboard-result-row:hover,
.dashboard-result-row:focus-visible {
    border-color: rgba(232, 119, 34, .55);
    box-shadow: 0 0 0 3px rgba(232, 119, 34, .12);
    outline: none;
}

.dashboard-result-action,
.dashboard-more-link {
    color: var(--ss-text);
    font-weight: 800;
}

.dashboard-result-action {
    border: 1px solid var(--ss-border-strong);
    border-radius: 10px;
    padding: 8px 14px;
    white-space: nowrap;
}

.dashboard-more-link {
    justify-self: start;
    text-decoration: none;
}

.dashboard-more-link:hover,
.dashboard-more-link:focus-visible {
    color: var(--ss-primary);
    outline: none;
}

.dashboard-result-action-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
}

.dashboard-result-action-group .dashboard-result-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.dashboard-result-action-group {
    flex: 0 0 min(100%, 340px);
    max-width: 340px;
}

@media (max-width: 700px) {
    .dashboard-result-action-group {
        max-width: none;
    }
}

.dashboard-result-row {
    align-items: center;
    padding: 14px;
}

.dashboard-result-action-group {
    flex: 0 0 min(100%, 360px);
    max-width: 360px;
}

.dashboard-result-action-group .dashboard-result-action {
    min-height: 44px;
    border-radius: 10px;
    padding: 10px 14px;
    line-height: 1;
}

.dashboard-result-icon {
    display: none;
}

@media (max-width: 700px) {
    .dashboard-result-row {
        align-items: stretch;
        gap: 14px;
        padding: 12px;
    }

    .dashboard-result-action-group {
        flex-basis: auto;
        width: 100%;
    }

    .dashboard-result-action-group .dashboard-result-action {
        min-height: 42px;
    }
}

.dashboard-more-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border: 1px solid var(--ss-border-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
    padding: 8px 14px;
    color: var(--ss-text);
    line-height: 1;
    text-decoration: none;
}

.dashboard-more-link:hover,
.dashboard-more-link:focus-visible {
    border-color: rgba(232, 119, 34, .55);
    background: rgba(232, 119, 34, .08);
    color: var(--ss-text);
    box-shadow: 0 0 0 3px rgba(232, 119, 34, .12);
    outline: none;
}

.dashboard-list-card .kt-card-content {
    --dashboard-result-gap: 12px;
}

.dashboard-list-header {
    margin-bottom: var(--dashboard-result-gap);
}

.dashboard-result-main {
    width: 100%;
    text-align: left;
    justify-items: start;
}

.dashboard-result-meta {
    justify-content: flex-start;
}

.dashboard-more-link {
    justify-self: end;
    margin-top: var(--dashboard-result-gap);
}

@media (max-width: 700px) {
    .dashboard-result-main {
        align-items: start;
        text-align: left;
    }

    .dashboard-more-link {
        align-self: flex-end;
        justify-self: end;
    }
}

.dashboard-result-meta {
    width: 100%;
    justify-content: space-between;
}

.dashboard-result-status {
    margin-left: auto;
    text-align: right;
}

@media (max-width: 700px) {
    .dashboard-result-meta {
        align-items: center;
        justify-content: space-between;
    }
}

.inspection-page {
    gap: 1.25rem;
}

.inspection-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.inspection-step {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem;
    border: 1px solid var(--shiftseat-border);
    border-radius: .75rem;
    background: var(--shiftseat-surface-soft);
    color: var(--shiftseat-muted);
}

.inspection-step span {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid var(--shiftseat-border-strong);
    color: var(--shiftseat-muted);
    font-weight: 800;
}

.inspection-step.active,
.inspection-step.complete {
    color: var(--shiftseat-text);
    border-color: rgba(232, 119, 34, .45);
}

.inspection-step.active span,
.inspection-step.complete span {
    border-color: rgba(232, 119, 34, .7);
    color: var(--shiftseat-accent);
}

.inspection-summary-card,
.inspection-submit-card,
.inspection-card {
    overflow: hidden;
}

.inspection-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.inspection-card-heading h2,
.inspection-card-heading p,
.inspection-photo-card p {
    margin: 0;
}

.inspection-summary-list {
    margin: 1rem 0;
}

.inspection-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.inspection-checklist,
.inspection-photo-grid {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.inspection-photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.inspection-photo-card {
    display: grid;
    align-content: start;
    gap: .65rem;
    min-width: 0;
    padding: .9rem;
    border: 1px solid var(--shiftseat-border);
    border-radius: .75rem;
    background: rgba(255, 255, 255, .025);
}

.inspection-photo-card.complete {
    border-color: rgba(34, 197, 94, .45);
    background: rgba(34, 197, 94, .08);
}

.inspection-photo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: .55rem;
    object-fit: cover;
}

.inspection-photo-card > .kt-btn {
    position: relative;
    overflow: hidden;
}

.inspection-photo-card > .kt-btn input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.inspection-evidence-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 760px) {
    .inspection-card-heading,
    .inspection-evidence-compare {
        grid-template-columns: 1fr;
    }

    .inspection-card-heading {
        display: grid;
    }
}

.inspection-check-item,
.inspection-photo-slot,
.inspection-next-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem;
    border: 1px solid var(--shiftseat-border);
    border-radius: .75rem;
    background: rgba(255, 255, 255, .025);
}

.inspection-check-item {
    justify-content: flex-start;
    cursor: pointer;
}

.inspection-check-item input {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--shiftseat-accent);
}

.inspection-check-item span,
.inspection-photo-copy,
.inspection-next-panel div {
    display: grid;
    gap: .2rem;
}

.inspection-check-item small,
.inspection-photo-slot span,
.inspection-next-panel span,
.inspection-hint {
    color: var(--shiftseat-muted);
}

.inspection-check-item.complete,
.inspection-photo-slot.complete {
    border-color: rgba(34, 197, 94, .45);
    background: rgba(34, 197, 94, .08);
}

.inspection-photo-slot {
    align-items: stretch;
}

.inspection-photo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.inspection-photo-copy {
    min-width: 0;
}

.inspection-photo-slot p {
    margin: 0;
    color: var(--shiftseat-muted);
}

.inspection-photo-action {
    position: relative;
    width: max-content;
    min-height: 2.25rem;
    padding: .42rem .85rem;
    overflow: hidden;
}

.inspection-photo-action.uploading {
    opacity: .72;
    cursor: wait;
}

.inspection-photo-action.uploading input[type="file"] {
    cursor: wait;
}
.inspection-photo-action input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.inspection-photo-preview {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 6rem;
    width: 6rem;
    height: 4.75rem;
    overflow: hidden;
    border: 1px solid var(--shiftseat-border-strong);
    border-radius: .75rem;
    background: rgba(0, 0, 0, .28);
}

.inspection-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inspection-photo-preview-placeholder {
    color: var(--shiftseat-muted);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.inspection-photo-clear {
    position: absolute;
    top: .25rem;
    right: .25rem;
    display: grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.inspection-photo-clear:hover,
.inspection-photo-clear:focus-visible {
    border-color: var(--shiftseat-accent);
    color: var(--shiftseat-accent);
}

.inspection-next-panel {
    margin-top: 1rem;
    align-items: center;
}

.inspection-next-panel .kt-btn {
    flex: 0 0 auto;
}

@media (max-width: 760px) {
    .inspection-progress,
    .inspection-grid {
        grid-template-columns: 1fr;
    }

    .inspection-next-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .inspection-next-panel .kt-btn {
        width: 100%;
    }
}

.assignment-workflow-panel {
    display: grid;
    gap: .9rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--shiftseat-border);
    border-radius: .75rem;
    background: rgba(255, 255, 255, .025);
}

.assignment-current-stage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.assignment-current-stage span:first-child {
    color: var(--shiftseat-muted);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.assignment-current-stage strong {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    text-align: right;
}

.workflow-stage-dot {
    width: .7rem;
    height: .7rem;
    border-radius: 999px;
    background: var(--shiftseat-muted);
    box-shadow: 0 0 0 .22rem rgba(255, 255, 255, .08);
}

.workflow-stage-dot.pending {
    background: #f59e0b;
}

.workflow-stage-dot.ready,
.workflow-stage-dot.active {
    background: var(--shiftseat-accent);
}

.workflow-stage-dot.complete {
    background: #22c55e;
}


.assignment-timeline-label {
    color: var(--shiftseat-muted);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}
.assignment-timeline {
    display: grid;
    gap: .65rem;
}

.assignment-timeline-item {
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: .65rem;
    align-items: start;
    color: var(--shiftseat-muted);
}

.timeline-marker {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid var(--shiftseat-border-strong);
    border-radius: 999px;
    color: transparent;
    font-size: .75rem;
    font-weight: 900;
}

.assignment-timeline-item.complete {
    color: var(--shiftseat-text);
}

.assignment-timeline-item.complete .timeline-marker {
    border-color: rgba(34, 197, 94, .62);
    background: rgba(34, 197, 94, .16);
    color: #86efac;
}

.assignment-timeline-item div {
    display: grid;
    gap: .15rem;
}

.assignment-timeline-item small {
    color: var(--shiftseat-muted);
}


.fleet-transfer-panel {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(232, 119, 34, .32);
    border-radius: .75rem;
    background: rgba(232, 119, 34, .08);
}

.fleet-transfer-panel h3 {
    margin: 0 0 .25rem;
    font-size: 1rem;
}

.fleet-transfer-panel p {
    margin: 0;
    color: var(--shiftseat-muted);
}

.fleet-transfer-list {
    display: grid;
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fleet-transfer-list li {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: .5rem;
    align-items: center;
    color: var(--shiftseat-text);
}

.fleet-transfer-list li::before {
    content: "";
    width: .8rem;
    height: .8rem;
    border: 1px solid rgba(232, 119, 34, .58);
    border-radius: .2rem;
    background: rgba(0, 0, 0, .22);
}
.assignment-card-action {
    margin-top: 1rem;
}

@media (max-width: 760px) {
    .assignment-current-stage {
        align-items: flex-start;
        flex-direction: column;
    }

    .assignment-current-stage strong {
        text-align: left;
    }
}
.load-entry-page,
.loads-page {
    gap: 1rem;
}

.load-context-card,
.load-entry-card,
.load-summary-card {
    overflow: hidden;
}

.load-context-list,
.dashboard-load-summary,
.assignment-load-summary {
    margin-top: 1rem;
}

.load-validation-summary ul {
    margin: .5rem 0 0;
    padding-left: 1.1rem;
}

.form-field-wide {
    grid-column: span 2;
}

.appointment-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.appointment-choice {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    min-height: 76px;
    padding: .9rem;
    border: 1px solid var(--shiftseat-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    cursor: pointer;
}

.appointment-choice.selected {
    border-color: var(--shiftseat-accent);
    background: rgba(232, 119, 34, .12);
}

.appointment-choice input {
    margin-top: .25rem;
    accent-color: var(--shiftseat-accent);
}

.appointment-choice span {
    display: grid;
    gap: .2rem;
}

.appointment-choice small,
.load-empty-copy {
    color: var(--shiftseat-muted);
}

.appointment-time-grid {
    margin-top: 1rem;
}

.load-entry-actions {
    margin-top: 1rem;
}

@media (max-width: 760px) {
    .appointment-choice-grid {
        grid-template-columns: 1fr;
    }

    .form-field-wide {
        grid-column: auto;
    }
}

.load-summary-card .kt-card-content {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.load-summary-card .listing-card-header {
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .25rem;
}

.load-summary-card .listing-card-header h2 {
    margin-bottom: .35rem;
}

.load-summary-card .listing-card-header p {
    margin: 0;
    color: var(--shiftseat-muted);
}

.load-summary-card .load-empty-copy {
    display: block;
    margin: .25rem 0 .5rem;
    line-height: 1.45;
}

.load-summary-card .kt-btn-block {
    margin-top: .25rem;
}

.load-field-message {
    display: block;
    margin-top: .5rem;
}

.appointment-choice.invalid-choice {
    border-color: var(--ss-danger);
    outline: 1px solid var(--ss-danger);
}

.form-field .validation-message {
    display: block;
    margin-top: .35rem;
}

.load-entry-page .status-message {
    margin-bottom: 12px;
    white-space: pre-line;
}

.dashboard-card-action-button {
    width: 100%;
    min-height: 40px;
    height: 40px;
    padding-top: 0;
    padding-bottom: 0;
}

.dashboard-card-action-button:disabled {
    opacity: .65;
}

.dashboard-profile-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.dashboard-profile-status {
    flex: 0 0 auto;
    min-height: 20px;
    padding: 3px 8px;
    font-size: .65rem;
}


/* Co-driver team interface */
.driver-team-page {
    max-width: 920px;
}

.team-context-banner,
.team-application-summary,
.team-member-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-context-banner {
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border: 1px solid color-mix(in srgb, var(--ss-orange) 40%, var(--ss-border));
    border-radius: var(--ss-radius-md);
    background: color-mix(in srgb, var(--ss-orange) 8%, var(--ss-surface));
}

.team-context-banner > div,
.team-member-row > div:not(.team-member-avatar),
.team-member-inline {
    display: grid;
    gap: 0.15rem;
}

.team-context-banner span,
.team-member-row span,
.team-member-inline span,
.team-application-prompt {
    color: var(--ss-text-muted);
}

.team-member-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.team-member-row {
    padding: 0.85rem;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-md);
    background: var(--ss-surface-raised);
}

.team-member-row .kt-badge {
    margin-left: auto;
}

.team-member-avatar {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 999px;
    color: #111;
    background: var(--ss-orange);
    font-weight: 800;
}

.team-application-summary {
    flex-wrap: wrap;
    padding: 0.8rem 0;
}

.team-member-inline {
    min-width: 12rem;
}

.team-application-choice {
    margin-top: 0.25rem;
}

.team-application-prompt {
    padding: 0.7rem 0;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .team-context-banner,
    .team-member-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .team-member-row .kt-badge {
        margin-left: 0;
    }
}
/* Trip event timeline */
.trip-events-page {
    max-width: 920px;
}

.trip-load-summary {
    margin-bottom: 1.5rem;
}

.trip-load-summary .kt-card-content,
.trip-event-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.trip-load-summary h2,
.trip-event-card h3 {
    margin: 0;
}

.trip-eyebrow {
    color: var(--ss-text-muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.trip-event-group {
    margin-top: 1.5rem;
}

.trip-event-group > h2 {
    font-size: 1rem;
    margin: 0 0 .75rem;
}

.trip-event-stack {
    display: grid;
    gap: .85rem;
}

.trip-event-card.locked {
    opacity: .64;
}

.trip-event-card.next {
    border-color: var(--ss-primary);
}

.trip-load-summary .status-chip.complete {
    border: 1px solid rgba(47, 191, 113, .45);
    background: var(--ss-success-soft);
    color: #baf7d4;
}

.trip-event-heading {
    justify-content: flex-start;
}

.trip-event-heading p {
    color: var(--ss-text-muted);
    margin: .2rem 0 0;
}

.trip-step-icon {
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--ss-border);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 2.25rem;
    height: 2.25rem;
    justify-content: center;
}

.trip-event-card.complete .trip-step-icon {
    background: rgba(20, 180, 100, .14);
    border-color: #2d9d66;
    color: #77e3aa;
}

.trip-event-evidence {
    display: grid;
    gap: .65rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1rem 0 0;
}

.trip-event-evidence > div {
    border-top: 1px solid var(--ss-border);
    padding-top: .65rem;
}

.trip-event-evidence dt {
    color: var(--ss-text-muted);
    font-size: .78rem;
    margin-bottom: .15rem;
}

.trip-event-evidence dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.trip-event-help {
    border-top: 1px solid var(--ss-border);
    margin-top: 1rem;
    padding: .8rem 0;
}

.trip-event-help summary {
    color: var(--ss-primary);
    cursor: pointer;
    font-weight: 700;
}

.trip-event-help p,
.trip-permanent-notice {
    color: var(--ss-text-muted);
}

.trip-confirmation-modal {
    max-width: 620px;
}

.confirmation-evidence {
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .trip-event-evidence {
        grid-template-columns: 1fr;
    }

    .trip-confirmation-modal .form-actions {
        flex-direction: column-reverse;
    }

    .trip-confirmation-modal .kt-btn {
        width: 100%;
    }
}
.role-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .25rem;
    padding: .25rem;
    border: 1px solid var(--shiftseat-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
}

.role-switch-option {
    position: relative;
    cursor: pointer;
}

.role-switch-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-switch-option span {
    display: block;
    padding: .7rem 1rem;
    border-radius: 7px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    transition: background .15s ease, color .15s ease;
}

.role-switch-option.selected span {
    background: var(--shiftseat-accent);
    color: #fff;
}

.role-switch-option:focus-within span {
    outline: 2px solid var(--ss-primary);
    outline-offset: 2px;
}

.fleet-flow-switch {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    width: fit-content;
    cursor: pointer;
    user-select: none;
}

.fleet-flow-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fleet-flow-switch-track {
    display: inline-flex;
    align-items: center;
    width: 3rem;
    height: 1.65rem;
    padding: .18rem;
    border: 1px solid var(--ss-border-strong);
    border-radius: 999px;
    background: var(--ss-surface-3);
    transition: background .15s ease, border-color .15s ease;
}

.fleet-flow-switch-track span {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #b8b8b8;
    transition: transform .15s ease, background .15s ease;
}

.fleet-flow-switch input:checked + .fleet-flow-switch-track {
    border-color: var(--ss-primary);
    background: var(--ss-primary-soft);
}

.fleet-flow-switch input:checked + .fleet-flow-switch-track span {
    transform: translateX(1.3rem);
    background: var(--ss-primary);
}

.fleet-flow-switch input:focus-visible + .fleet-flow-switch-track {
    outline: 2px solid var(--ss-primary);
    outline-offset: 3px;
}

.fleet-flow-switch-state {
    min-width: 1.8rem;
    font-weight: 700;
}

.listing-location-block,
.assignment-location-snapshot,
.amendment-review-panel {
    display: grid;
    gap: 0.45rem;
    margin: 1rem 0;
    padding: 0.9rem;
    border: 1px solid var(--kt-border-color, #343434);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.025);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.status-message.warning {
    color: #f6bd60;
    border-color: rgba(246, 189, 96, 0.45);
    background: rgba(246, 189, 96, 0.08);
}
.location-map-preview {
    position: relative;
    min-height: 12rem;
    margin-top: .25rem;
    overflow: hidden;
    border: 1px solid var(--kt-border-color, #343434);
    border-radius: .75rem;
    background: rgba(255, 255, 255, .025);
}

.location-map-preview img {
    display: block;
    width: 100%;
    min-height: 12rem;
    aspect-ratio: 45 / 16;
    object-fit: cover;
}

.location-map-placeholder {
    display: grid;
    min-height: 12rem;
    padding: 1rem;
    place-items: center;
    color: var(--ss-text-muted);
    text-align: center;
}

.coordinate-caption {
    position: absolute;
    right: .65rem;
    bottom: .55rem;
    left: .65rem;
    padding: .35rem .5rem;
    border-radius: .4rem;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    font-size: .78rem;
    text-align: center;
}
.location-entry-section {
    display: grid;
    gap: 1rem;
}

.location-search-field {
    position: relative;
}

.location-search-row {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.location-search-row .kt-input {
    flex: 1;
}

.location-gps-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.location-search-results {
    display: grid;
    gap: .35rem;
    max-height: 16rem;
    margin-top: .4rem;
    padding: .35rem;
    overflow-y: auto;
    border: 1px solid var(--kt-border-color, #343434);
    border-radius: .65rem;
    background: var(--kt-card-background, #181818);
}

.location-search-result {
    display: grid;
    gap: .2rem;
    width: 100%;
    padding: .7rem .8rem;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.location-search-result:hover,
.location-search-result:focus-visible {
    background: rgba(245, 130, 32, .12);
    outline: 1px solid rgba(245, 130, 32, .55);
}

.location-search-result span,
.location-lookup-message {
    color: var(--ss-text-muted);
    font-size: .82rem;
}

.location-manual-controls {
    padding: .8rem;
    border: 1px solid var(--kt-border-color, #343434);
    border-radius: .65rem;
}

.location-manual-controls summary {
    font-weight: 700;
    cursor: pointer;
}

.location-manual-controls[open] summary {
    margin-bottom: .7rem;
}

.location-confirmation {
    padding: .8rem;
    border: 1px solid rgba(245, 130, 32, .35);
    border-radius: .65rem;
    background: rgba(245, 130, 32, .06);
}

@media (max-width: 640px) {
    .location-search-row {
        align-items: stretch;
        flex-direction: column;
    }

    .location-gps-button {
        width: 100%;
    }
}
.date-time-picker-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    appearance: none;
    color: var(--ss-text);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.date-time-picker-trigger:hover,
.date-time-picker-trigger:focus-visible {
    border-color: var(--ss-primary);
    box-shadow: 0 0 0 3px var(--ss-primary-soft);
    outline: none;
}

.date-time-picker-trigger-action {
    color: var(--ss-primary);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.date-time-picker-backdrop {
    z-index: 940;
}

.date-time-picker-modal {
    width: min(680px, 100%);
}

.date-time-picker-fields {
    display: grid;
    grid-template-columns: minmax(190px, 1.5fr) repeat(3, minmax(92px, .65fr));
    gap: 14px;
}

.date-time-picker-actions {
    margin-top: 22px;
}

@media (max-width: 680px) {
    .date-time-picker-fields {
        grid-template-columns: repeat(3, 1fr);
    }

    .date-time-picker-date {
        grid-column: 1 / -1;
    }

    .date-time-picker-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Structured truck-listing fields */
.structured-listing-section {
    display: grid;
    gap: 1rem;
}

.listing-option-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0.85rem;
    border: 1px solid var(--kt-border, #343438);
    border-radius: 0.75rem;
}

.listing-option-fieldset legend {
    padding: 0 0.35rem;
    font-weight: 700;
}

.listing-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.listing-option {
    margin: 0;
    min-width: 0;
}

.listing-option.disabled {
    opacity: 0.5;
}

.listing-attribute-details {
    margin: 0.9rem 0;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--kt-border, #343438);
    border-radius: 0.75rem;
}

.listing-attribute-details summary {
    cursor: pointer;
    font-weight: 700;
}

.listing-attribute-details[open] summary {
    margin-bottom: 0.75rem;
}

.reply-composer {
    display: grid;
    gap: 0.55rem;
    margin: 0.9rem 0;
}

.reply-composer .kt-btn {
    justify-self: start;
}

@media (max-width: 640px) {
    .listing-option-grid {
        grid-template-columns: 1fr;
    }
}

/* Assignment Section 12 personal initialing */
.section12-initialing-card {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.section12-initialing-heading {
    align-items: flex-start;
    margin-bottom: 0;
}

.section12-initialing-heading h3,
.section12-initialing-heading p {
    margin: 0;
}

.section12-initialing-heading p {
    margin-top: .35rem;
    color: var(--ss-text-muted);
}

.section12-version-summary {
    margin: 0;
}

.section12-source {
    max-height: 24rem;
    padding: 1rem;
    overflow: auto;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-md);
    background: var(--ss-surface-raised);
    scrollbar-gutter: stable;
}

.section12-source:focus-visible {
    border-color: var(--ss-primary);
    box-shadow: 0 0 0 3px var(--ss-primary-soft);
    outline: none;
}

.section12-source pre {
    margin: 0;
    color: inherit;
    font: inherit;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.section12-party-summary,
.section12-initialing-form,
.section12-integrated-signing {
    display: grid;
    gap: .85rem;
}

.section12-integrated-signing {
    margin: 1rem 0;
    padding: .9rem;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-md);
    background: rgba(255, 255, 255, .025);
}

.section12-party-summary-heading,
.section12-party-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section12-party-summary-heading > div,
.section12-party-row > div,
.section12-party-state {
    display: grid;
    gap: .2rem;
}

.section12-party-summary-heading span,
.section12-party-row span,
.section12-party-state small {
    color: var(--ss-text-muted);
}

.section12-party-list {
    display: grid;
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.section12-party-row {
    padding: .8rem .9rem;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-md);
    background: rgba(255, 255, 255, .025);
}

.section12-party-row.complete {
    border-color: rgba(47, 191, 113, .45);
    background: var(--ss-success-soft);
}

.section12-party-state {
    flex: 0 0 auto;
    text-align: right;
}

.section12-personal-confirmation {
    margin: 0;
}

.section12-signing-modal {
    display: flex;
    width: min(54rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    flex-direction: column;
    overflow: hidden;
}

.section12-signing-modal-content,
.section12-signing-step {
    display: grid;
    gap: 1rem;
}

.section12-signing-modal-content {
    overflow-y: auto;
}

.section12-signing-viewport {
    min-height: 18rem;
    max-height: min(45vh, 30rem);
    overscroll-behavior: contain;
}

.section12-scroll-guidance,
.section12-actor-note {
    margin: 0;
    color: var(--ss-text-muted);
    font-size: .92rem;
    line-height: 1.45;
}

.section12-scroll-guidance {
    padding: .75rem .85rem;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-md);
    background: rgba(255, 255, 255, .025);
}

.section12-scroll-complete {
    margin: 0;
}

@media (max-width: 640px) {
    .section12-party-summary-heading,
    .section12-party-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .section12-party-summary-heading .kt-btn {
        width: 100%;
    }

    .section12-party-state {
        text-align: left;
    }

    .section12-signing-modal {
        width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
    }

    .section12-signing-viewport {
        min-height: 14rem;
        max-height: 42vh;
    }
}
