@import url("focus-20261019-01.css");
@import url("native-select-20261026-01.css");

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --blue: #087fff;
    --steel: #849fba;
    --bg: #f3f6fa;
    --surface: #ffffff;
    --surface-2: #f7fafd;
    --ink: #132033;
    --muted: #667386;
    --line: #d8e2ee;
    --danger: #b42318;
    --shadow: 0 16px 34px rgba(33, 48, 74, .08);
    --topbar-h: 72px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #101722;
    --surface: #172231;
    --surface-2: #202d3e;
    --ink: #edf4fb;
    --muted: #aebed0;
    --line: #2c3a4c;
    --shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.45;
}

body.mobile-menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

.material-icons-round {
    font-family: "Material Icons Round";
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    overflow-wrap: normal;
    direction: ltr;
    font-feature-settings: "liga";
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

.app-shell {
    width: 100%;
    max-width: 100vw;
    min-height: 100svh;
    display: grid;
    grid-template-rows: var(--topbar-h) 1fr;
}

.app-topbar {
    width: 100%;
    max-width: 100vw;
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 clamp(16px, 3vw, 30px);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface), transparent 4%);
    backdrop-filter: blur(14px);
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.topbar-brand img {
    width: 178px;
    height: auto;
    display: block;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle,
.mobile-menu-button,
.user-trigger {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.theme-toggle,
.mobile-menu-button {
    width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mobile-menu-button { display: none; }

.user-menu {
    position: relative;
}

.user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 10px 0 5px;
    font-weight: 800;
}

.avatar {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--steel));
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.user-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chevron { color: var(--muted); }

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 210px;
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.user-menu.is-open .user-dropdown { display: grid; }

.user-dropdown a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 0 10px;
    color: var(--muted);
    font-weight: 750;
}

.user-dropdown a:hover {
    background: rgba(8, 127, 255, .12);
    color: var(--blue);
}

.app-layout,
.shell {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: clip;
    min-height: calc(100svh - var(--topbar-h));
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
}

.sidebar {
    max-width: 100vw;
    position: sticky;
    top: var(--topbar-h);
    height: calc(100svh - var(--topbar-h));
    padding: 18px 14px;
    border-right: 1px solid var(--line);
    background: var(--surface);
    overflow-y: auto;
}

.app-brand img {
    width: 178px;
    height: auto;
    display: block;
}

.app-nav {
    display: grid;
    gap: 6px;
}

.app-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 8px;
    padding: 0 12px;
    color: var(--muted);
    font-weight: 750;
}

.app-nav a.active,
.app-nav a:hover {
    background: rgba(8, 127, 255, .12);
    color: var(--blue);
}

.app-nav .material-icons-round {
    width: 24px;
    text-align: center;
}

.workspace {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.dashboard {
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: 18px;
    padding: clamp(16px, 3vw, 34px);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
}

.breadcrumbs a {
    color: var(--blue);
}

.breadcrumbs .material-icons-round {
    color: var(--steel);
    font-size: 20px;
}

.dashboard-head h1,
.topbar h1,
.panel h2 {
    margin: 0;
    letter-spacing: 0;
}

.dashboard-head h1,
.topbar h1 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.05;
}

.muted {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.quick-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    max-width: 780px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.quick-search input {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    padding: 0 16px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.quick-search button {
    width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid var(--line);
    background: color-mix(in srgb, var(--blue), var(--surface) 86%);
    color: var(--blue);
    cursor: pointer;
}

.quick-search button .material-icons-round {
    font-size: 22px;
}

.quick-search button:hover {
    background: color-mix(in srgb, var(--blue), var(--surface) 78%);
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
}

.quick-action {
    width: 116px;
    min-height: 104px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
    text-align: center;
}

.quick-action:hover {
    border-color: rgba(8, 127, 255, .45);
    color: var(--blue);
}

.quick-action .material-icons-round {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    color: var(--blue);
    font-size: 42px;
}

.quick-action strong {
    font-size: 13px;
    line-height: 1.2;
}

.panel,
.auth-card,
.metric-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel { padding: 18px; }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-head h2 { font-size: 20px; }
.panel-head a { color: var(--blue); font-weight: 800; }

.jobs-panel { overflow: hidden; }

.jobs-table {
    display: grid;
    min-width: 0;
}

.jobs-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.1fr) minmax(140px, .9fr) minmax(160px, 1fr) minmax(128px, .7fr);
    gap: 14px;
    align-items: center;
    min-height: 58px;
    border-top: 1px solid var(--line);
    padding: 10px 4px;
}

.jobs-header {
    min-height: 42px;
    border-top: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.jobs-row:not(.jobs-header):hover {
    color: var(--blue);
}

.jobs-row strong,
.jobs-row small {
    display: block;
}

.jobs-row small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}

.empty-state .material-icons-round {
    color: var(--blue);
    font-size: 36px;
}

.empty-state p { margin: 0; }

/* Legacy/admin dashboard compatibility */
.topbar {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px clamp(16px, 3vw, 34px);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg), var(--surface) 72%);
}

.topbar-actions,
.metric-grid,
.content-grid,
.table-list,
.timeline,
.calc-card { display: grid; }

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

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.metric-grid article { min-height: 126px; padding: 18px; }
.metric-grid span,
.metric-grid small { display: block; color: var(--muted); font-weight: 700; }
.metric-grid strong { display: block; margin: 10px 0 6px; font-size: clamp(28px, 3vw, 38px); line-height: 1; overflow-wrap: anywhere; }

.content-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 14px;
    margin-top: 14px;
}

.panel.wide { grid-row: span 2; }
.table-list { gap: 10px; }
.table-list div { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 56px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface-2); }
.table-list span,
.table-list em { color: var(--muted); font-style: normal; font-weight: 750; }
.timeline { gap: 12px; }
.timeline div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: center; }
.timeline time { color: var(--blue); font-weight: 900; }
.timeline span { min-height: 42px; display: flex; align-items: center; border-left: 3px solid var(--steel); padding-left: 12px; }
.calc-card { gap: 12px; }

.button,
.icon-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.button.primary { width: 100%; border-color: var(--blue); background: color-mix(in srgb, var(--blue), var(--surface) 86%);
    color: var(--blue); }
.icon-button { width: 42px; padding: 0; font-size: 20px; }

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

input,
select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

output { border-radius: 8px; padding: 14px; background: rgba(8, 127, 255, .12); color: var(--blue); font-weight: 900; }

.auth-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 18px;
    background: linear-gradient(140deg, rgba(8,127,255,.14), transparent 46%), var(--bg);
}

.auth-card { width: min(100%, 430px); padding: 26px; }
.auth-card img { width: 190px; height: auto; display: block; margin-bottom: 22px; }
.auth-card h1 { margin: 0 0 20px; font-size: 30px; letter-spacing: 0; }
.auth-card form { display: grid; gap: 14px; margin-bottom: 16px; }

.alert { border-radius: 8px; padding: 12px; margin-bottom: 14px; color: var(--danger); background: color-mix(in srgb, var(--danger), transparent 88%); font-weight: 750; }

@media (max-width: 1080px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-grid { grid-template-columns: 1fr; }
    .panel.wide { grid-row: auto; }
}

@media (max-width: 900px) {
    .app-topbar {
    width: 100%;
    max-width: 100vw; padding-right: 12px; }
    .mobile-menu-button { display: inline-flex; }
    .user-name,
    .chevron { display: none; }

    .app-layout { grid-template-columns: 1fr; }

    .sidebar {
        position: fixed;
        top: var(--topbar-h);
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 45;
        width: min(82vw, 330px);
        height: calc(100svh - var(--topbar-h));
        border-right: 0;
        border-left: 1px solid var(--line);
        box-shadow: -20px 26px 44px rgba(18, 32, 51, .18);
        transform: translateX(100%);
        transition: transform .22s ease;
    }

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

    .jobs-table {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .jobs-row {
        min-width: 720px;
    }
}

@media (max-width: 620px) {
    :root { --topbar-h: 64px; }
    .app-topbar { padding-left: 14px; padding-right: 10px; }
    .sidebar { width: min(88vw, 320px); }
    .topbar-brand img { width: 142px; }
    .topbar-user { gap: 7px; }
    .theme-toggle { display: none; }
    .dashboard { padding: 14px; gap: 16px; }
    .dashboard-head h1 { font-size: 30px; }
    .quick-search input { min-height: 44px; font-size: 15px; }
    .quick-action { width: 102px; min-height: 94px; }
    .quick-action strong { font-size: 12px; }

    .shell { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .topbar-actions { width: 100%; justify-content: space-between; }
    .metric-grid { grid-template-columns: 1fr; }
    .table-list div { grid-template-columns: 1fr; gap: 4px; }
}




.job-create-form {
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: 16px;
}

.job-panels {
    min-width: 0;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.form-panel {
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: 14px;
}

.form-panel h3 {
    margin: 4px 0 -4px;
    font-size: 15px;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.segmented label {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: var(--muted);
    cursor: pointer;
}

.segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented label:has(input:checked) {
    background: var(--surface);
    color: var(--blue);
    box-shadow: var(--shadow);
}

.form-grid.two {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.inline-add {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 6px;
}

.inline-add button,
.soft-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--blue);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.inline-add .soft-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.soft-icon > .material-icons-round,
.icon-button > .material-icons-round {
    display: block;
    flex: none;
    line-height: 1;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-line input {
    width: 18px;
    min-height: 18px;
}

label small {
    min-height: 18px;
    color: var(--danger);
    font-size: 12px;
    font-weight: 750;
}

textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    resize: vertical;
}

.vehicle-map {
    min-width: 0;
    max-width: 100%;
    position: relative;
    min-height: 320px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    overflow: hidden;
}

.vehicle-map img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
}

.map-placeholder {
    color: var(--muted);
    text-align: center;
    padding: 20px;
}

.part-marker {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(8, 127, 255, .22);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.part-marker.is-selected {
    background: #d92d20;
    box-shadow: 0 0 0 4px rgba(217, 45, 32, .24);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.form-actions .button {
    width: auto;
    min-width: 170px;
}

.alert.success {
    color: #087f5b;
    background: #e7f8f1;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(10, 18, 30, .48);
}

.modal[hidden] {
    display: none;
}

.modal-card {
    width: min(100%, 420px);
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.modal-card h2,
.modal-card p {
    margin: 0;
}

.repair-methods {
    display: grid;
    gap: 8px;
}

.repair-methods button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.repair-methods button:hover {
    border-color: var(--blue);
    color: var(--blue);
}

@media (max-width: 1280px) {
    .job-panels { grid-template-columns: 1fr; }
    .repair-panel { order: 3; }
}

@media (max-width: 620px) {
    .form-grid.two { grid-template-columns: 1fr; }
    .vehicle-map { min-height: 240px; }
    .part-marker { width: 20px; height: 20px; }
}


@media (max-width: 1180px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .app-shell,
    .app-topbar,
    .app-layout,
    .workspace,
    .dashboard,
    .job-create-form,
    .job-panels,
    .panel,
    .form-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .app-shell,
    .app-layout,
    .workspace,
    .dashboard,
    .job-create-form,
    .job-panels,
    .form-panel {
        overflow-x: hidden !important;
    }

    .app-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .sidebar {
        position: fixed !important;
        top: var(--topbar-h) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        z-index: 45;
        width: min(82dvw, 330px) !important;
        max-width: calc(100dvw - 12px) !important;
        height: calc(100dvh - var(--topbar-h)) !important;
        border-right: 0 !important;
        border-left: 1px solid var(--line) !important;
        box-shadow: -20px 26px 44px rgba(18, 32, 51, .18);
        transform: translate3d(100%, 0, 0) !important;
        transition: transform .22s ease;
    }

    .sidebar.is-open {
        transform: translate3d(0, 0, 0) !important;
    }
}

@media (max-width: 900px) {
    .user-name,
    .chevron {
        display: none;
    }
}
/* Build 09: fixed viewport mobile/tablet shell. Keep off-canvas menu out of document width. */
@media (max-width: 1180px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: clip !important;
    }

    body.mobile-menu-open {
        overflow: hidden !important;
        touch-action: none;
    }

    .app-shell,
    .app-topbar,
    .app-layout,
    .workspace,
    .dashboard,
    .job-create-form,
    .job-panels,
    .panel,
    .form-panel,
    .vehicle-map,
    .form-grid,
    .inline-add {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .app-shell,
    .app-layout,
    .workspace,
    .dashboard,
    .job-create-form,
    .job-panels,
    .panel,
    .form-panel {
        overflow-x: clip !important;
    }

    .app-shell {
        display: block !important;
    }

    .app-topbar {
        position: sticky !important;
        inset: 0 0 auto 0 !important;
        display: flex !important;
        padding-left: clamp(12px, 3vw, 20px) !important;
        padding-right: clamp(8px, 2vw, 14px) !important;
    }

    .app-layout {
        display: block !important;
    }

    .dashboard {
        display: grid !important;
        padding-left: clamp(12px, 3vw, 18px) !important;
        padding-right: clamp(12px, 3vw, 18px) !important;
    }

    .mobile-menu-button {
        display: inline-flex !important;
    }

    .sidebar {
        display: none !important;
        position: fixed !important;
        top: var(--topbar-h) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        z-index: 60 !important;
        width: min(78%, 320px) !important;
        max-width: calc(100% - 10px) !important;
        height: calc(100dvh - var(--topbar-h)) !important;
        transform: none !important;
        transition: none !important;
        border-right: 0 !important;
        border-left: 1px solid var(--line) !important;
        box-shadow: -20px 26px 44px rgba(18, 32, 51, .22) !important;
    }

    .sidebar.is-open {
        display: block !important;
        transform: none !important;
    }
}

@media (max-width: 620px) {
    .sidebar {
        width: min(74%, 300px) !important;
        max-width: calc(100% - 10px) !important;
    }

    .topbar-brand img {
        width: 142px !important;
    }
}
/* Build 11: prevent hidden segmented radio inputs from expanding document width. */
.segmented label {
    position: relative;
    overflow: hidden;
}

.segmented input[type="radio"] {
    position: absolute !important;
    inset: 0 auto auto 0 !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;
    pointer-events: none !important;
}
/* Build 12: unified tablet shell up to 1280px and fixed topbar. */
@media (max-width: 1280px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: clip !important;
    }

    .app-shell {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-top: var(--topbar-h) !important;
        overflow-x: clip !important;
    }

    .app-topbar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 90 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: clamp(12px, 3vw, 20px) !important;
        padding-right: clamp(8px, 2vw, 14px) !important;
    }

    .app-layout,
    .workspace,
    .dashboard,
    .job-create-form,
    .job-panels,
    .panel,
    .form-panel,
    .vehicle-map,
    .form-grid,
    .inline-add {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .app-layout {
        display: block !important;
        grid-template-columns: minmax(0, 1fr) !important;
        overflow-x: clip !important;
    }

    .workspace,
    .dashboard,
    .job-create-form,
    .job-panels,
    .panel,
    .form-panel {
        overflow-x: clip !important;
    }

    .dashboard {
        display: grid !important;
        padding-left: clamp(12px, 3vw, 18px) !important;
        padding-right: clamp(12px, 3vw, 18px) !important;
    }

    .job-panels {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .mobile-menu-button {
        display: inline-flex !important;
    }

    .sidebar {
        display: none !important;
        position: fixed !important;
        top: var(--topbar-h) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        z-index: 80 !important;
        width: min(74%, 320px) !important;
        max-width: calc(100% - 10px) !important;
        height: calc(100dvh - var(--topbar-h)) !important;
        transform: none !important;
        transition: none !important;
        border-right: 0 !important;
        border-left: 1px solid var(--line) !important;
        box-shadow: -20px 26px 44px rgba(18, 32, 51, .22) !important;
    }

    .sidebar.is-open {
        display: block !important;
        transform: none !important;
    }
}
/* Build 18: single primary focus border and compact avatar dropdown. */
.job-create-page input:not([type="checkbox"]):not([type="radio"]):focus,
.job-create-page select:focus,
.job-create-page textarea:focus,
.job-create-page input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.job-create-page select:focus-visible,
.job-create-page textarea:focus-visible {
    border-color: var(--blue) !important;
    outline: none !important;
    box-shadow: none !important;
}

.job-create-page input,
.job-create-page select,
.job-create-page textarea {
    caret-color: var(--blue);
}

@media (max-width: 1280px) {
    .app-topbar,
    .topbar-user,
    .user-menu {
        overflow: visible !important;
    }

    .user-menu {
        position: static !important;
    }

    .user-dropdown {
        position: fixed !important;
        top: calc(var(--topbar-h) + 8px) !important;
        right: 12px !important;
        left: auto !important;
        width: min(220px, calc(100vw - 24px)) !important;
        max-height: calc(100dvh - var(--topbar-h) - 16px) !important;
        overflow-y: auto !important;
        z-index: 140 !important;
    }
}

@media (max-width: 620px) {
    .user-dropdown {
        right: 10px !important;
        width: min(210px, calc(100vw - 20px)) !important;
    }
}
