/*
 * ShiftAlert shared desktop UI layer.
 * Loaded after page-specific CSS so desktop pages inherit one visual system.
 * Page files should provide data and page-specific layout only; common visuals live here.
 */
@media (min-width: 1024px) {
    body.page-dialup,
    body.page-trips,
    body.page-settings,
    body.page-drivers,
    body.page-users {
        position: static;
        min-height: 100vh;
        width: 100%;
        overflow: auto;
        background: var(--sa-page-bg);
        color: var(--sa-text);
        font-family: var(--sa-font);
    }

    body.page-dialup #main-content,
    body.page-trips #main-content,
    body.page-settings #main-content,
    body.page-drivers #main-content,
    body.page-users #main-content {
        min-height: calc(100vh - 70px);
        padding: 18px;
        background: var(--sa-page-bg);
        box-sizing: border-box;
    }

    body.page-dialup .dialup-hero,
    body.page-dialup .dialup-toolbar-card,
    body.page-dialup .dialup-table-card,
    body.page-dialup .dialup-notes-card,
    body.page-trips .trips-desktop-panel,
    body.page-settings .settings-top-panel,
    body.page-settings .settings-card,
    body.page-settings .settings-note-card,
    body.page-drivers .crew-desktop-panel,
    body.page-users .crew-desktop-panel {
        background: var(--sa-panel-bg) !important;
        border: 1px solid var(--sa-border) !important;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(18, 38, 68, 0.05);
    }

    body.page-dialup .dialup-title,
    body.page-trips .trips-desktop-title-row h1,
    body.page-settings .settings-title-copy h1,
    body.page-drivers .crew-desktop-title-row h1,
    body.page-users .crew-desktop-title-row h1,
    body.page-log .crew-desktop-title-row h1 {
        margin: 0;
        color: #10254d;
        font-family: var(--sa-font);
        font-size: 30px;
        font-weight: 800;
        line-height: 1;
    }

    body.page-dialup .dialup-top-panel,
    body.page-trips .trips-desktop-panel--top,
    body.page-settings .settings-top-panel,
    body.page-drivers .crew-desktop-panel--top,
    body.page-users .crew-desktop-panel--top,
    body.page-log .crew-desktop-panel--top {
        padding: 22px 24px 20px !important;
    }

    body.page-dialup .dialup-title-row,
    body.page-trips .trips-desktop-title-row,
    body.page-settings .settings-title-row,
    body.page-drivers .crew-desktop-title-row,
    body.page-users .crew-desktop-title-row,
    body.page-log .crew-desktop-title-row {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    body.page-dialup .dialup-title-icon,
    body.page-trips .trips-title-icon,
    body.page-settings .settings-title-icon,
    body.page-drivers .crew-title-icon,
    body.page-users .crew-title-icon,
    body.page-log .crew-title-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        border-radius: 6px;
        background: linear-gradient(180deg, #2d63ea 0%, #426fff 100%);
        color: #ffffff;
        box-shadow: 0 1px 3px rgba(32, 77, 176, 0.18);
    }

    body.page-dialup .dialup-title-icon svg,
    body.page-trips .trips-title-icon svg,
    body.page-settings .settings-title-icon svg,
    body.page-drivers .crew-title-icon svg,
    body.page-users .crew-title-icon svg,
    body.page-log .crew-title-icon svg {
        width: 19px !important;
        height: 19px !important;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-dialup .dialup-field select,
    body.page-dialup .dialup-field input,
    body.page-dialup .dialup-date-trigger,
    body.page-dialup .dialup-date-trigger input,
    body.page-dialup .dialup-rows-per-page select,
    body.page-trips .trips-control,
    body.page-trips .trips-inline-control,
    body.page-settings .settings-select,
    body.page-settings .settings-input,
    body.page-drivers .crew-control,
    body.page-drivers .cell_edit,
    body.page-users .crew-control,
    body.page-users .cell_edit,
    body.page-users .crew-table .cell_select {
        min-height: 40px;
        height: 40px;
        border: 1px solid var(--sa-control-border);
        border-radius: 6px;
        background: var(--sa-control-bg) !important;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
        box-sizing: border-box;
        box-shadow: none;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 500;
    }

    body.page-dialup .dialup-field select:hover,
    body.page-dialup .dialup-date-trigger:hover,
    body.page-trips .trips-control:hover,
    body.page-trips .trips-inline-control:hover,
    body.page-settings .settings-select:hover,
    body.page-settings .settings-input:hover,
    body.page-drivers .crew-control:hover,
    body.page-drivers .cell_edit:hover,
    body.page-users .crew-control:hover,
    body.page-users .cell_edit:hover,
    body.page-users .crew-table .cell_select:hover {
        border-color: var(--sa-control-border-hover);
        background: #fafcfe !important;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
    }

    body.page-dialup .dialup-field select:focus,
    body.page-dialup .dialup-date-trigger:focus-within,
    body.page-trips .trips-control:focus,
    body.page-trips .trips-inline-control:focus,
    body.page-settings .settings-select:focus,
    body.page-settings .settings-input:focus,
    body.page-drivers .crew-control:focus,
    body.page-drivers .cell_edit:focus,
    body.page-users .crew-control:focus,
    body.page-users .cell_edit:focus,
    body.page-users .crew-table .cell_select:focus {
        outline: none;
        border-color: var(--sa-control-border-focus);
        box-shadow: inset 0 0 0 1px rgba(76, 112, 174, 0.12);
    }

    body.page-dialup .dialup-table,
    body.page-dialup .dialup-log-grid,
    body.page-trips .trips-table,
    body.page-drivers .crew-table,
    body.page-users .crew-table {
        background: var(--sa-panel-bg);
        color: var(--sa-text-soft);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-font-size);
    }

    body.page-dialup .dialup-log-header,
    body.page-trips .trips-table th,
    body.page-drivers .crew-table th,
    body.page-users .crew-table th {
        background: var(--sa-table-head-bg) !important;
        color: #111111 !important;
        border-color: var(--sa-border-soft) !important;
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-header-font-size) !important;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    body.page-dialup .dialup-data-row td,
    body.page-dialup .dialup-log-row,
    body.page-trips .trips-table td,
    body.page-drivers .crew-table td,
    body.page-users .crew-table td {
        color: var(--sa-text-soft);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-font-size) !important;
    }

    body.page-dialup .dialup-table > tbody > tr:hover > td,
    body.page-trips .trips-table tbody tr:hover td,
    body.page-drivers .crew-table tbody tr:hover td,
    body.page-users .crew-table tbody tr:hover td {
        background: var(--sa-table-row-hover);
    }

    body.page-dialup .dialup-checkbox-cell {
        text-align: center;
    }

    body.page-dialup .dialup-checkbox-cell input[type="checkbox"] {
        width: 42px;
        height: 24px;
        appearance: none;
        -webkit-appearance: none;
        position: relative;
        margin: 0;
        box-sizing: border-box;
        border: 1px solid #c8d1dc;
        border-radius: 999px;
        background: #e4e9ef;
        box-shadow: inset 0 1px 2px rgba(15, 35, 65, 0.08);
        cursor: pointer;
        transition: background 0.14s ease, border-color 0.14s ease;
        vertical-align: middle;
    }

    body.page-dialup .dialup-checkbox-cell input[type="checkbox"]::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(15, 35, 65, 0.18);
        transform: translateY(-50%);
        transition: transform 0.14s ease;
    }

    body.page-dialup .dialup-checkbox-cell input[type="checkbox"]:checked {
        border-color: #1764e8;
        background: #1462ff;
    }

    body.page-dialup .dialup-checkbox-cell input[type="checkbox"]:checked::before {
        transform: translate(18px, -50%);
    }

    body.page-dialup .dialup-checkbox-cell input.dialup-resolved-toggle[type="checkbox"]:checked {
        border-color: #39ae50;
        background: #48c05c;
    }

    body.page-dialup .dialup-checkbox-cell input.dialup-call-manager-toggle[type="checkbox"]:checked {
        border-color: var(--waker-color-brand-orange);
        background: var(--waker-color-brand-orange);
    }

    body.page-dialup .dialup-checkbox-cell input[type="checkbox"]:disabled {
        cursor: default;
        opacity: 0.68;
    }

    body.page-drivers .crew-table:not(.crew-list-table) th:nth-child(5),
    body.page-drivers .crew-table:not(.crew-list-table) td:nth-child(5) {
        display: none;
    }

    body.page-drivers .crew-table:not(.crew-list-table) th:nth-child(6),
    body.page-drivers .crew-table:not(.crew-list-table) td:nth-child(6),
    body.page-drivers .crew-table:not(.crew-list-table) th:nth-child(7),
    body.page-drivers .crew-table:not(.crew-list-table) td:nth-child(7) {
        width: 120px;
        text-align: center;
    }

    :is(body.page-drivers, body.page-users) .crew-table td.editable_cell {
        position: relative;
        height: 54px;
        padding: 0 20px !important;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 500;
        line-height: 40px;
        vertical-align: middle;
        cursor: text;
    }

    :is(body.page-drivers, body.page-users) .crew-table td.editable_cell::before {
        content: "";
        position: absolute;
        inset: 7px 12px;
        display: block !important;
        border: 1px solid var(--sa-control-border);
        border-radius: 6px;
        background: transparent;
        pointer-events: none;
        transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
    }

    :is(body.page-drivers, body.page-users) .crew-table td.editable_cell:hover::before {
        border-color: var(--sa-control-border-hover);
        background: transparent;
    }

    :is(body.page-drivers, body.page-users) .crew-table td.editable_cell.is-editing {
        padding: 7px 12px !important;
        line-height: 1.2;
    }

    :is(body.page-drivers, body.page-users) .crew-table td.editable_cell.is-editing::before,
    :is(body.page-drivers, body.page-users) .crew-table td.editable_cell.is-editing:hover::before {
        display: none !important;
    }

    :is(body.page-drivers, body.page-users) .crew-table input.cell_edit {
        width: 100%;
        min-height: 40px;
        height: 40px;
        padding: 0 10px;
        border: 1px solid var(--sa-control-border);
        border-radius: 6px;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
        background: #ffffff !important;
        opacity: 1 !important;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 500 !important;
        line-height: 1.2;
    }

    body.page-dialup .app-save-state,
    body.page-settings .app-save-state,
    body.page-trips .app-save-state,
    body.page-drivers .app-save-state,
    body.page-users .app-save-state {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 150px;
        min-height: 34px;
        margin-left: auto;
        padding: 7px 14px;
        border: 1px solid transparent;
        border-radius: 999px;
        background: transparent;
        color: transparent;
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.01em;
        opacity: 0;
        pointer-events: none;
        transform: translateY(4px);
        transition: opacity 0.14s ease, transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
        white-space: nowrap;
    }

    body.page-dialup .app-save-state.is-visible,
    body.page-settings .app-save-state.is-visible,
    body.page-trips .app-save-state.is-visible,
    body.page-drivers .app-save-state.is-visible,
    body.page-users .app-save-state.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    body.page-dialup .app-save-state.is-saving,
    body.page-settings .app-save-state.is-saving,
    body.page-trips .app-save-state.is-saving,
    body.page-drivers .app-save-state.is-saving,
    body.page-users .app-save-state.is-saving {
        border-color: #d5e0ec;
        background: #f6faff;
        color: #496795;
    }

    body.page-dialup .app-save-state.is-success,
    body.page-settings .app-save-state.is-success,
    body.page-trips .app-save-state.is-success,
    body.page-drivers .app-save-state.is-success,
    body.page-users .app-save-state.is-success {
        border-color: #c9e5d2;
        background: #edf8f1;
        color: #14633f;
    }

    body.page-dialup .app-save-state.is-error,
    body.page-settings .app-save-state.is-error,
    body.page-trips .app-save-state.is-error,
    body.page-drivers .app-save-state.is-error,
    body.page-users .app-save-state.is-error {
        border-color: #efcaca;
        background: #fff3f3;
        color: #9d3030;
    }
    /* Shared catalog layout controls: Crew and Managers use the same top panel anatomy. */
    :is(body.page-drivers, body.page-users) .crew-desktop-shell {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    :is(body.page-drivers, body.page-users) .crew-desktop-panel--top {
        padding: 22px 24px 20px;
    }

    :is(body.page-drivers, body.page-users) .crew-desktop-title-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 22px;
        border-bottom: 1px solid var(--sa-border-soft);
    }

    :is(body.page-drivers, body.page-users) .crew-desktop-controls {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-top: 14px;
        flex-wrap: wrap;
    }

    :is(body.page-drivers, body.page-users) .crew-select-wrap {
        position: relative;
        width: 220px;
        min-width: 220px;
    }

    :is(body.page-drivers, body.page-users) .crew-select-wrap.is-hidden {
        display: none;
    }

    :is(body.page-drivers, body.page-users) .crew-select {
        width: 100%;
        appearance: none;
        -webkit-appearance: none;
        padding: 0 36px 0 14px;
    }

    :is(body.page-drivers, body.page-users) .crew-select-chevron {
        position: absolute;
        right: 12px;
        top: 50%;
        width: 14px;
        height: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #6a82a8;
        transform: translateY(-50%);
        pointer-events: none;
    }

    :is(body.page-drivers, body.page-users) .crew-select-chevron svg {
        width: 14px;
        height: 14px;
        min-width: 14px;
        min-height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    :is(body.page-drivers, body.page-users) .crew-add-button {
        min-width: 150px;
        min-height: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 20px;
        border: 1px solid transparent;
        border-radius: 6px;
        background: var(--sa-blue) !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        box-sizing: border-box;
        box-shadow: none;
        cursor: pointer;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 800;
    }

    :is(body.page-drivers, body.page-users) .crew-add-button:hover {
        background: var(--sa-blue-hover) !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    :is(body.page-drivers, body.page-users) .crew-add-button:active {
        transform: translateY(1px);
    }

    body.page-trips .trips-add-button,
    body.page-drivers .crew-add-button,
    body.page-users .crew-add-button {
        font-weight: 400 !important;
    }

    :is(body.page-drivers, body.page-users) .crew-add-button svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    :is(body.page-drivers, body.page-users) .crew-desktop-panel--table {
        padding: 0 !important;
        overflow: hidden !important;
    }
    /* Shared desktop date controls: keep Alerts and Shifts icons identical. */
    body.page-dialup .dialup-date-trigger,
    body.page-trips .trips-date-wrap {
        position: relative;
        cursor: pointer;
    }

    body.page-dialup .dialup-date-trigger .dialup-input-icon,
    body.page-trips .trips-date-icon {
        position: absolute !important;
        left: 14px !important;
        top: 50% !important;
        z-index: 2;
        width: 22px !important;
        height: 22px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        color: #5f779d !important;
        transform: translateY(-50%) !important;
        pointer-events: none;
    }

    body.page-dialup .dialup-date-trigger .dialup-input-icon svg,
    body.page-trips .trips-date-icon svg {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px;
        min-height: 22px;
        display: block;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 2 !important;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-dialup .dialup-date-trigger input {
        background: transparent !important;
        border: 0 !important;
        padding-left: 48px !important;
    }

    body.page-trips .trips-date {
        padding-left: 48px !important;
    }

    /* Shared desktop calendar: one stable picker for Alerts and Shifts. */
    .app-desktop-calendar {
        position: absolute;
        z-index: 10000;
        width: 430px;
        box-sizing: border-box;
        padding: 18px;
        border: 1px solid #cbd8e8;
        border-radius: 18px;
        background: #ffffff !important;
        color: #09214d;
        font-family: var(--sa-font) !important;
        font-size: 19px;
        font-weight: 400;
        line-height: 1.2;
        box-shadow: 0 20px 50px rgba(18, 39, 74, 0.18);
        opacity: 1 !important;
        isolation: isolate;
    }

    .app-desktop-calendar[hidden] {
        display: none !important;
    }

    .app-desktop-calendar *,
    .app-desktop-calendar *::before,
    .app-desktop-calendar *::after {
        box-sizing: border-box;
    }

    .app-desktop-calendar button {
        appearance: none;
        -webkit-appearance: none;
        margin: 0;
        font-family: var(--sa-font) !important;
        font-size: inherit;
        font-weight: 400;
    }

    .app-desktop-calendar svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .app-desktop-calendar__header {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .app-desktop-calendar__month {
        text-align: center;
        color: #09214d;
        font-size: 19px;
        font-weight: 400;
        letter-spacing: -0.01em;
    }

    .app-desktop-calendar__nav {
        width: 46px;
        height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid #d9e3ef;
        border-radius: 12px;
        background: #f7faff !important;
        color: #31517f;
        cursor: pointer;
        transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
    }

    .app-desktop-calendar__nav:hover {
        border-color: #b9cbe2;
        background: #eef5ff !important;
        color: #17315f;
    }

    .app-desktop-calendar__nav:active {
        transform: translateY(1px);
    }

    .app-desktop-calendar__weekdays,
    .app-desktop-calendar__grid {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 8px;
    }

    .app-desktop-calendar__weekdays {
        margin-bottom: 10px;
    }

    .app-desktop-calendar__weekdays span {
        text-align: center;
        color: #7188ad;
        font-family: var(--sa-font) !important;
        font-size: 16px;
        font-weight: 400;
    }

    .app-desktop-calendar__day {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid #dce6f2;
        border-radius: 12px;
        background: #ffffff !important;
        color: #09214d;
        font-family: var(--sa-font) !important;
        font-size: 19px;
        font-weight: 400;
        cursor: pointer;
        transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
    }

    .app-desktop-calendar__day:hover {
        border-color: #b8c9df;
        background: #f4f8ff !important;
    }

    .app-desktop-calendar__day:active {
        transform: translateY(1px);
    }

    .app-desktop-calendar__day.is-outside {
        background: #f7faff !important;
        color: #9aa9bf;
    }

    .app-desktop-calendar__day.is-today {
        border-color: #adc4e6;
        background: #f2f7ff !important;
        box-shadow: inset 0 0 0 1px rgba(76, 114, 174, 0.16);
    }

    .app-desktop-calendar__day.is-selected {
        border-color: #2f67f6;
        background: #2f67f6 !important;
        color: #ffffff;
        font-weight: 400;
        box-shadow: 0 7px 16px rgba(47, 103, 246, 0.22);
    }
    /* Shared catalog desktop layer: Crew and Managers use the same controls, table, and save-state styling. */
    body.page-users {
        position: static;
        min-height: 100vh;
        width: 100%;
        overflow: auto;
        background: var(--sa-page-bg);
        color: var(--sa-text);
        font-family: var(--sa-font);
    }

    body.page-users #main-content {
        min-height: calc(100vh - 70px);
        padding: 18px;
        background: var(--sa-page-bg);
        box-sizing: border-box;
    }

    :is(body.page-drivers, body.page-users) .crew-desktop-panel {
        background: var(--sa-panel-bg) !important;
        border: 1px solid var(--sa-border) !important;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(18, 38, 68, 0.05);
    }

    :is(body.page-drivers, body.page-users) .crew-desktop-title-row h1 {
        color: #10254d;
        font-family: var(--sa-font);
        font-size: 30px;
        font-weight: 800;
        line-height: 1;
    }

    :is(body.page-drivers, body.page-users) .crew-title-icon {
        width: 34px;
        height: 34px;
        border-radius: 6px;
        background: linear-gradient(180deg, #2d63ea 0%, #426fff 100%);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 3px rgba(32, 77, 176, 0.18);
    }

    :is(body.page-drivers, body.page-users) .crew-title-icon svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    :is(body.page-drivers, body.page-users) .crew-control,
    :is(body.page-drivers, body.page-users) .cell_edit,
    :is(body.page-drivers, body.page-users) .crew-table .cell_select {
        min-height: 40px;
        height: 40px;
        border: 1px solid var(--sa-control-border);
        border-radius: 6px;
        background: var(--sa-control-bg) !important;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
        box-sizing: border-box;
        box-shadow: none;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 500;
        line-height: 1.2;
    }

    :is(body.page-drivers, body.page-users) .crew-control:hover,
    :is(body.page-drivers, body.page-users) .cell_edit:hover,
    :is(body.page-drivers, body.page-users) .crew-table .cell_select:hover {
        border-color: var(--sa-control-border-hover);
        background: #fafcfe !important;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
    }

    :is(body.page-drivers, body.page-users) .crew-control:focus,
    :is(body.page-drivers, body.page-users) .cell_edit:focus,
    :is(body.page-drivers, body.page-users) .crew-table .cell_select:focus {
        outline: none;
        border-color: var(--sa-control-border-focus);
        box-shadow: inset 0 0 0 1px rgba(76, 112, 174, 0.12);
    }

    :is(body.page-drivers, body.page-users) .crew-table {
        width: 100%;
        border-collapse: collapse;
        background: var(--sa-panel-bg);
        color: var(--sa-text-soft);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-font-size);
    }

    :is(body.page-drivers, body.page-users) .crew-table th {
        background: var(--sa-table-head-bg) !important;
        color: #111111 !important;
        border-right: 1px solid var(--sa-border-soft);
        border-bottom: 1px solid var(--sa-border);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-header-font-size) !important;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        padding: 13px 14px;
        text-align: left;
    }

    :is(body.page-drivers, body.page-users) .crew-table td {
        background: var(--sa-panel-bg);
        color: var(--sa-text-soft) !important;
        border-right: 1px solid var(--sa-border-soft);
        border-bottom: 1px solid var(--sa-border-soft);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-font-size) !important;
        padding: 12px 14px;
        vertical-align: middle;
    }

    :is(body.page-drivers, body.page-users) .crew-table tbody tr:hover td {
        background: var(--sa-table-row-hover);
        color: var(--sa-text-soft) !important;
    }

    :is(body.page-drivers, body.page-users) .crew-table td.editable_cell {
        position: relative;
        height: 54px;
        padding: 0 20px !important;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 500;
        line-height: 40px;
        vertical-align: middle;
        cursor: text;
    }

    :is(body.page-drivers, body.page-users) .crew-table td.editable_cell::before {
        content: "";
        position: absolute;
        inset: 7px 12px;
        display: block !important;
        border: 1px solid var(--sa-control-border);
        border-radius: 6px;
        background: transparent;
        pointer-events: none;
        transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
    }

    :is(body.page-drivers, body.page-users) .crew-table td.editable_cell:hover::before {
        border-color: var(--sa-control-border-hover);
        background: transparent;
    }

    :is(body.page-drivers, body.page-users) .crew-table td.editable_cell.is-editing {
        padding: 7px 12px !important;
        line-height: 1.2;
    }

    :is(body.page-drivers, body.page-users) .crew-table td.editable_cell.is-editing::before,
    :is(body.page-drivers, body.page-users) .crew-table td.editable_cell.is-editing:hover::before,
    :is(body.page-drivers, body.page-users) .crew-table td.editable_cell.is-saving::before {
        display: none !important;
    }

    :is(body.page-drivers, body.page-users) .crew-table input.cell_edit {
        width: 100%;
        min-height: 40px;
        height: 40px;
        padding: 0 10px;
        border: 1px solid var(--sa-control-border);
        border-radius: 6px;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
        background: #ffffff !important;
        opacity: 1 !important;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 500 !important;
        line-height: 1.2;
    }

    :is(body.page-drivers, body.page-users) .crew-table .cell_select {
        width: 100%;
        padding: 0 36px 0 10px;
    }

    :is(body.page-drivers, body.page-users) .crew-table .checkable_cell,
    :is(body.page-drivers, body.page-users) .crew-table .password_cell,
    :is(body.page-drivers, body.page-users) .crew-table .del_butt {
        text-align: center;
    }

    :is(body.page-drivers, body.page-users) .crew-table .cell_check {
        width: 42px;
        height: 24px;
        appearance: none;
        -webkit-appearance: none;
        position: relative;
        margin: 0;
        box-sizing: border-box;
        border: 1px solid #c8d1dc;
        border-radius: 999px;
        background: #e4e9ef;
        box-shadow: inset 0 1px 2px rgba(15, 35, 65, 0.08);
        cursor: pointer;
        transition: background 0.14s ease, border-color 0.14s ease;
        vertical-align: middle;
    }

    :is(body.page-drivers, body.page-users) .crew-table .cell_check::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(15, 35, 65, 0.18);
        transform: translateY(-50%);
        transition: transform 0.14s ease;
    }

    :is(body.page-drivers, body.page-users) .crew-table .cell_check:checked {
        border-color: var(--sa-danger);
        background: var(--sa-danger);
    }

    :is(body.page-drivers, body.page-users) .crew-table .cell_check:checked::before {
        transform: translate(18px, -50%);
    }

    :is(body.page-drivers, body.page-users) .crew-table .password_cell,
    :is(body.page-drivers, body.page-users) .crew-table .del_butt {
        color: transparent !important;
        font-size: 0 !important;
        cursor: pointer;
    }

    :is(body.page-drivers, body.page-users) .crew-table .password_cell::before {
        content: "Change";
        min-height: 32px;
        min-width: 82px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        border: 1px solid #c8d8f3;
        border-radius: 6px;
        color: #185bd1;
        background: #f7faff;
        font-size: var(--sa-desktop-badge-font-size);
        font-weight: 700;
    }

    :is(body.page-drivers, body.page-users) .crew-table .password_cell:hover::before {
        border-color: #a9c0ec;
        background: #eef5ff;
    }

    :is(body.page-drivers, body.page-users) .crew-table .del_butt::before {
        content: "Delete";
        min-height: 32px;
        min-width: 82px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        border: 1px solid #e7b8b8;
        border-radius: 6px;
        color: var(--sa-danger);
        background: #ffffff;
        font-size: var(--sa-desktop-badge-font-size);
        font-weight: 700;
    }

    :is(body.page-drivers, body.page-users) .crew-table .del_butt:hover::before {
        border-color: #dca1a1;
        background: #fff7f7;
    }

    :is(body.page-drivers, body.page-users) .app-save-state {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 150px;
        min-height: 34px;
        margin-left: auto;
        padding: 7px 14px;
        border: 1px solid transparent;
        border-radius: 999px;
        background: transparent;
        color: transparent;
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.01em;
        opacity: 0;
        pointer-events: none;
        transform: translateY(4px);
        transition: opacity 0.14s ease, transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
        white-space: nowrap;
    }

    :is(body.page-drivers, body.page-users) .app-save-state.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    :is(body.page-drivers, body.page-users) .app-save-state.is-saving {
        border-color: #d5e0ec;
        background: #f6faff;
        color: #496795;
    }

    :is(body.page-drivers, body.page-users) .app-save-state.is-success {
        border-color: #c9e5d2;
        background: #edf8f1;
        color: #14633f;
    }

    :is(body.page-drivers, body.page-users) .app-save-state.is-error {
        border-color: #efcaca;
        background: #fff3f3;
        color: #9d3030;
    }

    body.page-users .managers-filter-group {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        min-height: 34px;
    }

    body.page-users .managers-search-wrap {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 36px;
        min-width: min(260px, 100%);
        padding: 0 12px;
        border: 1px solid #c7d8f6;
        border-radius: 6px;
        background: #ffffff;
        color: #6b7f9f;
    }

    body.page-users .managers-search-wrap svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.1;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex: 0 0 auto;
    }

    body.page-users .managers-search-wrap input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: #102a55;
        font-family: var(--sa-font);
        font-size: 14px;
        font-weight: 700;
    }

    body.page-users .managers-filter-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 40px;
        padding: 9px 14px;
        border: 1px solid #d5dfec;
        border-radius: 6px;
        background: #ffffff;
        color: #516887;
        font-family: var(--sa-font);
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
        transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
    }

    body.page-users .managers-filter-chip[data-manager-list-filter="admins"] {
        border-color: #bfd1ef;
        color: #2357ac;
    }

    body.page-users .managers-filter-chip[data-manager-list-filter="users"] {
        border-color: #d6e1ef;
        color: #49627f;
    }

    body.page-users .managers-filter-chip[data-manager-list-filter="invited"] {
        border-color: #ead48a;
        color: #856404;
    }

    body.page-users .managers-filter-chip[data-manager-list-filter="not-invited"] {
        border-color: #f2c39b;
        color: #a94f08;
    }

    body.page-users .managers-filter-chip[data-manager-list-filter="blocked"] {
        border-color: #e7b8b8;
        color: #d15a5a;
    }

    body.page-users .managers-filter-chip:hover {
        background: #f3f7fc;
        border-color: #b9c8db;
    }

    body.page-users .managers-filter-chip[data-manager-list-filter="admins"]:hover {
        background: #f4f8ff;
        border-color: #9bb7ec;
    }

    body.page-users .managers-filter-chip[data-manager-list-filter="users"]:hover {
        background: #f7faff;
        border-color: #c6d5e8;
    }

    body.page-users .managers-filter-chip[data-manager-list-filter="invited"]:hover {
        background: #fff8db;
        border-color: #ddc66e;
    }

    body.page-users .managers-filter-chip[data-manager-list-filter="not-invited"]:hover {
        background: #fff3e8;
        border-color: #e7ab78;
    }

    body.page-users .managers-filter-chip[data-manager-list-filter="blocked"]:hover {
        background: #fff7f7;
        border-color: #dca1a1;
    }

    body.page-users .managers-filter-chip.is-active {
        background: #f3f7fc;
        border-color: #b9c8db;
        color: #516887;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(81, 104, 135, 0.12);
        transform: translateY(1px);
    }

    body.page-users .managers-filter-chip.is-active[data-manager-list-filter="admins"] {
        background: #f4f8ff;
        border-color: #9bb7ec;
        color: #2357ac;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(35, 87, 172, 0.12);
    }

    body.page-users .managers-filter-chip.is-active[data-manager-list-filter="users"] {
        background: #f7faff;
        border-color: #c6d5e8;
        color: #49627f;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(73, 98, 127, 0.12);
    }

    body.page-users .managers-filter-chip.is-active[data-manager-list-filter="invited"] {
        background: #fff8db;
        border-color: #ddc66e;
        color: #856404;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(133, 100, 4, 0.12);
    }

    body.page-users .managers-filter-chip.is-active[data-manager-list-filter="not-invited"] {
        background: #fff3e8;
        border-color: #e7ab78;
        color: #a94f08;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(169, 79, 8, 0.12);
    }

    body.page-users .managers-filter-chip.is-active[data-manager-list-filter="blocked"] {
        background: #f4dbde;
        border-color: #cf7777;
        color: #af4444;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(173, 70, 70, 0.1);
    }

    body.page-users .managers-filter-chip__icon {
        width: 16px;
        height: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    body.page-users .managers-filter-chip__icon svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.1;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-users .managers-table {
        table-layout: fixed;
    }

    body.page-users .managers-table th,
    body.page-users .managers-table td {
        box-sizing: border-box;
    }

    body.page-users .managers-table thead th {
        height: 44px;
        padding-top: 9px;
        padding-bottom: 9px;
        vertical-align: middle;
    }

    body.page-users .managers-col-role {
        width: 8%;
    }

    body.page-users .managers-col-department {
        width: 18%;
    }

    body.page-users .managers-col-manager {
        width: 12%;
    }

    body.page-users .managers-col-email {
        width: 19%;
    }

    body.page-users .managers-col-phone {
        width: 12%;
    }

    body.page-users .managers-col-invitation {
        width: 15%;
    }

    body.page-users .managers-col-access {
        width: 9%;
    }

    body.page-users .managers-col-actions {
        width: 7%;
    }

    body.page-users .managers-table th:nth-child(6),
    body.page-users .managers-table td:nth-child(6),
    body.page-users .managers-table th:nth-child(7),
    body.page-users .managers-table td:nth-child(7) {
        text-align: center;
    }

    body.page-users .managers-list-row {
        cursor: pointer;
        height: 70px;
    }

    body.page-users .managers-list-row td {
        display: table-cell !important;
        height: 70px;
        padding-top: 8px;
        padding-bottom: 8px;
        vertical-align: middle;
        white-space: normal;
    }

    body.page-users .managers-list-row:hover td {
        background: #f7faff !important;
    }

    body.page-users .managers-empty-row td {
        height: 64px;
        color: #7a8da8 !important;
        font-size: 13px !important;
        font-weight: 700;
        text-align: center;
    }

    body.page-users .managers-manager-main,
    body.page-users .managers-invitation-stack,
    body.page-users .managers-access-stack {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    body.page-users .managers-manager-cell,
    body.page-users .managers-department-cell,
    body.page-users .managers-email-cell,
    body.page-users .managers-phone-cell,
    body.page-users .managers-role-cell,
    body.page-users .managers-invitation-cell,
    body.page-users .managers-access-cell,
    body.page-users .managers-actions-td {
        vertical-align: middle;
    }

    body.page-users .managers-manager-name {
        color: #102a55;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    body.page-users .managers-manager-comment,
    body.page-users .managers-contact-link,
    body.page-users .managers-muted {
        color: #61728a;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        overflow-wrap: break-word;
        word-break: normal;
    }

    body.page-users .managers-contact-stack {
        gap: 3px;
    }

    body.page-users .managers-contact-row {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }

    body.page-users .managers-contact-icon {
        width: 14px;
        height: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 14px;
        color: #6f87aa;
    }

    body.page-users .managers-contact-icon svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-users .managers-contact-link {
        display: inline-block;
        max-width: 100%;
        color: #315f9f;
        text-decoration: none;
    }

    body.page-users .managers-contact-link:hover {
        color: #1f56b3;
        text-decoration: underline;
    }

    body.page-users .managers-email-link {
        word-break: break-word;
    }

    body.page-users .managers-phone-link {
        white-space: nowrap;
    }

    body.page-users .managers-muted {
        color: #91a0b5;
    }

    body.page-users .managers-manager-badges {
        display: flex;
        align-items: center;
        gap: 6px;
        min-height: 0;
    }

    body.page-users .managers-owner-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 20px;
        padding: 0 8px;
        border-radius: 999px;
        border: 1px solid var(--waker-label-purple-border);
        background: var(--waker-label-purple-bg);
        color: var(--waker-label-purple-text);
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }

    body.page-users .managers-invite-pill {
        --manager-invite-dot: currentColor;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 7px;
        width: fit-content;
        min-height: 26px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #516887;
        font-size: 13px;
        font-weight: 750;
        line-height: 1.15;
        white-space: nowrap;
    }

    body.page-users .managers-invite-pill::before {
        content: "";
        width: 9px;
        height: 9px;
        border-radius: 999px;
        background: var(--manager-invite-dot);
        flex: 0 0 9px;
        box-shadow: 0 0 0 3px rgba(81, 104, 135, 0.1);
    }

    body.page-users .managers-invite-pill--not-invited {
        --manager-invite-dot: #F97316;
        color: #C2410C;
    }

    body.page-users .managers-invite-pill--not-invited::before {
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.13);
    }

    body.page-users .managers-invite-pill--invited {
        --manager-invite-dot: #EAB308;
        color: #A16207;
    }

    body.page-users .managers-invite-pill--invited::before {
        box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.16);
    }

    body.page-users .managers-invite-pill--accepted {
        --manager-invite-dot: #16A34A;
        color: #15803D;
    }

    body.page-users .managers-invite-pill--accepted::before {
        box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
    }

    body.page-users .managers-invite-button {
        width: auto;
        min-width: 78px;
        min-height: 28px;
        padding: 0 11px;
        border: 1px solid #2563EB;
        border-radius: 6px;
        background: #EFF6FF;
        color: #2563EB;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        white-space: nowrap;
    }

    body.page-users .managers-invite-button:hover {
        background: #DBEAFE;
        border-color: #2563EB;
        color: #1D4ED8;
    }

    body.page-users .managers-invite-button--resend {
        border-color: #475569;
        background: #F8FAFC;
        color: #475569;
    }

    body.page-users .managers-invite-button--resend:hover {
        border-color: #475569;
        background: #E2E8F0;
        color: #334155;
    }

    body.page-users .managers-invitation-stack {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    body.page-users .managers-invite-accepted {
        color: #14703e;
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }

    body.page-users .managers-role-select {
        width: 100%;
        max-width: 112px;
        min-height: 32px;
        height: 32px;
        padding: 0 30px 0 10px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 800;
    }

    body.page-users .managers-role-pill {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 0 9px;
        border-radius: 999px;
        border: 1px solid var(--waker-color-primary-border);
        background: var(--waker-color-primary-soft);
        color: var(--waker-color-primary-text);
        font-size: 12px;
        font-weight: 800;
    }

    body.page-users .managers-role-pill--user {
        border-color: var(--waker-role-manager-border);
        background: var(--waker-role-manager-bg);
        color: var(--waker-role-manager-text);
    }

    body.page-users .managers-role-cell .managers-owner-pill {
        min-height: 24px;
        padding: 0 9px;
        font-weight: 800;
    }

    body.page-users .managers-department-pill {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
        min-height: 24px;
        padding: 0 9px;
        border-radius: 999px;
        border: 1px solid #cfe0f7;
        background: #f7fbff;
        color: #315f9f;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.page-users .managers-hidden-select {
        display: none;
    }

    body.page-drivers .crew-hidden-select {
        display: none;
    }

    body.page-users .managers-access-cell {
        text-align: center;
    }

    body.page-users .managers-status-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 24px;
        margin: 0 auto;
        border-radius: 999px;
        cursor: pointer;
        user-select: none;
        vertical-align: middle;
    }

    body.page-users .managers-status-toggle .managers-access-checkbox {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }

    body.page-users .managers-status-switch {
        position: relative;
        width: 42px;
        height: 24px;
        flex: 0 0 42px;
        box-sizing: border-box;
        border: 1px solid #c8d1dc;
        border-radius: 999px;
        background: #e4e9ef;
        box-shadow: inset 0 1px 2px rgba(15, 35, 65, 0.08);
        transition: background 0.14s ease, border-color 0.14s ease;
    }

    body.page-users .managers-status-switch::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(15, 35, 65, 0.18);
        transform: translateY(-50%);
        transition: transform 0.14s ease;
    }

    body.page-users .managers-status-toggle.is-active .managers-status-switch {
        border-color: #39ae50;
        background: #48c05c;
    }

    body.page-users .managers-status-toggle.is-active .managers-status-switch::before {
        transform: translate(18px, -50%);
    }

    body.page-users .managers-status-toggle.is-blocked .managers-status-switch {
        border-color: #e6b5b5;
        background: #fff1f1;
    }

    body.page-users .managers-status-toggle:focus-within {
        box-shadow: var(--sa-focus-ring);
    }

    body.page-users .managers-actions-cell {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        white-space: nowrap;
    }

    body.page-users .managers-edit-button {
        min-height: 34px;
        min-width: 92px;
        margin-right: 0;
        padding: 0 14px;
        border: 1px solid var(--sa-blue);
        border-radius: 6px;
        background: #ffffff;
        color: var(--sa-blue);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-badge-font-size);
        font-weight: 700;
        cursor: pointer;
    }

    body.page-users .managers-edit-button:hover,
    body.page-users .managers-edit-button:focus-visible {
        background: #f4f8ff;
        border-color: var(--sa-blue-hover);
        color: var(--sa-blue-hover);
        outline: none;
    }

    body.page-users .managers-row-menu summary,
    body.page-users .managers-row-menu__items button {
        font-family: var(--sa-font);
    }

    body.page-users .managers-row-menu {
        position: relative;
    }

    body.page-users .managers-row-menu summary {
        list-style: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 28px;
        border: 1px solid #d2ddec;
        border-radius: 6px;
        background: #ffffff;
        color: #52677f;
        font-size: 15px;
        font-weight: 900;
        cursor: pointer;
    }

    body.page-users .managers-row-menu summary::-webkit-details-marker {
        display: none;
    }

    body.page-users .managers-row-menu__items {
        position: absolute;
        z-index: 20;
        top: calc(100% + 6px);
        right: 0;
        min-width: 168px;
        padding: 6px;
        border: 1px solid #d8e1ee;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 16px 34px rgba(19, 42, 77, 0.16);
    }

    body.page-users .managers-row-menu__items button {
        display: flex;
        width: 100%;
        min-height: 34px;
        align-items: center;
        padding: 0 10px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: #243b59;
        font-size: 13px;
        font-weight: 700;
        text-align: left;
        cursor: pointer;
    }

    body.page-users .managers-row-menu__items button:hover {
        background: #f1f6ff;
    }

    body.page-users .managers-row-menu__items .managers-menu-delete {
        color: #b73f3f;
    }

    body.page-users .managers-row-menu__items .managers-menu-block {
        color: #315f9f;
    }

    body.page-users .managers-editor-backdrop {
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    body.page-users .managers-editor-panel {
        width: min(760px, calc(100% - 48px));
        max-height: calc(100vh - 48px);
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 22px 58px rgba(11, 31, 64, 0.28);
    }

    body.page-users .managers-editor-header {
        flex: 0 0 auto;
        border-bottom: 1px solid #e1e9f3;
    }

    body.page-users .managers-editor-form {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }

    body.page-users .managers-editor-body {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        align-content: start;
        min-height: 0;
        overflow: auto;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    body.page-users .managers-editor-body .sa-modal-error {
        grid-column: 1 / -1;
    }

    body.page-users .managers-editor-field--small {
        grid-column: span 1;
    }

    body.page-users .managers-editor-help {
        display: block;
        margin-top: 7px;
        color: #60779f;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.35;
    }
    :is(body.page-users, body.page-drivers) .managers-editor-label-with-info {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        width: fit-content;
    }

    :is(body.page-users, body.page-drivers) .managers-editor-info {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        border: 1px solid #8bb4ff;
        border-radius: 999px;
        background: #eaf2ff;
        color: #1763f7;
        font-size: 11px;
        font-weight: 900;
        line-height: 1;
        text-transform: none;
        cursor: help;
    }

    :is(body.page-users, body.page-drivers) .managers-editor-info::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 50%;
        bottom: calc(100% + 8px);
        z-index: 30;
        width: max-content;
        max-width: 280px;
        padding: 8px 10px;
        border-radius: 7px;
        background: #102a55;
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
        text-transform: none;
        box-shadow: 0 10px 24px rgba(15, 35, 65, 0.2);
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, 4px);
        transition: opacity 0.12s ease, transform 0.12s ease;
    }

    :is(body.page-users, body.page-drivers) .managers-editor-info::before {
        content: "";
        position: absolute;
        left: 50%;
        bottom: calc(100% + 3px);
        z-index: 31;
        width: 9px;
        height: 9px;
        background: #102a55;
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, 4px) rotate(45deg);
        transition: opacity 0.12s ease, transform 0.12s ease;
    }

    :is(body.page-users, body.page-drivers) .managers-editor-info:hover::after,
    :is(body.page-users, body.page-drivers) .managers-editor-info:focus-visible::after,
    :is(body.page-users, body.page-drivers) .managers-editor-info:hover::before,
    :is(body.page-users, body.page-drivers) .managers-editor-info:focus-visible::before {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    :is(body.page-users, body.page-drivers) .managers-editor-info:focus-visible {
        outline: none;
        box-shadow: var(--sa-focus-ring);
    }

    body.page-users .managers-editor-departments {
        grid-column: 1 / -1;
        padding: 14px;
        border: 1px solid #dce5f1;
        border-radius: 10px;
        background: #f4f7fb;
    }


    body.page-users .managers-editor-department-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 10px;
    }

    body.page-users .managers-editor-department-option {
        display: flex;
        min-height: 42px;
        align-items: center;
        gap: 10px;
        padding: 0 12px;
        border: 1px solid #d7e2f0;
        border-radius: 8px;
        background: #ffffff;
        color: #17315f;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: none;
        cursor: pointer;
    }

    body.page-users .managers-editor-department-option input {
        width: 18px;
        height: 18px;
        accent-color: #1763f7;
    }

    body.page-users .managers-editor-department-option.is-primary {
        border-color: #b8cff8;
        background: #f3f7ff;
        color: #0e4fd1;
    }

    body.page-users .managers-editor-department-option.is-primary::after {
        content: "Primary";
        margin-left: auto;
        color: #60779f;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
    }
    body.page-users #manager_editor_role {
        appearance: none;
        -webkit-appearance: none;
        padding-right: 44px;
        background-color: #ffffff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%23082658' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 16px 16px;
    }

    body.page-users #manager_editor_role::-ms-expand {
        display: none;
    }

    body.page-users .managers-editor-access {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        min-height: 62px;
        box-sizing: border-box;
        padding: 8px 12px;
        border: 1px solid #dbe5f1;
        border-radius: 8px;
        background: #f8fbff;
    }

    body.page-users .managers-editor-access__label {
        color: #102a55;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.2;
        text-transform: none;
    }

    body.page-users .managers-editor-blocked {
        display: inline-flex;
        align-items: center;
        justify-self: end;
        gap: 10px;
        width: auto;
        min-width: min(190px, 100%);
        min-height: 38px;
        box-sizing: border-box;
        padding: 0 12px;
        border: 1px solid var(--sa-control-border);
        border-radius: 8px;
        background: #ffffff;
        color: #243b59;
        font-size: 16px;
        font-weight: 800;
        cursor: pointer;
    }

    body.page-users .managers-editor-blocked.is-active {
        color: #61728a;
    }

    body.page-users .managers-editor-blocked.is-blocked {
        color: #b73f3f;
    }

    body.page-users .managers-editor-blocked input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    body.page-users .managers-editor-blocked .managers-access-switch {
        position: relative;
        width: 42px;
        height: 24px;
        flex: 0 0 42px;
        border: 1px solid #c8d1dc;
        border-radius: 999px;
        background: #e4e9ef;
        box-shadow: inset 0 1px 2px rgba(15, 35, 65, 0.08);
        transition: background 0.14s ease, border-color 0.14s ease;
    }

    body.page-users .managers-editor-blocked .managers-access-switch::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(15, 35, 65, 0.18);
        transform: translateY(-50%);
        transition: transform 0.14s ease;
    }

    body.page-users .managers-editor-blocked input:checked + .managers-access-switch {
        background: var(--sa-danger);
        border-color: var(--sa-danger);
    }

    body.page-users .managers-editor-blocked input:checked + .managers-access-switch::before {
        transform: translate(18px, -50%);
    }

    body.page-users .managers-editor-blocked input:focus-visible + .managers-access-switch {
        box-shadow: var(--sa-focus-ring);
    }

    body.page-users .managers-editor-security {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        min-height: 62px;
        box-sizing: border-box;
        padding: 8px 12px;
        border: 1px solid #dbe5f1;
        border-radius: 8px;
        background: #f8fbff;
    }

    body.page-users .managers-editor-security[hidden] {
        display: none;
    }

    body.page-users .managers-editor-security div {
        display: grid;
        min-width: 0;
        gap: 3px;
    }

    body.page-users .managers-editor-security strong {
        color: #102a55;
        font-size: 14px;
        line-height: 1.2;
    }

    body.page-users .managers-editor-security span {
        color: #65758b;
        font-size: 12px;
        line-height: 1.3;
    }

    body.page-users .managers-editor-security .managers-editor-info {
        width: 16px;
        height: 16px;
        border-color: #8bb4ff;
        background: #eaf2ff;
        color: #1763f7;
        font-size: 11px;
        line-height: 1;
    }

    body.page-users .managers-editor-security .managers-editor-info .ti {
        color: currentColor;
        font-size: 16px;
        line-height: 1;
    }

    body.page-users .managers-editor-security .sa-modal-button {
        min-height: 38px;
        padding: 0 14px;
        white-space: nowrap;
    }

    body.page-users .managers-editor-actions {
        flex: 0 0 auto;
        margin-top: 0;
        border-top: 1px solid #e1e9f3;
        background: #ffffff;
    }

    body.page-users .managers-editor-actions__spacer {
        flex: 1 1 auto;
    }
}

body.page-drivers .crew-reliability-cell {
    min-width: 190px;
}

body.page-drivers .crew-reliability-box {
    display: grid;
    width: 100%;
}

body.page-drivers .crew-reliability-card {
    display: grid;
    justify-items: center;
    gap: 3px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--waker-border-subtle);
    border-radius: 8px;
    background: #ffffff;
    color: var(--waker-color-ink-strong);
    text-align: center;
}

body.page-drivers .crew-reliability-stars {
    display: inline-flex;
    gap: 1px;
    color: #c8d2df;
    font-size: 14px;
    line-height: 1;
}

body.page-drivers .crew-reliability-star.is-active {
    color: #f1b73f;
}

body.page-drivers .crew-reliability-main {
    display: grid;
    gap: 1px;
    justify-items: center;
}

body.page-drivers .crew-reliability-percent {
    font-size: 16px;
    line-height: 18px;
}

body.page-drivers .crew-reliability-label,
body.page-drivers .crew-reliability-link {
    font-size: 12px;
    line-height: 16px;
}

body.page-drivers .crew-reliability-label {
    color: var(--waker-color-ink-muted);
}

body.page-drivers .crew-reliability-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 16px;
    margin-top: 1px;
}

body.page-drivers .crew-reliability-trigger,
body.page-drivers .crew-reliability-stats-button {
    min-height: 18px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--waker-color-primary-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    cursor: pointer;
}

body.page-drivers .crew-reliability-trigger:hover,
body.page-drivers .crew-reliability-trigger:focus-visible,
body.page-drivers .crew-reliability-stats-button:hover,
body.page-drivers .crew-reliability-stats-button:focus-visible {
    color: #003fc4;
    outline: none;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.page-drivers .crew-reliability-row > td {
    padding: 0 !important;
    background: #ffffff;
}

body.page-drivers .crew-reliability-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--waker-border-subtle);
    border-radius: 8px;
    background: #ffffff;
}

body.page-drivers .crew-reliability-panel--loading,
body.page-drivers .crew-reliability-panel--error,
body.page-drivers .crew-reliability-empty {
    color: var(--waker-color-ink-muted);
    font-size: 13px;
}

body.page-drivers .crew-reliability-panel--error {
    color: var(--waker-status-danger-text);
}

body.page-drivers .crew-reliability-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

body.page-drivers .crew-reliability-panel__head > div {
    display: grid;
    gap: 2px;
}

body.page-drivers .crew-reliability-panel__eyebrow {
    color: var(--waker-color-ink-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

body.page-drivers .crew-reliability-panel__head strong {
    font-size: 24px;
    line-height: 28px;
}

body.page-drivers .crew-reliability-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 8px;
}

body.page-drivers .crew-reliability-stat {
    display: grid;
    gap: 4px;
    min-height: 68px;
    padding: 10px;
    border: 1px solid var(--waker-border-subtle);
    border-radius: 8px;
    background: #f9fbfd;
}

body.page-drivers .crew-reliability-stat span {
    color: var(--waker-color-ink-muted);
    font-size: 12px;
    line-height: 15px;
}

body.page-drivers .crew-reliability-stat strong {
    font-size: 16px;
    line-height: 20px;
}

body.page-drivers .crew-reliability-history-table-wrap {
    overflow-x: auto;
}

body.page-drivers .crew-reliability-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

body.page-drivers .crew-reliability-history-table th,
body.page-drivers .crew-reliability-history-table td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--waker-border-subtle);
    text-align: left;
    vertical-align: top;
}

body.page-drivers .crew-reliability-history-table th {
    color: var(--waker-color-ink-muted);
    font-weight: 800;
}

body.page-drivers .crew-reliability-impact {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid var(--waker-status-neutral-border);
    border-radius: 999px;
    background: var(--waker-status-neutral-bg);
    color: var(--waker-status-neutral-text);
    font-weight: 700;
    white-space: nowrap;
}

body.page-drivers .crew-reliability-impact--normal,
body.page-drivers .crew-reliability-impact--confirmed_both,
body.page-drivers .crew-reliability-impact--confirmed_final {
    border-color: var(--waker-status-success-border);
    background: var(--waker-status-success-bg);
    color: var(--waker-status-success-text);
}

body.page-drivers .crew-reliability-impact--excused,
body.page-drivers .crew-reliability-impact--manager_called,
body.page-drivers .crew-reliability-impact--no_reason_warning {
    border-color: var(--waker-status-warning-border);
    background: var(--waker-status-warning-bg);
    color: var(--waker-status-warning-text);
}

body.page-drivers .crew-reliability-impact--critical {
    border-color: var(--waker-status-danger-border);
    background: var(--waker-status-danger-bg);
    color: var(--waker-status-danger-text);
}

body.page-drivers .crew-reliability-history-cards {
    display: none;
}

body.page-drivers .crew-reliability-backdrop {
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(21, 38, 66, 0.58);
    backdrop-filter: blur(2px);
}

body.page-drivers .crew-reliability-modal {
    width: min(1032px, calc(100vw - 56px));
    max-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(9, 24, 50, 0.28);
}

body.page-drivers .crew-reliability-modal__header {
    flex: 0 0 auto;
    align-items: flex-start;
    padding: 28px 34px 22px;
    border-bottom: 0;
    background: #ffffff;
}

body.page-drivers .crew-reliability-modal__header h2 {
    color: #061c4e;
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0;
}

body.page-drivers .crew-reliability-modal__header .sa-modal-subtitle {
    margin-top: 6px;
    color: #526a91;
    font-size: 16px;
    font-weight: 650;
}

body.page-drivers .crew-reliability-modal__header .sa-modal-close {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border: 0;
    border-radius: 999px;
    background: #f3f7ff;
    color: #061c4e;
    font-size: 34px;
    font-weight: 350;
    line-height: 1;
}

body.page-drivers .crew-reliability-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 34px 34px;
    overflow: auto;
    background: #ffffff;
}

body.page-drivers .crew-reliability-modal__body.is-loading,
body.page-drivers .crew-reliability-modal__body.is-error {
    padding: 18px 20px;
}

body.page-drivers .crew-reliability-panel--modal {
    gap: 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
}

body.page-drivers .crew-reliability-panel--modal .crew-reliability-panel__head {
    padding: 18px 20px;
    border-bottom: 1px solid #d9e4f0;
    background: #f8fbff;
}

body.page-drivers .crew-reliability-stats-hero {
    position: relative;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 170px;
    align-items: center;
    gap: 34px;
    min-height: 230px;
    padding: 30px 34px;
    overflow: hidden;
    border: 1px solid #dfe8f5;
    border-radius: 14px;
    background:
        radial-gradient(circle at 18% 18%, rgba(47, 101, 239, 0.08), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

body.page-drivers .crew-reliability-score-ring {
    --crew-score-color: #2f65ef;
    width: 160px;
    height: 160px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(from -90deg, var(--crew-score-color) var(--crew-score-angle), #e7eefc 0deg);
    box-shadow: inset 0 0 0 1px rgba(47, 101, 239, 0.1);
}

body.page-drivers .crew-reliability-score-ring--success {
    --crew-score-color: #0a9b4f;
}

body.page-drivers .crew-reliability-score-ring--warning {
    --crew-score-color: #c36e00;
}

body.page-drivers .crew-reliability-score-ring--danger {
    --crew-score-color: #d23b3b;
}

body.page-drivers .crew-reliability-score-ring--neutral {
    --crew-score-color: #526a91;
}

body.page-drivers .crew-reliability-score-ring__inner {
    width: 138px;
    height: 138px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #edf2fb;
}

body.page-drivers .crew-reliability-score-ring__inner strong {
    color: var(--crew-score-color);
    font-size: 40px;
    font-weight: 760;
    line-height: 1;
}

body.page-drivers .crew-reliability-stats-copy {
    display: grid;
    gap: 10px;
    align-content: center;
    min-width: 0;
}

body.page-drivers .crew-reliability-stats-copy > span {
    color: #1e55c7;
    font-size: 16px;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.page-drivers .crew-reliability-stats-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.15;
}

body.page-drivers .crew-reliability-stats-status--success {
    border-color: #bfead2;
    background: #eefaf3;
    color: #0a9b4f;
}

body.page-drivers .crew-reliability-stats-status--warning {
    border-color: #f5d6a8;
    background: #fff7e8;
    color: #c36e00;
}

body.page-drivers .crew-reliability-stats-status--danger {
    border-color: #f2b7b7;
    background: #fff1f1;
    color: #d23b3b;
}

body.page-drivers .crew-reliability-stats-status--neutral {
    border-color: #d6e1f0;
    background: #f5f8fc;
    color: #526a91;
}

body.page-drivers .crew-reliability-stats-copy > p {
    max-width: 520px;
    margin: 2px 0 0;
    color: #4a5e80;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.45;
}

body.page-drivers .crew-reliability-stats-watermark {
    position: relative;
    justify-self: center;
    width: 124px;
    height: 124px;
    display: grid;
    place-items: center;
    color: #b9ccfb;
}

body.page-drivers .crew-reliability-stats-watermark::before,
body.page-drivers .crew-reliability-stats-watermark::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dce7ff;
}

body.page-drivers .crew-reliability-stats-watermark::before {
    top: 12px;
    right: 4px;
}

body.page-drivers .crew-reliability-stats-watermark::after {
    left: -10px;
    top: 54px;
}

body.page-drivers .crew-reliability-stats-watermark svg {
    width: 112px;
    height: 112px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.page-drivers .crew-reliability-panel--history {
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
}

body.page-drivers .crew-reliability-panel--history .crew-reliability-panel__head {
    padding: 12px 16px;
    border-bottom: 1px solid #d9e4f0;
    background: #f8fbff;
}

body.page-drivers .crew-reliability-section {
    display: grid;
    gap: 12px;
    padding: 16px 20px 18px;
    border-bottom: 1px solid #d9e4f0;
}

body.page-drivers .crew-reliability-section:last-child {
    border-bottom: 0;
}

body.page-drivers .crew-reliability-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

body.page-drivers .crew-reliability-section__head h3 {
    margin: 0;
    color: #102a55;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

body.page-drivers .crew-reliability-section__head span {
    color: #617999;
    font-size: 12px;
    font-weight: 700;
}

body.page-drivers .crew-reliability-panel--modal .crew-reliability-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
}

body.page-drivers .crew-reliability-panel--modal .crew-reliability-stat {
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-rows: 50px minmax(0, 1fr);
    align-items: center;
    gap: 10px 14px;
    min-height: 132px;
    padding: 24px 18px 20px;
    border-color: #dfe8f5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(21, 48, 91, 0.04);
}

body.page-drivers .crew-reliability-panel--modal .crew-reliability-stat__icon {
    grid-column: 1;
    grid-row: 1;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf4ff;
    color: #2f65ef;
}

body.page-drivers .crew-reliability-panel--modal .crew-reliability-stat__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.page-drivers .crew-reliability-panel--modal .crew-reliability-stat__label {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    color: #526a91;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

body.page-drivers .crew-reliability-panel--modal .crew-reliability-stat strong {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    color: #061c4e;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

body.page-drivers .crew-reliability-panel--modal .crew-reliability-stat--long-value strong {
    font-size: 23px;
    white-space: nowrap;
}

body.page-drivers .crew-reliability-panel--history .crew-reliability-history-table-wrap {
    margin: 0;
    overflow-x: auto;
}

body.page-drivers .crew-reliability-panel--history .crew-reliability-history-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
    background: #ffffff;
    font-size: 13px;
}

body.page-drivers .crew-reliability-panel--history .crew-reliability-history-table th,
body.page-drivers .crew-reliability-panel--history .crew-reliability-history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #d9e4f0;
    background: transparent;
    color: #002b6f;
    text-align: left;
    vertical-align: middle;
}

body.page-drivers .crew-reliability-panel--history .crew-reliability-history-table thead th {
    padding-top: 12px;
    padding-bottom: 10px;
    color: #223652;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #e8eef6;
}

body.page-drivers .crew-reliability-panel--history .crew-reliability-history-table tbody tr:last-child td {
    border-bottom: 0;
}

body.page-drivers .crew-reliability-log-entry:hover td {
    background: #f8fbff;
}

body.page-drivers .crew-reliability-log-timeline-head,
body.page-drivers .crew-reliability-log-timeline-cell {
    width: 52px;
    min-width: 52px;
    padding-left: 18px;
    padding-right: 8px;
    text-align: center;
}

body.page-drivers .crew-reliability-log-timeline-cell {
    position: relative;
}

body.page-drivers .crew-reliability-log-timeline-cell::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #d3deeb;
}

body.page-drivers .crew-reliability-log-timeline-cell.is-first::before {
    top: 50%;
}

body.page-drivers .crew-reliability-log-timeline-cell.is-last::before {
    bottom: 50%;
}

body.page-drivers .crew-reliability-log-timeline-cell.is-first.is-last::before {
    display: none;
}

body.page-drivers .crew-reliability-log-step {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #d4dfea;
    border-radius: 999px;
    background: #ffffff;
    color: #29466f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

body.page-drivers .crew-reliability-panel--history .crew-reliability-impact,
body.page-drivers .crew-reliability-mini-pill {
    min-height: 26px;
    padding: 4px 11px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 16px;
    box-shadow: none;
}

body.page-drivers .crew-reliability-mini-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8e1ec;
    background: #f4f7fb;
    color: #617999;
    font-weight: 700;
    white-space: nowrap;
}

body.page-drivers .crew-reliability-mini-pill--success {
    border-color: #cdebd8;
    background: #edf9f1;
    color: #08773c;
}

body.page-drivers .crew-reliability-mini-pill--warning {
    border-color: #f0d3a4;
    background: #fff7e8;
    color: #c36e00;
}

body.page-drivers .crew-reliability-mini-pill--danger {
    border-color: #f1c5c4;
    background: #fff2f2;
    color: #e33333;
}

@media (max-width: 900px) {
    body.page-drivers .crew-reliability-summary-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    body.page-drivers .crew-reliability-modal {
        width: min(100%, calc(100vw - 28px));
    }

    body.page-drivers .crew-reliability-modal__header {
        padding: 22px 22px 18px;
    }

    body.page-drivers .crew-reliability-modal__body {
        padding: 0 22px 24px;
    }

    body.page-drivers .crew-reliability-stats-hero {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 18px;
        padding: 24px;
        text-align: center;
    }

    body.page-drivers .crew-reliability-stats-watermark {
        display: none;
    }

    body.page-drivers .crew-reliability-stats-copy {
        justify-items: center;
    }

    body.page-drivers .crew-reliability-panel--modal .crew-reliability-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-drivers .crew-reliability-history-table-wrap {
        display: none;
    }

    body.page-drivers .crew-reliability-history-cards {
        display: grid;
        gap: 10px;
    }

    body.page-drivers .crew-reliability-history-card {
        display: grid;
        gap: 10px;
        padding: 12px;
        border: 1px solid var(--waker-border-subtle);
        border-radius: 8px;
        background: #ffffff;
    }

    body.page-drivers .crew-reliability-history-card__head {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    body.page-drivers .crew-reliability-history-card dl {
        display: grid;
        gap: 8px;
        margin: 0;
    }

    body.page-drivers .crew-reliability-history-card dl > div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    body.page-drivers .crew-reliability-history-card dt,
    body.page-drivers .crew-reliability-history-card dd {
        margin: 0;
    }

    body.page-drivers .crew-reliability-history-card dt {
        color: var(--waker-color-ink-muted);
    }
}

@media (min-width: 1024px) {
    body.page-account {
        position: static;
        min-height: 100vh;
        width: 100%;
        overflow: auto;
        background: var(--sa-page-bg);
        color: var(--sa-text);
        font-family: var(--sa-font);
    }

    body.page-account #main-content {
        min-height: calc(100vh - 70px);
        padding: 18px;
        background: var(--sa-page-bg);
        box-sizing: border-box;
    }

    body.page-account .account-page-shell {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    body.page-account .account-title-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    body.page-account .account-title-icon {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        background: linear-gradient(180deg, #2d63ea 0%, #426fff 100%);
        color: #ffffff;
        box-shadow: 0 1px 3px rgba(32, 77, 176, 0.18);
    }

    body.page-account .account-title-icon svg,
    body.page-account .wk-button__icon svg {
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-account .account-title-icon svg {
        width: 19px;
        height: 19px;
    }

    body.page-account .wk-button__icon svg {
        width: 18px;
        height: 18px;
    }

    body.page-account .account-profile-list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin: 0;
        border: 1px solid var(--sa-border-soft);
        border-radius: 8px;
        overflow: hidden;
    }

    body.page-account .account-profile-row {
        display: grid;
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
        border-bottom: 1px solid var(--sa-border-soft);
        background: #ffffff;
    }

    body.page-account .account-profile-row:last-child {
        border-bottom: 0;
    }

    body.page-account .account-profile-row dt,
    body.page-account .account-profile-row dd,
    body.page-account .account-profile-label,
    body.page-account .account-profile-value {
        margin: 0;
        min-width: 0;
    }

    body.page-account .account-profile-row dt,
    body.page-account .account-profile-label {
        color: #6b7f9d;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    body.page-account .account-profile-row dd,
    body.page-account .account-profile-value {
        color: #10254d;
        font-size: 15px;
        font-weight: 650;
        overflow-wrap: anywhere;
    }

    body.page-account .account-profile-form {
        display: grid;
        gap: 0;
    }

    body.page-account .account-profile-row--field {
        align-items: center;
    }

    body.page-account .account-profile-input {
        min-width: 0;
        max-width: 420px;
        color: #10254d;
        font-weight: 650;
    }

    body.page-account .account-actions {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    body.page-account .account-action-note {
        margin: 0;
        color: #6b7f9d;
        font-size: 14px;
        line-height: 1.45;
    }
}

@media (min-width: 1024px) {
    body.page-firms {
        position: static;
        min-height: 100vh;
        width: 100%;
        overflow: auto;
        background: var(--sa-page-bg);
        color: var(--sa-text);
        font-family: var(--sa-font);
    }

    body.page-firms #main-content {
        min-height: calc(100vh - 70px);
        padding: 18px;
        background: var(--sa-page-bg);
        box-sizing: border-box;
    }

    body.page-firms .companies-desktop-shell {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    body.page-firms .crew-desktop-panel {
        background: var(--sa-panel-bg) !important;
        border: 1px solid var(--sa-border) !important;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(18, 38, 68, 0.05);
    }

    body.page-firms .crew-desktop-panel--top {
        padding: 22px 24px 20px !important;
    }

    body.page-firms .crew-desktop-title-row {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding-bottom: 22px;
        border-bottom: 1px solid var(--sa-border-soft);
    }

    body.page-firms .crew-desktop-title-row h1 {
        margin: 0;
        color: #10254d;
        font-family: var(--sa-font);
        font-size: 30px;
        font-weight: 800;
        line-height: 1;
    }

    body.page-firms .crew-title-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        border-radius: 6px;
        background: linear-gradient(180deg, #2d63ea 0%, #426fff 100%);
        color: #ffffff;
        box-shadow: 0 1px 3px rgba(32, 77, 176, 0.18);
    }

    body.page-firms .crew-title-icon svg {
        width: 19px !important;
        height: 19px !important;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-firms .control_box {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        min-height: 40px;
        margin: 0;
        padding: 14px 0 0;
        border: 0;
        background: transparent;
        box-sizing: border-box;
    }

    body.page-firms .companies-desktop-filterbar {
        flex: 1 1 760px;
        display: grid;
        grid-template-columns: repeat(4, minmax(150px, 1fr));
        gap: 10px;
        align-items: end;
    }

    body.page-firms .companies-filter-field {
        min-width: 0;
        display: grid;
        gap: 5px;
        color: #31456c;
        font-family: var(--sa-font);
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
    }

    body.page-firms .companies-filter-select {
        width: 100%;
        min-height: 40px;
        border: 1px solid var(--sa-control-border);
        border-radius: 6px;
        background: var(--sa-control-bg);
        color: #15315f;
        box-sizing: border-box;
        padding: 0 34px 0 10px;
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-control-font-size);
        font-weight: 500;
    }

    body.page-firms .companies-filter-select:hover,
    body.page-firms .companies-filter-select:focus {
        border-color: var(--sa-control-border-focus);
        outline: none;
    }

    body.page-firms .crew-add-button {
        min-width: 150px;
        min-height: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 20px;
        border: 1px solid transparent;
        border-radius: 6px;
        background: var(--sa-blue) !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        box-sizing: border-box;
        box-shadow: none;
        cursor: pointer;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 400 !important;
        line-height: 1;
    }

    body.page-firms .crew-add-button:hover {
        background: var(--sa-blue-hover) !important;
    }

    body.page-firms .crew-add-button:active {
        transform: translateY(1px);
    }

    body.page-firms .crew-add-button svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-firms .app-save-state {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 150px;
        min-height: 34px;
        margin-left: auto;
        padding: 7px 14px;
        border: 1px solid transparent;
        border-radius: 999px;
        background: transparent;
        color: transparent;
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.01em;
        opacity: 0;
        pointer-events: none;
        transform: translateY(4px);
        transition: opacity 0.14s ease, transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
        white-space: nowrap;
    }

    body.page-firms .app-save-state.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    body.page-firms .app-save-state.is-saving {
        border-color: #d5e0ec;
        background: #f6faff;
        color: #496795;
    }

    body.page-firms .app-save-state.is-success {
        border-color: #c9e5d2;
        background: #edf8f1;
        color: #14633f;
    }

    body.page-firms .app-save-state.is-error {
        border-color: #efcaca;
        background: #fff3f3;
        color: #9d3030;
    }

    body.page-firms #table_catalog_container {
        padding: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    body.page-firms .companies-table {
        min-width: 1220px;
        width: 100%;
        border-collapse: collapse;
        background: var(--sa-panel-bg);
        color: var(--sa-text-soft);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-font-size);
    }

    body.page-firms .companies-table th {
        background: var(--sa-table-head-bg) !important;
        color: #111111 !important;
        border-right: 1px solid var(--sa-border-soft);
        border-bottom: 1px solid var(--sa-border);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-header-font-size) !important;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-align: left;
        text-transform: uppercase;
        padding: 13px 14px;
        vertical-align: middle;
    }

    body.page-firms .companies-table td {
        background: var(--sa-panel-bg);
        color: var(--sa-text-soft) !important;
        border-right: 1px solid var(--sa-border-soft);
        border-bottom: 1px solid var(--sa-border-soft);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-font-size) !important;
        padding: 12px 14px;
        vertical-align: middle;
    }

    body.page-firms .companies-table tbody tr:hover td {
        background: var(--sa-table-row-hover);
        color: var(--sa-text-soft) !important;
    }

    body.page-firms .companies-table td.editable_cell {
        position: relative;
        height: 54px;
        padding: 0 20px !important;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 500;
        line-height: 40px;
        vertical-align: middle;
        cursor: text;
    }

    body.page-firms .companies-table td.editable_cell::before {
        content: "";
        position: absolute;
        inset: 7px 12px;
        display: block !important;
        border: 1px solid var(--sa-control-border);
        border-radius: 6px;
        background: transparent;
        pointer-events: none;
        transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
    }

    body.page-firms .companies-table td.editable_cell:hover::before {
        border-color: var(--sa-control-border-hover);
        background: transparent;
    }

    body.page-firms .companies-table td.editable_cell.is-editing {
        padding: 7px 12px !important;
        line-height: 1.2;
    }

    body.page-firms .companies-table td.editable_cell.is-editing::before,
    body.page-firms .companies-table td.editable_cell.is-editing:hover::before,
    body.page-firms .companies-table td.editable_cell.is-saving::before {
        display: none !important;
    }

    body.page-firms .companies-table input.cell_edit,
    body.page-firms .companies-table .cell_select {
        min-height: 40px;
        height: 40px;
        border: 1px solid var(--sa-control-border);
        border-radius: 6px;
        background: var(--sa-control-bg) !important;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
        box-sizing: border-box;
        box-shadow: none;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 500 !important;
        line-height: 1.2;
    }

    body.page-firms .companies-table input.cell_edit {
        width: 100%;
        padding: 0 10px;
    }

    body.page-firms .companies-table .cell_select {
        width: 100%;
        min-width: 150px;
        padding: 0 36px 0 10px;
    }

    body.page-firms .companies-table input.cell_edit:hover,
    body.page-firms .companies-table .cell_select:hover {
        border-color: var(--sa-control-border-hover);
        background: #fafcfe !important;
    }

    body.page-firms .companies-table input.cell_edit:focus,
    body.page-firms .companies-table .cell_select:focus {
        outline: none;
        border-color: var(--sa-control-border-focus);
        box-shadow: inset 0 0 0 1px rgba(76, 112, 174, 0.12);
    }

    body.page-firms .companies-table .checkable_cell,
    body.page-firms .companies-table .del_butt {
        text-align: center;
    }

    body.page-firms .companies-table .cell_check {
        width: 42px;
        height: 24px;
        appearance: none;
        -webkit-appearance: none;
        position: relative;
        margin: 0;
        box-sizing: border-box;
        border: 1px solid #c8d1dc;
        border-radius: 999px;
        background: #e4e9ef;
        box-shadow: inset 0 1px 2px rgba(15, 35, 65, 0.08);
        cursor: pointer;
        transition: background 0.14s ease, border-color 0.14s ease;
        vertical-align: middle;
    }

    body.page-firms .companies-table .cell_check::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(15, 35, 65, 0.18);
        transform: translateY(-50%);
        transition: transform 0.14s ease;
    }

    body.page-firms .companies-table .cell_check:checked {
        border-color: #1764e8;
        background: #1462ff;
    }

    body.page-firms .companies-table td:nth-child(4) .cell_check:checked {
        border-color: var(--waker-color-success);
        background: var(--waker-color-success);
    }

    body.page-firms .companies-table td:nth-child(6) .cell_check:checked,
    body.page-firms .companies-table td:nth-child(7) .cell_check:checked {
        border-color: var(--sa-danger);
        background: var(--sa-danger);
    }

    body.page-firms .companies-table .cell_check:checked::before {
        transform: translate(18px, -50%);
    }

    body.page-firms .companies-table .del_butt {
        color: transparent !important;
        font-size: 0 !important;
        cursor: pointer;
    }

    body.page-firms .companies-table .del_butt::before {
        content: "Delete";
        min-height: 32px;
        min-width: 82px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        border: 1px solid #e7b8b8;
        border-radius: 6px;
        color: var(--sa-danger);
        background: #ffffff;
        font-size: var(--sa-desktop-badge-font-size);
        font-weight: 700;
    }

    body.page-firms .companies-table .del_butt:hover::before {
        border-color: #dca1a1;
        background: #fff7f7;
    }

    body.page-firms .companies-table .companies-info-cell,
    body.page-firms .companies-table .companies-settings-cell,
    body.page-firms .companies-table .companies-billing-cell {
        text-align: center;
    }

    body.page-firms .companies-action-button {
        min-height: 32px;
        gap: 8px;
        padding: 0 12px;
        border-radius: 6px;
        font-size: var(--sa-desktop-badge-font-size);
        font-weight: 700;
        white-space: nowrap;
    }

    body.page-firms .companies-action-button svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-firms .companies-table th:nth-child(1),
    body.page-firms .companies-table td:nth-child(1) {
        width: 72px;
        text-align: center;
    }

    body.page-firms .companies-table th:nth-child(4),
    body.page-firms .companies-table td:nth-child(4),
    body.page-firms .companies-table th:nth-child(5),
    body.page-firms .companies-table td:nth-child(5),
    body.page-firms .companies-table th:nth-child(6),
    body.page-firms .companies-table td:nth-child(6),
    body.page-firms .companies-table th:nth-child(7),
    body.page-firms .companies-table td:nth-child(7) {
        width: 120px;
        text-align: center;
    }

    body.page-firms .companies-table th:nth-child(8),
    body.page-firms .companies-table td:nth-child(8),
    body.page-firms .companies-table th:nth-child(9),
    body.page-firms .companies-table td:nth-child(9),
    body.page-firms .companies-table th:nth-child(10),
    body.page-firms .companies-table td:nth-child(10) {
        width: 160px;
        text-align: center;
    }

    body.page-firms .companies-table th:nth-child(11),
    body.page-firms .companies-table td:nth-child(11) {
        width: 120px;
        text-align: center;
    }

    body.page-firms .companies-info-dialog,
    body.page-firms .companies-settings-dialog,
    body.page-firms .companies-billing-dialog {
        width: min(760px, 100%);
    }

    body.page-firms .companies-info-fields,
    body.page-firms .companies-settings-fields,
    body.page-firms .companies-billing-fields {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding-top: 0;
    }

    body.page-firms .companies-info-wide,
    body.page-firms .companies-settings-wide,
    body.page-firms .companies-billing-wide {
        grid-column: 1 / -1;
    }

    body.page-firms .companies-info-delete-button {
        margin-right: auto;
    }

    body.page-firms .warning {
        margin: 14px 0 0;
        padding: 12px 16px;
        border: 1px solid #f0cf99;
        border-left: 4px solid var(--waker-color-warning);
        border-radius: 8px;
        background: #fffaf0;
        color: #704a12;
        font-family: var(--sa-font);
        font-size: 14px;
        line-height: 1.35;
        box-shadow: 0 1px 3px rgba(18, 38, 68, 0.04);
    }

    body.page-firms .warning b {
        color: #68410b;
        font-weight: 800;
    }

    body.page-firms #main-content > br {
        display: none;
    }
}
/* Shared modal used by catalog actions such as manager password changes. */
.sa-modal-open {
    overflow: hidden;
}

.sa-modal-backdrop[hidden] {
    display: none !important;
}

.sa-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 21, 42, 0.48);
    backdrop-filter: blur(2px);
}

.sa-modal-backdrop--center {
    align-items: center;
}

.sa-modal {
    width: min(520px, 100%);
    border: 1px solid #c9d6e6;
    border-radius: 10px;
    background: #ffffff;
    color: #0b2857;
    box-shadow: 0 18px 50px rgba(11, 31, 64, 0.26);
    font-family: var(--waker-current-font, var(--sa-font, "Aptos", "Segoe UI", sans-serif));
}

.sa-modal--confirm {
    width: min(440px, 100%);
}

.sa-modal--confirm.sa-modal--notice {
    width: min(420px, calc(100% - 32px));
}

.sa-modal--confirm .sa-modal-header {
    padding-bottom: 20px;
}

.sa-modal--confirm.sa-modal--notice .sa-modal-header {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    padding: 28px 30px 16px;
}

.sa-modal--confirm h2 {
    font-size: 28px;
    font-weight: 400;
}

.sa-modal--confirm.sa-modal--notice h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.18;
}

.sa-modal--confirm .sa-modal-button {
    min-height: 60px;
    font-size: 20px;
    font-weight: 500;
}

.sa-modal--confirm.sa-modal--notice .sa-modal-subtitle {
    margin-top: 6px;
    font-size: 15px;
}

.sa-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 12px;
}

.sa-modal h2 {
    margin: 0;
    color: #10254d;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.12;
}

.sa-modal-subtitle {
    margin: 8px 0 0;
    color: #5d7295;
    font-size: 15px;
    line-height: 1.45;
    white-space: pre-line;
}

.sa-modal-notice-icon {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #eaf2ff;
    box-shadow: inset 0 0 0 1px #c9dcff;
}

.sa-modal-notice-icon span::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 11px;
    width: 10px;
    height: 17px;
    border: solid #1765ff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.sa-modal--notice-danger .sa-modal-notice-icon {
    background: #fff2f2;
    box-shadow: inset 0 0 0 1px #f2c2c4;
}

.sa-modal--notice-danger .sa-modal-notice-icon span::before {
    content: "!";
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border: 0;
    color: #c33a3d;
    font: 800 24px/42px var(--sa-font, "Aptos", "Segoe UI", sans-serif);
    text-align: center;
    transform: none;
}

.sa-modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f7faff;
    color: #173763;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.sa-modal-close:hover {
    border-color: #b9cce4;
    background: #edf4ff;
}

.sa-modal-body {
    padding: 0 24px 20px;
}

.sa-modal-field span {
    display: block;
    margin-bottom: 8px;
    color: var(--waker-color-ink-muted);
    font-size: var(--waker-modal-label-font-size);
    font-weight: var(--waker-modal-label-font-weight);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sa-modal-field input,
.sa-modal-field select,
.sa-modal-field textarea {
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    border: 1px solid #b9cce4;
    border-radius: 7px;
    background: #ffffff;
    color: var(--waker-color-ink-soft);
    font: var(--waker-modal-control-font-weight) var(--waker-modal-control-font-size)/1.2 var(--waker-current-font, var(--sa-font, "Aptos", "Segoe UI", sans-serif));
    letter-spacing: 0;
    text-transform: none;
    padding: 0 13px;
    outline: none;
}

.sa-modal-field textarea {
    min-height: 92px;
    height: auto;
    padding-top: 12px;
    resize: vertical;
}

.sa-modal-field input:focus,
.sa-modal-field select:focus,
.sa-modal-field textarea:focus {
    border-color: #2d6df6;
    box-shadow: 0 0 0 3px rgba(45, 109, 246, 0.14);
}

/* Desktop modal selector typography follows the Billing Company info modal. */
@media (min-width: 1024px) {
    body.page-trips .trips-editor-field,
    body.page-dialup .trips-editor-field {
        color: var(--waker-color-ink-muted);
        font-size: var(--waker-modal-label-font-size);
        font-weight: var(--waker-modal-label-font-weight);
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    body.page-trips .trips-editor-field input,
    body.page-trips .trips-editor-field select,
    body.page-trips .trips-editor-field textarea,
    body.page-trips .trips-editor-field > .sa-mobile-selector .sa-mobile-selector__button,
    body.page-dialup .trips-editor-field input,
    body.page-dialup .trips-editor-field select,
    body.page-dialup .trips-editor-field textarea,
    body.page-dialup .trips-editor-field > .sa-mobile-selector .sa-mobile-selector__button {
        color: var(--waker-color-ink-soft);
        font-family: var(--waker-current-font, var(--sa-font, "Aptos", "Segoe UI", sans-serif));
        font-size: var(--waker-modal-control-font-size);
        font-weight: var(--waker-modal-control-font-weight);
        line-height: 1.2;
        letter-spacing: 0;
        text-transform: none;
    }

    body.page-trips .trips-editor-field > .sa-mobile-selector .sa-mobile-selector__option,
    body.page-dialup .trips-editor-field > .sa-mobile-selector .sa-mobile-selector__option,
    .sa-modal-field select option,
    .wk-select option {
        font-size: var(--waker-modal-option-font-size);
        font-weight: var(--waker-modal-option-font-weight);
        letter-spacing: 0;
        text-transform: none;
    }
}


body.page-trips .recurring-editor-field--comment {
    grid-column: 1 / -1;
}

/* modaldropdownblue1: shared pale-blue dropdown menus in every desktop modal. */
@media (min-width: 1024px) {
    [role="dialog"] select {
        color-scheme: light;
    }

    [role="dialog"] select option {
        background: #f2f7ff;
        color: #102a56;
    }

    [role="dialog"] select option:checked {
        background: linear-gradient(#dce9ff, #dce9ff);
        color: #0b46bd;
    }

    [role="dialog"] select option:hover,
    [role="dialog"] select option:focus {
        background: linear-gradient(#e7f0ff, #e7f0ff);
        color: #0b46bd;
    }

    [role="dialog"] .sa-mobile-selector__menu {
        background: #f2f7ff !important;
    }

    [role="dialog"] .sa-mobile-selector__option {
        background: #f2f7ff !important;
        color: #102a56 !important;
    }

    [role="dialog"] .sa-mobile-selector__option:hover,
    [role="dialog"] .sa-mobile-selector__option:focus-visible,
    [role="dialog"] .sa-mobile-selector__option.is-active {
        background: #e7f0ff !important;
        color: #0b46bd !important;
    }

    [role="dialog"] .sa-mobile-selector__option.is-selected,
    [role="dialog"] .sa-mobile-selector__option[aria-selected="true"] {
        background: #dce9ff !important;
        color: #0b46bd !important;
    }
}

body.page-trips .recurring-editor-field--comment textarea {
    height: 72px;
    min-height: 72px;
    box-sizing: border-box;
    border: 1px solid #b9cce4;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px 20px;
    resize: vertical;
}

body.page-trips .recurring-editor-field--comment textarea:focus {
    border-color: #2d6df6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 109, 246, 0.14);
}
.company-cvr-lookup-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.company-cvr-lookup-row .wk-input,
.company-cvr-lookup-row input {
    min-width: 0;
}

.company-cvr-lookup-row .wk-button {
    min-height: 46px;
    white-space: nowrap;
}

.sa-modal-error {
    margin: 10px 0 0;
    color: #b42323;
    font-size: 14px;
    font-weight: 700;
}

.sa-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 22px;
    border-top: 1px solid #dbe4ee;
}

.sa-modal--confirm.sa-modal--notice .sa-modal-actions {
    padding: 0 30px 26px;
    border-top: 0;
}

body.page-firms .companies-billing-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f7fbff;
}

body.page-firms .companies-billing-action {
    width: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-color: #9fc5f8;
    background: #eaf4ff;
    color: #0d4f9f;
    white-space: normal;
    line-height: 1.15;
}

body.page-firms .companies-billing-action:hover {
    border-color: #78abea;
    background: #dceeff;
    color: #0a448b;
}

body.page-firms .companies-billing-action svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sa-modal-button {
    min-height: 40px;
    border: 1px solid #bfcbda;
    border-radius: 7px;
    padding: 0 18px;
    font: 800 15px/1 var(--sa-font, "Aptos", "Segoe UI", sans-serif);
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.sa-modal-button:hover {
    transform: translateY(-1px);
}

.sa-modal-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.sa-modal-button--secondary {
    background: #ffffff;
    color: #15315f;
}

.sa-modal-button--secondary:hover {
    background: #f4f8fd;
    border-color: #a9bfdc;
}

.sa-modal-button--primary {
    border-color: #1a63ef;
    background: #1765ff;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(23, 101, 255, 0.18);
}

.sa-modal-button--primary:hover {
    background: #1157df;
    border-color: #1157df;
}

.sa-modal-button--warning {
    border-color: var(--waker-color-warning);
    background: var(--waker-color-warning);
    color: #ffffff;
}

.sa-modal-button--warning:hover {
    border-color: var(--waker-color-warning-hover);
    background: var(--waker-color-warning-hover);
    color: #ffffff;
}

.sa-modal-button--danger {
    border-color: #f0b6b8;
    background: #ffffff;
    color: #c33a3d;
}

.sa-modal-button--danger:hover {
    border-color: #e46a6e;
    background: #fff5f5;
    color: #a6282b;
}

.sa-modal--confirm.sa-modal--notice .sa-modal-button {
    min-width: 84px;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 22px;
    font-size: 16px;
    font-weight: 800;
}

@media (max-width: 1023px) {
    body.page-firms .companies-billing-actions {
        grid-template-columns: 1fr;
    }

    .sa-modal-backdrop {
        align-items: flex-end;
        padding: 14px;
    }

    .sa-modal-backdrop.sa-modal-backdrop--center {
        align-items: center;
    }

    .sa-modal {
        border-radius: 18px;
    }

    .sa-modal-actions {
        flex-direction: column-reverse;
    }

    .sa-modal-button {
        width: 100%;
        min-height: 48px;
    }

    body.page-firms .companies-info-fields {
        grid-template-columns: 1fr;
    }

    .sa-modal--confirm .sa-modal-button {
        min-height: 72px;
    }

    .sa-modal--confirm.sa-modal--notice .sa-modal-actions {
        flex-direction: row;
        padding: 0 22px 22px;
    }

    .sa-modal--confirm.sa-modal--notice .sa-modal-button {
        width: auto;
        min-width: 84px;
        min-height: 44px;
    }
}

/* Logs desktop page: shared operational UI layer */
@media (min-width: 1024px) {
    body.page-log {
        position: static;
        min-height: 100vh;
        width: 100%;
        overflow: auto;
        background: var(--sa-page-bg);
        color: var(--sa-text);
        font-family: var(--sa-font);
    }

    body.page-log #main-content {
        min-height: calc(100vh - 70px);
        padding: 18px;
        background: var(--sa-page-bg);
        box-sizing: border-box;
    }

    body.page-log .crew-desktop-shell {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    body.page-log .crew-desktop-panel {
        background: var(--sa-panel-bg) !important;
        border: 1px solid var(--sa-border) !important;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(18, 38, 68, 0.05);
    }

    body.page-log .crew-desktop-panel--top {
        padding: 24px 20px;
    }

    body.page-log .crew-desktop-title-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--sa-border-soft);
    }

    body.page-log .crew-desktop-title-row h1 {
        margin: 0;
        color: #10254d;
        font-family: var(--sa-font);
        font-size: 30px;
        font-weight: 800;
        line-height: 1;
    }

    body.page-log .crew-title-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 6px;
        background: linear-gradient(180deg, #2d63ea 0%, #426fff 100%);
        color: #ffffff;
        box-shadow: 0 1px 3px rgba(32, 77, 176, 0.18);
    }

    body.page-log .crew-title-icon svg,
    body.page-log .crew-select-chevron svg,
    body.page-log .logs-date-icon svg,
    body.page-log .logs-date-chevron svg {
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-log .crew-title-icon svg {
        width: 19px;
        height: 19px;
    }

    body.page-log .crew-desktop-controls,
    body.page-log .logs-desktop-controls {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        padding-top: 16px;
    }

    body.page-log .logs-date-presets {
        display: inline-grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    body.page-log .logs-date-preset {
        min-width: 88px;
        height: 40px;
        padding: 0 14px;
        border: 1px solid var(--sa-control-border);
        border-radius: 6px;
        background: #ffffff;
        color: #315382;
        font-family: var(--sa-font);
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    body.page-log .logs-date-preset:hover {
        border-color: var(--sa-control-border-hover);
        background: #f6f9fe;
    }

    body.page-log .logs-date-preset:focus-visible {
        outline: none;
        border-color: var(--sa-control-border-focus);
        box-shadow: 0 0 0 3px rgba(45, 99, 234, 0.16);
    }

    body.page-log .logs-date-preset.is-active {
        border-color: #2d63ea;
        background: #2d63ea;
        color: #ffffff;
    }

    body.page-log .logs-date-range {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    body.page-log .logs-date-field {
        position: relative;
        width: 190px;
        min-width: 0;
    }

    body.page-log .logs-date-field-label {
        position: absolute;
        z-index: 1;
        top: 6px;
        left: 48px;
        color: #7489a9;
        font-family: var(--sa-font);
        font-size: 9px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        pointer-events: none;
    }

    body.page-log .crew-select-wrap {
        position: relative;
        width: 280px;
        max-width: 100%;
    }

    body.page-log .crew-control {
        min-height: 40px;
        height: 40px;
        border: 1px solid var(--sa-control-border);
        border-radius: 6px;
        background: var(--sa-control-bg) !important;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
        box-sizing: border-box;
        box-shadow: none;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 500;
        outline: none;
    }

    body.page-log .crew-control:hover {
        border-color: var(--sa-control-border-hover);
        background: #fafcfe !important;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
    }

    body.page-log .crew-control:focus {
        border-color: var(--sa-control-border-focus);
        box-shadow: inset 0 0 0 1px rgba(76, 112, 174, 0.12);
    }

    body.page-log .crew-select {
        width: 100%;
        appearance: none;
        padding: 0 38px 0 14px;
        cursor: pointer;
    }

    body.page-log .crew-select-chevron {
        pointer-events: none;
        position: absolute;
        right: 13px;
        top: 50%;
        display: inline-flex;
        color: #6b83a8;
        transform: translateY(-50%);
    }

    body.page-log .crew-select-chevron svg,
    body.page-log .logs-date-chevron svg {
        width: 14px;
        height: 14px;
    }

    body.page-log .logs-date-trigger {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 0 14px;
        cursor: pointer;
    }

    body.page-log .logs-date-icon,
    body.page-log .logs-date-chevron {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #5f779d;
        pointer-events: none;
    }

    body.page-log .logs-date-icon svg {
        width: 22px;
        height: 22px;
    }

    body.page-log .logs-date-chevron {
        margin-left: auto;
    }

    body.page-log .logs-date-label {
        color: var(--sa-text-soft);
        font-family: var(--sa-font);
        font-size: 12px;
        font-weight: 500;
        padding-top: 11px;
    }

    body.page-log .logs-date-input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }

    body.page-log .crew-desktop-panel--table {
        padding: 0 !important;
        overflow: hidden;
    }

    body.page-log .crew-table {
        width: 100%;
        margin: 0;
        border-collapse: separate;
        border-spacing: 0;
        table-layout: fixed;
        background: var(--sa-panel-bg);
        color: var(--sa-text-soft);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-font-size);
    }

    body.page-log .crew-table th {
        height: 42px;
        padding: 0 14px;
        background: var(--sa-table-head-bg) !important;
        border-right: 1px solid var(--sa-border-soft);
        border-bottom: 1px solid var(--sa-border);
        color: #111111 !important;
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-header-font-size) !important;
        font-weight: 700;
        line-height: 42px;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        text-align: left;
        vertical-align: middle;
        white-space: nowrap;
    }

    body.page-log .crew-table td {
        height: 46px;
        padding: 8px 14px;
        border-right: 1px solid #e4ebf3;
        border-bottom: 1px solid #d9e2ec;
        color: var(--sa-text-soft);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-font-size) !important;
        vertical-align: middle;
        background: #ffffff;
    }

    body.page-log .crew-table tbody tr:hover td {
        background: var(--sa-table-row-hover);
    }

    body.page-log .logs-table th:nth-child(1),
    body.page-log .logs-table td:nth-child(1) {
        width: 80px;
        text-align: center;
    }

    body.page-log .logs-table th:nth-child(2),
    body.page-log .logs-table td:nth-child(2) {
        width: 190px;
    }

    body.page-log .logs-table th:nth-child(3),
    body.page-log .logs-table td:nth-child(3) {
        width: 110px;
    }

    body.page-log .logs-table th:nth-child(4),
    body.page-log .logs-table td:nth-child(4) {
        width: 160px;
    }

    body.page-log .logs-table th:nth-child(5),
    body.page-log .logs-table td:nth-child(5) {
        width: 140px;
    }

    body.page-log .logs-table th:nth-child(6),
    body.page-log .logs-table td:nth-child(6) {
        width: 150px;
    }

    body.page-log .logs-table td:nth-child(5) {
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    body.page-log .logs-search-only,
    body.page-log .logs-table [data-col="driver"],
    body.page-log .logs-table [data-col="phone"] {
        display: none;
    }
}

@media (min-width: 1024px) {
    body.page-drivers .managers-search-wrap {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 36px;
        min-width: min(260px, 100%);
        padding: 0 12px;
        border: 1px solid #c7d8f6;
        border-radius: 6px;
        background: #ffffff;
        color: #6b7f9f;
        box-sizing: border-box;
    }

    body.page-drivers .managers-search-wrap svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.1;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex: 0 0 auto;
    }

    body.page-drivers .managers-search-wrap input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: #102a55;
        font-family: var(--sa-font);
        font-size: 14px;
        font-weight: 700;
    }

    body.page-drivers .managers-filter-group {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    body.page-drivers .managers-filter-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 40px;
        padding: 9px 14px;
        border: 1px solid #d5dfec;
        border-radius: 6px;
        background: #ffffff;
        color: #516887;
        font-family: var(--sa-font);
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
        transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
    }

    body.page-drivers .managers-filter-chip[data-crew-list-filter="active"] {
        border-color: #b7e0c4;
        color: #14703e;
    }

    body.page-drivers .managers-filter-chip[data-crew-list-filter="blocked"] {
        border-color: #e7b8b8;
        color: #d15a5a;
    }

    body.page-drivers .managers-filter-chip:hover,
    body.page-drivers .managers-filter-chip.is-active {
        background: #f3f7fc;
        border-color: #b9c8db;
        color: #516887;
    }

    body.page-drivers .managers-filter-chip.is-active {
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(81, 104, 135, 0.12);
        transform: translateY(1px);
    }

    body.page-drivers .managers-filter-chip.is-active[data-crew-list-filter="active"] {
        background: #edf8f1;
        border-color: #9fd8b0;
        color: #14703e;
    }

    body.page-drivers .managers-filter-chip.is-active[data-crew-list-filter="blocked"] {
        background: #f4dbde;
        border-color: #cf7777;
        color: #af4444;
    }

    body.page-drivers .managers-filter-chip__icon {
        width: 16px;
        height: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    body.page-drivers .managers-filter-chip__icon svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.1;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-drivers .crew-list-table {
        table-layout: fixed;
    }

    body.page-drivers .crew-col-nick {
        width: 18.3%;
    }

    body.page-drivers .crew-col-comment {
        width: 21%;
    }

    body.page-drivers .crew-col-phone {
        width: 15.2%;
    }

    body.page-drivers .crew-col-department {
        width: 15.8%;
    }

    body.page-drivers .crew-col-rating {
        width: 16.1%;
    }

    body.page-drivers .crew-col-blocked {
        width: 6.8%;
    }

    body.page-drivers .crew-col-actions {
        width: 6.8%;
    }

    body.page-drivers .crew-list-table thead th {
        height: 44px;
        padding-top: 9px;
        padding-bottom: 9px;
        text-align: center;
        vertical-align: middle;
    }

    body.page-drivers .crew-list-table thead th:nth-child(1) {
        padding-left: 14px;
    }

    body.page-drivers .crew-list-table thead th:nth-child(4),
    body.page-drivers .crew-list-table thead th:nth-child(5),
    body.page-drivers .crew-list-table thead th:nth-child(6) {
        text-align: center;
    }

    body.page-drivers .crew-list-row {
        height: 70px;
        cursor: pointer;
    }

    body.page-drivers .crew-list-row td {
        display: table-cell !important;
        height: 70px;
        padding-top: 8px;
        padding-bottom: 8px;
        text-align: center;
        vertical-align: middle;
        white-space: normal;
    }

    body.page-drivers .crew-list-row:hover td {
        background: #f7faff !important;
    }

    body.page-drivers .crew-member-main {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 13px;
        min-width: 0;
    }

    body.page-drivers .crew-member-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 51px;
        height: 51px;
        flex: 0 0 51px;
        border: 1px solid #d7e4f4;
        border-radius: 999px;
        background: #eff6ff;
        color: #0d2d61;
        line-height: 1;
    }

    body.page-drivers .crew-member-icon svg {
        width: 27px;
        height: 27px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.15;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-drivers .crew-member-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        min-width: 0;
        text-align: center;
    }

    body.page-drivers .crew-member-name {
        color: #102a55;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    body.page-drivers .crew-comment-cell,
    body.page-drivers .crew-member-comment,
    body.page-drivers .managers-contact-link,
    body.page-drivers .managers-muted {
        color: #61728a;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        overflow-wrap: break-word;
        word-break: normal;
    }

    body.page-drivers .crew-member-comment--muted,
    body.page-drivers .managers-muted {
        color: #91a0b5;
    }

    body.page-drivers .managers-contact-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 0;
    }

    body.page-drivers .managers-contact-icon {
        width: 14px;
        height: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 14px;
        color: #6f87aa;
    }

    body.page-drivers .managers-contact-icon svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-drivers .managers-contact-link {
        display: inline-block;
        max-width: 100%;
        color: #315f9f;
        text-decoration: none;
        white-space: nowrap;
    }

    body.page-drivers .managers-contact-link:hover {
        color: #1f56b3;
        text-decoration: underline;
    }

    body.page-drivers .crew-department-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        min-height: 32px;
        padding: 0 11px;
        border-radius: 6px;
        border: 1px solid #cfe0f7;
        background: #f7fbff;
        color: #15315f;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.page-drivers .crew-rating-cell,
    body.page-drivers .crew-blocked-cell,
    body.page-drivers .crew-actions-td {
        text-align: center;
        vertical-align: middle;
    }

    body.page-drivers .crew-reliability-trigger {
        margin-right: auto;
        margin-left: auto;
        text-align: center;
        justify-items: center;
    }

    body.page-drivers .crew-blocked-stack,
    body.page-drivers .crew-actions-cell {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    body.page-drivers .crew-blocked-cell .cell_check:checked {
        border-color: var(--sa-danger);
        background: var(--sa-danger);
    }

    body.page-drivers .managers-edit-button {
        min-height: 34px;
        min-width: 92px;
        margin-right: 0;
        padding: 0 14px;
        border: 1px solid var(--sa-blue);
        border-radius: 6px;
        background: #ffffff;
        color: var(--sa-blue);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-badge-font-size);
        font-weight: 700;
        cursor: pointer;
    }

    body.page-drivers .managers-edit-button:hover,
    body.page-drivers .managers-edit-button:focus-visible {
        background: #f4f8ff;
        border-color: var(--sa-blue-hover);
        color: var(--sa-blue-hover);
        outline: none;
    }

    body.page-drivers .crew-empty-row td {
        height: 64px;
        color: #7a8da8 !important;
        font-size: 13px !important;
        font-weight: 700;
        text-align: center;
    }

    body.page-drivers .crew-list-table th,
    body.page-drivers .crew-list-table td {
        border: 0 !important;
        border-bottom: 1px solid #d9e4f0 !important;
    }

    body.page-drivers .crew-list-table th + th,
    body.page-drivers .crew-list-table td + td {
        border-left: 0 !important;
    }

    body.page-drivers .crew-list-table {
        border-collapse: collapse;
        table-layout: fixed;
    }

    body.page-drivers .crew-col-expand {
        width: 3.4%;
    }

    body.page-drivers .crew-col-member {
        width: 22.2%;
    }

    body.page-drivers .crew-col-phone {
        width: 14.4%;
    }

    body.page-drivers .crew-col-department {
        width: 10.8%;
    }

    body.page-drivers .crew-col-rating {
        width: 17.6%;
    }

    body.page-drivers .crew-col-status {
        width: 11.6%;
    }

    body.page-drivers .crew-col-activity {
        width: 12.6%;
    }

    body.page-drivers .crew-col-actions {
        width: 7.4%;
    }

    body.page-drivers .crew-list-table thead th {
        color: #19345f;
        font-size: 12px;
        font-weight: 800;
        text-align: left;
    }

    body.page-drivers .crew-list-table thead th:nth-child(1),
    body.page-drivers .crew-list-table thead th:nth-child(4),
    body.page-drivers .crew-list-table thead th:nth-child(5),
    body.page-drivers .crew-list-table thead th:nth-child(6),
    body.page-drivers .crew-list-table thead th:nth-child(8) {
        text-align: center;
    }

    body.page-drivers .crew-list-row {
        height: 74px;
    }

    body.page-drivers .crew-list-row td {
        height: 74px;
        padding: 10px 12px;
        text-align: left;
    }

    body.page-drivers .crew-expand-cell,
    body.page-drivers .crew-department-cell,
    body.page-drivers .crew-rating-cell,
    body.page-drivers .crew-status-cell,
    body.page-drivers .crew-actions-td {
        text-align: center;
    }

    body.page-drivers .crew-row-toggle {
        width: 28px;
        height: 28px;
        display: inline-grid;
        place-items: center;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #082658;
        cursor: pointer;
        transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
    }

    body.page-drivers .crew-row-toggle svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform 140ms ease;
    }

    body.page-drivers .crew-row-toggle:hover,
    body.page-drivers .crew-row-toggle:focus-visible {
        background: #eef5ff;
        color: var(--sa-blue);
        outline: none;
    }

    body.page-drivers .crew-list-row.is-reliability-open .crew-row-toggle svg {
        transform: rotate(90deg);
    }

    body.page-drivers .crew-list-row.is-reliability-open td {
        background: #f8fbff !important;
    }

    body.page-drivers .crew-reliability-row > td {
        border-bottom: 1px solid #d9e4f0 !important;
    }

    body.page-drivers .crew-reliability-row .crew-reliability-panel--history .crew-reliability-panel__head {
        padding: 12px 18px;
    }

    body.page-drivers .crew-reliability-row .crew-reliability-panel__head strong {
        font-size: 16px;
        line-height: 20px;
    }

    body.page-drivers .crew-reliability-row .crew-reliability-panel__head span:not(.crew-reliability-panel__eyebrow) {
        color: #526a91;
        font-size: 12px;
        font-weight: 650;
    }

    body.page-drivers .crew-member-main {
        justify-content: flex-start;
        gap: 12px;
    }

    body.page-drivers .crew-member-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    body.page-drivers .crew-member-icon svg {
        width: 23px;
        height: 23px;
    }

    body.page-drivers .crew-member-copy {
        align-items: flex-start;
        gap: 5px;
        text-align: left;
    }

    body.page-drivers .crew-member-name {
        font-size: 14px;
    }

    body.page-drivers .crew-contact-row {
        justify-content: flex-start;
    }

    body.page-drivers .crew-contact-missing {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 0 9px;
        border: 1px solid #f2b7b7;
        border-radius: 999px;
        background: #fff1f1;
        color: #cf3d3d;
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
    }

    body.page-drivers .crew-reliability-card {
        gap: 4px;
        padding: 8px 10px;
    }

    body.page-drivers .crew-reliability-actions {
        gap: 0;
    }

    body.page-drivers .crew-reliability-stats-button {
        padding: 0 2px;
    }

    body.page-drivers .crew-status-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 28px;
        max-width: 100%;
        padding: 0 10px;
        border: 1px solid #d6e1f0;
        border-radius: 999px;
        background: #f5f8fc;
        color: #526a91;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
        white-space: nowrap;
    }

    body.page-drivers .crew-status-pill--active {
        border-color: #bfead2;
        background: #eefaf3;
        color: #0a7a41;
    }

    body.page-drivers .crew-status-pill--blocked {
        border-color: #f2b7b7;
        background: #fff1f1;
        color: #c93434;
    }

    body.page-drivers .crew-status-pill--missing-phone {
        border-color: #f2b7b7;
        background: #fff1f1;
        color: #cf3d3d;
    }

    body.page-drivers .crew-status-pill--risk {
        border-color: #f5d6a8;
        background: #fff7e8;
        color: #c36e00;
    }

    body.page-drivers .crew-status-pill--neutral {
        border-color: #d6e1f0;
        background: #f5f8fc;
        color: #526a91;
    }

    body.page-drivers .crew-last-activity {
        display: inline-grid;
        gap: 2px;
        min-width: 0;
        color: #526a91;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
        text-align: left;
    }

    body.page-drivers .crew-last-activity strong {
        color: #102a55;
        font-size: 12px;
        font-weight: 850;
        line-height: 1.2;
        white-space: nowrap;
    }

    body.page-drivers .crew-last-activity em {
        color: #526a91;
        font-style: normal;
        font-weight: 800;
    }

    body.page-drivers .crew-last-activity--success em {
        color: #0a7a41;
    }

    body.page-drivers .crew-last-activity--warning em {
        color: #b26200;
    }

    body.page-drivers .crew-last-activity--danger em {
        color: #c93434;
    }

    body.page-drivers .crew-last-activity--empty {
        color: #91a0b5;
        text-align: center;
    }

    body.page-drivers .crew-editor-backdrop {
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    body.page-drivers .crew-editor-panel {
        width: min(680px, calc(100% - 48px));
        max-height: calc(100vh - 48px);
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 22px 58px rgba(11, 31, 64, 0.28);
    }

    body.page-drivers .crew-editor-header {
        flex: 0 0 auto;
        border-bottom: 1px solid #e1e9f3;
    }

    body.page-drivers .crew-editor-form {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }

    body.page-drivers .crew-editor-body {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        align-content: start;
        min-height: 0;
        overflow: auto;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    body.page-drivers .crew-editor-body .sa-modal-error {
        grid-column: 1 / -1;
    }

    body.page-drivers #crew_editor_icon {
        appearance: none;
        -webkit-appearance: none;
        padding-right: 44px;
        background-color: #ffffff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%23082658' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 16px 16px;
    }

    body.page-drivers #crew_editor_icon::-ms-expand {
        display: none;
    }

    body.page-drivers .crew-editor-access {
        display: flex;
        flex-direction: column;
        justify-content: stretch;
        gap: 8px;
        min-height: 0;
    }

    body.page-drivers .crew-editor-access__label {
        color: #5c6f89;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
    }

    :is(body.page-drivers, body.page-users) .crew-editor-external-refs {
        grid-column: 1 / -1;
        display: grid;
        gap: 10px;
        padding: 12px 14px;
        border: 1px solid #ead8a8;
        border-radius: 8px;
        background: #fff8e6;
    }

    :is(body.page-drivers, body.page-users) .crew-editor-external-refs__head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    :is(body.page-drivers, body.page-users) .crew-editor-external-refs__head span {
        color: #5c6f89;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
    }

    :is(body.page-drivers, body.page-users) .crew-editor-external-refs__head small {
        color: #6d7f99;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
        text-align: right;
    }

    :is(body.page-drivers, body.page-users) .crew-editor-external-refs__list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        min-height: 28px;
    }

    :is(body.page-drivers, body.page-users) .crew-editor-external-pill {
        display: inline-flex;
        align-items: center;
        flex: 0 1 auto;
        flex-wrap: wrap;
        gap: 5px 8px;
        max-width: 100%;
        min-width: min(150px, 100%);
        min-height: 28px;
        padding: 5px 11px;
        border: 1px solid #cbd9ec;
        border-radius: 999px;
        background: #ffffff;
        color: #173761;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
    }

    :is(body.page-drivers, body.page-users) .crew-editor-external-pill__source {
        color: #496280;
        font-weight: 800;
    }
    :is(body.page-drivers, body.page-users) .crew-editor-external-pill--internal {
        border-color: #b9cff2;
        background: #eef5ff;
        color: #0d3b86;
    }

    :is(body.page-drivers, body.page-users) .crew-editor-external-pill code {
        min-width: 0;
        max-width: 100%;
        color: #0b2d68;
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 12px;
        font-weight: 800;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    :is(body.page-drivers, body.page-users) .crew-editor-external-pill small {
        flex-basis: 100%;
        color: #71829a;
        font-size: 11px;
        font-weight: 700;
    }

    :is(body.page-drivers, body.page-users) .crew-editor-external-empty {
        margin: 0;
        color: #6b7f9d;
        font-size: 13px;
        font-weight: 700;
    }
    body.page-drivers .crew-editor-blocked {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 46px;
        box-sizing: border-box;
        padding: 0 12px;
        border: 1px solid var(--sa-control-border);
        border-radius: 8px;
        background: #ffffff;
        color: #243b59;
        font-size: 16px;
        font-weight: 800;
        cursor: pointer;
    }

    body.page-drivers .crew-editor-blocked.is-active {
        color: #61728a;
    }

    body.page-drivers .crew-editor-blocked.is-blocked {
        color: #b73f3f;
    }

    body.page-drivers .crew-editor-blocked input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    body.page-drivers .crew-editor-blocked .crew-access-switch {
        position: relative;
        width: 42px;
        height: 24px;
        flex: 0 0 42px;
        border: 1px solid #c8d1dc;
        border-radius: 999px;
        background: #e4e9ef;
        box-shadow: inset 0 1px 2px rgba(15, 35, 65, 0.08);
        transition: background 0.14s ease, border-color 0.14s ease;
    }

    body.page-drivers .crew-editor-blocked .crew-access-switch::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(15, 35, 65, 0.18);
        transform: translateY(-50%);
        transition: transform 0.14s ease;
    }

    body.page-drivers .crew-editor-blocked input:checked + .crew-access-switch {
        background: var(--sa-danger);
        border-color: var(--sa-danger);
    }

    body.page-drivers .crew-editor-blocked input:checked + .crew-access-switch::before {
        transform: translate(18px, -50%);
    }

    body.page-drivers .crew-editor-blocked input:focus-visible + .crew-access-switch {
        box-shadow: var(--sa-focus-ring);
    }

    body.page-drivers .crew-editor-actions {
        flex: 0 0 auto;
        margin-top: 0;
        border-top: 1px solid #e1e9f3;
        background: #ffffff;
    }

    body.page-drivers .crew-editor-actions__spacer {
        flex: 1 1 auto;
    }
}
/* Alerts toolbar controls use the shared desktop control height */
@media (min-width: 901px) {
    body.page-dialup .dialup-top-controls .dialup-field select,
    body.page-dialup .dialup-top-controls .dialup-date-trigger,
    body.page-dialup .dialup-top-controls .dialup-date-trigger input,
    body.page-dialup .dialup-top-controls .dialup-date-shortcut,
    body.page-dialup .dialup-top-controls .dialup-add-shift,
    body.page-dialup .dialup-top-controls .dialup-filter-chip {
        height: var(--waker-desktop-control-height) !important;
        min-height: var(--waker-desktop-control-height) !important;
        box-sizing: border-box !important;
        line-height: 1 !important;
    }

    body.page-dialup .dialup-top-controls .dialup-date-trigger input {
        line-height: var(--waker-desktop-control-height) !important;
    }

    body.page-dialup .dialup-top-controls .dialup-date-shortcuts,
    body.page-dialup .dialup-top-controls .dialup-filter-group {
        min-height: var(--waker-desktop-control-height) !important;
        align-items: center !important;
    }

    body.page-dialup .dialup-top-controls .dialup-date-shortcut,
    body.page-dialup .dialup-top-controls .dialup-add-shift,
    body.page-dialup .dialup-top-controls .dialup-filter-chip {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body.page-dialup .dialup-top-controls .dialup-add-shift {
        min-width: 150px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        gap: 8px !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 400 !important;
    }

    body.page-dialup .dialup-top-controls .dialup-filter-chip {
        gap: 7px !important;
        padding-left: 13px !important;
        padding-right: 13px !important;
        font-size: 14px !important;
        font-weight: 400 !important;
    }
}
/* Account profile summary and edit modal */
body.page-account .account-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

body.page-account .account-card-copy {
    min-width: 0;
}

body.page-account .account-edit-button {
    flex: 0 0 auto;
}

body.page-account .account-profile-row--readonly {
    align-items: center;
}

body.page-account .account-profile-value--empty {
    color: #6b7f9d;
    font-weight: 500;
}

body.page-account .account-editor-body {
    display: grid;
    gap: 14px;
}

body.page-account .account-editor-readonly-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.page-account .account-editor-readonly-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

body.page-account .account-editor-readonly {
    min-width: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 12px 8px 14px;
    border: 1px solid #d8e2ee;
    border-radius: 8px;
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
}

body.page-account .account-editor-readonly span {
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: #667fa6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

body.page-account .account-editor-readonly strong {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    color: #10254d;
    font-size: 15px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

body.page-account .account-editor-readonly .account-access-badge {
    min-height: 32px;
    padding: 0 13px;
    box-shadow: 0 1px 2px rgba(18, 38, 68, 0.04);
}

@media (max-width: 760px) {
    body.page-account .account-editor-readonly-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* Account top actions match page toolbars */
@media (min-width: 1024px) {
    body.page-account .account-page-header {
        align-items: flex-start;
    }

    body.page-account .account-page-header__copy {
        flex: 1 1 auto;
        min-width: 0;
    }

    body.page-account .account-top-actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 14px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #d9e2ec;
    }

    body.page-account .account-top-actions .wk-button {
        min-height: var(--waker-desktop-control-height);
        height: var(--waker-desktop-control-height);
        font-size: var(--sa-desktop-control-font-size);
        font-weight: 400;
        white-space: nowrap;
    }

    body.page-account .account-card-header {
        justify-content: flex-start;
    }
}
/* Account access level badges */
.account-access-badge {
    width: fit-content;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #cbd8ea;
    border-radius: 999px;
    background: #ffffff;
    color: #0b2857;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.account-access-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    font-size: 15px;
    line-height: 1;
}

.account-access-badge--godadmin {
    border-color: #c8d5e8;
    background: #ffffff;
    color: #082658;
}

.account-access-badge--owner {
    border-color: var(--waker-label-purple-border);
    background: var(--waker-label-purple-bg);
    color: var(--waker-label-purple-text);
}

.account-access-badge--admin {
    border-color: var(--waker-color-primary-border);
    background: var(--waker-color-primary-soft);
    color: var(--waker-color-primary-text);
}

.account-access-badge--manager {
    border-color: var(--waker-role-manager-border);
    background: var(--waker-role-manager-bg);
    color: var(--waker-role-manager-text);
}

/* Departments uses the shared catalog shell; keep its inherited SVGs and table controls bounded. */
@media (min-width: 1024px) {
    body.page-departments {
        position: static;
        min-height: 100vh;
        width: 100%;
        overflow: auto;
        background: var(--sa-page-bg);
        color: var(--sa-text);
        font-family: var(--sa-font);
    }

    body.page-departments #main-content {
        min-height: calc(100vh - 70px);
        padding: 18px;
        background: var(--sa-page-bg);
        box-sizing: border-box;
    }

    body.page-departments .crew-desktop-shell {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    body.page-departments .crew-desktop-panel {
        background: var(--sa-panel-bg) !important;
        border: 1px solid var(--sa-border) !important;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(18, 38, 68, 0.05);
    }

    body.page-departments .crew-desktop-panel--top {
        padding: 22px 24px 20px !important;
    }

    body.page-departments .crew-desktop-title-row {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding-bottom: 22px;
        border-bottom: 1px solid var(--sa-border-soft);
    }

    body.page-departments .crew-desktop-title-row h1 {
        margin: 0;
        color: #10254d;
        font-family: var(--sa-font);
        font-size: 30px;
        font-weight: 800;
        line-height: 1;
    }

    body.page-departments .crew-title-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        border-radius: 6px;
        background: linear-gradient(180deg, #2d63ea 0%, #426fff 100%);
        color: #ffffff;
        box-shadow: 0 1px 3px rgba(32, 77, 176, 0.18);
    }

    body.page-departments .crew-title-icon svg,
    body.page-departments .crew-select-chevron svg,
    body.page-departments .crew-add-button svg {
        display: block !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-departments .crew-title-icon svg {
        width: 19px !important;
        height: 19px !important;
        stroke-width: 2;
    }

    body.page-departments .crew-desktop-controls {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-top: 14px;
        flex-wrap: wrap;
    }

    body.page-departments .crew-select-wrap {
        position: relative;
        width: 220px;
        min-width: 220px;
    }

    body.page-departments .crew-control,
    body.page-departments .cell_edit,
    body.page-departments .crew-table .cell_select {
        min-height: 40px;
        height: 40px;
        border: 1px solid var(--sa-control-border);
        border-radius: 6px;
        background: var(--sa-control-bg) !important;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
        box-sizing: border-box;
        box-shadow: none;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 500;
        line-height: 1.2;
    }

    body.page-departments .crew-select {
        width: 100%;
        appearance: none;
        -webkit-appearance: none;
        padding: 0 36px 0 14px;
    }

    body.page-departments .crew-select-chevron {
        position: absolute;
        right: 12px;
        top: 50%;
        width: 14px;
        height: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #6a82a8;
        transform: translateY(-50%);
        pointer-events: none;
    }

    body.page-departments .crew-select-chevron svg {
        width: 14px !important;
        height: 14px !important;
        stroke-width: 2;
    }

    body.page-departments .crew-add-button {
        min-width: 150px;
        min-height: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 20px;
        border: 1px solid transparent;
        border-radius: 6px;
        background: var(--sa-blue) !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        box-sizing: border-box;
        box-shadow: none;
        cursor: pointer;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 400 !important;
    }

    body.page-departments .crew-add-button svg {
        width: 18px !important;
        height: 18px !important;
        stroke-width: 2.2;
    }

    body.page-departments .crew-add-button:hover {
        background: var(--sa-blue-hover) !important;
    }

    body.page-departments .crew-desktop-panel--table {
        padding: 0 !important;
        overflow: hidden !important;
    }

    body.page-departments .crew-table {
        width: 100%;
        border-collapse: collapse;
        background: var(--sa-panel-bg);
        color: var(--sa-text-soft);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-font-size);
    }

    body.page-departments .crew-table th {
        background: var(--sa-table-head-bg) !important;
        color: #111111 !important;
        border-right: 1px solid var(--sa-border-soft);
        border-bottom: 1px solid var(--sa-border);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-header-font-size) !important;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-align: left;
        text-transform: uppercase;
        padding: 13px 14px;
    }

    body.page-departments .crew-table td {
        background: var(--sa-panel-bg);
        color: var(--sa-text-soft) !important;
        border-right: 1px solid var(--sa-border-soft);
        border-bottom: 1px solid var(--sa-border-soft);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-font-size) !important;
        padding: 12px 14px;
        vertical-align: middle;
    }

    body.page-departments .crew-table td[data-col="id"] {
        display: none;
    }

    body.page-departments .crew-table tbody tr:hover td {
        background: var(--sa-table-row-hover);
    }

    body.page-departments .crew-table td.editable_cell {
        position: relative;
        height: 54px;
        padding: 0 20px !important;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 500;
        line-height: 40px;
        cursor: text;
    }

    body.page-departments .crew-table td.editable_cell::before {
        content: "";
        position: absolute;
        inset: 7px 12px;
        display: block !important;
        border: 1px solid var(--sa-control-border);
        border-radius: 6px;
        pointer-events: none;
    }

    body.page-departments .crew-table td.editable_cell.is-editing {
        padding: 7px 12px !important;
        line-height: 1.2;
    }

    body.page-departments .crew-table td.editable_cell.is-editing::before {
        display: none !important;
    }

    body.page-departments .crew-table input.cell_edit {
        width: 100%;
        min-height: 40px;
        height: 40px;
        padding: 0 10px;
        border: 1px solid var(--sa-control-border);
        border-radius: 6px;
        color: #15315f !important;
        -webkit-text-fill-color: #15315f !important;
        background: #ffffff !important;
        opacity: 1 !important;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-control-font-size) !important;
        font-weight: 500 !important;
    }

    body.page-departments .crew-table .cell_select {
        width: 100%;
        padding: 0 36px 0 10px;
    }

    body.page-departments .crew-table .checkable_cell {
        text-align: center;
    }

    body.page-departments .crew-table .cell_check {
        width: 42px;
        height: 24px;
        appearance: none;
        -webkit-appearance: none;
        position: relative;
        margin: 0;
        box-sizing: border-box;
        border: 1px solid #c8d1dc;
        border-radius: 999px;
        background: #e4e9ef;
        box-shadow: inset 0 1px 2px rgba(15, 35, 65, 0.08);
        cursor: pointer;
        vertical-align: middle;
    }

    body.page-departments .crew-table .cell_check::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(15, 35, 65, 0.18);
        transform: translateY(-50%);
        transition: transform 0.14s ease;
    }

    body.page-departments .crew-table .cell_check:checked {
        border-color: var(--sa-danger);
        background: var(--sa-danger);
    }

    body.page-departments .crew-table .cell_check:checked::before {
        transform: translate(18px, -50%);
    }

    body.page-departments .app-save-state {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 150px;
        min-height: 34px;
        margin-left: auto;
        padding: 7px 14px;
        border: 1px solid transparent;
        border-radius: 999px;
        background: transparent;
        color: transparent;
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
        opacity: 0;
        pointer-events: none;
        transform: translateY(4px);
        transition: opacity 0.14s ease, transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
        white-space: nowrap;
    }

    body.page-departments .app-save-state.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    body.page-departments .app-save-state.is-saving {
        border-color: #d5e0ec;
        background: #f6faff;
        color: #496795;
    }

    body.page-departments .app-save-state.is-success {
        border-color: #c9e5d2;
        background: #edf8f1;
        color: #14633f;
    }

    body.page-departments .app-save-state.is-error {
        border-color: #efcaca;
        background: #fff3f3;
        color: #9d3030;
    }

    body.page-departments .departments-col-name {
        width: 31%;
    }

    body.page-departments .departments-col-manager {
        width: 45%;
    }

    body.page-departments .departments-col-status {
        width: 12%;
    }

    body.page-departments .departments-col-actions {
        width: 12%;
    }

    body.page-departments .department-list-row {
        cursor: pointer;
    }

    body.page-departments .departments-name-cell strong {
        color: #102a55;
        font-size: 14px;
        font-weight: 800;
    }

    body.page-departments .departments-manager-cell {
        color: #425a7d !important;
        font-weight: 650;
    }

    body.page-departments .departments-status-cell,
    body.page-departments .departments-actions-cell {
        text-align: center;
    }

    body.page-departments .departments-status-pill {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        border: 1px solid #bdddc9;
        border-radius: 999px;
        background: #eef8f1;
        color: #1b7040;
        font-size: var(--sa-desktop-badge-font-size);
        font-weight: 800;
        line-height: 1;
    }

    body.page-departments .departments-status-pill--blocked {
        border-color: #efcaca;
        background: #fff3f3;
        color: #9d3030;
    }
    body.page-departments .departments-filter-group {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        min-height: 40px;
    }

    body.page-departments .departments-filter-chip {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
        border: 1px solid #d5dfec;
        border-radius: 6px;
        background: #ffffff;
        color: #516887;
        font-family: var(--sa-font);
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
    }

    body.page-departments .departments-filter-chip[data-department-list-filter="active"] {
        border-color: #bdddc9;
        color: #1b7040;
    }

    body.page-departments .departments-filter-chip[data-department-list-filter="archived"] {
        border-color: #efcaca;
        color: #9d3030;
    }

    body.page-departments .departments-filter-chip:hover,
    body.page-departments .departments-filter-chip.is-active {
        background: #f3f7fc;
        border-color: #b9c8db;
        color: #516887;
        transform: translateY(1px);
    }

    body.page-departments .departments-filter-chip.is-active[data-department-list-filter="active"] {
        background: #eef8f1;
        border-color: #7fcca0;
        color: #176d3b;
    }

    body.page-departments .departments-filter-chip.is-active[data-department-list-filter="archived"] {
        background: #fff3f3;
        border-color: #dca1a1;
        color: #9d3030;
    }

    body.page-departments .departments-filter-empty {
        margin: 18px 6px 0;
        padding: 22px;
        border: 1px dashed #cbd9eb;
        border-radius: 8px;
        background: #f8fbff;
        color: #55709d;
        font-family: var(--sa-font);
        font-size: 15px;
        font-weight: 700;
        text-align: center;
    }

    body.page-departments .departments-table tbody tr.department-list-row[data-blocked="1"] .departments-card {
        border-top-color: #d15a5a;
    }

    body.page-departments .departments-editor-archive[disabled] {
        opacity: 0.55;
        cursor: not-allowed;
    }

    body.page-departments .departments-edit-button {
        min-width: 86px;
        min-height: 34px;
        height: 34px;
        padding: 0 14px;
        font-size: var(--sa-desktop-badge-font-size);
        font-weight: 700;
    }

    body.page-departments .departments-editor-backdrop {
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    body.page-departments .departments-editor-panel {
        width: min(560px, calc(100% - 48px));
        max-height: calc(100vh - 48px);
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 22px 58px rgba(11, 31, 64, 0.28);
    }

    body.page-departments .departments-editor-header {
        flex: 0 0 auto;
        border-bottom: 1px solid #e1e9f3;
    }

    body.page-departments .departments-editor-form {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }

    body.page-departments .departments-editor-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        align-content: start;
        min-height: 0;
        overflow: auto;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    body.page-departments .departments-editor-body .sa-modal-error,
    body.page-departments .departments-editor-field:first-child {
        grid-column: 1 / -1;
    }

    body.page-departments .departments-editor-guidance {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin: 0;
        line-height: 1.4;
    }

    body.page-departments .departments-editor-guidance[hidden] {
        display: none;
    }

    body.page-departments .departments-editor-guidance__message {
        min-width: 0;
    }

    body.page-departments .departments-editor-managers-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    body.page-departments .departments-editor-managers-link .ti {
        font-size: 18px;
        line-height: 1;
    }

    body.page-departments .departments-editor-access {
        display: flex;
        flex-direction: column;
        justify-content: stretch;
        gap: 8px;
        min-height: 0;
    }

    body.page-departments .departments-editor-access__label {
        color: #5c6f89;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
    }

    body.page-departments .departments-editor-blocked {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 46px;
        box-sizing: border-box;
        padding: 0 12px;
        border: 1px solid var(--sa-control-border);
        border-radius: 8px;
        background: #ffffff;
        color: #1b7040;
        font-size: 16px;
        font-weight: 800;
        cursor: pointer;
    }

    body.page-departments .departments-editor-blocked.is-blocked {
        color: #b73f3f;
    }

    body.page-departments .departments-editor-blocked input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    body.page-departments .departments-editor-blocked .crew-access-switch {
        position: relative;
        width: 42px;
        height: 24px;
        flex: 0 0 42px;
        border: 1px solid #c8d1dc;
        border-radius: 999px;
        background: #e4e9ef;
        box-shadow: inset 0 1px 2px rgba(15, 35, 65, 0.08);
        transition: background 0.14s ease, border-color 0.14s ease;
    }

    body.page-departments .departments-editor-blocked .crew-access-switch::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(15, 35, 65, 0.18);
        transform: translateY(-50%);
        transition: transform 0.14s ease;
    }

    body.page-departments .departments-editor-blocked input:checked + .crew-access-switch {
        background: var(--sa-danger);
        border-color: var(--sa-danger);
    }

    body.page-departments .departments-editor-blocked input:checked + .crew-access-switch::before {
        transform: translate(18px, -50%);
    }

    body.page-departments .departments-editor-actions {
        flex: 0 0 auto;
        margin-top: 0;
        border-top: 1px solid #e1e9f3;
        background: #ffffff;
    }

    body.page-departments .departments-editor-actions__spacer {
        flex: 1 1 auto;
    }
}

@media (min-width: 1024px) {
    body.page-drivers .crew-col-member { width: 20.8%; }
    body.page-drivers .crew-col-phone { width: 13.4%; }
    body.page-drivers .crew-col-department { width: 10.2%; }
    body.page-drivers .crew-col-rating { width: 21.8%; }
    body.page-drivers .crew-col-status { width: 10.6%; }

    body.page-drivers .crew-reliability-card--modern {
        --crew-score-color: #6b7c93;
        grid-template-columns: 56px minmax(78px, auto);
        align-items: center;
        justify-content: center;
        justify-items: center;
        gap: 10px;
        width: min(100%, 210px);
        min-height: 76px;
        padding: 6px 10px;
        border: 1px solid #e5edf7;
        border-radius: 7px;
        background: #ffffff;
        box-shadow: none;
        text-align: center;
    }

    body.page-drivers .crew-reliability-card--success { --crew-score-color: #11a360; }
    body.page-drivers .crew-reliability-card--warning { --crew-score-color: #d17a00; }
    body.page-drivers .crew-reliability-card--danger { --crew-score-color: #d92d20; }
    body.page-drivers .crew-reliability-card--neutral { --crew-score-color: #c8d2df; }

    body.page-drivers .crew-reliability-ring {
        position: relative;
        width: 56px;
        height: 56px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: conic-gradient(from -90deg, var(--crew-score-color) var(--crew-score-angle), #edf2f8 0deg);
        color: #071f4d;
        font-size: 14px;
        font-weight: 850;
        line-height: 1;
        box-shadow: none;
    }

    body.page-drivers .crew-reliability-ring::before {
        content: "";
        position: absolute;
        inset: 3px;
        border: 1px solid #e3ebf5;
        border-radius: 50%;
        background: #ffffff;
    }

    body.page-drivers .crew-reliability-ring span {
        position: relative;
        z-index: 1;
    }

    body.page-drivers .crew-reliability-card--success .crew-reliability-ring,
    body.page-drivers .crew-reliability-card--success .crew-reliability-label { color: #07864a; }

    body.page-drivers .crew-reliability-card--warning .crew-reliability-ring,
    body.page-drivers .crew-reliability-card--warning .crew-reliability-label { color: #b86400; }

    body.page-drivers .crew-reliability-card--danger .crew-reliability-ring,
    body.page-drivers .crew-reliability-card--danger .crew-reliability-label { color: #c62828; }

    body.page-drivers .crew-reliability-main {
        display: grid;
        justify-items: start;
        align-content: center;
        gap: 8px;
        min-width: 78px;
        text-align: left;
    }

    body.page-drivers .crew-reliability-label {
        color: #102a55;
        font-size: 14px;
        font-weight: 800;
        line-height: 16px;
    }



    body.page-drivers .crew-reliability-stats-button {
        min-height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0 10px;
        border: 1px solid #b8cff4;
        border-radius: 6px;
        background: #ffffff;
        color: #0b57d0;
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
        text-decoration: none;
        box-shadow: none;
    }

    body.page-drivers .crew-reliability-stats-icon,
    body.page-drivers .crew-reliability-stats-icon svg {
        width: 13px;
        height: 13px;
        display: inline-flex;
        flex: 0 0 13px;
    }

    body.page-drivers .crew-reliability-stats-icon svg {
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-drivers .crew-reliability-stats-button:hover,
    body.page-drivers .crew-reliability-stats-button:focus-visible {
        border-color: #a9c8f3;
        background: #eef6ff;
        color: #003fc4;
        outline: none;
        text-decoration: none;
    }

    body.page-drivers .crew-contact-missing,
    body.page-drivers .crew-status-pill {
        min-height: 26px;
        padding: 0 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 750;
    }

    body.page-drivers .crew-contact-missing,
    body.page-drivers .crew-status-pill--missing-phone {
        border-color: #ffd7bf;
        background: #fff7f0;
        color: #d35400;
    }

    body.page-drivers .crew-status-pill--active {
        border-color: #cfeede;
        background: #f2fbf6;
        color: #0a7a41;
    }

    body.page-drivers .crew-status-pill--blocked {
        border-color: #f6cccc;
        background: #fff5f5;
        color: #c93434;
    }

    body.page-drivers .crew-status-pill--risk {
        border-color: #ffe0b5;
        background: #fff8ed;
        color: #b86400;
    }

    body.page-drivers .crew-status-pill--neutral {
        border-color: #dfe7f2;
        background: #f7f9fc;
        color: #526a91;
    }

    body.page-drivers .crew-reliability-row > td {
        padding: 12px 18px 14px !important;
        background: #ffffff !important;
    }

    body.page-drivers .crew-reliability-panel--history.crew-reliability-panel--split {
        display: grid;
        grid-template-columns: minmax(340px, 0.44fr) minmax(0, 1fr);
        gap: 18px;
        padding: 0;
        border: 1px solid #dfe7f2;
        border-radius: 8px;
        background: #fbfdff;
        box-shadow: 0 8px 22px rgba(19, 43, 78, 0.04);
    }

    body.page-drivers .crew-reliability-history-summary,
    body.page-drivers .crew-reliability-history-list {
        display: grid;
        align-content: start;
        gap: 12px;
        min-width: 0;
        padding: 18px;
    }

    body.page-drivers .crew-reliability-history-summary {
        border-right: 1px solid #e4ebf4;
        background: #ffffff;
    }

    body.page-drivers .crew-reliability-section__head {
        align-items: center;
    }

    body.page-drivers .crew-reliability-section__head h3 {
        color: #0a2555;
        font-size: 14px;
        font-weight: 850;
    }

    body.page-drivers .crew-reliability-view-full {
        min-height: 24px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #0b57d0;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
    }

    body.page-drivers .crew-reliability-view-full:hover,
    body.page-drivers .crew-reliability-view-full:focus-visible {
        text-decoration: underline;
        text-underline-offset: 2px;
        outline: none;
    }

    body.page-drivers .crew-reliability-summary-strip {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border: 1px solid #dfe7f2;
        border-radius: 8px;
        background: #ffffff;
        overflow: hidden;
    }

    body.page-drivers .crew-reliability-summary-metric {
        display: grid;
        justify-items: center;
        gap: 6px;
        min-height: 116px;
        padding: 16px 10px 14px;
        border-right: 1px solid #e3ebf5;
        color: #526a91;
        text-align: center;
    }

    body.page-drivers .crew-reliability-summary-metric:last-child { border-right: 0; }

    body.page-drivers .crew-reliability-summary-metric__icon {
        width: 26px;
        height: 26px;
        display: inline-flex;
        color: #0b7b54;
    }

    body.page-drivers .crew-reliability-summary-metric__icon svg {
        width: 26px;
        height: 26px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-drivers .crew-reliability-summary-metric__icon .ti {
        font-size: 26px;
        line-height: 1;
    }

    body.page-drivers .crew-reliability-summary-metric--danger .crew-reliability-summary-metric__icon { color: #e03131; }
    body.page-drivers .crew-reliability-summary-metric--neutral .crew-reliability-summary-metric__icon { color: #0b57d0; }

    body.page-drivers .crew-reliability-summary-metric strong {
        color: #061c4e;
        font-size: 22px;
        font-weight: 750;
        line-height: 1;
    }

    body.page-drivers .crew-reliability-summary-metric span:last-child {
        color: #526a91;
        font-size: 12px;
        font-weight: 750;
        line-height: 16px;
    }

    body.page-drivers .crew-reliability-panel--history .crew-reliability-history-table {
        border: 1px solid #dfe7f2;
        border-radius: 8px;
        border-collapse: separate;
        border-spacing: 0;
        overflow: hidden;
        font-size: 12px;
    }

    body.page-drivers .crew-reliability-panel--history .crew-reliability-history-table th,
    body.page-drivers .crew-reliability-panel--history .crew-reliability-history-table td {
        padding: 8px 12px;
        border-bottom: 1px solid #e3ebf5;
        color: #24415f;
        vertical-align: middle;
    }

    body.page-drivers .crew-reliability-panel--history .crew-reliability-history-table thead th {
        color: #526a91;
        background: #f7f9fc;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: none;
    }

    body.page-drivers .crew-reliability-panel--history .crew-reliability-impact,
    body.page-drivers .crew-reliability-mini-pill {
        min-height: 22px;
        padding: 3px 8px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 800;
        line-height: 14px;
    }

    body.page-drivers .crew-reliability-panel--history .crew-reliability-impact--normal,
    body.page-drivers .crew-reliability-panel--history .crew-reliability-impact--confirmed_both,
    body.page-drivers .crew-reliability-panel--history .crew-reliability-impact--confirmed_final,
    body.page-drivers .crew-reliability-mini-pill--success {
        border-color: #cfeede;
        background: #f2fbf6;
        color: #0a7a41;
    }

    body.page-drivers .crew-reliability-panel--history .crew-reliability-impact--excused,
    body.page-drivers .crew-reliability-panel--history .crew-reliability-impact--manager_called,
    body.page-drivers .crew-reliability-panel--history .crew-reliability-impact--no_reason_warning,
    body.page-drivers .crew-reliability-mini-pill--warning {
        border-color: #ffe0b5;
        background: #fff8ed;
        color: #b86400;
    }

    body.page-drivers .crew-reliability-panel--history .crew-reliability-impact--critical,
    body.page-drivers .crew-reliability-mini-pill--danger {
        border-color: #f6cccc;
        background: #fff5f5;
        color: #d92d20;
    }

    body.page-drivers .crew-reliability-mini-pill--neutral {
        border-color: #dfe7f2;
        background: #f7f9fc;
        color: #526a91;
    }
}
@media (min-width: 1024px) {
    body.page-drivers .crew-list-table thead th,
    body.page-drivers .crew-list-row td {
        text-align: center !important;
        vertical-align: middle;
    }

    body.page-drivers .crew-member-main,
    body.page-drivers .crew-contact-row,
    body.page-drivers .crew-actions-cell {
        justify-content: center;
    }

    body.page-drivers .crew-member-copy,
    body.page-drivers .crew-last-activity {
        align-items: center;
        text-align: center;
    }

    body.page-drivers .crew-reliability-card--modern {
        margin-right: auto;
        margin-left: auto;
    }

    body.page-drivers .crew-reliability-main {
        text-align: left;
    }
}
@media (min-width: 1024px) {
    body.page-drivers .crew-list-table thead th,
    body.page-drivers .crew-list-row td {
        text-align: left !important;
        vertical-align: middle;
    }

    body.page-drivers .crew-list-table thead th:nth-child(1),
    body.page-drivers .crew-list-table thead th:nth-child(4),
    body.page-drivers .crew-list-table thead th:nth-child(6),
    body.page-drivers .crew-list-table thead th:nth-child(8),
    body.page-drivers .crew-expand-cell,
    body.page-drivers .crew-department-cell,
    body.page-drivers .crew-status-cell,
    body.page-drivers .crew-actions-td {
        text-align: center !important;
    }

    body.page-drivers .crew-member-main,
    body.page-drivers .crew-contact-row {
        justify-content: flex-start;
    }

    body.page-drivers .crew-member-copy,
    body.page-drivers .crew-last-activity {
        align-items: flex-start;
        text-align: left;
    }

    body.page-drivers .crew-actions-cell {
        justify-content: center;
    }

    body.page-drivers .crew-rating-cell {
        text-align: left !important;
    }

    body.page-drivers .crew-reliability-card--modern {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 10px;
        width: 230px;
        max-width: 100%;
        min-height: 66px;
        margin-right: auto;
        margin-left: 0;
        padding: 5px 10px;
        border-color: #eef3fa;
        border-radius: 7px;
        box-shadow: none;
    }

    body.page-drivers .crew-reliability-card--modern:hover {
        border-color: #dce8f6;
    }

    body.page-drivers .crew-reliability-ring {
        width: 52px;
        height: 52px;
        font-size: 14px;
    }

    body.page-drivers .crew-reliability-main {
        min-width: 0;
        gap: 5px;
        justify-items: start;
        align-content: center;
        text-align: left;
    }

    body.page-drivers .crew-reliability-label {
        font-size: 14px;
        font-weight: 750;
        line-height: 16px;
    }

    body.page-drivers .crew-reliability-stats-button {
        min-height: 22px;
        gap: 4px;
        padding: 0 8px;
        border-color: #cfe0f7;
        border-radius: 5px;
        font-size: 12px;
        font-weight: 650;
    }

    body.page-drivers .crew-reliability-stats-icon,
    body.page-drivers .crew-reliability-stats-icon svg {
        width: 12px;
        height: 12px;
        flex-basis: 12px;
    }

    body.page-drivers .crew-reliability-card--neutral .crew-reliability-ring,
    body.page-drivers .crew-reliability-card--neutral .crew-reliability-label {
        color: #64748b;
    }

    body.page-drivers .crew-reliability-card--neutral .crew-reliability-stats-button {
        border-color: #d9e4f0;
        color: #42658f;
    }
}
@media (min-width: 1024px) {
    body.page-drivers .crew-list-table thead th:nth-child(2),
    body.page-drivers .crew-list-table thead th:nth-child(3),
    body.page-drivers .crew-list-table thead th:nth-child(5),
    body.page-drivers .crew-list-table thead th:nth-child(7),
    body.page-drivers .crew-member-cell,
    body.page-drivers .crew-phone-cell,
    body.page-drivers .crew-rating-cell,
    body.page-drivers .crew-last-activity-cell {
        text-align: left !important;
    }

    body.page-drivers .crew-list-table thead th:nth-child(1),
    body.page-drivers .crew-list-table thead th:nth-child(4),
    body.page-drivers .crew-list-table thead th:nth-child(6),
    body.page-drivers .crew-list-table thead th:nth-child(8),
    body.page-drivers .crew-expand-cell,
    body.page-drivers .crew-department-cell,
    body.page-drivers .crew-status-cell,
    body.page-drivers .crew-actions-td {
        text-align: center !important;
    }

    body.page-drivers .crew-rating-cell {
        padding-left: 8px;
        padding-right: 8px;
    }

    body.page-drivers .crew-reliability-box {
        display: flex;
        justify-content: flex-start;
    }

    body.page-drivers .crew-reliability-card--modern {
        grid-template-columns: 44px minmax(96px, 1fr);
        gap: 9px;
        width: 204px;
        min-height: 54px;
        margin-left: 0;
        margin-right: auto;
        padding: 4px 8px;
        border-color: #f4f7fb;
        background: #fff;
        border-radius: 7px;
        box-shadow: none;
    }

    body.page-drivers .crew-reliability-card--modern:hover,
    body.page-drivers .crew-reliability-card--modern:focus-within {
        border-color: #dce8f6;
        box-shadow: 0 6px 16px rgba(15, 40, 90, 0.06);
    }

    body.page-drivers .crew-reliability-ring {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        font-size: 12px;
        font-weight: 760;
        letter-spacing: 0;
    }

    body.page-drivers .crew-reliability-ring::before {
        inset: 2px;
        box-shadow: inset 0 0 0 1px rgba(204, 216, 232, 0.6);
    }

    body.page-drivers .crew-reliability-main {
        gap: 4px;
        justify-items: start;
        align-content: center;
        text-align: left;
    }

    body.page-drivers .crew-reliability-label {
        font-size: 13px;
        font-weight: 720;
        line-height: 15px;
    }

    body.page-drivers .crew-reliability-stats-button {
        min-height: 20px;
        gap: 4px;
        padding: 0 7px;
        border-color: #d5e3f5;
        border-radius: 5px;
        background: #fff;
        color: #1760cf;
        font-size: 11.5px;
        font-weight: 600;
        line-height: 18px;
    }

    body.page-drivers .crew-reliability-stats-button:hover,
    body.page-drivers .crew-reliability-stats-button:focus-visible {
        border-color: #9ec2f4;
        background: #f7fbff;
        color: #0f56c3;
    }

    body.page-drivers .crew-reliability-stats-icon,
    body.page-drivers .crew-reliability-stats-icon svg {
        width: 11px;
        height: 11px;
        flex-basis: 11px;
    }

    body.page-drivers .crew-reliability-card--neutral .crew-reliability-ring,
    body.page-drivers .crew-reliability-card--neutral .crew-reliability-label {
        color: #64748b;
    }
}

@media (min-width: 1024px) {
    body.page-drivers .crew-col-expand { width: 3.4%; }
    body.page-drivers .crew-col-member { width: 24%; }
    body.page-drivers .crew-col-phone { width: 15%; }
    body.page-drivers .crew-col-department { width: 10.2%; }
    body.page-drivers .crew-col-rating { width: 14%; }
    body.page-drivers .crew-col-status { width: 10.6%; }
    body.page-drivers .crew-col-activity { width: 15.4%; }
    body.page-drivers .crew-col-actions { width: 7.4%; }

    body.page-drivers .crew-list-table tbody td.crew-department-cell,
    body.page-drivers .crew-list-table tbody td.crew-status-cell,
    body.page-drivers .crew-list-table tbody td.crew-actions-td {
        text-align: center !important;
    }

    body.page-drivers .crew-list-table tbody td.crew-department-cell .crew-department-pill,
    body.page-drivers .crew-list-table tbody td.crew-status-cell .crew-status-pill,
    body.page-drivers .crew-list-table tbody td.crew-actions-td .crew-actions-cell {
        margin-right: auto;
        margin-left: auto;
    }

    body.page-drivers .crew-list-table thead th:nth-child(5) {
        text-align: left !important;
    }
}

@media (min-width: 1024px) {
    body.page-drivers .crew-col-expand { width: 3.4%; }
    body.page-drivers .crew-col-member { width: 22.5%; }
    body.page-drivers .crew-col-rating { width: 14%; }
    body.page-drivers .crew-col-phone { width: 14.5%; }
    body.page-drivers .crew-col-department { width: 10%; }
    body.page-drivers .crew-col-status { width: 10.6%; }
    body.page-drivers .crew-col-activity { width: 17%; }
    body.page-drivers .crew-col-actions { width: 8%; }

    body.page-drivers .crew-list-table thead th:nth-child(2),
    body.page-drivers .crew-list-table thead th:nth-child(3),
    body.page-drivers .crew-list-table thead th:nth-child(4),
    body.page-drivers .crew-list-table thead th:nth-child(7) {
        text-align: left !important;
    }

    body.page-drivers .crew-list-table thead th:nth-child(1),
    body.page-drivers .crew-list-table thead th:nth-child(5),
    body.page-drivers .crew-list-table thead th:nth-child(6),
    body.page-drivers .crew-list-table thead th:nth-child(8) {
        text-align: center !important;
    }

    body.page-drivers .crew-list-table tbody td.crew-member-cell,
    body.page-drivers .crew-list-table tbody td.crew-rating-cell,
    body.page-drivers .crew-list-table tbody td.crew-phone-cell,
    body.page-drivers .crew-list-table tbody td.crew-last-activity-cell {
        text-align: left !important;
    }

    body.page-drivers .crew-list-table tbody td.crew-department-cell,
    body.page-drivers .crew-list-table tbody td.crew-status-cell,
    body.page-drivers .crew-list-table tbody td.crew-actions-td {
        text-align: center !important;
    }

    body.page-drivers .crew-list-table tbody td.crew-department-cell .crew-department-pill,
    body.page-drivers .crew-list-table tbody td.crew-status-cell .crew-status-pill,
    body.page-drivers .crew-list-table tbody td.crew-actions-td .crew-actions-cell {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (min-width: 1024px) {
    body.page-drivers .crew-col-expand { width: 3.2%; }
    body.page-drivers .crew-col-member { width: 14.7%; }
    body.page-drivers .crew-col-rating { width: 14.7%; }
    body.page-drivers .crew-col-phone { width: 14.7%; }
    body.page-drivers .crew-col-department { width: 14.7%; }
    body.page-drivers .crew-col-status { width: 14.7%; }
    body.page-drivers .crew-col-activity { width: 14.7%; }
    body.page-drivers .crew-col-actions { width: 8.6%; }
}

@media (min-width: 1024px) {
    body.page-drivers .crew-list-table .crew-row-toggle {
        color: var(--sa-blue) !important;
        background: #f4f8ff;
        border: 1px solid #cfe0ff;
        box-shadow: 0 1px 2px rgba(23, 101, 255, 0.08);
    }

    body.page-drivers .crew-list-table .crew-row-toggle svg {
        stroke-width: 2.35;
    }

    body.page-drivers .crew-list-table .crew-row-toggle:hover,
    body.page-drivers .crew-list-table .crew-row-toggle:focus-visible,
    body.page-drivers .crew-list-row.is-reliability-open .crew-row-toggle {
        color: #0f56c3 !important;
        background: #eaf2ff;
        border-color: #9ec2f4;
        outline: none;
    }
}
@media (min-width: 1024px) {
    body.page-drivers .crew-col-expand { width: 3.2%; }
    body.page-drivers .crew-col-member { width: 15.4%; }
    body.page-drivers .crew-col-rating { width: 15.2%; }
    body.page-drivers .crew-col-phone { width: 12.5%; }
    body.page-drivers .crew-col-department { width: 13.6%; }
    body.page-drivers .crew-col-status { width: 13.3%; }
    body.page-drivers .crew-col-activity { width: 17.4%; }
    body.page-drivers .crew-col-actions { width: 9.4%; }

    body.page-drivers .crew-list-table thead th:nth-child(4),
    body.page-drivers .crew-list-table tbody td.crew-phone-cell {
        padding-left: 30px;
    }

    body.page-drivers .crew-list-table thead th:nth-child(3),
    body.page-drivers .crew-list-table tbody td.crew-rating-cell {
        padding-right: 12px;
    }
}
/* crewcolscontact1 */
@media (min-width: 1024px) {
    body.page-drivers .crew-list-table thead th:nth-child(4),
    body.page-drivers .crew-list-table tbody td.crew-phone-cell {
        text-align: center !important;
        padding-left: 8px;
        padding-right: 8px;
    }

    body.page-drivers .crew-list-table tbody td.crew-phone-cell .crew-contact-row {
        justify-content: center;
    }

    body.page-drivers .crew-list-table tbody td.crew-phone-cell .crew-contact-missing {
        margin-right: auto;
        margin-left: auto;
    }
}
/* crewphonealertcolor1 */
body.page-drivers .crew-list-table .crew-phone-link,
body.page-drivers .crew-list-table .managers-phone-link {
    color: #2b63e4;
    font-weight: 700;
    text-decoration: none;
}

body.page-drivers .crew-list-table .crew-contact-row svg,
body.page-drivers .crew-list-table .managers-contact-row svg {
    color: #2b63e4;
    stroke: currentColor;
}

body.page-drivers .crew-list-table .crew-phone-link:hover,
body.page-drivers .crew-list-table .crew-phone-link:focus-visible,
body.page-drivers .crew-list-table .managers-phone-link:hover,
body.page-drivers .crew-list-table .managers-phone-link:focus-visible {
    color: #1d4fc2;
    text-decoration: underline;
    text-underline-offset: 2px;
}
/* dialupphonefinalsize1 */
body.page-dialup .dialup-table .dialup-phone-link {
    font-size: 12px;
    line-height: 1.2;
}
/* crewhidephoneicon1 */
body.page-drivers .crew-list-table .crew-contact-row .managers-contact-icon {
    display: none;
}

body.page-drivers .crew-list-table .crew-contact-row {
    gap: 0;
}
/* accountcards1: desktop Account profile summary cards */
@media (min-width: 1024px) {
    body.page-account .account-card-header {
        padding: 28px 28px 16px;
        border-bottom: 0;
    }

    body.page-account .account-card-copy .wk-card__title {
        margin: 0;
        color: #071d4b;
        font-size: 26px;
        font-weight: 800;
        line-height: 1.15;
    }

    body.page-account .account-card-copy .wk-card__description {
        margin: 10px 0 0;
        max-width: 980px;
        color: #2f5389;
        font-size: 16px;
        line-height: 1.45;
    }

    body.page-account .account-card .wk-card__body {
        padding: 14px 28px 30px;
    }

    body.page-account .account-profile-list.account-metric-board {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
        margin: 0;
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    body.page-account .account-profile-row.account-metric-card {
        min-width: 0;
        min-height: 210px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 28px 26px;
        border: 1px solid #d7e4f3;
        border-top: 3px solid #1763f7;
        border-radius: 8px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        box-shadow: 0 12px 24px rgba(16, 37, 77, 0.08);
    }

    body.page-account .account-profile-row.account-metric-card:last-child {
        border-bottom: 1px solid #d7e4f3;
    }

    body.page-account .account-metric-top {
        min-height: 58px;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    body.page-account .account-metric-icon {
        width: 54px;
        height: 54px;
        flex: 0 0 54px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #eaf3ff;
        color: #1763f7;
        box-shadow: 0 10px 22px rgba(23, 99, 247, 0.16);
    }

    body.page-account .account-metric-icon svg {
        width: 28px;
        height: 28px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-account .account-profile-label.account-metric-label {
        color: #10254d;
        font-size: 16px;
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1.25;
        text-transform: none;
    }

    body.page-account .account-metric-divider {
        height: 1px;
        margin: 22px 0 24px;
        background: #d8e3f0;
    }

    body.page-account .account-profile-value.account-metric-value {
        display: flex;
        min-height: 38px;
        align-items: center;
        justify-content: center;
        color: #071d4b;
        font-size: 29px;
        font-weight: 800;
        line-height: 1.15;
        text-align: center;
        overflow-wrap: anywhere;
    }

    body.page-account .account-metric-card--email .account-metric-value,
    body.page-account .account-metric-card--phone .account-metric-value {
        font-size: 23px;
    }

    body.page-account .account-metric-card--access .account-metric-value {
        min-height: 38px;
    }

    body.page-account .account-metric-card--access .account-access-badge {
        margin: 0 auto;
        min-height: 36px;
        padding: 0 16px;
        font-size: 15px;
        box-shadow: 0 1px 2px rgba(18, 38, 68, 0.05);
    }

    body.page-account .account-metric-help {
        display: block;
        margin-top: 14px;
        color: #476698;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.35;
        text-align: center;
        overflow-wrap: anywhere;
    }
}

@media (min-width: 1024px) and (max-width: 1350px) {
    body.page-account .account-profile-list.account-metric-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* modalactionbuttonstandard2 */
@media (min-width: 1024px) {
    .sa-modal-actions .sa-modal-button,
    .sa-modal-actions .wk-button {
        min-height: var(--waker-modal-button-height);
        height: var(--waker-modal-button-height);
        padding: 0 var(--waker-modal-button-padding-x);
        border-radius: var(--waker-modal-button-radius);
        font-family: var(--waker-current-font, var(--sa-font, "Aptos", "Segoe UI", sans-serif)) !important;
        font-size: var(--waker-modal-button-font-size) !important;
        font-weight: var(--waker-modal-button-font-weight) !important;
        line-height: var(--waker-modal-button-line-height) !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

    .sa-modal-actions .sa-modal-button--primary,
    .sa-modal-actions .wk-button--primary {
        border-color: var(--waker-modal-button-primary-border);
        background: var(--waker-modal-button-primary-bg);
        color: var(--waker-modal-button-primary-text);
    }

    .sa-modal-actions .sa-modal-button--primary:hover,
    .sa-modal-actions .wk-button--primary:hover {
        border-color: var(--waker-modal-button-primary-hover-border);
        background: var(--waker-modal-button-primary-hover-bg);
        color: var(--waker-modal-button-primary-text);
    }

    .sa-modal-actions .sa-modal-button--secondary,
    .sa-modal-actions .wk-button:not(.wk-button--primary):not(.wk-button--danger) {
        border-color: var(--waker-modal-button-secondary-border);
        background: var(--waker-modal-button-secondary-bg);
        color: var(--waker-modal-button-secondary-text);
    }

    .sa-modal-actions .sa-modal-button--secondary:hover,
    .sa-modal-actions .wk-button:not(.wk-button--primary):not(.wk-button--danger):hover {
        border-color: var(--waker-modal-button-secondary-hover-border);
        background: var(--waker-modal-button-secondary-hover-bg);
        color: var(--waker-modal-button-secondary-text);
    }
}
/* roweditactionstandard1 */
@media (min-width: 1024px) {
    .app-row-edit-button,
    body.page-users .managers-edit-button,
    body.page-drivers .crew-edit-button,
    body.page-drivers .managers-edit-button,
    body.page-departments .departments-edit-button,
    body.page-dialup .dialup-edit-shift,
    body.page-trips .trips-table-action--edit,
    body.page-billing .billing-review-button,
    body.page-firms .companies-info-button {
        min-width: 92px;
        min-height: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 0;
        padding: 0 14px;
        border: 1px solid var(--sa-blue);
        border-radius: 6px;
        background: #ffffff;
        color: var(--sa-blue);
        box-shadow: none;
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-badge-font-size);
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0;
        text-decoration: none;
        text-transform: none;
        white-space: nowrap;
        cursor: pointer;
        transform: none;
    }

    .app-row-edit-button:hover,
    .app-row-edit-button:focus-visible,
    body.page-users .managers-edit-button:hover,
    body.page-users .managers-edit-button:focus-visible,
    body.page-drivers .crew-edit-button:hover,
    body.page-drivers .crew-edit-button:focus-visible,
    body.page-drivers .managers-edit-button:hover,
    body.page-drivers .managers-edit-button:focus-visible,
    body.page-departments .departments-edit-button:hover,
    body.page-departments .departments-edit-button:focus-visible,
    body.page-dialup .dialup-edit-shift:hover,
    body.page-dialup .dialup-edit-shift:focus-visible,
    body.page-trips .trips-table-action--edit:hover,
    body.page-trips .trips-table-action--edit:focus-visible,
    body.page-billing .billing-review-button:hover,
    body.page-billing .billing-review-button:focus-visible,
    body.page-firms .companies-info-button:hover,
    body.page-firms .companies-info-button:focus-visible {
        border-color: var(--sa-blue-hover);
        background: #f4f8ff;
        color: var(--sa-blue-hover);
        outline: none;
        transform: none;
    }

    .app-row-edit-button:disabled,
    body.page-dialup .dialup-edit-shift:disabled,
    body.page-trips .trips-table-action--edit:disabled,
    body.page-billing .billing-review-button:disabled {
        opacity: 0.52;
        cursor: not-allowed;
    }
}

/* departmentcards1: desktop Departments uses Settings-style cards instead of a table. */
@media (min-width: 1024px) {
    body.page-departments .crew-desktop-panel--table {
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.page-departments .departments-table {
        display: block;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
        color: #10254d;
    }

    body.page-departments .departments-table colgroup,
    body.page-departments .departments-table thead {
        display: none;
    }

    body.page-departments .departments-table tbody {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }

    body.page-departments .departments-table tbody tr.department-list-row {
        display: block;
        min-width: 0;
        outline: none;
    }

    body.page-departments .departments-table tbody tr.department-list-row:hover td.departments-card-cell,
    body.page-departments .departments-table tbody tr.department-list-row:focus-visible td.departments-card-cell {
        background: transparent !important;
    }

    body.page-departments .departments-card-cell {
        display: block !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    body.page-departments .departments-card {
        min-height: 210px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 28px 26px;
        border: 1px solid #d7e4f3;
        border-top: 3px solid #1763f7;
        border-radius: 8px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        box-shadow: 0 12px 24px rgba(16, 37, 77, 0.08);
        box-sizing: border-box;
        transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
    }

    body.page-departments .departments-table tbody tr.department-list-row:hover .departments-card,
    body.page-departments .departments-table tbody tr.department-list-row:focus-visible .departments-card {
        border-color: #9bbcf5;
        box-shadow: 0 16px 30px rgba(16, 37, 77, 0.12);
        transform: translateY(-1px);
    }

    body.page-departments .departments-card__top {
        min-height: 58px;
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 14px;
    }

    body.page-departments .departments-card__icon {
        width: 54px;
        height: 54px;
        flex: 0 0 54px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #eaf3ff;
        color: #1763f7;
        box-shadow: 0 10px 22px rgba(23, 99, 247, 0.16);
    }

    body.page-departments .departments-card__icon svg {
        width: 28px !important;
        height: 28px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-departments .departments-card__copy {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    body.page-departments .departments-card__eyebrow {
        color: #6d82a6;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.04em;
        line-height: 1;
        text-transform: uppercase;
    }

    body.page-departments .departments-card__name {
        display: block;
        min-width: 0;
        overflow: hidden;
        color: #071d4b;
        font-size: 24px;
        font-weight: 800;
        line-height: 1.16;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.page-departments .departments-card__divider {
        height: 1px;
        margin: 22px 0 24px;
        background: #d8e3f0;
    }

    body.page-departments .departments-card__meta {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: auto;
    }

    body.page-departments .departments-card__metric {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }

    body.page-departments .departments-card__metric span {
        color: #6d82a6;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.04em;
        line-height: 1;
        text-transform: uppercase;
    }

    body.page-departments .departments-card__metric strong {
        display: block;
        max-width: 100%;
        color: #071d4b;
        font-size: 22px;
        font-weight: 800;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    body.page-departments .departments-card .departments-status-pill {
        min-width: 78px;
        justify-self: end;
        white-space: nowrap;
    }

    body.page-departments .departments-card .departments-edit-button {
        justify-self: end;
        white-space: nowrap;
    }
}

@media (min-width: 1024px) and (max-width: 1500px) {
    body.page-departments .departments-table tbody {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    body.page-departments .departments-table tbody {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* departmentcards2: refined professional department cards; whole card opens editor. */
@media (min-width: 1024px) {
    body.page-departments .departments-table tbody {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
        padding: 0 6px;
    }

    body.page-departments .departments-table tbody tr.department-list-row {
        cursor: pointer;
    }

    body.page-departments .departments-card {
        min-height: 252px;
        padding: 34px 32px 30px;
        border-color: #dbe6f3;
        border-top: 3px solid #1763f7;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 18px 34px rgba(16, 37, 77, 0.10);
    }

    body.page-departments .departments-table tbody tr.department-list-row:hover .departments-card,
    body.page-departments .departments-table tbody tr.department-list-row:focus-visible .departments-card {
        border-color: #b9cff7;
        box-shadow: 0 22px 40px rgba(16, 37, 77, 0.14);
        transform: translateY(-2px);
    }

    body.page-departments .departments-card__top {
        min-height: 70px;
        grid-template-columns: 68px minmax(0, 1fr) auto 26px;
        align-items: center;
        gap: 18px;
    }

    body.page-departments .departments-card__icon {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
        background: #edf5ff;
        color: #1763f7;
        box-shadow: 0 12px 24px rgba(23, 99, 247, 0.12);
    }

    body.page-departments .departments-card__icon svg {
        width: 30px !important;
        height: 30px !important;
        stroke-width: 2.05;
    }

    body.page-departments .departments-card__eyebrow {
        color: #657ca4;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.045em;
    }

    body.page-departments .departments-card__name {
        color: #071d4b;
        font-size: 21px;
        font-weight: 800;
        line-height: 1.2;
    }

    body.page-departments .departments-card .departments-status-pill {
        min-width: 76px;
        min-height: 28px;
        justify-self: end;
        padding: 0 14px;
        font-size: 12px;
        font-weight: 800;
    }

    body.page-departments .departments-card__chevron {
        width: 26px;
        height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
        color: #17417c;
    }

    body.page-departments .departments-card__chevron svg {
        width: 22px !important;
        height: 22px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-departments .departments-card__divider {
        margin: 28px 0 28px;
        background: #d9e4f0;
    }

    body.page-departments .departments-card__metric {
        align-items: flex-start;
        text-align: left;
    }

    body.page-departments .departments-card__metric span {
        color: #657ca4;
        font-size: 12px;
    }

    body.page-departments .departments-card__metric strong {
        color: #071d4b;
        font-size: 20px;
        line-height: 1.25;
    }

    body.page-departments .departments-card .departments-edit-button {
        display: none !important;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    body.page-departments .departments-table tbody {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* departmentcards5: title-safe layout and linked manager display. */
@media (min-width: 1024px) {
    body.page-departments .departments-card {
        position: relative;
        min-height: 258px;
        padding: 34px 26px 28px;
    }

    body.page-departments .departments-card__top {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 16px;
        min-height: 76px;
        padding-top: 12px;
        padding-right: 0;
    }

    body.page-departments .departments-card__copy {
        gap: 7px;
    }

    body.page-departments .departments-card__name {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    body.page-departments .departments-card .departments-status-pill {
        position: absolute;
        top: 30px;
        right: 58px;
        z-index: 1;
    }

    body.page-departments .departments-card__chevron {
        position: absolute;
        top: 32px;
        right: 24px;
        z-index: 1;
    }

    body.page-departments .departments-card__divider {
        margin: 24px 0 26px;
    }

    body.page-departments .departments-card__metric {
        align-items: flex-start;
        gap: 10px;
        text-align: left;
    }

    body.page-departments .departments-card__metric strong {
        display: flex;
        max-width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 18px;
        line-height: 1.22;
    }

    body.page-departments .departments-manager-link {
        color: #1763f7;
        font-weight: 800;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    body.page-departments .departments-manager-link:hover,
    body.page-departments .departments-manager-link:focus-visible {
        color: #0f55dc;
        text-decoration: underline;
        outline: none;
    }

    body.page-departments .departments-manager-name {
        color: #071d4b;
        font-weight: 800;
        overflow-wrap: anywhere;
    }

    body.page-departments .departments-manager-comment {
        display: block;
        color: #55709d;
        font-size: 15px;
        font-weight: 650;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
}
/* Shared desktop modal access/status switches: Active is on/green, Blocked is off/red. */
@media (min-width: 1024px) {
    body.page-users .managers-editor-blocked.is-active,
    body.page-drivers .crew-editor-blocked.is-active,
    body.page-departments .departments-editor-blocked.is-active {
        color: #15803d;
    }

    body.page-users .managers-editor-blocked.is-blocked,
    body.page-drivers .crew-editor-blocked.is-blocked,
    body.page-departments .departments-editor-blocked.is-blocked {
        color: #b73f3f;
    }

    body.page-users .managers-editor-blocked.is-active .managers-access-switch,
    body.page-drivers .crew-editor-blocked.is-active .crew-access-switch,
    body.page-departments .departments-editor-blocked.is-active .crew-access-switch {
        border-color: #39ae50;
        background: #48c05c;
    }

    body.page-users .managers-editor-blocked.is-active .managers-access-switch::before,
    body.page-drivers .crew-editor-blocked.is-active .crew-access-switch::before,
    body.page-departments .departments-editor-blocked.is-active .crew-access-switch::before {
        transform: translate(18px, -50%);
    }

    body.page-users .managers-editor-blocked.is-blocked .managers-access-switch,
    body.page-drivers .crew-editor-blocked.is-blocked .crew-access-switch,
    body.page-departments .departments-editor-blocked.is-blocked .crew-access-switch {
        border-color: #e6b5b5;
        background: #fff1f1;
    }

    body.page-users .managers-editor-blocked.is-blocked .managers-access-switch::before,
    body.page-drivers .crew-editor-blocked.is-blocked .crew-access-switch::before,
    body.page-departments .departments-editor-blocked.is-blocked .crew-access-switch::before {
        transform: translateY(-50%);
    }
}
/* Keep inverse blocked fields visually off/left even when the hidden input is checked. */
@media (min-width: 1024px) {
    body.page-users .managers-editor-blocked.is-blocked input:checked + .managers-access-switch,
    body.page-drivers .crew-editor-blocked.is-blocked input:checked + .crew-access-switch,
    body.page-departments .departments-editor-blocked.is-blocked input:checked + .crew-access-switch {
        border-color: #e6b5b5;
        background: #fff1f1;
    }

    body.page-users .managers-editor-blocked.is-blocked input:checked + .managers-access-switch::before,
    body.page-drivers .crew-editor-blocked.is-blocked input:checked + .crew-access-switch::before,
    body.page-departments .departments-editor-blocked.is-blocked input:checked + .crew-access-switch::before {
        transform: translateY(-50%);
    }
}
/* Modal Status fields use the same typography as regular modal labels and selectors. */
@media (min-width: 1024px) {
    body.page-users .managers-editor-access__label,
    body.page-drivers .crew-editor-access__label,
    body.page-departments .departments-editor-access__label {
        color: var(--waker-color-ink-muted);
        font-family: var(--waker-current-font, var(--sa-font, "Aptos", "Segoe UI", sans-serif));
        font-size: var(--waker-modal-label-font-size);
        font-weight: var(--waker-modal-label-font-weight);
        line-height: 1.2;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    body.page-users .managers-editor-blocked,
    body.page-drivers .crew-editor-blocked,
    body.page-departments .departments-editor-blocked {
        font-family: var(--waker-current-font, var(--sa-font, "Aptos", "Segoe UI", sans-serif));
        font-size: var(--waker-modal-control-font-size);
        font-weight: var(--waker-modal-control-font-weight);
        line-height: 1.2;
        letter-spacing: 0;
        text-transform: none;
    }
}
/* Manager editor: Status and Security share the same compact card treatment. */
@media (min-width: 1024px) {
    body.page-users .managers-editor-access .managers-editor-access__label {
        color: #102a55;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: none;
    }
}
/* tableconsistency1: final desktop normalization for table pages. Departments stays a card grid. */
@media (min-width: 1024px) {
    body.page-dialup .dialup-table,
    body.page-trips .trips-table,
    body.page-drivers .crew-list-table,
    body.page-users .managers-table,
    body.page-log .logs-table,
    body.page-firms .companies-table,
    body.page-billing .billing-table {
        background: var(--sa-panel-bg);
        color: var(--sa-text-soft);
        font-family: var(--sa-font);
        font-size: var(--sa-desktop-table-font-size);
    }

    body.page-trips .trips-table thead th,
    body.page-drivers .crew-list-table thead th,
    body.page-users .managers-table thead th,
    body.page-log .logs-table thead th,
    body.page-firms .companies-table thead th,
    body.page-billing .billing-table thead th {
        height: 42px;
        padding: 12px 14px !important;
        border-right: 1px solid var(--sa-border-soft);
        border-bottom: 1px solid var(--sa-border);
        background: var(--sa-table-head-bg) !important;
        color: #111111 !important;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-table-header-font-size) !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        letter-spacing: 0.03em !important;
        text-align: left;
        text-transform: uppercase;
        vertical-align: middle;
        white-space: normal;
    }

    body.page-dialup .dialup-table > tbody > tr > td,
    body.page-trips .trips-table tbody td,
    body.page-drivers .crew-list-table tbody td,
    body.page-users .managers-table tbody td,
    body.page-log .logs-table tbody td,
    body.page-firms .companies-table tbody td,
    body.page-billing .billing-table tbody td {
        padding: 10px 14px;
        border-right: 1px solid var(--sa-border-soft);
        border-bottom: 1px solid var(--waker-border-table-row);
        background: var(--sa-panel-bg);
        color: var(--sa-text-soft) !important;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-table-font-size) !important;
        line-height: 1.25;
        vertical-align: middle;
    }

    body.page-dialup .dialup-table > tbody > tr:hover > td,
    body.page-trips .trips-table tbody tr:hover td,
    body.page-drivers .crew-list-table tbody tr:hover td,
    body.page-users .managers-table tbody tr:hover td,
    body.page-log .logs-table tbody tr:hover td,
    body.page-firms .companies-table tbody tr:hover td,
    body.page-billing .billing-table tbody tr:hover td {
        background: var(--sa-table-row-hover);
    }

    body.page-billing .billing-owner-card .wk-table-wrap {
        border: 1px solid var(--sa-border);
        border-radius: 8px;
        background: var(--sa-panel-bg);
        box-shadow: 0 1px 3px rgba(18, 38, 68, 0.05);
    }

    body.page-billing .billing-table {
        --billing-compact-column-width: 96px;
        min-width: 1440px;
        border-collapse: collapse;
        border-spacing: 0;
        table-layout: fixed;
    }

    body.page-billing .billing-table th,
    body.page-billing .billing-table td {
        width: var(--billing-compact-column-width);
        min-width: var(--billing-compact-column-width);
        max-width: var(--billing-compact-column-width);
        overflow-wrap: anywhere;
    }

    body.page-billing .billing-table tbody tr td:first-child,
    body.page-billing .billing-table tbody tr td:last-child {
        border-radius: 0;
    }

    body.page-billing .billing-month-row.is-selected td:first-child {
        box-shadow: inset 4px 0 0 var(--waker-color-primary);
    }

    body.page-dialup .dialup-table > thead > tr > th:nth-child(7),
    body.page-dialup .dialup-table > thead > tr > th:nth-child(8),
    body.page-dialup .dialup-table > thead > tr > th:nth-child(9),
    body.page-dialup .dialup-table > thead > tr > th:nth-child(11),
    body.page-dialup .dialup-table > tbody > tr > td.dialup-checkbox-cell,
    body.page-dialup .dialup-table > tbody > tr > td.dialup-cell-actions,
    body.page-trips .recurring-table th:nth-child(6),
    body.page-trips .recurring-table th:nth-child(7),
    body.page-trips .recurring-table th:nth-child(8),
    body.page-trips .recurring-table th:nth-child(9),
    body.page-trips .recurring-table td:nth-child(6),
    body.page-trips .recurring-table td:nth-child(7),
    body.page-trips .recurring-table td:nth-child(8),
    body.page-trips .recurring-table td:nth-child(9),
    body.page-users .managers-table th:nth-child(6),
    body.page-users .managers-table th:nth-child(7),
    body.page-users .managers-table th:nth-child(8),
    body.page-users .managers-table td:nth-child(6),
    body.page-users .managers-table td:nth-child(7),
    body.page-users .managers-table td:nth-child(8),
    body.page-log .logs-table th:nth-child(1),
    body.page-log .logs-table th:nth-child(3),
    body.page-log .logs-table th:nth-child(5),
    body.page-log .logs-table td:nth-child(1),
    body.page-log .logs-table td:nth-child(3),
    body.page-log .logs-table td:nth-child(5),
    body.page-firms .companies-table th:nth-child(1),
    body.page-firms .companies-table th:nth-child(4),
    body.page-firms .companies-table th:nth-child(5),
    body.page-firms .companies-table th:nth-child(6),
    body.page-firms .companies-table th:nth-child(7),
    body.page-firms .companies-table th:nth-child(8),
    body.page-firms .companies-table th:nth-child(9),
    body.page-firms .companies-table th:nth-child(10),
    body.page-firms .companies-table td:nth-child(1),
    body.page-firms .companies-table td:nth-child(4),
    body.page-firms .companies-table td:nth-child(5),
    body.page-firms .companies-table td:nth-child(6),
    body.page-firms .companies-table td:nth-child(7),
    body.page-firms .companies-table td:nth-child(8),
    body.page-firms .companies-table td:nth-child(9),
    body.page-firms .companies-table td:nth-child(10),
    body.page-billing .billing-table th:nth-child(2),
    body.page-billing .billing-table th:nth-child(5),
    body.page-billing .billing-table th:nth-child(12),
    body.page-billing .billing-table th:nth-child(14),
    body.page-billing .billing-table th:nth-child(15),
    body.page-billing .billing-table td:nth-child(2),
    body.page-billing .billing-table td:nth-child(5),
    body.page-billing .billing-table td:nth-child(12),
    body.page-billing .billing-table td:nth-child(14),
    body.page-billing .billing-table td:nth-child(15) {
        text-align: center !important;
    }

    body.page-billing .billing-table th:nth-child(3),
    body.page-billing .billing-table th:nth-child(4),
    body.page-billing .billing-table th:nth-child(6),
    body.page-billing .billing-table th:nth-child(7),
    body.page-billing .billing-table th:nth-child(9),
    body.page-billing .billing-table th:nth-child(11),
    body.page-billing .billing-table th:nth-child(13),
    body.page-billing .billing-table td:nth-child(3),
    body.page-billing .billing-table td:nth-child(4),
    body.page-billing .billing-table td:nth-child(6),
    body.page-billing .billing-table td:nth-child(7),
    body.page-billing .billing-table td:nth-child(9),
    body.page-billing .billing-table td:nth-child(11),
    body.page-billing .billing-table td:nth-child(13) {
        text-align: right !important;
    }

    .app-row-edit-button,
    body.page-users .managers-edit-button,
    body.page-drivers .crew-edit-button,
    body.page-drivers .managers-edit-button,
    body.page-departments .departments-edit-button,
    body.page-dialup .dialup-edit-shift,
    body.page-trips .trips-table-action--edit,
    body.page-billing .billing-review-button,
    body.page-firms .companies-info-button,
    body.page-users .managers-invite-button {
        min-width: 92px;
        min-height: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0 14px;
        border-radius: 6px;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-badge-font-size) !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        letter-spacing: 0;
        white-space: nowrap;
    }

    body.page-firms .companies-action-button {
        min-height: 34px;
        height: 34px;
        gap: 6px;
        padding: 0 14px;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-badge-font-size) !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }

    .wk-status-pill,
    body.page-dialup .dialup-source-badge,
    body.page-dialup .dialup-status,
    body.page-trips .recurring-rule-badge,
    body.page-trips .recurring-status-control .sa-mobile-selector__button,
    body.page-drivers .crew-department-pill,
    body.page-drivers .crew-status-pill,
    body.page-users .managers-owner-pill,
    body.page-users .managers-department-pill,
    body.page-users .managers-invite-pill,
    body.page-departments .departments-status-pill {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-radius: var(--waker-radius-pill);
        font-family: var(--sa-font) !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.1;
        letter-spacing: 0;
        text-transform: none;
    }

    body.page-dialup .dialup-source-badge,
    body.page-drivers .crew-department-pill,
    body.page-drivers .crew-status-pill,
    body.page-users .managers-owner-pill,
    body.page-users .managers-department-pill,
    body.page-departments .departments-status-pill {
        padding: 0 12px;
    }

    body.page-trips .recurring-rule-badge {
        padding: 0 var(--waker-space-4) 0 var(--waker-space-1);
        justify-content: flex-start;
    }

    body.page-dialup .dialup-status {
        padding: 6px 10px;
        align-items: flex-start;
        justify-content: flex-start;
    }

    body.page-users .managers-invite-pill {
        min-height: 28px;
        padding: 0;
    }

    body.page-departments .departments-card__eyebrow,
    body.page-departments .departments-card__metric span {
        color: var(--waker-color-ink-muted);
        font-family: var(--sa-font) !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }
}

/* tableconsistency2: align managers badges with shared badge sizing. */
@media (min-width: 1024px) {
    body.page-users .managers-role-pill,
    body.page-users .managers-role-cell .managers-owner-pill,
    body.page-users .managers-department-pill,
    body.page-users .managers-department-cell .managers-department-pill {
        min-height: 28px !important;
        padding: 0 12px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-radius: var(--waker-radius-pill);
        font-family: var(--sa-font) !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        letter-spacing: 0;
        text-transform: none;
        white-space: nowrap;
    }
}
/* tableconsistency3: keep recurring row Edit actions on the shared 34px row-action contract. */
@media (min-width: 1024px) {
    body.page-trips .recurring-table .trips-table-action[data-action="edit-recurring"],
    body.page-trips .trips-table .trips-table-action--edit {
        min-width: 92px !important;
        min-height: 34px !important;
        height: 34px !important;
        padding: 0 14px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-radius: 6px;
        font-family: var(--sa-font) !important;
        font-size: var(--sa-desktop-badge-font-size) !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        letter-spacing: 0;
        white-space: nowrap;
    }
}
/* crewtablelines1: restore desktop vertical separators in the Crew table. */
@media (min-width: 1024px) {
    body.page-drivers .crew-list-table thead th,
    body.page-drivers .crew-list-table tbody td {
        border-right: 1px solid var(--sa-border-soft) !important;
    }

    body.page-drivers .crew-list-table thead th:last-child,
    body.page-drivers .crew-list-table tbody td:last-child {
        border-right: 0 !important;
    }
}
/* dialuppaginationselect1: align Rows per page select arrow with Alerts selector system. */
@media (min-width: 1024px) {
    body.page-dialup .dialup-rows-per-page select#dialup_rows_per_page {
        min-width: 72px;
        padding: 0 38px 0 16px !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        background-color: #ffffff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236780a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
        background-position: right 12px center !important;
        background-repeat: no-repeat !important;
        background-size: 14px 14px !important;
        text-align: left;
    }

    body.page-dialup .dialup-rows-per-page select#dialup_rows_per_page::-ms-expand {
        display: none;
    }
}
/* dialupdepartmentselector2: final Alerts department select arrow matches date selector. */
@media (min-width: 1024px) {
    body.page-dialup .dialup-top-controls .dialup-field--department select#dialup_department_select {
        padding-right: 38px !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        background-color: #ffffff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236780a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
        background-position: right 12px center !important;
        background-repeat: no-repeat !important;
        background-size: 14px 14px !important;
        color: #15315f !important;
    }

    body.page-dialup .dialup-top-controls .dialup-field--department select#dialup_department_select::-ms-expand {
        display: none;
    }
}
/* dialupshiftresultselector1: align Shift Result select arrow and remove harsh focus border. */
@media (min-width: 1024px) {
    body.page-dialup .dialup-table .dialup-shift-result-select {
        padding-right: 38px;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236780a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-position: right 12px center;
        background-repeat: no-repeat;
        background-size: 14px 14px;
        outline: none;
    }

    body.page-dialup .dialup-table .dialup-shift-result-select--showed-up {
        background-color: var(--waker-status-success-bg);
    }

    body.page-dialup .dialup-table .dialup-shift-result-select--valid {
        background-color: var(--waker-status-warning-bg);
    }

    body.page-dialup .dialup-table .dialup-shift-result-select--no-reason {
        background-color: var(--waker-status-danger-bg);
    }

    body.page-dialup .dialup-table .dialup-shift-result-select:focus,
    body.page-dialup .dialup-table .dialup-shift-result-select:focus-visible {
        outline: none !important;
        border-color: currentColor !important;
        box-shadow: none !important;
    }

    body.page-dialup .dialup-table .dialup-shift-result-select::-ms-expand {
        display: none;
    }
}
/* crewdesktopiconpicker1: desktop Crew editor uses icon-only picker instead of native text dropdown. */
@media (min-width: 1024px) {
    body.page-drivers #crew_editor_icon.crew-editor-native-icon-select {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        min-height: 1px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        background: transparent !important;
        background-image: none !important;
    }

    body.page-drivers .crew-editor-field--icon {
        position: relative;
    }

    body.page-drivers .crew-editor-phone-field > .managers-editor-label-with-info,
    body.page-drivers #crew_editor_department_wrap > span:first-child {
        min-height: 18px;
        display: inline-flex;
        align-items: center;
        margin-bottom: 8px;
        line-height: 18px;
    }

    body.page-drivers .crew-editor-phone-field .managers-editor-info {
        margin: 0 !important;
    }

    body.page-drivers .crew-editor-icon-trigger {
        width: 100%;
        height: 46px;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        box-sizing: border-box;
        padding: 0 8px 0 10px;
        border: 1px solid #c8d8ef;
        border-radius: 9px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        color: #082658;
        cursor: pointer;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 1px 2px rgba(15, 35, 65, 0.04);
        transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, transform 0.14s ease;
    }

    body.page-drivers .crew-editor-icon-trigger:hover,
    body.page-drivers .crew-editor-icon-trigger:focus-visible {
        border-color: #93b5e8;
        background: #f4f8ff;
        outline: none;
        box-shadow: inset 0 0 0 1px rgba(20, 95, 245, 0.08), 0 5px 16px rgba(8, 38, 88, 0.08);
    }

    body.page-drivers .crew-editor-icon-trigger:active {
        transform: translateY(1px);
    }

    body.page-drivers .crew-editor-icon-trigger span {
        margin-bottom: 0;
    }

    body.page-drivers .crew-editor-icon-trigger__selected {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 11px;
    }

    body.page-drivers .crew-editor-icon-trigger__glyph {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 30px;
        border: 1px solid #d8e6ff;
        border-radius: 12px;
        background: #eef5ff;
        color: #145ff5;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    body.page-drivers .crew-editor-icon-trigger__glyph svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.1;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-drivers .crew-editor-icon-trigger__label {
        overflow: hidden;
        color: #48648e;
        font-family: var(--sa-font);
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.page-drivers .crew-editor-icon-trigger__chevron {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #5d779f;
        flex: 0 0 34px;
        border-radius: 10px;
        background: #eef4ff;
    }

    body.page-drivers .crew-editor-icon-trigger:hover .crew-editor-icon-trigger__chevron,
    body.page-drivers .crew-editor-icon-trigger:focus-visible .crew-editor-icon-trigger__chevron {
        background: #e5efff;
        color: #145ff5;
    }

    body.page-drivers .crew-editor-icon-trigger__chevron svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.45;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-drivers .crew-editor-icon-overlay[hidden] {
        display: none !important;
    }

    body.page-drivers .crew-editor-icon-overlay {
        position: fixed;
        inset: 0;
        z-index: 12000;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 28px;
        background: rgba(4, 20, 48, 0.22);
    }

    body.page-drivers .crew-editor-icon-panel {
        width: min(760px, calc(100vw - 72px));
        max-height: min(560px, calc(100vh - 96px));
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid #cbd8e8;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 26px 70px rgba(7, 28, 64, 0.28);
    }

    body.page-drivers .crew-editor-icon-panel__header {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 18px;
        border-bottom: 1px solid #e1e9f3;
        background: #ffffff;
    }

    body.page-drivers .crew-editor-icon-panel__header h3 {
        margin: 0;
        color: #10254d;
        font-family: var(--sa-font);
        font-size: 20px;
        font-weight: 800;
        line-height: 1.1;
    }

    body.page-drivers .crew-editor-icon-close {
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #cbd8e8;
        border-radius: 10px;
        background: #f8fbff;
        color: #082658;
        font-family: var(--sa-font);
        font-size: 24px;
        font-weight: 400;
        line-height: 1;
        cursor: pointer;
    }

    body.page-drivers .crew-editor-icon-close:hover,
    body.page-drivers .crew-editor-icon-close:focus-visible {
        border-color: #9eb7db;
        background: #eef5ff;
        outline: none;
    }

    body.page-drivers .crew-editor-icon-grid {
        flex: 1 1 auto;
        min-height: 0;
        max-height: 476px;
        overflow-y: auto;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
        gap: 10px;
        padding: 18px;
        background: #f8fbff;
    }

    body.page-drivers .crew-editor-icon-option {
        height: 62px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #d8e3f2;
        border-radius: 14px;
        background: #ffffff;
        color: #082658;
        cursor: pointer;
        box-shadow: 0 1px 2px rgba(15, 35, 65, 0.04);
        transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
    }

    body.page-drivers .crew-editor-icon-option:hover,
    body.page-drivers .crew-editor-icon-option:focus-visible {
        border-color: #9eb7db;
        background: #eef5ff;
        color: #145ff5;
        outline: none;
        box-shadow: 0 8px 18px rgba(20, 95, 245, 0.12);
        transform: translateY(-1px);
    }

    body.page-drivers .crew-editor-icon-option.is-selected {
        border-color: #6fa0ff;
        background: #eaf2ff;
        color: #145ff5;
        box-shadow: inset 0 0 0 1px rgba(20, 95, 245, 0.18), 0 8px 18px rgba(20, 95, 245, 0.12);
    }

    body.page-drivers .crew-editor-icon-option span {
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.page-drivers .crew-editor-icon-option svg {
        width: 30px;
        height: 30px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.1;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}

/* departmentshapeicons1: desktop Departments editor uses a compact shape icon picker. */
@media (min-width: 1024px) {
    body.page-departments #department_editor_icon.department-editor-native-icon-select {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        min-height: 1px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        background: transparent !important;
        background-image: none !important;
    }

    body.page-departments .departments-editor-field--icon {
        position: relative;
    }

    body.page-departments .department-editor-icon-trigger {
        width: 100%;
        height: 46px;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        box-sizing: border-box;
        padding: 0 8px 0 10px;
        border: 1px solid #c8d8ef;
        border-radius: 9px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        color: #082658;
        cursor: pointer;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 1px 2px rgba(15, 35, 65, 0.04);
        transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, transform 0.14s ease;
    }

    body.page-departments .department-editor-icon-trigger:hover,
    body.page-departments .department-editor-icon-trigger:focus-visible {
        border-color: #93b5e8;
        background: #f4f8ff;
        outline: none;
        box-shadow: inset 0 0 0 1px rgba(20, 95, 245, 0.08), 0 5px 16px rgba(8, 38, 88, 0.08);
    }

    body.page-departments .department-editor-icon-trigger:active {
        transform: translateY(1px);
    }

    body.page-departments .department-editor-icon-trigger span {
        margin-bottom: 0;
    }

    body.page-departments .department-editor-icon-trigger__selected {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 11px;
    }

    body.page-departments .department-editor-icon-trigger__glyph {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 30px;
        border: 1px solid #d8e6ff;
        border-radius: 12px;
        background: #eef5ff;
        color: #145ff5;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    body.page-departments .department-editor-icon-trigger__glyph svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.1;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-departments .department-editor-icon-trigger__label {
        overflow: hidden;
        color: #48648e;
        font-family: var(--sa-font);
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.page-departments .department-editor-icon-trigger__chevron {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #5d779f;
        flex: 0 0 34px;
        border-radius: 10px;
        background: #eef4ff;
    }

    body.page-departments .department-editor-icon-trigger:hover .department-editor-icon-trigger__chevron,
    body.page-departments .department-editor-icon-trigger:focus-visible .department-editor-icon-trigger__chevron {
        background: #e5efff;
        color: #145ff5;
    }

    body.page-departments .department-editor-icon-trigger__chevron svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.45;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.page-departments .department-editor-icon-overlay[hidden] {
        display: none !important;
    }

    body.page-departments .department-editor-icon-overlay {
        position: fixed;
        inset: 0;
        z-index: 12000;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 28px;
        background: rgba(4, 20, 48, 0.22);
    }

    body.page-departments .department-editor-icon-panel {
        width: min(520px, calc(100vw - 72px));
        max-height: min(430px, calc(100vh - 96px));
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid #cbd8e8;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 26px 70px rgba(7, 28, 64, 0.28);
    }

    body.page-departments .department-editor-icon-panel__header {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 18px;
        border-bottom: 1px solid #e1e9f3;
        background: #ffffff;
    }

    body.page-departments .department-editor-icon-panel__header h3 {
        margin: 0;
        color: #10254d;
        font-family: var(--sa-font);
        font-size: 20px;
        font-weight: 800;
        line-height: 1.1;
    }

    body.page-departments .department-editor-icon-close {
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #cbd8e8;
        border-radius: 10px;
        background: #f8fbff;
        color: #082658;
        font-family: var(--sa-font);
        font-size: 24px;
        font-weight: 400;
        line-height: 1;
        cursor: pointer;
    }

    body.page-departments .department-editor-icon-close:hover,
    body.page-departments .department-editor-icon-close:focus-visible {
        border-color: #9eb7db;
        background: #eef5ff;
        outline: none;
    }

    body.page-departments .department-editor-icon-grid {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        display: grid;
        grid-template-columns: repeat(4, minmax(64px, 1fr));
        gap: 10px;
        padding: 18px;
        background: #f8fbff;
    }

    body.page-departments .department-editor-icon-option {
        height: 62px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #d8e3f2;
        border-radius: 14px;
        background: #ffffff;
        color: #082658;
        cursor: pointer;
        box-shadow: 0 1px 2px rgba(15, 35, 65, 0.04);
        transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
    }

    body.page-departments .department-editor-icon-option:hover,
    body.page-departments .department-editor-icon-option:focus-visible {
        border-color: #9eb7db;
        background: #eef5ff;
        color: #145ff5;
        outline: none;
        box-shadow: 0 8px 18px rgba(20, 95, 245, 0.12);
        transform: translateY(-1px);
    }

    body.page-departments .department-editor-icon-option.is-selected {
        border-color: #6fa0ff;
        background: #eaf2ff;
        color: #145ff5;
        box-shadow: inset 0 0 0 1px rgba(20, 95, 245, 0.18), 0 8px 18px rgba(20, 95, 245, 0.12);
    }

    body.page-departments .department-editor-icon-option span {
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.page-departments .department-editor-icon-option svg {
        width: 30px;
        height: 30px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.1;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}
/* tablepagination1: reusable desktop table pagination footer. */
@media (min-width: 1024px) {
    .sa-table-pagination {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 64px;
        box-sizing: border-box;
        padding: 14px 18px;
        margin-top: -1px;
        border: 1px solid var(--sa-border, #cdd8e8);
        border-radius: 0 0 8px 8px;
        background: var(--sa-surface, #fff);
        box-shadow: 0 1px 3px rgba(18, 38, 68, .05);
        color: #5f7396;
        font-family: var(--sa-font, inherit);
    }

    .billing-table-body .sa-table-pagination,
    .sa-table-pagination--companies {
        margin-top: 12px;
        border-radius: 8px;
    }

    .sa-table-pagination__summary {
        min-width: 0;
        color: #5f7396;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
    }

    .sa-table-pagination__controls {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 14px;
        margin-left: auto;
    }

    .sa-table-pagination__page-size {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #6d7fa2;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .04em;
        line-height: 1;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .sa-table-pagination__page-size select {
        min-width: 76px;
        height: 40px;
        box-sizing: border-box;
        padding: 0 38px 0 16px;
        border: 1px solid var(--sa-control-border, #b8c9df);
        border-radius: 8px;
        appearance: none;
        background-color: #fff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235f7396' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px 16px;
        color: #06265f;
        font-family: var(--sa-font, inherit);
        font-size: 15px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
    }

    .sa-table-pagination__page-size select::-ms-expand {
        display: none;
    }

    .sa-table-pagination__pager {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .sa-table-pagination__pager button {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        border: 1px solid var(--sa-control-border, #b8c9df);
        border-radius: 8px;
        background: #fff;
        color: #61789e;
        font-family: var(--sa-font, inherit);
        font-size: 24px;
        font-weight: 500;
        line-height: 1;
        cursor: pointer;
    }

    .sa-table-pagination__pager button:hover:not(:disabled),
    .sa-table-pagination__pager button:focus-visible:not(:disabled) {
        border-color: #9bb3d3;
        background: #f3f7fd;
        color: #082658;
        outline: none;
    }

    .sa-table-pagination__pager button:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

    .sa-table-pagination__pager span {
        min-width: 54px;
        color: #52688f;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
        white-space: nowrap;
    }
}

@media (max-width: 1023px) {
    .sa-table-pagination {
        display: none !important;
    }
}
body.page-firms .companies-billing-credit-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--waker-border-subtle, #d9e1ea);
    border-radius: 8px;
    background: #f7fafc;
}

body.page-firms .companies-billing-credit-summary div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

body.page-firms .companies-billing-credit-summary strong,
body.page-firms .companies-billing-credit-summary span {
    overflow-wrap: anywhere;
}

body.page-firms .companies-billing-manual {
    display: grid;
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

@media (max-width: 760px) {
    body.page-firms .companies-billing-credit-summary,
    body.page-firms .companies-billing-manual {
        grid-template-columns: 1fr;
    }
}

/* departmentshapeicons2: non-native Departments icon selector must work as a modal trigger at every viewport. */
body.page-departments #department_editor_icon.department-editor-native-icon-select,
body.page-departments #department_editor_icon.department-editor-native-icon-select[hidden] {
    display: none !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background: transparent !important;
    background-image: none !important;
}

body.page-departments .departments-editor-field--icon {
    position: relative;
}

body.page-departments .department-editor-icon-trigger {
    width: 100%;
    height: 46px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
    padding: 0 8px 0 10px;
    border: 1px solid #c8d8ef;
    border-radius: 9px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #082658;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 1px 2px rgba(15, 35, 65, 0.04);
    transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, transform 0.14s ease;
}

body.page-departments .department-editor-icon-trigger:hover,
body.page-departments .department-editor-icon-trigger:focus-visible {
    border-color: #93b5e8;
    background: #f4f8ff;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(20, 95, 245, 0.08), 0 5px 16px rgba(8, 38, 88, 0.08);
}

body.page-departments .department-editor-icon-trigger:active {
    transform: translateY(1px);
}

body.page-departments .department-editor-icon-trigger span {
    margin-bottom: 0;
}

body.page-departments .department-editor-icon-trigger__selected {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

body.page-departments .department-editor-icon-trigger__glyph {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    border: 1px solid #d8e6ff;
    border-radius: 12px;
    background: #eef5ff;
    color: #145ff5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.page-departments .department-editor-icon-trigger__glyph svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.page-departments .department-editor-icon-trigger__label {
    overflow: hidden;
    color: #48648e;
    font-family: var(--sa-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-departments .department-editor-icon-trigger__chevron {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5d779f;
    flex: 0 0 34px;
    border-radius: 10px;
    background: #eef4ff;
}

body.page-departments .department-editor-icon-trigger:hover .department-editor-icon-trigger__chevron,
body.page-departments .department-editor-icon-trigger:focus-visible .department-editor-icon-trigger__chevron {
    background: #e5efff;
    color: #145ff5;
}

body.page-departments .department-editor-icon-trigger__chevron svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.page-departments .department-editor-icon-overlay[hidden] {
    display: none !important;
}

body.page-departments .department-editor-icon-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 28px;
    background: rgba(4, 20, 48, 0.22);
}

body.page-departments .department-editor-icon-panel {
    width: min(520px, calc(100vw - 72px));
    max-height: min(430px, calc(100vh - 96px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #cbd8e8;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(7, 28, 64, 0.28);
}

body.page-departments .department-editor-icon-panel__header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e1e9f3;
    background: #ffffff;
}

body.page-departments .department-editor-icon-panel__header h3 {
    margin: 0;
    color: #10254d;
    font-family: var(--sa-font);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
}

body.page-departments .department-editor-icon-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd8e8;
    border-radius: 10px;
    background: #f8fbff;
    color: #082658;
    font-family: var(--sa-font);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

body.page-departments .department-editor-icon-close:hover,
body.page-departments .department-editor-icon-close:focus-visible {
    border-color: #9eb7db;
    background: #eef5ff;
    outline: none;
}

body.page-departments .department-editor-icon-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    gap: 10px;
    padding: 18px;
    background: #f8fbff;
}

body.page-departments .department-editor-icon-option {
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e3f2;
    border-radius: 14px;
    background: #ffffff;
    color: #082658;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 35, 65, 0.04);
    transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

body.page-departments .department-editor-icon-option:hover,
body.page-departments .department-editor-icon-option:focus-visible {
    border-color: #9eb7db;
    background: #eef5ff;
    color: #145ff5;
    outline: none;
    box-shadow: 0 8px 18px rgba(20, 95, 245, 0.12);
    transform: translateY(-1px);
}

body.page-departments .department-editor-icon-option.is-selected {
    border-color: #6fa0ff;
    background: #eaf2ff;
    color: #145ff5;
    box-shadow: inset 0 0 0 1px rgba(20, 95, 245, 0.18), 0 8px 18px rgba(20, 95, 245, 0.12);
}

body.page-departments .department-editor-icon-option span {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.page-departments .department-editor-icon-option svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Shared Alerts-style header counters */
.sa-header-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(178px, 1fr));
    gap: 12px;
    width: min(642px, 100%);
    min-width: 0;
}

.sa-header-stat {
    min-width: 0;
    min-height: 72px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #d6dee8;
    border-radius: 6px;
    background: #f6f8fb;
    color: #10254d;
    text-decoration: none;
    box-sizing: border-box;
}

.sa-header-stat__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef4ff;
    color: #5f7ea8;
}

.sa-header-stat__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sa-header-stat__label {
    display: block;
    margin-bottom: 4px;
    color: #7085a6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.12;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sa-header-stat__value {
    display: block;
    color: #10254d;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.sa-header-stat--success .sa-header-stat__icon { background: #ecfdf3; color: #159238; }
.sa-header-stat--warning .sa-header-stat__icon { background: #fff7ed; color: #d97706; }
.sa-header-stat--danger .sa-header-stat__icon { background: #fff1f2; color: #dc2626; }
.sa-header-stat--info .sa-header-stat__icon { background: #eff6ff; color: #2563eb; }
.sa-header-stat--cash .sa-header-stat__icon { background: #ecfdf3; color: #3f9562; }
.sa-header-stat--muted .sa-header-stat__icon { background: #f3f6fa; color: #64748b; }

.sa-header-stat--link {
    cursor: pointer;
    transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.sa-header-stat--link:hover {
    border-color: #9bbcff;
    background: #f8fbff;
    box-shadow: 0 8px 18px rgba(23, 101, 255, 0.1);
    transform: translateY(-1px);
}

.trips-desktop-title-row .sa-header-stats,
.crew-desktop-title-row .sa-header-stats {
    margin-left: auto;
}

body.page-settings .settings-top-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

body.page-settings .settings-top-title { margin-right: auto; }
body.page-settings .settings-header-stats { margin-left: auto; }
body.page-settings .settings-top-controls { flex-basis: 100%; }

body.page-account .account-page-header {
    align-items: flex-start;
    gap: 16px;
}

body.page-account .account-header-stats { margin-left: auto; }

body.page-account .account-page-header .app-save-state {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

@media (max-width: 1520px) {
    .trips-desktop-title-row,
    .crew-desktop-title-row,
    body.page-account .account-page-header {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .trips-desktop-title-row .sa-header-stats,
    .crew-desktop-title-row .sa-header-stats,
    body.page-settings .settings-header-stats,
    body.page-account .account-header-stats {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 980px) {
    .sa-header-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .sa-header-stats { grid-template-columns: 1fr; }
    .sa-header-stat__label { white-space: normal; }
}

/* Alerts header contract: shared desktop geometry */
@media (min-width: 1024px) {
    :is(
        body.page-dialup,
        body.page-trips,
        body.page-drivers,
        body.page-users,
        body.page-departments,
        body.page-log,
        body.page-firms,
        body.page-settings,
        body.page-billing,
        body.page-account,
        body.page-referral,
        body.page-promo,
        body.page-syst
    ) #main-content {
        padding: 18px !important;
    }

    :is(
        body.page-dialup .dialup-top-panel,
        body.page-trips .trips-desktop-panel--top,
        body.page-drivers .crew-desktop-panel--top,
        body.page-users .crew-desktop-panel--top,
        body.page-departments .crew-desktop-panel--top,
        body.page-log .crew-desktop-panel--top,
        body.page-firms .crew-desktop-panel--top,
        body.page-settings .settings-top-panel,
        body.page-billing .billing-top,
        body.page-account .account-page-header,
        body.page-referral .referral-top-panel,
        body.page-promo .promo-header,
        body.page-syst .system-settings-header
    ) {
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 22px 24px 20px !important;
        border: 1px solid #c9d4df !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        box-shadow: 0 1px 3px rgba(18, 38, 68, 0.05) !important;
        box-sizing: border-box;
    }

    :is(
        body.page-dialup .dialup-top-main,
        body.page-trips .trips-desktop-title-row,
        body.page-drivers .crew-desktop-title-row,
        body.page-users .crew-desktop-title-row,
        body.page-departments .crew-desktop-title-row,
        body.page-log .crew-desktop-title-row,
        body.page-firms .crew-desktop-title-row,
        body.page-billing .billing-header-row,
        body.page-referral .referral-top-main,
        body.page-promo .promo-top-main
    ) {
        width: 100%;
        min-height: 72px;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 18px !important;
        padding: 0 !important;
        border: 0 !important;
        box-sizing: border-box;
    }

    body.page-settings .settings-top-main,
    body.page-account .account-page-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center !important;
        gap: 18px !important;
        width: 100%;
    }

    body.page-account .account-page-header__copy {
        display: contents !important;
    }

    :is(
        body.page-dialup .dialup-top-title,
        body.page-trips .trips-desktop-title-row h1,
        body.page-drivers .crew-desktop-title-row h1,
        body.page-users .crew-desktop-title-row h1,
        body.page-departments .crew-desktop-title-row h1,
        body.page-log .crew-desktop-title-row h1,
        body.page-firms .crew-desktop-title-row h1,
        body.page-billing .billing-title-row,
        body.page-referral .referral-top-title,
        body.page-promo .promo-top-title,
        body.page-settings .settings-top-title,
        body.page-account .account-title-row,
        body.page-syst .system-settings-title-row
    ) {
        min-width: 0;
        margin: 0;
    }

    :is(
        body.page-dialup .dialup-title-row,
        body.page-trips .trips-desktop-title-row,
        body.page-drivers .crew-desktop-title-row,
        body.page-users .crew-desktop-title-row,
        body.page-departments .crew-desktop-title-row,
        body.page-log .crew-desktop-title-row,
        body.page-firms .crew-desktop-title-row,
        body.page-billing .billing-title-row,
        body.page-referral .referral-title-row,
        body.page-promo .promo-title-row,
        body.page-settings .settings-title-row,
        body.page-account .account-title-row,
        body.page-syst .system-settings-title-row
    ) {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    :is(
        body.page-dialup .dialup-title-icon,
        body.page-trips .trips-title-icon,
        body.page-drivers .crew-title-icon,
        body.page-users .crew-title-icon,
        body.page-departments .crew-title-icon,
        body.page-log .crew-title-icon,
        body.page-firms .crew-title-icon,
        body.page-billing .billing-title-icon,
        body.page-referral .referral-title-icon,
        body.page-promo .promo-title-icon,
        body.page-settings .settings-title-icon,
        body.page-account .account-title-icon,
        body.page-syst .system-settings-title-icon
    ) {
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        border-radius: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(180deg, #2d63ea 0%, #426fff 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 1px 3px rgba(32, 77, 176, 0.18) !important;
    }

    :is(
        body.page-dialup .dialup-title-icon,
        body.page-trips .trips-title-icon,
        body.page-drivers .crew-title-icon,
        body.page-users .crew-title-icon,
        body.page-departments .crew-title-icon,
        body.page-log .crew-title-icon,
        body.page-firms .crew-title-icon,
        body.page-billing .billing-title-icon,
        body.page-referral .referral-title-icon,
        body.page-promo .promo-title-icon,
        body.page-settings .settings-title-icon,
        body.page-account .account-title-icon,
        body.page-syst .system-settings-title-icon
    ) svg {
        width: 19px !important;
        height: 19px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 2 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    :is(
        body.page-dialup .dialup-title,
        body.page-trips .trips-desktop-title-row h1,
        body.page-drivers .crew-desktop-title-row h1,
        body.page-users .crew-desktop-title-row h1,
        body.page-departments .crew-desktop-title-row h1,
        body.page-log .crew-desktop-title-row h1,
        body.page-firms .crew-desktop-title-row h1,
        body.page-billing .wk-page-header__title,
        body.page-referral .referral-title,
        body.page-promo .promo-title,
        body.page-settings .settings-title,
        body.page-account .wk-page-header__title,
        body.page-syst .wk-page-header__title
    ) {
        margin: 0 !important;
        color: #10254d !important;
        font-family: var(--sa-font, "Aptos", "Segoe UI", sans-serif) !important;
        font-size: 30px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
    }

    :is(
        body.page-dialup .dialup-stats-grid,
        body.page-billing .billing-header-stats,
        body.page-referral .referral-header-stats,
        body.page-promo .promo-stats-grid
    ) {
        width: 720px !important;
        min-width: 720px !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(152px, 1fr)) !important;
        gap: 12px !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    .sa-header-stats {
        width: 540px !important;
        min-width: 540px !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(152px, 1fr)) !important;
        gap: 12px !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    body.page-account .account-header-stats {
        grid-column: 2;
        grid-row: 1;
    }

    body.page-settings .settings-header-stats {
        grid-column: 2;
        grid-row: 1;
    }

    :is(
        body.page-dialup .dialup-stat-card,
        body.page-billing .billing-header-stat,
        body.page-referral .referral-stat-card,
        body.page-promo .promo-stat-card,
        .sa-header-stat
    ) {
        height: 72px !important;
        min-height: 72px !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: 28px minmax(0, 1fr) !important;
        align-items: center !important;
        align-content: center !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        border: 1px solid #d6dee8 !important;
        border-radius: 6px !important;
        background: #f6f8fb !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    :is(
        body.page-dialup .dialup-stat-icon,
        body.page-billing .billing-header-stat__icon,
        body.page-referral .referral-stat-icon,
        body.page-promo .promo-stat-icon,
        .sa-header-stat__icon
    ) {
        width: 28px !important;
        height: 28px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
    }

    :is(
        body.page-dialup .dialup-stat-icon,
        body.page-billing .billing-header-stat__icon,
        body.page-referral .referral-stat-icon,
        body.page-promo .promo-stat-icon,
        .sa-header-stat__icon
    ) svg {
        width: 22px !important;
        height: 22px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 2 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    :is(
        body.page-dialup .dialup-stat-label,
        body.page-billing .billing-header-stat__label,
        body.page-referral .referral-stat-label,
        body.page-promo .promo-stat-label,
        .sa-header-stat__label
    ) {
        display: block !important;
        margin: 0 0 4px !important;
        color: #7085a6 !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        letter-spacing: 0.035em !important;
        line-height: 1.12 !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    :is(
        body.page-dialup .dialup-stat-value,
        body.page-billing .billing-header-stat__value,
        body.page-referral .referral-stat-value,
        body.page-promo .promo-stat-value,
        .sa-header-stat__value
    ) {
        display: block !important;
        color: #10254d !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    :is(
        body.page-dialup .dialup-top-controls,
        body.page-trips .trips-desktop-controls,
        body.page-drivers .crew-desktop-controls,
        body.page-users .crew-desktop-controls,
        body.page-departments .crew-desktop-controls,
        body.page-log .crew-desktop-controls,
        body.page-firms .crew-desktop-controls,
        body.page-settings .settings-top-controls,
        body.page-billing .billing-quick-actions,
        body.page-account .account-top-actions,
        body.page-referral .referral-top-controls,
        body.page-promo .promo-header-actions,
        body.page-syst .wk-page-header__actions
    ) {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
        margin: 12px 0 0 !important;
        padding: 12px 0 0 !important;
        border-top: 1px solid #d9e2ec !important;
        box-sizing: border-box !important;
    }

    body.page-settings .settings-top-controls,
    body.page-account .account-top-actions {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    body.page-account .account-action-note,
    body.page-syst .wk-page-header__subtitle {
        margin: 0 !important;
    }

    :is(
        body.page-dialup .app-save-state,
        body.page-trips .app-save-state,
        body.page-drivers .app-save-state,
        body.page-users .app-save-state,
        body.page-departments .app-save-state,
        body.page-log .app-save-state,
        body.page-firms .app-save-state,
        body.page-settings .app-save-state,
        body.page-billing .app-save-state,
        body.page-account .app-save-state,
        body.page-referral .app-save-state,
        body.page-promo .app-save-state,
        body.page-syst .app-save-state
    ):not(.is-visible) {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    :is(
        body.page-dialup .dialup-top-main,
        body.page-trips .trips-desktop-title-row,
        body.page-drivers .crew-desktop-title-row,
        body.page-users .crew-desktop-title-row,
        body.page-departments .crew-desktop-title-row,
        body.page-log .crew-desktop-title-row,
        body.page-firms .crew-desktop-title-row,
        body.page-billing .billing-header-row,
        body.page-referral .referral-top-main,
        body.page-promo .promo-top-main
    ),
    body.page-settings .settings-top-main,
    body.page-account .account-page-header {
        align-items: stretch !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
    }

    :is(
        body.page-dialup .dialup-stats-grid,
        body.page-billing .billing-header-stats,
        body.page-referral .referral-header-stats,
        body.page-promo .promo-stats-grid,
        .sa-header-stats
    ) {
        width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        margin-left: 0 !important;
    }

    body.page-account .account-header-stats,
    body.page-settings .settings-header-stats {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 640px) {
    :is(
        body.page-dialup .dialup-stats-grid,
        body.page-billing .billing-header-stats,
        body.page-promo .promo-stats-grid,
        .sa-header-stats
    ) {
        grid-template-columns: 1fr !important;
    }
}

/* System header has no visible Alerts-style toolbar */
@media (min-width: 1024px) {
    body.page-syst .system-settings-title-row {
        min-height: 72px !important;
    }

    body.page-syst .system-settings-header .wk-page-header__subtitle,
    body.page-syst .system-settings-header .wk-page-header__actions {
        display: none !important;
    }
}

/* Remove duplicate inner shell padding on Billing and Referral */
@media (min-width: 1024px) {
    body.page-billing .billing-shell,
    body.page-referral .referral-shell {
        padding: 0 !important;
    }
}

/* Header counter labels: allow long labels to fit */
@media (min-width: 1024px) {
    :is(
        body.page-dialup .dialup-stat-label,
        body.page-billing .billing-header-stat__label,
        body.page-referral .referral-stat-label,
        body.page-promo .promo-stat-label,
        .sa-header-stat__label
    ) {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        display: block !important;
        min-height: 22px !important;
        max-height: 24px !important;
    }
}

/* Alerts redesigned counter cards */
@media (min-width: 1024px) {
    body.page-dialup .dialup-top-main {
        min-height: 74px !important;
        align-items: center !important;
    }

    body.page-dialup .dialup-top-panel .dialup-stats-grid {
        width: 720px !important;
        min-width: 720px !important;
        grid-template-columns: repeat(4, minmax(152px, 1fr)) !important;
        gap: 12px !important;
    }

    body.page-dialup .dialup-top-panel .dialup-stat-card {
        --dialup-stat-accent: #2563ff;
        --dialup-stat-soft: #edf4ff;
        position: relative !important;
        height: 64px !important;
        min-height: 64px !important;
        display: block !important;
        padding: 9px 10px 13px !important;
        border: 1px solid #e1e8f2 !important;
        border-radius: 8px !important;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
        box-shadow: 0 2px 8px rgba(16, 37, 77, 0.05) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    body.page-dialup .dialup-top-panel .dialup-stat-card::before {
        content: none !important;
        display: none !important;
    }

    body.page-dialup .dialup-top-panel .dialup-stat-card::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 7px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--dialup-stat-accent) 0 50%, #e8edf5 50% 100%);
    }

    body.page-dialup .dialup-top-panel .dialup-stat-card--total {
        --dialup-stat-accent: #2563ff;
        --dialup-stat-soft: #edf4ff;
    }

    body.page-dialup .dialup-top-panel .dialup-stat-card--attention {
        --dialup-stat-accent: #e39a0b;
        --dialup-stat-soft: #fff5df;
    }

    body.page-dialup .dialup-top-panel .dialup-stat-card--critical {
        --dialup-stat-accent: #e35764;
        --dialup-stat-soft: #fff0f2;
    }

    body.page-dialup .dialup-top-panel .dialup-stat-card--resolved {
        --dialup-stat-accent: var(--waker-counter-muted-accent);
        --dialup-stat-soft: var(--waker-counter-muted-soft);
    }

    body.page-dialup .dialup-top-panel .dialup-stat-icon {
        display: none !important;
    }

    body.page-dialup .dialup-top-panel .dialup-stat-card > div {
        height: 100%;
        min-width: 0;
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
    }

    body.page-dialup .dialup-top-panel .dialup-stat-value {
        grid-column: 1;
        grid-row: 1;
        width: 34px !important;
        height: 34px !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        color: var(--dialup-stat-accent) !important;
        background: var(--dialup-stat-soft) !important;
        font-size: 18px !important;
        font-weight: 850 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    body.page-dialup .dialup-top-panel .dialup-stat-label {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        max-width: 100%;
        margin: 0 !important;
        color: #394b69 !important;
        font-size: 10px !important;
        font-weight: 500 !important;
        line-height: 1.12 !important;
        letter-spacing: 0.035em !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        text-align: left !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    body.page-dialup .dialup-top-panel .dialup-stats-grid {
        width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 640px) {
    body.page-dialup .dialup-top-panel .dialup-stat-card > div {
        grid-template-columns: 34px minmax(0, 1fr) !important;
    }
}
/* End Alerts redesigned counter cards */

/* Recurring number badge counter cards */
@media (min-width: 1024px) {
    body.page-trips .recurring-header-stats .sa-header-stat {
        --recurring-stat-accent: #2563ff;
        --recurring-stat-soft: #edf4ff;
        position: relative !important;
        height: 64px !important;
        min-height: 64px !important;
        display: block !important;
        padding: 9px 10px 13px !important;
        border: 1px solid #e1e8f2 !important;
        border-radius: 8px !important;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
        box-shadow: 0 2px 8px rgba(16, 37, 77, 0.05) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    body.page-trips .recurring-header-stats .sa-header-stat::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 7px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--recurring-stat-accent) 0 50%, #e8edf5 50% 100%);
    }

    body.page-trips .recurring-header-stats .sa-header-stat--success {
        --recurring-stat-accent: #1d9b5a;
        --recurring-stat-soft: #eaf8f0;
    }

    body.page-trips .recurring-header-stats .sa-header-stat--info {
        --recurring-stat-accent: #2563ff;
        --recurring-stat-soft: #edf4ff;
    }

    body.page-trips .recurring-header-stats .sa-header-stat--warning {
        --recurring-stat-accent: #e39a0b;
        --recurring-stat-soft: #fff5df;
    }

    body.page-trips .recurring-header-stats .sa-header-stat__icon {
        display: none !important;
    }

    body.page-trips .recurring-header-stats .sa-header-stat__copy {
        height: 100%;
        min-width: 0;
        display: grid !important;
        grid-template-columns: minmax(34px, auto) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
    }

    body.page-trips .recurring-header-stats .sa-header-stat__value {
        grid-column: 1;
        grid-row: 1;
        min-width: 34px !important;
        height: 34px !important;
        padding: 0 8px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        color: var(--recurring-stat-accent) !important;
        background: var(--recurring-stat-soft) !important;
        font-size: 18px !important;
        font-weight: 850 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    body.page-trips .recurring-header-stats .sa-header-stat__label {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        max-width: 100%;
        margin: 0 !important;
        color: #394b69 !important;
        font-size: 10px !important;
        font-weight: 500 !important;
        line-height: 1.12 !important;
        letter-spacing: 0.035em !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        text-align: left !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}
/* End Recurring number badge counter cards */

/* Crew number badge counter cards */
@media (min-width: 1024px) {
    body.page-drivers .crew-header-stats .sa-header-stat {
        --crew-stat-accent: #2563ff;
        --crew-stat-soft: #edf4ff;
        position: relative !important;
        height: 64px !important;
        min-height: 64px !important;
        display: block !important;
        padding: 9px 10px 13px !important;
        border: 1px solid #e1e8f2 !important;
        border-radius: 8px !important;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
        box-shadow: 0 2px 8px rgba(16, 37, 77, 0.05) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    body.page-drivers .crew-header-stats .sa-header-stat::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 7px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--crew-stat-accent) 0 50%, #e8edf5 50% 100%);
    }

    body.page-drivers .crew-header-stats .sa-header-stat--success {
        --crew-stat-accent: #1d9b5a;
        --crew-stat-soft: #eaf8f0;
    }

    body.page-drivers .crew-header-stats .sa-header-stat--warning {
        --crew-stat-accent: #e39a0b;
        --crew-stat-soft: #fff5df;
    }

    body.page-drivers .crew-header-stats .sa-header-stat--danger {
        --crew-stat-accent: #e35764;
        --crew-stat-soft: #fff0f2;
    }

    body.page-drivers .crew-header-stats .sa-header-stat__icon {
        display: none !important;
    }

    body.page-drivers .crew-header-stats .sa-header-stat__copy {
        height: 100%;
        min-width: 0;
        display: grid !important;
        grid-template-columns: minmax(34px, auto) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
    }

    body.page-drivers .crew-header-stats .sa-header-stat__value {
        grid-column: 1;
        grid-row: 1;
        min-width: 34px !important;
        height: 34px !important;
        padding: 0 8px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        color: var(--crew-stat-accent) !important;
        background: var(--crew-stat-soft) !important;
        font-size: 18px !important;
        font-weight: 850 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    body.page-drivers .crew-header-stats .sa-header-stat__label {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        max-width: 100%;
        margin: 0 !important;
        color: #394b69 !important;
        font-size: 10px !important;
        font-weight: 500 !important;
        line-height: 1.12 !important;
        letter-spacing: 0.035em !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        text-align: left !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}
/* End Crew number badge counter cards */

/* Account number badge counter cards */
@media (min-width: 1024px) {
    body.page-account .account-header-stats .sa-header-stat {
        --account-stat-accent: #2563ff;
        --account-stat-soft: #edf4ff;
        position: relative !important;
        height: 64px !important;
        min-height: 64px !important;
        display: block !important;
        padding: 9px 10px 13px !important;
        border: 1px solid #e1e8f2 !important;
        border-radius: 8px !important;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
        box-shadow: 0 2px 8px rgba(16, 37, 77, 0.05) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }

    body.page-account .account-header-stats .sa-header-stat::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 7px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--account-stat-accent) 0 50%, #e8edf5 50% 100%);
    }

    body.page-account .account-header-stats .sa-header-stat--info {
        --account-stat-accent: #2563ff;
        --account-stat-soft: #edf4ff;
    }

    body.page-account .account-header-stats .sa-header-stat--success {
        --account-stat-accent: #1d9b5a;
        --account-stat-soft: #eaf8f0;
    }

    body.page-account .account-header-stats .sa-header-stat--cash {
        --account-stat-accent: #8b5cf6;
        --account-stat-soft: #f1ecff;
    }

    body.page-account .account-header-stats .sa-header-stat--link:hover {
        border-color: color-mix(in srgb, var(--account-stat-accent) 34%, #d6dee8) !important;
        box-shadow: 0 4px 12px rgba(16, 37, 77, 0.09) !important;
        transform: translateY(-1px);
    }

    body.page-account .account-header-stats .sa-header-stat__icon {
        display: none !important;
    }

    body.page-account .account-header-stats .sa-header-stat__copy {
        height: 100%;
        min-width: 0;
        display: grid !important;
        grid-template-columns: minmax(34px, auto) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
    }

    body.page-account .account-header-stats .sa-header-stat__value {
        grid-column: 1;
        grid-row: 1;
        min-width: 34px !important;
        height: 34px !important;
        padding: 0 8px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        color: var(--account-stat-accent) !important;
        background: var(--account-stat-soft) !important;
        font-size: 18px !important;
        font-weight: 850 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    body.page-account .account-header-stats .sa-header-stat__label {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        max-width: 100%;
        margin: 0 !important;
        color: #394b69 !important;
        font-size: 10px !important;
        font-weight: 500 !important;
        line-height: 1.12 !important;
        letter-spacing: 0.035em !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        text-align: left !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}
/* End Account number badge counter cards */

/* Remaining pages number badge counter cards */
@media (min-width: 1024px) {
    body.page-referral .referral-top-panel .referral-stat-card,
    body.page-billing .billing-header-stats .billing-header-stat,
    body.page-settings .settings-header-stats .sa-header-stat,
    body.page-departments .departments-header-stats .sa-header-stat,
    body.page-users .managers-header-stats .sa-header-stat {
        --sa-badge-stat-accent: #2563ff;
        --sa-badge-stat-soft: #edf4ff;
        position: relative !important;
        height: 64px !important;
        min-height: 64px !important;
        display: block !important;
        padding: 9px 10px 13px !important;
        border: 1px solid #e1e8f2 !important;
        border-radius: 8px !important;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
        box-shadow: 0 2px 8px rgba(16, 37, 77, 0.05) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    body.page-referral .referral-top-panel .referral-stat-card::before,
    body.page-billing .billing-header-stats .billing-header-stat::before,
    body.page-settings .settings-header-stats .sa-header-stat::before,
    body.page-departments .departments-header-stats .sa-header-stat::before,
    body.page-users .managers-header-stats .sa-header-stat::before {
        content: none !important;
        display: none !important;
    }

    body.page-referral .referral-top-panel .referral-stat-card::after,
    body.page-billing .billing-header-stats .billing-header-stat::after,
    body.page-settings .settings-header-stats .sa-header-stat::after,
    body.page-departments .departments-header-stats .sa-header-stat::after,
    body.page-users .managers-header-stats .sa-header-stat::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 7px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--sa-badge-stat-accent) 0 50%, #e8edf5 50% 100%);
    }

    body.page-referral .referral-top-panel .referral-stat-card--companies,
    body.page-billing .billing-header-stats .billing-header-stat--month,
    body.page-settings .settings-header-stats .sa-header-stat--info,
    body.page-departments .departments-header-stats .sa-header-stat--muted,
    body.page-users .managers-header-stats .sa-header-stat--info {
        --sa-badge-stat-accent: #2563ff;
        --sa-badge-stat-soft: #edf4ff;
    }

    body.page-referral .referral-top-panel .referral-stat-card--credits,
    body.page-billing .billing-header-stats .billing-header-stat--total,
    body.page-billing .billing-header-stats .billing-header-stat--success,
    body.page-settings .settings-header-stats .sa-header-stat--success,
    body.page-departments .departments-header-stats .sa-header-stat--success,
    body.page-users .managers-header-stats .sa-header-stat--success {
        --sa-badge-stat-accent: #1d9b5a;
        --sa-badge-stat-soft: #eaf8f0;
    }

    body.page-referral .referral-top-panel .referral-stat-card--cash,
    body.page-billing .billing-header-stats .billing-header-stat--spent {
        --sa-badge-stat-accent: #8b5cf6;
        --sa-badge-stat-soft: #f1ecff;
    }

    body.page-referral .referral-top-panel .referral-stat-card--pending,
    body.page-billing .billing-header-stats .billing-header-stat--unprotected,
    body.page-billing .billing-header-stats .billing-header-stat--warning,
    body.page-settings .settings-header-stats .sa-header-stat--warning,
    body.page-departments .departments-header-stats .sa-header-stat--warning,
    body.page-users .managers-header-stats .sa-header-stat--warning {
        --sa-badge-stat-accent: #e39a0b;
        --sa-badge-stat-soft: #fff5df;
    }

    body.page-departments .departments-header-stats .sa-header-stat--muted {
        --sa-badge-stat-accent: #64748b;
        --sa-badge-stat-soft: #f3f6fa;
    }

    body.page-referral .referral-top-panel .referral-stat-icon,
    body.page-billing .billing-header-stats .billing-header-stat__icon,
    body.page-settings .settings-header-stats .sa-header-stat__icon,
    body.page-departments .departments-header-stats .sa-header-stat__icon,
    body.page-users .managers-header-stats .sa-header-stat__icon {
        display: none !important;
    }

    body.page-referral .referral-top-panel .referral-stat-card > div,
    body.page-billing .billing-header-stats .billing-header-stat__copy,
    body.page-settings .settings-header-stats .sa-header-stat__copy,
    body.page-departments .departments-header-stats .sa-header-stat__copy,
    body.page-users .managers-header-stats .sa-header-stat__copy {
        height: 100%;
        min-width: 0;
        display: grid !important;
        grid-template-columns: minmax(34px, auto) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
    }

    body.page-referral .referral-top-panel .referral-stat-value,
    body.page-billing .billing-header-stats .billing-header-stat__value,
    body.page-settings .settings-header-stats .sa-header-stat__value,
    body.page-departments .departments-header-stats .sa-header-stat__value,
    body.page-users .managers-header-stats .sa-header-stat__value {
        grid-column: 1;
        grid-row: 1;
        min-width: 34px !important;
        height: 34px !important;
        padding: 0 8px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        color: var(--sa-badge-stat-accent) !important;
        background: var(--sa-badge-stat-soft) !important;
        font-size: 18px !important;
        font-weight: 850 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    body.page-referral .referral-top-panel .referral-stat-label,
    body.page-billing .billing-header-stats .billing-header-stat__label,
    body.page-settings .settings-header-stats .sa-header-stat__label,
    body.page-departments .departments-header-stats .sa-header-stat__label,
    body.page-users .managers-header-stats .sa-header-stat__label {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        max-width: 100%;
        margin: 0 !important;
        color: #394b69 !important;
        font-size: 10px !important;
        font-weight: 500 !important;
        line-height: 1.12 !important;
        letter-spacing: 0.035em !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        text-align: left !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}
/* End Remaining pages number badge counter cards */


/* Promo number badge counter cards */
@media (min-width: 1024px) {
    body.page-promo .promo-stats-grid .promo-stat-card {
        --sa-badge-stat-accent: #2563ff;
        --sa-badge-stat-soft: #edf4ff;
        position: relative !important;
        height: 64px !important;
        min-height: 64px !important;
        display: block !important;
        padding: 9px 10px 13px !important;
        border: 1px solid #e1e8f2 !important;
        border-radius: 8px !important;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
        box-shadow: 0 2px 8px rgba(16, 37, 77, 0.05) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    body.page-promo .promo-stats-grid .promo-stat-card::before {
        content: none !important;
        display: none !important;
    }

    body.page-promo .promo-stats-grid .promo-stat-card::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 7px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--sa-badge-stat-accent) 0 50%, #e8edf5 50% 100%);
    }

    body.page-promo .promo-stats-grid .promo-stat-card--codes {
        --sa-badge-stat-accent: #2563ff;
        --sa-badge-stat-soft: #edf4ff;
    }

    body.page-promo .promo-stats-grid .promo-stat-card--active {
        --sa-badge-stat-accent: #1d9b5a;
        --sa-badge-stat-soft: #eaf8f0;
    }

    body.page-promo .promo-stats-grid .promo-stat-card--redemptions {
        --sa-badge-stat-accent: #8b5cf6;
        --sa-badge-stat-soft: #f1ecff;
    }

    body.page-promo .promo-stats-grid .promo-stat-card--credits {
        --sa-badge-stat-accent: #e39a0b;
        --sa-badge-stat-soft: #fff5df;
    }

    body.page-promo .promo-stats-grid .promo-stat-icon {
        display: none !important;
    }

    body.page-promo .promo-stats-grid .promo-stat-card > div {
        height: 100%;
        min-width: 0;
        display: grid !important;
        grid-template-columns: minmax(34px, auto) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
    }

    body.page-promo .promo-stats-grid .promo-stat-value {
        grid-column: 1;
        grid-row: 1;
        min-width: 34px !important;
        height: 34px !important;
        padding: 0 8px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        color: var(--sa-badge-stat-accent) !important;
        background: var(--sa-badge-stat-soft) !important;
        font-size: 18px !important;
        font-weight: 850 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    body.page-promo .promo-stats-grid .promo-stat-label {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        max-width: 100%;
        margin: 0 !important;
        color: #394b69 !important;
        font-size: 10px !important;
        font-weight: 500 !important;
        line-height: 1.12 !important;
        letter-spacing: 0.035em !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        text-align: left !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}
/* End Promo number badge counter cards */
/* Header separator alignment for grid headers */
@media (min-width: 1024px) {
    body.page-account .account-page-header,
    body.page-settings .settings-top-main {
        row-gap: 0 !important;
    }
}
/* End header separator alignment for grid headers */


/* Logs and Companies header title alignment */
@media (min-width: 1024px) {
    body.page-log .crew-desktop-title-row,
    body.page-firms .crew-desktop-title-row {
        justify-content: flex-start !important;
    }
}
/* End Logs and Companies header title alignment */
/* Crew manager column */
@media (min-width: 1024px) {
    body.page-drivers .crew-col-member { width: 15%; }
    body.page-drivers .crew-col-rating { width: 17%; }
    body.page-drivers .crew-col-phone { width: 11%; }
    body.page-drivers .crew-col-department { width: 10%; }
    body.page-drivers .crew-col-manager { width: 12%; }
    body.page-drivers .crew-col-status { width: 10%; }
    body.page-drivers .crew-col-activity { width: 15%; }
    body.page-drivers .crew-col-actions { width: 10%; }

    body.page-drivers .crew-list-table thead th.crew-member-heading,
    body.page-drivers .crew-list-table thead th.crew-activity-heading,
    body.page-drivers .crew-list-table thead th.crew-rating-heading,
    body.page-drivers .crew-list-table thead th.crew-phone-heading,
    body.page-drivers .crew-list-table thead th.crew-manager-heading {
        text-align: left !important;
    }

    body.page-drivers .crew-list-table thead th.crew-department-heading,
    body.page-drivers .crew-list-table thead th.crew-status-heading,
    body.page-drivers .crew-list-table thead th.crew-actions-heading {
        text-align: center !important;
    }

    body.page-drivers .crew-list-table tbody td.crew-manager-cell {
        text-align: left !important;
    }

    body.page-drivers .crew-list-table tbody td.crew-manager-cell .crew-manager-row {
        justify-content: flex-start;
        max-width: 100%;
        min-width: 0;
    }

    body.page-drivers .crew-list-table .crew-manager-link {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.page-drivers .crew-manager-missing {
        display: inline-block;
        max-width: 100%;
        color: #91a0b5;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
/* End Crew manager column */
/* Managers department plain text */
@media (min-width: 1024px) {
    body.page-users .managers-department-cell .managers-department-text {
        display: block;
        max-width: 100%;
        color: #315f9f;
        font-family: var(--sa-font) !important;
        font-size: 12px !important;
        font-weight: 400 !important;
        line-height: 1.25;
        letter-spacing: 0;
        text-transform: none;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }
}
/* End Managers department plain text */

/* dialupnexusdesktop_app_override1: final Alerts desktop overrides after shared desktop layer. */
@media (min-width: 1024px) {
    body.page-dialup .dialup-table {
        table-layout: fixed;
    }

    body.page-dialup .dialup-col-status,
    body.page-dialup .dialup-status-cell {
        width: 6.5%;
        min-width: 0;
        max-width: none;
        text-align: left;
    }

    body.page-dialup .dialup-col-shift { width: 9%; }
    body.page-dialup .dialup-col-time,
    body.page-dialup .dialup-time-cell { width: 5%; }
    body.page-dialup .dialup-col-source,
    body.page-dialup .dialup-source-cell { width: 5.5%; }
    body.page-dialup .dialup-col-crew-member,
    body.page-dialup .dialup-driver-cell { width: 12%; }
    body.page-dialup .dialup-col-manager,
    body.page-dialup .dialup-manager-cell { width: 10%; }

    body.page-dialup .dialup-table #dialup_stage_one_header,
    body.page-dialup .dialup-table > tbody > tr > td:nth-child(7),
    body.page-dialup .dialup-table #dialup_stage_two_header,
    body.page-dialup .dialup-table > tbody > tr > td:nth-child(8) {
        width: 8%;
        padding-right: 6px;
        padding-left: 6px;
        text-align: center;
    }

    body.page-dialup .dialup-table > thead > tr > th.dialup-col-cancel,
    body.page-dialup .dialup-table > tbody > tr > td:nth-child(9).dialup-cancel-cell,
    body.page-dialup .dialup-table > thead > tr > th.dialup-col-call-manager,
    body.page-dialup .dialup-table > tbody > tr > td:nth-child(10).dialup-call-manager-cell,
    body.page-dialup .dialup-table > thead > tr > th.dialup-col-resolved,
    body.page-dialup .dialup-table > tbody > tr > td:nth-child(11).dialup-resolved-cell {
        width: 5.2%;
        min-width: 0;
        max-width: none;
        text-align: center;
    }

    body.page-dialup .dialup-col-shift-result,
    body.page-dialup .dialup-shift-result-cell { width: 10.2%; }
    body.page-dialup .dialup-col-actions,
    body.page-dialup .dialup-cell-actions { width: 56px; min-width: 56px; }
    body.page-dialup .dialup-col-outcome,
    body.page-dialup .dialup-outcome-cell { width: 12%; min-width: 0; }

    body.page-dialup .dialup-row-status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        min-height: 24px;
        padding: 0 12px;
        border: 1px solid transparent;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 500;
        line-height: 1;
        white-space: nowrap;
    }

    body.page-dialup .dialup-row-status--resolved {
        border-color: #cbeed9;
        background: #eaf8f0;
        color: #00a75a;
    }

    body.page-dialup .dialup-row-status--critical {
        border-color: #ffd1dc;
        background: #ffe9ef;
        color: #ff0053;
    }

    body.page-dialup .dialup-row-status--wrap {
        box-sizing: border-box;
        padding: 4px 6px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    body.page-dialup .dialup-row-status--attention {
        border-color: #fde68a;
        background: #fff7d6;
        color: #d98300;
    }

    body.page-dialup .dialup-row-status--pending {
        border-color: #dbe5f0;
        background: #f4f7fb;
        color: #64748b;
    }

    body.page-dialup .dialup-row-status--paused {
        border-color: var(--waker-status-paused-border);
        background: var(--waker-status-paused-bg);
        color: var(--waker-status-paused-text);
    }

    body.page-dialup .dialup-driver-main,
    body.page-dialup .dialup-manager-main {
        gap: 8px;
    }

    body.page-dialup .dialup-driver-icon,
    body.page-dialup .dialup-manager-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    body.page-dialup .dialup-driver-icon svg,
    body.page-dialup .dialup-manager-icon svg {
        width: 18px;
        height: 18px;
    }

    body.page-dialup .dialup-driver-name {
        font-size: 13px;
        font-weight: 700;
    }

    body.page-dialup .dialup-driver-comment {
        font-size: 11.5px;
        font-weight: 600;
    }

    body.page-dialup .dialup-attempt-status {
        width: 82px;
        max-width: 82px;
        min-height: 50px;
        grid-template-columns: 13px minmax(0, 1fr);
        column-gap: 4px;
        row-gap: 2px;
        padding: 4px 5px;
        border-radius: 12px;
        box-shadow: none;
    }

    body.page-dialup .dialup-attempt-status__icon {
        width: 13px;
        height: 13px;
    }

    body.page-dialup .dialup-attempt-status__icon svg {
        width: 11px;
        height: 11px;
        stroke-width: 3;
    }

    body.page-dialup .dialup-attempt-status__attempt {
        font-size: 10px;
        font-weight: 600;
    }

    body.page-dialup .dialup-attempt-status__result {
        font-size: 10.5px;
        font-weight: 700;
    }

    body.page-dialup .dialup-shift-result-select,
    body.page-dialup .dialup-shift-result-pill {
        min-height: 28px;
        height: 28px;
        width: auto;
        max-width: 100%;
        padding: 0 30px 0 12px !important;
        border-radius: 999px;
        font-size: 13px !important;
        font-weight: 500 !important;
        line-height: 28px !important;
    }

    body.page-dialup .dialup-shift-result-pill {
        padding-right: 12px !important;
    }

    body.page-dialup .dialup-shift-result-select:focus,
    body.page-dialup .dialup-shift-result-select:focus-visible {
        border-color: #b8c7db !important;
        outline: none !important;
        box-shadow: none !important;
    }

    body.page-dialup .dialup-details-row > td {
        padding: 0 !important;
        border-top: 1px solid #d5e0ee;
        border-bottom: 1px solid #d5e0ee;
        background: #f4f7ff !important;
    }

    body.page-dialup .dialup-details-card {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #f4f7ff !important;
        box-shadow: none !important;
    }

    body.page-dialup .dialup-log-table {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        table-layout: fixed;
        background: #f4f7ff !important;
    }

    body.page-dialup .dialup-log-table thead th {
        background: #edf3ff !important;
        color: #536783 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
    }

    body.page-dialup .dialup-log-table th,
    body.page-dialup .dialup-log-table td {
        border-bottom: 1px solid #dce7f6 !important;
        background: transparent !important;
    }

    body.page-dialup .dialup-log-entry:hover td {
        background: #eef5ff !important;
    }

    body.page-dialup .dialup-log-step {
        border-color: #d7e9ff !important;
        background: #e8f3ff !important;
        color: #1570ef !important;
    }

    body.page-dialup .dialup-shift-editor-overlay {
        align-items: stretch !important;
        justify-content: flex-end !important;
        padding: 0 !important;
        background: rgba(4, 16, 44, 0.42) !important;
        backdrop-filter: blur(2px);
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-panel {
        width: min(520px, 100vw) !important;
        max-width: min(520px, 100vw) !important;
        height: 100vh !important;
        max-height: 100vh !important;
        display: flex;
        flex-direction: column;
        border-width: 0 0 0 1px !important;
        border-color: #d7e2f0 !important;
        border-radius: 24px 0 0 24px !important;
        background: #ffffff;
        box-shadow: -28px 0 70px rgba(8, 28, 70, 0.24) !important;
        animation: dialupDrawerInApp 180ms ease-out;
        overflow: hidden;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-head {
        flex: 0 0 auto;
        padding: 28px 28px 22px;
        background: #ffffff;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-head h2 {
        font-size: 30px;
        line-height: 1.05;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-form {
        grid-template-columns: 1fr !important;
        flex: 1 1 auto;
        gap: 18px;
        padding: 24px 28px 0;
        overflow-y: auto;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field input,
    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field select,
    body.page-dialup .dialup-shift-editor-overlay .sa-mobile-selector__button {
        min-height: 52px;
        border-radius: 14px;
        font-size: 18px;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-actions {
        position: sticky;
        bottom: 0;
        margin: 8px -28px 0 !important;
        padding: 18px 28px 24px !important;
        background: linear-gradient(180deg, rgba(255,255,255,0.86), #ffffff 28%);
    }
}

@keyframes dialupDrawerInApp {
    from { transform: translateX(28px); opacity: 0.82; }
    to { transform: translateX(0); opacity: 1; }
}
/* dialupattemptreadable1: keep compact attempt badges readable without clipping status text. */
@media (min-width: 1024px) {
    body.page-dialup .dialup-attempt-status {
        width: 96px;
        max-width: 96px;
        min-height: 50px;
        grid-template-columns: 13px minmax(0, 1fr);
        padding: 4px 6px;
    }

    body.page-dialup .dialup-attempt-status__attempt {
        font-size: 10px;
        letter-spacing: 0;
    }

    body.page-dialup .dialup-attempt-status__result {
        font-size: 10px;
        letter-spacing: 0;
    }
}
/* dialupcenteredmodal1: restore Old Alerts edit modal to centered dialog instead of side drawer. */
@media (min-width: 1024px) {
    body.page-dialup .dialup-shift-editor-overlay {
        align-items: center !important;
        justify-content: center !important;
        padding: 28px !important;
        background: rgba(4, 16, 44, 0.42) !important;
        backdrop-filter: blur(2px);
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-panel {
        width: min(720px, calc(100vw - 56px)) !important;
        max-width: min(720px, calc(100vw - 56px)) !important;
        height: auto !important;
        max-height: calc(100vh - 56px) !important;
        display: flex !important;
        flex-direction: column !important;
        border: 1px solid #c8d6e7 !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        box-shadow: 0 24px 72px rgba(17, 38, 74, 0.24) !important;
        animation: none !important;
        overflow: hidden !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-head {
        flex: 0 0 auto !important;
        padding: 24px 28px 20px !important;
        background: #ffffff !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-head h2 {
        font-size: 30px !important;
        line-height: 1.05 !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        flex: 0 1 auto !important;
        gap: 18px !important;
        padding: 22px 28px 0 !important;
        overflow-y: auto !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-actions {
        position: static !important;
        bottom: auto !important;
        margin: 4px -28px 0 !important;
        padding: 18px 28px 24px !important;
        background: #ffffff !important;
    }
}

/* dialupmodalfields1: keep Old Alerts edit modal fields aligned with shared desktop modal typography. */
@media (min-width: 1024px) {
    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field input,
    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field select,
    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field > .sa-mobile-selector .sa-mobile-selector__button,
    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field > .sa-mobile-selector .sa-mobile-selector__value {
        height: 44px !important;
        min-height: 44px !important;
        border-radius: 8px !important;
        font-family: var(--waker-current-font, var(--sa-font, "Aptos", "Segoe UI", sans-serif)) !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }
}

/* dialupmodalcrewparity1: align Old Alerts edit modal with the shared Crew/Managers desktop modal pattern. */
@media (min-width: 1024px) {
    body.page-dialup .dialup-shift-editor-overlay .trips-editor-panel {
        width: min(680px, calc(100% - 48px)) !important;
        max-width: min(680px, calc(100% - 48px)) !important;
        border: 1px solid #c9d6e6 !important;
        border-radius: 10px !important;
        box-shadow: 0 22px 58px rgba(11, 31, 64, 0.28) !important;
        font-family: var(--waker-current-font, var(--sa-font, "Aptos", "Segoe UI", sans-serif)) !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-head {
        align-items: flex-start !important;
        padding: 22px 24px 12px !important;
        border-bottom: 1px solid #e1e9f3 !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-head h2 {
        color: #10254d !important;
        font-size: 24px !important;
        font-weight: 800 !important;
        line-height: 1.12 !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-close {
        width: 34px !important;
        height: 34px !important;
        border: 1px solid #d7e1ee !important;
        border-radius: 8px !important;
        background: #f7faff !important;
        color: #173763 !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-close:hover,
    body.page-dialup .dialup-shift-editor-overlay .trips-editor-close:focus-visible {
        border-color: #b9cce4 !important;
        background: #edf4ff !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        padding: 18px 24px 0 !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field {
        gap: 8px !important;
        color: var(--waker-color-ink-muted) !important;
        font-size: var(--waker-modal-label-font-size) !important;
        font-weight: var(--waker-modal-label-font-weight) !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field input,
    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field select,
    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field > .sa-mobile-selector .sa-mobile-selector__button,
    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field > .sa-mobile-selector .sa-mobile-selector__value {
        width: 100% !important;
        height: 46px !important;
        min-height: 46px !important;
        box-sizing: border-box !important;
        border-radius: 7px !important;
        color: var(--waker-color-ink-soft) !important;
        font-family: var(--waker-current-font, var(--sa-font, "Aptos", "Segoe UI", sans-serif)) !important;
        font-size: var(--waker-modal-control-font-size) !important;
        font-weight: var(--waker-modal-control-font-weight) !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field input,
    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field select,
    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field textarea {
        padding: 0 13px !important;
        border-color: #b9cce4 !important;
        background: #ffffff !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field > .sa-mobile-selector .sa-mobile-selector__button {
        display: flex !important;
        align-items: center !important;
        padding: 0 14px 0 13px !important;
        border-color: #b9cce4 !important;
        background: #ffffff !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field > .sa-mobile-selector .sa-mobile-selector__chevron {
        right: 14px !important;
        color: #5f7aa3 !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-actions {
        grid-column: 1 / -1 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 2px -24px 0 !important;
        padding: 16px 24px 22px !important;
        border-top: 1px solid #dbe4ee !important;
        background: #ffffff !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-actions button {
        height: var(--waker-modal-button-height) !important;
        min-height: var(--waker-modal-button-height) !important;
        min-width: 86px !important;
        padding: 0 var(--waker-modal-button-padding-x) !important;
        border-radius: var(--waker-modal-button-radius) !important;
        font-family: var(--waker-current-font, var(--sa-font, "Aptos", "Segoe UI", sans-serif)) !important;
        font-size: var(--waker-modal-button-font-size) !important;
        font-weight: var(--waker-modal-button-font-weight) !important;
        line-height: var(--waker-modal-button-line-height) !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-delete {
        order: 1 !important;
        min-width: 86px !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-cancel {
        order: 2 !important;
        margin-left: auto !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-save {
        order: 3 !important;
        min-width: 86px !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .dialup-editor-field--comment {
        margin-top: 4px !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .dialup-editor-field--comment textarea.sa-mobile-editor-control {
        width: 100% !important;
        height: 72px;
        min-height: 72px;
        box-sizing: border-box !important;
        padding: 12px 13px !important;
        border: 1px solid #b9cce4 !important;
        border-radius: 7px !important;
        color: var(--waker-color-ink-soft) !important;
        font-family: var(--waker-current-font, var(--sa-font, "Aptos", "Segoe UI", sans-serif)) !important;
        font-size: var(--waker-modal-control-font-size) !important;
        font-weight: var(--waker-modal-control-font-weight) !important;
        line-height: 1.4 !important;
        resize: vertical;
    }

    body.page-dialup .dialup-shift-editor-overlay :is(
        .trips-editor-department-selector,
        .trips-editor-crew-selector,
        .trips-editor-manager-selector
    ) .sa-mobile-selector__button {
        padding-right: 14px !important;
    }

    body.page-dialup .dialup-shift-editor-overlay :is(
        .trips-editor-department-selector,
        .trips-editor-crew-selector,
        .trips-editor-manager-selector
    ) .sa-mobile-selector__button-chevron {
        margin-left: auto !important;
    }
}

/* dialupmodalvaluecenter1: center custom selector text inside Old Alerts modal fields. */
@media (min-width: 1024px) {
    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field > .sa-mobile-selector .sa-mobile-selector__button {
        align-items: center !important;
    }

    body.page-dialup .dialup-shift-editor-overlay .trips-editor-field > .sa-mobile-selector .sa-mobile-selector__value {
        display: inline-flex !important;
        align-items: center !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }
}

/* tablepaginationarrows1: make shared desktop pagination controls match Old Alerts alignment. */
/* Narrow desktop layout: the canonical 13px contacts and role labels need a
   little more room; no font shrinking and no changes to mobile cards. */
@media (min-width: 1024px) and (max-width: 1279px) {
    body.page-users .managers-col-role { width: 11%; }
    body.page-users .managers-col-phone { width: 14%; }
    body.page-users .managers-table > :is(thead, tbody) > tr > :is(th, td) {
        padding-inline: var(--waker-space-2) !important;
    }
    body.page-drivers .crew-col-member { width: 14%; }
    body.page-drivers .crew-col-rating { width: 16%; }
    body.page-drivers .crew-col-phone { width: 13%; }
    body.page-drivers .crew-list-table > :is(thead, tbody) > tr > :is(th, td):not(.wk-table__action-cell) {
        padding-inline: var(--waker-space-2) !important;
    }
    body.page-drivers .wk-table__action-cell > .wk-table-cell-action {
        padding-inline: var(--waker-space-3);
    }
}

@media (min-width: 1024px) {
    .sa-table-pagination__controls {
        gap: 10px !important;
    }

    .sa-table-pagination__page-size {
        gap: 10px !important;
    }

    .sa-table-pagination__page-size select {
        min-width: 72px !important;
        height: 40px !important;
        padding: 0 38px 0 16px !important;
        border-radius: 6px !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        background-color: #ffffff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236780a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
        background-position: right 12px center !important;
        background-repeat: no-repeat !important;
        background-size: 14px 14px !important;
        text-align: left !important;
    }

    .sa-table-pagination__pager {
        gap: 10px !important;
    }

    .sa-table-pagination__pager button {
        position: relative !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border-radius: 6px !important;
        font-size: 0 !important;
        line-height: 1 !important;
        overflow: hidden !important;
    }

    .sa-table-pagination__pager button::before {
        content: "";
        display: block;
        width: 14px;
        height: 14px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 14px 14px;
    }

    .sa-table-pagination__pager button[data-table-page-prev]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236780a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
    }

    .sa-table-pagination__pager button[data-table-page-next]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236780a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    }

    .sa-table-pagination__pager span {
        min-width: 42px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    }
}

/* desktopheaderdropdownfix2: final-loaded override for compact dark header and user menu. */
@media (min-width: 1024px) {
    html,
    body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body #header1.app-desktop-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border-top: 0 !important;
        top: 0 !important;
    }

    body.page-dialup #header1.app-desktop-header,
    body.page-alerts_new #header1.app-desktop-header,
    body.page-alerts-new #header1.app-desktop-header {
        padding: 0 12px 0 0 !important;
    }

    body #header1.app-desktop-header .hdr-user-menu__panel {
        top: calc(100% + 6px) !important;
        right: 0 !important;
        min-width: 220px !important;
        width: max-content !important;
        max-width: 280px !important;
        min-height: 0 !important;
        padding: 8px !important;
        border: 1px solid rgba(160, 182, 219, 0.24) !important;
        border-radius: 12px !important;
        background: var(--waker-color-header) !important;
        box-shadow: 0 18px 38px rgba(2, 33, 95, 0.32) !important;
    }

    body #header1.app-desktop-header .hdr-user-menu__item {
        min-height: 38px !important;
        color: rgba(255, 255, 255, 0.84) !important;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.84) !important;
    }

    body #header1.app-desktop-header .hdr-user-menu__item:hover,
    body #header1.app-desktop-header .hdr-user-menu__item:focus-visible,
    body #header1.app-desktop-header .hdr-user-menu__item.is-active {
        background: rgba(255, 255, 255, 0.10) !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }

    body #header1.app-desktop-header .hdr-user-menu__logout {
        color: #ffb4b4 !important;
        -webkit-text-fill-color: #ffb4b4 !important;
    }

    body #header1.app-desktop-header .hdr-user-menu__logout:hover,
    body #header1.app-desktop-header .hdr-user-menu__logout:focus-visible {
        background: rgba(255, 255, 255, 0.10) !important;
        color: #ffd2d2 !important;
        -webkit-text-fill-color: #ffd2d2 !important;
    }
}
/* dialupactionsfit1: rebalance Alerts table so Actions edit buttons fit. */
@media (min-width: 1024px) {
    body.page-dialup .dialup-col-crew-member,
    body.page-dialup .dialup-driver-cell {
        width: 10%;
    }

    body.page-drivers .crew-col-actions,
    body.page-drivers .crew-actions-td,
    body.page-users .managers-col-actions,
    body.page-users .managers-actions-td {
        width: 128px !important;
        min-width: 128px !important;
        max-width: 128px !important;
        text-align: center !important;
    }

    body.page-dialup .dialup-cell-actions,
    body.page-drivers .crew-actions-td,
    body.page-users .managers-actions-td {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    body.page-dialup .dialup-cell-actions .app-row-edit-button,
    body.page-drivers .crew-actions-td .app-row-edit-button,
    body.page-users .managers-actions-td .app-row-edit-button {
        width: 112px;
        min-width: 112px;
        max-width: 112px;
    }

    body.page-dialup .dialup-cell-actions .dialup-edit-shift.wk-button--icon {
        width: var(--waker-desktop-control-height);
        min-width: var(--waker-desktop-control-height);
        max-width: var(--waker-desktop-control-height);
        padding: 0;
    }

    body.page-drivers .crew-actions-cell,
    body.page-users .managers-actions-cell {
        width: 100%;
    }
}

/* apiimportvisibility1: fit the fifth Alerts counter for active API import issues. */
@media (min-width: 1181px) {
    body.page-dialup .dialup-top-panel .dialup-stats-grid {
        width: 820px !important;
        min-width: 820px !important;
        grid-template-columns: repeat(5, minmax(140px, 1fr)) !important;
    }
}

/* modalcustomselect1: one reliable pale-blue dropdown contract for every desktop modal. */
@media (min-width: 1024px) {
    [role="dialog"] .sa-modal-selector {
        position: relative;
        width: 100%;
        min-width: 0;
        height: 46px;
        min-height: 46px;
        box-sizing: border-box;
        border-radius: 7px;
    }

    [role="dialog"] .sa-modal-selector.is-open {
        z-index: 10150;
    }

    [role="dialog"] .sa-modal-selector.is-enhanced > .sa-mobile-selector__control {
        position: absolute !important;
        inset: 0 auto auto 0 !important;
        width: 1px !important;
        height: 1px !important;
        min-height: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    [role="dialog"] .sa-modal-selector.is-enhanced > .sa-mobile-selector__chevron {
        display: none;
    }

    [role="dialog"] .sa-modal-selector .sa-mobile-selector__button {
        width: 100%;
        height: 100%;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        box-sizing: border-box;
        border: 1px solid #b9cce4;
        border-radius: inherit;
        background: #ffffff;
        color: #102a56;
        padding: 0 42px 0 13px;
        font-family: var(--waker-current-font, var(--sa-font, "Aptos", "Segoe UI", sans-serif));
        font-size: var(--waker-modal-control-font-size, 16px);
        font-weight: var(--waker-modal-control-font-weight, 400);
        line-height: 1.2;
        text-align: left;
        appearance: none;
        cursor: pointer;
    }

    [role="dialog"] .sa-modal-selector .sa-mobile-selector__button:hover {
        border-color: #8eadd4;
    }

    [role="dialog"] .sa-modal-selector .sa-mobile-selector__button:focus,
    [role="dialog"] .sa-modal-selector .sa-mobile-selector__button:focus-visible,
    [role="dialog"] .sa-modal-selector.is-open .sa-mobile-selector__button {
        outline: none;
        border-color: #2d6df6;
        box-shadow: 0 0 0 3px rgba(45, 109, 246, 0.14);
    }

    [role="dialog"] .sa-modal-selector.is-disabled .sa-mobile-selector__button {
        border-color: #d8e2ee;
        background: #f7faff;
        color: #6f819b;
        cursor: default;
    }

    [role="dialog"] .sa-modal-selector .sa-mobile-selector__value {
        display: block;
        min-width: 0;
        margin: 0;
        overflow: hidden;
        color: inherit;
        font: inherit;
        line-height: 1.2;
        letter-spacing: 0;
        text-overflow: ellipsis;
        text-transform: none;
        white-space: nowrap;
    }

    [role="dialog"] .sa-modal-selector .sa-mobile-selector__button-chevron {
        position: absolute;
        top: 50%;
        right: 14px;
        width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #5274a3;
        margin: 0;
        transform: translateY(-50%);
        transition: transform 0.14s ease;
        pointer-events: none;
    }

    [role="dialog"] .sa-modal-selector.is-open .sa-mobile-selector__button-chevron {
        transform: translateY(-50%) rotate(180deg);
    }

    [role="dialog"] .sa-modal-selector .sa-mobile-selector__button-chevron svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    [role="dialog"] .sa-modal-selector .sa-mobile-selector__menu {
        position: fixed !important;
        inset: auto;
        z-index: 10160;
        max-height: min(280px, calc(100vh - 24px));
        box-sizing: border-box;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        padding: 4px;
        border: 1px solid #b9cce4;
        border-radius: 8px;
        background: #f2f7ff !important;
        box-shadow: 0 12px 28px rgba(11, 40, 87, 0.18);
    }

    [role="dialog"] .sa-modal-selector .sa-mobile-selector__menu[hidden] {
        display: none;
    }

    [role="dialog"] .sa-modal-selector .sa-mobile-selector__option {
        width: 100%;
        min-height: 32px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        border: 0;
        border-radius: 6px;
        background: #f2f7ff !important;
        color: #102a56 !important;
        padding: 7px 10px;
        font-family: var(--waker-current-font, var(--sa-font, "Aptos", "Segoe UI", sans-serif));
        font-size: var(--waker-modal-option-font-size, 16px);
        font-weight: var(--waker-modal-option-font-weight, 400);
        line-height: 1.2;
        text-align: left;
        appearance: none;
        cursor: pointer;
    }

    [role="dialog"] .sa-modal-selector .sa-mobile-selector__option:hover,
    [role="dialog"] .sa-modal-selector .sa-mobile-selector__option:focus,
    [role="dialog"] .sa-modal-selector .sa-mobile-selector__option:focus-visible {
        outline: none;
        background: #e7f0ff !important;
        color: #0b46bd !important;
    }

    [role="dialog"] .sa-modal-selector .sa-mobile-selector__option.is-selected,
    [role="dialog"] .sa-modal-selector .sa-mobile-selector__option[aria-selected="true"] {
        background: #dce9ff !important;
        color: #0b46bd !important;
        font-weight: 600;
    }

    [role="dialog"] .sa-modal-selector .sa-mobile-selector__option:disabled {
        color: #92a1b5 !important;
        cursor: default;
    }

    body.page-departments #department_editor_default_manager + .sa-mobile-selector__button {
        align-items: center !important;
        text-transform: none !important;
    }

    body.page-departments #department_editor_default_manager + .sa-mobile-selector__button .sa-mobile-selector__value {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

    body.page-users .managers-editor-field > span:first-child {
        min-height: 18px;
        display: inline-flex;
        align-items: center;
        margin-bottom: 8px;
        line-height: 18px;
    }

    body.page-users .managers-editor-phone-field .managers-editor-info {
        margin: 0 !important;
    }
}

/* desktopmodalclose1: Alerts close-button contract for every desktop dialog. */
@media (min-width: 1024px) {
    [role="dialog"] button.sa-desktop-modal-close {
        position: static !important;
        inset: auto !important;
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        flex: 0 0 34px !important;
        align-self: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
        border: 1px solid #d7e1ee !important;
        border-radius: 8px !important;
        background: #f7faff !important;
        color: #173763 !important;
        font-size: 0 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        appearance: none !important;
        transform: none !important;
        cursor: pointer !important;
        transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease !important;
    }

    [role="dialog"] button.sa-desktop-modal-close:hover,
    [role="dialog"] button.sa-desktop-modal-close:focus-visible {
        border-color: #b9cce4 !important;
        background: #edf4ff !important;
        color: #08265a !important;
        outline: none !important;
        box-shadow: var(--waker-shadow-focus) !important;
    }

    [role="dialog"] button.sa-desktop-modal-close[hidden] {
        display: none !important;
    }

    [role="dialog"] button.sa-desktop-modal-close:disabled {
        opacity: 0.62 !important;
        cursor: wait !important;
    }

    [role="dialog"] button.sa-desktop-modal-close svg {
        width: 18px !important;
        height: 18px !important;
        display: block !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 2.25 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
        pointer-events: none !important;
    }

    [role="dialog"] button.sa-desktop-modal-close svg * {
        pointer-events: none !important;
    }
}
/* Alerts outcome decision uses the shared modal shell on desktop and mobile. */
.dialup-outcome-modal .sa-modal-body { padding: 8px 24px 20px; }
.dialup-outcome-decisions { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; border: 0; }
.dialup-outcome-decisions legend { margin-bottom: 10px; color: #526b91; font-weight: 700; }
.dialup-outcome-decisions label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 12px; border: 1px solid #cbd9ec; border-radius: 10px; cursor: pointer; }
.dialup-outcome-decisions label:has(input:checked) { border-color: #1765ff; background: #edf4ff; }
.dialup-outcome-decisions label:has(input:focus-visible) { outline: 3px solid #9fc2ff; outline-offset: 2px; }
.dialup-outcome-decisions input { width: 18px; height: 18px; accent-color: #1765ff; }
.dialup-row-status--lost { border-color: #e9a3a3; color: #a5222e; background: #fff0f1; }
.dialup-row-status--confirmed { border-color: #b6e2c3; color: #087646; background: #eaf8ee; }
.dialup-outcome-review { min-width: 36px; min-height: 36px; margin-left: 4px; border: 1px solid #bfd0e7; border-radius: 8px; background: #fff; color: #1765ff; cursor: pointer; }
.dialup-outcome-review:focus-visible { outline: 3px solid #9fc2ff; outline-offset: 2px; }
/* Alerts adapter for the shared status-row table. Mobile keeps its card layout. */
@media (min-width: 1024px) {
    body.page-dialup table.dialup-table.wk-table--status-rows {
        table-layout: fixed;
    }
    body.page-dialup .wk-table--status-rows > tbody > .wk-table__status-row:has(.dialup-row-status--resolved, .dialup-row-status--confirmed) {
        --wk-status-surface: var(--waker-table-status-success);
        --wk-status-accent: var(--waker-status-success-border);
    }
    body.page-dialup .wk-table--status-rows > tbody > .wk-table__status-row:has(.dialup-row-status--attention) {
        --wk-status-surface: var(--waker-table-status-attention);
        --wk-status-accent: var(--waker-status-warning-border);
    }
    body.page-dialup .wk-table--status-rows > tbody > .wk-table__status-row:has(.dialup-row-status--critical, .dialup-row-status--lost) {
        --wk-status-surface: var(--waker-table-status-critical);
        --wk-status-accent: var(--waker-status-danger-border);
    }
    body.page-dialup .wk-table--status-rows > tbody > .wk-table__status-row:has(.dialup-row-status--warning) {
        --wk-status-surface: var(--waker-table-status-warning);
        --wk-status-accent: var(--waker-status-warning-border);
    }
    body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(th, td) {
        padding: var(--waker-space-4) var(--waker-space-3);
        min-width: 0;
        text-align: center;
        border-inline-color: var(--waker-border-subtle);
        border-block-color: var(--waker-border-soft);
    }
    body.page-dialup table.dialup-table.wk-table--status-rows > thead > tr > th {
        height: var(--waker-table-compact-row-height);
        vertical-align: middle;
        background: var(--sa-table-head-bg);
        color: var(--sa-table-head-color);
        font-weight: var(--waker-weight-semibold);
        font-size: var(--waker-font-size-sm) !important;
        line-height: 1.2;
        text-transform: none;
        letter-spacing: 0;
        white-space: normal;
        border-inline-color: var(--sa-border-soft);
        border-block-color: var(--sa-border);
    }
    body.page-dialup .wk-table--status-rows :is(#dialup_stage_one_header, #dialup_stage_two_header) .dialup-stage-header {
        align-items: center;
        text-align: center;
        font-size: inherit !important;
    }
    body.page-dialup .wk-table--status-rows .dialup-stage-header :is(.dialup-stage-header__name, .dialup-stage-header__minutes) {
        font: inherit;
        font-size: inherit !important;
        color: inherit;
        letter-spacing: inherit;
        text-transform: none;
    }
    body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(th, td):is(:nth-child(2), :nth-child(5), :nth-child(6)) { text-align: left; }
    body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(th, td):nth-child(1) { width: 8%; }
    body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(th, td):nth-child(2) { width: 8%; }
    body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(th, td):nth-child(3) { width: 5%; }
    body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(th, td):nth-child(4) { width: 5%; }
    body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(th, td):nth-child(5) { width: 10%; }
    body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(th, td):nth-child(6) { width: 10%; }
    body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(#dialup_stage_one_header, #dialup_stage_two_header, td:nth-child(7), td:nth-child(8)) { width: 9%; }
    body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(th, td):nth-child(9) { width: 5%; }
    body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(th, td):nth-child(10) { width: 5.5%; }
    body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(th, td):nth-child(11) { width: 10%; }
    body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(th, td):nth-child(12) { width: 10%; }
    body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(th, td):nth-child(13) { width: 5.5%; }
    body.page-dialup .dialup-table.wk-table--status-rows .dialup-row-status {
        display: inline-block;
        width: min-content;
        padding: 0;
        border: 0;
        min-height: 0;
        background: transparent;
        color: var(--waker-color-ink-strong);
        font-weight: var(--waker-weight-bold);
        white-space: normal;
        line-height: var(--waker-line-default);
    }
    body.page-dialup .dialup-table.wk-table--status-rows :is(.dialup-row-status--warning, .dialup-row-status--paused):focus-visible {
        outline: 2px solid var(--waker-color-primary);
        outline-offset: 2px;
    }
    body.page-dialup .dialup-table.wk-table--status-rows :is(.dialup-driver-icon, .dialup-manager-icon, .dialup-source-badge, .dialup-source-badge__icon) {
        width: var(--waker-space-10);
        height: var(--waker-space-10);
        min-width: 0;
        min-height: 0;
        flex-basis: var(--waker-space-10);
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    body.page-dialup .dialup-table.wk-table--status-rows .dialup-driver-icon { color: var(--waker-color-ink-muted); }
    body.page-dialup .dialup-table.wk-table--status-rows .dialup-manager-icon { color: var(--waker-color-primary); }
    body.page-dialup .dialup-table.wk-table--status-rows :is(.dialup-driver-name, .dialup-inline-shift-number) {
        color: var(--waker-color-ink-strong);
        font-size: var(--waker-font-size-sm);
        font-weight: var(--waker-weight-semibold);
    }
    body.page-dialup .dialup-table.wk-table--status-rows :is(.dialup-driver-comment, .dialup-inline-shift-comment) {
        color: var(--waker-color-ink-muted);
        font-size: var(--waker-font-size-xs);
        font-weight: var(--waker-weight-normal);
    }
    body.page-dialup .dialup-table.wk-table--status-rows :is(.dialup-driver-name, .dialup-driver-comment, .dialup-inline-shift-comment) {
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: var(--waker-line-default);
    }
    body.page-dialup .dialup-table.wk-table--status-rows .dialup-inline-shift {
        width: 100%;
        padding: var(--waker-space-1);
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }
    body.page-dialup .dialup-table.wk-table--status-rows .dialup-inline-shift:hover {
        background: var(--waker-color-surface-hover);
        border-color: var(--waker-border-soft);
    }
    body.page-dialup .dialup-table.wk-table--status-rows .dialup-time-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
    body.page-dialup table.dialup-table.wk-table--status-rows > tbody > tr > td.dialup-stage-cell {
        vertical-align: top;
        text-align: left;
    }
    body.page-dialup .dialup-table.wk-table--status-rows .dialup-attempt-status {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 0;
        padding: var(--waker-space-1) 0;
        grid-template-columns: var(--waker-table-status-icon-size) minmax(0, 1fr);
        gap: var(--waker-space-1);
        background: transparent;
        border-color: transparent;
    }
    body.page-dialup .dialup-table.wk-table--status-rows .dialup-attempt-status__icon--attempt { display: none; }
    body.page-dialup .dialup-table.wk-table--status-rows .dialup-attempt-status__attempt {
        grid-column: 2;
        font-size: var(--waker-font-size-xs);
        font-weight: var(--waker-weight-normal);
        color: var(--waker-color-ink-muted);
        text-align: left;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        line-height: var(--waker-line-default);
    }
    body.page-dialup .dialup-table.wk-table--status-rows .dialup-attempt-status__icon--result {
        width: var(--waker-table-status-icon-size);
        height: var(--waker-table-status-icon-size);
        align-self: start;
        margin-top: calc((var(--waker-table-meta-font-size) * var(--waker-line-default) - var(--waker-table-status-icon-size)) / 2);
    }
    body.page-dialup .dialup-table.wk-table--status-rows .dialup-attempt-status__result {
        font-size: var(--waker-font-size-xs);
        font-weight: var(--waker-weight-semibold);
        white-space: normal;
        text-align: left;
        overflow: visible;
        overflow-wrap: anywhere;
        line-height: var(--waker-line-default);
    }
    body.page-dialup .dialup-table.wk-table--status-rows .dialup-shift-result-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
        min-height: var(--waker-status-selector-desktop-height);
        height: auto;
        padding: var(--waker-space-1);
        border-color: color-mix(in srgb, var(--waker-status-neutral-border) var(--waker-status-field-border-tint), var(--waker-color-surface));
        border-radius: var(--waker-radius-sm);
        background: color-mix(in srgb, var(--waker-status-neutral-bg) var(--waker-status-field-bg-tint), var(--waker-color-surface));
        color: var(--waker-color-ink-strong);
        white-space: normal;
        line-height: var(--waker-line-default);
    }
    @media (max-width: 1279px) {
        body.page-dialup table.dialup-table.wk-table--status-rows > :is(thead, tbody) > tr > :is(th, td) { padding-inline: var(--waker-space-1); }
        body.page-dialup table.dialup-table.wk-table--status-rows > thead > tr > th { font-size: var(--waker-font-size-xs); }
        body.page-dialup table.dialup-table.wk-table--status-rows > tbody > tr > td.dialup-checkbox-cell { padding-inline: 0; }
    }
}
.dialup-mobile-status { margin: 10px 0; }
@media (max-width: 1023px) {
    .dialup-outcome-modal { max-height: min(90dvh, 720px); overflow: auto; border-radius: 20px; }
    .dialup-outcome-decisions label { min-height: 52px; }
    .dialup-outcome-review { min-width: 44px; min-height: 44px; }
}
