:root {
    --yellow: #f5e61f;
    --yellow-soft: #fff8a8;
    --ink: #252b33;
    --ink-soft: #4d555f;
    --line: #dfe2e5;
    --surface: #f6f7f8;
    --white: #ffffff;
    --danger: #a73535;
    --danger-bg: #fff1f1;
    --shadow: 0 24px 70px rgba(37, 43, 51, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--surface);
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.login-page {
    overflow-x: hidden;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(410px, 0.92fr) minmax(520px, 1.08fr);
}

.brand-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    background: var(--yellow);
}

.brand-panel::before {
    position: absolute;
    top: -20%;
    left: -34%;
    width: 78%;
    aspect-ratio: 1;
    border: 1px solid rgba(37, 43, 51, 0.13);
    border-radius: 50%;
    content: "";
}

.brand-panel::after {
    position: absolute;
    right: -32%;
    bottom: -33%;
    width: 78%;
    aspect-ratio: 1;
    border: 1px solid rgba(37, 43, 51, 0.12);
    border-radius: 50%;
    content: "";
}

.brand-panel__content {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(100%, 600px);
    margin: auto;
    padding: 64px 11%;
    flex-direction: column;
    justify-content: center;
}

.brand-logo {
    width: min(100%, 360px);
    height: auto;
    margin-bottom: clamp(32px, 7vh, 72px);
    object-fit: contain;
    object-position: left center;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.brand-copy h1 {
    max-width: 520px;
    margin: 0;
    font-size: clamp(2.5rem, 4.3vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.brand-copy > p:last-child {
    max-width: 470px;
    margin: 28px 0 0;
    color: rgba(37, 43, 51, 0.78);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.7;
}

.route-lines {
    position: absolute;
    right: -45px;
    bottom: 12%;
    z-index: 1;
    display: grid;
    width: 230px;
    gap: 11px;
    transform: rotate(-7deg);
}

.route-lines span {
    display: block;
    height: 2px;
    background: rgba(37, 43, 51, 0.25);
}

.route-lines span:nth-child(2) {
    width: 78%;
    margin-left: auto;
}

.route-lines span:nth-child(3) {
    width: 52%;
    margin-left: auto;
}

.login-panel {
    display: flex;
    min-height: 100vh;
    padding: 52px clamp(32px, 8vw, 140px) 28px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(37, 43, 51, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 43, 51, 0.035) 1px, transparent 1px),
        var(--surface);
    background-size: 40px 40px;
}

.login-card {
    width: min(100%, 480px);
    padding: clamp(32px, 5vw, 54px);
    border: 1px solid rgba(37, 43, 51, 0.07);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.mobile-brand {
    display: none;
}

.login-heading {
    position: relative;
    margin-bottom: 34px;
}

.login-heading__mark {
    position: absolute;
    top: 2px;
    left: -54px;
    width: 6px;
    height: 58px;
    background: var(--yellow);
}

.login-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.login-heading > p:last-child {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

.alert {
    display: flex;
    margin: 0 0 24px;
    padding: 13px 14px;
    border: 1px solid #f0cccc;
    border-radius: 3px;
    align-items: flex-start;
    gap: 10px;
    color: var(--danger);
    background: var(--danger-bg);
    font-size: 0.86rem;
    line-height: 1.45;
}

.alert svg {
    width: 19px;
    min-width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.login-form {
    display: grid;
    gap: 23px;
}

.field {
    display: grid;
    gap: 9px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 750;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap > svg {
    position: absolute;
    left: 16px;
    width: 20px;
    fill: none;
    stroke: #7a818a;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 55px;
    padding: 0 48px;
    border: 1px solid var(--line);
    border-radius: 3px;
    outline: none;
    color: var(--ink);
    background: var(--white);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-wrap input::placeholder {
    color: #9da2a8;
}

.input-wrap input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(245, 230, 31, 0.32);
}

.password-toggle {
    position: absolute;
    right: 9px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 8px;
    border: 0;
    border-radius: 3px;
    place-items: center;
    color: #7a818a;
    background: transparent;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--ink);
    background: #f3f3f1;
}

.password-toggle svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.password-toggle.is-visible svg {
    color: var(--ink);
}

.primary-button {
    display: flex;
    width: 100%;
    height: 56px;
    margin-top: 3px;
    padding: 0 18px 0 22px;
    border: 2px solid var(--ink);
    border-radius: 3px;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
    background: var(--yellow);
    font-weight: 850;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    background: #ffef1e;
    box-shadow: 5px 5px 0 var(--ink);
}

.primary-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
}

.primary-button svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.support-copy {
    margin: 28px 0 0;
    color: #777e87;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.login-footer {
    margin: 32px 0 0;
    color: #858b92;
    font-size: 0.72rem;
}

.dashboard-page {
    background: var(--surface);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-page {
    background: #f3f4f5;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: 270px;
    padding: 26px 18px 20px;
    flex-direction: column;
    color: var(--white);
    background: var(--ink);
}

.sidebar__brand {
    display: block;
    margin: 0 7px 40px;
    padding: 9px 12px;
    border-radius: 3px;
    background: var(--yellow);
}

.sidebar__brand img {
    display: block;
    width: 100%;
    height: 70px;
    object-fit: contain;
}

.main-nav {
    display: grid;
    gap: 7px;
}

.main-nav__label {
    margin: 0 13px 8px;
    color: #848b93;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav-item {
    position: relative;
    display: flex;
    min-height: 50px;
    padding: 0 13px;
    border-radius: 3px;
    align-items: center;
    gap: 13px;
    color: #c7cbd0;
    text-decoration: none;
    font-size: 0.91rem;
    font-weight: 650;
    transition: color 150ms ease, background 150ms ease;
}

.nav-item svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.nav-item:hover:not(.is-disabled) {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
}

.nav-item.is-active {
    color: var(--ink);
    background: var(--yellow);
}

.nav-item.is-active::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: -18px;
    width: 4px;
    background: var(--yellow);
    content: "";
}

.nav-item small {
    margin-left: auto;
    color: #757d85;
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.nav-item.is-disabled {
    cursor: default;
    opacity: 0.62;
}

.sidebar__user {
    display: flex;
    margin-top: auto;
    padding: 18px 7px 0;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
}

.sidebar__push {
    display: none;
}

.sidebar-push-toggle {
    display: flex;
    width: 100%;
    padding: 13px 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    text-align: left;
    gap: 13px;
}

.sidebar-push-toggle > span:last-child {
    display: grid;
    gap: 3px;
}

.sidebar-push-toggle strong {
    font-size: 0.76rem;
}

.sidebar-push-toggle small {
    color: #9299a0;
    font-size: 0.62rem;
}

.sidebar-push-toggle.is-active {
    border-color: var(--yellow);
    color: var(--ink);
    background: var(--yellow);
}

.sidebar-push-toggle.is-active small {
    color: rgba(37, 43, 51, 0.7);
}

.sidebar__push .push-status {
    display: block;
    margin: 8px 4px 0;
    color: #b8bdc2;
    text-align: left;
    line-height: 1.4;
}

.sidebar__push .push-status.is-error {
    color: #ff9b9b;
}

.user-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    place-items: center;
    color: var(--ink);
    background: var(--yellow);
    font-size: 0.85rem;
    font-weight: 900;
}

.user-copy {
    display: grid;
    min-width: 0;
}

.user-copy strong {
    overflow: hidden;
    color: var(--white);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-copy small {
    margin-top: 3px;
    color: #969da4;
    font-size: 0.67rem;
}

.icon-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 3px;
    place-items: center;
    color: #737b84;
    background: transparent;
    text-decoration: none;
}

.icon-button:hover {
    border-color: var(--line);
    color: var(--ink);
    background: var(--white);
}

.icon-button svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.sidebar__user .icon-button {
    width: 34px;
    height: 34px;
    color: #9299a0;
}

.sidebar__user .icon-button:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.app-main {
    width: calc(100% - 270px);
    min-height: 100vh;
    margin-left: 270px;
}

.mobile-header,
.sidebar-overlay {
    display: none;
}

.content {
    width: min(1380px, calc(100% - clamp(40px, 7vw, 100px)));
    margin: 0 auto;
    padding: clamp(48px, 6vw, 78px) 0 70px;
}

.page-header {
    display: flex;
    margin-bottom: 38px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.page-header--actions {
    align-items: center;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.page-header > div > p:last-child {
    margin: 15px 0 0;
    color: #69717a;
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #68717a;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: var(--ink);
}

.button {
    display: inline-flex;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 3px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--ink);
    background: var(--white);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button--primary {
    border: 2px solid var(--ink);
    background: var(--yellow);
}

.button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--ink);
}

.button--dark {
    color: var(--white);
    background: var(--ink);
}

.button--dark:hover {
    background: #12161a;
}

.button--secondary {
    border-color: #d7dade;
    background: var(--white);
}

.button--secondary:hover {
    border-color: var(--ink);
}

.button svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: grid;
    margin-bottom: 30px;
    grid-template-columns: repeat(2, minmax(0, 260px));
    gap: 18px;
}

.stat-card {
    display: flex;
    min-height: 125px;
    padding: 25px;
    align-items: center;
    border: 1px solid #e1e3e5;
    gap: 20px;
    background: var(--white);
}

.stat-card--yellow {
    border-color: var(--yellow);
    background: var(--yellow);
}

.stat-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(37, 43, 51, 0.18);
    place-items: center;
}

.stat-card__icon svg {
    width: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.stat-card p {
    margin: 7px 0 0;
    color: #5f6770;
    font-size: 0.78rem;
}

.welcome-card {
    position: relative;
    display: flex;
    min-height: 300px;
    padding: clamp(35px, 5vw, 65px);
    overflow: hidden;
    align-items: center;
    background: var(--white);
}

.welcome-card::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 13px;
    height: 100%;
    background: var(--yellow);
    content: "";
}

.welcome-card > div {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.welcome-card h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -0.05em;
}

.welcome-card p:not(.eyebrow) {
    margin: 18px 0 28px;
    color: var(--ink-soft);
    line-height: 1.7;
}

.welcome-card__number {
    position: absolute;
    right: 7%;
    color: #f0f1f2;
    font-size: clamp(8rem, 20vw, 17rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.1em;
}

.dashboard-header {
    align-items: flex-end;
}

.dashboard-date-control {
    display: flex;
    align-items: stretch;
    border: 1px solid #d9dde0;
    background: var(--white);
}

.dashboard-date-control label {
    display: grid;
    min-width: 210px;
    padding: 9px 14px 8px;
    border-right: 1px solid #e5e7e9;
    border-left: 1px solid #e5e7e9;
    gap: 3px;
}

.dashboard-date-control label span {
    color: #858c93;
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-date-control input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 0.8rem;
    font-weight: 750;
}

.dashboard-date-arrow {
    display: grid;
    width: 46px;
    min-width: 46px;
    place-items: center;
    color: var(--ink);
    background: #f8f8f8;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-date-arrow:hover {
    background: var(--yellow);
}

.daily-overview-heading {
    display: flex;
    margin-bottom: 14px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.daily-overview-heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-overview-heading__date {
    font-size: 0.82rem;
    font-weight: 850;
}

.daily-overview-heading strong {
    padding: 5px 8px;
    color: var(--ink);
    background: var(--yellow);
    font-size: 0.6rem;
    text-transform: uppercase;
}

.daily-overview-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.daily-overview-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 3px;
}

.daily-overview-actions svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.service-day-map-card {
    overflow: hidden;
    border: 1px solid #dfe2e4;
    background: var(--white);
}

.service-day-map-toolbar {
    display: flex;
    min-height: 70px;
    padding: 13px 18px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dfe2e4;
    gap: 20px;
}

.service-day-map-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
}

.service-day-map-help > small {
    color: #858c93;
    font-size: 0.62rem;
}

.service-day-map-help > strong {
    color: var(--ink);
    font-size: 0.62rem;
}

.service-day-map-status-key {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #297245;
    font-size: 0.62rem;
    font-weight: 800;
}

.service-day-map-status-key i {
    display: grid;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    place-items: center;
    color: #fff;
    background: #297245;
    font-style: normal;
}

.service-day-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.service-day-map-legend > button {
    display: grid;
    padding: 4px 6px;
    grid-template-columns: 13px auto;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 3px;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    column-gap: 8px;
    font: inherit;
    text-align: left;
    transition: opacity 150ms ease, background 150ms ease, border-color 150ms ease;
}

.service-day-map-legend > button:hover,
.service-day-map-legend > button:focus-visible {
    border-color: #d5d9dc;
    outline: none;
    background: #f5f6f6;
}

.service-day-map-legend > button.is-hidden {
    opacity: 0.38;
    background: #f1f2f3;
}

.service-day-map-legend > button.is-hidden strong,
.service-day-map-legend > button.is-hidden small {
    text-decoration: line-through;
}

.service-day-map-legend i {
    width: 13px;
    height: 32px;
    grid-row: 1 / 3;
    border: 1px solid rgba(37, 43, 51, 0.25);
    border-radius: 3px;
    background: var(--legend-color);
}

.service-day-map-legend strong {
    font-size: 0.68rem;
}

.service-day-map-legend small {
    color: #858c93;
    font-size: 0.59rem;
}

.service-day-map {
    width: 100%;
    height: min(680px, calc(100vh - 285px));
    min-height: 480px;
    background: #e8eaeb;
}

.service-day-marker {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    border: 3px solid var(--ink);
    border-radius: 50% 50% 50% 8px;
    place-items: center;
    color: var(--ink);
    background: var(--marker-color);
    box-shadow: 0 4px 10px rgba(37, 43, 51, 0.28);
    transform: rotate(-45deg);
    font-size: 0.72rem;
    font-weight: 950;
}

.service-day-marker > i {
    position: relative;
    z-index: 1;
    font-style: normal;
    transform: rotate(45deg);
}

.service-day-marker > b {
    position: absolute;
    top: -9px;
    right: -9px;
    z-index: 3;
    display: grid;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    place-items: center;
    color: #fff;
    background: #297245;
    box-shadow: 0 2px 5px rgba(37, 43, 51, 0.32);
    font-size: 0.65rem;
    transform: rotate(45deg);
}

.service-day-marker.is-complete {
    border-color: #297245;
    box-shadow: 0 0 0 5px rgba(41, 114, 69, 0.22), 0 4px 10px rgba(37, 43, 51, 0.28);
}

.service-day-marker::after {
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: inherit;
    content: "";
}

.service-day-popup {
    min-width: 230px;
}

.service-day-popup > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-day-popup > div > span:first-child {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 2px solid var(--ink);
    place-items: center;
    color: var(--ink);
    background: var(--popup-color);
    font-size: 0.68rem;
    font-weight: 900;
}

.service-day-popup > div > span:last-child {
    display: grid;
    gap: 3px;
}

.service-day-popup strong {
    font-size: 0.74rem;
}

.service-day-popup small {
    color: #747c83;
    font-size: 0.61rem;
}

.service-day-popup__progress {
    display: block;
    margin-top: 8px;
    padding: 6px 8px;
    color: #687078;
    background: #f1f2f3;
    font-size: 0.62rem;
    font-weight: 800;
}

.service-day-popup__progress.is-complete {
    color: #1f653b;
    background: #e4f4e9;
}

.service-day-popup p {
    margin: 12px 0 7px;
    color: #5e666e;
    font-size: 0.67rem;
    line-height: 1.45;
}

.service-day-popup > a {
    display: inline-block;
    margin-top: 12px;
    color: var(--ink);
    font-size: 0.66rem;
    font-weight: 850;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 3px;
}

.service-day-map-empty {
    min-height: 430px;
    border: 1px solid #dfe2e4;
}

.dashboard-summary {
    display: grid;
    margin-bottom: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #dfe2e4;
    background: var(--white);
}

.dashboard-summary article {
    display: flex;
    min-height: 70px;
    padding: 15px 18px;
    align-items: center;
    border-right: 1px solid #e4e6e8;
    gap: 10px;
}

.dashboard-summary article:last-child {
    border-right: 0;
}

.dashboard-summary strong {
    font-size: 1.15rem;
}

.dashboard-summary span {
    color: #7b838a;
    font-size: 0.68rem;
}

.truck-planning-board {
    display: grid;
    overflow-x: auto;
    padding-bottom: 12px;
    grid-template-columns: repeat(var(--truck-columns), minmax(390px, 1fr));
    align-items: start;
    gap: 14px;
}

.truck-planning-column {
    min-width: 0;
    border: 1px solid #dfe2e4;
    background: #e9ebed;
}

.truck-planning-column__header {
    display: flex;
    min-height: 92px;
    padding: 17px 19px;
    align-items: center;
    gap: 13px;
    color: var(--truck-text);
    background: var(--truck-color);
}

.truck-planning-column__icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border: 1px solid currentColor;
    place-items: center;
}

.truck-planning-column__icon svg {
    width: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.truck-planning-column__header > div {
    min-width: 0;
}

.truck-planning-column__header small {
    display: block;
    margin-bottom: 3px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.truck-planning-column__header h2 {
    overflow: hidden;
    margin: 0;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.truck-planning-column__header > strong {
    display: grid;
    width: 36px;
    height: 36px;
    margin-left: auto;
    flex: 0 0 36px;
    border: 1px solid currentColor;
    border-radius: 50%;
    place-items: center;
    font-size: 0.74rem;
}

.truck-planning-column__meta {
    display: flex;
    min-height: 39px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #d8dcdf;
    color: #737b83;
    background: #f8f8f8;
    font-size: 0.61rem;
    font-weight: 700;
}

.truck-service-list {
    display: grid;
    padding: 12px;
    gap: 10px;
}

.planning-service-card {
    display: block;
    padding: 15px;
    border: 1px solid #dadee1;
    color: var(--ink);
    background: var(--white);
    text-decoration: none;
    transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.planning-service-card:hover {
    z-index: 1;
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 rgba(37, 43, 51, 0.14);
}

.planning-service-card.is-complete {
    border-color: #b8ddc5;
    background: #fbfefc;
}

.planning-service-card__top {
    display: flex;
    margin-bottom: 14px;
    align-items: center;
    gap: 9px;
}

.planning-order {
    display: grid;
    width: 31px;
    height: 31px;
    border: 2px solid var(--ink);
    place-items: center;
    background: var(--yellow);
    font-size: 0.7rem;
    font-weight: 900;
}

.planning-service-card__top time {
    font-size: 0.9rem;
    font-weight: 900;
}

.planning-service-card__top .status-badge {
    margin-left: auto;
}

.planning-service-card__client {
    display: flex;
    margin-bottom: 12px;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.planning-service-card__client strong {
    font-size: 0.8rem;
}

.planning-service-card__client small {
    color: #858c93;
    font-size: 0.62rem;
}

.planning-service-card__destination {
    display: flex;
    padding: 11px;
    align-items: flex-start;
    gap: 9px;
    background: #f5f6f7;
}

.planning-service-card__destination svg {
    width: 17px;
    min-width: 17px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.8;
}

.planning-service-card__destination span {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.planning-service-card__destination strong {
    font-size: 0.68rem;
}

.planning-service-card__destination small {
    overflow: hidden;
    color: #7b838a;
    font-size: 0.61rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.planning-service-card__route {
    display: grid;
    margin-top: 10px;
    padding: 0 2px;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
}

.planning-service-card__route span {
    color: #92999f;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
}

.planning-service-card__route strong {
    overflow: hidden;
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.planning-service-progress {
    display: grid;
    margin-top: 12px;
    grid-template-columns: auto minmax(70px, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.planning-service-progress > span {
    color: #69717a;
    font-size: 0.6rem;
    white-space: nowrap;
}

.planning-service-progress > span strong {
    color: var(--ink);
    font-size: 0.68rem;
}

.planning-service-progress i {
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 5px;
    background: #e4e6e8;
}

.planning-service-progress b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #297245;
    transition: width 180ms ease;
}

.planning-service-progress small {
    color: #7b838a;
    font-size: 0.58rem;
    font-weight: 800;
}

.planning-service-card.is-complete .planning-service-progress small {
    color: #297245;
}

.planning-service-card footer {
    display: flex;
    margin-top: 13px;
    padding-top: 11px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eceeef;
    gap: 10px;
    color: #69717a;
    font-size: 0.61rem;
    font-weight: 700;
}

.truck-service-empty,
.dashboard-empty {
    display: grid;
    min-height: 245px;
    padding: 35px 25px;
    place-items: center;
    align-content: center;
    background: rgba(255, 255, 255, 0.65);
    text-align: center;
}

.truck-service-empty > span svg,
.dashboard-empty > svg {
    width: 42px;
    fill: none;
    stroke: #a0a6ac;
    stroke-width: 1.4;
}

.truck-service-empty strong,
.dashboard-empty h2 {
    margin: 15px 0 0;
    font-size: 0.83rem;
}

.truck-service-empty p,
.dashboard-empty p {
    max-width: 260px;
    margin: 7px 0 14px;
    color: #858c93;
    font-size: 0.68rem;
    line-height: 1.5;
}

.truck-service-empty a {
    color: var(--ink);
    font-size: 0.65rem;
    font-weight: 800;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 3px;
}

.reorganize-heading {
    display: flex;
    margin-bottom: 14px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.reorganize-heading > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.reorganize-heading strong {
    font-size: 0.82rem;
}

.reorganize-heading span {
    color: #858c93;
    font-size: 0.65rem;
}

.reorganize-save-state {
    padding: 8px 11px;
    border: 1px solid #dfe2e4;
    color: #747c83;
    background: var(--white);
    font-size: 0.64rem;
    font-weight: 750;
}

.reorganize-save-state.is-saving {
    border-color: #e3d67a;
    color: #78610c;
    background: #fffdf0;
}

.reorganize-save-state.is-saved {
    border-color: #b8ddc5;
    color: #27653d;
    background: #edf9f1;
}

.reorganize-save-state.is-error {
    border-color: #efc7c7;
    color: var(--danger);
    background: var(--danger-bg);
}

.reorganize-board {
    overflow-y: visible;
}

.reorganize-column {
    background: #e8eaec;
}

.reorganize-list {
    display: grid;
    min-height: 230px;
    padding: 12px;
    align-content: start;
    gap: 9px;
}

.reorganize-card {
    display: grid;
    min-height: 104px;
    padding: 13px 12px;
    grid-template-columns: 27px 34px minmax(0, 1fr) 30px;
    align-items: center;
    border: 1px solid #d9dde0;
    gap: 10px;
    background: var(--white);
    cursor: grab;
    transition: border-color 130ms ease, box-shadow 130ms ease, opacity 130ms ease;
}

.reorganize-card:hover {
    border-color: #9da3a9;
    box-shadow: 3px 3px 0 rgba(37, 43, 51, 0.1);
}

.reorganize-card.is-dragging {
    border: 2px dashed var(--ink);
    opacity: 0.48;
    box-shadow: none;
}

.reorganize-handle {
    width: 27px;
    height: 42px;
    padding: 0;
    border: 0;
    color: #8d949a;
    background: transparent;
    cursor: grab;
    font-size: 1.2rem;
}

.reorganize-order {
    display: grid;
    width: 34px;
    height: 34px;
    border: 2px solid var(--ink);
    place-items: center;
    background: var(--yellow);
    font-size: 0.7rem;
    font-weight: 900;
}

.reorganize-card__copy {
    min-width: 0;
}

.reorganize-card__copy > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.reorganize-card__copy time {
    font-size: 0.7rem;
    font-weight: 900;
}

.reorganize-card__copy strong {
    overflow: hidden;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reorganize-card__copy p {
    overflow: hidden;
    margin: 6px 0 5px;
    color: #707880;
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reorganize-card__copy small {
    display: block;
    overflow: hidden;
    color: #8a9198;
    font-size: 0.59rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reorganize-card__actions {
    display: grid;
    gap: 3px;
}

.reorganize-card__actions button,
.reorganize-card__actions a {
    display: grid;
    width: 29px;
    height: 25px;
    padding: 0;
    border: 1px solid #e0e3e5;
    place-items: center;
    color: #68717a;
    background: #fafafa;
    font-size: 0.7rem;
    font-weight: 900;
    text-decoration: none;
}

.reorganize-card__actions button:hover:not(:disabled),
.reorganize-card__actions a:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--yellow);
}

.reorganize-card__actions button:disabled {
    cursor: default;
    opacity: 0.28;
}

.reorganize-empty {
    display: grid;
    min-height: 190px;
    place-items: center;
    color: #92999f;
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
}

.reorganize-empty[hidden] {
    display: none;
}

.notice {
    margin: -14px 0 28px;
    padding: 14px 17px;
    border: 1px solid;
    border-radius: 3px;
    font-size: 0.86rem;
    font-weight: 650;
}

.notice--success {
    border-color: #b8ddc5;
    color: #27653d;
    background: #edf9f1;
}

.notice--error {
    border-color: #efc7c7;
    color: var(--danger);
    background: var(--danger-bg);
}

.mini-stats {
    display: flex;
    margin-bottom: 20px;
    gap: 12px;
}

.mini-stats > div {
    display: flex;
    min-width: 150px;
    padding: 13px 15px;
    align-items: center;
    border: 1px solid #e0e3e5;
    gap: 8px;
    background: var(--white);
}

.mini-stats--users > div {
    min-width: 170px;
}

.mini-stats strong {
    font-size: 1.15rem;
}

.mini-stats small {
    color: #6e767e;
    font-size: 0.72rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.user-role-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.data-card {
    border: 1px solid #e0e3e5;
    background: var(--white);
}

.toolbar {
    display: flex;
    padding: 20px;
    align-items: center;
    border-bottom: 1px solid #e6e8ea;
    gap: 12px;
}

.search-field {
    position: relative;
    display: flex;
    width: min(100%, 440px);
    align-items: center;
}

.search-field svg {
    position: absolute;
    left: 14px;
    width: 19px;
    fill: none;
    stroke: #828990;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.search-field input,
.select-field select,
.form-field input,
.form-field select {
    width: 100%;
    height: 46px;
    border: 1px solid #d9dde0;
    border-radius: 3px;
    outline: none;
    color: var(--ink);
    background: var(--white);
}

.search-field input {
    padding: 0 15px 0 43px;
}

.select-field select {
    min-width: 190px;
    padding: 0 36px 0 13px;
}

.search-field input:focus,
.select-field select:focus,
.form-field input:focus,
.form-field select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(245, 230, 31, 0.32);
}

.toolbar__clear {
    color: #6d757d;
    font-size: 0.76rem;
    font-weight: 700;
}

.toolbar__results {
    margin-left: auto;
    color: #7c838a;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.toolbar.is-live .button[type="submit"] {
    display: none;
}

.table-wrap {
    overflow-x: auto;
}

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

.data-table th {
    padding: 14px 18px;
    color: #7d848b;
    background: #fafafa;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.data-table td {
    padding: 17px 18px;
    border-top: 1px solid #eceeef;
    color: #5d656d;
    font-size: 0.82rem;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #fdfdf9;
}

.truck-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.truck-name--link {
    color: inherit;
    text-decoration: none;
}

.truck-name--link:hover strong {
    text-decoration: underline;
    text-decoration-color: #c4b700;
    text-underline-offset: 3px;
}

.truck-profile-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.truck-profile-hero {
    display: flex;
    min-height: 116px;
    margin-bottom: 18px;
    padding: 24px 28px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid #dfe2e4;
    border-top: 6px solid var(--truck-color);
    background: #252b34;
    color: #fff;
}

.truck-profile-hero__identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.truck-profile-hero__color {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border: 7px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: var(--truck-color);
}

.truck-profile-hero__identity div {
    display: grid;
    gap: 3px;
}

.truck-profile-hero__identity small,
.truck-profile-hero__identity span {
    color: #bfc4ca;
    font-size: 0.72rem;
}

.truck-profile-hero__identity strong {
    font-size: 1.35rem;
}

.truck-profile-year {
    display: flex;
    align-items: center;
    gap: 10px;
}

.truck-profile-year label {
    color: #bfc4ca;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.truck-profile-year select {
    min-width: 105px;
    padding: 10px 34px 10px 12px;
    border: 1px solid #555d67;
    background-color: #323943;
    color: #fff;
}

.truck-profile-nav {
    display: flex;
    margin-bottom: 18px;
    padding: 0 18px;
    overflow-x: auto;
    border: 1px solid #dfe2e4;
    background: #fff;
}

.truck-profile-nav a {
    padding: 17px 14px 14px;
    border-bottom: 3px solid transparent;
    color: #5f6870;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.truck-profile-nav a:hover {
    border-bottom-color: var(--yellow);
    color: var(--ink);
}

.truck-profile-stats {
    display: grid;
    margin-bottom: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #dfe2e4;
    background: #fff;
}

.truck-profile-stats article {
    display: grid;
    min-height: 126px;
    padding: 22px;
    align-content: center;
    border-right: 1px solid #e5e7e9;
    gap: 5px;
}

.truck-profile-stats article:last-child {
    border-right: 0;
}

.truck-profile-stats span,
.truck-profile-stats small {
    color: #7b838a;
    font-size: 0.68rem;
}

.truck-profile-stats span {
    font-weight: 800;
    text-transform: uppercase;
}

.truck-profile-stats strong {
    font-size: 1.45rem;
}

.truck-profile-stats .is-positive strong {
    color: #168151;
}

.truck-profile-stats .is-negative strong,
.truck-profit-summary .is-cost {
    color: #c52f2f;
}

.truck-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    align-items: start;
    gap: 18px;
}

.truck-profile-main,
.truck-profile-aside {
    display: grid;
    gap: 18px;
}

.truck-profile-aside {
    position: sticky;
    top: 20px;
}

.truck-profile-service-list {
    border-top: 1px solid #eceeef;
}

.truck-profile-service-list > a {
    display: grid;
    padding: 15px 0;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    border-bottom: 1px solid #eceeef;
    color: inherit;
    gap: 14px;
    text-decoration: none;
}

.truck-profile-service-list > a:hover {
    background: #fafafa;
}

.truck-profile-service-list__date,
.truck-profile-service-list__main,
.truck-profile-service-list__amount {
    display: grid;
    gap: 3px;
}

.truck-profile-service-list__date {
    padding-left: 10px;
    border-left: 4px solid var(--yellow);
}

.truck-profile-service-list__date small,
.truck-profile-service-list__main small,
.truck-profile-service-list__amount small {
    color: #7b838a;
    font-size: 0.65rem;
}

.truck-profile-service-list__amount {
    text-align: right;
}

.truck-profit-summary {
    display: grid;
    border-top: 1px solid #e5e7e9;
}

.truck-profit-summary > div {
    display: grid;
    padding: 17px 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-bottom: 1px solid #e5e7e9;
    gap: 8px;
}

.truck-profit-summary span {
    color: #626b73;
    font-size: 0.75rem;
    font-weight: 700;
}

.truck-profit-summary small {
    grid-column: 1 / -1;
    color: #8a9198;
    font-size: 0.64rem;
}

.truck-profit-summary__result strong {
    font-size: 1.25rem;
}

.truck-document-list {
    display: grid;
}

.truck-document-list article {
    display: grid;
    padding: 15px 0;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    border-top: 1px solid #eceeef;
    gap: 12px;
}

.truck-document-list__icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    background: #f1f2f3;
    color: #555e66;
    font-size: 0.6rem;
    font-weight: 900;
}

.truck-document-list article div {
    display: grid;
    gap: 4px;
}

.truck-document-list article strong {
    font-size: 0.72rem;
}

.truck-document-list article small {
    color: #81888e;
    font-size: 0.62rem;
}

.truck-document-history {
    display: flex;
    min-height: 54px;
    padding: 12px 14px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e4e7e9;
    background: #fff;
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.truck-document-history:hover {
    border-color: #d1c400;
    background: #fffef2;
    transform: translateX(2px);
}

.truck-document-histories {
    display: grid;
    margin-top: 18px;
    gap: 8px;
}

.truck-document-histories .truck-document-history {
    margin: 0;
}

.truck-document-history span {
    display: grid;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    place-items: center;
    border-radius: 16px;
    background: var(--yellow);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 900;
}

.insurance-current {
    display: grid;
    margin-bottom: 18px;
    padding: 24px 28px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    border: 1px solid #d9dde1;
    border-left: 6px solid #299c68;
    background: #fff;
    gap: 28px;
}

.insurance-current h2 {
    margin: 4px 0;
    font-size: 1.25rem;
}

.insurance-current p {
    margin: 0;
    color: #747c83;
    font-size: 0.72rem;
}

.insurance-current > div:nth-child(2) {
    display: grid;
    gap: 4px;
    text-align: right;
}

.insurance-current > div:nth-child(2) span {
    color: #7b838a;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.insurance-current > div:nth-child(2) strong {
    font-size: 1rem;
}

.table-secondary {
    display: block;
    margin-top: 4px;
    color: #7b838a;
    font-size: 0.65rem;
}

.truck-profile-empty {
    padding: 28px 0;
    color: #737b82;
    font-size: 0.75rem;
}

@media (max-width: 1050px) {
    .truck-profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .truck-profile-stats article:nth-child(2) {
        border-right: 0;
    }

    .truck-profile-stats article:nth-child(-n + 2) {
        border-bottom: 1px solid #e5e7e9;
    }

    .truck-profile-grid {
        grid-template-columns: 1fr;
    }

    .truck-profile-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .truck-profile-header__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .truck-profile-hero {
        padding: 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .truck-profile-year {
        width: 100%;
        justify-content: space-between;
    }

    .truck-profile-nav {
        padding: 0 6px;
    }

    .truck-profile-stats {
        grid-template-columns: 1fr;
    }

    .truck-profile-stats article,
    .truck-profile-stats article:nth-child(2) {
        min-height: 106px;
        border-right: 0;
        border-bottom: 1px solid #e5e7e9;
    }

    .truck-profile-stats article:last-child {
        border-bottom: 0;
    }

    .truck-profile-aside {
        grid-template-columns: 1fr;
    }

    .truck-profile-service-list > a {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .truck-profile-service-list__amount {
        grid-column: 2;
        text-align: left;
    }

    .truck-document-list article {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .truck-document-list article .status-badge {
        grid-column: 2;
        justify-self: start;
    }

    .insurance-current {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .insurance-current > div:nth-child(2) {
        text-align: left;
    }
}

.person-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.person-name > span:last-child {
    display: grid;
}

.person-name strong {
    color: var(--ink);
    font-size: 0.86rem;
}

.person-name small {
    margin-top: 3px;
    color: #92989e;
    font-size: 0.65rem;
}

.person-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    place-items: center;
    color: var(--ink);
    background: var(--yellow);
    font-size: 0.72rem;
    font-weight: 900;
}

.email-link {
    color: #4e5861;
    text-decoration: none;
}

.email-link:hover {
    color: var(--ink);
    text-decoration: underline;
}

.truck-name > span:last-child {
    display: grid;
}

.truck-name strong {
    color: var(--ink);
    font-size: 0.88rem;
}

.truck-name small {
    margin-top: 3px;
    color: #858c93;
}

.truck-color {
    width: 7px;
    height: 36px;
    border-radius: 5px;
    background: var(--truck-color);
    box-shadow: inset 0 0 0 1px rgba(37, 43, 51, 0.12);
}

.license-plate {
    display: inline-block;
    padding: 5px 9px;
    border: 1px solid #bfc4c8;
    border-radius: 3px;
    color: var(--ink);
    background: #fff;
    font-family: "Courier New", monospace;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.color-value {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.color-value i {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(37, 43, 51, 0.18);
    border-radius: 50%;
    background: var(--truck-color);
}

.muted {
    color: #9ba0a5;
}

.status-badge {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 800;
}

.role-badge {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 800;
}

.role--reception {
    color: #256686;
    background: #e3f2f9;
}

.role--driver {
    color: #297245;
    background: #e4f5e9;
}

.role--administration {
    color: #78610c;
    background: #fff5c8;
}

.role--admin {
    color: #713d7d;
    background: #f2e7f6;
}

.user-role-dot.role--reception {
    background: #3e94bd;
}

.user-role-dot.role--driver {
    background: #3cad67;
}

.user-role-dot.role--administration {
    background: #d3a619;
}

.user-role-dot.role--admin {
    background: #9b5baa;
}

.status--available {
    color: #297245;
    background: #e4f5e9;
}

.status--broken {
    color: #a3492f;
    background: #fbe9e2;
}

.status--blocked {
    color: #78610c;
    background: #fff5c8;
}

.status--deleted {
    color: #6d747b;
    background: #e9ebed;
}

.status-dot.status--available {
    background: #3cad67;
}

.status-dot.status--broken {
    background: #dc6848;
}

.status-dot.status--blocked {
    background: #d3a619;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 3px;
}

.table-actions form {
    margin: 0;
}

.icon-button--danger:hover {
    border-color: #efcccc;
    color: var(--danger);
    background: var(--danger-bg);
}

.table-empty {
    display: grid;
    min-height: 360px;
    padding: 50px 25px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.table-empty > svg {
    width: 48px;
    margin-bottom: 20px;
    fill: none;
    stroke: #a7adb2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.3;
}

.table-empty h2 {
    margin: 0;
    font-size: 1.25rem;
}

.table-empty p {
    margin: 9px 0 22px;
    color: #7b8289;
}

.table-empty--live {
    min-height: 280px;
}

[hidden] {
    display: none !important;
}

.form-card {
    max-width: 1050px;
    border: 1px solid #e0e3e5;
    background: var(--white);
}

.form-section {
    display: grid;
    padding: clamp(28px, 4vw, 45px);
    grid-template-columns: minmax(190px, 0.7fr) minmax(350px, 1.3fr);
    border-bottom: 1px solid #e6e8ea;
    gap: clamp(30px, 5vw, 70px);
}

.form-section__heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.form-section__heading > span {
    padding-top: 4px;
    color: #a0a6ac;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.form-section__heading h2 {
    margin: 0;
    font-size: 1.15rem;
}

.form-section__heading p {
    margin: 9px 0 0;
    color: #7b8289;
    font-size: 0.78rem;
    line-height: 1.55;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
}

.form-field {
    display: grid;
    align-content: start;
    gap: 8px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 750;
}

.form-field--wide {
    grid-column: 1 / -1;
}

.form-password {
    position: relative;
    display: flex;
    align-items: center;
}

.form-password input {
    padding-right: 52px;
}

.form-password__toggle {
    position: absolute;
    right: 7px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 7px;
    border: 0;
    border-radius: 3px;
    place-items: center;
    color: #778089;
    background: transparent;
}

.form-password__toggle:hover {
    color: var(--ink);
    background: #f2f3f3;
}

.form-password__toggle svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.form-field input,
.form-field select {
    padding: 0 13px;
}

.form-field > small {
    color: #888f96;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.4;
}

.form-field .field-error {
    color: var(--danger);
    font-weight: 650;
}

.uppercase-input {
    text-transform: uppercase;
}

.color-picker {
    display: flex;
    gap: 8px;
}

.color-picker input[type="color"] {
    width: 56px;
    padding: 4px;
    cursor: pointer;
}

.color-picker input[type="text"] {
    flex: 1;
    color: #656d75;
    font-family: "Courier New", monospace;
    font-weight: 700;
}

.color-picker.is-disabled {
    opacity: 0.45;
}

.checkbox-field {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: #626a72;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.checkbox-field input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--ink);
}

.form-actions {
    display: flex;
    padding: 24px clamp(28px, 4vw, 45px);
    justify-content: flex-end;
    gap: 12px;
    background: #fafafa;
}

.topbar {
    display: flex;
    min-height: 82px;
    padding: 12px clamp(22px, 5vw, 72px);
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(37, 43, 51, 0.12);
    background: var(--yellow);
}

.topbar img {
    width: 150px;
    height: 58px;
    object-fit: contain;
}

.logout-button {
    padding: 10px 15px;
    border: 1px solid var(--ink);
    border-radius: 3px;
    color: var(--ink);
    background: transparent;
    font-size: 0.82rem;
    font-weight: 750;
}

.dashboard {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(65px, 10vw, 120px) 0;
}

.dashboard h1 {
    margin: 0 0 12px;
    font-size: clamp(2.3rem, 6vw, 5rem);
    letter-spacing: -0.055em;
}

.dashboard > p:not(.eyebrow) {
    max-width: 620px;
    color: var(--ink-soft);
    font-size: 1.1rem;
    line-height: 1.7;
}

.empty-state {
    display: flex;
    max-width: 650px;
    margin-top: 50px;
    padding: 28px;
    border-left: 7px solid var(--yellow);
    gap: 22px;
    background: var(--white);
    box-shadow: 0 12px 35px rgba(37, 43, 51, 0.08);
}

.empty-state > span {
    color: #a4a8ad;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.empty-state strong {
    font-size: 1.05rem;
}

.empty-state p {
    margin: 8px 0 0;
    color: var(--ink-soft);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .login-shell {
        display: block;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        min-height: 100svh;
        padding: 24px;
        justify-content: center;
    }

    .login-card {
        padding: 34px 30px;
    }

    .mobile-brand {
        display: block;
        margin: -12px 0 28px;
    }

    .mobile-brand img {
        width: 205px;
        height: auto;
        object-fit: contain;
    }

    .login-heading__mark {
        left: -30px;
    }

    .sidebar {
        width: min(300px, 86vw);
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: pan-y;
        transform: translateX(-100%);
        transition: transform 180ms ease;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
    }

    .sidebar__brand,
    .main-nav,
    .sidebar__push,
    .sidebar__user {
        flex-shrink: 0;
    }

    .sidebar__push {
        display: block;
        margin-top: auto;
        padding: 0 7px 14px;
    }

    .sidebar__push + .sidebar__user {
        margin-top: 0;
    }

    .sidebar-open {
        overflow: hidden;
    }

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

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 20;
        display: block;
        border: 0;
        opacity: 0;
        visibility: hidden;
        background: rgba(17, 21, 25, 0.58);
        transition: opacity 180ms ease, visibility 180ms ease;
    }

    .sidebar-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    .app-main {
        width: 100%;
        margin-left: 0;
    }

    .mobile-header {
        position: sticky;
        top: 0;
        z-index: 15;
        display: flex;
        height: 68px;
        padding: 8px 20px;
        align-items: center;
        border-bottom: 1px solid rgba(37, 43, 51, 0.12);
        background: var(--yellow);
    }

    .mobile-header img {
        width: 155px;
        height: 48px;
        margin: auto;
        object-fit: contain;
    }

    .menu-toggle {
        position: absolute;
        display: grid;
        width: 40px;
        height: 40px;
        padding: 9px;
        border: 0;
        place-content: center;
        gap: 4px;
        background: transparent;
    }

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--ink);
    }

    .content {
        width: min(100% - 36px, 1100px);
        padding: 38px 0 55px;
    }

    .form-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .login-panel {
        padding: 0;
        background: var(--white);
    }

    .login-card {
        width: 100%;
        min-height: 100svh;
        padding: 34px 24px;
        border: 0;
        box-shadow: none;
    }

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

    .login-heading__mark {
        left: -24px;
        width: 5px;
    }

    .login-footer {
        display: none;
    }

    .topbar img {
        width: 125px;
    }

    .content {
        width: calc(100% - 28px);
        padding-top: 30px;
    }

    .page-header {
        margin-bottom: 28px;
        align-items: stretch;
        flex-direction: column;
    }

    .page-header--actions .button {
        width: 100%;
    }

    .page-header h1 {
        font-size: 2.4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        min-height: 112px;
        padding: 18px 14px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .stat-card__icon {
        width: 37px;
        height: 37px;
    }

    .welcome-card {
        padding: 32px 25px;
    }

    .welcome-card__number {
        display: none;
    }

    .mini-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
    }

    .mini-stats--users {
        grid-template-columns: repeat(2, 1fr);
    }

    .mini-stats > div {
        min-width: 0;
        padding: 11px 8px;
        flex-wrap: wrap;
        gap: 5px;
    }

    .mini-stats small {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-field {
        width: 100%;
    }

    .select-field select {
        width: 100%;
    }

    .toolbar__clear {
        padding: 5px;
        text-align: center;
    }

    .toolbar__results {
        margin: 2px 0 0;
        text-align: center;
    }

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

    .data-table thead {
        display: none;
    }

    .data-table tr {
        position: relative;
        padding: 17px;
        border-top: 1px solid #e6e8ea;
    }

    .data-table td {
        display: flex;
        min-height: 35px;
        padding: 6px 0;
        align-items: center;
        justify-content: space-between;
        border: 0;
        gap: 16px;
        text-align: right;
    }

    .data-table td::before {
        color: #8a9096;
        content: attr(data-label);
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .data-table td:first-child {
        padding-right: 85px;
        justify-content: flex-start;
        text-align: left;
    }

    .data-table td:first-child::before,
    .data-table td.table-actions::before {
        display: none;
    }

    .data-table td.table-actions {
        position: absolute;
        top: 15px;
        right: 12px;
        width: auto;
        min-height: auto;
        padding: 0;
    }

    .form-card {
        margin-right: -14px;
        margin-left: -14px;
        border-right: 0;
        border-left: 0;
    }

    .form-section {
        padding: 26px 20px;
        gap: 25px;
    }

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

    .form-actions {
        position: sticky;
        bottom: 0;
        z-index: 5;
        padding: 15px 20px;
    }

    .form-actions .button {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

.map-link {
    color: #4e5861;
    font-family: "Courier New", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.map-link:hover {
    color: var(--ink);
    text-decoration: underline;
}

.warehouse-name {
    color: var(--ink);
}

.address-cell {
    display: block;
    max-width: 420px;
    line-height: 1.45;
}

.form-card--map {
    max-width: 1300px;
}

.warehouse-form-layout {
    display: grid;
    grid-template-columns: minmax(390px, 0.9fr) minmax(440px, 1.1fr);
}

.warehouse-form-fields {
    border-right: 1px solid #e6e8ea;
}

.form-section--single {
    display: block;
    border-bottom: 0;
}

.form-section--single .form-section__heading {
    margin-bottom: 30px;
}

.form-grid--single {
    grid-template-columns: 1fr;
}

.address-search {
    display: flex;
    gap: 8px;
}

.address-search input {
    flex: 1;
}

.address-search .button {
    min-width: 90px;
}

.geocode-feedback {
    min-height: 20px;
    margin-top: -8px;
    font-size: 0.74rem;
    line-height: 1.5;
}

.geocode-feedback.is-loading {
    color: #666e76;
}

.geocode-feedback.is-success {
    color: #297245;
}

.geocode-feedback.is-error {
    color: var(--danger);
}

.geocode-results {
    display: grid;
    margin-top: -10px;
    border: 1px solid #dfe2e4;
}

.geocode-result {
    display: grid;
    padding: 13px 15px;
    border: 0;
    border-bottom: 1px solid #e7e9ea;
    gap: 5px;
    color: var(--ink);
    background: var(--white);
    text-align: left;
}

.geocode-result:last-child {
    border-bottom: 0;
}

.geocode-result:hover {
    background: #fffdf0;
}

.geocode-result strong {
    font-size: 0.76rem;
    line-height: 1.45;
}

.geocode-result small {
    color: #858c93;
    font-size: 0.64rem;
}

.warehouse-map-panel {
    min-width: 0;
    padding: clamp(28px, 4vw, 45px);
    background: #fafafa;
}

.warehouse-map-heading {
    display: flex;
    margin-bottom: 18px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.warehouse-map-heading strong {
    font-size: 1rem;
}

.warehouse-map-heading p {
    margin: 7px 0 0;
    color: #7a8289;
    font-size: 0.72rem;
    line-height: 1.45;
}

.warehouse-map-heading > span {
    padding: 7px 9px;
    border-radius: 3px;
    color: #7a8289;
    background: #eceeef;
    font-family: "Courier New", monospace;
    font-size: 0.62rem;
    white-space: nowrap;
}

.warehouse-map-heading > span.has-location {
    color: #297245;
    background: #e4f5e9;
}

.warehouse-map {
    width: 100%;
    height: 500px;
    border: 1px solid #d4d8db;
    background: #e6e8e9;
}

.map-attribution-note {
    margin: 10px 0 0;
    color: #92989e;
    font-size: 0.62rem;
}

.warehouse-marker-wrap {
    background: transparent;
}

.warehouse-marker {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    border: 4px solid var(--ink);
    border-radius: 50% 50% 50% 0;
    background: var(--yellow);
    box-shadow: 0 4px 12px rgba(37, 43, 51, 0.25);
    transform: rotate(-45deg);
}

.warehouse-marker::after {
    position: absolute;
    top: 7px;
    left: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink);
    content: "";
}

.leaflet-container {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.overview-map-card {
    display: grid;
    min-height: 650px;
    grid-template-columns: 330px minmax(0, 1fr);
    border: 1px solid #dfe2e4;
    background: var(--white);
}

.overview-map-list {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    max-height: 720px;
    flex-direction: column;
    border-right: 1px solid #dfe2e4;
    background: var(--white);
}

.overview-map-list__heading {
    display: flex;
    min-height: 68px;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7e9;
}

.overview-map-list__heading strong {
    font-size: 0.9rem;
}

.overview-map-list__heading span {
    display: grid;
    min-width: 27px;
    height: 27px;
    padding: 0 8px;
    border-radius: 99px;
    place-items: center;
    color: var(--ink);
    background: var(--yellow);
    font-size: 0.7rem;
    font-weight: 900;
}

.overview-map-list__items {
    overflow-y: auto;
}

.overview-location {
    display: flex;
    width: 100%;
    padding: 17px 18px;
    border: 0;
    border-bottom: 1px solid #eceeef;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink);
    background: var(--white);
    text-align: left;
}

.overview-location:hover {
    background: #fafaf5;
}

.overview-location.is-active {
    background: #fffdf0;
    box-shadow: inset 4px 0 0 var(--yellow);
}

.overview-location > span:last-child {
    display: grid;
    min-width: 0;
}

.overview-location strong {
    font-size: 0.82rem;
}

.overview-location small {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: #747c83;
    font-size: 0.68rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.overview-location__marker {
    display: grid;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    place-items: center;
    color: var(--ink);
    background: var(--yellow);
    font-size: 0.67rem;
    font-weight: 900;
}

.overview-map {
    width: 100%;
    min-height: 650px;
    background: #e6e8e9;
}

.overview-marker-wrap {
    background: transparent;
}

.overview-marker {
    position: relative;
    display: grid;
    width: 34px;
    height: 34px;
    border: 4px solid var(--ink);
    border-radius: 50% 50% 50% 0;
    place-items: center;
    color: var(--ink);
    background: var(--yellow);
    box-shadow: 0 4px 12px rgba(37, 43, 51, 0.3);
    font-size: 0.72rem;
    font-weight: 900;
    transform: rotate(-45deg);
}

.overview-marker i {
    font-style: normal;
    transform: rotate(45deg);
}

.warehouse-popup {
    max-width: 230px;
}

.warehouse-popup strong {
    display: block;
    color: var(--ink);
    font-size: 0.86rem;
}

.warehouse-popup p {
    margin: 7px 0 10px;
    color: #697179;
    font-size: 0.72rem;
    line-height: 1.45;
}

.warehouse-popup a {
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 800;
}

@media (max-width: 1050px) {
    .warehouse-form-layout {
        grid-template-columns: 1fr;
    }

    .warehouse-form-fields {
        border-right: 0;
        border-bottom: 1px solid #e6e8ea;
    }

    .warehouse-map {
        height: 420px;
    }

    .overview-map-card {
        grid-template-columns: 270px minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .address-search {
        align-items: stretch;
        flex-direction: column;
    }

    .warehouse-map-panel {
        padding: 25px 20px;
    }

    .warehouse-map-heading {
        flex-direction: column;
        gap: 12px;
    }

    .warehouse-map {
        height: 360px;
    }

    .page-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .page-actions .button {
        width: 100%;
        padding-right: 12px;
        padding-left: 12px;
    }

    .overview-map-card {
        display: flex;
        min-height: 0;
        margin-right: -14px;
        margin-left: -14px;
        flex-direction: column;
        border-right: 0;
        border-left: 0;
    }

    .overview-map-list {
        max-height: 245px;
        border-right: 0;
        border-bottom: 1px solid #dfe2e4;
    }

    .overview-map-list__heading {
        min-height: 56px;
    }

    .overview-location {
        padding: 13px 16px;
    }

    .overview-map {
        min-height: 480px;
    }
}

.history-link {
    display: inline-grid;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 99px;
    place-items: center;
    color: var(--ink);
    background: var(--yellow);
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
}

.form-field textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d9dde0;
    border-radius: 3px;
    outline: none;
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
    resize: vertical;
}

.form-field textarea:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(245, 230, 31, 0.32);
}

.service-stats {
    display: grid;
    margin-bottom: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.service-stats article {
    display: grid;
    min-height: 105px;
    padding: 20px;
    align-content: center;
    border: 1px solid #e0e3e5;
    background: var(--white);
}

.service-stats strong {
    font-size: 1.55rem;
}

.service-stats span {
    margin-top: 7px;
    color: #747c83;
    font-size: 0.72rem;
}

.service-toolbar {
    flex-wrap: wrap;
}

.date-filter {
    display: flex;
    min-height: 46px;
    padding: 0 10px 0 13px;
    align-items: center;
    border: 1px solid #d9dde0;
    border-radius: 3px;
    gap: 10px;
    color: #747c83;
    background: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
}

.date-filter input {
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.service-order {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-order > strong {
    display: grid;
    width: 35px;
    height: 35px;
    border: 2px solid var(--ink);
    place-items: center;
    color: var(--ink);
    background: var(--yellow);
    font-size: 0.82rem;
}

.service-order > span {
    display: grid;
    color: var(--ink);
    font-weight: 750;
}

.service-order small,
.service-subline {
    display: block;
    margin-top: 4px;
    color: #858c93;
    font-size: 0.68rem;
    font-weight: 500;
}

.service-address {
    display: block;
    max-width: 280px;
    margin-top: 5px;
    color: #737b83;
    font-size: 0.7rem;
    line-height: 1.4;
}

.truck-inline {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-weight: 700;
}

.truck-inline i {
    width: 6px;
    height: 25px;
    border-radius: 4px;
    background: var(--truck-color);
}

.service-detail-header { align-items: flex-end; }
.service-detail-actions { display: flex; align-items: center; gap: 12px; }

.service-detail-hero {
    display: grid;
    margin-bottom: 18px;
    grid-template-columns: 150px minmax(0, 1fr) 240px;
    border: 1px solid #dfe2e4;
    background: var(--white);
}

.service-detail-hero.has-goods-value {
    grid-template-columns: 150px minmax(0, 1fr) 220px 220px;
}

.service-date-card,
.service-payment-card {
    display: grid;
    min-height: 185px;
    padding: 25px;
    align-content: center;
}

.service-date-card {
    justify-items: center;
    color: var(--ink);
    background: var(--yellow);
    text-align: center;
}

.service-date-card span,
.service-payment-card span {
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.service-date-card strong { margin: 4px 0 -2px; font-size: 3.5rem; line-height: 1; }
.service-date-card em { font-size: 0.72rem; font-style: normal; font-weight: 900; letter-spacing: 0.08em; }
.service-date-card small { margin-top: 17px; font-size: 0.67rem; font-weight: 750; }

.service-hero-copy {
    display: grid;
    padding: 30px 34px;
    align-content: center;
    border-right: 1px solid #e2e5e7;
}

.service-hero-copy h2 {
    max-width: 720px;
    margin: 5px 0 8px;
    font-size: clamp(1.35rem, 2.5vw, 2.15rem);
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.service-hero-copy > p:last-of-type { margin: 0; color: #707880; font-size: 0.76rem; }
.service-hero-tags { display: flex; margin-top: 20px; flex-wrap: wrap; gap: 7px; }
.service-hero-tags span { padding: 7px 10px; border: 1px solid #e0e3e5; color: #626a71; background: #f7f7f7; font-size: 0.65rem; font-weight: 750; }

.service-payment-card { color: var(--white); background: var(--ink); }
.service-payment-card--goods { color: var(--ink); background: #f2e51e; }
.service-payment-card span { color: var(--yellow); }
.service-payment-card--goods span { color: #5d6266; }
.service-payment-card strong { margin: 9px 0 5px; font-size: 1.85rem; }
.service-payment-card small { color: #adb4ba; font-size: 0.7rem; }
.service-payment-card--goods small { color: #5d6266; }

.service-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    align-items: start;
    gap: 18px;
}

.service-detail-main,
.service-detail-aside { display: grid; gap: 18px; }
.service-detail-aside { position: sticky; top: 20px; }
.detail-panel { padding: 28px; border: 1px solid #dfe2e4; background: var(--white); }
.detail-panel__heading { display: flex; margin-bottom: 25px; align-items: flex-start; justify-content: space-between; gap: 18px; }
.detail-panel__heading h2 { margin: 4px 0 0; font-size: 1.25rem; letter-spacing: -0.025em; }
.detail-panel__heading > span { padding: 7px 10px; color: #747c83; background: #f1f2f3; font-size: 0.64rem; font-weight: 800; }

.route-timeline { position: relative; }
.route-stop { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); padding-bottom: 30px; gap: 18px; }
.route-stop:not(:last-child)::before { position: absolute; top: 42px; bottom: -1px; left: 22px; width: 2px; background: #dfe2e4; content: ""; }
.route-stop__marker { position: relative; z-index: 1; display: grid; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 50%; place-items: center; color: var(--ink); background: var(--white); font-size: 0.75rem; font-weight: 900; }
.route-stop--destination { padding-bottom: 0; }
.route-stop--destination .route-stop__marker { background: var(--yellow); box-shadow: 0 0 0 6px #fffbd1; }
.route-stop.is-complete .route-stop__marker { border-color: #297245; color: #fff; background: #297245; box-shadow: 0 0 0 6px #e4f4e9; }
.route-stop__completed { display: block; margin-top: 8px; color: #297245; font-size: 0.64rem; font-weight: 800; }
.route-stop__copy { padding: 3px 0 2px; }
.route-stop__copy > small { color: #92999f; font-size: 0.6rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.route-stop__copy h3 { margin: 4px 0 5px; font-size: 0.94rem; }
.route-stop__copy p { margin: 0; color: #707880; font-size: 0.72rem; line-height: 1.5; }
.route-stop__copy a { display: inline-block; margin-top: 8px; color: var(--ink); font-size: 0.66rem; font-weight: 800; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.route-stop__copy blockquote { margin: 12px 0 0; padding: 12px 14px; border-left: 4px solid var(--yellow); color: #626a71; background: #fafafa; font-size: 0.7rem; font-style: normal; line-height: 1.55; }

.service-route-map { width: 100%; height: 350px; border: 1px solid #d8dcdf; background: #e9ebec; }
.route-map-marker { display: grid; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 50%; place-items: center; color: var(--ink); background: var(--white); box-shadow: 0 2px 7px rgba(25, 31, 36, 0.3); font-size: 0.66rem; font-weight: 900; }
.route-map-marker--destination { background: var(--yellow); }

.detail-facts dl { display: grid; margin: 0; gap: 0; }
.detail-facts dl > div { display: grid; padding: 15px 0; grid-template-columns: 105px minmax(0, 1fr); border-top: 1px solid #eceeef; gap: 12px; }
.detail-facts dl > div:first-child { padding-top: 0; border-top: 0; }
.detail-facts dt { color: #8a9198; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.detail-facts dd { position: relative; margin: 0; color: var(--ink); font-size: 0.74rem; font-weight: 750; }
.detail-facts dd > i { display: inline-block; width: 6px; height: 20px; margin-right: 8px; border-radius: 3px; vertical-align: middle; background: var(--truck-color); }
.detail-facts dd small { display: block; margin-top: 5px; color: #7b838a; font-size: 0.65rem; font-weight: 500; line-height: 1.45; }
.detail-facts a { color: inherit; }

.material-detail { color: #4f575e; font-size: 0.78rem; line-height: 1.75; }

.service-observation-form {
    display: grid;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid #e0e3e5;
    gap: 10px;
    background: #fafafa;
}

.service-observations .detail-panel__heading h2 {
    margin: 4px 0 0;
}

.service-observation-form label {
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 850;
}

.service-observation-form textarea {
    width: 100%;
    min-height: 105px;
    padding: 14px 16px;
    resize: vertical;
    border: 1px solid #cfd4d8;
    border-radius: 0;
    color: var(--ink);
    background: var(--white);
    font: inherit;
    font-size: 0.76rem;
    line-height: 1.55;
}

.service-observation-form textarea:focus {
    border-color: var(--ink);
    outline: 3px solid rgba(249, 229, 31, 0.35);
}

.service-observation-form .button {
    justify-self: start;
}

.service-observation-list {
    display: grid;
    gap: 10px;
}

.service-observation {
    padding: 16px 18px;
    border-left: 4px solid var(--yellow);
    background: #f6f7f7;
}

.service-observation__meta {
    display: flex;
    margin-bottom: 8px;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.service-observation__meta strong {
    color: var(--ink);
    font-size: 0.72rem;
}

.service-observation__meta span {
    color: #7c848b;
    font-size: 0.6rem;
    font-weight: 700;
}

.service-observation p,
.service-observation-empty {
    margin: 0;
    color: #545c63;
    font-size: 0.73rem;
    line-height: 1.65;
}

.service-observation-empty {
    padding: 18px;
    border: 1px dashed #d4d8db;
    text-align: center;
    background: #fafafa;
}
.material-document { display: flex; margin-top: 22px; padding: 15px; border: 1px solid #e0e3e5; align-items: center; gap: 13px; color: var(--ink); background: #fafafa; text-decoration: none; }
.material-document:hover { border-color: var(--ink); background: #fffdf0; }
.material-document svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.material-document span { display: grid; gap: 4px; }
.material-document strong { font-size: 0.73rem; }
.material-document small { color: #7b838a; font-size: 0.64rem; }
.service-audit { margin: -3px 4px 0; color: #8a9198; font-size: 0.62rem; line-height: 1.5; }

.driver-dashboard-header {
    align-items: flex-end;
}

.driver-header-actions {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.push-toggle {
    min-height: 50px;
    white-space: nowrap;
}

.push-toggle__icon {
    width: 15px;
    height: 17px;
    border: 2px solid currentColor;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    border-bottom: 0;
}

.push-toggle__icon::after {
    display: block;
    width: 5px;
    height: 2px;
    margin: 15px auto 0;
    border-radius: 0 0 4px 4px;
    background: currentColor;
    content: "";
}

.push-toggle.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}

.push-status {
    width: 100%;
    color: #68717a;
    text-align: right;
}

.push-status.is-error {
    color: var(--danger);
}

.driver-day-summary {
    display: grid;
    margin-bottom: 18px;
    grid-template-columns: minmax(0, 1fr) 220px;
    border: 1px solid #dfe2e4;
    background: var(--white);
}

.driver-day-summary > div {
    display: flex;
    min-height: 76px;
    padding: 16px 20px;
    align-items: center;
    border-right: 1px solid #e4e6e8;
    gap: 11px;
}

.driver-day-summary > div:last-child {
    border-right: 0;
}

.driver-day-summary strong {
    font-size: 0.9rem;
}

.driver-day-summary > div:last-child strong {
    font-size: 1.25rem;
}

.driver-day-summary span {
    color: #7b838a;
    font-size: 0.68rem;
}

.driver-service-list {
    display: grid;
    gap: 12px;
}

.driver-service-card {
    display: grid;
    min-height: 150px;
    grid-template-columns: 105px minmax(0, 1fr) 120px;
    border: 1px solid #dfe2e4;
    color: var(--ink);
    background: var(--white);
    text-decoration: none;
    transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.driver-service-card:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 rgba(37, 43, 51, 0.12);
}

.driver-service-card.is-complete {
    border-color: #b8ddc5;
}

.driver-service-card__order {
    display: grid;
    padding: 20px;
    place-items: center;
    align-content: center;
    color: var(--ink);
    background: var(--yellow);
    gap: 6px;
}

.driver-service-card.is-complete .driver-service-card__order {
    color: #fff;
    background: #297245;
}

.driver-service-card__order span {
    display: grid;
    width: 42px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: 50%;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 900;
}

.driver-service-card__order time {
    font-size: 0.8rem;
    font-weight: 900;
}

.driver-service-card__main {
    display: grid;
    padding: 22px 25px;
    align-content: center;
}

.driver-service-card__main > small {
    color: #90979d;
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.driver-service-card__main h2 {
    margin: 5px 0;
    font-size: 1.05rem;
}

.driver-service-card__main > p {
    margin: 0;
    color: #69717a;
    font-size: 0.71rem;
    line-height: 1.45;
}

.driver-service-card__meta {
    display: flex;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 14px;
    color: #7b838a;
    font-size: 0.63rem;
    font-weight: 700;
}

.driver-service-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.driver-service-card__meta svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.driver-service-card__progress {
    display: grid;
    padding: 20px;
    align-content: center;
    border-left: 1px solid #e5e7e9;
}

.driver-service-card__progress strong {
    font-size: 1.2rem;
}

.driver-service-card__progress span {
    margin-top: 2px;
    color: #858c93;
    font-size: 0.62rem;
}

.driver-service-card__progress i {
    display: block;
    height: 5px;
    margin-top: 12px;
    overflow: hidden;
    background: #e4e6e8;
}

.driver-service-card__progress b {
    display: block;
    height: 100%;
    background: #297245;
}

.driver-empty {
    display: grid;
    min-height: 380px;
    padding: 40px;
    border: 1px solid #dfe2e4;
    place-items: center;
    align-content: center;
    background: var(--white);
    text-align: center;
}

.driver-empty svg {
    width: 55px;
    fill: none;
    stroke: #92999f;
    stroke-width: 1.5;
}

.driver-empty h2 {
    margin: 18px 0 5px;
}

.driver-empty p {
    margin: 0;
    color: #858c93;
    font-size: 0.75rem;
}

.driver-service-header {
    display: flex;
    margin-bottom: 18px;
    align-items: center;
    justify-content: space-between;
}

.driver-service-header a {
    color: #68717a;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
}

.driver-service-header span {
    color: #8a9198;
    font-size: 0.65rem;
    font-weight: 800;
}

.driver-service-hero {
    display: grid;
    margin-bottom: 14px;
    grid-template-columns: 150px minmax(0, 1fr) 240px;
    border-top: 7px solid var(--truck-color);
    color: var(--white);
    background: var(--ink);
}

.driver-service-hero > div {
    display: grid;
    min-height: 180px;
    padding: 26px 30px;
    align-content: center;
}

.driver-service-hero__time {
    justify-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.driver-service-hero__time span,
.driver-service-hero__time small {
    color: #abb2b8;
    font-size: 0.62rem;
    font-weight: 750;
}

.driver-service-hero__time strong {
    margin: 5px 0;
    color: var(--yellow);
    font-size: 2rem;
}

.driver-service-hero .eyebrow {
    color: var(--yellow);
}

.driver-service-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
}

.driver-service-hero p:last-child {
    margin: 0;
    color: #b5bbc0;
    font-size: 0.75rem;
    line-height: 1.5;
}

.driver-service-hero__truck {
    display: flex !important;
    min-height: auto !important;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    gap: 13px;
}

.driver-service-hero__truck svg {
    width: 35px;
    fill: none;
    stroke: var(--yellow);
    stroke-width: 1.6;
}

.driver-service-hero__truck span {
    display: grid;
    gap: 4px;
}

.driver-service-hero__truck strong {
    font-size: 0.8rem;
}

.driver-service-hero__truck small {
    color: #9da4aa;
    font-size: 0.65rem;
}

.driver-route-actions {
    display: flex;
    margin-bottom: 14px;
    padding: 14px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #dfe2e4;
    background: var(--white);
    gap: 15px;
}

.driver-route-button svg {
    width: 18px;
}

.driver-route-actions > span {
    color: #68717a;
    font-size: 0.68rem;
    font-weight: 800;
}

.driver-service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.6fr);
    align-items: start;
    gap: 14px;
}

.driver-service-layout main,
.driver-service-layout aside {
    display: grid;
    gap: 14px;
}

.driver-route-card,
.driver-info-card {
    padding: 26px;
    border: 1px solid #dfe2e4;
    background: var(--white);
}

.driver-info-card h2 {
    margin: 0 0 20px;
    font-size: 1.15rem;
}

.driver-stop-list {
    display: grid;
    gap: 10px;
}

.driver-stop {
    display: grid;
    min-height: 130px;
    padding: 16px;
    grid-template-columns: 46px minmax(0, 1fr) 145px;
    align-items: center;
    border: 1px solid #dfe2e4;
    gap: 15px;
    background: #fafafa;
}

.driver-stop.is-next {
    border-color: var(--ink);
    background: #fffdf0;
    box-shadow: inset 5px 0 0 var(--yellow);
}

.driver-stop.is-complete {
    border-color: #b8ddc5;
    background: #f2faf5;
}

.driver-stop__number {
    display: grid;
    width: 42px;
    height: 42px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    place-items: center;
    background: var(--white);
    font-size: 0.72rem;
    font-weight: 900;
}

.driver-stop.is-complete .driver-stop__number {
    border-color: #297245;
    color: #fff;
    background: #297245;
}

.driver-stop__copy small {
    color: #8a9198;
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.driver-stop__copy h3 {
    margin: 4px 0 5px;
    font-size: 0.85rem;
}

.driver-stop__copy p {
    margin: 0;
    color: #707880;
    font-size: 0.67rem;
    line-height: 1.45;
}

.driver-stop__copy time {
    display: block;
    margin-top: 7px;
    color: #297245;
    font-size: 0.61rem;
    font-weight: 750;
}

.driver-stop__actions {
    display: grid;
    gap: 7px;
}

.driver-stop__actions a,
.driver-stop__actions button {
    display: flex;
    min-height: 37px;
    padding: 0 10px;
    border: 1px solid #d5d9dc;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: var(--white);
    font-size: 0.64rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.driver-stop__actions button {
    width: 100%;
    border-color: var(--ink);
    background: var(--yellow);
}

.driver-stop.is-complete .driver-stop__actions button {
    border-color: #d5d9dc;
    color: #68717a;
    background: var(--white);
}

.driver-stop__actions > span {
    color: #9aa0a6;
    font-size: 0.59rem;
    line-height: 1.4;
    text-align: center;
}

.driver-facts {
    margin: 0;
}

.driver-facts > div {
    padding: 13px 0;
    border-top: 1px solid #eceeef;
}

.driver-facts dt {
    margin-bottom: 5px;
    color: #8a9198;
    font-size: 0.59rem;
    font-weight: 850;
    text-transform: uppercase;
}

.driver-facts dd {
    margin: 0;
    color: #4f575e;
    font-size: 0.7rem;
    line-height: 1.5;
}

.driver-facts a {
    color: var(--ink);
    font-weight: 800;
}

.driver-payment {
    margin: -12px 0 0;
    color: #69717a;
    font-size: 0.72rem;
}

.driver-confirm-form {
    margin-top: 18px;
}

.driver-confirm-form .button,
.driver-signature-status .button {
    width: 100%;
}

.driver-confirmed-state {
    margin: 14px 0 0;
    padding: 10px;
    color: #27653d;
    background: #edf9f1;
    font-size: 0.64rem;
    font-weight: 750;
    text-align: center;
}

.driver-signature-status > p:not(.eyebrow) {
    margin: -10px 0 18px;
    color: #747c83;
    font-size: 0.68rem;
    line-height: 1.5;
}

.driver-signature-status img,
.office-signature img {
    display: block;
    width: 100%;
    max-height: 180px;
    margin-bottom: 15px;
    border: 1px solid #dfe2e4;
    background: #fff;
    object-fit: contain;
}

.driver-signature-status.is-signed {
    border-color: #b8ddc5;
    background: #fbfefc;
}

.office-signature > p {
    margin: 0;
    color: #747c83;
    font-size: 0.67rem;
}

.office-signature__empty {
    padding: 18px;
    background: #f7f7f7;
    text-align: center;
}

.signature-page {
    width: min(100%, 900px);
    margin: 0 auto;
}

.signature-heading {
    margin-bottom: 25px;
}

.signature-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.8rem);
    letter-spacing: -0.05em;
}

.signature-heading > p:last-child {
    margin: 12px 0 0;
    color: #69717a;
    font-size: 0.75rem;
    line-height: 1.5;
}

.signature-form {
    padding: 24px;
    border: 1px solid #dfe2e4;
    background: var(--white);
}

.signature-canvas-wrap {
    position: relative;
    width: 100%;
    height: min(55vh, 430px);
    min-height: 280px;
    overflow: hidden;
    border: 2px dashed #aeb4b9;
    background:
        linear-gradient(#f3f4f5 1px, transparent 1px),
        linear-gradient(90deg, #f3f4f5 1px, transparent 1px),
        #fff;
    background-size: 28px 28px;
    touch-action: none;
}

.signature-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
}

.signature-canvas-wrap > span {
    position: absolute;
    inset: 50% auto auto 50%;
    color: #a0a6ac;
    font-size: 0.85rem;
    font-weight: 750;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.signature-form > p {
    margin: 15px 0;
    color: #747c83;
    font-size: 0.68rem;
    line-height: 1.5;
}

.signature-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.signature-actions .button:disabled {
    cursor: default;
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

.service-wizard {
    max-width: 1380px;
}

.service-type-selector {
    display: grid;
    max-width: 1100px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.service-type-card {
    display: grid;
    min-height: 270px;
    padding: 28px;
    grid-template-rows: auto 1fr auto;
    border: 1px solid #d9dde0;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 14px 32px rgba(37, 43, 51, 0.08);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-type-card:hover {
    border-color: var(--ink);
    box-shadow: 0 18px 38px rgba(37, 43, 51, 0.13);
    transform: translateY(-3px);
}

.service-type-card__digit {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 28px;
    place-items: center;
    color: var(--ink);
    background: var(--yellow);
    font-family: "Courier New", monospace;
    font-size: 1.45rem;
    font-weight: 900;
}

.service-type-card h2 {
    margin: 6px 0 10px;
}

.service-type-card p {
    color: #70777d;
    line-height: 1.6;
}

.service-type-card .button {
    width: fit-content;
    margin-top: 24px;
}

.wizard-identifier {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    min-height: 64px;
    margin-bottom: 10px;
    padding: 10px 18px;
    grid-template-columns: auto minmax(220px, 1fr) auto auto;
    align-items: center;
    border: 1px solid var(--ink);
    gap: 16px;
    color: var(--white);
    background: var(--ink);
    box-shadow: 0 8px 18px rgba(37, 43, 51, 0.13);
}

.wizard-identifier > span {
    color: #aeb4ba;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wizard-identifier > strong {
    color: var(--yellow);
    font-family: "Courier New", monospace;
    font-size: clamp(1rem, 2vw, 1.35rem);
    letter-spacing: 0.04em;
}

.wizard-identifier > small {
    color: #969da3;
    font-size: 0.6rem;
    text-align: right;
}

.wizard-identifier__copy {
    display: inline-flex;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 3px;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.67rem;
    font-weight: 800;
    gap: 7px;
}

.wizard-identifier__copy:hover,
.wizard-identifier__copy:focus-visible {
    border-color: var(--yellow);
    color: var(--ink);
    background: var(--yellow);
}

.wizard-identifier__copy.is-copied {
    border-color: #69c88d;
    color: #d8ffe6;
    background: rgba(41, 114, 69, 0.42);
}

.wizard-identifier__copy svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.mail-document-picker {
    padding: 22px;
    border: 1px solid #dfe2e4;
    background: #f8f9f9;
}

.mail-document-picker__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.mail-document-picker__heading > div {
    display: grid;
    gap: 5px;
}

.mail-document-picker__heading strong {
    font-size: 0.95rem;
}

.mail-document-picker__heading small,
.mail-document-empty {
    color: #737b82;
    line-height: 1.5;
}

.mail-document-status {
    min-height: 20px;
    margin-top: 14px;
    font-size: 0.75rem;
    font-weight: 700;
}

.mail-document-status.is-loading {
    color: #667078;
}

.mail-document-status.is-success {
    color: #19764a;
}

.mail-document-status.is-error {
    color: #b42318;
}

.mail-document-list {
    display: grid;
    margin-top: 12px;
    gap: 9px;
}

.mail-document-option {
    display: grid;
    padding: 14px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    border: 1px solid #d8dcdf;
    gap: 12px;
    background: var(--white);
    cursor: pointer;
}

.mail-document-option:has(input:checked) {
    border-color: var(--ink);
    box-shadow: inset 4px 0 0 var(--yellow);
}

.mail-document-option > span {
    display: grid;
    gap: 4px;
}

.mail-document-option small {
    color: #727a81;
}

.mail-document-option a {
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 800;
}

.mail-document-empty {
    margin: 12px 0 0;
    font-size: 0.75rem;
}

.wizard-nav {
    display: grid;
    margin-bottom: 18px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid #dfe2e4;
    background: var(--white);
}

.wizard-nav button {
    position: relative;
    display: flex;
    min-height: 70px;
    padding: 12px;
    border: 0;
    border-right: 1px solid #e5e7e9;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #8a9198;
    background: var(--white);
}

.wizard-nav button:last-child {
    border-right: 0;
}

.wizard-nav button span {
    display: grid;
    width: 26px;
    height: 26px;
    border: 1px solid #cdd1d4;
    border-radius: 50%;
    place-items: center;
    font-size: 0.65rem;
    font-weight: 900;
}

.wizard-nav button small {
    font-size: 0.68rem;
    font-weight: 750;
}

.wizard-nav button.is-active {
    color: var(--ink);
    background: #fffdf0;
    box-shadow: inset 0 -4px 0 var(--yellow);
}

.wizard-nav button.is-active span,
.wizard-nav button.is-complete span {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--yellow);
}

.wizard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    align-items: start;
    gap: 18px;
}

.wizard-card {
    border: 1px solid #dfe2e4;
    background: var(--white);
}

.wizard-step {
    display: none;
    min-height: 590px;
    padding: clamp(28px, 5vw, 56px);
}

.wizard-step.is-active {
    display: block;
}

.wizard-step__heading {
    display: flex;
    margin-bottom: 38px;
    align-items: flex-start;
    gap: 17px;
}

.wizard-step__heading > span {
    padding-top: 4px;
    color: #9ba1a6;
    font-size: 0.68rem;
    font-weight: 900;
}

.wizard-step__heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    letter-spacing: -0.045em;
}

.wizard-step__heading p:last-child {
    margin: 11px 0 0;
    color: #747c83;
    line-height: 1.55;
}

.wizard-actions {
    display: flex;
    min-height: 78px;
    padding: 15px 22px;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid #e5e7e9;
    gap: 10px;
    background: #fafafa;
}

.wizard-actions > span {
    margin-right: auto;
    color: #7c838a;
    font-size: 0.72rem;
    font-weight: 700;
}

.wizard-summary {
    position: sticky;
    top: 28px;
    padding: 26px;
    border-top: 6px solid var(--yellow);
    background: var(--ink);
    color: var(--white);
}

.wizard-summary .eyebrow {
    color: var(--yellow);
}

.wizard-summary h3 {
    margin: 0;
    font-size: 1.25rem;
}

.wizard-summary > p:not(.eyebrow) {
    margin: 7px 0 27px;
    color: #aeb4ba;
    font-size: 0.75rem;
}

.wizard-summary dl {
    display: grid;
    margin: 0;
    gap: 18px;
}

.wizard-summary dl div {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-summary dt {
    color: #858d95;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wizard-summary dd {
    margin: 6px 0 0;
    color: var(--white);
    font-size: 0.76rem;
    line-height: 1.45;
}

.lookup-field {
    position: relative;
    display: flex;
    align-items: center;
}

.lookup-field input {
    padding-right: 140px;
}

.lookup-field > span {
    position: absolute;
    right: 12px;
    color: #7e868d;
    font-size: 0.67rem;
    font-weight: 750;
}

.lookup-field > span.is-found {
    color: #297245;
}

.lookup-field > span.is-new {
    color: #78610c;
}

.lookup-field > span.is-error {
    color: var(--danger);
}

.saved-destinations {
    margin-bottom: 25px;
    padding: 17px;
    border: 1px solid #e4e1bd;
    background: #fffdf0;
}

.saved-destinations > strong {
    display: block;
    margin-bottom: 11px;
    font-size: 0.76rem;
}

.saved-destinations > div {
    display: flex;
    overflow-x: auto;
    gap: 8px;
}

.saved-destination {
    display: grid;
    min-width: min(390px, calc(100vw - 70px));
    max-width: 460px;
    padding: 14px 15px;
    border: 1px solid #ddd9a9;
    border-radius: 3px;
    gap: 12px;
    color: var(--ink);
    background: var(--white);
    text-align: left;
}

.saved-destination:hover {
    border-color: var(--ink);
}

.saved-destination__address {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.saved-destination__address strong {
    overflow: hidden;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-destination small {
    color: #828990;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.saved-destination__address em {
    overflow: hidden;
    color: #828990;
    font-size: 0.63rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-destination__facts {
    display: grid;
    padding-top: 11px;
    grid-template-columns: minmax(140px, 1.5fr) minmax(86px, 0.8fr) minmax(76px, 0.7fr);
    border-top: 1px solid #ece9ca;
    gap: 12px;
}

.saved-destination__facts > span {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.saved-destination__facts strong {
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-destination__empty {
    padding-top: 9px;
    border-top: 1px solid #ece9ca;
    text-transform: none !important;
}

.schedule-conflict {
    grid-column: 1 / -1;
    padding: 14px 16px;
    border: 1px solid #e6d94c;
    border-left: 4px solid var(--yellow);
    border-radius: 3px;
    background: #fffbea;
    color: var(--ink);
    font-size: 0.72rem;
    line-height: 1.55;
}

.schedule-conflict strong {
    display: block;
    margin-bottom: 4px;
}

.schedule-conflict span {
    color: #6b7075;
}

.schedule-conflict.is-checking {
    border-color: #dfe2e4;
    border-left-color: #8a9198;
    background: #f6f7f8;
    color: #6b7075;
}

.schedule-conflict.is-error {
    border-color: #f0b8b8;
    border-left-color: var(--danger);
    background: #fff4f4;
    color: var(--danger);
}

.service-map-grid {
    display: grid;
    grid-template-columns: minmax(330px, 1fr) minmax(330px, 0.85fr);
    gap: 25px;
}

.consignment-form {
    display: grid;
    width: min(100%, 1120px);
    gap: 20px;
}

.consignment-form .form-card {
    overflow: hidden;
    max-width: none;
    border-color: #dfe2e5;
    border-radius: 5px;
    box-shadow: 0 8px 28px rgba(37, 43, 51, 0.045);
}

.consignment-form .form-card__heading {
    display: grid;
    padding: 24px 28px;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    border-bottom: 1px solid #e7e9eb;
    background: #fafafa;
    gap: 16px;
}

.consignment-form .form-card__heading > span {
    display: grid;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    place-items: center;
    color: var(--ink);
    background: var(--yellow);
    font-size: 0.72rem;
    font-weight: 900;
}

.consignment-form .form-card__heading .eyebrow {
    margin-bottom: 5px;
    color: #737b82;
    font-size: 0.62rem;
}

.consignment-form .form-card__heading h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    letter-spacing: -0.025em;
}

.consignment-form .form-card > .form-grid {
    padding: 28px;
}

.consignment-form .form-field input,
.consignment-form .form-field select {
    height: 52px;
}

.consignment-form .form-field textarea {
    min-height: 82px;
}

.consignment-form .form-field textarea[rows="5"] {
    min-height: 138px;
}

.consignment-form textarea {
    resize: vertical;
}

.consignment-form > .form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-top: 2px;
    padding: 16px 18px;
    border: 1px solid #dfe2e5;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 25px rgba(37, 43, 51, 0.07);
    backdrop-filter: blur(8px);
}

@media (max-width: 700px) {
    .consignment-form {
        margin-right: -14px;
        margin-left: -14px;
        width: auto;
        gap: 12px;
    }

    .consignment-form .form-card {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .consignment-form .form-card__heading {
        padding: 19px 16px;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .consignment-form .form-card__heading > span {
        width: 40px;
        height: 40px;
    }

    .consignment-form .form-card > .form-grid {
        padding: 20px 16px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .consignment-form .form-field--wide {
        grid-column: auto;
    }

    .consignment-form > .form-actions {
        padding: 12px 14px;
        border-right: 0;
        border-left: 0;
    }
}

.service-map {
    width: 100%;
    height: 410px;
    border: 1px solid #d4d8db;
    background: #e6e8e9;
}

.coordinate-chip {
    display: block;
    margin-top: 8px;
    color: #7c838a;
    font-family: "Courier New", monospace;
    font-size: 0.65rem;
}

.coordinate-chip.has-location {
    color: #297245;
}

.warehouse-selection {
    display: grid;
    gap: 12px;
}

.warehouse-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 82px;
    min-height: 82px;
    padding: 14px 16px;
    border: 1px solid #dfe2e4;
    align-items: center;
    gap: 14px;
    background: #fafafa;
    cursor: pointer;
}

.warehouse-option.is-selected {
    border-color: var(--ink);
    background: #fffdf0;
    box-shadow: inset 4px 0 0 var(--yellow);
}

.warehouse-option > input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.warehouse-option__number {
    display: grid;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    place-items: center;
    color: #8a9198;
    background: #e8eaec;
    font-size: 0.75rem;
    font-weight: 900;
}

.warehouse-option.is-selected .warehouse-option__number {
    color: var(--ink);
    background: var(--yellow);
}

.warehouse-option__copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.warehouse-option__copy strong {
    font-size: 0.8rem;
}

.warehouse-option__copy small {
    overflow: hidden;
    color: #767e85;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.warehouse-option__order {
    display: grid;
    gap: 4px;
}

.warehouse-option__order small {
    color: #747c83;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.warehouse-option__order input {
    min-height: 42px;
    padding: 8px;
    text-align: center;
}

.warehouse-selection-error {
    min-height: 20px;
    margin-top: 8px;
    color: var(--danger);
    font-size: 0.7rem;
    font-weight: 700;
}

.manual-pickup {
    margin-top: 18px;
    border: 1px solid #d9dde1;
    background: #fff;
}

.manual-pickup.is-enabled {
    border-color: #c7b900;
    box-shadow: 0 0 0 2px rgba(245, 230, 31, 0.18);
}

.manual-pickup__toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    cursor: pointer;
}

.manual-pickup__toggle input {
    width: 20px;
    height: 20px;
    accent-color: #252b33;
}

.manual-pickup__toggle span {
    display: grid;
    gap: 3px;
}

.manual-pickup__toggle small {
    color: #6c747c;
}

.manual-pickup__fields {
    padding: 20px;
    border-top: 1px solid #e1e4e7;
    background: #fafafa;
}

.manual-pickup__map {
    height: 300px;
    margin-top: 18px;
}

.checkbox-card {
    display: flex;
    padding: 16px;
    border: 1px solid #dfe2e4;
    align-items: flex-start;
    gap: 12px;
    background: #fafafa;
    cursor: pointer;
}

.checkbox-card input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--ink);
}

.checkbox-card span {
    display: grid;
}

.checkbox-card strong {
    font-size: 0.78rem;
}

.checkbox-card small {
    margin-top: 4px;
    color: #7b838a;
    font-size: 0.68rem;
    line-height: 1.4;
}

.text-editor {
    border: 1px solid #d9dde0;
    border-radius: 3px;
    overflow: hidden;
}

.text-editor__toolbar {
    display: flex;
    min-height: 40px;
    padding: 5px 8px;
    align-items: center;
    border-bottom: 1px solid #e4e6e8;
    gap: 5px;
    background: #f8f8f8;
}

.text-editor__toolbar button {
    padding: 6px 9px;
    border: 1px solid #d9dcde;
    border-radius: 3px;
    color: var(--ink);
    background: var(--white);
    font-size: 0.68rem;
}

.text-editor textarea {
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
}

.file-drop {
    display: block;
    cursor: pointer;
}

.file-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.file-drop > span {
    display: grid;
    min-height: 155px;
    padding: 25px;
    border: 2px dashed #cdd1d4;
    place-items: center;
    align-content: center;
    color: var(--ink);
    background: #fafafa;
    text-align: center;
}

.file-drop:hover > span {
    border-color: var(--ink);
    background: #fffdf0;
}

.file-drop svg {
    width: 30px;
    margin-bottom: 10px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.file-drop strong {
    font-size: 0.8rem;
}

.file-drop small {
    margin-top: 4px;
    color: #848b92;
    font-size: 0.68rem;
}

.file-drop em {
    margin-top: 13px;
    color: #4f5962;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 800;
}

.existing-file {
    display: flex;
    padding: 13px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #dfe2e4;
    gap: 15px;
    font-size: 0.72rem;
}

.existing-file a {
    color: var(--ink);
    font-weight: 800;
}

.money-field {
    position: relative;
    display: flex;
    align-items: center;
}

.money-field input {
    padding-right: 45px;
    font-size: 1.1rem;
    font-weight: 800;
}

.money-field span {
    position: absolute;
    right: 15px;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .driver-service-layout {
        grid-template-columns: 1fr;
    }

    .driver-service-layout aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-detail-grid { grid-template-columns: 1fr; }
    .service-detail-aside { position: static; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); }
    .service-audit { grid-column: 1 / -1; }

    .wizard-layout {
        grid-template-columns: 1fr;
    }

    .wizard-summary {
        position: static;
        display: none;
    }

    .service-map-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .driver-dashboard-header {
        align-items: stretch;
        flex-direction: column;
    }

    .driver-header-actions {
        align-items: stretch;
        justify-content: stretch;
    }

    .driver-header-actions > .push-toggle,
    .driver-header-actions > .push-status {
        display: none;
    }

    .push-status {
        text-align: left;
    }

    .driver-day-summary {
        grid-template-columns: 1fr 160px;
    }

    .driver-service-card {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .driver-service-card__progress {
        display: flex;
        padding: 11px 16px;
        grid-column: 1 / -1;
        align-items: center;
        border-top: 1px solid #e5e7e9;
        border-left: 0;
        gap: 6px;
    }

    .driver-service-card__progress i {
        flex: 1;
        margin: 0 0 0 8px;
    }

    .driver-service-hero {
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .driver-service-hero__truck {
        min-height: 90px !important;
        grid-column: 1 / -1;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-left: 0;
    }

    .driver-route-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .driver-route-actions .button {
        width: 100%;
    }

    .driver-stop {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .driver-stop__actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-header {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-date-control {
        align-self: flex-start;
    }

    .dashboard-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-summary article:nth-child(2) {
        border-right: 0;
    }

    .dashboard-summary article:nth-child(-n + 2) {
        border-bottom: 1px solid #e4e6e8;
    }

    .truck-planning-board {
        margin-right: -18px;
        padding-right: 18px;
        grid-template-columns: repeat(var(--truck-columns), minmax(330px, 88vw));
    }

    .service-detail-header {
        align-items: stretch;
        gap: 18px;
    }

    .service-detail-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 9px;
    }

    .service-detail-actions .status-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .service-detail-actions .button {
        width: 100%;
        min-width: 0;
        padding-right: 12px;
        padding-left: 12px;
        text-align: center;
    }

    .service-detail-hero,
    .service-detail-hero.has-goods-value {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .service-date-card { min-height: 165px; padding: 18px; }
    .service-date-card strong { font-size: 2.8rem; }
    .service-hero-copy { padding: 22px; border-right: 0; }
    .service-payment-card {
        min-height: 90px;
        padding: 18px 22px;
        grid-column: 1 / -1;
    }

    .service-payment-card strong {
        margin: 5px 0 3px;
        font-size: 1.55rem;
    }

    .service-detail-aside { grid-template-columns: 1fr; }
    .service-audit { grid-column: auto; }

    .service-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-type-selector {
        grid-template-columns: 1fr;
    }

    .mail-document-picker__heading {
        align-items: stretch;
        flex-direction: column;
    }

    .mail-document-option {
        grid-template-columns: auto 1fr;
    }

    .mail-document-option a {
        grid-column: 2;
    }

    .wizard-nav {
        overflow-x: auto;
        grid-template-columns: repeat(7, minmax(105px, 1fr));
    }

    .wizard-identifier {
        min-height: 58px;
        padding: 9px 13px;
        grid-template-columns: 1fr auto;
        gap: 4px 10px;
    }

    .wizard-identifier > strong {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .wizard-identifier > small {
        grid-column: 2;
        grid-row: 1;
    }

    .wizard-identifier__copy {
        grid-column: 2;
        grid-row: 2;
    }

    .wizard-nav button {
        min-height: 58px;
    }

    .wizard-step {
        min-height: 0;
        padding: 28px 20px;
    }

    .wizard-step__heading {
        margin-bottom: 28px;
    }

    .wizard-actions {
        padding: 13px;
        flex-wrap: wrap;
    }

    .wizard-actions > span {
        width: 100%;
        margin: 0;
        order: -1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .signature-page {
        margin-top: -5px;
    }

    .signature-form {
        margin-right: -14px;
        margin-left: -14px;
        padding: 14px;
        border-right: 0;
        border-left: 0;
    }

    .signature-canvas-wrap {
        height: 52vh;
        min-height: 300px;
    }

    .signature-actions {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
    }

    .driver-day-summary {
        grid-template-columns: 1fr;
    }

    .driver-day-summary > div {
        min-height: 62px;
        border-right: 0;
        border-bottom: 1px solid #e4e6e8;
    }

    .driver-service-card {
        margin-right: -14px;
        margin-left: -14px;
        grid-template-columns: 72px minmax(0, 1fr);
        border-right: 0;
        border-left: 0;
    }

    .driver-service-card__main {
        padding: 18px 15px;
    }

    .driver-service-card__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .driver-service-hero {
        margin-right: -14px;
        margin-left: -14px;
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .driver-service-hero > div {
        min-height: 155px;
        padding: 18px 15px;
    }

    .driver-route-actions,
    .driver-route-card,
    .driver-info-card {
        margin-right: -14px;
        margin-left: -14px;
        border-right: 0;
        border-left: 0;
    }

    .driver-route-card,
    .driver-info-card {
        padding: 20px 16px;
    }

    .driver-service-layout aside {
        grid-template-columns: 1fr;
    }

    .driver-stop {
        padding: 14px 11px;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
    }

    .driver-stop__number {
        width: 36px;
        height: 36px;
    }

    .dashboard-date-control {
        width: 100%;
    }

    .dashboard-date-control label {
        min-width: 0;
        flex: 1;
    }

    .page-header--actions .page-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .daily-overview-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .daily-overview-actions {
        width: 100%;
        justify-content: space-between;
    }

    .reorganize-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .reorganize-save-state {
        width: 100%;
    }

    .reorganize-card {
        grid-template-columns: 22px 32px minmax(0, 1fr) 30px;
        padding: 11px 9px;
        gap: 8px;
    }

    .service-day-map-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-day-map-help {
        justify-content: flex-start;
    }

    .service-day-map {
        height: calc(100svh - 320px);
        min-height: 430px;
    }

    .dashboard-summary article {
        min-height: 64px;
        padding: 12px;
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .truck-planning-board {
        margin-right: -14px;
        padding-right: 14px;
        grid-template-columns: repeat(var(--truck-columns), minmax(300px, 91vw));
    }

    .service-detail-header h1 {
        overflow-wrap: anywhere;
        font-size: clamp(1.7rem, 9vw, 2.25rem);
    }

    .service-detail-header > div:first-child > p:last-child {
        line-height: 1.55;
    }

    .service-detail-actions {
        margin-right: -2px;
        margin-left: -2px;
    }

    .service-detail-hero,
    .service-detail-hero.has-goods-value {
        margin-right: -14px;
        margin-left: -14px;
        grid-template-columns: 95px minmax(0, 1fr);
        border-right: 0;
        border-left: 0;
    }

    .service-date-card {
        min-height: 150px;
        padding: 14px 9px;
    }

    .service-date-card strong {
        font-size: 2.45rem;
    }

    .service-date-card small {
        margin-top: 12px;
        line-height: 1.4;
    }

    .service-hero-copy { padding: 18px 16px; }
    .service-hero-copy h2 { font-size: 1.1rem; }
    .service-hero-tags { margin-top: 14px; }
    .service-payment-card {
        min-height: 82px;
        padding: 15px 18px;
    }

    .service-payment-card strong {
        font-size: 1.4rem;
    }

    .detail-panel {
        margin-right: -14px;
        margin-left: -14px;
        padding: 20px 16px;
        border-right: 0;
        border-left: 0;
    }

    .detail-panel__heading {
        margin-bottom: 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .detail-panel__heading > span {
        padding: 6px 8px;
    }

    .service-route-map { height: 245px; }
    .route-stop { grid-template-columns: 40px minmax(0, 1fr); gap: 13px; }
    .route-stop__marker { width: 40px; height: 40px; }
    .route-stop:not(:last-child)::before { top: 38px; left: 19px; }

    .route-stop__copy {
        min-width: 0;
    }

    .route-stop__copy h3,
    .route-stop__copy p,
    .route-stop__copy blockquote {
        overflow-wrap: anywhere;
    }

    .material-document {
        padding: 13px;
        align-items: flex-start;
    }

    .material-document span {
        min-width: 0;
    }

    .material-document strong,
    .material-document small {
        overflow-wrap: anywhere;
    }

    .service-observation-form {
        padding: 14px;
    }

    .service-observation-form .button {
        width: 100%;
    }

    .service-observation__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .detail-facts dl > div {
        padding: 13px 0;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 10px;
    }

    .detail-facts dd,
    .detail-facts dd small {
        overflow-wrap: anywhere;
    }

    .office-signature img {
        max-width: 100%;
        height: auto;
    }

    .service-stats article {
        min-height: 90px;
        padding: 15px;
    }

    .service-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .date-filter {
        justify-content: space-between;
    }

    .service-wizard {
        margin-right: -14px;
        margin-left: -14px;
    }

    .wizard-nav {
        margin-bottom: 10px;
        border-right: 0;
        border-left: 0;
    }

    .wizard-card {
        border-right: 0;
        border-left: 0;
    }

    .lookup-field input {
        padding-right: 15px;
    }

    .warehouse-option {
        grid-template-columns: 38px minmax(0, 1fr) 68px;
        padding: 12px;
        gap: 9px;
    }

    .lookup-field > span {
        position: static;
        display: block;
        margin-top: 6px;
    }

    .lookup-field {
        display: block;
    }

    .service-map {
        height: 330px;
    }

    .wizard-actions .button {
        flex: 1;
    }
}
/* Keeps the read-only consignment wrapper visually neutral. */
.consignment-form__fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.toolbar--fines {
    align-items: end;
}

.fine-date-filter {
    display: grid;
    gap: 5px;
    color: #6c747c;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
}

.fine-date-filter input {
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #d8dcdf;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.fine-amount {
    white-space: nowrap;
    font-size: 0.86rem;
}

.document-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.document-link:hover {
    text-decoration: underline;
}

.document-link svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}
