:root {
    --bg: #edf3f5;
    --surface: #ffffff;
    --surface-soft: #f3f8fa;
    --surface-muted: #e9f1f4;
    --accent-teal-bg: #ebf9fb;
    --accent-coral-bg: #fff1ee;
    --text: #15323b;
    --muted: #617680;
    --line: #d5e1e6;
    --teal: #0a8090;
    --teal-strong: #076b78;
    --teal-soft: rgba(10, 128, 144, 0.12);
    --coral: #f15748;
    --coral-strong: #db4d3f;
    --coral-soft: rgba(241, 87, 72, 0.12);
    --ink: #10313a;
    --input-bg: #ffffff;
    --input-border: #c8d6dc;
    --sidebar-bg: #0d3a43;
    --sidebar-text: #eff8fa;
    --sidebar-muted: rgba(239, 248, 250, 0.72);
    --sidebar-line: rgba(255, 255, 255, 0.12);
    --chart-grid: rgba(21, 50, 59, 0.10);
    --chart-axis: #6a7f88;
    --chart-value: #38535d;
    --shadow: 0 18px 48px rgba(16, 49, 58, 0.10);
    --radius: 20px;
}

html[data-theme="dark"] {
    --bg: #000000;
    --surface: #050505;
    --surface-soft: #090909;
    --surface-muted: #0d0d0d;
    --accent-teal-bg: #051012;
    --accent-coral-bg: #140807;
    --text: #f2f6f7;
    --muted: #9aa8ad;
    --line: #1a1a1a;
    --teal-soft: rgba(10, 128, 144, 0.18);
    --coral-soft: rgba(241, 87, 72, 0.16);
    --ink: #e6f0f2;
    --input-bg: #030303;
    --input-border: #202020;
    --sidebar-bg: #000000;
    --sidebar-text: #f6fbfc;
    --sidebar-muted: rgba(246, 251, 252, 0.62);
    --sidebar-line: rgba(255, 255, 255, 0.06);
    --chart-grid: rgba(255, 255, 255, 0.08);
    --chart-axis: #8b9a9f;
    --chart-value: #edf4f6;
    --shadow: none;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100vh;
}

body {
    font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--teal);
    text-decoration: none;
}

.ui-icon {
    width: 18px;
    height: 18px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-shell {
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 100vh;
}

.sidebar {
    padding: 26px 22px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-right: 1px solid var(--sidebar-line);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-mobile-head {
    display: none;
}

.mobile-nav-backdrop,
.mobile-nav-toggle,
.mobile-nav-close {
    display: none;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--sidebar-text);
}

.brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 20px;
    flex: 0 0 auto;
}

.brand-copy {
    display: grid;
    gap: 4px;
}

.brand-copy span {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--sidebar-muted);
}

.brand-copy strong {
    font-size: 1.4rem;
    line-height: 1;
}

.brand-copy small {
    color: var(--sidebar-muted);
    font-size: 0.92rem;
}

.nav {
    display: grid;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--sidebar-text);
    background: transparent;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.nav-link.is-active {
    background: var(--coral);
    box-shadow: 0 14px 30px rgba(241, 87, 72, 0.28);
}

.nav-label {
    font-weight: 700;
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 12px;
}

.sidebar-user {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 6px;
}

.sidebar-user span {
    color: var(--sidebar-muted);
    font-size: 0.88rem;
}

.ghost-link {
    color: var(--ink);
    font-weight: 700;
}

.ghost-link--sidebar {
    color: var(--sidebar-text);
}

.content {
    padding: 28px 32px 34px;
    display: grid;
    gap: 20px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.topbar-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.topbar-main > div {
    min-width: 0;
}

.topbar h1 {
    margin: 4px 0 0;
    font-size: clamp(2rem, 3.3vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-toggle,
.mobile-nav-close {
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.mobile-nav-toggle {
    padding: 11px 14px;
    min-height: 48px;
    box-shadow: var(--shadow);
}

.mobile-nav-close {
    width: 46px;
    height: 46px;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--sidebar-text);
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--teal);
}

.theme-toggle__icons {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--surface-soft);
}

html[data-theme="dark"] .theme-toggle {
    background: #020202;
}

html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .chart-surface,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .route-option,
html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea,
html[data-theme="dark"] .data-table th {
    box-shadow: none;
}

html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .login-card {
    background-image: none;
}

.theme-icon--sun {
    display: none;
}

html[data-theme="dark"] .theme-icon--moon {
    display: none;
}

html[data-theme="dark"] .theme-icon--sun {
    display: block;
}

.theme-toggle__label {
    font-weight: 700;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--teal);
    font-size: 0.74rem;
    font-weight: 800;
}

.muted,
small {
    color: var(--muted);
}

.hero-card,
.panel,
.metric-card,
.info-card,
.login-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card,
.panel,
.metric-card,
.info-card {
    padding: 24px;
}

.hero-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    border-top: 4px solid var(--coral);
}

.hero-card--compact {
    padding: 18px 22px;
    gap: 16px;
}

.hero-card h2,
.panel h3 {
    margin: 6px 0 0;
}

.hero-card p:last-child {
    margin-bottom: 0;
}

.metrics-grid,
.card-grid {
    display: grid;
    gap: 16px;
}

.metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.metric-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 18px;
    align-content: start;
    min-height: 0;
}

.metrics-grid .metric-card:nth-child(1),
.metrics-grid .metric-card:nth-child(3) {
    border-top: 4px solid var(--teal);
    background: var(--accent-teal-bg);
}

.metrics-grid .metric-card:nth-child(2),
.metrics-grid .metric-card:nth-child(4) {
    border-top: 4px solid var(--coral);
    background: var(--accent-coral-bg);
}

.metric-card strong {
    display: block;
    margin-top: 10px;
    font-size: 2rem;
    letter-spacing: -0.03em;
}

.metric-card__body {
    display: grid;
    gap: 6px;
}

.metric-card__action {
    justify-self: start;
    margin-top: 2px;
}

.panel {
    border-top: 3px solid transparent;
}

.panel--compact {
    max-width: 760px;
}

.dashboard-hero .compact-field {
    min-width: 138px;
}

.grid-two > .panel:nth-child(odd),
.card-grid > .info-card:nth-child(odd) {
    border-top-color: var(--teal);
}

.grid-two > .panel:nth-child(even),
.card-grid > .info-card:nth-child(even) {
    border-top-color: var(--coral);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 16px;
}

.chart-surface {
    min-height: 300px;
    padding: 12px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.chart-large {
    min-height: 360px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.quick-actions--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.quick-actions .action-card:nth-child(1),
.quick-actions .action-card:nth-child(3) {
    background: var(--teal-soft);
}

.quick-actions .action-card:nth-child(2),
.quick-actions .action-card:nth-child(4) {
    background: var(--coral-soft);
}

.action-card:hover {
    transform: translateY(-2px);
    border-color: currentColor;
}

.action-card strong,
.metric-chip strong {
    display: block;
    margin-top: 2px;
    font-size: 1.5rem;
}

.action-card--static {
    cursor: default;
}

.action-card--primary {
    background: var(--coral);
    color: white;
    border-color: rgba(241, 87, 72, 0.4);
}

.action-card--primary:hover {
    border-color: rgba(241, 87, 72, 0.85);
}

.table-wrap {
    overflow: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    overflow-wrap: break-word;
    word-break: normal;
}

.data-table th {
    color: var(--muted);
    font-weight: 700;
    background: var(--surface-soft);
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.badge-success {
    background: var(--teal-soft);
    color: var(--teal);
}

.badge-warning {
    background: var(--coral-soft);
    color: var(--coral);
}

.badge-muted {
    background: var(--surface-soft);
    color: var(--text);
}

.stack {
    display: grid;
    gap: 18px;
}

.form-grid,
.filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.field-span {
    grid-column: 1 / -1;
}

.field {
    display: grid;
    gap: 8px;
    align-content: start;
}

.field label,
.field span {
    font-weight: 700;
}

.field-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.compact-field {
    min-width: 180px;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(10, 128, 144, 0.18);
}

.textarea {
    min-height: 110px;
    resize: vertical;
}

.checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--coral);
    margin-top: 3px;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trip-return-card {
    padding: 18px;
    border-radius: 18px;
    background: var(--coral-soft);
    border: 1px solid rgba(241, 87, 72, 0.28);
}

.is-hidden {
    display: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--coral);
    color: white;
}

.button-primary:hover {
    background: var(--coral-strong);
}

.button-secondary {
    background: var(--teal);
    color: white;
}

.button-secondary:hover {
    background: var(--teal-strong);
}

.button-small {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 0.92rem;
}

.actions-row,
.pagination {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.inline-form {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: end;
}

.notice {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.settings-layout {
    gap: 16px;
    max-width: 1080px;
}

.settings-panel {
    display: grid;
    gap: 18px;
    padding: 22px 24px;
}

.settings-panel__header {
    margin-bottom: 0;
}

.settings-panel h3 {
    margin-top: 4px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    align-items: start;
}

.settings-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-status {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.settings-status p {
    margin: 0;
}

.settings-status__details {
    color: var(--text);
    line-height: 1.45;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-chip--ok {
    color: #d9fff4;
    background: #0c6d51;
    border-color: rgba(16, 207, 140, 0.35);
}

.status-chip--ko {
    color: #ffe5e2;
    background: #9f2d24;
    border-color: rgba(241, 87, 72, 0.35);
}

.soft-note {
    margin-top: 8px;
}

.messages {
    display: grid;
    gap: 10px;
}

.message {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
}

.message.success {
    background: var(--teal-soft);
    border-color: rgba(10, 128, 144, 0.18);
}

.message.error {
    background: var(--coral-soft);
    border-color: rgba(241, 87, 72, 0.18);
}

.field-error {
    margin: 0;
    color: var(--coral);
    font-size: 0.88rem;
    font-weight: 700;
}

.card-head,
.stats-list,
.route-results {
    display: grid;
    gap: 12px;
}

.stats-list {
    margin: 16px 0;
}

.stats-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.trip-form-panel form.stack,
.route-panel {
    gap: 16px;
}

.route-map-card {
    display: grid;
    gap: 12px;
}

.route-map-card__copy {
    margin: 6px 0 0;
}

.route-map {
    position: relative;
    min-height: 280px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #101417;
}

.route-map__canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.route-map__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    color: var(--muted);
    background:
        radial-gradient(circle at top right, rgba(241, 87, 72, 0.12), transparent 32%),
        radial-gradient(circle at bottom left, rgba(10, 128, 144, 0.16), transparent 34%),
        rgba(5, 5, 5, 0.88);
    z-index: 2;
    pointer-events: none;
}

.route-map.is-ready .route-map__placeholder {
    display: none;
}

.leaflet-container {
    font: inherit;
    background: #0f1416;
}

.leaflet-control-attribution {
    background: rgba(5, 5, 5, 0.78) !important;
    color: #d8e4e7;
}

.leaflet-control-attribution a {
    color: #8ed7e0;
}

.route-option {
    padding: 13px 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    color: var(--text);
    text-align: left;
    border-left: 4px solid var(--route-color, var(--line));
    display: grid;
    gap: 8px;
}

.route-option.is-selected {
    border-color: var(--route-color, var(--coral));
    box-shadow: 0 0 0 3px rgba(241, 87, 72, 0.18);
}

.route-option strong {
    display: block;
    margin-top: 4px;
    margin-bottom: 0;
}

.route-option__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.route-option__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.route-option__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.route-option__meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-weight: 700;
}

.route-option small {
    color: var(--muted);
}

.table-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.table-actions .button,
.table-actions a {
    position: relative;
    z-index: 1;
}

.trip-table .cell-nowrap,
.trip-table .cell-action {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.trip-table .cell-path {
    min-width: 28rem;
    white-space: normal;
    overflow-wrap: break-word;
}

.trip-table .cell-action {
    width: 1%;
}

.trip-path-layout {
    display: grid;
    gap: 8px;
}

.trip-path-line {
    line-height: 1.35;
}

.login-body {
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
}

.login-shell {
    width: 100%;
    max-width: 520px;
}

.login-card {
    padding: 30px;
    border-top: 4px solid var(--coral);
}

.login-brand {
    margin-bottom: 28px;
}

svg.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-right: 8px;
}

.vehicle-photo-preview img {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.info-card {
    overflow: hidden;
}

.vehicle-cover {
    margin: -24px -24px 18px;
    height: 190px;
    overflow: hidden;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.vehicle-cover-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 1180px) {
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-two,
    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(86vw, 340px);
        z-index: 80;
        overflow-y: auto;
        transform: translateX(calc(-100% - 18px));
        transition: transform 0.22s ease;
        padding: 18px;
        gap: 18px;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .mobile-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-mobile-head {
        display: flex;
        justify-content: flex-end;
    }

    .mobile-nav-toggle,
    .mobile-nav-close,
    .mobile-nav-backdrop {
        display: inline-flex;
    }

    .nav {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 20px;
    }

    .topbar {
        align-items: center;
    }

    .topbar-main {
        width: 100%;
        align-items: center;
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .hero-card--compact {
        padding: 16px 18px;
    }
}

@media (max-width: 640px) {
    .metrics-grid,
    .form-grid,
    .filter-grid,
    .settings-grid,
    .quick-actions,
    .nav {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .panel-header {
        flex-direction: column;
    }

    .metric-card__action {
        width: 100%;
    }

    .brand img {
        width: 60px;
        height: 60px;
    }

    .data-table--stack thead {
        display: none;
    }

    .data-table--stack,
    .data-table--stack tbody,
    .data-table--stack tr,
    .data-table--stack td {
        display: block;
        width: 100%;
    }

    .data-table--stack tbody {
        display: grid;
        gap: 14px;
    }

    .data-table--stack tr {
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--surface-soft);
        padding: 8px 0;
    }

    .data-table--stack td {
        display: grid;
        grid-template-columns: minmax(96px, 112px) minmax(0, 1fr);
        gap: 12px;
        padding: 10px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        align-items: start;
    }

    .data-table--stack td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.8rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .data-table--stack td[colspan] {
        display: block;
        padding: 14px;
        border-bottom: none;
    }

    .data-table--stack td[colspan]::before {
        content: none;
    }

    .data-table--stack tr:last-child td:last-child {
        border-bottom: none;
    }

    .data-table--stack .table-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .data-table--stack td input[type="checkbox"] {
        margin-top: 2px;
    }

    .trip-table .cell-path {
        min-width: 0;
    }
}
