@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --red: #b51218;
    --red-dark: #7d0c12;
    --blue: #235da8;
    --green: #198754;
    --yellow: #ffd34d;
    --ink: #121820;
    --muted: #5f6c7b;
    --line: #c7d0da;
    --panel: #ffffff;
    --steel: #edf1f5;
    --steel-dark: #aeb9c5;
    --shadow: 0 10px 30px rgba(18, 24, 32, 0.12);
    --shadow-deep: 0 18px 44px rgba(18, 24, 32, 0.18);
    --shadow-press: inset 0 2px rgba(255,255,255,0.78), inset 0 -5px rgba(90,105,122,0.18), 0 3px 0 #738294;
    --chrome-dark: #111820;
    --chrome-mid: #273341;
    --cream: #f8fafc;
    --content-button-min-width: 142px;
    --content-button-max-width: 142px;
    --content-button-height: 89px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    width: calc(100% * var(--app-display-inverse, 1));
    height: calc(100vh * var(--app-display-inverse, 1));
    min-height: calc(100vh * var(--app-display-inverse, 1));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.76), rgba(236,241,246,0.92)),
        repeating-linear-gradient(135deg, #e6ebf1 0, #e6ebf1 12px, #d7dee7 12px, #d7dee7 14px);
    font-family: Arial, Helvetica, sans-serif;
    transform: scale(var(--app-display-scale, 1));
    transform-origin: top left;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.app-icon {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

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

button,
a,
input,
select,
textarea {
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 4px solid var(--yellow);
}

.command-bar {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex: 0 0 auto;
    padding: 8px 12px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.18), transparent 38%),
        linear-gradient(90deg, var(--red-dark), var(--red) 58%, #d52027);
    border-bottom: 3px solid #5f070b;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    z-index: 10;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 205px;
    padding-right: 10px;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: #1b1f25;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    font-weight: 900;
    letter-spacing: 1px;
}

.brand-mark.large {
    width: 64px;
    height: 64px;
    font-size: 1.35rem;
}

.brand-block strong {
    display: block;
    font-size: 1.2rem;
}

.brand-block small {
    display: block;
    color: rgba(255,255,255,0.78);
    margin-top: 2px;
}

.command-actions {
    display: grid;
    grid-template-columns: repeat(7, minmax(78px, 1fr));
    gap: 6px;
    width: 100%;
}

.command-button,
.small-action,
.primary-action,
.mega-button,
button {
    border: 1px solid rgba(18, 24, 32, 0.22);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

.command-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 7px 9px;
    text-align: center;
    background: linear-gradient(180deg, #2e69b8, #184d92);
    box-shadow: inset 0 1px rgba(255,255,255,0.26);
}

.command-button.hot {
    background: linear-gradient(180deg, #d9ecff, #ffffff);
    color: #132234;
}

.command-button.success {
    background: linear-gradient(180deg, #25a766, #137d48);
}

.command-button.warn {
    background: linear-gradient(180deg, #ffd85a, #f0b400);
    color: #1c1b13;
}

.command-button.ghost {
    background: linear-gradient(180deg, #eef3f8, #cfd8e2);
    color: #17202a;
}

.command-button.danger {
    background: linear-gradient(180deg, #4b1116, #22070a);
}

kbd {
    margin-left: 6px;
    padding: 2px 5px;
    color: #fff;
    background: rgba(0,0,0,0.35);
    border-radius: 4px;
    font-size: 0.72rem;
}

.live-count-strip {
    display: grid;
    grid-template-columns: minmax(132px, 1.28fr) repeat(3, minmax(96px, 1fr)) minmax(116px, 1.12fr);
    justify-content: stretch;
    gap: 8px;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 7px 12px;
    background: #d7dee6;
    border-bottom: 1px solid var(--steel-dark);
}

.live-count-card {
    min-height: 64px;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.82rem;
}

.live-count-card.active {
    color: #fff;
    background: linear-gradient(180deg, #273341, #111820);
    border-color: #111820;
}

.live-count-card.active span {
    color: #ffd85a;
}

.dev-tools-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 80;
    display: grid;
    grid-template-columns: auto auto repeat(5, max-content);
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #fff;
    background: linear-gradient(180deg, #17202a, #0b1016);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.34);
}

.dev-tools-bar span {
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    font-weight: 800;
}

.dev-tools-bar form {
    margin: 0;
}

.dev-tools-bar button,
.dev-tools-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    max-width: none;
    min-height: 42px;
    padding: 7px 10px;
    color: #fff;
    background: linear-gradient(180deg, #d12630, #8a1118);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

.dev-tools-bar.dev-tools-bar-expanded {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    justify-content: stretch;
    gap: 10px;
    max-height: 44vh;
    overflow: auto;
}

.dev-tools-head,
.dev-tools-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dev-tools-head {
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.13);
}

.dev-tools-head strong {
    font-size: 1rem;
}

.dev-tools-section {
    padding: 2px 0;
}

.dev-tools-section-title {
    min-width: 104px;
    color: rgba(255,255,255,0.84) !important;
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dev-load-test-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(5, max-content);
    align-items: center;
}

.dev-load-status {
    display: grid;
    gap: 2px;
    min-width: 220px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 8px;
}

.dev-load-status strong {
    color: #ffffff;
    font-size: 0.9rem;
}

.dev-load-status small {
    color: rgba(255,255,255,0.7);
    font-size: 0.74rem;
    font-weight: 800;
}

.dev-load-pill {
    width: max-content;
    padding: 2px 8px;
    color: #d6e2ef !important;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    font-size: 0.68rem !important;
    font-weight: 950 !important;
}

.dev-load-pill.active {
    color: #07120d !important;
    background: #79f2b3;
    border-color: rgba(121,242,179,0.82);
}

.dev-tools-bar label {
    display: grid;
    gap: 2px;
    color: rgba(255,255,255,0.72);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dev-tools-bar input[type="number"] {
    width: 74px;
    min-height: 38px;
    padding: 6px 8px;
    color: #101827;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-weight: 900;
}

.dev-tools-bar .dev-load-custom {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dev-tools-bar .dev-load-start-link {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.dev-tools-bar button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.dev-tools-bar a.disabled,
.dev-tools-bar a[aria-disabled="true"] {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.45;
}

.dev-tools-bar .dev-tool-stop {
    background: linear-gradient(180deg, #f59e0b, #b45309);
}

@media (max-width: 1280px) {
    .dev-load-test-tools {
        grid-template-columns: minmax(220px, 1fr) repeat(3, max-content);
    }
}

.workspace,
.login-workspace {
    width: min(1440px, calc(100% - 28px));
    margin: 0 auto;
    padding: 10px 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

body.work-order-detail-page .workspace {
    padding-top: 6px;
}

.login-workspace {
    display: grid;
    place-items: center;
}

.flash {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 2400;
    width: min(720px, calc(100vw - 36px));
    margin: 0;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
    font-size: 1rem;
    font-weight: 900;
    pointer-events: none;
    transform: translateX(-50%);
    opacity: 1;
    transition: opacity 180ms ease, transform 180ms ease;
}

.flash.is-hiding {
    opacity: 0;
    transform: translate(-50%, 12px);
}

.flash.success {
    color: #075331;
    background: #daf7e9;
    border-color: #9ae6bf;
}

.flash.error,
.notice-band.warn {
    color: #4c3000;
    background: #fff2c7;
}

.flash.error {
    border-color: #f3c969;
}

.login-panel {
    width: min(520px, 100%);
}

body.app-chrome-hidden {
    background: #0b1016;
}

body.app-chrome-hidden .login-workspace {
    width: 100%;
    height: 100%;
    padding: 0;
}

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

.login-card {
    padding: 28px;
}

.bay-login-card {
    width: min(720px, calc(100vw - 32px));
}

.login-bay-panel {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 100%;
    padding: 24px;
}

.login-bay-panel::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at top left, rgba(220, 38, 38, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(9, 13, 20, 0.96), rgba(25, 31, 41, 0.98));
}

.login-bay-panel .bay-login-card {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100vw - 56px));
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.login-brand h1,
.record-header h1,
.hero-workbench h1,
.clock-screen h1,
.reference-title h1 {
    margin: 0;
    line-height: 1.05;
}

.login-brand p,
.lead,
.helper-text,
.reference-help {
    color: var(--muted);
}

.stacked-form {
    display: grid;
    gap: 10px;
}

.login-bay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.bay-login-choice {
    display: grid;
    gap: 4px;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 116px;
    padding: 18px 20px;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #e8eef5);
    border: 1px solid #9fb0c2;
    border-left: 8px solid var(--red);
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.85), 0 3px 0 #8b9aaa;
    text-align: left;
    cursor: pointer;
}

.bay-login-choice strong {
    font-size: 1.18rem;
}

.bay-login-choice span {
    color: var(--muted);
    font-weight: 850;
}

.login-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.tech-top-actions {
    display: flex;
    gap: 10px;
}

.tech-top-actions .tech-owner-link {
    display: inline-grid;
    place-items: center;
    width: 124px;
    min-width: 124px;
    max-width: 124px;
    min-height: 60px;
    text-decoration: none;
}

.tech-panel {
    align-items: center;
    padding: 24px;
}

.tech-card {
    width: min(980px, calc((100vw - 56px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 64px) * var(--app-display-inverse, 1));
    overflow-y: auto;
}

.tech-work-card {
    width: min(1080px, calc((100vw - 56px) * var(--app-display-inverse, 1)));
}

.login-bay-panel .tech-card {
    width: min(980px, calc((100vw - 96px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 96px) * var(--app-display-inverse, 1));
}

.login-bay-panel .tech-work-card {
    width: min(1080px, calc((100vw - 96px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 32px) * var(--app-display-inverse, 1));
}

.login-bay-panel .tech-start-card {
    width: min(1020px, calc((100vw - 96px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 72px) * var(--app-display-inverse, 1));
    padding: 22px;
}

.tech-start-card .login-brand {
    margin-bottom: 50px;
}

.tech-start-card .tech-brand h1 {
    font-size: 1.5rem;
}

.tech-start-card .login-brand p {
    margin: 4px 0 0;
}

.tech-brand {
    align-items: center;
}

.tech-brand h1 {
    font-size: 1.8rem;
}

.tech-status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 18px;
}

.tech-status-strip div {
    display: grid;
    gap: 5px;
    min-height: 78px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
}

.tech-status-strip span,
.tech-result-card small,
.tech-section-head span {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 800;
}

.tech-status-strip strong {
    color: #111827;
    font-size: 1.15rem;
}

.login-bay-grid.tech-action-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.tech-action-grid form {
    display: contents;
}

a.bay-login-choice,
.tech-menu-choice {
    width: 100%;
    min-width: 0;
    max-width: none;
    text-decoration: none;
}

.tech-menu-choice.success {
    background: linear-gradient(180deg, #16a34a, #047857);
    color: #fff;
    border-left-color: #bbf7d0;
}

.tech-menu-choice.danger {
    background: linear-gradient(180deg, #dc2626, #991b1b);
    color: #fff;
    border-left-color: #fecaca;
}

.tech-menu-choice.clocked-in {
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #eef3f8);
    border-left-color: #b91c1c;
}

.tech-menu-choice.clocked-in span {
    color: #64748b;
}

.tech-menu-choice.success span,
.tech-menu-choice.danger span {
    color: rgba(255, 255, 255, 0.84);
}

body.ui-modern .tech-menu-card .tech-menu-choice.success,
body.ui-modern .tech-menu-card button.tech-menu-choice.success:not(.selection-tile):not(.profile-status-tile) {
    color: #111827 !important;
    background: linear-gradient(180deg, #ffffff, #e8eef5) !important;
    border-left: 8px solid var(--red) !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.85), 0 3px 0 #8b9aaa !important;
}

body.ui-modern .tech-menu-card .tech-menu-choice.success span {
    color: #64748b !important;
}

.tech-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 16px;
}

.tech-start-card .tech-nav-row {
    margin: 4px 0 8px;
}

.tech-lookup-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 172px;
    gap: 12px;
    align-items: end;
    margin: 14px 0 18px;
}

.tech-lookup-form label {
    display: grid;
    gap: 6px;
    color: #1f2937;
    font-weight: 950;
}

.tech-lookup-form input {
    min-height: 66px;
    padding: 12px 18px;
    font-size: 1.14rem;
    font-weight: 900;
    border: 2px solid #cbd5e1;
    border-radius: 16px;
}

.tech-start-guidance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 0 0 14px;
}

.tech-start-guidance-card {
    display: grid;
    gap: 7px;
    align-content: center;
    min-height: 92px;
    padding: 13px 15px;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #eef3f8);
    border: 1px solid #cbd5e1;
    border-left: 7px solid #b91c1c;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #a7b4c3;
}

.tech-start-guidance-card strong {
    color: #111827;
    font-size: 0.96rem;
    font-weight: 950;
    line-height: 1.12;
}

.tech-start-guidance-card span {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.22;
}

.tech-form-card {
    display: grid;
    gap: 16px;
    margin-top: 14px;
    padding: 18px;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #f4f7fb);
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    box-shadow: inset 0 1px rgba(255,255,255,0.85), 0 2px 0 #a7b4c3;
}

.tech-form-card h2 {
    margin: 0;
    font-size: 1.2rem;
}

.tech-form-card p {
    margin: 0;
    color: #64748b;
    font-weight: 850;
}

.tech-form-card label,
.tech-inline-start-form label,
.tech-product-card label,
.tech-close-form label {
    display: grid;
    gap: 6px;
    color: #1f2937;
    font-weight: 950;
}

.tech-form-card input,
.tech-inline-start-form input,
.tech-product-card input,
.tech-close-form input {
    width: 100%;
    min-height: 54px;
    padding: 10px 14px;
    color: #111827;
    font-weight: 900;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
}

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

.tech-start-card .tech-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.tech-start-card .tech-form-card,
.tech-start-card .tech-section-head,
.tech-start-card .tech-lookup-form {
    margin-top: 8px;
    margin-bottom: 10px;
}

.tech-start-card .tech-form-card {
    gap: 10px;
    padding: 14px;
}

.tech-start-card .tech-form-card h2 {
    font-size: 1.08rem;
}

.tech-start-card .tech-form-card input,
.tech-start-card .tech-lookup-form input,
.tech-start-card .tech-compact-choice input {
    min-height: 46px;
    padding: 8px 11px;
}

.tech-start-card .tech-wizard-actions {
    margin-top: 8px;
}

.tech-start-card .tech-section-head {
    padding: 10px 12px;
}

.tech-start-card .tech-customer-lookup {
    grid-template-columns: minmax(0, 1fr) 124px;
}

.tech-start-card .tech-compact-choice {
    min-height: 92px;
    padding: 10px 12px;
}

.tech-start-card .tech-customer-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tech-existing-customer-grid {
    align-items: stretch;
}

.tech-customer-pick-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "name action"
        "contact action"
        "meta action";
    align-items: center;
    column-gap: 16px;
    row-gap: 6px;
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
    min-height: 122px;
    padding: 16px 18px;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #eef3f8);
    border: 1px solid #b8c5d3;
    border-left: 8px solid #b91c1c;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 3px 0 #94a3b8;
    text-align: left;
    cursor: pointer;
}

.tech-customer-pick-card strong {
    grid-area: name;
    color: #111827;
    font-size: 1.18rem;
    font-weight: 950;
    line-height: 1.12;
}

.tech-customer-pick-card span {
    grid-area: contact;
    min-width: 0;
    overflow: hidden;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tech-customer-pick-card small {
    grid-area: meta;
    justify-self: start;
    padding: 5px 9px;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 950;
}

.tech-customer-pick-card em {
    grid-area: action;
    justify-self: end;
    align-self: center;
    padding: 9px 13px;
    color: #064e3b;
    background: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 999px;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 950;
    white-space: nowrap;
}

.tech-customer-confirm-modal {
    width: min(560px, calc(100vw - 72px));
    padding: 18px;
    border-radius: 18px;
}

.tech-customer-confirm-modal .panel-heading {
    margin-bottom: 10px;
}

.tech-customer-confirm-modal .panel-heading .eyebrow {
    color: #ffffff !important;
}

.tech-customer-confirm-modal .panel-heading p {
    margin: 4px 0 0;
    color: #64748b;
    font-weight: 850;
}

.tech-customer-confirm-summary {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff, #ecfdf5);
    border: 1px solid #bbf7d0;
    border-left: 7px solid #059669;
    border-radius: 14px;
}

.tech-customer-confirm-summary strong {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 950;
}

.tech-customer-confirm-summary span,
.tech-customer-confirm-summary small {
    color: #475569;
    font-weight: 900;
}

.tech-customer-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.tech-customer-confirm-actions form {
    margin: 0;
}

.tech-customer-confirm-actions .small-action,
.tech-customer-confirm-actions .primary-action {
    min-width: 150px;
}

.zero-price-confirm-modal {
    width: min(430px, calc(100vw - 48px));
    padding: 18px;
    border-radius: 18px;
}

.zero-price-confirm-modal .panel-heading {
    margin-bottom: 10px;
}

.zero-price-confirm-modal .panel-heading p {
    margin: 4px 0 0;
    color: #64748b;
    font-weight: 850;
}

.zero-price-confirm-summary {
    display: grid;
    gap: 6px;
    padding: 13px 14px;
    background: linear-gradient(180deg, #ffffff, #fff7ed);
    border: 1px solid #fdba74;
    border-left: 7px solid #f97316;
    border-radius: 14px;
}

.zero-price-confirm-summary strong {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 950;
}

.zero-price-confirm-summary span {
    color: #9a3412;
    font-weight: 950;
}

.zero-price-confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.zero-price-confirm-actions .small-action,
.zero-price-confirm-actions .primary-action {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 48px;
}

.tech-customer-add-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
}

.tech-customer-add-card h2 {
    align-self: center;
    white-space: nowrap;
}

.tech-customer-add-card .tech-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tech-customer-add-card .tech-wizard-actions {
    flex-wrap: nowrap;
    align-self: end;
    margin: 0;
}

.tech-customer-add-card .tech-wizard-actions .small-action,
.tech-customer-add-card .tech-wizard-actions .primary-action {
    min-width: 118px;
}

.tech-new-customer-card {
    grid-template-columns: minmax(128px, 0.28fr) minmax(0, 1fr) 132px;
    align-items: stretch;
    gap: 10px;
}

.tech-new-customer-title {
    display: grid;
    align-content: center;
    gap: 6px;
    min-width: 0;
}

.tech-new-customer-title p {
    max-width: 150px;
    font-size: 0.84rem;
    line-height: 1.2;
}

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

.tech-mini-panel {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
    padding: 9px;
    background: linear-gradient(180deg, #ffffff, #f4f8fb);
    border: 1px solid #cbd5e1;
    border-left: 5px solid #198754;
    border-radius: 14px;
}

.tech-mini-panel > strong {
    color: #064e3b;
    font-size: 0.84rem;
    font-weight: 950;
    text-transform: uppercase;
}

.tech-new-customer-card .tech-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.tech-new-customer-card label {
    gap: 4px;
    min-width: 0;
    font-size: 0.78rem;
}

.tech-new-customer-card input {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.9rem;
}

.tech-new-customer-card .wide-field {
    grid-column: 1 / -1;
}

.tech-new-customer-card .tech-wizard-actions {
    flex-direction: column;
    align-self: stretch;
    justify-content: center;
    margin: 0;
    gap: 8px;
}

.tech-new-customer-card .tech-wizard-actions .small-action,
.tech-new-customer-card .tech-wizard-actions .primary-action {
    width: 124px;
    min-width: 124px;
    max-width: 124px;
}

.tech-new-customer-card .tech-wizard-actions .primary-action {
    color: #ecfdf5;
    background: linear-gradient(180deg, #059669, #047857);
    border-color: #065f46;
    box-shadow: inset 0 1px rgba(255,255,255,0.28), 0 2px 0 #064e3b;
}

body.ui-modern .tech-start-card .small-action,
body.ui-modern .tech-start-card .primary-action,
body.ui-modern .tech-start-card button:not(.selection-tile):not(.profile-status-tile) {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 0.86rem;
}

body.ui-modern .tech-start-card .tech-lookup-form .primary-action,
body.ui-modern .tech-start-card .tech-compact-choice .primary-action,
body.ui-modern .tech-start-card .tech-wizard-actions .primary-action,
body.ui-modern .tech-start-card .tech-wizard-actions .small-action {
    min-height: 42px;
    max-width: none;
}

body.ui-modern .tech-start-card .tech-nav-row .small-action {
    width: 122px;
    min-width: 122px;
    max-width: 122px;
}

.tech-lookup-form .primary-action,
.tech-print-button {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 66px;
}

.tech-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 12px;
}

.tech-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tech-compact-choice {
    position: relative;
    display: grid;
    gap: 5px;
    min-height: 112px;
    padding: 12px 14px;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #eef3f8);
    border: 1px solid #b8c5d3;
    border-left: 6px solid #b91c1c;
    border-radius: 12px;
    box-shadow: inset 0 1px rgba(255,255,255,0.88), 0 2px 0 #94a3b8;
    text-align: left;
    text-decoration: none;
}

.tech-compact-choice.has-stock {
    border-left-color: #047857;
    background: linear-gradient(180deg, #f0fdf4, #dcfce7);
}

.tech-compact-choice.tech-key-nav-focus {
    outline: 4px solid #ffd34d;
    outline-offset: 3px;
    box-shadow: inset 0 1px rgba(255,255,255,0.88), 0 0 0 4px rgba(255, 211, 77, 0.22), 0 3px 0 #f59e0b;
}

.tech-compact-choice strong {
    font-size: 0.98rem;
}

.tech-compact-choice span,
.tech-compact-choice small {
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 850;
    text-overflow: ellipsis;
}

.tech-compact-choice .primary-action,
.tech-compact-choice .small-action {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 42px;
}

.tech-stock-star {
    position: absolute;
    top: 8px;
    right: 10px;
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #78350f;
    background: #facc15;
    border: 1px solid #f59e0b;
    border-radius: 999px;
    font-size: 0.82rem;
    line-height: 1;
}

.tech-compact-list {
    display: grid;
    gap: 8px;
}

.tech-product-pick {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px 112px 116px;
    gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 10px 12px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: 6px solid #b91c1c;
    border-radius: 12px;
}

.tech-product-pick.has-stock {
    border-left-color: #047857;
    background: #f0fdf4;
}

.tech-product-pick > div {
    position: relative;
    display: grid;
    gap: 3px;
    min-width: 0;
    padding-right: 34px;
}

.tech-product-pick strong,
.tech-product-pick span,
.tech-product-pick small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tech-product-pick strong {
    font-size: 0.95rem;
}

.tech-product-pick span,
.tech-product-pick small {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 850;
}

.tech-product-pick label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 900;
}

.tech-product-pick input {
    min-height: 42px;
}

.tech-product-pick input[readonly] {
    color: #475569;
    background: #f1f5f9;
}

.tech-product-pick .primary-action {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 46px;
}

.tech-part-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 10px;
    margin: 8px 0 10px;
}

.tech-part-search-form input {
    min-height: 48px;
    padding: 9px 13px;
    font-weight: 900;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
}

.tech-part-search-form .small-action {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 48px;
}

.tech-pager {
    display: grid;
    grid-template-columns: minmax(170px, 0.42fr) minmax(90px, 1fr) minmax(170px, 0.42fr);
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.tech-pager strong {
    justify-self: center;
    color: #334155;
    font-size: 0.86rem;
}

.tech-pager .small-action {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 44px;
    line-height: 1.08;
    white-space: normal;
}

.tech-result-card {
    display: grid;
    gap: 8px;
    min-height: 142px;
    padding: 16px;
    color: #111827;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    border: 1px solid #cbd5e1;
    border-left: 8px solid #b91c1c;
    border-radius: 16px;
}

.tech-result-card.selected {
    border-color: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.24), inset 0 1px rgba(255,255,255,0.88), 0 2px 0 #94a3b8;
}

.tech-product-card {
    min-height: 220px;
}

.tech-product-card .primary-action {
    width: 100%;
    min-width: 0;
    max-width: none;
    align-self: end;
}

.tech-inline-start-form {
    display: grid;
    gap: 10px;
}

.tech-result-card > strong {
    font-size: 1.1rem;
}

.tech-result-card > span {
    color: #334155;
    font-weight: 900;
}

.tech-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tech-card-actions form {
    margin: 0;
}

.tech-card-actions .primary-action,
.tech-card-actions .small-action {
    width: 178px;
    min-width: 178px;
    max-width: 178px;
}

.tech-empty {
    display: grid;
    gap: 10px;
    padding: 18px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 16px;
}

.tech-empty .primary-action {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
}

.tech-section-head {
    display: grid;
    gap: 4px;
    margin: 10px 0 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
}

.tech-section-head.compact {
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 10px 12px;
}

.tech-section-head strong {
    font-size: 1.2rem;
}

.tech-work-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.tech-work-summary div,
.tech-receipt-totals div {
    display: grid;
    gap: 4px;
    min-height: 68px;
    padding: 12px 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
}

.tech-work-summary span,
.tech-receipt-totals span {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tech-work-summary strong,
.tech-receipt-totals strong {
    color: #fff;
    font-size: 1.05rem;
}

.tech-stepper {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 18px;
    padding: 0;
    list-style: none;
}

.tech-stepper li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 6px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 900;
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
}

.tech-stepper em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.tech-stepper .tech-step-icon {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #64748b;
    background: #eef2f7;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
}

.tech-stepper .tech-step-icon .app-icon {
    width: 16px;
    height: 16px;
}

.tech-stepper li.active {
    color: #7f1d1d;
    border-color: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.28);
}

.tech-stepper li.done {
    color: #0f172a;
    border-color: #fecaca;
    background: #fff7ed;
}

.tech-stepper li.disabled {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #e5edf5;
}

.tech-stepper li.active .tech-step-icon,
.tech-stepper li.done .tech-step-icon {
    color: #fff;
    background: #b91c1c;
    border-color: #b91c1c;
}

.tech-stepper li.disabled .tech-step-icon {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #dbe3ec;
}

.tech-wizard-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.tech-wizard-actions .primary-action,
.tech-wizard-actions .small-action {
    min-width: 168px;
    max-width: none;
}

.tech-payment-grid {
    margin-top: 14px;
}

.tech-close-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.tech-receipt-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 14px;
    overflow: hidden;
    border-radius: 12px;
}

.tech-table th,
.tech-table td {
    padding: 10px 12px;
    border: 1px solid #dbe3ec;
    text-align: left;
}

.tech-table th {
    width: 170px;
    color: #475569;
    background: #f8fafc;
}

.tech-table.compact th,
.tech-table.compact td {
    padding: 7px 9px;
}

@media (max-width: 900px) {
    .login-bay-grid.tech-action-grid,
    .tech-result-grid,
    .tech-compact-grid,
    .tech-status-strip,
    .tech-work-summary,
    .tech-receipt-totals,
    .tech-form-grid {
        grid-template-columns: 1fr;
    }

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

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

    .tech-product-pick,
    .tech-part-search-form,
    .tech-pager,
    .tech-start-card .tech-form-grid {
        grid-template-columns: 1fr;
    }
}

html body.ui-modern .owner-page .owner-stock-touch-modal,
html body.ui-modern .owner-page .owner-oil-helper-modal {
    width: min(900px, calc((100vw - 96px) * var(--app-display-inverse, 1))) !important;
    max-height: calc((100vh - 96px) * var(--app-display-inverse, 1)) !important;
}

.login-quit-button {
    gap: 8px;
}

.login-quit-shell {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 30;
}

.login-top-quit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 112px;
    min-width: 112px;
    max-width: 112px;
    min-height: 60px;
    padding: 14px 18px;
    color: #ffffff;
    background: #111827;
    border: 0;
    border-radius: 14px;
    box-shadow: none;
    font-size: 1rem;
    font-weight: 900;
}

.login-top-quit:hover,
.login-top-quit:focus-visible {
    background: #020617;
}

label {
    display: grid;
    gap: 7px;
    color: #273341;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #9ba9b8;
    border-radius: 8px;
}

textarea {
    resize: vertical;
}

.primary-action,
.small-action,
.mega-button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--content-button-height);
    padding: 10px 12px;
    color: #fff;
    background: linear-gradient(180deg, var(--red), var(--red-dark));
    box-shadow: inset 0 1px rgba(255,255,255,0.22);
    font-size: 0.9rem;
    line-height: 1.08;
    text-align: center;
}

.primary-action,
.small-action,
.mega-button {
    min-width: var(--content-button-min-width);
    max-width: var(--content-button-max-width);
}

button:not(.selection-tile) {
    min-width: var(--content-button-min-width);
    max-width: var(--content-button-max-width);
}

.primary-action:hover,
.small-action:hover,
.mega-button:hover,
button:hover,
.selection-tile:hover,
.live-count-card:hover {
    filter: brightness(1.03);
}

button:disabled,
.primary-action:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.mega-button {
    width: auto;
    font-size: 1rem;
}

.mega-button.success,
.small-action.success {
    background: linear-gradient(180deg, #23a662, #117844);
}

.mega-button.danger {
    background: linear-gradient(180deg, #d12630, #8a1118);
}

.notice-band,
.hero-workbench,
.record-header,
.clock-screen,
.reference-board {
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    box-shadow: var(--shadow);
}

.notice-band {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.notice-band.compact {
    margin-bottom: 10px;
    padding: 10px 12px;
    box-shadow: none;
}

.hero-workbench,
.record-header,
.clock-screen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--red);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.lead {
    max-width: 760px;
    margin: 6px 0 0;
    font-size: 0.98rem;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(280px, 460px) 120px;
    gap: 10px;
    align-items: end;
}

.stat-grid,
.tile-grid,
.service-grid {
    display: grid;
    gap: 10px;
}

.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 10px;
}

.stat-card,
.selection-tile,
.info-tile {
    min-height: var(--content-button-height);
    padding: 12px;
    color: #101820;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.95), rgba(226,233,240,0.98)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.28) 0, rgba(255,255,255,0.28) 10px, transparent 10px, transparent 20px);
    border: 1px solid #98a8b8;
    border-radius: 8px;
    box-shadow: inset 0 3px rgba(255,255,255,0.85), inset 0 -4px rgba(109,124,140,0.18), 0 3px 0 #8291a2;
    font-weight: 900;
}

.stat-card {
    display: grid;
    gap: 5px;
    text-align: center;
}

.stat-card span {
    font-size: 1.55rem;
    color: var(--red);
}

.selection-tile {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: var(--content-button-height);
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.08;
}

.selection-tile.primary {
    color: #fff;
    background: linear-gradient(180deg, #d42129, #8b1017);
    border-color: #7d0c12;
}

.selection-tile.compact {
    place-items: stretch;
    align-items: center;
    text-align: left;
    min-height: var(--content-button-height);
    padding: 10px;
    line-height: 1.2;
}

.selection-tile.compact strong {
    font-size: 0.96rem;
}

.selection-tile.compact span,
.selection-tile.compact small {
    font-size: 0.8rem;
}

.selection-tile span,
.selection-tile small,
.info-tile span {
    color: var(--muted);
    font-weight: 700;
}

.selection-tile.primary span,
.selection-tile.primary small {
    color: rgba(255,255,255,0.82);
}

.tile-grid.one {
    grid-template-columns: 1fr;
}

.tile-grid.tight-list {
    align-content: start;
    grid-auto-rows: auto;
}

.tile-grid.one.tight-list {
    grid-template-columns: repeat(auto-fit, minmax(var(--content-button-min-width), var(--content-button-max-width)));
}

.tile-grid.tight-list .selection-tile.compact {
    min-height: 89px;
    max-height: 89px;
    overflow: hidden;
}

.tile-grid.tight-list .selection-tile.compact strong,
.tile-grid.tight-list .selection-tile.compact span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tile-grid.tight-list .selection-tile.compact small {
    display: none;
}

.screen-panel > .tile-grid.tight-list {
    flex: 0 0 auto;
    overflow: visible;
}

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

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

.panel {
    padding: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.panel-heading,
.reference-title,
.service-editor-head,
.checkout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-heading {
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
    margin: 0;
    font-size: 1.2rem;
}

.panel-heading span,
.reference-title span,
.detail-list span,
.checkout-row span {
    color: var(--muted);
    font-weight: 800;
}

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

.header-actions .primary-action,
.header-actions .small-action,
.header-actions .mega-button {
    font-size: 0.9rem;
}

.order-action-bar form {
    display: inline-flex;
}

.small-action.danger {
    background: linear-gradient(180deg, #d12630, #8a1118);
}

.screen-page {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.screen-page > .record-header,
.screen-page > .hero-workbench,
.screen-page > .notice-band,
.screen-page > .screen-pager {
    flex: 0 0 auto;
}

.screen-fill {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.screen-grid {
    height: 100%;
    min-height: 0;
}

.screen-panel {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.screen-panel > .tile-grid,
.screen-panel > .service-grid,
.screen-panel > .table-wrap,
.screen-panel > .invoice-lines,
.screen-panel > .product-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.screen-pager {
    display: grid;
    grid-template-columns: minmax(88px, 112px) auto minmax(88px, 112px);
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 8px;
}

.screen-pager strong {
    text-align: center;
    color: #273341;
    white-space: nowrap;
    font-size: 0.9rem;
}

.screen-pager .command-button {
    min-height: var(--content-button-height);
    padding: 10px 12px;
    font-size: 0.88rem;
}

.screen-pager .command-button:last-child {
    justify-self: stretch;
}

.screen-pager .command-button:first-child {
    justify-self: stretch;
}

.screen-steps {
    margin-top: 0;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(340px, 0.85fr) minmax(440px, 1.15fr);
    gap: 16px;
    align-items: start;
    min-height: 0;
}

.form-grid {
    display: grid;
    gap: 12px;
}

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

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inline-search,
.input-action,
.lookup-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 14px;
}

.lookup-form {
    align-items: end;
}

.order-entry-search {
    min-width: min(560px, 100%);
    margin-bottom: 0;
}

.lookup-form input {
    min-height: 62px;
    font-size: 1.35rem;
    text-transform: uppercase;
}

.lookup-form .primary-action {
    min-height: var(--content-button-height);
    min-width: var(--content-button-min-width);
}

.inline-form {
    margin: 0;
}

.inline-form .icon-delete-button {
    display: inline-grid;
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    place-items: center;
    color: #ffffff;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.22), transparent 28%),
        linear-gradient(180deg, #d12630, #8a1118);
    border-color: #741015;
    border-radius: 14px;
    box-shadow: inset 0 2px rgba(255,255,255,0.22), 0 3px 0 #5f070b, 0 8px 18px rgba(138,17,24,0.18);
}

.inline-form .icon-delete-button .app-icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2.2;
}

.inline-form .icon-delete-button:hover,
.inline-form .icon-delete-button:focus-visible {
    color: #ffffff;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.26), transparent 28%),
        linear-gradient(180deg, #ef3340, #a50f1a);
    border-color: #8a1118;
    transform: translateY(-1px);
}

.order-start-card {
    grid-template-columns: minmax(170px, 0.9fr) minmax(240px, 1.2fr) minmax(210px, 0.9fr) minmax(360px, 1.4fr) 128px;
    align-items: center;
    place-items: center stretch;
}

.order-start-card .primary-action {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.order-start-inputs {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(180px, 1fr);
    gap: 8px;
}

.order-start-inputs label {
    gap: 4px;
}

.order-start-inputs input {
    min-height: 40px;
}

.quick-create-form {
    margin-top: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.quick-heading {
    margin-bottom: 0;
}

.form-section-title {
    padding: 8px 10px;
    color: #fff;
    background: linear-gradient(90deg, #273341, #111820);
    border-radius: 8px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.inline-form button,
.service-editor button,
.input-action button,
.inline-search button {
    min-height: var(--content-button-height);
    color: #152131;
    background: linear-gradient(180deg, #fefefe, #dfe6ee);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
}

.check-row input {
    width: auto;
    min-height: auto;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

th {
    color: #273341;
    background: #eef3f8;
    font-size: 0.85rem;
    text-transform: uppercase;
}

td a {
    color: var(--red);
    font-weight: 900;
}

.empty-state {
    margin: 0;
    padding: 18px;
    color: var(--muted);
    background: #f6f8fa;
    border: 1px dashed var(--line);
    border-radius: 8px;
    font-weight: 800;
}

.action-empty-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.action-empty-state .primary-action {
    flex: 0 0 auto;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    color: #fff;
    background: #273341;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.panel-heading .status-pill,
body.ui-modern .panel-heading .status-pill {
    color: #ffffff;
    background: #111827;
}

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

.service-editor {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

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

.detail-list div,
.checkout-row div,
.total-box {
    display: grid;
    gap: 4px;
    padding: 12px;
    background: #f6f8fa;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.detail-list strong,
.checkout-row strong,
.total-box strong {
    font-size: 1.2rem;
}

.checkout-row {
    margin-top: 16px;
    align-items: stretch;
    flex-wrap: wrap;
}

.checkout-row > div {
    min-width: 150px;
}

.touch-order-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.55fr) minmax(560px, 1.45fr);
    gap: 16px;
    align-items: start;
    height: 100%;
    min-height: 0;
}

.vehicle-station,
.touch-work-panel {
    height: 100%;
    min-height: 0;
}

.touch-work-panel {
    display: flex;
    flex-direction: column;
}

.vehicle-hero {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
    padding: 16px;
    color: #fff;
    background: linear-gradient(135deg, #273341, #111820);
    border-radius: 8px;
}

.vehicle-hero strong {
    font-size: 1.35rem;
}

.vehicle-hero span {
    color: rgba(255,255,255,0.78);
    font-weight: 800;
}

.vehicle-history {
    margin-top: 16px;
}

.vehicle-history h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.history-list,
.invoice-lines,
.product-main,
.manual-advisor-line {
    display: grid;
    gap: 10px;
}

.history-row {
    display: grid;
    gap: 4px;
    padding: 10px;
    background: #f6f8fa;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.history-row span,
.invoice-line span,
.invoice-line small,
.product-main small,
.advisor-tile span,
.invoice-ribbon span,
.advisor-breadcrumbs {
    color: var(--muted);
    font-weight: 800;
}

.touch-panel-heading {
    align-items: stretch;
}

.touch-panel-heading > div {
    display: grid;
    gap: 4px;
}

.invoice-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(236,241,246,0.98)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.26) 0, rgba(255,255,255,0.26) 9px, transparent 9px, transparent 18px);
    border: 1px solid #98a8b8;
    border-radius: 8px;
    box-shadow: inset 0 2px rgba(255,255,255,0.86), 0 2px 0 #8291a2;
}

.invoice-line > div:first-child {
    display: grid;
    gap: 5px;
}

.invoice-line-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.invoice-line-actions strong {
    color: var(--red);
    font-size: 1.3rem;
}

.invoice-totals .mega-button {
    width: auto;
    font-size: 1rem;
}

.advisor-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.advisor-breadcrumbs a,
.advisor-breadcrumbs strong {
    color: #152131;
}

.invoice-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #eef3f8;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.invoice-ribbon strong {
    color: var(--red);
    font-size: 1.35rem;
}

.advisor-board {
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 12px;
}

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

.advisor-board .advisor-grid,
.advisor-board .product-grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-auto-rows: minmax(0, 1fr);
    overflow: hidden;
}

.advisor-board .advisor-grid {
    align-content: start;
    grid-auto-rows: 72px;
    gap: 8px;
}

.advisor-board .product-grid {
    align-content: start;
    grid-auto-rows: minmax(150px, auto);
    gap: 16px;
}

.advisor-board .reference-title {
    margin: -12px -12px 10px;
    padding: 10px 510px 10px 12px;
}

.advisor-board .reference-title h1 {
    font-size: 1.2rem;
}

.advisor-tile {
    position: relative;
    min-height: 72px;
    align-content: center;
    gap: 3px;
    overflow: hidden;
    padding: 8px 40px 8px 12px;
    color: #172033;
    background: linear-gradient(180deg, #fff5f5, #fee2e2);
    border-color: #e7a4aa;
}

.advisor-action-modal a.advisor-tile::after {
    content: ">";
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #ffffff;
    background: #b91c1c;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 900;
    transform: translateY(-50%);
}

.advisor-action-modal .advisor-tile:hover,
.advisor-action-modal .advisor-tile:focus {
    background: linear-gradient(180deg, #fee2e2, #fecaca);
    border-color: #b91c1c;
}

.advisor-tile strong {
    font-size: 0.94rem;
}

.advisor-tile span {
    font-size: 0.72rem;
    line-height: 1.1;
}

.advisor-tile small {
    font-size: 0.7rem;
}

.advisor-action-modal .screen-pager {
    display: flex;
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 2;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
}

.advisor-action-modal .screen-pager strong {
    min-width: 170px;
    padding: 0 6px;
    color: #ffffff;
    font-size: 0.95rem;
}

.advisor-action-modal > .panel-heading .small-action,
.advisor-action-modal .screen-pager .command-button {
    display: grid;
    place-items: center;
    width: 144px;
    min-width: 144px;
    max-width: 144px;
    min-height: 64px;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.08;
}

.stock-brand-tile {
    border-width: 2px;
}

.stock-brand-tile.in-stock {
    background: linear-gradient(180deg, #effaf3, #d9f4e4);
    border-color: #55a877;
}

.advisor-action-modal .stock-brand-tile.in-stock::after {
    background: var(--green);
}

.stock-brand-tile.out-stock {
    color: #172033;
    background: linear-gradient(180deg, #f8fafc, #d6dde7);
    border-color: #7c8796;
}

.advisor-action-modal .stock-brand-tile.out-stock::after {
    background: #64748b;
}

.touch-nav-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.command-button.disabled,
.small-action.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.small-action.ghost {
    color: #152131;
    background: linear-gradient(180deg, #fefefe, #dfe6ee);
}

.product-tile {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: 14px;
    align-items: stretch;
    min-height: 150px;
    padding: 14px;
    border: 1px solid #98a8b8;
    border-radius: 8px;
    box-shadow: inset 0 2px rgba(255,255,255,0.82), 0 2px 0 #8291a2;
}

.product-tile.has-oil-uom {
    grid-template-rows: auto auto;
    align-content: start;
    min-height: 192px;
    padding-bottom: 12px;
}

.product-tile.has-oil-uom .product-main {
    grid-column: 1;
    grid-row: 1;
}

.product-tile.has-oil-uom .product-actions {
    grid-column: 2;
    grid-row: 1;
}

.product-tile.has-oil-uom .oil-uom-summary {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: end;
    margin-top: 8px;
}

.product-tile.is-clickable {
    cursor: pointer;
}

.product-tile.is-clickable:hover,
.product-tile.is-clickable:focus {
    border-color: var(--red);
    box-shadow: inset 0 2px rgba(255,255,255,0.82), 0 2px 0 #8291a2, 0 0 0 4px rgba(185,28,28,0.1);
}

.product-tile.is-clickable:focus {
    outline: 3px solid rgba(185,28,28,0.34);
    outline-offset: 2px;
}

.product-tile.is-clickable::after {
    content: "Add";
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    min-width: 44px;
    min-height: 28px;
    padding: 0 10px;
    place-items: center;
    color: #ffffff;
    background: #64748b;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
}

.product-tile.in-stock {
    background: linear-gradient(180deg, #effaf3, #d9f4e4);
    border-color: #7fc69e;
}

.product-tile.in-stock.is-clickable::after {
    background: var(--green);
}

.product-tile.out-stock {
    color: #172033;
    background: linear-gradient(180deg, #f8fafc, #d6dde7);
    border-color: #7c8796;
}

.product-tile.out-stock.is-clickable:hover,
.product-tile.out-stock.is-clickable:focus {
    border-color: #475569;
    box-shadow: inset 0 2px rgba(255,255,255,0.82), 0 2px 0 #8291a2, 0 0 0 4px rgba(100,116,139,0.14);
}

.product-main {
    display: grid;
    align-content: start;
    gap: 3px;
    min-width: 0;
    overflow: hidden;
}

.product-main strong,
.product-main small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-main strong {
    font-size: 1.22rem;
    line-height: 1.15;
    min-height: 1.15em;
}

.product-main small {
    color: var(--muted);
    font-weight: 800;
    line-height: 1.12;
    min-height: 1.12em;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    max-width: 100%;
    min-height: 28px;
    padding: 6px 10px;
    color: #fff;
    background: #273341;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.stock-pill.success {
    background: var(--green);
}

.stock-pill.muted {
    color: #111827;
    background: #b8c3d1;
}

.oil-viscosity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 26px;
    padding: 5px 10px;
    color: #ffffff;
    background: #17457f;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.service-product-tile {
    border: 1px solid #98a8b8;
    background: linear-gradient(180deg, #f0fdf4, #dcfce7);
    border-color: #70b989;
    cursor: default;
}

.service-product-tile button {
    justify-self: center;
}

.product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-content: center;
    align-items: center;
    min-width: 0;
    padding-top: 22px;
}

.product-actions label {
    display: grid;
    gap: 6px;
    min-width: 0;
    font-weight: 900;
}

.product-actions input {
    min-width: 0;
    min-height: 52px;
    font-size: 1rem;
    font-weight: 900;
}

.manual-advisor-line {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.empty-state.compact {
    padding: 12px;
}

.lookup-hero {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(420px, 680px);
    gap: 14px;
    padding: 12px;
    overflow: hidden;
}

.lookup-hero > * {
    min-width: 0;
}

.dashboard-page .hero-workbench h1 {
    font-size: 1.45rem;
}

.dashboard-page .lead {
    max-width: 520px;
    font-size: 0.9rem;
}

.dashboard-search-panel {
    display: block;
    width: 100%;
    max-width: 680px;
    min-width: 0;
    justify-self: end;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.dashboard-lookup-field {
    gap: 4px;
}

.dashboard-lookup-field > span:first-child {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-lookup-field input {
    min-width: 0;
    min-height: 60px;
    padding: 10px 18px;
    border: 0;
    font-size: 1.18rem;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: none;
}

.dashboard-scan-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 0;
    padding: 0;
    background: #fff;
    border: 2px solid #8392a3;
    border-radius: 8px;
    box-shadow: inset 0 2px 5px rgba(18,24,32,0.08);
    overflow: hidden;
}

.dashboard-start-button {
    align-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 60px;
    height: 60px;
    border: 0;
    border-left: 1px solid rgba(18,24,32,0.18);
    border-radius: 0;
    box-shadow: none;
    font-size: 1rem;
}

.dashboard-panel {
    min-height: 0;
}

.dashboard-open-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-open-panel > .panel-heading {
    flex: 0 0 auto;
}

.dashboard-open-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    flex: 1 1 auto;
    align-content: start;
    min-height: 0;
    overflow: hidden;
}

.dashboard-open-panel > .screen-pager {
    flex: 0 0 auto;
    margin: 8px 0 0;
    padding-top: 6px;
    background: rgba(237, 241, 245, 0.92);
    border-top: 1px solid #cbd5e1;
}

.open-order-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.7fr) minmax(160px, 0.9fr) minmax(220px, 1.2fr) minmax(290px, 1fr) minmax(90px, auto);
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: none;
    min-height: var(--content-button-height);
    padding: 10px 12px;
    color: #101820;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(235,240,246,0.96));
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    font-weight: 900;
    text-align: left;
}

button.open-order-row {
    max-width: none;
    min-width: 0;
    justify-content: stretch;
}

.open-order-row:nth-child(even) {
    background: linear-gradient(180deg, rgba(247,250,252,0.96), rgba(225,232,240,0.96));
}

.open-order-cell {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.open-order-cell strong,
.open-order-cell small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.open-order-cell small,
.open-order-checks {
    color: var(--muted);
    font-weight: 800;
}

.open-order-id strong {
    color: var(--red);
}

.order-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 78px;
    min-height: 30px;
    padding: 5px 10px;
    color: #ffffff;
    background: #64748b;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.order-status-pill.status-open {
    background: #087646;
}

.order-status-pill.status-checkout {
    background: #b45309;
}

.order-status-pill.status-closed {
    background: #334155;
}

.order-status-pill.status-void {
    background: #991b1b;
}

.open-order-checks {
    display: grid;
    grid-template-columns: repeat(4, minmax(58px, 1fr));
    gap: 6px;
}

.order-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 32px;
    padding: 5px 6px;
    background: rgba(255,255,255,0.62);
    border-radius: 8px;
    font-size: 0.78rem;
}

.order-check.ok b {
    color: var(--green);
}

.order-check.missing {
    opacity: 0.58;
}

.open-order-total {
    justify-self: end;
    color: var(--red);
    font-size: 1.1rem;
}

.directory-row {
    grid-template-columns: minmax(220px, 1.1fr) minmax(260px, 1.2fr) minmax(130px, 0.6fr) minmax(210px, 0.8fr);
}

.directory-checks {
    grid-template-columns: repeat(3, minmax(58px, 1fr));
}

.customer-profile-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 8px;
    width: min(520px, 100%);
    justify-self: end;
}

.customer-profile-card > div {
    display: grid;
    gap: 4px;
    min-height: 64px;
    align-content: center;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(226,233,240,0.96));
    border: 1px solid #98a8b8;
    border-radius: 8px;
    box-shadow: inset 0 2px rgba(255,255,255,0.82), 0 2px 0 #8291a2;
    text-align: center;
}

.customer-profile-card > .profile-status-tile {
    display: grid;
    gap: 4px;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 64px;
    align-content: center;
    padding: 10px 12px;
    color: var(--ink);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(226,233,240,0.96));
    border: 1px solid #98a8b8;
    border-radius: 8px;
    box-shadow: inset 0 2px rgba(255,255,255,0.82), 0 2px 0 #8291a2;
    text-align: center;
    text-shadow: none;
}

.customer-profile-card > .profile-status-tile.needs strong {
    color: var(--red);
}

.customer-profile-card > .profile-status-tile.ready strong {
    color: var(--green);
}

.customer-profile-card span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-profile-card strong {
    min-width: 0;
    overflow: hidden;
    color: var(--red);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-update-form {
    gap: 12px;
}

.profile-missing-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(82px, 1fr));
    gap: 8px;
}

.customer-panel-actions {
    flex-wrap: nowrap;
}

.customer-panel-actions .inline-form,
.customer-empty-actions .inline-form {
    display: inline-flex;
    margin: 0;
}

.customer-panel-actions .small-action,
.customer-panel-actions .inline-form .small-action,
.customer-empty-actions .primary-action {
    width: var(--content-button-min-width);
    min-width: var(--content-button-min-width);
    max-width: var(--content-button-max-width);
}

.customer-empty-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
}

.customer-action-add {
    color: #ffffff;
    background: linear-gradient(180deg, #2767b1, #17457f);
    border-color: #17457f;
}

.customer-action-invoice {
    color: #ffffff;
    background: linear-gradient(180deg, #1ca66b, #087646);
    border-color: #087646;
}

.customer-action-history {
    color: #ffffff;
    background: linear-gradient(180deg, #344154, #172033);
    border-color: #172033;
}

.no-vehicle-specs {
    color: #475569;
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    border-color: #cbd5e1;
}

.customer-vehicle-row {
    cursor: pointer;
}

.customer-detail-page .modern-customer-vehicle-row {
    grid-template-columns: minmax(250px, 1.1fr) minmax(300px, 1.35fr) minmax(150px, 0.65fr) minmax(220px, 0.9fr);
    gap: 18px;
    min-height: 92px;
    padding: 16px 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 6px solid #b91c1c;
    border-radius: 16px;
    box-shadow: none;
}

.customer-detail-page .modern-customer-vehicle-row:hover,
.customer-detail-page .modern-customer-vehicle-row:focus-visible {
    border-color: #fecaca;
    border-left-color: #b91c1c;
    box-shadow: 0 0 0 4px rgba(185,28,28,0.08);
}

.customer-detail-page .modern-customer-vehicle-row::before {
    display: none;
}

.customer-detail-page .modern-customer-vehicle-row .open-order-cell {
    gap: 5px;
}

.customer-detail-page .modern-customer-vehicle-row .open-order-cell strong {
    color: #111827;
    font-size: 1rem;
}

.customer-detail-page .modern-customer-vehicle-row .open-order-id strong {
    color: #b91c1c;
}

.customer-detail-page .modern-customer-vehicle-row .open-order-cell small {
    color: #64748b;
    font-size: 0.82rem;
}

.customer-detail-page .customer-vehicle-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    justify-self: end;
    width: min(100%, 260px);
}

.customer-detail-page .customer-vehicle-progress .modern-progress-step {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    padding: 4px 0;
    border-radius: 999px;
}

.customer-detail-page .customer-vehicle-progress .modern-progress-step b {
    width: 62px;
    max-width: 100%;
    height: 9px;
    background: #e5e7eb;
    border-radius: 999px;
}

.customer-detail-page .customer-vehicle-progress .modern-progress-step.done b {
    background: #10b981;
}

.customer-detail-page .customer-vehicle-progress .modern-progress-step.next b {
    background: #f87171;
}

.customer-detail-page .customer-vehicle-progress .modern-progress-step small {
    color: #9ca3af;
    font-size: 0.68rem;
    font-weight: 900;
    white-space: nowrap;
}

.customer-detail-page .customer-vehicle-progress .modern-progress-step.done small {
    color: #059669;
}

.customer-detail-page .customer-vehicle-progress .modern-progress-step.next small {
    color: #dc2626;
}

.workflow-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.workflow-guide .info-tile {
    display: grid;
    gap: 6px;
    min-height: 120px;
    align-content: center;
}

.order-match-list {
    gap: 10px;
}

.quick-wizard-pager {
    gap: 6px;
    margin-bottom: 6px;
}

.quick-wizard-pager .command-button {
    min-height: var(--content-button-height);
}

.vehicle-action-trigger {
    border: 1px solid #98a8b8;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(18, 24, 32, 0.58);
}

.action-modal {
    width: min(680px, 100%);
    max-height: calc(100vh - 36px);
    overflow: hidden;
    display: grid;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.32);
}

.vehicle-action-modal {
    width: min(930px, 100%);
}

.add-vehicle-modal {
    width: min(1040px, calc(100vw - 28px));
    grid-template-rows: auto minmax(0, 1fr);
}

.add-vehicle-form {
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.add-vehicle-form .input-action {
    margin-bottom: 0;
}

.add-vehicle-form textarea {
    min-height: 70px;
    resize: none;
}

.advisor-action-modal {
    width: min(1240px, calc(100vw - 24px));
    height: min(820px, calc(100vh - 24px));
    grid-template-rows: auto auto auto minmax(0, 1fr);
}

.advisor-action-modal .advisor-breadcrumbs,
.advisor-action-modal .invoice-ribbon {
    margin-bottom: 0;
}

.advisor-action-modal .advisor-board {
    min-height: 0;
}

.action-modal .panel-heading {
    margin-bottom: 0;
}

.modal-vehicle-summary {
    position: relative;
    display: grid;
    gap: 5px;
    padding: 14px 16px 14px 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f3f6f9);
    border: 1px solid var(--line);
    border-radius: 14px;
    font-weight: 800;
}

.modal-vehicle-summary::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--red);
}

.modal-vehicle-summary strong {
    color: var(--ink);
    font-size: 1.08rem;
    letter-spacing: -0.01em;
}

.modal-vehicle-summary span,
.modal-vehicle-summary small {
    color: var(--muted);
}

.modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(var(--content-button-min-width), var(--content-button-max-width)));
    justify-content: end;
    gap: 10px;
}

.vehicle-modal-actions {
    grid-template-columns: repeat(3, minmax(var(--content-button-min-width), var(--content-button-max-width)));
}

.vehicle-action-modal .primary-action.vehicle-start-action,
body.ui-modern .vehicle-action-modal .vehicle-start-action {
    color: #ffffff;
    background: linear-gradient(180deg, #d12630, #8a1118);
    border-color: #741015;
}

.vehicle-action-modal .small-action.vehicle-edit-action,
body.ui-modern .vehicle-action-modal .vehicle-edit-action {
    color: #ffffff;
    background: linear-gradient(180deg, #2563eb, #174ea6);
    border-color: #123f82;
}

.vehicle-action-modal .small-action.vehicle-history-action,
body.ui-modern .vehicle-action-modal .vehicle-history-action {
    color: #ffffff;
    background: linear-gradient(180deg, #344154, #172033);
    border-color: #111827;
}

.vehicle-action-modal .small-action.modal-cancel-action,
body.ui-modern .vehicle-action-modal .modal-cancel-action {
    color: #ffffff;
    background: linear-gradient(180deg, #64748b, #334155);
    border-color: #1f2937;
}

.vehicle-action-modal .vehicle-start-action:hover,
.vehicle-action-modal .vehicle-edit-action:hover,
.vehicle-action-modal .vehicle-history-action:hover,
.vehicle-action-modal .modal-cancel-action:hover {
    filter: brightness(1.08) saturate(1.04);
}

.vehicle-specs-button {
    min-width: var(--content-button-min-width);
}

.part-search-button.small-action {
    color: #ffffff;
    background: linear-gradient(180deg, #1f7a59, #0f5132);
    border-color: #0f5132;
}

.info-action.small-action,
.vehicle-specs-button.info-action {
    color: #ffffff;
    background: linear-gradient(180deg, #2767b1, #17457f);
    border-color: #17457f;
}

.cancel-action.small-action {
    color: #ffffff;
    background: linear-gradient(180deg, #475569, #1f2937);
    border-color: #1f2937;
}

.close-order-trigger.mega-button,
.close-final-action.mega-button {
    color: #ffffff;
    background: linear-gradient(180deg, #1ca66b, #087646);
    border-color: #087646;
}

.close-order-modal,
.part-search-modal {
    width: min(1040px, calc(100vw - 28px));
}

.close-order-modal {
    grid-template-rows: auto auto auto;
}

.close-order-heading h2,
.part-search-heading h2 {
    font-size: 1.55rem;
}

.close-order-form {
    display: grid;
    gap: 14px;
}

.close-order-form input {
    min-height: 62px;
    font-size: 1.45rem;
    font-weight: 900;
}

.close-print-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(var(--content-button-min-width), var(--content-button-max-width)));
    justify-content: end;
    gap: 10px;
}

.print-action.small-action {
    color: #ffffff;
    background: linear-gradient(180deg, #344154, #172033);
    border-color: #172033;
}

.invoice-print-action.small-action {
    background: linear-gradient(180deg, #b51218, #7d0c12);
    border-color: #7d0c12;
}

.part-search-modal {
    height: min(760px, calc(100vh - 28px));
    grid-template-rows: auto auto minmax(0, 1fr);
}

.part-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(var(--content-button-min-width), var(--content-button-max-width));
    gap: 10px;
    align-items: end;
}

.part-search-form input {
    min-height: 58px;
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
}

.part-search-board {
    margin: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.part-search-board .reference-title {
    margin-bottom: 10px;
}

.part-search-board .advisor-grid,
.part-search-board .product-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.part-category-grid {
    grid-auto-rows: 72px;
}

.part-search-products {
    grid-auto-rows: 132px;
    gap: 10px;
}

.part-search-modal .product-tile {
    min-height: 132px;
    padding: 12px;
}

.part-search-modal .product-main {
    gap: 4px;
    overflow: hidden;
}

.part-search-modal .product-actions {
    gap: 6px;
}

.part-search-modal .product-actions input {
    min-height: 42px;
}

.vehicle-specs-modal {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 12px;
    width: min(1040px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow: hidden;
}

.vehicle-specs-modal .panel-heading {
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.vehicle-specs-heading .eyebrow {
    margin-bottom: 6px;
}

.vehicle-specs-heading h2 {
    font-size: 1.55rem;
    letter-spacing: -0.02em;
}

.vehicle-specs-heading span {
    display: block;
    max-width: 560px;
}

.vehicle-specs-close.small-action {
    min-width: 118px;
    max-width: 118px;
    min-height: 58px;
    justify-self: end;
}

.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    min-height: 0;
    align-content: start;
    overflow: hidden;
}

.vehicle-specs-status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 12px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-weight: 800;
}

.vehicle-specs-status::before {
    content: "i";
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    color: #ffffff;
    background: #64748b;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 900;
}

.vehicle-specs-status.ok {
    color: #0f5132;
    background: #eaf7ef;
    border-color: #95d5ad;
}

.vehicle-specs-status.ok::before {
    content: "OK";
    font-size: 0.64rem;
    background: #198754;
}

.vehicle-specs-status.warning {
    color: #663c00;
    background: #fff7e6;
    border-color: #ffd480;
}

.vehicle-specs-status.warning::before {
    content: "!";
    background: #b7791f;
}

.vehicle-specs-status.error {
    color: #8b0000;
    background: #fff0f0;
    border-color: #f3a6a6;
}

.vehicle-specs-status.error::before {
    content: "x";
    background: #b91c1c;
}

.vehicle-specs-grid div,
.vehicle-specs-grid .spec-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    gap: 7px;
    min-height: 104px;
    padding: 13px 62px 13px 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f6f8fa);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.vehicle-specs-grid .spec-card {
    cursor: pointer;
}

.vehicle-specs-grid .spec-card:hover,
.vehicle-specs-grid .spec-card:focus,
.vehicle-specs-grid .spec-card.is-selected {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(185,28,28,0.1);
    outline: 0;
}

.vehicle-specs-grid .spec-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: #cbd5e1;
}

.vehicle-specs-grid .spec-card.is-primary::before {
    background: var(--red);
}

.vehicle-specs-grid .spec-card.is-parts::before {
    background: var(--green);
}

.vehicle-specs-grid .spec-card.is-external::before {
    background: #2563eb;
}

.vehicle-specs-grid .spec-card::after {
    content: "Info";
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    min-width: 38px;
    height: 24px;
    padding: 0 8px;
    place-items: center;
    color: #ffffff;
    background: #64748b;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vehicle-specs-grid .spec-card.is-primary::after,
.vehicle-specs-grid .spec-card.is-selected::after {
    background: var(--red);
}

.vehicle-specs-grid .spec-card.is-parts::after {
    background: var(--green);
}

.vehicle-specs-grid .spec-card.is-external::after {
    background: #2563eb;
}

.vehicle-specs-grid span,
.vehicle-specs-grid small {
    color: var(--muted);
    font-weight: 800;
}

.vehicle-specs-grid strong {
    color: var(--ink);
    display: -webkit-box;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.vehicle-specs-grid .spec-card.is-parts strong {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vehicle-specs-grid small {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.vehicle-spec-detail {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 18px;
    z-index: 8;
    display: grid;
    gap: 10px;
    grid-template-rows: auto auto;
    padding: 14px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #dbe3ed;
    border-top: 5px solid var(--red);
    border-radius: 20px;
    box-shadow: 0 26px 80px rgba(18,24,32,0.24);
    max-height: min(405px, calc(100vh - 180px));
    overflow: hidden;
}

.vehicle-spec-detail.has-products {
    grid-template-rows: auto minmax(0, 1fr);
    max-height: min(398px, calc(100vh - 170px));
}

.vehicle-spec-detail[hidden] {
    display: none;
}

.vehicle-spec-detail-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5edf5;
}

.vehicle-spec-detail-heading div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.vehicle-spec-detail-heading span,
.vehicle-spec-detail-body span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vehicle-spec-detail-heading strong {
    color: var(--ink);
    font-size: 1.26rem;
    line-height: 1.14;
    overflow-wrap: anywhere;
}

.vehicle-spec-detail-heading .small-action {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
    min-height: 52px;
}

.vehicle-spec-detail-body {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 10px;
}

.vehicle-spec-detail-body div {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
}

.vehicle-spec-detail-body strong {
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.vehicle-spec-detail.has-products .vehicle-spec-detail-body {
    display: none;
}

.vehicle-spec-product-table {
    display: grid;
    gap: 8px;
    min-height: 0;
    max-height: min(230px, 32vh);
    overflow: auto;
    padding: 0 4px 2px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    scrollbar-color: #94a3b8 transparent;
}

.vehicle-spec-product-table[hidden] {
    display: none;
}

.vehicle-spec-product-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.72fr) minmax(170px, 1fr) minmax(142px, 168px);
    gap: 16px;
    align-items: center;
    min-height: 58px;
    padding: 10px 12px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-left: 5px solid #94a3b8;
    border-radius: 14px;
    box-shadow: 0 5px 14px rgba(15,23,42,0.05);
}

.vehicle-spec-product-row.is-stocked {
    background: linear-gradient(90deg, #ecfdf5 0%, #ffffff 48%);
    border-color: #bbf7d0;
    border-left-color: #059669;
}

.vehicle-spec-product-row.is-missing {
    background: linear-gradient(90deg, #f8fafc 0%, #ffffff 52%);
    border-left-color: #64748b;
}

.vehicle-spec-product-head {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 32px;
    padding-block: 6px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e5edf5;
    border-left: 5px solid #cbd5e1;
    box-shadow: none;
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vehicle-spec-product-row strong,
.vehicle-spec-product-row code {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-spec-product-row strong {
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: 0.01em;
}

.vehicle-spec-product-row code {
    padding: 0;
    color: #111827;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 950;
}

.spec-stock-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 950;
    text-decoration: none;
    touch-action: manipulation;
}

.spec-stock-link.in-stock {
    background: linear-gradient(180deg, #10b981, #047857);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.16);
}

.spec-stock-link.search-stock {
    background: linear-gradient(180deg, #64748b, #334155);
    box-shadow: 0 8px 16px rgba(51, 65, 85, 0.14);
}

.spec-stock-link:hover,
.spec-stock-link:focus-visible {
    color: #ffffff;
    filter: brightness(1.04);
}

.vehicle-specs-modal.spec-detail-open .vehicle-specs-grid {
    filter: saturate(0.88) brightness(0.96);
}

.modal-actions .primary-action,
.modal-actions .small-action,
.modal-start-form .primary-action,
.modal-start-form .small-action {
    width: 100%;
    min-height: var(--content-button-height);
}

.modal-start-form {
    display: grid;
    gap: 10px;
}

.vehicle-edit-form {
    gap: 8px;
}

.vehicle-edit-form .form-grid.two {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
}

.vehicle-edit-form textarea {
    min-height: 62px;
    resize: none;
}

.quick-step {
    display: none;
    gap: 7px;
    min-height: 0;
}

.quick-step.active {
    display: grid;
}

.quick-step .helper-text {
    margin: 0;
}

.customer-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.customer-mode-tabs button {
    min-width: 0;
    max-width: none;
    min-height: 48px;
    color: #152131;
    background: linear-gradient(180deg, #fefefe, #dfe6ee);
}

.customer-mode-tabs button.active {
    color: #fff;
    background: linear-gradient(180deg, var(--red), var(--red-dark));
}

body.ui-modern .quick-create-modal .customer-mode-tabs button {
    color: #111827;
    background: #f5f5f5;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

body.ui-modern .quick-create-modal .customer-mode-tabs button.active {
    color: #ffffff;
    background: #b91c1c;
    border-color: #b91c1c;
}

.customer-mode-panel {
    display: grid;
    gap: 8px;
    min-height: 0;
}

.customer-pick-list {
    display: grid;
    gap: 6px;
    max-height: 185px;
    overflow: hidden;
}

.customer-pick {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f6f8fa;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.customer-pick input {
    width: auto;
    min-height: auto;
}

.customer-pick span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.customer-pick small {
    color: var(--muted);
    font-weight: 800;
}

.quick-create-form[data-quick-wizard] {
    gap: 8px;
    margin-top: 0;
    padding: 10px;
}

.quick-miss-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 170px;
}

.quick-miss-shell .action-empty-state {
    min-height: 116px;
    margin: 0;
    align-content: center;
}

.match-confirm-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(var(--content-button-min-width), var(--content-button-max-width));
    align-items: stretch;
    gap: 12px;
    min-height: 176px;
}

.match-confirm-shell .action-empty-state {
    min-height: 132px;
    margin: 0;
    align-content: center;
}

.match-confirm-list {
    display: grid;
    gap: 10px;
    min-width: min(390px, 34vw);
}

.match-confirm-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 72px;
    padding: 12px 14px;
    color: var(--ink);
    text-align: left;
    background: linear-gradient(180deg, #ffffff, #e8eef5);
    border: 1px solid #9aabbc;
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 3px 0 #8796a6;
}

.match-confirm-card span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.match-confirm-card small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-confirm-card b {
    color: var(--red);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.quick-create-backdrop {
    padding: 12px;
}

.quick-create-modal {
    width: min(920px, calc((100vw - 32px) * var(--app-display-inverse, 1)));
    height: min(548px, calc((100vh - 32px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 32px) * var(--app-display-inverse, 1));
    grid-template-rows: minmax(0, 1fr);
    padding: 12px 14px;
}

.quick-create-modal .quick-create-form[data-quick-wizard] {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.quick-create-modal .quick-heading {
    align-items: start;
    margin: 0;
    min-height: 58px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dbe3ed;
}

.quick-create-modal .quick-heading h2 {
    margin: 2px 0 1px;
    font-size: 1.32rem;
    line-height: 1.05;
}

.quick-create-modal .quick-heading .small-action {
    min-width: 112px;
    max-width: 112px;
    min-height: 46px;
}

.quick-create-modal .quick-wizard-pager {
    grid-template-columns: minmax(92px, 112px) minmax(0, 1fr) minmax(92px, 112px);
    justify-content: stretch;
    gap: 8px;
    margin: 0;
    padding: 6px;
    background:
        linear-gradient(180deg, #f8fafc, #e8eef5);
    border: 1px solid #c9d5e3;
    border-radius: 16px;
}

.quick-create-modal .quick-wizard-pager .command-button {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 42px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: none;
}

.quick-create-modal .quick-wizard-pager .command-button:not(:disabled) {
    color: #ffffff;
    background: #b91c1c;
    border-color: #b91c1c;
}

.quick-create-modal .quick-wizard-pager strong {
    display: inline-grid;
    min-height: 42px;
    place-items: center;
    color: #111827;
    background: #ffffff;
    border: 1px solid #dbe3ed;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quick-create-modal .quick-step {
    min-height: 0;
    overflow: hidden;
    align-content: start;
}

.quick-create-modal .quick-step.active {
    display: grid;
}

.match-confirm-modal .quick-create-form[data-quick-wizard],
.match-confirm-modal .match-existing-form {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.match-confirm-modal .match-existing-form {
    height: auto;
    max-height: 100%;
    grid-template-rows: auto auto auto;
    align-content: start;
}

.match-confirm-modal:has(.match-existing-form) {
    height: auto;
    max-height: calc(100vh - 48px);
    width: min(980px, calc(100vw - 48px));
}

.match-confirm-modal .quick-step {
    min-height: 0;
    overflow: hidden;
    align-content: start;
}

.modal-vehicle-summary.compact {
    padding-block: 10px;
}

.plate-change-warning {
    padding: 12px 14px;
    color: #663c00;
    background: #fff6df;
    border: 1px solid #ffd480;
    border-radius: 10px;
    font-weight: 900;
}

.existing-order-confirm {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
    gap: 12px;
    align-items: stretch;
}

.existing-order-vehicle-card {
    gap: 10px;
    min-height: 176px;
    padding: 18px 20px 18px 24px;
}

.existing-order-vehicle-card > strong {
    font-size: 1.25rem;
}

.existing-order-label {
    justify-self: start;
    width: auto;
    padding: 4px 10px;
    color: #ffffff !important;
    background: #b91c1c;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.existing-order-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.existing-order-facts span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px 12px;
    color: #111827;
    background: #f8fafc;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
}

.existing-order-facts b {
    color: #64748b;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.existing-order-ticket {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    min-height: 176px;
    padding: 20px 18px;
    color: #fff;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.12), transparent 35%),
        linear-gradient(180deg, #162437, #07111d);
    border: 1px solid #111820;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}

.existing-order-ticket span {
    color: rgba(255,255,255,0.76);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.existing-order-ticket strong {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.existing-order-ticket small {
    color: rgba(255,255,255,0.72);
    font-weight: 850;
}

.match-final-actions {
    grid-template-columns: minmax(150px, 180px) minmax(260px, 320px);
    align-items: stretch;
    justify-content: end;
    padding-top: 2px;
}

.match-final-actions .stay-here-action {
    color: #111827;
    background: #f3f4f6;
}

.match-final-actions .open-existing-action,
body.ui-modern .match-final-actions .open-existing-action {
    color: #ffffff;
    background: #b91c1c;
}

body.ui-modern .existing-order-vehicle-card,
body.ui-modern .existing-order-facts span {
    background: #ffffff;
}

body.ui-modern .match-confirm-modal:has(.match-existing-form) {
    border-radius: 24px;
}

.quick-create-modal .quick-step .input-action {
    grid-template-columns: minmax(0, 1fr) minmax(88px, 104px);
    gap: 8px;
}

.quick-create-modal .quick-step .input-action button {
    min-width: 0;
    max-width: none;
    min-height: 38px;
    color: #ffffff;
    background: #111827;
    border-color: #111827;
    border-radius: 12px;
}

.quick-create-modal .customer-pick-list {
    max-height: 214px;
}

.quick-create-modal .mega-button {
    justify-self: end;
    min-width: 220px;
}

.quick-step .input-action {
    margin-bottom: 0;
}

.quick-step label {
    gap: 4px;
}

.quick-step input,
.quick-step select,
.quick-step textarea {
    min-height: 36px;
    padding: 7px 9px;
}

.quick-create-modal .quick-step input,
.quick-create-modal .quick-step select,
.quick-create-modal .quick-step textarea {
    min-height: 38px;
    padding: 6px 9px;
    border-radius: 12px;
}

.quick-step .form-grid {
    gap: 7px;
}

.quick-intake-step {
    gap: 7px;
    height: 100%;
    min-height: 0;
    padding: 9px;
    background:
        linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #d7e0eb;
    border-radius: 18px;
}

.quick-step-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3px 10px;
    align-items: center;
    min-height: 38px;
}

.quick-step-head .eyebrow {
    grid-row: 1 / span 2;
    align-self: center;
    padding: 5px 8px;
    color: #ffffff;
    background: #b91c1c;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.1em;
}

.quick-step-head h3 {
    margin: 0;
    color: #111827;
    font-size: 1rem;
    line-height: 1.05;
}

.quick-step-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.15;
}

.quick-intake-grid {
    display: grid;
    grid-template-columns: minmax(190px, 0.36fr) minmax(0, 1fr);
    gap: 9px;
    min-height: 0;
}

.quick-summary-card,
.quick-entry-card {
    display: grid;
    min-height: 0;
    padding: 10px;
    border-radius: 16px;
}

.quick-summary-card {
    align-content: start;
    gap: 6px;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 8%, rgba(255,255,255,0.16), transparent 30%),
        linear-gradient(180deg, #172033, #0b1220);
    border: 1px solid #111827;
}

.quick-summary-kicker {
    justify-self: start;
    padding: 4px 7px;
    color: #ffffff;
    background: #b91c1c;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.quick-summary-card strong {
    overflow-wrap: anywhere;
    font-size: 1.12rem;
    line-height: 1.06;
}

.quick-summary-card small {
    color: rgba(255,255,255,0.78);
    font-weight: 900;
    font-size: 0.76rem;
}

.quick-summary-facts {
    display: grid;
    gap: 5px;
    margin-top: 3px;
}

.quick-summary-facts span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 7px 8px;
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-summary-facts b {
    color: rgba(255,255,255,0.64);
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quick-entry-card {
    gap: 6px;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
}

.quick-wide-field,
.quick-create-modal .wide-field {
    grid-column: 1 / -1;
}

.quick-create-modal .quick-vehicle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.quick-create-modal .quick-vehicle-grid label:nth-child(5) {
    grid-column: span 2;
}

.quick-customer-step .form-grid.two {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.quick-customer-step .customer-mode-panel[data-customer-panel="new"] .form-grid.two label:nth-child(5),
.quick-customer-step .customer-mode-panel[data-customer-panel="new"] .form-grid.two label:nth-child(6) {
    grid-column: span 2;
}

.quick-customer-step .customer-mode-panel[data-customer-panel="new"] .form-grid.two label:nth-child(7),
.quick-customer-step .customer-mode-panel[data-customer-panel="new"] .form-grid.two label:nth-child(8),
.quick-customer-step .customer-mode-panel[data-customer-panel="new"] .form-grid.two label:nth-child(9) {
    grid-column: span 1;
}

.quick-customer-step .customer-mode-panel[data-customer-panel="new"] .form-grid.two .wide-field {
    grid-column: span 2;
}

.quick-customer-step label {
    gap: 2px;
    font-size: 0.78rem;
}

.quick-customer-step .customer-mode-tabs {
    gap: 6px;
}

.quick-customer-step .customer-mode-tabs button {
    min-height: 40px;
}

.quick-customer-step .customer-mode-panel {
    gap: 6px;
}

.quick-customer-step .helper-text {
    padding: 6px 8px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #d7e0eb;
    border-radius: 12px;
    font-size: 0.76rem;
}

.quick-create-modal .quick-customer-step input,
.quick-create-modal .quick-customer-step select,
.quick-create-modal .quick-customer-step textarea {
    min-height: 34px;
    padding: 5px 8px;
}

.quick-create-modal .customer-pick {
    min-height: 62px;
    padding: 9px 10px;
}

.quick-create-modal .customer-pick small + small {
    color: #1d4ed8;
}

.quick-odometer-step {
    align-content: center;
}

.quick-odometer-step .form-grid.two {
    grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
    gap: 10px;
}

.total-box {
    min-width: 180px;
    text-align: right;
}

.total-box strong {
    color: var(--red);
    font-size: 2rem;
}

.vin-message {
    min-height: 22px;
    color: var(--muted);
    font-weight: 800;
}

.vin-message.ok {
    color: #087646;
}

.vin-message.error {
    color: #a20e17;
}

.reference-board {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(218,226,235,0.94)),
        repeating-linear-gradient(135deg, #c8d1dc 0, #c8d1dc 18px, #b8c3cf 18px, #b8c3cf 20px);
}

.reference-title {
    margin: -20px -20px 16px;
    padding: 16px 20px;
    color: #fff;
    background: linear-gradient(90deg, var(--red-dark), var(--red));
    border-radius: 8px 8px 0 0;
}

.reference-title .eyebrow,
.reference-title span {
    color: rgba(255,255,255,0.84);
}

.reference-grid .selection-tile {
    min-height: 76px;
    font-size: 1.08rem;
}

/* PitPilot service-bay polish: visual richness without changing the workflow. */
body {
    background:
        radial-gradient(circle at 15% 8%, rgba(255,255,255,0.92), transparent 24%),
        linear-gradient(180deg, rgba(242,246,250,0.94), rgba(224,232,241,0.94)),
        repeating-linear-gradient(135deg, #e4eaf1 0, #e4eaf1 12px, #d2dbe6 12px, #d2dbe6 14px);
}

.command-bar {
    gap: 10px;
    padding: 7px 12px;
    max-height: var(--command-bar-height, 96px);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02) 38%, rgba(0,0,0,0.18)),
        linear-gradient(90deg, #6e070d, #b51218 46%, #d12630);
    border-bottom: 5px solid #101820;
    box-shadow: 0 10px 24px rgba(0,0,0,0.26);
    transition: max-height 180ms ease, padding 180ms ease, border-width 180ms ease, box-shadow 180ms ease;
}

.command-bar-toggle {
    position: fixed;
    top: calc(var(--command-bar-height, 96px) - 14px);
    left: 50%;
    z-index: 1805;
    display: grid;
    width: 74px;
    min-height: 28px;
    padding: 0;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(180deg, #202a36, #101820);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 0 0 999px 999px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    user-select: none;
    transform: translateX(-50%);
    transition: top 180ms ease, background 120ms ease;
}

body.ui-modern .command-bar-toggle {
    z-index: 3200;
    width: 96px;
    min-height: 34px;
    color: #ffffff;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border: 0;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

body.ui-modern.command-bar-collapsed .command-bar-toggle {
    background: linear-gradient(180deg, #dc2626, #b91c1c);
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.28);
}

body.ui-modern.work-order-detail-page .command-bar-toggle {
    z-index: 4200;
}

.command-bar-toggle:hover,
.command-bar-toggle:focus-visible {
    background: linear-gradient(180deg, #b91c1c, #7f1d1d);
}

body.command-bar-slide-disabled .command-bar {
    max-height: var(--command-bar-height, 96px) !important;
    min-height: auto !important;
    pointer-events: auto !important;
}

body.command-bar-slide-disabled .command-bar-toggle {
    display: none !important;
}

body.command-bar-collapsed .command-bar {
    max-height: 0 !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom-width: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
}

html.command-bar-collapsed-preload .command-bar {
    max-height: 0 !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom-width: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
    transition: none !important;
}

body.command-bar-collapsed .command-bar-toggle {
    top: 0;
    border-radius: 0 0 999px 999px;
}

html.command-bar-collapsed-preload .command-bar-toggle {
    top: 0;
    border-radius: 0 0 999px 999px;
    transition: none !important;
}

.brand-block {
    min-width: 210px;
}

.brand-mark {
    background:
        linear-gradient(180deg, #273341, #0c1117);
    border-color: rgba(255,255,255,0.42);
    box-shadow: inset 0 2px rgba(255,255,255,0.22), 0 4px 10px rgba(0,0,0,0.28);
}

.command-button,
.primary-action,
.small-action,
.mega-button,
button {
    position: relative;
    overflow: hidden;
    border-color: rgba(18, 24, 32, 0.26);
    text-shadow: 0 1px rgba(0,0,0,0.18);
    transition: filter 0.12s ease, box-shadow 0.12s ease;
}

.command-button::after,
.primary-action::after,
.small-action::after,
.mega-button::after,
button::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 46%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0));
}

.command-button {
    border-bottom: 3px solid rgba(0,0,0,0.3);
    border-radius: 8px;
    background:
        linear-gradient(180deg, #3675c5, #184d92);
    box-shadow: inset 0 1px rgba(255,255,255,0.32), 0 2px 0 rgba(0,0,0,0.18);
}

.command-button.hot {
    color: #101820;
    background:
        linear-gradient(180deg, #ffffff, #dce8f5);
}

.command-button.ghost {
    color: #101820;
    background:
        linear-gradient(180deg, #fdfefe, #d8e1eb);
}

.command-button.success {
    background:
        linear-gradient(180deg, #25ad68, #117844);
}

.command-button.warn {
    background:
        linear-gradient(180deg, #ffe07a, #d99b00);
}

.command-button.active {
    color: #fff;
    background:
        linear-gradient(180deg, #2a3645, #101820);
    border-color: #0a0e13;
    box-shadow: inset 0 0 0 2px rgba(255,211,77,0.26), 0 2px 0 rgba(0,0,0,0.42);
}

.command-button.active kbd {
    background: rgba(255,211,77,0.22);
}

.command-button:hover,
.primary-action:hover,
.small-action:hover,
.mega-button:hover,
button:hover,
.selection-tile:hover,
.live-count-card:hover {
    filter: brightness(1.06) saturate(1.04);
}

.live-count-strip {
    padding: 8px 12px;
    background:
        linear-gradient(180deg, #edf3f8, #cfd9e4);
    border-bottom: 2px solid #97a7b8;
    box-shadow: inset 0 -1px rgba(255,255,255,0.7);
}

.live-count-card {
    align-content: center;
    min-height: 68px;
    background:
        linear-gradient(180deg, #ffffff, #e4ecf4);
    border: 1px solid #94a5b7;
    box-shadow: var(--shadow-press);
}

.live-count-card span {
    color: var(--red);
    text-shadow: 0 1px rgba(255,255,255,0.8);
}

.live-count-card.active {
    background:
        linear-gradient(180deg, #2d3a49, #101820);
    box-shadow: inset 0 2px rgba(255,255,255,0.12), 0 3px 0 #06090c;
}

.workspace,
.login-workspace {
    padding-top: 12px;
}

.login-card,
.panel,
.notice-band,
.hero-workbench,
.record-header,
.clock-screen,
.reference-board {
    border-color: #b8c4d1;
    box-shadow: var(--shadow-deep);
}

.panel,
.hero-workbench,
.record-header,
.clock-screen,
.reference-board,
.quick-create-form {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,247,250,0.98));
}

.panel,
.hero-workbench,
.record-header,
.clock-screen {
    position: relative;
}

.panel::before,
.hero-workbench::before,
.record-header::before,
.clock-screen::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--red-dark), var(--red), #ffd34d);
    border-radius: 8px 8px 0 0;
}

.panel-heading {
    min-height: 52px;
    padding-bottom: 8px;
}

.panel-heading h2 {
    font-size: 1.32rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    color: #fff;
    background: linear-gradient(180deg, var(--red), var(--red-dark));
    border-radius: 999px;
    letter-spacing: 0.12em;
}

.lookup-hero {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(238,244,249,0.98)),
        repeating-linear-gradient(135deg, rgba(39,51,65,0.05) 0, rgba(39,51,65,0.05) 12px, transparent 12px, transparent 24px);
}

.lookup-hero h1 {
    font-size: 1.65rem;
}

.dashboard-scan-control {
    border-color: #748497;
    background: #fff;
    box-shadow:
        inset 0 3px 8px rgba(18,24,32,0.1),
        0 3px 0 #8a9aab;
}

.dashboard-lookup-field input {
    background:
        linear-gradient(180deg, #fff, #f8fafc);
    color: #07111d;
    letter-spacing: 0.02em;
}

.dashboard-lookup-field input::placeholder {
    color: #7b8794;
}

.dashboard-start-button,
.primary-action,
.mega-button {
    background:
        linear-gradient(180deg, #d12630, #8a1118);
    border-color: #741015;
}

.mega-button.success,
.small-action.success {
    background:
        linear-gradient(180deg, #24aa66, #0f733f);
    border-color: #0d6638;
}

.small-action.ghost,
.inline-form button,
.service-editor button,
.input-action button,
.inline-search button {
    color: #101820;
    text-shadow: none;
    background:
        linear-gradient(180deg, #ffffff, #dce5ee);
    border-color: #96a6b8;
    box-shadow: var(--shadow-press);
}

input,
select,
textarea {
    border-color: #8e9daf;
    background:
        linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: inset 0 2px 5px rgba(18,24,32,0.07);
    font-weight: 800;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: inset 0 2px 5px rgba(18,24,32,0.06), 0 0 0 3px rgba(35,93,168,0.16);
}

.open-order-row {
    position: relative;
    overflow: hidden;
    border: 1px solid #c5d0dc;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(236,242,248,0.98));
    box-shadow: inset 0 1px rgba(255,255,255,0.85), 0 2px 0 #a1adba;
}

.open-order-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--red), var(--red-dark));
}

.open-order-row:nth-child(even) {
    background:
        linear-gradient(180deg, rgba(250,252,254,0.98), rgba(228,236,244,0.98));
}

.open-order-row:hover {
    background:
        linear-gradient(180deg, #ffffff, #e9f2fb);
    border-color: #8aa0b7;
}

.open-order-cell strong {
    font-size: 1.02rem;
}

.open-order-cell small {
    color: #637083;
}

.order-check {
    border: 1px solid rgba(142,157,175,0.52);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.9), rgba(232,238,245,0.9));
    box-shadow: inset 0 1px rgba(255,255,255,0.7);
}

.order-check.ok {
    color: #075331;
    border-color: rgba(25,135,84,0.35);
    background:
        linear-gradient(180deg, #f1fbf5, #dff6e9);
}

.open-order-total,
.invoice-line-actions strong,
.invoice-ribbon strong,
.total-box strong {
    text-shadow: 0 1px rgba(255,255,255,0.8);
}

.empty-state {
    border-color: #b4c2d0;
    background:
        linear-gradient(180deg, #f9fbfd, #eef3f8);
}

.action-empty-state {
    min-height: 86px;
}

.selection-tile,
.info-tile,
.customer-profile-card > div,
.invoice-line,
.product-tile {
    box-shadow: var(--shadow-press);
}

.selection-tile.primary,
.advisor-tile.primary {
    background:
        linear-gradient(180deg, #d12630, #8a1118);
}

.stock-brand-tile.in-stock,
.product-tile.in-stock {
    background:
        linear-gradient(180deg, #f4fcf7, #dff6e9);
    border-color: #56ad79;
}

.stock-brand-tile.out-stock,
.product-tile.out-stock {
    background:
        linear-gradient(180deg, #f7f9fb, #dfe6ee);
}

.quick-wizard-pager {
    padding: 6px;
    background:
        linear-gradient(180deg, #eef3f8, #d9e2ec);
    border: 1px solid #b8c4d1;
    border-radius: 8px;
}

.quick-wizard-pager strong {
    color: var(--chrome-dark);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-section-title {
    background:
        linear-gradient(90deg, var(--chrome-dark), var(--chrome-mid));
    box-shadow: inset 0 1px rgba(255,255,255,0.12);
}

.customer-mode-tabs button.active {
    background:
        linear-gradient(180deg, #2a3645, #101820);
}

.customer-pick {
    background:
        linear-gradient(180deg, #ffffff, #eef3f8);
}

.modal-backdrop {
    background:
        radial-gradient(circle at center, rgba(18,24,32,0.46), rgba(18,24,32,0.74));
}

.action-modal {
    box-shadow: 0 30px 86px rgba(0,0,0,0.38);
}

.order-action-bar {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: calc((var(--content-button-min-width) * 5) + 32px);
}

.order-action-bar > .primary-action,
.order-action-bar > .small-action,
.order-action-bar > .mega-button,
.order-action-bar > form {
    flex: 0 0 var(--content-button-min-width);
}

.order-action-bar > form .small-action {
    width: 100%;
}

.touch-panel-heading > .order-action-bar {
    display: flex;
}

.touch-work-panel .touch-panel-heading {
    align-items: flex-start;
}

.touch-work-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 10px;
    overflow: hidden;
}

.touch-work-panel.is-closed-order {
    grid-template-rows: auto auto auto minmax(0, 1fr);
}

.touch-work-panel.is-closed-order .invoice-lines {
    align-content: start;
    grid-auto-rows: auto;
}

.touch-work-panel.is-closed-order .invoice-bottom-bar {
    align-self: start;
}

.touch-work-panel.is-closed-order .invoice-bottom-bar .invoice-totals > div {
    min-height: 82px;
    align-content: center;
}

.touch-work-panel .invoice-panel-heading {
    min-height: 0;
    padding-bottom: 4px;
}

.invoice-page-count {
    align-self: center;
    justify-self: end;
    padding: 8px 12px;
    color: #ffffff;
    background: linear-gradient(180deg, #334155, #172033);
    border-radius: 999px;
    font-weight: 900;
}

.invoice-action-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 8px;
}

.order-action-bar.invoice-action-row > .primary-action,
.order-action-bar.invoice-action-row > .small-action,
.order-action-bar.invoice-action-row > .mega-button,
.order-action-bar.invoice-action-row > form {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 58px;
    flex: none;
}

.order-action-bar.invoice-action-row > form {
    display: block;
}

.order-action-bar.invoice-action-row > form .small-action {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 58px;
}

.touch-work-panel .invoice-lines {
    min-height: 0;
    overflow: hidden;
    grid-auto-rows: minmax(0, 1fr);
    align-content: stretch;
}

.touch-work-panel .invoice-line {
    min-height: 0;
    padding: 12px 14px;
}

.touch-work-panel .invoice-line > div:first-child {
    min-width: 0;
    overflow: hidden;
}

.touch-work-panel .invoice-line strong,
.touch-work-panel .invoice-line span,
.touch-work-panel .invoice-line small {
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-bottom-bar {
    display: grid;
    gap: 10px;
    align-items: stretch;
    min-height: 0;
}

.invoice-bottom-bar.has-pager {
    grid-template-columns: minmax(220px, 0.68fr) minmax(360px, 1.32fr);
}

.invoice-bottom-bar.no-pager {
    grid-template-columns: 1fr;
}

.invoice-bottom-bar .invoice-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.invoice-bottom-bar .invoice-totals > div {
    min-width: 0;
}

.invoice-pager {
    grid-template-columns: 58px minmax(86px, auto) 58px;
    align-self: stretch;
    justify-content: stretch;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.invoice-pager .command-button {
    min-width: 58px;
    max-width: 58px;
    min-height: 58px;
    padding: 0;
    border-radius: 14px;
    font-size: 1.45rem;
}

.invoice-pager strong {
    display: grid;
    place-items: center;
    min-height: 58px;
    padding: 0 8px;
    color: #172033;
    white-space: nowrap;
}

.app-startup-splash {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0)),
        #0b1016;
}

.app-startup-panel {
    position: relative;
    overflow: hidden;
    gap: 10px;
}

.app-startup-panel::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #b91c1c, #ffd34d, #2563eb);
    transform: translateX(-100%);
    animation: startup-progress 1.25s ease-in-out infinite;
}

.app-startup-mark {
    box-shadow: inset 0 2px rgba(255,255,255,0.18), 0 10px 26px rgba(0,0,0,0.26);
    transition: background 0.2s ease, transform 0.2s ease;
}

.app-startup-splash.is-welcome .app-startup-mark {
    background: #059669;
    transform: scale(1.04);
}

.app-startup-splash.is-welcome .app-startup-panel::after {
    background: linear-gradient(90deg, #059669, #ffd34d, #2563eb);
    animation-duration: 0.9s;
}

.app-startup-loader {
    width: 190px;
    height: 64px;
    margin: -4px 0 -10px;
    overflow: visible;
}

.app-startup-loader .oil-loader-car {
    left: 48px;
    transform: scale(0.84);
    transform-origin: center bottom;
}

@keyframes startup-progress {
    0% { transform: translateX(-100%); }
    55% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.app-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 7000;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.72), rgba(226,233,240,0.88)),
        rgba(18, 24, 32, 0.42);
    backdrop-filter: blur(2px);
    transition: opacity 0.18s ease;
}

.app-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.app-loading-panel {
    display: grid;
    gap: 10px;
    justify-items: center;
    width: min(360px, 100%);
    padding: 22px 20px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.1), transparent 32%),
        linear-gradient(135deg, #17202a, #0b1016);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.42);
    text-align: center;
}

.app-loading-panel strong {
    font-size: 1.15rem;
}

.app-loading-panel small {
    color: rgba(255,255,255,0.72);
    font-weight: 800;
}

.oil-loader {
    position: relative;
    width: 230px;
    height: 74px;
    overflow: hidden;
}

.oil-loader-road {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    height: 4px;
    overflow: hidden;
    background: rgba(255,255,255,0.26);
    border-radius: 999px;
}

.oil-loader-road::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, #fff 0 28px, transparent 28px 48px);
    animation: loader-road 0.8s linear infinite;
}

.oil-loader-car {
    position: absolute;
    left: 66px;
    bottom: 20px;
    width: 98px;
    height: 31px;
    background: linear-gradient(180deg, #d42129, #8b1017);
    border: 2px solid rgba(255,255,255,0.28);
    border-radius: 26px 30px 13px 13px;
    box-shadow: inset 0 3px rgba(255,255,255,0.2), 0 10px 18px rgba(0,0,0,0.25);
    animation: loader-car 0.55s ease-in-out infinite alternate;
}

.oil-loader-car::before {
    content: "";
    position: absolute;
    left: 20px;
    top: -17px;
    width: 48px;
    height: 23px;
    background: linear-gradient(180deg, #d42129, #9f1017);
    border: 2px solid rgba(255,255,255,0.24);
    border-bottom: 0;
    border-radius: 20px 18px 0 0;
}

.oil-loader-window {
    position: absolute;
    left: 33px;
    top: -12px;
    width: 25px;
    height: 13px;
    background: linear-gradient(180deg, #d9ecff, #8fb3d8);
    border-radius: 10px 8px 0 0;
    z-index: 1;
}

.oil-loader-wheel {
    position: absolute;
    bottom: -10px;
    width: 22px;
    height: 22px;
    background:
        radial-gradient(circle, #dfe6ee 0 3px, #17202a 4px 8px, #05070a 9px);
    border: 2px solid #dfe6ee;
    border-radius: 50%;
    animation: loader-wheel 0.42s linear infinite;
}

.oil-loader-wheel.rear {
    left: 18px;
}

.oil-loader-wheel.front {
    right: 16px;
}

.oil-loader-drops {
    position: absolute;
    left: 30px;
    bottom: 21px;
    display: flex;
    gap: 8px;
}

.oil-loader-drops span {
    width: 8px;
    height: 12px;
    background: #ffd34d;
    border-radius: 8px 8px 10px 10px;
    opacity: 0;
    transform: translateY(-18px) scale(0.7);
    animation: loader-drop 1.1s ease-in infinite;
}

.oil-loader-drops span:nth-child(2) {
    animation-delay: 0.18s;
}

.oil-loader-drops span:nth-child(3) {
    animation-delay: 0.36s;
}

.odometer-loader {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: #05070a;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.7);
}

.odometer-loader span {
    position: relative;
    width: 28px;
    height: 34px;
    overflow: hidden;
    color: #ffd34d;
    background: linear-gradient(180deg, #111820, #05070a);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 5px;
    font-weight: 900;
    font-size: 1.35rem;
    line-height: 34px;
    text-align: center;
}

.odometer-loader span::before {
    content:
        "0\A"
        "1\A"
        "2\A"
        "3\A"
        "4\A"
        "5\A"
        "6\A"
        "7\A"
        "8\A"
        "9";
    display: block;
    white-space: pre;
    animation: loader-odometer 0.9s steps(10) infinite;
}

.odometer-loader span:nth-child(2)::before {
    animation-duration: 1.05s;
}

.odometer-loader span:nth-child(3)::before {
    animation-duration: 1.2s;
}

.odometer-loader span:nth-child(4)::before {
    animation-duration: 1.35s;
}

.odometer-loader span:nth-child(5)::before {
    animation-duration: 1.5s;
}

@keyframes loader-road {
    from { transform: translateX(0); }
    to { transform: translateX(-48px); }
}

@keyframes loader-car {
    from { transform: translateY(0); }
    to { transform: translateY(-4px); }
}

@keyframes loader-wheel {
    to { transform: rotate(360deg); }
}

@keyframes loader-drop {
    0% {
        opacity: 0;
        transform: translateY(-18px) scale(0.65);
    }
    28% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(18px) scale(1);
    }
}

@keyframes loader-odometer {
    to { transform: translateY(-340px); }
}

/* Modern UI mode: translated from the attached React/Tailwind format. */
body.ui-modern {
    --red: #b91c1c;
    --red-dark: #991b1b;
    --blue: #2563eb;
    --green: #059669;
    --yellow: #facc15;
    --ink: #171717;
    --muted: #737373;
    --line: #e5e5e5;
    --panel: #ffffff;
    --steel: #f5f5f5;
    --steel-dark: #d4d4d4;
    --shadow: none;
    --shadow-deep: 0 18px 46px rgba(23,23,23,0.12);
    --shadow-press: none;
    --content-button-height: 72px;
    color: var(--ink);
    background: #fafafa;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

body.ui-modern .command-bar {
    align-items: center;
    gap: 16px;
    padding: 14px max(20px, calc((100vw - 1300px) / 2 + 20px));
    color: #171717;
    background: #ffffff;
    border-bottom: 2px solid #e5e5e5;
    box-shadow: none;
}

body.ui-modern .brand-block {
    min-width: 200px;
    padding-right: 20px;
    margin-right: 4px;
    border-right: 2px solid #e5e5e5;
}

body.ui-modern .brand-mark {
    width: 48px;
    height: 48px;
    background: #b91c1c;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-size: 1.15rem;
}

body.ui-modern .brand-block strong {
    color: #171717;
    font-size: 1.25rem;
}

body.ui-modern .brand-block small {
    color: #a3a3a3;
}

body.ui-modern .command-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    flex: 1 1 auto;
}

body.ui-modern .command-button,
body.ui-modern .small-action,
body.ui-modern .primary-action,
body.ui-modern .mega-button,
body.ui-modern button {
    border: 0;
    border-radius: 14px;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

body.ui-modern .command-button {
    min-height: 60px;
    min-width: 122px;
    padding: 14px 18px;
    color: #262626;
    background: #f5f5f5;
    font-size: 1rem;
}

body.ui-modern .command-actions .command-button:nth-child(2),
body.ui-modern .command-button.hot.active,
body.ui-modern .primary-action,
body.ui-modern .mega-button {
    color: #ffffff;
    background: #b91c1c;
}

body.ui-modern .command-actions .command-button:nth-child(1),
body.ui-modern .command-button.ghost {
    color: #404040;
    background: #f5f5f5;
}

body.ui-modern .command-button.success,
body.ui-modern .mega-button.success,
body.ui-modern .small-action.success,
body.ui-modern .primary-action.success {
    color: #047857;
    background: #ecfdf5;
}

body.ui-modern .command-button.warn {
    color: #854d0e;
    background: #fefce8;
}

body.ui-modern .command-button.danger,
body.ui-modern .small-action.danger,
body.ui-modern .mega-button.danger {
    color: #b91c1c;
    background: #fef2f2;
}

body.ui-modern .command-button.active {
    color: #ffffff;
    background: #171717;
}

body.ui-modern .command-button:active,
body.ui-modern .small-action:active,
body.ui-modern .primary-action:active,
body.ui-modern .mega-button:active,
body.ui-modern button:active {
    transform: scale(0.98);
}

body.ui-modern kbd {
    color: #525252;
    background: rgba(0,0,0,0.08);
}

body.ui-modern .live-count-strip {
    width: min(1300px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 0;
    gap: 16px;
    background: transparent;
    border-bottom: 0;
}

body.ui-modern .live-count-card {
    min-height: 110px;
    padding: 20px;
    text-align: left;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: none;
}

body.ui-modern .live-count-card span {
    justify-self: end;
    color: #171717;
    font-size: 2.25rem;
    line-height: 1;
}

body.ui-modern .live-count-card.active,
body.ui-modern .live-count-card:hover {
    color: #171717;
    background: #ffffff;
    border-color: #fca5a5;
    filter: none;
}

body.ui-modern .live-count-card.active span {
    color: #b91c1c;
}

body.ui-modern .workspace,
body.ui-modern .login-workspace {
    width: min(1300px, calc(100% - 40px));
    padding: 24px 0;
}

body.ui-modern .login-card,
body.ui-modern .panel,
body.ui-modern .notice-band,
body.ui-modern .hero-workbench,
body.ui-modern .record-header,
body.ui-modern .clock-screen,
body.ui-modern .reference-board,
body.ui-modern .action-modal {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 24px;
    box-shadow: none;
}

body.ui-modern .lookup-hero,
body.ui-modern .settings-hero {
    position: relative;
    padding: 28px;
    overflow: hidden;
}

body.ui-modern .lookup-hero::before,
body.ui-modern .settings-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: #b91c1c;
}

body.ui-modern .hero-workbench h1,
body.ui-modern .record-header h1,
body.ui-modern .clock-screen h1,
body.ui-modern .reference-title h1 {
    font-size: 2rem;
    color: #171717;
}

body.ui-modern .eyebrow {
    color: #ffffff;
    text-shadow: none;
}

body.ui-modern .lead,
body.ui-modern .helper-text,
body.ui-modern .reference-help,
body.ui-modern .panel-heading span,
body.ui-modern .reference-title span,
body.ui-modern .detail-list span,
body.ui-modern .checkout-row span {
    color: #737373;
}

body.ui-modern input,
body.ui-modern select,
body.ui-modern textarea {
    min-height: 52px;
    padding: 12px 14px;
    background: #ffffff;
    border: 2px solid #d4d4d4;
    border-radius: 14px;
}

body.ui-modern input:focus-visible,
body.ui-modern select:focus-visible,
body.ui-modern textarea:focus-visible {
    outline: 4px solid rgba(185,28,28,0.15);
    border-color: #b91c1c;
}

body.ui-modern .dashboard-scan-control,
body.ui-modern .lookup-form {
    gap: 12px;
}

body.ui-modern .dashboard-scan-control input,
body.ui-modern .lookup-form input {
    min-height: 72px;
    padding: 18px 20px;
    border-radius: 16px;
    font-size: 1.4rem;
}

body.ui-modern .dashboard-scan-control .primary-action,
body.ui-modern .lookup-form .primary-action {
    min-height: 72px;
    border-radius: 16px;
    font-size: 1.2rem;
}

body.ui-modern .primary-action,
body.ui-modern .small-action,
body.ui-modern .mega-button,
body.ui-modern button {
    font-size: 0.98rem;
}

body.ui-modern .small-action,
body.ui-modern button:not(.selection-tile):not(.profile-status-tile) {
    color: #262626;
    background: #f5f5f5;
}

body.ui-modern .inline-form .icon-delete-button {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 46px;
    min-height: 46px;
    color: #ffffff;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 28%),
        linear-gradient(180deg, #dc2626, #991b1b);
    border: 1px solid #7f1d1d;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(153,27,27,0.18);
}

body.ui-modern .inline-form .icon-delete-button:hover,
body.ui-modern .inline-form .icon-delete-button:focus-visible {
    color: #ffffff;
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    box-shadow: 0 12px 28px rgba(185,28,28,0.22);
}

body.ui-modern .primary-action,
body.ui-modern .mega-button,
body.ui-modern .selection-tile.primary {
    color: #ffffff;
    background: #b91c1c;
}

body.ui-modern .stat-card,
body.ui-modern .selection-tile,
body.ui-modern .info-tile,
body.ui-modern .invoice-line,
body.ui-modern .open-order-row,
body.ui-modern .directory-row,
body.ui-modern .product-tile,
body.ui-modern .customer-pick {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: none;
}

body.ui-modern .selection-tile:hover,
body.ui-modern .open-order-row:hover,
body.ui-modern .directory-row:hover,
body.ui-modern .product-tile:hover {
    border-color: #fca5a5;
    filter: none;
}

body.ui-modern .selection-tile {
    min-height: 92px;
}

body.ui-modern .advisor-action-modal {
    width: min(1240px, calc(100vw - 24px));
    height: min(820px, calc(100vh - 24px));
    border-radius: 24px;
}

body.ui-modern .advisor-action-modal .advisor-grid {
    grid-auto-rows: 72px;
    align-content: start;
    gap: 8px;
}

body.ui-modern .advisor-action-modal .product-grid {
    grid-auto-rows: minmax(150px, auto);
    align-content: start;
    gap: 18px;
}

body.ui-modern .advisor-action-modal .advisor-tile {
    min-height: 72px;
    padding: 8px 40px 8px 12px;
    color: #111827;
    background: linear-gradient(180deg, #fff5f5, #fee2e2);
    border-color: #fecaca;
    border-radius: 16px;
}

body.ui-modern .advisor-action-modal a.advisor-tile::after {
    content: ">";
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #ffffff;
    background: #b91c1c;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 900;
    transform: translateY(-50%);
}

body.ui-modern .advisor-action-modal .advisor-tile:hover,
body.ui-modern .advisor-action-modal .advisor-tile:focus {
    background: linear-gradient(180deg, #fee2e2, #fecaca);
    border-color: #b91c1c;
    box-shadow: 0 0 0 4px rgba(185,28,28,0.1);
}

body.ui-modern .advisor-action-modal .advisor-tile strong {
    font-size: 0.94rem;
}

body.ui-modern .advisor-action-modal .advisor-tile span,
body.ui-modern .advisor-action-modal .advisor-tile small {
    color: #4b5563;
    font-size: 0.7rem;
    line-height: 1.1;
}

body.ui-modern .advisor-action-modal .service-product-tile {
    background: linear-gradient(180deg, #f0fdf4, #dcfce7);
    border-color: #86efac;
}

body.ui-modern .advisor-action-modal .service-product-tile:hover,
body.ui-modern .advisor-action-modal .service-product-tile:focus-within {
    background: linear-gradient(180deg, #dcfce7, #bbf7d0);
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22,163,74,0.1);
}

body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions {
    grid-template-columns: repeat(3, minmax(154px, 1fr));
    justify-content: stretch;
    gap: 12px;
}

body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-start-action,
body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-edit-action,
body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-history-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 72px;
    padding: 14px 18px;
    color: #ffffff;
    border-width: 1px;
    border-style: solid;
    border-radius: 16px;
    box-shadow: 0 14px 26px rgba(15,23,42,0.18);
    font-size: 1rem;
    font-weight: 900;
}

body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-start-action::before,
body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-edit-action::before,
body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-history-action::before {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: inherit;
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
    font-size: 1.05rem;
    line-height: 1;
}

body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-start-action {
    background: linear-gradient(180deg, #dc2626, #991b1b);
    border-color: #7f1d1d;
}

body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-start-action::before {
    content: "+";
}

body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-edit-action {
    background: linear-gradient(180deg, #2563eb, #1e3a8a);
    border-color: #1e3a8a;
}

body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-edit-action::before {
    content: "Edit";
    width: auto;
    min-width: 42px;
    padding: 0 8px;
    font-size: 0.72rem;
    text-transform: uppercase;
}

body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-history-action {
    background: linear-gradient(180deg, #334155, #111827);
    border-color: #111827;
}

body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-history-action::before {
    content: "H";
}

body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-start-action:hover,
body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-start-action:focus-visible,
body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-edit-action:hover,
body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-edit-action:focus-visible,
body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-history-action:hover,
body.ui-modern .vehicle-action-modal .modal-actions.vehicle-modal-actions > .vehicle-history-action:focus-visible {
    color: #ffffff;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(15,23,42,0.22);
}

body.ui-modern .add-vehicle-modal .add-vehicle-form > .modal-actions {
    grid-template-columns: minmax(210px, 1fr) minmax(150px, 0.62fr);
    justify-content: end;
    gap: 12px;
}

body.ui-modern .add-vehicle-modal .add-vehicle-form > .modal-actions > .primary-action,
body.ui-modern .add-vehicle-modal .add-vehicle-form > .modal-actions > .small-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 72px;
    padding: 14px 18px;
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 16px;
    box-shadow: 0 14px 26px rgba(15,23,42,0.18);
    font-size: 1rem;
    font-weight: 900;
}

body.ui-modern .add-vehicle-modal .add-vehicle-form > .modal-actions > .primary-action {
    background: linear-gradient(180deg, #16a34a, #087646);
    border-color: #087646;
}

body.ui-modern .add-vehicle-modal .add-vehicle-form > .modal-actions > .small-action {
    background: linear-gradient(180deg, #334155, #111827);
    border-color: #111827;
}

body.ui-modern .add-vehicle-modal .add-vehicle-form > .modal-actions > .primary-action:hover,
body.ui-modern .add-vehicle-modal .add-vehicle-form > .modal-actions > .primary-action:focus-visible,
body.ui-modern .add-vehicle-modal .add-vehicle-form > .modal-actions > .small-action:hover,
body.ui-modern .add-vehicle-modal .add-vehicle-form > .modal-actions > .small-action:focus-visible {
    color: #ffffff;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(15,23,42,0.22);
}

body.ui-modern .advisor-action-modal .screen-pager {
    top: 16px;
    right: 18px;
    gap: 12px;
    margin: 0;
}

body.ui-modern .advisor-action-modal > .panel-heading .small-action,
body.ui-modern .advisor-action-modal .screen-pager .command-button {
    width: 144px;
    min-width: 144px;
    max-width: 144px;
    min-height: 64px;
    color: #111827;
    background: #f3f4f6;
    border-radius: 14px;
}

body.ui-modern .advisor-action-modal .screen-pager .command-button:not(.disabled):hover {
    color: #ffffff;
    background: #b91c1c;
}

body.ui-modern .advisor-action-modal .screen-pager .command-button.disabled {
    color: #9ca3af;
    background: #f7f7f7;
    opacity: 1;
}

body.ui-modern .dashboard-open-list {
    gap: 16px;
}

body.ui-modern .open-order-row,
body.ui-modern .directory-row {
    padding: 22px;
}

body.ui-modern .vehicle-hero,
body.ui-modern .form-section-title,
body.ui-modern .reference-title {
    color: #171717;
    background: #ffffff;
    box-shadow: none;
}

body.ui-modern .vehicle-hero {
    border: 2px solid #e5e5e5;
    border-radius: 16px;
}

body.ui-modern .vehicle-specs-button.small-action {
    min-width: 138px;
    max-width: 138px;
    min-height: 52px;
    color: #ffffff;
    background: #2563eb;
    border: 1px solid #1d4ed8;
    border-radius: 12px;
}

body.ui-modern .part-search-button.small-action {
    color: #ffffff;
    background: #047857;
    border: 1px solid #065f46;
    border-radius: 12px;
}

body.ui-modern .cancel-action.small-action {
    color: #ffffff;
    background: #374151;
    border: 1px solid #1f2937;
    border-radius: 12px;
}

body.ui-modern .close-order-trigger.mega-button,
body.ui-modern .close-final-action.mega-button {
    color: #ffffff;
    background: #16a34a;
    border: 1px solid #15803d;
    border-radius: 12px;
}

body.ui-modern .vehicle-hero span {
    color: #737373;
}

body.ui-modern .reference-title {
    border-bottom: 2px solid #e5e5e5;
}

body.ui-modern .advisor-board .reference-title {
    color: #ffffff;
    background: #b91c1c;
    border: 0;
    border-radius: 16px 16px 0 0;
}

body.ui-modern .advisor-board .reference-title .eyebrow,
body.ui-modern .advisor-board .reference-title span {
    color: rgba(255,255,255,0.86);
}

body.ui-modern .advisor-board .reference-title h1 {
    color: #ffffff;
}

body.ui-modern .invoice-ribbon,
body.ui-modern .modal-vehicle-summary,
body.ui-modern .empty-state {
    background: #f5f5f5;
    border: 1px solid #d4d4d4;
    border-radius: 14px;
}

body.ui-modern .stock-brand-tile.in-stock,
body.ui-modern .product-tile.in-stock,
body.ui-modern .order-check.ok {
    background: #dcfce7;
    border-color: #86efac;
}

body.ui-modern .advisor-action-modal .stock-brand-tile.in-stock {
    background: linear-gradient(180deg, #f0fdf4, #dcfce7);
    border-color: #86efac;
}

body.ui-modern .advisor-action-modal .stock-brand-tile.in-stock::after {
    background: #16a34a;
}

body.ui-modern .advisor-action-modal .product-tile {
    min-height: 150px;
    padding: 18px;
    border-radius: 18px;
}

body.ui-modern .advisor-action-modal .product-tile.is-clickable::after {
    top: 16px;
    right: 16px;
    min-height: 30px;
    border-radius: 999px;
}

body.ui-modern .advisor-action-modal .product-tile.in-stock {
    background: linear-gradient(180deg, #f0fdf4, #dcfce7);
    border-color: #86efac;
}

body.ui-modern .advisor-action-modal .product-tile.out-stock {
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    border-color: #94a3b8;
}

body.ui-modern .advisor-action-modal .product-tile.is-clickable:hover,
body.ui-modern .advisor-action-modal .product-tile.is-clickable:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}

body.ui-modern .advisor-action-modal .product-tile.out-stock.is-clickable:hover,
body.ui-modern .advisor-action-modal .product-tile.out-stock.is-clickable:focus {
    border-color: #64748b;
    box-shadow: 0 0 0 4px rgba(100,116,139,0.14);
}

body.ui-modern .stock-brand-tile.out-stock,
body.ui-modern .product-tile.out-stock,
body.ui-modern .order-check.missing {
    color: #111827;
    background: #e5e7eb;
    border-color: #9ca3af;
}

body.ui-modern .advisor-action-modal .stock-brand-tile.out-stock {
    background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
    border-color: #94a3b8;
}

body.ui-modern .advisor-action-modal .stock-brand-tile.out-stock::after {
    background: #64748b;
}

body.ui-modern .stock-pill.muted {
    color: #111827;
    background: #d1d5db;
}

body.ui-modern .modal-backdrop {
    background: rgba(23,23,23,0.56);
}

body.ui-modern .action-modal {
    box-shadow: 0 30px 80px rgba(23,23,23,0.22);
}

body.ui-modern .vehicle-specs-modal {
    width: min(1040px, calc(100vw - 28px));
    padding: 22px;
    border-radius: 24px;
}

body.ui-modern .vehicle-specs-modal .panel-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 18px;
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

body.ui-modern .vehicle-specs-heading .eyebrow {
    display: inline-flex;
    width: auto;
    padding: 5px 10px;
    color: #ffffff;
    background: #b91c1c;
    border-radius: 999px;
    font-size: 0.72rem;
}

body.ui-modern .vehicle-specs-heading h2 {
    color: #111827;
    font-size: 1.55rem;
}

body.ui-modern .vehicle-specs-heading span {
    color: #737373;
    font-size: 0.98rem;
}

body.ui-modern .vehicle-specs-close.small-action {
    width: 118px;
    min-width: 118px;
    max-width: 118px;
    min-height: 58px;
    color: #111827;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
}

body.ui-modern .vehicle-specs-close.small-action:hover {
    color: #ffffff;
    background: #b91c1c;
}

body.ui-modern .vehicle-specs-modal .modal-vehicle-summary {
    padding: 16px 18px 16px 22px;
    background: linear-gradient(180deg, #ffffff, #fafafa);
    border: 1px solid #e5e5e5;
    border-radius: 18px;
}

body.ui-modern .vehicle-specs-modal .modal-vehicle-summary strong {
    color: #111827;
    font-size: 1.2rem;
}

body.ui-modern .vehicle-specs-modal .modal-vehicle-summary span,
body.ui-modern .vehicle-specs-modal .modal-vehicle-summary small {
    color: #737373;
}

body.ui-modern .vehicle-specs-grid div {
    min-height: 108px;
    padding: 15px 64px 15px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: none;
}

body.ui-modern .vehicle-specs-grid .spec-card:hover,
body.ui-modern .vehicle-specs-grid .spec-card:focus,
body.ui-modern .vehicle-specs-grid .spec-card.is-selected {
    border-color: #b91c1c;
    box-shadow: 0 0 0 4px rgba(185,28,28,0.12);
}

body.ui-modern .vehicle-specs-grid .spec-card.is-primary {
    background: linear-gradient(180deg, #ffffff, #fff7f7);
    border-color: #fecaca;
}

body.ui-modern .vehicle-specs-grid .spec-card.is-parts {
    background: linear-gradient(180deg, #ffffff, #f0fdf4);
    border-color: #bbf7d0;
}

body.ui-modern .vehicle-specs-grid .spec-card.is-external {
    background: linear-gradient(180deg, #ffffff, #eff6ff);
    border-color: #bfdbfe;
}

body.ui-modern .vehicle-specs-grid span,
body.ui-modern .vehicle-specs-grid small {
    color: #6b7280;
    font-size: 0.84rem;
    line-height: 1.12;
}

body.ui-modern .vehicle-specs-grid strong {
    color: #030712;
    font-size: 1.04rem;
}

body.ui-modern .vehicle-specs-status {
    min-height: 46px;
    padding: 9px 14px;
    color: #374151;
    background: #f9fafb;
    border-color: #d1d5db;
    border-radius: 999px;
}

body.ui-modern .vehicle-specs-status.ok {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

body.ui-modern .vehicle-specs-status.warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

body.ui-modern .vehicle-specs-status.error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

body.ui-modern .vehicle-spec-detail {
    background: #ffffff;
    border-color: #e5e7eb;
    border-top-color: #b91c1c;
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(23,23,23,0.26);
}

body.ui-modern .vehicle-spec-detail-body div {
    background: #fafafa;
    border-color: #e5e5e5;
}

body.ui-modern .settings-status-card {
    display: grid;
    gap: 8px;
    min-width: 180px;
    padding: 18px 22px;
    background: #f5f5f5;
    border-radius: 16px;
}

body.ui-modern .settings-status-card span {
    color: #737373;
    font-weight: 800;
}

body.ui-modern .settings-status-card strong {
    color: #b91c1c;
    font-size: 2rem;
}

body.ui-modern .settings-page .eyebrow {
    display: block;
    width: auto;
    justify-self: start;
    padding: 0;
    color: #b91c1c;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
    letter-spacing: 0.12em;
}

body.ui-modern .settings-choice .eyebrow {
    margin-bottom: 12px;
    color: #a3a3a3;
}

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

.settings-launch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.settings-launch-button {
    display: grid;
    align-content: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 132px;
    padding: 18px;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #eef2f7);
    border: 1px solid #cbd5e1;
    border-left: 7px solid var(--red);
    border-radius: 8px;
    box-shadow: inset 0 1px rgba(255,255,255,0.88), 0 4px 0 rgba(100,116,139,0.18);
    text-align: left;
}

.settings-launch-button span,
.settings-launch-button small {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-weight: 850;
    text-overflow: ellipsis;
}

.settings-launch-button span {
    font-size: 0.82rem;
    text-transform: uppercase;
}

.settings-launch-button strong {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-size: 1.24rem;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-launch-button:hover,
.settings-launch-button:focus-visible {
    border-color: var(--red);
    background: #fff7f7;
}

.settings-modal {
    width: min(980px, calc(100vw - 32px));
}

.settings-modal .settings-choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.settings-status-card {
    display: grid;
    gap: 6px;
    min-width: 170px;
    padding: 16px;
    background: #f6f8fa;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.settings-status-card span {
    color: var(--muted);
    font-weight: 800;
}

.settings-status-card strong {
    color: var(--red);
    font-size: 1.8rem;
}

.settings-choice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.settings-choice.active {
    border-color: var(--red);
}

.settings-choice h3 {
    margin: 0;
    font-size: 1.45rem;
}

.settings-choice span,
.settings-note span {
    color: var(--muted);
    font-weight: 800;
}

.settings-note {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    padding: 14px;
    background: #f6f8fa;
    border: 1px dashed var(--line);
    border-radius: 8px;
}

body.ui-modern .settings-choice {
    padding: 24px;
    border: 2px solid #e5e5e5;
    border-radius: 18px;
    box-shadow: none;
}

body.ui-modern .settings-launch-button {
    min-height: 138px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-left: 7px solid #b91c1c;
    border-radius: 18px;
    box-shadow: none;
}

body.ui-modern .settings-launch-button:hover,
body.ui-modern .settings-launch-button:focus-visible {
    background: #fffafa;
    border-color: #fca5a5;
    border-left-color: #b91c1c;
}

body.ui-modern .settings-choice.active {
    border-color: #fca5a5;
    background: #fffafa;
}

body.ui-modern .settings-choice h3 {
    color: #171717;
}

body.ui-modern .settings-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    border: 1px solid #d4d4d4;
    border-radius: 16px;
}

body.ui-modern .settings-note strong {
    flex: 0 0 auto;
}

/* Modern exact dashboard/header pass. */
body.ui-modern .command-bar {
    min-height: 90px;
    gap: clamp(8px, 1vw, 16px);
    padding: 14px clamp(12px, 2.7vw, 49px);
}

body.ui-modern .brand-block {
    gap: 10px;
    flex: 0 1 174px;
    width: 174px;
    min-width: 136px;
    padding-right: clamp(10px, 1.2vw, 18px);
}

body.ui-modern .brand-block > span:last-child {
    min-width: 0;
    width: 116px;
}

body.ui-modern .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: none;
    font-size: 1.15rem;
}

body.ui-modern .brand-block strong {
    font-size: 1.05rem;
    line-height: 1.1;
}

body.ui-modern .brand-block small {
    color: #9ca3af;
    font-size: 0.79rem;
    line-height: 1.15;
}

body.ui-modern .modern-command-actions {
    min-width: 0;
    gap: clamp(6px, 0.7vw, 12px);
}

body.ui-modern .modern-command-spacer {
    flex: 1 1 8px;
    min-width: 0;
}

body.ui-modern .command-button,
body.ui-modern .primary-action,
body.ui-modern .small-action,
body.ui-modern .mega-button,
body.ui-modern button {
    overflow: visible;
    text-shadow: none;
}

body.ui-modern .command-button::after,
body.ui-modern .primary-action::after,
body.ui-modern .small-action::after,
body.ui-modern .mega-button::after,
body.ui-modern button::after {
    display: none;
}

body.ui-modern .modern-command-actions .command-button {
    gap: 9px;
    flex: 0 1 var(--modern-command-width, 146px);
    width: auto;
    min-width: var(--modern-command-min-width, 106px);
    height: 64px;
    min-height: 64px;
    padding: 0 clamp(10px, 0.95vw, 18px);
    border-radius: 10px;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.08;
    box-sizing: border-box;
}

body.ui-modern .modern-command-actions .command-button.modern-primary {
    --modern-command-width: 172px;
    --modern-command-min-width: 138px;
    color: #fff;
    background: #c7191c;
}

body.ui-modern .modern-command-actions .command-button.modern-neutral {
    --modern-command-width: 136px;
    --modern-command-min-width: 106px;
    color: #111827;
    background: #f3f4f6;
}

body.ui-modern .modern-command-actions .owner-menu-command.active,
body.ui-modern .modern-command-actions .owner-menu-command[aria-expanded="true"] {
    color: #ffffff;
    background: #111827;
}

body.ui-modern .modern-command-actions .command-button.modern-clock {
    --modern-command-width: 146px;
    --modern-command-min-width: 116px;
    color: #047857;
    background: #e6f8ef;
}

body.ui-modern .modern-command-actions .command-button.modern-logout {
    --modern-command-width: 116px;
    --modern-command-min-width: 88px;
    color: #b91c1c;
    background: #fef2f2;
}

body.ui-modern .modern-command-actions .command-button.modern-quit {
    --modern-command-width: 112px;
    --modern-command-min-width: 88px;
    color: #ffffff;
    background: #111827;
}

body.ui-modern .modern-command-actions .command-button.modern-quit:hover,
body.ui-modern .modern-command-actions .command-button.modern-quit:focus-visible {
    background: #020617;
}

.app-quit-button {
    cursor: pointer;
}

.app-quit-button:disabled {
    cursor: default;
    opacity: 0.78;
}

.owner-slide-menu {
    position: fixed;
    top: var(--owner-menu-top, 90px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1700;
    padding: 10px clamp(20px, 4.35vw, 49px);
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-18px);
    transition: opacity 160ms ease, transform 180ms ease;
}

.owner-slide-menu[hidden] {
    display: none;
}

.owner-slide-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.owner-slide-panel {
    width: min(1300px, calc(100% - 96px));
    margin: 0 auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    border-top: 5px solid #b91c1c;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.24);
}

.owner-slide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.owner-slide-head strong {
    display: block;
    color: #111827;
    font-size: 1.1rem;
    line-height: 1.1;
}

.owner-slide-head span {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 0.88rem;
    font-weight: 800;
}

.owner-slide-close {
    min-width: 120px;
    min-height: 48px;
    color: #111827;
    background: #f3f4f6;
    border: 0;
    border-radius: 12px;
    font-weight: 900;
}

.owner-slide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.owner-slide-button {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 3px 10px;
    align-content: center;
    min-height: 82px;
    padding: 12px;
    color: #111827;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none;
}

.owner-slide-button:hover,
.owner-slide-button:focus-visible,
.owner-slide-button.active {
    border-color: #b91c1c;
    background: #fff7f7;
    box-shadow: 0 12px 28px rgba(185, 28, 28, 0.12);
}

.owner-slide-icon {
    grid-row: 1 / span 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: #111827;
    border-radius: 14px;
}

.owner-slide-icon .app-icon {
    width: 21px;
    height: 21px;
}

.owner-slide-button strong {
    align-self: end;
    overflow: hidden;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 950;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-slide-button small {
    overflow: hidden;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-slide-button.tone-red .owner-slide-icon {
    background: #b91c1c;
}

.owner-slide-button.tone-green .owner-slide-icon {
    background: #087646;
}

.owner-slide-button.tone-blue .owner-slide-icon {
    background: #1d4ed8;
}

body.ui-modern .live-count-strip,
body.ui-modern .workspace,
body.ui-modern .login-workspace {
    width: min(1300px, calc(100% - 96px));
}

body.ui-modern .live-count-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
    padding-top: 20px;
}

body.ui-modern .live-count-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    min-height: 94px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

body.ui-modern .live-count-card .stat-icon {
    grid-column: 1;
    grid-row: 1;
    color: #dc2626;
    font-size: 1.22rem;
}

body.ui-modern .live-count-card .stat-count {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    color: #030712;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

body.ui-modern .live-count-card .stat-label {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    align-self: end;
    margin-top: 14px;
    color: #1f2937;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
}

body.ui-modern .live-count-card.active,
body.ui-modern .live-count-card:hover {
    border-color: #e5e7eb;
}

body.ui-modern .workspace {
    padding: 20px 0 0;
}

body.ui-modern .dashboard-page {
    gap: 0;
}

body.ui-modern .modern-start-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 12px;
    padding: 20px 18px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

body.ui-modern .modern-start-panel::before {
    height: 5px;
    background: #c7191c;
}

body.ui-modern .modern-start-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.ui-modern .modern-step-badge {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #fff;
    background: #c7191c;
    border-radius: 50%;
    font-size: 1.05rem;
    font-weight: 900;
}

body.ui-modern .modern-start-panel h1 {
    margin: 0;
    color: #030712;
    font-size: 1.48rem;
    line-height: 1.08;
}

body.ui-modern .modern-start-panel .lead {
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.92rem;
}

body.ui-modern .modern-start-panel .dashboard-search-panel {
    max-width: none;
}

body.ui-modern .modern-start-panel .dashboard-lookup-field {
    display: block;
}

body.ui-modern .modern-start-panel .dashboard-scan-control {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

body.ui-modern .modern-start-panel .modern-search-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    z-index: 1;
    display: inline-flex;
    color: #9ca3af;
    font-size: 1.35rem;
    transform: translateY(-50%);
    pointer-events: none;
}

body.ui-modern .modern-start-panel .dashboard-lookup-field input {
    min-height: 58px;
    padding: 14px 18px 14px 50px;
    color: #111827;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
}

body.ui-modern .modern-start-panel .dashboard-lookup-field input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

body.ui-modern .modern-start-panel .dashboard-lookup-field input:focus,
body.ui-modern .modern-start-panel .dashboard-lookup-field input:focus-visible {
    outline: none;
    border-color: #d1d5db;
    box-shadow: none;
}

body.ui-modern .modern-start-panel button.dashboard-start-button.primary-action {
    gap: 10px;
    min-height: 58px;
    height: 58px;
    color: #fff;
    background: #c7191c;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 18px rgba(199,25,28,0.22);
    font-size: 1.12rem;
    font-weight: 900;
}

body.ui-modern .dashboard-open-panel {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

body.ui-modern .dashboard-open-panel::before {
    display: none;
}

body.ui-modern .dashboard-open-panel .panel-heading {
    min-height: 42px;
    margin-bottom: 8px;
    padding: 0 3px;
    border-bottom: 0;
}

body.ui-modern .dashboard-open-panel .panel-heading h2 {
    color: #030712;
    font-size: 1.25rem;
    font-weight: 900;
}

body.ui-modern .dashboard-open-panel .panel-heading span {
    color: #6b7280;
    font-size: 0.94rem;
}

body.ui-modern .dashboard-open-panel .panel-heading .primary-action,
body.ui-modern .dashboard-open-panel .panel-heading .small-action {
    min-width: 110px;
    max-width: 110px;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 12px;
}

body.ui-modern .vehicle-directory-page .dashboard-open-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 0;
}

body.ui-modern .vehicle-directory-page .dashboard-open-list {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 4px 12px 0;
    scrollbar-gutter: stable;
}

body.ui-modern .vehicle-directory-page .dashboard-open-panel > .screen-pager {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    padding-top: 10px;
    background: #fafafa;
}

body.ui-modern .modern-heading-actions {
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

body.ui-modern .touch-work-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 7px;
    overflow: hidden;
}

body.ui-modern .touch-work-panel.is-closed-order {
    grid-template-rows: auto auto auto minmax(0, 1fr);
}

body.ui-modern .invoice-page-count {
    color: #ffffff;
    background: #171717;
}

body.ui-modern .invoice-panel-heading .invoice-page-count {
    color: #ffffff;
}

body.ui-modern .order-action-bar.invoice-action-row > .primary-action,
body.ui-modern .order-action-bar.invoice-action-row > .small-action,
body.ui-modern .order-action-bar.invoice-action-row > .mega-button,
body.ui-modern .order-action-bar.invoice-action-row > form,
body.ui-modern .order-action-bar.invoice-action-row > form .small-action {
    min-width: 0;
    max-width: none;
    min-height: 50px;
    border-radius: 14px;
}

body.ui-modern .invoice-pager {
    grid-template-columns: 50px minmax(86px, auto) 50px;
    justify-content: stretch;
    margin: 0;
    padding: 0;
    gap: 8px;
}

body.ui-modern .invoice-pager .command-button {
    min-width: 50px;
    max-width: 50px;
    min-height: 50px;
    padding: 0;
    color: #262626;
    background: #f5f5f5;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    font-size: 1.2rem;
}

body.ui-modern .invoice-pager .command-button:not(.disabled) {
    color: #ffffff;
    background: #b91c1c;
    border-color: #b91c1c;
}

body.ui-modern .invoice-pager strong {
    color: #171717;
}

body.ui-modern .modern-inline-pager {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
}

body.ui-modern .modern-inline-pager a,
body.ui-modern .modern-inline-pager span {
    padding: 8px 10px;
    color: #111827;
    background: #f3f4f6;
    border-radius: 10px;
}

body.ui-modern .modern-inline-pager span {
    color: #9ca3af;
}

body.ui-modern .modern-inline-pager strong {
    color: #111827;
}

body.ui-modern .dashboard-open-list {
    gap: 10px;
}

body.ui-modern .recent-orders-panel .dashboard-open-list {
    gap: 4px;
}

body.ui-modern .modern-order-row {
    display: grid;
    grid-template-columns: 44px minmax(210px, 1fr) 102px 210px 78px 145px;
    gap: 10px;
    align-items: center;
    min-height: 78px;
    padding: 14px 16px;
    color: #030712;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: none;
}

body.ui-modern .recent-orders-panel .modern-order-row {
    grid-template-columns: 36px minmax(170px, 1fr) 82px minmax(150px, 0.9fr) 68px 118px;
    gap: 7px;
    min-height: 48px;
    padding: 4px 8px;
    border-radius: 12px;
}

body.ui-modern .recent-orders-panel .modern-order-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 1rem;
}

body.ui-modern .recent-orders-panel .modern-order-main {
    gap: 0;
}

body.ui-modern .recent-orders-panel .modern-order-main strong {
    font-size: 0.82rem;
}

body.ui-modern .recent-orders-panel .modern-order-main small {
    font-size: 0.66rem;
}

body.ui-modern .recent-orders-panel .modern-order-main em {
    display: none;
}

body.ui-modern .recent-orders-panel .modern-order-row .order-status-pill {
    min-width: 68px;
    min-height: 20px;
    padding: 3px 7px;
    font-size: 0.56rem;
}

body.ui-modern .recent-orders-panel .modern-progress {
    gap: 4px;
}

body.ui-modern .recent-orders-panel .modern-progress-step {
    gap: 0;
}

body.ui-modern .recent-orders-panel .modern-progress-step b {
    width: 32px;
    height: 5px;
}

body.ui-modern .recent-orders-panel .modern-progress-step small {
    display: none;
}

body.ui-modern .recent-orders-panel .modern-order-row .open-order-total {
    font-size: 0.9rem;
}

body.ui-modern .recent-orders-panel .modern-next-action {
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.66rem;
}

body.ui-modern .modern-directory-row {
    grid-template-columns: 44px minmax(270px, 1fr) 185px 74px 154px;
}

body.ui-modern .modern-order-row:hover {
    border-color: #e5e7eb;
}

body.ui-modern .modern-order-row::before {
    display: none;
}

body.ui-modern .modern-order-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #6b7280;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 1.35rem;
}

body.ui-modern .modern-order-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

body.ui-modern .modern-order-main strong {
    overflow: hidden;
    color: #030712;
    font-size: 0.98rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern .modern-order-main small {
    overflow: hidden;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern .modern-order-main em {
    overflow: hidden;
    color: #9ca3af;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern .modern-order-row .order-status-pill {
    justify-self: center;
    min-width: 92px;
    min-height: 30px;
    font-size: 0.74rem;
}

body.ui-modern .modern-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

body.ui-modern .modern-progress-three {
    grid-template-columns: repeat(3, 1fr);
}

body.ui-modern .modern-progress-step {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 0;
}

body.ui-modern .modern-progress-step b {
    width: 46px;
    max-width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
}

body.ui-modern .modern-progress-step.done b {
    background: #10b981;
}

body.ui-modern .modern-progress-step.next b {
    background: #f87171;
}

body.ui-modern .modern-progress-step small {
    color: #9ca3af;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

body.ui-modern .modern-progress-step.done small {
    color: #059669;
}

body.ui-modern .modern-progress-step.next small {
    color: #dc2626;
}

body.ui-modern .modern-order-row .open-order-total {
    justify-self: end;
    color: #030712;
    font-size: 1.18rem;
    font-weight: 900;
}

body.ui-modern .modern-directory-count {
    justify-self: end;
    color: #030712;
    font-size: 1.35rem;
    font-weight: 900;
}

body.ui-modern .modern-next-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 15px;
    color: #fff;
    background: #c7191c;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 900;
    white-space: nowrap;
}

body.ui-modern .modern-customer-vehicle-row {
    grid-template-columns: minmax(250px, 1.1fr) minmax(300px, 1.35fr) minmax(150px, 0.65fr) minmax(220px, 0.9fr);
    gap: 18px;
    min-height: 92px;
    padding: 16px 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 6px solid #b91c1c;
    border-radius: 16px;
    box-shadow: none;
}

body.ui-modern .modern-customer-vehicle-row:hover,
body.ui-modern .modern-customer-vehicle-row:focus-visible {
    border-color: #fecaca;
    border-left-color: #b91c1c;
    box-shadow: 0 0 0 4px rgba(185,28,28,0.08);
}

body.ui-modern .modern-customer-vehicle-row .open-order-cell {
    gap: 5px;
}

body.ui-modern .modern-customer-vehicle-row .open-order-cell strong {
    color: #111827;
    font-size: 1rem;
}

body.ui-modern .modern-customer-vehicle-row .open-order-id strong {
    color: #b91c1c;
}

body.ui-modern .modern-customer-vehicle-row .open-order-cell small {
    color: #64748b;
    font-size: 0.82rem;
}

body.ui-modern .customer-vehicle-progress {
    justify-self: end;
    width: min(100%, 260px);
}

body.ui-modern .customer-vehicle-progress .modern-progress-step {
    padding: 4px 0;
    border-radius: 999px;
}

body.ui-modern .customer-vehicle-progress .modern-progress-step b {
    width: 62px;
    height: 9px;
}

.touch-order-layout {
    grid-template-columns: minmax(250px, 0.48fr) minmax(620px, 1.52fr);
}

.vehicle-station {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 8px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.98)),
        #ffffff;
}

.vehicle-station .panel-heading {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #cbd5e1;
}

.vehicle-station .panel-heading h2 {
    font-size: 1.28rem;
}

.vehicle-station .panel-heading span {
    font-size: 0.9rem;
}

.vehicle-station .vehicle-hero {
    gap: 4px;
    margin-bottom: 0;
    padding: 15px 16px;
    color: #ffffff;
    background:
        linear-gradient(135deg, #111827, #1f2937 62%, #334155);
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.vehicle-station .vehicle-hero strong {
    font-size: 1.28rem;
    line-height: 1.16;
}

.vehicle-station .vehicle-hero span {
    font-size: 0.96rem;
}

.vehicle-station .vehicle-vin-card {
    display: grid;
    gap: 3px;
    min-width: 0;
    min-height: 58px;
    padding: 10px 12px 10px 14px;
    color: #111827;
    background:
        linear-gradient(180deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-left: 8px solid #1d4ed8;
    border-radius: 12px;
    box-shadow: inset 0 1px rgba(255,255,255,0.92), 0 6px 16px rgba(29, 78, 216, 0.08);
    text-align: left;
}

.vehicle-station button.vehicle-vin-card {
    cursor: pointer;
}

.vehicle-station button.vehicle-vin-card:hover,
.vehicle-station button.vehicle-vin-card:focus-visible {
    border-color: #1d4ed8;
    box-shadow: inset 0 1px rgba(255,255,255,0.92), 0 0 0 4px rgba(29, 78, 216, 0.13);
}

.vehicle-station .vehicle-vin-card span {
    color: #1e40af;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.vehicle-station .vehicle-vin-card strong {
    min-width: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 1.04rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-station .detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-gutter: stable;
}

.vehicle-station .detail-list div,
.vehicle-station .detail-list .vehicle-field-tile {
    display: grid;
    gap: 3px;
    min-width: 0;
    min-height: 62px;
    align-content: center;
    padding: 9px 10px;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9);
    text-align: left;
}

.vehicle-station .detail-list .vehicle-field-tile {
    cursor: pointer;
}

.vehicle-station .detail-list .vehicle-field-tile:hover,
.vehicle-station .detail-list .vehicle-field-tile:focus-visible {
    border-color: #b91c1c;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 0 0 4px rgba(185,28,28,0.08);
}

.vehicle-station .detail-list .vehicle-vin-tile {
    grid-column: 1 / -1;
    min-height: 56px;
    border-left: 7px solid #1d4ed8;
}

.vehicle-station .detail-list span,
.vehicle-station .detail-list .vehicle-field-tile span {
    font-size: 0.74rem;
    line-height: 1.1;
}

.vehicle-station .detail-list strong,
.vehicle-station .detail-list .vehicle-field-tile strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.14;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-station .detail-list .vehicle-field-tile small {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 850;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-station .detail-list .vehicle-vin-tile strong {
    font-size: 1rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.vehicle-station.is-tight {
    gap: 6px;
}

.vehicle-station.is-tight .panel-heading {
    margin-bottom: 4px;
    padding-bottom: 5px;
}

.vehicle-station.is-tight .panel-heading h2 {
    font-size: 1.12rem;
}

.vehicle-station.is-tight .panel-heading span {
    font-size: 0.78rem;
}

.vehicle-station.is-tight .vehicle-hero {
    padding: 10px 11px;
}

.vehicle-station.is-tight .vehicle-hero strong {
    font-size: 1.08rem;
}

.vehicle-station.is-tight .vehicle-hero span {
    font-size: 0.82rem;
}

.vehicle-station.is-tight .vehicle-vin-card {
    min-height: 48px;
    padding: 7px 9px 7px 11px;
    border-radius: 10px;
}

.vehicle-station.is-tight .vehicle-vin-card span {
    font-size: 0.64rem;
}

.vehicle-station.is-tight .vehicle-vin-card strong {
    font-size: 0.88rem;
}

.vehicle-station.is-tight .detail-list {
    gap: 5px;
}

.vehicle-station.is-tight .detail-list div,
.vehicle-station.is-tight .detail-list .vehicle-field-tile {
    min-height: 52px;
    padding: 7px 8px;
}

.vehicle-station.is-tight .detail-list span,
.vehicle-station.is-tight .detail-list .vehicle-field-tile span {
    font-size: 0.68rem;
}

.vehicle-station.is-tight .detail-list strong,
.vehicle-station.is-tight .detail-list .vehicle-field-tile strong {
    font-size: 0.84rem;
}

.vehicle-station.is-ultra-tight {
    gap: 4px;
}

.vehicle-station.is-ultra-tight .panel-heading {
    margin-bottom: 2px;
    padding-bottom: 3px;
}

.vehicle-station.is-ultra-tight .vehicle-hero {
    padding: 7px 8px;
}

.vehicle-station.is-ultra-tight .vehicle-hero strong {
    font-size: 0.98rem;
    line-height: 1.08;
}

.vehicle-station.is-ultra-tight .vehicle-hero span {
    font-size: 0.74rem;
}

.vehicle-station.is-ultra-tight .vehicle-vin-card {
    min-height: 40px;
    padding: 5px 7px 5px 9px;
    border-left-width: 6px;
}

.vehicle-station.is-ultra-tight .vehicle-vin-card span {
    font-size: 0.58rem;
}

.vehicle-station.is-ultra-tight .vehicle-vin-card strong {
    font-size: 0.76rem;
}

.vehicle-station.is-ultra-tight .detail-list {
    gap: 4px;
}

.vehicle-station.is-ultra-tight .detail-list div,
.vehicle-station.is-ultra-tight .detail-list .vehicle-field-tile {
    min-height: 42px;
    padding: 5px 6px;
}

.vehicle-station.is-ultra-tight .detail-list strong,
.vehicle-station.is-ultra-tight .detail-list .vehicle-field-tile strong {
    font-size: 0.78rem;
}

.vehicle-station.needs-scroll .detail-list {
    align-content: start;
    padding-bottom: 6px;
}

.vehicle-station.needs-scroll .detail-list div,
.vehicle-station.needs-scroll .detail-list .vehicle-field-tile {
    min-height: clamp(38px, 8.4vh, 52px);
}

.touch-work-panel .invoice-lines-table {
    display: grid;
    grid-template-rows: 28px;
    grid-auto-rows: minmax(48px, auto);
    gap: 5px;
    align-content: start;
    min-height: 0;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
}

.invoice-list-head,
.invoice-line.invoice-line-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 64px 96px 104px 48px;
    gap: 10px;
    align-items: center;
}

.invoice-list-head {
    min-height: 28px;
    padding: 0 10px;
    color: #ffffff;
    background: linear-gradient(180deg, #273341, #111820);
    border: 1px solid #111820;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.invoice-list-head span:nth-child(3),
.invoice-list-head span:nth-child(4),
.invoice-list-head span:nth-child(5) {
    text-align: right;
}

.invoice-line.invoice-line-row {
    min-height: 0;
    padding: 7px 10px;
    background: #f8fafc;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    box-shadow: none;
}

.invoice-line.invoice-line-row.invoice-edit-row {
    cursor: pointer;
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease, transform 120ms ease;
}

.invoice-line.invoice-line-row.invoice-edit-row:hover,
.invoice-line.invoice-line-row.invoice-edit-row:focus-visible,
.invoice-line.invoice-line-row.invoice-edit-row:focus-within {
    background: #ffffff;
    border-color: var(--yellow);
    box-shadow: inset 0 0 0 3px rgba(255, 211, 77, 0.72), 0 8px 18px rgba(15, 23, 42, 0.10);
}

.invoice-line.invoice-line-row.invoice-edit-row:active {
    transform: translateY(1px);
}

.invoice-line.invoice-line-row:nth-child(odd) {
    background: #ffffff;
}

.invoice-item-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.invoice-item-main strong {
    overflow: hidden;
    color: #101820;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.16;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-item-main span,
.invoice-item-main small {
    overflow: hidden;
    color: #5f6d7c;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.invoice-item-main small {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.invoice-item-main .invoice-line-flags {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 2px 7px;
    color: #334155;
    background: #eaf2fb;
    border: 1px solid #ccdae8;
    border-radius: 999px;
    font-size: 0.66rem;
}

.invoice-line-number {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    background: #6b7280;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.invoice-qty,
.invoice-unit,
.invoice-row-total {
    justify-self: end;
    font-weight: 900;
    white-space: nowrap;
}

.invoice-qty,
.invoice-unit {
    color: #334155;
    font-size: 0.9rem;
}

.invoice-row-total {
    color: var(--red);
    font-size: 0.96rem;
}

.invoice-line.invoice-line-row .invoice-line-actions {
    justify-items: center;
    position: relative;
    z-index: 2;
}

.invoice-line.invoice-line-row .icon-delete-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 10px;
}

.touch-work-panel .invoice-bottom-bar {
    gap: 6px;
}

.touch-work-panel .invoice-bottom-bar .invoice-totals > div {
    padding: 7px 10px;
}

.touch-work-panel .invoice-bottom-bar .invoice-totals strong {
    font-size: 0.98rem;
}

.invoice-item-modal {
    width: min(760px, calc((100vw - 40px) * var(--app-display-inverse, 1)));
}

.invoice-edit-summary {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    color: #101820;
    background: #f8fafc;
    border: 1px solid #d9e2ec;
    border-left: 5px solid var(--red);
    border-radius: 12px;
}

.invoice-edit-summary strong {
    font-size: 1.04rem;
    font-weight: 950;
}

.invoice-edit-summary small {
    color: #5f6d7c;
    font-weight: 800;
    line-height: 1.25;
}

.invoice-edit-grid {
    align-items: stretch;
}

.invoice-edit-grid input[readonly] {
    color: #64748b;
    background: #eef2f7;
    cursor: not-allowed;
}

.invoice-tax-toggle,
.invoice-price-note {
    min-height: 70px;
}

.invoice-tax-toggle {
    align-self: end;
}

.invoice-price-note {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 850;
}

.invoice-price-note.variable {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.invoice-price-note.fixed {
    color: #7f1d1d;
    background: #fff1f2;
    border-color: #fecdd3;
}

.invoice-edit-actions {
    justify-content: flex-end;
}

body.ui-modern .modern-inline-pager.prominent-pager {
    gap: 10px;
}

body.ui-modern .modern-inline-pager.prominent-pager a,
body.ui-modern .modern-inline-pager.prominent-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 46px;
    padding: 10px 16px;
    color: #ffffff;
    background: #c7191c;
    border: 2px solid #c7191c;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(199, 25, 28, 0.16);
    font-size: 0.92rem;
    font-weight: 900;
}

body.ui-modern .modern-inline-pager.prominent-pager span {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #dbe3eb;
    box-shadow: none;
}

body.ui-modern .modern-inline-pager.prominent-pager strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    color: #ffffff;
    background: #111827;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
}

body.ui-modern .modern-open-order-row {
    grid-template-columns: 44px minmax(260px, 1fr) minmax(280px, 300px) 104px 160px;
    gap: 12px;
    min-height: 84px;
    padding: 14px 18px;
}

body.ui-modern .modern-open-order-row .modern-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
}

body.ui-modern .modern-open-order-row .modern-progress-step {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 5px;
    min-width: 0;
    min-height: 30px;
    padding: 5px 7px;
    color: #6b7280;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
}

body.ui-modern .modern-open-order-row .modern-progress-step.done {
    color: #047857;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

body.ui-modern .modern-open-order-row .modern-progress-step.next {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

body.ui-modern .modern-open-order-row .modern-progress-step b {
    width: 8px;
    height: 8px;
    background: #d1d5db;
    border-radius: 50%;
}

body.ui-modern .modern-open-order-row .modern-progress-step.done b {
    background: #10b981;
}

body.ui-modern .modern-open-order-row .modern-progress-step.next b {
    background: #ef4444;
}

body.ui-modern .modern-open-order-row .modern-progress-step small {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern .modern-open-order-row .open-order-total {
    justify-self: stretch;
    min-width: 0;
    text-align: right;
}

body.ui-modern .modern-open-order-row .modern-next-action {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    text-align: center;
}

body.ui-modern .invoice-list-head {
    color: #ffffff;
    background: #171717;
    border-color: #171717;
}

body.ui-modern .invoice-line.invoice-line-row {
    background: #ffffff;
    border-color: #e5e7eb;
    border-radius: 12px;
}

body.ui-modern .invoice-line.invoice-line-row:nth-child(odd) {
    background: #fafafa;
}

body.ui-modern .invoice-item-main strong {
    color: #030712;
}

body.ui-modern .invoice-line-number {
    color: #ffffff;
    background: #b91c1c;
}

body.ui-modern .invoice-row-total {
    color: #b91c1c;
}

.print-artifact {
    display: none;
}

@media print {
    @page {
        margin: 0.25in;
    }

    body.printing-invoice,
    body.printing-sticker,
    body.printing-hardware-test {
        display: block;
        height: auto;
        min-height: 0;
        overflow: visible;
        background: #ffffff;
    }

    .print-artifact {
        display: block !important;
        color: #111827;
        background: #ffffff;
        font-family: Arial, Helvetica, sans-serif;
    }

    body.printing-invoice * {
        visibility: hidden !important;
    }

    body.printing-invoice .printable-invoice,
    body.printing-invoice .printable-invoice * {
        visibility: visible !important;
    }

    body.printing-sticker * {
        visibility: hidden !important;
    }

    body.printing-sticker .printable-sticker,
    body.printing-sticker .printable-sticker * {
        visibility: visible !important;
    }

    body.printing-hardware-test * {
        visibility: hidden !important;
    }

    body.printing-hardware-test .printable-hardware-test,
    body.printing-hardware-test .printable-hardware-test * {
        visibility: visible !important;
    }

    .printable-hardware-test {
        position: fixed;
        inset: 0 auto auto 0;
    }

    .printable-invoice {
        position: fixed;
        inset: 0;
        padding: 0.12in;
    }

    .printable-invoice header,
    .printable-invoice footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.18in;
        padding: 0.08in 0;
        border-bottom: 2px solid #111827;
    }

    .printable-invoice footer {
        margin-top: 0.16in;
        border-top: 2px solid #111827;
        border-bottom: 0;
    }

    .printable-invoice header strong {
        font-size: 18pt;
    }

    .print-invoice-meta {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.12in;
        margin: 0.16in 0;
    }

    .print-invoice-meta div {
        display: grid;
        gap: 0.03in;
        padding: 0.09in;
        border: 1px solid #9ca3af;
    }

    .print-invoice-meta span,
    .print-invoice-meta small {
        color: #4b5563;
        font-size: 9pt;
        font-weight: 700;
    }

    .printable-invoice table {
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
    }

    .printable-invoice th,
    .printable-invoice td {
        padding: 0.07in;
        border-bottom: 1px solid #d1d5db;
        text-align: left;
    }

    .printable-invoice th:last-child,
    .printable-invoice td:last-child,
    .printable-invoice th:nth-child(2),
    .printable-invoice td:nth-child(2),
    .printable-invoice th:nth-child(3),
    .printable-invoice td:nth-child(3) {
        text-align: right;
    }

    .printable-sticker {
        position: fixed;
        top: 0;
        left: 0;
        width: 3.5in;
        height: 2.15in;
        padding: 0;
    }

    .sticker-card {
        display: grid;
        width: 3.5in;
        height: 2.15in;
        padding: 0.12in;
        align-content: center;
        gap: 0.05in;
        border: 2px solid #111827;
        border-radius: 0.12in;
        text-align: center;
    }

    .sticker-card strong {
        font-size: 14pt;
    }

    .sticker-card span {
        color: #4b5563;
        font-size: 9pt;
        font-weight: 900;
        text-transform: uppercase;
    }

    .sticker-card b {
        color: #b51218;
        font-size: 28pt;
        line-height: 1;
    }

    .sticker-card small {
        font-size: 8.5pt;
        font-weight: 700;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oil-loader-road::before,
    .oil-loader-car,
    .oil-loader-wheel,
    .oil-loader-drops span,
    .odometer-loader span::before,
    .app-startup-panel::after {
        animation-duration: 2s;
        animation-iteration-count: infinite;
    }
}

@media (max-width: 1380px) {
    body.ui-modern .command-bar {
        padding-inline: 12px;
    }

    body.ui-modern .brand-block {
        flex-basis: 52px;
        width: 52px;
        min-width: 52px;
        padding-right: 0;
        border-right: 0;
    }

    body.ui-modern .brand-block > span:last-child {
        display: none;
    }

    body.ui-modern .modern-command-actions .command-button {
        gap: 7px;
        min-width: var(--modern-command-compact-min-width, var(--modern-command-min-width, 96px));
        padding-inline: 10px;
        font-size: 0.88rem;
    }

    body.ui-modern .modern-command-actions .command-button.modern-primary {
        --modern-command-compact-min-width: 124px;
    }

    body.ui-modern .modern-command-actions .command-button.modern-clock {
        --modern-command-compact-min-width: 112px;
    }

    body.ui-modern .modern-command-actions .command-button.modern-bay-command {
        --modern-command-compact-min-width: 138px;
        max-width: 210px;
    }

    body.ui-modern .modern-command-actions .command-button.modern-logout,
    body.ui-modern .modern-command-actions .command-button.modern-quit {
        --modern-command-compact-min-width: 82px;
    }
}

@media (max-width: 980px) {
    .hero-workbench,
    .record-header,
    .clock-screen {
        align-items: stretch;
        flex-direction: column;
    }

    .command-bar {
        gap: 8px;
    }

    .brand-block {
        min-width: 145px;
        gap: 8px;
    }

    .brand-block small,
    kbd {
        display: none;
    }

    .command-actions {
        grid-template-columns: repeat(7, minmax(50px, 1fr));
        gap: 5px;
        font-size: 0.78rem;
    }

    .lookup-hero {
        grid-template-columns: 1fr;
    }

    .customer-profile-card {
        width: 100%;
        justify-self: stretch;
    }

    .dev-tools-bar {
        grid-template-columns: repeat(2, minmax(0, max-content));
        justify-content: center;
    }

    .dev-tools-bar strong,
    .dev-tools-bar span {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .split-layout,
    .stat-grid,
    .tile-grid.four,
    .service-grid,
    .settings-launch-grid,
    .settings-choice-grid,
    .product-tile {
        grid-template-columns: 1fr;
    }

    .touch-order-layout {
        grid-template-columns: minmax(220px, 0.58fr) minmax(360px, 1.42fr);
        gap: 10px;
    }

    .workflow-guide,
    .order-start-card {
        grid-template-columns: 1fr;
    }

    .order-start-inputs {
        grid-template-columns: 1fr 1fr;
    }

    .open-order-row,
    .directory-row {
        grid-template-columns: minmax(130px, 0.8fr) minmax(180px, 1fr);
    }

    .open-order-checks,
    .open-order-total {
        grid-column: 1 / -1;
    }

    .order-action-bar {
        flex-wrap: wrap;
        min-width: 0;
    }

    .open-order-total {
        justify-self: start;
    }

    .search-panel,
    .lookup-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .workspace,
    .login-workspace {
        width: min(100% - 16px, 1440px);
        padding-top: 8px;
    }

    .tile-grid.two,
    .form-grid.two,
    .form-grid.three,
    .product-actions,
    .invoice-line,
    .touch-nav-row {
        grid-template-columns: 1fr;
    }

    .command-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .live-count-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .live-count-card {
        min-width: 0;
    }

    .brand-block {
        min-width: 46px;
        padding-right: 0;
    }

    .brand-block span:last-child {
        display: none;
    }

    .dev-tools-bar {
        left: 8px;
        right: 8px;
        bottom: 8px;
        grid-template-columns: 1fr 1fr;
    }

    .dev-tools-bar button {
        width: 100%;
        min-width: 0;
    }

    .open-order-row,
    .directory-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

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

    .open-order-checks,
    .directory-checks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-start-inputs {
        grid-template-columns: 1fr;
    }

    .dashboard-scan-control {
        grid-template-columns: 1fr;
    }

}

.owner-page {
    display: grid;
    gap: 16px;
}

.owner-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    padding: 20px;
}

.owner-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.owner-hero-metrics span {
    display: grid;
    gap: 4px;
    min-height: 74px;
    padding: 14px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-weight: 900;
}

.owner-hero-metrics strong {
    color: #b91c1c;
    font-size: 1.75rem;
    line-height: 1;
}

.owner-tabs {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.owner-tabs a {
    display: grid;
    min-height: 58px;
    place-items: center;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #e8eef5);
    border: 1px solid #9fb0c2;
    border-radius: 10px;
    box-shadow: inset 0 1px rgba(255,255,255,0.85), 0 3px 0 #8b9aaa;
    font-weight: 900;
    text-decoration: none;
}

.owner-tabs a.active,
.owner-tabs a:hover,
.owner-tabs a:focus-visible {
    color: #ffffff;
    background: linear-gradient(180deg, #d21d20, #8f1116);
    border-color: #7f1d1d;
    box-shadow: inset 0 1px rgba(255,255,255,0.24), 0 3px 0 #5f1215;
}

.owner-card-grid,
.owner-two-column {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.owner-two-column {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.owner-card {
    display: grid;
    gap: 10px;
    min-height: 160px;
    padding: 20px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.85), 0 3px 0 #9aa8b6;
    text-decoration: none;
}

.owner-card span {
    justify-self: start;
    padding: 5px 10px;
    color: #ffffff;
    background: #1f2937;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.owner-card strong {
    font-size: 1.3rem;
}

.owner-card small {
    color: #64748b;
    font-weight: 800;
}

.owner-card.red span {
    background: #b91c1c;
}

.owner-card.green span {
    background: #087646;
}

.owner-card.blue span {
    background: #1d4ed8;
}

.owner-form {
    display: grid;
    align-content: start;
    gap: 14px;
}

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

.owner-form-grid label,
.owner-search {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #1f2937;
    font-weight: 900;
}

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

.owner-checkbox {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

.owner-checkbox input {
    min-height: 20px;
    width: 20px;
}

.owner-submit,
.owner-dark-action,
.owner-green-action {
    min-height: 58px;
    color: #ffffff !important;
    border-radius: 12px;
    font-weight: 900;
}

.owner-submit {
    background: linear-gradient(180deg, #dc2626, #991b1b) !important;
}

.owner-dark-action {
    background: linear-gradient(180deg, #334155, #111827) !important;
}

.owner-green-action {
    background: linear-gradient(180deg, #16a34a, #087646) !important;
}

.owner-search {
    grid-template-columns: minmax(0, 1fr) 124px;
    align-items: end;
}

.owner-heading-search {
    grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr) 110px;
    width: min(100%, 620px);
}

.owner-oil-preview,
.owner-flow-list {
    display: grid;
    gap: 8px;
}

.owner-oil-preview div,
.owner-flow-list div {
    display: grid;
    gap: 3px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
}

.owner-oil-preview strong,
.owner-flow-list strong {
    color: #111827;
}

.owner-oil-preview span,
.owner-oil-preview small,
.owner-flow-list span {
    color: #64748b;
    font-weight: 800;
}

.owner-flow-list div {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
}

.owner-flow-list strong {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: #b91c1c;
    border-radius: 999px;
}

.owner-list-panel {
    display: grid;
    gap: 12px;
}

.owner-table {
    display: grid;
    gap: 8px;
}

.owner-table-head,
.owner-table-row {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 0.7fr 0.75fr;
    gap: 10px;
    align-items: center;
}

.owner-table-head {
    min-height: 38px;
    padding: 0 12px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.owner-table-row {
    min-height: 72px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 1px 0 #e2e8f0;
    font-weight: 800;
}

.owner-table-row strong {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.owner-table-row small {
    color: #64748b;
    font-size: 0.78rem;
}

.owner-table-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owner-stock-table .owner-table-head,
.owner-stock-table .owner-table-row {
    grid-template-columns: 1.5fr 0.8fr 0.45fr 0.55fr 0.55fr;
}

.owner-status {
    display: inline-grid;
    min-height: 32px;
    place-items: center;
    padding: 4px 10px;
    color: #111827;
    background: #e5e7eb;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
}

.owner-status.ordered {
    color: #92400e;
    background: #fef3c7;
}

.owner-status.received {
    color: #047857;
    background: #d1fae5;
}

.oil-uom-summary {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1.1fr 1.25fr 0.85fr 0.8fr;
    gap: 8px;
    margin-top: 0;
}

.oil-uom-summary span {
    display: grid;
    min-width: 0;
    min-height: 44px;
    padding: 7px 9px;
    color: #0f172a;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(148,163,184,0.8);
    border-radius: 10px;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.05;
    box-shadow: inset 0 1px rgba(255,255,255,0.88);
}

.oil-uom-summary b {
    color: #64748b;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.advisor-action-modal .product-grid:has(.product-tile.has-oil-uom) {
    grid-auto-rows: 224px !important;
}

.advisor-action-modal .product-tile.has-oil-uom {
    min-height: 224px !important;
}

.advisor-action-modal .product-tile.has-oil-uom .oil-uom-summary {
    position: static;
    align-self: end;
}

body.ui-modern .owner-hero {
    position: relative;
    padding: 28px;
    overflow: hidden;
}

body.ui-modern .owner-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #b91c1c, #f59e0b);
}

body.ui-modern .owner-tabs a,
body.ui-modern .owner-card,
body.ui-modern .owner-table-row,
body.ui-modern .owner-oil-preview div,
body.ui-modern .owner-flow-list div {
    box-shadow: none;
}

body.ui-modern .owner-tabs a {
    min-height: 56px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

body.ui-modern .owner-tabs a.active,
body.ui-modern .owner-tabs a:hover,
body.ui-modern .owner-tabs a:focus-visible {
    color: #ffffff;
    background: #b91c1c;
    border-color: #b91c1c;
}

body.ui-modern .owner-card {
    min-height: 170px;
    border-radius: 20px;
}

body.ui-modern .owner-submit {
    background: #b91c1c !important;
}

body.ui-modern .owner-dark-action {
    background: #111827 !important;
}

body.ui-modern .owner-green-action {
    background: #047857 !important;
}

body.ui-modern .advisor-action-modal .product-grid {
    grid-auto-rows: 224px;
}

body.ui-modern .advisor-action-modal .product-tile {
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 224px;
}

@media (max-width: 1000px) {
    .owner-hero,
    .owner-card-grid,
    .owner-two-column,
    .owner-business-info-grid,
    .stock-manager-grid {
        grid-template-columns: 1fr;
    }

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

    .owner-table-head,
    .owner-table-row,
    .owner-info-grid,
    .owner-location-info-card,
    .owner-stock-table .owner-table-head,
    .owner-stock-table .owner-table-row {
        grid-template-columns: 1fr;
    }
}

/* Owner screens must behave like bay screens: fit the viewport and page inside sections. */
.owner-page {
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 10px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.owner-screen {
    display: grid;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
}

.owner-page:not(.owner-page-screen-dashboard) .owner-hero {
    display: none;
}

.owner-screen-dashboard {
    grid-template-rows: minmax(0, 1fr);
}

.owner-screen-stores,
.owner-screen-bays,
.owner-screen-stock,
.owner-screen-purchase_orders,
.owner-screen-payments,
.owner-screen-pay_in,
.owner-screen-pay_out,
.owner-screen-bank_accounts,
.owner-screen-suppliers,
.owner-screen-catalog_products {
    grid-template-rows: minmax(0, 1fr) auto;
}

.owner-screen > .owner-card-grid,
.owner-screen > .owner-two-column,
.owner-screen > .owner-list-panel {
    min-height: 0;
    margin-bottom: 0;
}

.owner-screen > .owner-two-column {
    height: 100%;
}

.owner-form-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.owner-form-actions .primary-action,
.owner-form-actions .small-action {
    min-width: 150px;
}

.owner-page .owner-hero {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
    padding: 9px 16px;
    gap: 14px;
}

.owner-page .owner-hero h1 {
    font-size: 1.42rem;
}

.owner-page .owner-hero .eyebrow {
    margin-bottom: 3px;
    font-size: 0.68rem;
}

.owner-page .owner-hero .lead {
    margin: 2px 0 0;
    font-size: 0.9rem;
    line-height: 1.2;
}

.owner-page .owner-hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.owner-page .owner-hero-metrics span {
    min-height: 48px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.82rem;
}

.owner-page .owner-hero-metrics strong {
    font-size: 1.28rem;
}

.owner-page .owner-tabs {
    gap: 8px;
}

.owner-page .owner-tabs a {
    min-height: 46px;
    border-radius: 9px;
}

.owner-placeholder-surface {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 0;
    padding: 14px;
}

.owner-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-height: 0;
}

.owner-placeholder-button {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 170px;
    padding: 18px;
    color: #111827;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 18px;
    box-shadow: inset 5px 0 0 #b91c1c;
    text-align: left;
}

.owner-placeholder-button:hover,
.owner-placeholder-button:focus-visible {
    border-color: #b91c1c;
    background: #fff7f7;
}

.owner-placeholder-button strong {
    font-size: 1.25rem;
    line-height: 1.1;
}

.owner-placeholder-button span,
.owner-placeholder-note,
.owner-placeholder-modal-body span {
    color: #64748b;
    font-weight: 850;
}

.owner-placeholder-note {
    margin: 0;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}

.owner-placeholder-modal-body {
    display: grid;
    gap: 10px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
}

.owner-placeholder-modal-body strong {
    color: #111827;
    font-size: 1.25rem;
}

.owner-business-info-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

.owner-business-card {
    min-height: 0;
}

.owner-info-grid,
.owner-location-info-list {
    display: grid;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
}

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

.owner-info-grid div,
.owner-location-info-card {
    min-width: 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
}

.owner-info-grid span,
.owner-location-info-card span {
    display: block;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.owner-info-grid strong,
.owner-location-info-card strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-size: 1rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-location-info-card {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr);
    gap: 10px;
    border-left: 7px solid #94a3b8;
}

.owner-location-info-card.active {
    border-left-color: #047857;
}

.owner-location-info-card.inactive {
    opacity: 0.7;
}

.owner-location-info-card small {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-page .owner-form {
    gap: 8px;
    padding: 10px 12px;
}

.owner-page .owner-form .panel-heading,
.owner-page .owner-list-panel .panel-heading {
    min-height: 0;
    margin-bottom: 2px;
    padding-bottom: 6px;
}

.owner-page .owner-form .panel-heading h2,
.owner-page .owner-list-panel .panel-heading h2 {
    font-size: 1.04rem;
}

.owner-page .owner-form .panel-heading span,
.owner-page .owner-list-panel .panel-heading span {
    font-size: 0.78rem;
    line-height: 1.12;
}

.owner-page .owner-form-grid {
    gap: 7px 10px;
}

.owner-screen-stores .owner-form-grid,
.owner-screen-stock .owner-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-screen-stock .owner-form-grid .owner-wide {
    grid-column: span 2;
}

.owner-screen-purchase_orders .owner-form-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.owner-screen-purchase_orders .owner-form-grid .owner-wide {
    grid-column: span 3;
}

.owner-screen-purchase_orders .owner-checkbox {
    grid-column: span 2;
}

.owner-page .owner-form-grid label,
.owner-page .owner-search {
    gap: 4px;
    font-size: 0.84rem;
}

.owner-page .owner-form-grid input,
.owner-page .owner-form-grid select,
.owner-page .owner-form-grid textarea,
.owner-page .owner-search input,
.owner-page .owner-search select {
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.owner-page .owner-form-grid textarea {
    min-height: 54px;
}

.owner-page .owner-form-grid label.is-locked input {
    color: #475569;
    background: #eef2f7;
    border-color: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
}

.owner-page .owner-checkbox {
    min-height: 38px;
    padding: 6px 10px;
}

.owner-page .owner-submit,
.owner-page .owner-dark-action,
.owner-page .owner-green-action {
    min-height: 42px;
}

.owner-supplier-picker {
    position: relative;
    display: grid;
    grid-column: span 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: end;
    z-index: 5;
}

.owner-supplier-picker label {
    min-width: 0;
}

.owner-supplier-main,
.owner-supplier-new {
    min-height: 72px;
    padding: 14px 18px;
    color: #ffffff;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 5px 0 rgba(30, 64, 175, 0.22);
    font-weight: 950;
    cursor: pointer;
    text-align: left;
}

.owner-supplier-panel {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    z-index: 60;
    display: grid;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.owner-supplier-panel input[type="search"] {
    min-height: 50px;
    width: 100%;
}

.owner-supplier-panel[hidden] {
    display: none;
}

.owner-supplier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    max-height: min(360px, 48vh);
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 4px;
}

.owner-supplier-grid button {
    display: grid;
    align-content: center;
    gap: 5px;
    min-height: 92px;
    padding: 14px 16px;
    color: #111827;
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    border: 1px solid #94a3b8;
    border-left: 7px solid #2563eb;
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
}

.owner-supplier-new {
    min-height: 92px;
    color: #ffffff;
    background: linear-gradient(180deg, #16a34a, #047857);
    border-left-color: #065f46;
    box-shadow: 0 5px 0 rgba(4, 120, 87, 0.22);
}

.owner-supplier-grid button[hidden] {
    display: none;
}

.owner-supplier-grid strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-supplier-grid span,
.owner-supplier-new-field {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 850;
}

.owner-supplier-new span {
    color: rgba(255,255,255,0.86);
}

#owner-po-modal .owner-supplier-picker {
    grid-column: span 3 !important;
    z-index: 90;
}

#owner-po-modal .owner-supplier-picker label {
    width: 100%;
}

#owner-po-modal .owner-supplier-main,
#owner-po-modal .owner-supplier-grid button {
    width: 100%;
    min-width: 0;
    max-width: none;
}

#owner-po-modal .owner-supplier-main {
    display: block;
    min-height: 66px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#owner-po-modal .owner-supplier-panel {
    right: auto;
    width: min(780px, calc(100vw - 96px));
    max-width: calc(100vw - 96px);
    z-index: 5000;
}

#owner-po-modal .owner-supplier-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    max-height: min(410px, 46vh);
}

#owner-po-modal .owner-supplier-grid button {
    min-height: 106px;
}

#owner-po-modal .owner-supplier-new span {
    color: rgba(255,255,255,0.88);
}

.owner-supplier-panel.owner-supplier-panel-floating {
    position: fixed;
    top: var(--owner-supplier-panel-top, 96px);
    right: auto;
    left: var(--owner-supplier-panel-left, 16px);
    z-index: 12000;
    width: var(--owner-supplier-panel-width, min(780px, calc(100vw - 32px)));
    max-width: calc(100vw - 32px);
    max-height: var(--owner-supplier-panel-max-height, calc(100vh - 32px));
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.owner-supplier-panel-floating .owner-supplier-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

.owner-supplier-panel-floating .owner-supplier-grid button {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 106px;
}

@media (max-width: 1100px) {
    #owner-po-modal .owner-supplier-picker {
        grid-column: 1 / -1 !important;
    }

    #owner-po-modal .owner-supplier-panel {
        width: 100%;
        max-width: 100%;
    }
}

html body .dev-tools-bar.dev-tools-bar-expanded {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

html body .dev-tools-bar.dev-tools-bar-expanded .dev-tools-head,
html body .dev-tools-bar.dev-tools-bar-expanded .dev-tools-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

html body .dev-tools-bar.dev-tools-bar-expanded .dev-load-test-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(5, max-content);
}

@media (max-width: 1280px) {
    html body .dev-tools-bar.dev-tools-bar-expanded .dev-load-test-tools {
        grid-template-columns: minmax(220px, 1fr) repeat(3, max-content);
    }
}

@media (max-width: 760px) {
    html body .dev-tools-bar.dev-tools-bar-expanded .dev-load-test-tools {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Owner/admin V2 cleanup: denser data pages, softer type, compact modals. */
html body.ui-modern .owner-page {
    font-weight: 500 !important;
}

html body.ui-modern .owner-page h1,
html body.ui-modern .owner-page h2,
html body.ui-modern .owner-page strong,
html body.ui-modern .owner-page b {
    font-weight: 760 !important;
}

html body.ui-modern .owner-page .lead,
html body.ui-modern .owner-page span,
html body.ui-modern .owner-page small,
html body.ui-modern .owner-page label {
    font-weight: 560 !important;
}

html body.ui-modern .owner-page .owner-work-surface,
html body.ui-modern .owner-page .owner-list-panel,
html body.ui-modern .owner-page .owner-form {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
}

html body.ui-modern .owner-data-table {
    display: grid;
    gap: 5px;
    width: 100%;
}

html body.ui-modern .owner-data-head,
html body.ui-modern .owner-data-row {
    display: grid;
    align-items: center;
    gap: 8px;
}

html body.ui-modern .owner-data-head {
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid #d8e2ef;
    border-radius: 9px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 760;
    text-transform: uppercase;
}

html body.ui-modern .owner-data-row {
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #d7e1ee;
    border-left: 4px solid #0f766e;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 2px 0 rgba(100, 116, 139, 0.18);
}

html body.ui-modern .owner-data-row:hover,
html body.ui-modern .owner-data-row:focus-visible {
    border-color: #0f766e;
    background: #f8fffc;
}

html body.ui-modern .owner-data-row > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

html body.ui-modern .owner-data-row strong,
html body.ui-modern .owner-data-row span,
html body.ui-modern .owner-data-row small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body.ui-modern .owner-data-row strong {
    font-size: 0.88rem !important;
}

html body.ui-modern .owner-data-row span,
html body.ui-modern .owner-data-row small {
    font-size: 0.72rem !important;
    color: #475569;
}

html body.ui-modern .owner-stock-table .owner-data-head,
html body.ui-modern .owner-stock-table .owner-data-row {
    grid-template-columns: minmax(260px, 2fr) 88px 130px 86px 105px 76px;
}

html body.ui-modern .owner-bay-table .owner-data-head,
html body.ui-modern .owner-bay-table .owner-data-row {
    grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1fr) 95px minmax(160px, 1.2fr) 82px 106px;
}

html body.ui-modern .owner-po-table .owner-data-head,
html body.ui-modern .owner-po-table .owner-data-row,
html body.ui-modern .owner-po-lines-table .owner-data-head,
html body.ui-modern .owner-po-lines-table .owner-data-row {
    grid-template-columns: minmax(170px, 1.35fr) minmax(160px, 1fr) 92px 78px 92px 84px;
}

html body.ui-modern .owner-payment-table .owner-data-head,
html body.ui-modern .owner-payment-table .owner-data-row {
    grid-template-columns: minmax(200px, 1.6fr) 100px 70px 90px 116px;
}

html body.ui-modern .owner-valor-table .owner-data-head,
html body.ui-modern .owner-valor-table .owner-data-row {
    grid-template-columns: minmax(190px, 1.4fr) minmax(120px, 0.9fr) 96px 86px 128px 112px;
}

html body.ui-modern .owner-admin-table .owner-table-head,
html body.ui-modern .owner-admin-table .owner-table-row {
    display: grid !important;
}

html body.ui-modern .owner-store-admin-table .owner-table-head,
html body.ui-modern .owner-store-admin-table .owner-table-row {
    grid-template-columns: minmax(180px, 1.4fr) 100px 72px 72px 82px 124px !important;
}

html body.ui-modern .owner-login-admin-table .owner-table-head,
html body.ui-modern .owner-login-admin-table .owner-table-row {
    grid-template-columns: minmax(150px, 1.1fr) minmax(140px, 1fr) minmax(130px, 1fr) 78px 68px 78px 160px !important;
}

html body.ui-modern .owner-row-actions,
html body.ui-modern .owner-confirm-actions,
html body.ui-modern .owner-form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

html body.ui-modern .owner-muted-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.7rem;
}

html body.ui-modern .owner-delete-warning,
html body.ui-modern .owner-valor-setup-note {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-left: 4px solid #c5161d;
    border-radius: 10px;
    background: #fff7f7;
}

html body.ui-modern .owner-valor-setup-note {
    border-color: #bfdbfe;
    border-left-color: #2563eb;
    background: #f8fbff;
}

html body.ui-modern .owner-touch-modal {
    width: min(980px, calc(100vw - 64px)) !important;
    max-height: calc(100vh - 72px) !important;
}

html body.ui-modern .owner-list-touch-modal,
html body.ui-modern .owner-stock-touch-modal,
html body.ui-modern .owner-oil-helper-modal,
html body.ui-modern .owner-valor-modal {
    width: min(1040px, calc(100vw - 72px)) !important;
}

html body.ui-modern .owner-confirm-modal,
html body.ui-modern .owner-login-edit-modal {
    width: min(760px, calc(100vw - 72px)) !important;
}

html body.ui-modern .owner-product-results-shell,
html body.ui-modern .owner-oil-lines {
    max-height: min(430px, calc(100vh - 360px)) !important;
    overflow-y: auto !important;
}

html body.ui-modern .owner-oil-line {
    grid-template-columns: minmax(230px, 1.6fr) 130px 90px minmax(120px, 1fr) 118px !important;
}

html body.ui-modern .owner-modal-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

html body.ui-modern .owner-modal-pager[hidden] {
    display: none !important;
}

html body.ui-modern .owner-supplier-autocomplete small {
    color: #64748b;
    font-size: 0.7rem;
}

html body.ui-modern .owner-new-supplier-details {
    display: grid;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #dbe7f5;
    border-radius: 10px;
    background: #f8fafc;
}

html body.ui-modern .owner-new-supplier-details summary {
    cursor: pointer;
    color: #0f172a;
    font-weight: 720;
}

html body.ui-modern .owner-page .screen-pager {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

html body.ui-modern .owner-page .screen-pager .command-button {
    min-width: 118px !important;
    min-height: 36px !important;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
}

html body.ui-modern .settings-launch-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)) !important;
    gap: 14px !important;
}

html body.ui-modern .settings-launch-button {
    min-height: 112px !important;
    padding: 16px 18px !important;
}

html body.ui-modern .settings-panel {
    max-width: min(1160px, 100%) !important;
    margin-inline: auto !important;
}

@media (max-width: 900px) {
    html body.ui-modern .owner-data-head {
        display: none;
    }

    html body.ui-modern .owner-data-row,
    html body.ui-modern .owner-stock-table .owner-data-row,
    html body.ui-modern .owner-bay-table .owner-data-row,
    html body.ui-modern .owner-po-table .owner-data-row,
    html body.ui-modern .owner-payment-table .owner-data-row,
    html body.ui-modern .owner-valor-table .owner-data-row {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 720px) {
    #owner-po-modal .owner-supplier-picker {
        grid-column: 1 / -1 !important;
    }

    #owner-po-modal .owner-supplier-panel {
        width: 100%;
        max-width: 100%;
    }

    #owner-po-modal .owner-supplier-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .owner-supplier-panel-floating .owner-supplier-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.owner-supplier-select-label {
    grid-column: span 2;
}

.owner-supplier-choice,
.owner-page .owner-form-grid select.owner-supplier-choice {
    min-height: 48px;
    padding: 8px 44px 8px 14px;
    color: #111827;
    background:
        linear-gradient(45deg, transparent 50%, #1d4ed8 50%) calc(100% - 22px) 20px / 7px 7px no-repeat,
        linear-gradient(135deg, #1d4ed8 50%, transparent 50%) calc(100% - 16px) 20px / 7px 7px no-repeat,
        linear-gradient(180deg, #f8fafc, #e2e8f0);
    border: 1px solid #94a3b8;
    border-left: 7px solid #2563eb;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.85), 0 4px 0 rgba(30, 64, 175, 0.14);
    font-weight: 950;
    appearance: none;
}

.owner-supplier-choice:focus {
    border-color: #1d4ed8;
}

.owner-new-supplier-details {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
}

.owner-new-supplier-details[hidden] {
    display: none;
}

.owner-new-supplier-details .owner-wide {
    grid-column: 1 / -1;
}

#owner-po-modal .owner-touch-modal {
    overflow: visible;
}

#owner-po-modal .owner-touch-modal .owner-form {
    overflow: visible;
    padding-right: 0;
}

.owner-fixed-toggle {
    display: grid !important;
    position: relative;
    place-items: center;
    min-height: 48px;
    padding: 5px;
    color: #ffffff !important;
    background: #e5e7eb;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9);
    cursor: pointer;
}

.owner-fixed-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.owner-fixed-toggle span {
    display: grid;
    width: 100%;
    min-height: 38px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border-radius: 10px;
    box-shadow: 0 4px 0 rgba(30, 64, 175, 0.22);
    font-size: 0.86rem;
    font-weight: 950;
    letter-spacing: 0.01em;
}

.owner-fixed-toggle.is-fixed {
    background: #fee2e2;
    border-color: #fecaca !important;
}

.owner-fixed-toggle.is-fixed span {
    background: linear-gradient(180deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 0 rgba(153, 27, 27, 0.24);
}

#owner-po-modal .owner-touch-modal {
    overflow: visible;
}

.owner-page .owner-list-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 12px;
}

.owner-page .owner-table {
    min-height: 0;
    overflow: hidden;
    gap: 6px;
}

.owner-page .owner-table-head {
    min-height: 26px;
    padding: 0 10px;
    font-size: 0.7rem;
}

.owner-page .owner-table-row {
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.86rem;
}

.owner-page .owner-table-row small {
    font-size: 0.72rem;
}

.owner-page .owner-oil-preview,
.owner-page .owner-flow-list {
    min-height: 0;
    overflow: hidden;
    gap: 6px;
}

.owner-page .owner-oil-preview div,
.owner-page .owner-flow-list div {
    padding: 8px 10px;
    border-radius: 10px;
}

.owner-page .owner-flow-list strong {
    width: 30px;
    height: 30px;
}

.owner-subpager {
    display: grid;
    grid-template-columns: 112px minmax(0, auto) 112px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
}

.owner-subpager strong {
    min-width: 150px;
    color: #273341;
    font-size: 0.86rem;
    font-weight: 900;
    text-align: center;
}

.owner-page-step {
    display: inline-grid;
    min-height: 38px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(180deg, #334155, #111827);
    border: 1px solid #111827;
    border-radius: 10px;
    box-shadow: inset 0 1px rgba(255,255,255,0.2), 0 3px 0 #7f8a97;
    font-size: 0.82rem;
    font-weight: 900;
}

.owner-page-step.disabled {
    pointer-events: none;
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
    box-shadow: none;
}

body.ui-modern .owner-page .owner-hero {
    padding: 16px 22px;
}

body.ui-modern .owner-page .owner-tabs a {
    min-height: 46px;
    border-radius: 12px;
}

body.ui-modern .owner-page .owner-card {
    min-height: 132px;
}

@media (max-height: 900px) {
    .owner-page {
        gap: 8px;
    }

    .owner-page .owner-hero {
        padding: 8px 14px;
    }

    .owner-page .owner-hero h1 {
        font-size: 1.32rem;
    }

    .owner-page .owner-hero .lead {
        display: none;
    }

    .owner-page .owner-hero-metrics span {
        min-height: 44px;
        padding: 6px 8px;
    }

    .owner-page .owner-tabs a {
        min-height: 42px;
    }

    .owner-page .owner-form {
        gap: 6px;
        padding: 8px 10px;
    }

    .owner-page .owner-form-grid {
        gap: 6px 8px;
    }

    .owner-page .owner-form-grid input,
    .owner-page .owner-form-grid select,
    .owner-page .owner-form-grid textarea,
    .owner-page .owner-search input,
    .owner-page .owner-search select {
        min-height: 34px;
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

/* Owner touch workflow refresh. */
.owner-page-screen-dashboard .owner-card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 132px;
    align-content: start;
    align-items: start;
}

.owner-page-screen-dashboard .owner-card,
body.ui-modern .owner-page-screen-dashboard .owner-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    align-self: start;
    height: 100%;
    min-height: 0;
    padding: 16px;
    gap: 8px 12px;
}

.owner-page-screen-dashboard .owner-card span {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    width: auto;
    min-width: 72px;
    height: 34px;
    place-items: center;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.66rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.owner-page-screen-dashboard .owner-card strong {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.08rem;
}

.owner-page-screen-dashboard .owner-card small {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: start;
    line-height: 1.2;
}

.owner-card.amber span {
    background: #b45309;
}

.owner-work-surface {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    height: 100%;
    min-height: 0;
    margin-bottom: 0;
}

.owner-work-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(360px, 0.95fr) auto;
    gap: 10px;
    align-items: end;
    padding-bottom: 8px;
    border-bottom: 1px solid #d1d5db;
}

.owner-work-toolbar h2 {
    margin: 0;
    font-size: 1.25rem;
}

.owner-work-toolbar span {
    color: #64748b;
    font-weight: 800;
}

.owner-toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
    justify-content: flex-end;
}

.owner-work-toolbar .primary-action,
.owner-toolbar-actions .primary-action,
.owner-toolbar-actions .small-action {
    min-height: 52px;
}

.owner-po-list-surface .owner-work-toolbar {
    grid-template-columns: minmax(190px, 0.8fr) minmax(360px, 1.4fr) minmax(140px, auto);
    align-items: center;
}

.owner-po-list-surface .owner-heading-search {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(150px, 1fr) minmax(104px, auto);
    width: 100%;
    min-width: 0;
}

.owner-po-list-surface .owner-heading-search select {
    min-width: 0;
}

.owner-po-list-surface,
.owner-po-builder {
    overflow: hidden;
}

.owner-po-list-surface .owner-po-list,
.owner-po-builder .owner-po-lines {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 4px 12px 0;
    scrollbar-gutter: stable;
}

.owner-po-list-surface > .screen-pager {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    padding-top: 10px;
    background: #ffffff;
}

.owner-stock-surface .owner-work-toolbar {
    grid-template-columns: minmax(220px, 0.8fr) minmax(460px, 1.35fr) minmax(280px, auto);
    align-items: center;
}

.owner-stock-surface .owner-heading-search {
    width: 100%;
    grid-template-columns: minmax(150px, 0.65fr) minmax(220px, 1fr) 118px;
}

.owner-stock-surface .owner-toolbar-actions {
    min-width: 0;
}

.owner-stock-surface .owner-toolbar-actions .primary-action,
.owner-stock-surface .owner-toolbar-actions .small-action {
    min-width: 132px;
    padding-inline: 18px;
}

.owner-page .owner-toolbar-actions .small-action,
.owner-page .owner-toolbar-actions .primary-action,
.owner-page .owner-line-button .small-action,
.owner-page .owner-line-button .primary-action {
    border-radius: 14px;
    font-weight: 950;
}

.owner-page .owner-dark-action,
body.ui-modern .owner-page .owner-dark-action {
    color: #ffffff !important;
    background: #111827 !important;
}

.owner-page .owner-green-action,
body.ui-modern .owner-page .owner-green-action {
    color: #ffffff !important;
    background: #047857 !important;
}

.owner-page .cancel-action,
body.ui-modern .owner-page .cancel-action {
    color: #991b1b !important;
    background: #fef2f2 !important;
    border: 1px solid #fecaca;
}

.owner-line-list {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
}

.owner-line-button {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(86px, 0.55fr));
    gap: 10px;
    align-items: center;
    min-height: 66px;
    padding: 10px 14px;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #f2f6fa);
    border: 1px solid #cbd5e1;
    border-left: 5px solid #b91c1c;
    border-radius: 14px;
    font-weight: 900;
}

.owner-line-button:hover,
.owner-line-button:focus-visible {
    border-color: #b91c1c;
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.12);
}

.owner-line-button strong,
.owner-line-button b {
    color: #111827;
}

.owner-line-button span {
    min-width: 0;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-line-button > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.owner-po-line {
    grid-template-columns: minmax(230px, 1.4fr) minmax(90px, 0.6fr) minmax(100px, 0.6fr) minmax(92px, 0.6fr) minmax(92px, 0.6fr) 58px;
}

.owner-payment-line {
    grid-template-columns: minmax(230px, 1fr) 96px 128px;
    min-height: 58px;
    padding: 9px 12px;
}

.owner-screen-payments {
    display: grid;
    gap: 12px;
    align-content: start;
}

.owner-screen-payments .owner-work-surface {
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
}

.owner-payments-surface .owner-work-toolbar {
    grid-template-columns: minmax(280px, 1fr) minmax(430px, auto);
    align-items: center;
}

.owner-payment-toolbar-actions {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) 150px;
    gap: 10px;
    align-items: stretch;
    width: min(520px, 100%);
    justify-self: end;
}

.owner-payment-toolbar-actions .owner-heading-search {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 110px;
    gap: 8px;
    min-width: 0;
}

.owner-payment-toolbar-actions .primary-action,
.owner-payment-toolbar-actions .small-action {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.owner-payments-surface .owner-line-list,
.owner-valor-surface .owner-line-list {
    max-height: none;
    min-height: 0;
    overflow: visible;
}

.owner-screen-payments .empty-state {
    min-height: 58px;
    padding: 14px 16px;
    display: grid;
    align-items: center;
}

.owner-payment-line.is-inactive {
    opacity: 0.62;
    border-left-color: #94a3b8;
}

.owner-bay-line {
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) 110px 112px;
}

.owner-bay-line.is-inactive {
    opacity: 0.62;
    border-left-color: #94a3b8;
}

.owner-list-touch-modal {
    width: min(1180px, calc((100vw - 48px) * var(--app-display-inverse, 1)));
}

.owner-modal-table {
    min-height: 0;
    max-height: calc((100vh - 240px) * var(--app-display-inverse, 1));
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.owner-status.draft {
    color: #1e3a8a;
    background: #dbeafe;
}

.owner-status.cancelled {
    color: #991b1b;
    background: #fee2e2;
}

.owner-po-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.owner-po-summary span {
    display: grid;
    gap: 4px;
    min-height: 58px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-weight: 900;
}

.owner-po-summary b {
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.action-modal.owner-touch-modal {
    width: min(1120px, calc((100vw - 48px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 64px) * var(--app-display-inverse, 1));
    grid-template-rows: auto minmax(0, 1fr);
}

.owner-touch-modal .owner-form {
    gap: 12px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 3px;
}

.owner-modal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-modal-grid .owner-wide {
    grid-column: span 2;
}

.owner-modal-search {
    grid-template-columns: minmax(0, 1fr) 142px;
    margin-bottom: 10px;
}

.owner-oil-choice-grid {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.owner-oil-choice {
    display: grid;
    gap: 2px;
    min-height: 56px;
    padding: 10px 12px;
    color: #0f172a;
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: 14px;
    box-shadow: none;
    text-align: left;
}

.owner-oil-choice strong,
.owner-oil-choice span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-oil-choice span {
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 900;
}

.owner-oil-choice.selected,
.owner-oil-choice:hover,
.owner-oil-choice:focus-visible {
    color: #064e3b;
    background: #ecfdf5;
    border-color: #10b981;
}

.owner-po-line-touch-modal {
    width: min(1240px, calc((100vw - 36px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 36px) * var(--app-display-inverse, 1));
}

.owner-po-line-touch-modal .owner-modal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-po-line-touch-modal .owner-wide {
    grid-column: span 2;
}

.owner-stock-touch-modal {
    width: min(1320px, calc((100vw - 36px) * var(--app-display-inverse, 1)));
}

.owner-stock-touch-modal .owner-submit {
    width: min(240px, 100%);
}

.owner-product-picker {
    display: grid;
    grid-column: 1 / -1;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(180deg, #f8fafc, #edf4fb);
    border: 1px solid #cbd5e1;
    border-radius: 18px;
}

.owner-product-picker-head {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr) 150px;
    gap: 10px;
    align-items: end;
}

.owner-product-picker-head > div {
    display: grid;
    gap: 4px;
}

.owner-product-picker-head strong {
    color: #111827;
    font-size: 1rem;
    font-weight: 950;
}

.owner-product-picker-head span {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owner-product-picker-head label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 950;
}

.owner-product-search-status {
    min-height: 34px;
    padding: 8px 10px;
    color: #334155;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #dbe3eb;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 900;
}

.owner-product-results-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 10px;
    align-items: stretch;
    min-height: 126px;
}

.owner-product-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
    grid-auto-rows: 118px;
    gap: 8px;
    max-height: 250px;
    min-height: 126px;
    padding: 2px 2px 4px;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.owner-product-scroll-buttons {
    display: grid;
    gap: 8px;
    grid-template-rows: 1fr 1fr;
}

.owner-product-scroll-buttons button {
    display: grid;
    min-width: 52px;
    min-height: 0;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(180deg, #1d4ed8, #1e3a8a);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 4px 0 rgba(30, 58, 138, 0.24);
    font-size: 1.2rem;
    font-weight: 950;
    cursor: pointer;
}

.owner-product-scroll-buttons button:hover,
.owner-product-scroll-buttons button:focus-visible {
    background: linear-gradient(180deg, #dc2626, #b91c1c);
}

.owner-product-pick {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 4px;
    min-height: 0;
    padding: 10px 11px;
    color: #111827;
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    border: 2px solid #94a3b8;
    border-left: 7px solid #64748b;
    border-radius: 14px;
    box-shadow: 0 3px 0 rgba(100, 116, 139, 0.28);
    text-align: left;
}

.owner-product-pick:hover,
.owner-product-pick:focus-visible,
.owner-product-pick.selected {
    background: #fff7f7;
    border-color: #b91c1c;
    border-left-color: #b91c1c;
    box-shadow: 0 6px 18px rgba(185, 28, 28, 0.14);
}

.owner-product-pick.has-stock {
    background: linear-gradient(180deg, #ecfdf5, #d1fae5);
    border-color: #10b981;
    border-left-color: #047857;
}

.owner-product-pick.has-stock:hover,
.owner-product-pick.has-stock:focus-visible,
.owner-product-pick.has-stock.selected {
    border-color: #047857;
    box-shadow: 0 6px 18px rgba(4, 120, 87, 0.16);
}

.owner-product-pick[hidden] {
    display: none;
}

.owner-product-empty {
    grid-column: 1 / -1;
    align-self: stretch;
    display: grid;
    place-items: center;
    min-height: 118px;
    margin: 0;
}

.owner-product-source {
    justify-self: start;
    max-width: 100%;
    padding: 4px 8px;
    color: #ffffff;
    background: #334155;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.owner-product-pick.has-stock .owner-product-source {
    background: #047857;
}

.owner-product-pick strong,
.owner-product-pick small,
.owner-product-pick b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owner-product-pick strong {
    color: #111827;
    font-size: 0.88rem;
    font-weight: 950;
    white-space: nowrap;
}

.owner-product-pick small {
    display: -webkit-box;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.owner-product-pick b {
    color: #111827;
    font-size: 0.74rem;
    font-weight: 950;
    white-space: nowrap;
}

.owner-oil-helper-modal {
    width: min(1260px, calc((100vw - 36px) * var(--app-display-inverse, 1)));
}

.owner-oil-filter-form {
    margin-bottom: 8px;
}

.owner-oil-filter-status {
    margin-bottom: 8px;
}

.owner-oil-lines {
    max-height: min(56vh, 520px);
    overflow-y: auto;
    padding: 2px 2px 4px;
    scrollbar-width: thin;
}

.owner-oil-line {
    grid-template-columns: minmax(260px, 1.5fr) minmax(130px, 0.6fr) minmax(110px, 0.5fr) minmax(150px, 0.7fr) 150px;
    min-height: 74px;
}

.owner-oil-line[hidden] {
    display: none;
}

.owner-oil-line .small-action {
    min-height: 48px;
    justify-self: stretch;
}

.owner-oil-empty {
    min-height: 92px;
}

@media (max-width: 1180px) {
    .owner-stock-surface .owner-work-toolbar {
        grid-template-columns: 1fr;
    }

    .owner-stock-surface .owner-heading-search,
    .owner-stock-surface .owner-toolbar-actions {
        width: 100%;
    }
}

.tech-service-choice {
    position: relative;
}

.tech-service-choice.is-selected {
    border-color: #0f766e !important;
    background: linear-gradient(180deg, #ecfdf5, #f8fffc) !important;
}

.tech-service-checkmark {
    position: absolute;
    top: 10px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: #0f766e;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.25);
}

.tech-service-checkmark svg {
    width: 19px;
    height: 19px;
}

.tech-selected-service-tray {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid #cbd5e1;
    border-radius: 18px;
}

.tech-selected-service-head,
.tech-selected-service-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.tech-selected-service-head strong,
.tech-selected-service-line strong {
    color: #111827;
    font-weight: 950;
}

.tech-selected-service-head span,
.tech-selected-service-line span {
    color: #64748b;
    font-weight: 850;
}

.tech-selected-service-lines {
    display: grid;
    gap: 8px;
}

.tech-selected-service-line {
    min-height: 58px;
    padding: 9px 10px;
    border: 1px solid #d8e2ee;
    border-left: 7px solid #b91c1c;
    border-radius: 14px;
    background: #ffffff;
}

.tech-selected-service-line a {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.tech-brand-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.tech-brand-breadcrumbs a {
    min-height: 42px;
    padding: 10px 16px;
    color: #0f172a;
    font-weight: 950;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
}

.tech-brand-breadcrumbs a.active {
    color: #ffffff;
    background: #0f766e;
    border-color: #0f766e;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
}

.owner-tech-flow-surface {
    grid-template-rows: auto auto;
}

.owner-tech-flow-form {
    display: grid;
    gap: 12px;
}

.owner-tech-flow-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid #d8e2ee;
    border-left: 7px solid #b91c1c;
    border-radius: 16px;
    background: #ffffff;
}

.owner-tech-flow-card.owner-wide {
    grid-template-columns: 1fr;
}

.owner-tech-flow-card strong {
    display: block;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 950;
}

.owner-tech-flow-card span {
    color: #64748b;
    font-weight: 850;
}

.owner-tech-brand-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-height: 360px;
    overflow: auto;
    padding: 2px;
}

.owner-tech-brand-choice {
    display: grid;
    gap: 3px;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid #d8e2ee;
    border-left: 7px solid #94a3b8;
    border-radius: 14px;
    background: #f8fafc;
    cursor: pointer;
}

.owner-tech-brand-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.owner-tech-brand-choice.active,
.owner-tech-brand-choice:has(input:checked) {
    border-color: #0f766e;
    border-left-color: #0f766e;
    background: #ecfdf5;
}

.owner-tech-brand-choice strong {
    color: #111827;
    font-size: 0.98rem;
}

.owner-tech-brand-choice span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 900;
}

.owner-money-line.pay_in {
    border-left-color: #047857;
}

.owner-money-line.pay_out {
    border-left-color: #b91c1c;
}

.owner-bank-line,
.owner-supplier-line,
.owner-catalog-line {
    grid-template-columns: minmax(260px, 1.4fr) minmax(120px, 0.45fr) minmax(180px, 0.75fr) 126px;
}

.owner-bank-line.is-inactive,
.owner-supplier-line.is-inactive,
.owner-catalog-line.is-inactive {
    opacity: 0.66;
    border-left-color: #94a3b8;
}

.owner-import-preview {
    display: grid;
    grid-template-columns: 180px repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.owner-import-preview strong,
.owner-import-preview span {
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 900;
}

.owner-import-preview strong {
    color: #ffffff;
    background: #111827;
}

.owner-import-preview span {
    overflow: hidden;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #dbe3eb;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-method-section {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.payment-method-section h3 {
    margin: 0;
    font-size: 1rem;
}

.payment-method-section span {
    color: #64748b;
    font-weight: 800;
}

.payment-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.payment-choice {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 70px;
    padding: 12px 14px 12px 44px;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    font-weight: 900;
}

.payment-choice input {
    position: absolute;
    left: 14px;
    top: 20px;
    width: 20px;
    min-height: 20px;
}

.payment-choice.selected,
.payment-choice:has(input:checked) {
    color: #064e3b;
    background: #ecfdf5;
    border-color: #10b981;
}

.payment-reference-field input {
    min-height: 48px;
}

.vehicle-field-tile {
    display: grid;
    gap: 3px;
    min-width: 0;
    min-height: auto;
    max-width: none;
    width: 100%;
    padding: 8px 10px;
    color: #111827;
    background: #f8fafc;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    box-shadow: none;
    text-align: left;
}

.vehicle-field-tile:hover,
.vehicle-field-tile:focus-visible {
    border-color: #b91c1c;
    background: #fff7f7;
}

.vehicle-field-tile span {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 900;
}

.vehicle-field-tile strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.98rem;
}

.vehicle-field-tile.needs-value {
    background: #fff7ed;
    border-color: #fb923c;
}

@media (max-width: 1100px) {
    .login-bay-grid,
    .owner-page-screen-dashboard .owner-card-grid,
    .owner-work-toolbar,
    .owner-po-summary,
    .payment-choice-grid {
        grid-template-columns: 1fr 1fr;
    }

    .owner-line-button,
    .owner-po-line,
    .owner-bay-line,
    .owner-payment-line,
    .owner-valor-line {
        grid-template-columns: 1fr 1fr;
    }

    .owner-payments-surface .owner-work-toolbar,
    .owner-valor-surface .owner-work-toolbar,
    .owner-payment-toolbar-actions,
    .owner-payment-toolbar-actions .owner-heading-search,
    .owner-valor-env-grid,
    .owner-valor-env-card .owner-form-grid {
        grid-template-columns: 1fr;
    }

    .owner-payment-toolbar-actions {
        width: 100%;
        justify-self: stretch;
    }

    .owner-modal-grid {
        grid-template-columns: 1fr 1fr;
    }

    .owner-new-supplier-details {
        grid-template-columns: 1fr;
    }

    .owner-oil-choice-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .login-bay-grid {
        grid-template-columns: 1fr;
    }
}

body.app-chrome-hidden .login-workspace,
body.ui-modern.app-chrome-hidden .login-workspace {
    width: 100%;
    height: 100%;
    padding: 0;
}

body.ui-modern .login-top-quit,
body.ui-modern button.login-top-quit:not(.selection-tile):not(.profile-status-tile) {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
    min-height: 60px;
    color: #ffffff;
    background: #111827;
}

body.ui-modern .login-top-quit:hover,
body.ui-modern .login-top-quit:focus-visible {
    background: #020617;
}

body.ui-modern .bay-login-choice,
body.ui-modern button.bay-login-choice:not(.selection-tile):not(.profile-status-tile) {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 116px;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #e8eef5);
}

.match-final-actions .open-existing-action.mega-button,
body.ui-modern .match-final-actions .open-existing-action.mega-button,
body.ui-modern button.open-existing-action.mega-button {
    color: #ffffff !important;
    background: #b91c1c !important;
    box-shadow: 0 14px 28px rgba(185, 28, 28, 0.18);
}

.match-final-actions .open-existing-action.mega-button:hover,
.match-final-actions .open-existing-action.mega-button:focus-visible {
    background: #991b1b !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
[data-product-submit-tile]:focus-visible {
    outline: 4px solid var(--yellow) !important;
    outline-offset: 3px !important;
    box-shadow:
        0 0 0 4px rgba(255, 211, 77, 0.32),
        inset 0 0 0 2px rgba(255, 211, 77, 0.72) !important;
}

.product-tile:focus-within,
.advisor-tile:focus-within,
.invoice-edit-row:focus-within,
.owner-product-pick:focus-within,
.owner-line-button:focus-within,
.vehicle-field-tile:focus-within,
.match-confirm-card:focus-within {
    outline: 4px solid var(--yellow) !important;
    outline-offset: 3px !important;
    box-shadow:
        0 0 0 4px rgba(255, 211, 77, 0.30),
        inset 0 0 0 2px rgba(255, 211, 77, 0.72) !important;
}

body.is-modal-loading .app-loading-overlay {
    background: transparent;
    backdrop-filter: none;
}

body.is-modal-loading .app-loading-panel {
    display: none;
}

.modal-is-loading .action-modal {
    position: relative;
    cursor: wait;
}

.modal-is-loading .action-modal > *:not(.modal-loading-lock) {
    filter: saturate(0.7);
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
}

.modal-loading-lock {
    position: absolute;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(255, 255, 255, 0.78);
    border-radius: inherit;
    backdrop-filter: blur(1px);
}

.modal-loading-card {
    display: grid;
    gap: 10px;
    justify-items: center;
    width: min(300px, 92%);
    padding: 18px;
    color: #111827;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    text-align: center;
}

.modal-loading-card strong {
    font-size: 1.08rem;
}

.modal-loading-card small {
    color: #6b7280;
    font-weight: 850;
}

.modal-progress-ring {
    width: 46px;
    height: 46px;
    border: 5px solid #fee2e2;
    border-top-color: #b91c1c;
    border-radius: 999px;
    animation: modal-progress-spin 0.75s linear infinite;
}

@keyframes modal-progress-spin {
    to { transform: rotate(360deg); }
}

.oil-loader.mini {
    width: 190px;
    height: 62px;
}

.oil-loader.mini .oil-loader-car {
    left: 48px;
    transform: scale(0.86);
    transform-origin: center bottom;
}

.quick-create-modal .quick-heading .eyebrow,
.match-confirm-modal .quick-heading .eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 6px;
    padding: 5px 10px;
    color: #ffffff !important;
    background: #b91c1c;
    border-radius: 999px;
    letter-spacing: 0.08em;
}

body.ui-modern .command-button,
body.ui-modern .small-action,
body.ui-modern .primary-action,
body.ui-modern .mega-button,
body.ui-modern button,
body.ui-modern .modern-inline-pager a,
body.ui-modern .modern-inline-pager span,
body.ui-modern .modern-next-action,
.owner-slide-close {
    border: 1px solid rgba(15, 23, 42, 0.22);
}

body.ui-modern .primary-action,
body.ui-modern .mega-button,
body.ui-modern button.dashboard-start-button.primary-action,
body.ui-modern .modern-start-panel button.dashboard-start-button.primary-action,
body.ui-modern .modern-next-action {
    border-color: rgba(127, 29, 29, 0.48);
}

body.ui-modern .modern-start-panel button.dashboard-start-button.primary-action {
    border-width: 1px;
    border-style: solid;
}

body.ui-modern .command-button.success,
body.ui-modern .mega-button.success,
body.ui-modern .small-action.success,
body.ui-modern .primary-action.success {
    border-color: rgba(4, 120, 87, 0.36);
}

body.ui-modern .modern-inline-pager a,
body.ui-modern .modern-inline-pager span {
    min-height: 40px;
    border-color: #d1d5db;
}

body.ui-modern .recent-orders-panel .dashboard-open-list {
    gap: 12px;
}

body.ui-modern .recent-orders-panel .modern-order-row {
    grid-template-columns: 44px minmax(230px, 1fr) 98px minmax(210px, 0.95fr) 92px 150px;
    gap: 10px;
    min-height: 86px;
    padding: 14px 16px;
    border: 1px solid #e1e7ef;
    border-radius: 16px;
}

body.ui-modern .recent-orders-panel .modern-order-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.3rem;
}

body.ui-modern .recent-orders-panel .modern-order-main {
    gap: 2px;
}

body.ui-modern .recent-orders-panel .modern-order-main strong {
    font-size: 1rem;
}

body.ui-modern .recent-orders-panel .modern-order-main small {
    font-size: 0.82rem;
}

body.ui-modern .recent-orders-panel .modern-order-main em {
    display: block;
    font-size: 0.72rem;
}

body.ui-modern .recent-orders-panel .modern-order-row .order-status-pill {
    min-width: 82px;
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.72rem;
}

body.ui-modern .recent-orders-panel .modern-progress {
    gap: 7px;
}

body.ui-modern .recent-orders-panel .modern-progress-step {
    gap: 3px;
}

body.ui-modern .recent-orders-panel .modern-progress-step b {
    width: 42px;
    height: 7px;
}

body.ui-modern .recent-orders-panel .modern-progress-step small {
    display: block;
    font-size: 0.66rem;
}

body.ui-modern .recent-orders-panel .modern-order-row .open-order-total {
    font-size: 1.08rem;
}

body.ui-modern .recent-orders-panel .modern-next-action {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.84rem;
}

.modern-bay-command,
.bay-command {
    color: #0f172a;
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    border-color: #bfdbfe !important;
}

body.ui-modern .modern-command-actions .command-button.modern-bay-command {
    --modern-command-width: 232px;
    --modern-command-min-width: 152px;
    flex: 0 1 var(--modern-command-width);
    width: auto;
    min-width: var(--modern-command-min-width);
    max-width: 250px;
    justify-content: flex-start;
    overflow: visible;
    white-space: nowrap;
}

@media (max-width: 1380px) {
    body.ui-modern .modern-command-actions .command-button.modern-bay-command {
        --modern-command-min-width: 138px;
        max-width: 210px;
    }
}

.modern-bay-command .app-icon {
    flex: 0 0 auto;
}

.bay-command-label {
    flex: 0 0 auto;
}

.bay-command-location {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-actions .bay-command {
    gap: 6px;
    min-width: 128px;
    max-width: 190px;
    justify-content: flex-start;
    overflow: visible;
    white-space: nowrap;
}

.bay-switch-modal {
    width: min(860px, calc(100vw - 32px));
}

.bay-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bay-choice-grid form {
    min-width: 0;
}

.bay-choice {
    display: grid;
    width: 100%;
    min-height: 92px;
    gap: 5px;
    align-content: center;
    padding: 16px 18px;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #eef2f7);
    border: 1px solid #9fb1c4;
    border-left: 7px solid #2563eb;
    border-radius: 16px;
    box-shadow: 0 4px 0 rgba(71, 85, 105, 0.18);
    text-align: left;
}

.bay-choice strong {
    font-size: 1.08rem;
    font-weight: 950;
}

.bay-choice span {
    color: #5f6d7c;
    font-weight: 850;
}

.bay-choice.current {
    color: #047857;
    background: linear-gradient(180deg, #ecfdf5, #d1fae5);
    border-left-color: #059669;
    opacity: 1;
}

.bay-choice:not(:disabled):hover,
.bay-choice:not(:disabled):focus-visible {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 4px 0 rgba(37, 99, 235, 0.18);
}

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

.advisor-modal-actions .small-action {
    min-width: 128px;
}

.advisor-misc-panel {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    overflow: hidden;
}

.advisor-misc-panel[hidden] {
    display: none;
}

.advisor-misc-panel .misc-title {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
}

.advisor-misc-form {
    min-height: 0;
    overflow: auto;
}

.advisor-misc-form textarea {
    min-height: 74px;
    resize: none;
}

.invoice-tax-toggle span,
.misc-fixed-toggle span {
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #eef2f7);
    border: 1px solid #cbd5e1;
    box-shadow: 0 3px 0 rgba(71, 85, 105, 0.18);
}

.invoice-tax-toggle.is-fixed {
    background: #dcfce7;
    border-color: #86efac !important;
}

.invoice-tax-toggle.is-fixed span {
    color: #ffffff;
    background: linear-gradient(180deg, #10b981, #047857);
    box-shadow: 0 4px 0 rgba(4, 120, 87, 0.24);
}

.misc-fixed-toggle.is-fixed span {
    color: #ffffff;
    background: linear-gradient(180deg, #17202a, #0b1016);
    box-shadow: 0 4px 0 rgba(15, 23, 42, 0.24);
}

.vehicle-station .vehicle-vin-card {
    min-height: 58px;
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
    border-left-color: #2563eb;
}

.vehicle-station .vehicle-odo-history-tile {
    position: relative;
    overflow: hidden;
}

.vehicle-station .vehicle-odo-history-tile.has-history {
    color: #064e3b;
    background: linear-gradient(180deg, #ecfdf5, #d1fae5);
    border-color: #86efac;
    border-left: 6px solid #059669;
}

.vehicle-station .vehicle-odo-history-tile small {
    display: block;
    overflow: hidden;
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 850;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-vehicle-info-modal label.is-locked input:disabled {
    color: #475569;
    background: #e5edf5;
    border-color: #cbd5e1;
    cursor: not-allowed;
}

.vehicle-spec-detail.has-products {
    max-height: min(560px, calc(100vh - 132px));
}

.vehicle-spec-product-table {
    max-height: min(390px, 50vh);
}

.vehicle-spec-product-row:not(.vehicle-spec-product-head) {
    cursor: pointer;
}

form.vehicle-spec-product-row {
    margin: 0;
}

form.vehicle-spec-product-row:hover,
form.vehicle-spec-product-row:focus-visible,
form.vehicle-spec-product-row:focus-within {
    outline: 0;
    border-color: #ffd34d;
    box-shadow: 0 0 0 4px rgba(255, 211, 77, 0.26), 0 5px 14px rgba(15,23,42,0.05);
}

button.spec-stock-link {
    border: 0;
    cursor: pointer;
}

button.spec-stock-link:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.modal-loading-lock {
    overflow: visible;
    padding: 34px;
}

.modal-loading-card {
    overflow: visible;
    gap: 10px;
    padding-top: 24px;
}

.oil-loader.mini {
    width: 210px;
    height: 78px;
    overflow: visible;
    margin: -2px 0 -6px;
}

.oil-loader.mini .oil-loader-car {
    left: 56px;
    transform: none;
    transform-origin: center bottom;
}

.odometer-loader.mini {
    transform: scale(0.82);
    transform-origin: center;
    margin: -2px 0 -4px;
}

/* Add Item modal polish */
.advisor-action-modal {
    gap: 10px;
    padding: 14px;
    width: min(1220px, calc((100vw - 32px) * var(--app-display-inverse, 1)));
    height: min(700px, calc((100vh - 20px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 28px) * var(--app-display-inverse, 1));
}

.advisor-action-modal > .panel-heading.touch-panel-heading {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 0;
    padding-bottom: 10px;
}

.advisor-action-modal > .panel-heading.touch-panel-heading > div:first-child {
    gap: 2px;
}

.advisor-action-modal > .panel-heading.touch-panel-heading h2 {
    font-size: 1.34rem;
}

.advisor-action-modal .advisor-modal-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.advisor-action-modal > .panel-heading .advisor-modal-actions .small-action {
    width: 118px;
    min-width: 118px;
    max-width: 118px;
    min-height: 50px;
    padding: 8px 10px;
    border: 1px solid #a8b4c4;
    border-radius: 12px;
    box-shadow: 0 3px 0 rgba(71, 85, 105, 0.18);
}

.advisor-action-modal > .panel-heading .advisor-modal-actions .info-action {
    color: #ffffff;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border-color: #1e40af;
}

.advisor-action-modal > .panel-heading .advisor-modal-actions .ghost {
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #e9eef5);
}

.advisor-action-modal .advisor-breadcrumbs {
    min-height: 30px;
    padding: 5px 10px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
}

.advisor-action-modal .invoice-ribbon {
    min-height: 44px;
    padding: 7px 14px;
    background: linear-gradient(180deg, #f8fafc, #eef4fb);
    border-color: #cbd5e1;
}

.advisor-action-modal .advisor-board {
    padding: 0;
    background: #f8fafc;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
}

.advisor-board .reference-title {
    min-height: 58px;
    margin: 0;
    padding: 10px 18px;
    border-radius: 18px 18px 0 0;
}

.advisor-board .reference-title h1 {
    font-size: 1.4rem;
    line-height: 1;
}

.advisor-action-modal .touch-nav-row {
    margin: 8px 16px;
}

.advisor-action-modal .touch-nav-row .command-button {
    min-height: 40px;
    border: 1px solid #b6c3d1;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #e9eef5);
    box-shadow: 0 3px 0 rgba(71, 85, 105, 0.18);
}

.advisor-action-modal .touch-nav-row .command-button:not(.disabled):hover,
.advisor-action-modal .touch-nav-row .command-button:not(.disabled):focus-visible {
    color: #ffffff;
    background: linear-gradient(180deg, #1f2937, #111827);
    border-color: #0f172a;
}

.advisor-action-modal .touch-nav-row .command-button.disabled {
    color: #94a3b8;
    background: #f3f6f9;
    border-color: #d7dee8;
    box-shadow: none;
}

.advisor-action-modal .advisor-grid {
    padding: 0 16px 14px;
    gap: 8px;
}

.advisor-action-modal .advisor-board .advisor-grid {
    grid-auto-rows: 56px;
}

.advisor-action-modal .advisor-tile {
    min-height: 56px;
    padding: 8px 46px 8px 14px;
    text-align: left;
    background:
        linear-gradient(90deg, rgba(185, 28, 28, 0.14), rgba(255,255,255,0) 42%),
        linear-gradient(180deg, #fffefe, #fff1f1);
    border: 1px solid #fca5a5;
    border-left: 6px solid #c7191c;
    border-radius: 16px;
    box-shadow: inset 0 1px rgba(255,255,255,0.82), 0 3px 0 rgba(185, 28, 28, 0.12);
}

.advisor-action-modal .advisor-tile strong {
    font-size: 0.92rem;
    line-height: 1.05;
}

.advisor-action-modal .advisor-tile span,
.advisor-action-modal .advisor-tile small {
    font-size: 0.68rem;
    line-height: 1.04;
}

.advisor-action-modal a.advisor-tile::after {
    right: 16px;
    width: 26px;
    height: 26px;
    font-size: 0.94rem;
    box-shadow: 0 6px 14px rgba(185, 28, 28, 0.22);
}

.advisor-action-modal .advisor-tile:hover,
.advisor-action-modal .advisor-tile:focus-visible {
    background:
        linear-gradient(90deg, rgba(185, 28, 28, 0.15), rgba(255,255,255,0) 38%),
        linear-gradient(180deg, #fffafa, #fee2e2);
    border-color: #ef4444;
    border-left-color: #991b1b;
    transform: translateY(-1px);
}

body.ui-modern .advisor-action-modal {
    width: min(1220px, calc((100vw - 32px) * var(--app-display-inverse, 1)));
    height: min(700px, calc((100vh - 20px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 28px) * var(--app-display-inverse, 1));
    gap: 10px;
    padding: 14px;
}

body.ui-modern .advisor-action-modal > .panel-heading.touch-panel-heading {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

body.ui-modern .advisor-action-modal > .panel-heading .advisor-modal-actions .small-action,
body.ui-modern .advisor-action-modal .touch-nav-row .command-button {
    border: 1px solid #c3ccd8;
}

body.ui-modern .advisor-action-modal > .panel-heading .advisor-modal-actions .info-action {
    color: #ffffff;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border-color: #1e40af;
}

body.ui-modern .advisor-action-modal .advisor-board {
    background: #f8fafc;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
}

body.ui-modern .advisor-board .reference-title {
    margin: 0;
    padding: 10px 18px;
    border-radius: 18px 18px 0 0;
}

body.ui-modern .advisor-action-modal .advisor-grid {
    padding: 0 16px 14px;
    gap: 8px;
}

body.ui-modern .advisor-action-modal .advisor-board .advisor-grid {
    grid-auto-rows: 56px;
}

body.ui-modern .advisor-action-modal .advisor-tile {
    min-height: 56px;
    padding: 8px 46px 8px 14px;
    text-align: left;
    background:
        linear-gradient(90deg, rgba(185, 28, 28, 0.14), rgba(255,255,255,0) 42%),
        linear-gradient(180deg, #fffefe, #fff1f1);
    border: 1px solid #fca5a5;
    border-left: 6px solid #c7191c;
    border-radius: 16px;
    box-shadow: inset 0 1px rgba(255,255,255,0.82), 0 3px 0 rgba(185, 28, 28, 0.12);
}

body.ui-modern .advisor-action-modal .advisor-tile strong {
    font-size: 0.92rem;
}

body.ui-modern .advisor-action-modal .advisor-tile span,
body.ui-modern .advisor-action-modal .advisor-tile small {
    color: #475569;
    font-size: 0.68rem;
}

body.ui-modern .advisor-action-modal a.advisor-tile::after {
    right: 16px;
    width: 26px;
    height: 26px;
}

body.ui-modern .advisor-action-modal .advisor-tile:hover,
body.ui-modern .advisor-action-modal .advisor-tile:focus-visible {
    background:
        linear-gradient(90deg, rgba(185, 28, 28, 0.15), rgba(255,255,255,0) 38%),
        linear-gradient(180deg, #fffafa, #fee2e2);
    border-color: #ef4444;
    border-left-color: #991b1b;
    box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.1), 0 4px 0 rgba(185, 28, 28, 0.12);
}

@media (max-width: 900px) {
    .advisor-action-modal > .panel-heading.touch-panel-heading {
        align-items: stretch;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .advisor-action-modal .advisor-modal-actions {
        justify-content: stretch;
    }

    .advisor-action-modal > .panel-heading .advisor-modal-actions .small-action {
        width: auto;
        min-width: 0;
        max-width: none;
        flex: 1 1 0;
    }

    .advisor-action-modal .advisor-grid {
        grid-template-columns: 1fr;
    }
}

/* Current terminal fixes. */
body.ui-modern .dashboard-page .dashboard-open-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
}

body.ui-modern .dashboard-page .dashboard-open-list {
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 4px 10px 0;
    scrollbar-gutter: stable;
}

body.ui-modern .order-entry-page .recent-orders-panel,
body.ui-modern .directory-page .customer-find-panel,
body.ui-modern .vehicle-directory-page .vehicle-find-panel {
    flex: 0 0 auto;
    grid-template-rows: auto auto auto;
    overflow: visible;
}

body.ui-modern .order-entry-page .recent-orders-panel .dashboard-open-list,
body.ui-modern .directory-page .customer-find-panel .dashboard-open-list,
body.ui-modern .vehicle-directory-page .vehicle-find-panel .dashboard-open-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
    scrollbar-gutter: auto;
}

body.ui-modern .directory-page .customer-find-panel > .screen-pager,
body.ui-modern .vehicle-directory-page .vehicle-find-panel > .screen-pager {
    margin-top: 12px;
}

body.ui-modern .customer-add-modal {
    width: min(760px, calc(100vw - 32px));
}

body.ui-modern .customer-add-modal .customer-add-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.ui-modern .dashboard-page .modern-open-order-row {
    min-height: 86px;
}

body.ui-modern .dashboard-page .dashboard-open-panel > .screen-pager {
    margin: 10px 0 0;
    padding: 8px 0 0;
    grid-template-columns: minmax(128px, 156px) auto minmax(128px, 156px);
    border-top: 1px solid #d1d9e4;
    background: transparent;
}

body.ui-modern .dashboard-page .dashboard-open-panel > .screen-pager .command-button {
    min-height: 48px;
}

.settings-launch-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.settings-launch-button {
    min-height: 156px;
    padding-inline: 24px;
}

body.ui-modern .settings-launch-button {
    min-height: 162px;
}

body.ui-modern .modern-command-actions .command-button.modern-neutral,
body.ui-modern .modern-command-actions .command-button.modern-clock {
    --modern-command-width: 170px;
    --modern-command-min-width: 140px;
}

body.ui-modern .modern-command-actions .command-button.modern-bay-command {
    --modern-command-width: 300px;
    --modern-command-min-width: 220px;
    max-width: 320px;
}

.bay-switch-modal {
    width: min(900px, calc(100vw - 32px));
}

.bay-choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.bay-choice {
    min-height: 108px;
    padding: 20px 24px;
}

.vehicle-station .vehicle-odo-history-tile {
    grid-column: 1 / -1;
    grid-template-rows: auto auto auto;
    align-content: start;
    gap: 5px;
    min-height: 94px;
    overflow: visible;
}

.vehicle-station .vehicle-odo-history-tile span,
.vehicle-station .vehicle-odo-history-tile strong,
.vehicle-station .vehicle-odo-history-tile small {
    display: block;
    min-width: 0;
    overflow: visible;
    white-space: normal;
}

.vehicle-station.is-tight .vehicle-odo-history-tile,
.vehicle-station.is-ultra-tight .vehicle-odo-history-tile,
.vehicle-station.needs-scroll .vehicle-odo-history-tile {
    min-height: 78px;
    padding-block: 8px;
}

.vehicle-station.is-ultra-tight .vehicle-odo-history-tile {
    min-height: 72px;
}

.clockout-modal {
    width: min(620px, calc(100vw - 32px));
}

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

.clockout-actions form,
.clockout-actions button {
    width: 100%;
}

.owner-page-screen-dashboard .owner-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 138px;
}

button.owner-card {
    font: inherit;
    cursor: pointer;
}

.owner-summary-modal {
    width: min(1040px, calc(100vw - 32px));
}

.owner-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.owner-summary-strip div {
    display: grid;
    gap: 5px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
}

.owner-summary-strip span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.owner-summary-strip strong {
    color: #0f172a;
    font-size: 1.2rem;
}

.owner-summary-table,
.owner-low-stock-list,
.owner-offline-sync-list {
    max-height: min(54vh, 520px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.owner-summary-table div {
    grid-template-columns: minmax(130px, 1.1fr) minmax(100px, 1fr) 100px 110px 110px;
}

.owner-low-stock-line,
.owner-offline-sync-line {
    grid-template-columns: minmax(220px, 1fr) auto auto auto;
}

.owner-health-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 12px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: inset 0 1px rgba(255,255,255,0.85), 0 2px 0 #a7b4c3;
    font-weight: 950;
}

.owner-health-pill strong {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    min-height: 28px;
    padding: 0 8px;
    color: #ffffff;
    background: #047857;
    border-radius: 999px;
}

.owner-health-pill.needs-attention strong {
    background: #b91c1c;
}

.owner-health-modal {
    width: min(1120px, calc(100vw - 32px));
}

.owner-health-score {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
    padding: 14px;
    color: #064e3b;
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 10px;
}

.owner-health-score.needs-attention {
    color: #7f1d1d;
    background: #fff1f2;
    border-color: #fecaca;
}

.owner-health-score div {
    display: grid;
    gap: 3px;
    min-width: 136px;
}

.owner-health-score span,
.owner-health-panel h3,
.owner-health-row span,
.owner-health-metrics span {
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.owner-health-score strong {
    font-size: 1.7rem;
}

.owner-health-score p {
    margin: 0;
    color: #334155;
    font-weight: 850;
}

.owner-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.owner-health-panel {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
}

.owner-health-panel.owner-health-wide {
    grid-column: 1 / -1;
}

.owner-health-panel h3 {
    margin: 0;
    color: #0f172a;
}

.owner-health-panel p {
    margin: 0;
    color: #475569;
    font-weight: 850;
    line-height: 1.35;
}

.owner-health-list {
    display: grid;
    gap: 8px;
}

.owner-health-list.compact {
    gap: 6px;
}

.owner-health-row {
    display: grid;
    grid-template-columns: minmax(130px, 0.8fr) 96px minmax(0, 1.2fr);
    gap: 10px;
    align-items: center;
    min-height: 52px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #d7dee8;
    border-left: 7px solid #047857;
    border-radius: 8px;
}

.owner-health-row.warning,
.owner-health-row.missing {
    border-left-color: #b91c1c;
}

.owner-health-row span {
    color: #64748b;
}

.owner-health-row strong {
    color: #0f172a;
}

.owner-health-row small {
    color: #475569;
    font-weight: 850;
}

.owner-health-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.owner-health-metrics div {
    display: grid;
    gap: 4px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #d7dee8;
    border-radius: 8px;
}

.owner-health-metrics span {
    color: #64748b;
}

.owner-health-metrics strong {
    color: #0f172a;
}

.owner-health-category-table div {
    grid-template-columns: minmax(160px, 1fr) minmax(120px, 0.8fr) 110px 100px;
}

.settings-device-tests {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
}

.settings-device-tests .small-action {
    min-width: 180px;
}

.printable-hardware-test {
    width: 3.125in;
    min-height: 2.25in;
    padding: 0.16in;
    color: #111827;
    background: #ffffff;
}

.printable-hardware-test header {
    display: grid;
    gap: 2px;
    margin-bottom: 8px;
}

.printable-hardware-test strong {
    font-size: 13pt;
}

.printable-hardware-test span,
.printable-hardware-test p,
.printable-hardware-test td,
.printable-hardware-test th {
    font-size: 8.5pt;
}

.printable-daily-report {
    width: 8.5in;
    min-height: 11in;
    padding: 0.35in;
    color: #111827;
    background: #ffffff;
}

.daily-report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.daily-report-grid div {
    display: grid;
    gap: 3px;
    padding: 8px;
    border: 1px solid #d1d5db;
}

.daily-report-grid span {
    color: #4b5563;
    font-size: 9pt;
    font-weight: 700;
    text-transform: uppercase;
}

.daily-report-grid strong {
    font-size: 13pt;
}

.printable-daily-report h3 {
    margin: 14px 0 6px;
    font-size: 11pt;
}

@media print {
    body.printing-daily-report {
        background: #ffffff;
        overflow: visible;
    }

    body.printing-daily-report * {
        visibility: hidden !important;
    }

    body.printing-daily-report .printable-daily-report,
    body.printing-daily-report .printable-daily-report * {
        visibility: visible !important;
    }

    .printable-daily-report {
        position: absolute;
        inset: 0 auto auto 0;
        display: block !important;
    }

    .printable-daily-report table {
        width: 100%;
        border-collapse: collapse;
        font-size: 8.5pt;
    }

    .printable-daily-report th,
    .printable-daily-report td {
        padding: 4px 5px;
        border: 1px solid #d1d5db;
        text-align: left;
    }
}

@media (max-width: 1200px) {
    .settings-launch-grid,
    .owner-page-screen-dashboard .owner-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Shared modal performance path: keep first paint light in WebView2. */
.modal-backdrop {
    contain: layout paint;
}

.action-modal {
    contain: layout paint;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.action-modal.zero-price-confirm-modal {
    width: min(430px, calc(100vw - 48px));
    max-height: calc(100vh - 64px);
    padding: 18px;
    border-radius: 18px;
}

.modal-backdrop.modal-is-opening {
    background: rgba(18, 24, 32, 0.56);
}

.modal-backdrop.modal-is-opening .action-modal {
    box-shadow: 0 12px 34px rgba(0,0,0,0.24);
}

.action-modal .bay-choice-grid,
.action-modal .owner-line-list,
.action-modal .owner-table,
.action-modal .vehicle-specs-grid,
.action-modal .reference-grid,
.action-modal .product-grid {
    content-visibility: auto;
    contain-intrinsic-size: 360px;
}

body.ui-modern .tech-start-card .tech-lookup-form input,
body.ui-modern .tech-start-card .tech-form-card input,
body.ui-modern .tech-start-card .tech-compact-choice input {
    min-height: 40px !important;
    padding: 7px 10px !important;
}

body.ui-modern .tech-start-card .tech-lookup-form .primary-action,
body.ui-modern .tech-start-card .tech-compact-choice .primary-action,
body.ui-modern .tech-start-card .tech-wizard-actions .primary-action,
body.ui-modern .tech-start-card .tech-wizard-actions .small-action,
body.ui-modern .tech-start-card .tech-nav-row .small-action,
body.ui-modern .tech-start-card button:not(.selection-tile):not(.profile-status-tile) {
    min-height: 40px !important;
    padding: 7px 12px !important;
}

body.ui-modern .tech-start-card .tech-compact-choice {
    min-height: 76px !important;
    padding: 8px 10px !important;
}

body.ui-modern .tech-start-card .tech-existing-customer-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
}

body.ui-modern .tech-start-card .tech-customer-pick-card {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch;
    min-height: 124px !important;
    padding: 16px 18px !important;
    gap: 6px 16px;
    color: #111827 !important;
    background: linear-gradient(180deg, #ffffff, #eef3f8) !important;
    border: 1px solid #b8c5d3 !important;
    border-left: 8px solid #b91c1c !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 3px 0 #94a3b8 !important;
    text-align: left !important;
}

body.ui-modern .tech-start-card .tech-customer-pick-card:hover,
body.ui-modern .tech-start-card .tech-customer-pick-card:focus-visible {
    background: linear-gradient(180deg, #ffffff, #e8eef5) !important;
    border-color: #9fb0c2 !important;
    transform: translateY(-1px);
}

body.ui-modern .tech-start-card .tech-customer-pick-card strong {
    color: #111827 !important;
    font-size: 1.18rem;
    line-height: 1.12;
}

body.ui-modern .tech-start-card .tech-customer-pick-card span,
body.ui-modern .tech-start-card .tech-customer-pick-card small {
    color: #475569;
    font-size: 0.92rem;
}

body.ui-modern .tech-start-card .tech-customer-pick-card em {
    font-size: 0.8rem;
}

body.ui-modern .tech-customer-confirm-modal .panel-heading .eyebrow,
body:not(.ui-modern) .tech-customer-confirm-modal .panel-heading .eyebrow {
    color: #ffffff !important;
}

body.ui-modern .tech-customer-confirm-backdrop {
    z-index: 14000;
    display: grid;
    place-items: center;
    padding: 24px;
}

body.ui-modern .tech-customer-confirm-modal {
    max-height: calc(100vh - 88px);
    overflow: hidden;
}

body.ui-modern .tech-customer-confirm-actions .small-action,
body.ui-modern .tech-customer-confirm-actions .primary-action {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 0.88rem;
}

body.ui-modern .tech-start-card .tech-section-head {
    min-height: 0;
    padding: 8px 10px !important;
}

body.ui-modern .tech-work-card {
    padding: 18px !important;
}

body.ui-modern .tech-work-card .login-brand {
    margin-bottom: 8px !important;
}

body.ui-modern .tech-work-card .login-logo {
    width: 52px;
    height: 52px;
}

body.ui-modern .tech-work-card .tech-brand h1 {
    font-size: 1.35rem;
}

body.ui-modern .tech-work-card .login-brand p {
    margin-top: 2px;
}

body.ui-modern .tech-work-card .tech-nav-row {
    margin: 6px 0 10px !important;
}

body.ui-modern .tech-work-card .tech-nav-row,
body.ui-modern .tech-work-card .tech-work-summary {
    display: none !important;
}

body.ui-modern .tech-work-card .tech-nav-row .small-action,
body.ui-modern .tech-work-card .tech-wizard-actions .small-action,
body.ui-modern .tech-work-card .tech-wizard-actions .primary-action,
body.ui-modern .tech-work-card .tech-pager .small-action,
body.ui-modern .tech-work-card .tech-product-pick .primary-action,
body.ui-modern .tech-work-card .tech-part-search-form .small-action {
    min-height: 38px !important;
    padding: 7px 12px !important;
    font-size: 0.82rem !important;
}

body.ui-modern .tech-work-card .tech-work-summary {
    gap: 8px;
    margin: 8px 0 !important;
}

body.ui-modern .tech-work-card .tech-work-summary div {
    min-height: 40px !important;
    padding: 6px 8px !important;
}

body.ui-modern .tech-work-card .tech-work-summary strong {
    font-size: 0.86rem;
}

body.ui-modern .tech-work-card .tech-stepper {
    gap: 6px;
    margin: 11px 0 13px !important;
}

body.ui-modern .tech-work-card .tech-stepper li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px !important;
    padding: 4px !important;
    gap: 0;
    font-size: 0 !important;
}

body.ui-modern .tech-work-card .tech-stepper .tech-step-icon {
    width: 26px;
    height: 26px;
}

body.ui-modern .tech-work-card .tech-stepper .tech-step-icon .app-icon {
    width: 14px;
    height: 14px;
}

body.ui-modern .tech-work-card .tech-section-head {
    margin: 10px 0 12px !important;
    padding: 7px 10px !important;
}

body.ui-modern .tech-work-card .tech-section-head strong {
    font-size: 1rem;
}

body.ui-modern .tech-work-card .tech-compact-grid {
    gap: 10px;
}

body.ui-modern .tech-work-card .tech-compact-choice {
    min-height: 78px !important;
    padding: 8px 10px !important;
}

body.ui-modern .tech-work-card .tech-compact-choice strong {
    font-size: 0.9rem;
}

body.ui-modern .tech-work-card .tech-pager {
    margin-top: 12px !important;
}

body.ui-modern .tech-work-card .tech-wizard-actions {
    margin-top: 13px !important;
}

body.ui-modern .tech-work-card .tech-product-pick {
    grid-template-columns: minmax(0, 1fr) 86px 104px 108px !important;
    gap: 10px !important;
    min-height: 68px !important;
    padding: 8px 10px !important;
}

body.ui-modern .tech-work-card .tech-product-pick input,
body.ui-modern .tech-work-card .tech-part-search-form input {
    min-height: 38px !important;
    padding: 7px 10px !important;
}

body.ui-modern .tech-start-card label,
body.ui-modern .tech-work-card label {
    gap: 7px;
}

body.ui-modern .tech-start-card .tech-form-grid,
body.ui-modern .tech-start-card .tech-customer-choice-grid,
body.ui-modern .tech-work-card .tech-compact-list {
    gap: 12px;
}

body.ui-modern .tech-start-card .tech-new-customer-card {
    gap: 10px !important;
}

body.ui-modern .tech-start-card .tech-new-customer-card .tech-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
}

body.ui-modern .tech-start-card .tech-new-customer-card input {
    min-height: 38px !important;
    padding: 6px 10px !important;
}

body.ui-modern .tech-start-card .tech-new-customer-card .tech-wizard-actions {
    margin: 0 !important;
}

body.ui-modern .tech-start-card .tech-new-customer-card .tech-wizard-actions .small-action,
body.ui-modern .tech-start-card .tech-new-customer-card .tech-wizard-actions .primary-action {
    width: 124px;
    min-width: 124px;
    max-width: 124px;
}

body.ui-modern .tech-start-card .tech-new-customer-card .tech-wizard-actions .primary-action {
    color: #ecfdf5 !important;
    background: linear-gradient(180deg, #059669, #047857) !important;
    border-color: #065f46 !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.28), 0 2px 0 #064e3b !important;
}

body.ui-modern .address-autocomplete-field,
body:not(.ui-modern) .address-autocomplete-field {
    position: relative;
    z-index: 8;
}

body.ui-modern .address-autocomplete-field.address-suggestions-open,
body:not(.ui-modern) .address-autocomplete-field.address-suggestions-open {
    z-index: 30;
}

body.ui-modern .address-suggestion-list,
body:not(.ui-modern) .address-suggestion-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 40;
    display: grid;
    gap: 6px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: 7px solid #059669;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
}

body.ui-modern .address-suggestion-list[hidden],
body:not(.ui-modern) .address-suggestion-list[hidden] {
    display: none;
}

body.ui-modern .address-suggestion-option,
body:not(.ui-modern) .address-suggestion-option {
    display: grid;
    gap: 3px;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 48px;
    padding: 8px 10px;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #d8e0ea;
    border-radius: 10px;
    box-shadow: none;
    text-align: left;
}

body.ui-modern .address-suggestion-option strong,
body:not(.ui-modern) .address-suggestion-option strong {
    overflow: hidden;
    font-size: 0.88rem;
    font-weight: 950;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern .address-suggestion-option span,
body:not(.ui-modern) .address-suggestion-option span {
    overflow: hidden;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern .address-suggestion-option:hover,
body.ui-modern .address-suggestion-option:focus-visible,
body:not(.ui-modern) .address-suggestion-option:hover,
body:not(.ui-modern) .address-suggestion-option:focus-visible {
    background: linear-gradient(180deg, #ecfdf5, #d1fae5);
    border-color: #10b981;
    outline: 3px solid rgba(16, 185, 129, 0.2);
    outline-offset: 1px;
}

body.ui-modern .tech-work-card .tech-product-pick label {
    font-size: 0.74rem;
}

body.ui-modern .tech-menu-card {
    padding: 18px !important;
}

body.ui-modern .tech-menu-card .login-brand {
    margin-bottom: 10px !important;
}

body.ui-modern .tech-menu-card .tech-status-strip {
    gap: 8px;
    margin: 8px 0 10px !important;
}

body.ui-modern .tech-menu-card .tech-status-strip div {
    min-height: 48px !important;
    padding: 8px 10px !important;
}

body.ui-modern .tech-menu-card .login-bay-grid.tech-action-grid {
    gap: 10px;
    margin-bottom: 0;
}

body.ui-modern .tech-menu-card .bay-login-choice,
body.ui-modern .tech-menu-card button.bay-login-choice:not(.selection-tile):not(.profile-status-tile) {
    min-height: 86px !important;
    padding: 12px 14px !important;
}

body.ui-modern .tech-menu-card .bay-login-choice strong {
    font-size: 1rem;
}

body.ui-modern .tech-menu-card .bay-login-choice span {
    font-size: 0.82rem;
}

body.ui-modern .tech-payment-total-strip {
    grid-template-columns: minmax(0, 1fr) !important;
    margin: 5px 0 !important;
}

body.ui-modern .tech-payment-total-strip div {
    min-height: 40px !important;
    padding: 6px 10px !important;
}

body.ui-modern .tech-customer-card {
    padding: 18px !important;
}

body.ui-modern .tech-customer-card .login-brand {
    gap: 10px;
    margin-bottom: 6px !important;
}

body.ui-modern .tech-customer-card .brand-mark.large {
    width: 46px;
    height: 46px;
    font-size: 1rem;
}

body.ui-modern .tech-customer-card .tech-brand h1 {
    font-size: 1.25rem;
}

body.ui-modern .tech-customer-card .login-brand p {
    display: none;
}

body.ui-modern .tech-customer-card .tech-nav-row {
    margin: 4px 0 6px !important;
}

body.ui-modern .tech-customer-card .tech-nav-row .small-action {
    min-height: 34px !important;
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
}

body.ui-modern .tech-customer-card:not(.tech-history-detail-card) .tech-lookup-form input {
    min-height: 58px;
    padding: 10px 14px;
    font-size: 1.16rem;
    font-weight: 950;
}

body.ui-modern .tech-customer-card:not(.tech-history-detail-card) .tech-lookup-form label span {
    font-size: 1rem;
}

body.ui-modern .tech-customer-card:not(.tech-history-detail-card) .tech-lookup-form .primary-action {
    min-height: 58px;
    font-size: 1rem;
}

body.ui-modern .tech-customer-card:not(.tech-history-detail-card) .tech-result-card > strong {
    font-size: 1.06rem;
}

body.ui-modern .tech-customer-card:not(.tech-history-detail-card) .tech-result-card > span,
body.ui-modern .tech-customer-card:not(.tech-history-detail-card) .tech-result-card > small {
    font-size: 0.9rem;
}

body.ui-modern .tech-customer-card .tech-section-head {
    margin: 6px 0 !important;
    padding: 6px 9px !important;
}

body.ui-modern .tech-customer-card .tech-section-head strong {
    font-size: 0.95rem;
}

body.ui-modern .tech-customer-card .tech-section-head span {
    font-size: 0.76rem;
}

body.ui-modern .tech-customer-card .tech-result-grid {
    gap: 8px !important;
}

body.ui-modern .tech-customer-card .tech-result-card {
    min-height: 68px !important;
    padding: 8px 10px !important;
    gap: 3px;
}

body.ui-modern .tech-customer-card .tech-result-card > strong {
    font-size: 0.92rem;
}

body.ui-modern .tech-customer-card .tech-result-card > span,
body.ui-modern .tech-customer-card .tech-result-card > small {
    font-size: 0.78rem;
}

body.ui-modern .tech-customer-card .tech-table {
    margin: 6px 0 8px !important;
}

body.ui-modern .tech-customer-card .tech-table th,
body.ui-modern .tech-customer-card .tech-table td {
    padding: 6px 8px !important;
}

body.ui-modern .login-bay-panel .tech-history-detail-card {
    width: min(1120px, calc((100vw - 96px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 48px) * var(--app-display-inverse, 1));
    overflow: hidden;
    padding: 14px !important;
}

body.ui-modern .tech-history-detail-card .login-brand {
    gap: 9px;
    margin-bottom: 6px !important;
}

body.ui-modern .tech-history-detail-card .brand-mark.large {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
}

body.ui-modern .tech-history-detail-card .tech-brand h1 {
    font-size: 1.16rem;
}

body.ui-modern .tech-history-detail-card .tech-nav-row {
    margin: 2px 0 4px !important;
}

body.ui-modern .tech-history-detail-card .tech-customer-main-head {
    margin: 3px 0 5px !important;
    padding: 7px 10px !important;
    background: linear-gradient(180deg, #ecfdf5, #ffffff);
    border-color: #10b981;
    border-left: 6px solid #059669;
}

body.ui-modern .tech-history-detail-card .tech-history-subhead {
    margin: 4px 0 !important;
    padding: 5px 8px !important;
    border-radius: 10px;
}

body.ui-modern .tech-history-detail-card > .tech-history-subhead {
    display: none;
}

body.ui-modern .tech-history-detail-card .tech-history-subhead strong {
    font-size: 0.82rem;
}

body.ui-modern .tech-history-detail-card .tech-history-subhead span {
    font-size: 0.68rem;
}

body.ui-modern .tech-history-detail-card .tech-history-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px !important;
}

body.ui-modern .tech-history-detail-card .tech-history-picker-grid .tech-result-card {
    min-height: 46px !important;
    padding: 6px 8px !important;
    border-left-width: 5px;
    border-radius: 10px;
}

body.ui-modern .tech-history-detail-card .tech-history-picker-grid .tech-result-card > strong {
    font-size: 0.8rem;
}

body.ui-modern .tech-history-detail-card .tech-history-picker-grid .tech-result-card > span,
body.ui-modern .tech-history-detail-card .tech-history-picker-grid .tech-result-card > small {
    overflow: hidden;
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern .tech-history-detail-grid {
    display: grid;
    grid-template-columns: 0.74fr 1.26fr;
    gap: 8px;
    margin-top: 6px;
}

body.ui-modern .tech-history-panel {
    min-width: 0;
    padding: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
}

body.ui-modern .tech-history-detail-card .tech-history-panel .tech-table {
    table-layout: fixed;
    margin: 4px 0 0 !important;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.12;
    border-radius: 10px;
}

body.ui-modern .tech-history-detail-card .tech-history-panel .tech-table th,
body.ui-modern .tech-history-detail-card .tech-history-panel .tech-table td {
    padding: 4px 6px !important;
}

body.ui-modern .tech-history-detail-card .tech-history-meta-table th {
    width: 82px;
}

body.ui-modern .tech-history-detail-card .tech-history-items-table th:nth-child(2),
body.ui-modern .tech-history-detail-card .tech-history-items-table th:nth-child(3),
body.ui-modern .tech-history-detail-card .tech-history-items-table th:nth-child(4),
body.ui-modern .tech-history-detail-card .tech-history-items-table td:nth-child(2),
body.ui-modern .tech-history-detail-card .tech-history-items-table td:nth-child(3),
body.ui-modern .tech-history-detail-card .tech-history-items-table td:nth-child(4) {
    width: 62px;
    text-align: center;
}

body.ui-modern .tech-history-detail-card .tech-history-items-table td:first-child {
    overflow: hidden;
    max-width: 0;
    color: #0f172a;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern .tech-work-card .tech-close-form {
    gap: 6px !important;
    margin-top: 5px !important;
}

body.ui-modern .tech-work-card .tech-close-form .tech-form-grid {
    gap: 8px !important;
}

body.ui-modern .tech-work-card .tech-close-form label,
body.ui-modern .tech-work-card .payment-reference-field {
    gap: 4px !important;
    font-size: 0.78rem;
}

body.ui-modern .tech-work-card .tech-close-form input,
body.ui-modern .tech-work-card .payment-reference-field input {
    min-height: 32px !important;
    padding: 5px 8px !important;
}

body.ui-modern .tech-work-card .tech-payment-grid {
    gap: 8px !important;
    margin-top: 4px !important;
}

body.ui-modern .tech-work-card .tech-payment-grid .payment-choice {
    min-height: 46px !important;
    display: grid;
    place-items: center;
    padding: 9px 12px !important;
    text-align: center;
    cursor: pointer;
}

body.ui-modern .tech-work-card .tech-payment-grid .payment-choice strong {
    font-size: 0.94rem;
    line-height: 1.1;
}

body.ui-modern .tech-work-card .tech-payment-grid .payment-choice span {
    font-size: 0.72rem;
}

body.ui-modern .tech-work-card .tech-payment-grid .payment-choice input[type="radio"] {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

body.ui-modern .tech-work-card .tech-payment-grid .payment-choice:focus-within {
    outline: 4px solid var(--yellow);
    outline-offset: 3px;
}

body.ui-modern .tech-work-card .tech-close-form .tech-wizard-actions {
    gap: 7px;
    margin-top: 6px !important;
}

body.ui-modern .tech-work-card .tech-close-form .tech-wizard-actions .small-action,
body.ui-modern .tech-work-card .tech-close-form .tech-wizard-actions .primary-action {
    min-height: 34px !important;
    padding: 5px 10px !important;
    font-size: 0.78rem !important;
}

body.ui-modern .tech-work-card .tech-brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-valor-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.owner-compact-toolbar {
    align-items: end;
}

.owner-valor-surface {
    margin-top: 0;
}

.owner-valor-surface .owner-work-toolbar {
    grid-template-columns: minmax(280px, 1fr) minmax(150px, auto);
    align-items: center;
}

.owner-valor-line {
    grid-template-columns: minmax(230px, 1fr) 118px 92px 132px 104px;
    min-height: 58px;
    padding: 9px 12px;
}

.owner-valor-line.status-online {
    border-left-color: #0f766e;
}

.owner-valor-line.status-offline {
    border-left-color: #b91c1c;
}

.owner-valor-line.status-unknown {
    border-left-color: #64748b;
}

.valor-status-pill {
    justify-self: start;
    min-width: 92px;
    padding: 8px 12px;
    border-radius: 999px;
    text-align: center;
    font-size: 0.78rem;
    color: #ffffff !important;
}

.valor-status-pill.status-online {
    background: #0f766e;
}

.valor-status-pill.status-offline {
    background: #991b1b;
}

.valor-status-pill.status-unknown {
    background: #475569;
}

.owner-valor-modal {
    width: min(880px, calc(100vw - 32px));
}

.owner-valor-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-valor-setup-note {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    color: #0f172a;
    background: linear-gradient(180deg, #ecfdf5, #ffffff);
    border: 1px solid #99f6e4;
    border-left: 7px solid #0f766e;
    border-radius: 14px;
}

.owner-valor-setup-note strong {
    font-size: 0.96rem;
    font-weight: 950;
}

.owner-valor-setup-note span {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 850;
}

.owner-advanced-settings {
    display: grid;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #d8e2ee;
    border-radius: 14px;
}

.owner-advanced-settings summary {
    min-height: 42px;
    padding: 10px 12px;
    color: #111827;
    font-weight: 950;
    cursor: pointer;
}

.owner-valor-advanced-grid {
    margin-top: 8px;
}

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

.owner-valor-env-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #d8e2ee;
    border-radius: 14px;
    background: #ffffff;
}

.owner-valor-env-card.sandbox {
    border-left: 7px solid #0f766e;
    background: linear-gradient(180deg, #f0fdfa, #ffffff);
}

.owner-valor-env-card.live {
    border-left: 7px solid #b91c1c;
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.owner-valor-env-card > strong {
    color: #111827;
    font-size: 0.9rem;
    font-weight: 950;
}

.owner-valor-env-card .owner-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.tech-valor-modal {
    width: min(980px, calc(100vw - 36px));
    gap: 14px;
    border-radius: 22px;
    border: 2px solid #cbd5e1;
}

.tech-valor-terminal-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tech-valor-terminal-card {
    display: grid;
    gap: 6px;
    min-height: 112px;
    padding: 16px;
    text-align: left;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #eef5fb);
    border: 2px solid #cbd5e1;
    border-left: 7px solid #64748b;
    border-radius: 18px;
    box-shadow: 0 4px 0 #94a3b8;
    cursor: pointer;
}

.tech-valor-terminal-card strong {
    font-size: 1.08rem;
}

.tech-valor-terminal-card span,
.tech-valor-terminal-card b {
    color: #64748b;
    font-size: 0.9rem;
}

.tech-valor-terminal-card.status-online {
    border-left-color: #0f766e;
}

.tech-valor-terminal-card.status-online b {
    color: #0f766e;
}

.tech-valor-terminal-card.status-offline,
.tech-valor-terminal-card.status-unknown,
.tech-valor-terminal-card:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.tech-valor-terminal-card.status-offline {
    border-left-color: #b91c1c;
}

.tech-valor-terminal-card.status-offline b {
    color: #991b1b;
}

.tech-valor-terminal-card:focus-visible {
    outline: 4px solid var(--yellow);
    outline-offset: 3px;
}

.tech-valor-processing {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 4px 14px;
    align-items: center;
    padding: 14px 16px;
    color: #0f172a;
    background: #ecfeff;
    border: 2px solid #67e8f9;
    border-radius: 18px;
}

.tech-valor-processing[hidden] {
    display: none;
}

.tech-valor-processing .modal-progress-ring {
    grid-row: span 2;
}

.tech-valor-processing strong {
    font-size: 1rem;
}

.tech-valor-processing small {
    color: #475569;
    font-weight: 800;
}

.tech-valor-message {
    min-height: 22px;
    margin: 0;
    color: #475569;
    font-weight: 900;
}

.tech-valor-message.error {
    color: #991b1b;
}

.tech-valor-message.warning {
    color: #92400e;
}

.tech-valor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.tech-valor-actions .small-action,
.tech-valor-actions .primary-action {
    min-width: 190px;
    min-height: 58px;
}

body.ui-modern .tech-work-card .tech-section-head-with-action {
    grid-template-columns: minmax(0, 1fr) 148px;
    align-items: center;
    gap: 10px;
}

body.ui-modern .tech-work-card .tech-section-head-with-action > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

body.ui-modern .tech-main-menu-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 132px;
    padding: 8px 12px;
    color: #ecfdf5;
    font-size: 0.82rem;
    font-weight: 950;
    text-decoration: none;
    background: linear-gradient(180deg, #047857, #065f46);
    border: 1px solid #10b981;
    border-radius: 999px;
    box-shadow: inset 0 1px rgba(255,255,255,0.28), 0 2px 0 #064e3b;
}

body.ui-modern .tech-invoice-action {
    color: #064e3b !important;
    background: linear-gradient(180deg, #ecfdf5, #d1fae5) !important;
    border-color: #10b981 !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.72), 0 2px 0 rgba(5, 150, 105, 0.35) !important;
}

body.ui-modern .tech-duplicate-backdrop {
    z-index: 14000;
    display: grid;
    place-items: center;
    padding: 24px;
}

body.ui-modern .tech-card.tech-has-duplicate-modal {
    overflow: hidden !important;
}

body.ui-modern .tech-duplicate-modal {
    width: min(820px, calc(100vw - 88px));
    max-height: calc(100vh - 72px);
    overflow: hidden;
    padding: 16px;
    border-radius: 18px;
}

body.ui-modern .tech-duplicate-modal .panel-heading {
    margin-bottom: 10px;
}

body.ui-modern .tech-duplicate-modal .panel-heading .eyebrow,
body:not(.ui-modern) .tech-duplicate-modal .panel-heading .eyebrow {
    color: #ffffff !important;
}

body.ui-modern .tech-duplicate-modal .panel-heading p {
    margin: 3px 0 0;
    color: #64748b;
    font-weight: 850;
}

body.ui-modern .tech-duplicate-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 8px;
}

body.ui-modern .tech-duplicate-panel {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 6px solid #b91c1c;
    border-radius: 14px;
}

body.ui-modern .tech-duplicate-panel.new-choice {
    border-left-color: #059669;
    background: linear-gradient(180deg, #ffffff, #ecfdf5);
}

body.ui-modern .tech-duplicate-panel > strong {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern .tech-duplicate-panel .tech-table {
    margin: 0 !important;
    table-layout: fixed;
    font-size: 0.78rem;
}

body.ui-modern .tech-duplicate-panel .tech-table th,
body.ui-modern .tech-duplicate-panel .tech-table td {
    padding: 6px 7px !important;
}

body.ui-modern .tech-duplicate-panel .tech-table th:nth-child(2),
body.ui-modern .tech-duplicate-panel .tech-table th:nth-child(3),
body.ui-modern .tech-duplicate-panel .tech-table td:nth-child(2),
body.ui-modern .tech-duplicate-panel .tech-table td:nth-child(3) {
    width: 72px;
    text-align: center;
}

body.ui-modern .tech-duplicate-lines {
    display: grid;
    gap: 8px;
}

body.ui-modern .tech-duplicate-new-line {
    display: grid;
    gap: 5px;
    align-content: center;
    min-height: 82px;
    padding: 9px 10px;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

body.ui-modern .tech-duplicate-existing-line {
    background: linear-gradient(180deg, #ffffff, #fff7f7);
    border-color: #fecaca;
    border-left: 6px solid #b91c1c;
}

body.ui-modern .tech-duplicate-new-line b {
    color: #064e3b;
    font-size: 1rem;
}

body.ui-modern .tech-duplicate-existing-line b {
    color: #7f1d1d;
}

body.ui-modern .tech-duplicate-new-line span,
body.ui-modern .tech-duplicate-new-line small {
    color: #475569;
    font-weight: 900;
}

body.ui-modern .tech-duplicate-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

body.ui-modern .tech-duplicate-actions form {
    margin: 0;
}

body.ui-modern .tech-duplicate-actions .primary-action,
body.ui-modern .tech-duplicate-actions .small-action {
    min-width: 148px;
    min-height: 46px;
    padding: 9px 14px;
    font-size: 0.86rem;
}

body.ui-modern .tech-duplicate-actions .primary-action.danger {
    color: #fff;
    background: linear-gradient(180deg, #dc2626, #991b1b);
    border-color: #7f1d1d;
}

body.ui-modern .tech-nav-row .tech-main-menu-pill {
    min-height: 36px;
}

body.ui-modern .tech-work-card .tech-nav-row {
    display: flex !important;
    justify-content: flex-end;
    margin: 0 0 5px !important;
}

body.ui-modern .tech-work-card .tech-nav-row span {
    display: none;
}

body.ui-modern .tech-work-card .tech-nav-row .tech-main-menu-pill {
    min-height: 30px;
    min-width: 112px;
    padding: 5px 10px;
    font-size: 0.74rem;
}

body.ui-modern .tech-work-card .tech-compact-choice {
    min-height: 70px !important;
    padding: 7px 9px !important;
}

body.ui-modern .tech-work-card .tech-compact-choice span,
body.ui-modern .tech-work-card .tech-compact-choice small {
    font-size: 0.72rem;
}

body.ui-modern .tech-work-card .tech-service-choice span,
body.ui-modern .tech-work-card .tech-service-choice small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern .tech-work-card .tech-service-choice.service-kind-fluid {
    border-left-color: #2563eb;
    background: linear-gradient(180deg, #ffffff, #eff6ff);
}

body.ui-modern .tech-work-card .tech-service-choice.service-kind-check {
    border-left-color: #059669;
    background: linear-gradient(180deg, #ffffff, #ecfdf5);
}

body.ui-modern .tech-work-card .tech-compact-list {
    gap: 7px !important;
}

body.ui-modern .tech-spec-service-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px 100px 116px;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 6px solid #059669;
    border-radius: 12px;
}

body.ui-modern .tech-spec-service-summary {
    display: grid;
    gap: 3px;
    min-width: 0;
}

body.ui-modern .tech-spec-service-summary strong {
    color: #0f172a;
    font-size: 0.96rem;
}

body.ui-modern .tech-spec-service-summary span {
    overflow: hidden;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern .tech-spec-service-card label {
    gap: 3px !important;
    font-size: 0.68rem;
}

body.ui-modern .tech-spec-service-card input {
    min-height: 34px;
    padding: 5px 7px;
}

body.ui-modern .tech-spec-service-card .primary-action {
    min-height: 34px;
    padding: 5px 9px;
    font-size: 0.78rem;
}

body.ui-modern .tech-work-card .tech-product-pick {
    grid-template-columns: minmax(0, 1fr) 72px 92px 92px !important;
    gap: 7px !important;
    min-height: 56px !important;
    padding: 6px 8px !important;
}

body.ui-modern .tech-work-card .tech-product-pick > div {
    gap: 1px;
    padding-right: 28px;
}

body.ui-modern .tech-work-card .tech-product-pick strong {
    font-size: 0.84rem;
}

body.ui-modern .tech-work-card .tech-product-pick span,
body.ui-modern .tech-work-card .tech-product-pick small {
    font-size: 0.68rem;
}

body.ui-modern .tech-work-card .tech-product-pick label {
    gap: 3px !important;
    font-size: 0.66rem;
}

body.ui-modern .tech-work-card .tech-product-pick input,
body.ui-modern .tech-work-card .tech-part-search-form input {
    min-height: 32px !important;
    padding: 5px 7px !important;
}

body.ui-modern .tech-work-card .tech-product-pick .primary-action,
body.ui-modern .tech-work-card .tech-part-search-form .small-action {
    min-height: 32px !important;
    padding: 5px 8px !important;
}

body.ui-modern .tech-work-card .tech-part-search-form {
    gap: 7px;
    margin: 5px 0 7px;
}

body.ui-modern .tech-work-card .tech-receipt-table {
    margin: 5px 0 8px !important;
    font-size: 0.82rem;
}

body.ui-modern .tech-work-card .tech-receipt-table th,
body.ui-modern .tech-work-card .tech-receipt-table td {
    padding: 7px 8px !important;
}

body.ui-modern .tech-work-card .tech-receipt-table th:nth-child(2),
body.ui-modern .tech-work-card .tech-receipt-table th:nth-child(3),
body.ui-modern .tech-work-card .tech-receipt-table th:nth-child(4),
body.ui-modern .tech-work-card .tech-receipt-table th:nth-child(5),
body.ui-modern .tech-work-card .tech-receipt-table th:nth-child(6),
body.ui-modern .tech-work-card .tech-receipt-table td:nth-child(2),
body.ui-modern .tech-work-card .tech-receipt-table td:nth-child(3),
body.ui-modern .tech-work-card .tech-receipt-table td:nth-child(4),
body.ui-modern .tech-work-card .tech-receipt-table td:nth-child(5),
body.ui-modern .tech-work-card .tech-receipt-table td:nth-child(6) {
    width: 84px;
    text-align: center;
}

body.ui-modern .tech-work-card .tech-receipt-table th:nth-child(6),
body.ui-modern .tech-work-card .tech-receipt-table td:nth-child(6) {
    width: 58px;
}

body.ui-modern .tech-item-edit-link {
    color: #0f172a;
    font-weight: 950;
    text-decoration: none;
    border-bottom: 2px solid rgba(16, 185, 129, 0.38);
}

body.ui-modern .tech-item-edit-link:hover {
    color: #047857;
    border-bottom-color: #10b981;
}

body.ui-modern .tech-tax-toggle-form {
    display: inline-grid;
    margin: 0;
}

body.ui-modern .tech-tax-toggle,
body.ui-modern .tech-tax-badge {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    min-height: 30px;
    padding: 4px 9px;
    font-size: 0.78rem;
    font-weight: 950;
    border-radius: 999px;
}

body.ui-modern .tech-tax-toggle {
    cursor: pointer;
    border: 1px solid #cbd5e1;
}

body.ui-modern .tech-tax-toggle.is-taxable,
body.ui-modern .tech-tax-badge.is-taxable {
    color: #ecfdf5;
    background: #059669;
    border-color: #047857;
    box-shadow: inset 0 1px rgba(255,255,255,0.22);
}

body.ui-modern .tech-tax-toggle.not-taxable,
body.ui-modern .tech-tax-badge.not-taxable {
    color: #64748b;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

body.ui-modern .tech-invoice-delete-form {
    display: inline-grid;
    margin: 0;
}

body.ui-modern .tech-invoice-delete-button {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 12px !important;
}

body.ui-modern .tech-invoice-delete-button .app-icon {
    width: 1.05rem;
    height: 1.05rem;
}

body.ui-modern .tech-invoice-review,
body:not(.ui-modern) .tech-invoice-review {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 10px;
    align-items: start;
    margin: 6px 0 8px;
}

body.ui-modern .tech-invoice-lines,
body:not(.ui-modern) .tech-invoice-lines {
    display: grid;
    gap: 7px;
    min-width: 0;
}

body.ui-modern .tech-invoice-line,
body:not(.ui-modern) .tech-invoice-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px 78px 58px 82px 42px;
    gap: 7px;
    align-items: center;
    min-height: 58px;
    padding: 7px 8px;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #eef3f8);
    border: 1px solid #b8c5d3;
    border-left: 7px solid #b91c1c;
    border-radius: 12px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #94a3b8;
}

body.ui-modern .tech-invoice-review-paged .tech-invoice-lines,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-lines {
    gap: 5px;
}

body.ui-modern .tech-invoice-review-paged .tech-invoice-line,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-line {
    grid-template-columns: minmax(0, 1fr) 48px 68px 48px 72px 36px;
    gap: 5px;
    min-height: 40px;
    padding: 3px 7px;
    border-left-width: 6px;
    border-radius: 10px;
}

body.ui-modern .tech-invoice-item,
body:not(.ui-modern) .tech-invoice-item {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: #0f172a;
    text-decoration: none;
}

body.ui-modern .tech-invoice-item strong,
body:not(.ui-modern) .tech-invoice-item strong {
    overflow: hidden;
    font-size: 0.92rem;
    font-weight: 950;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern .tech-invoice-review-paged .tech-invoice-item strong,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-item strong {
    font-size: 0.82rem;
}

body.ui-modern .tech-invoice-review-paged .tech-invoice-item span,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-item span {
    display: none;
}

body.ui-modern .tech-invoice-item span,
body:not(.ui-modern) .tech-invoice-item span,
body.ui-modern .tech-invoice-stat span,
body:not(.ui-modern) .tech-invoice-stat span,
body.ui-modern .tech-invoice-tax > span,
body:not(.ui-modern) .tech-invoice-tax > span,
body.ui-modern .tech-invoice-total span,
body:not(.ui-modern) .tech-invoice-total span {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

body.ui-modern .tech-invoice-review-paged .tech-invoice-item span,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-item span,
body.ui-modern .tech-invoice-review-paged .tech-invoice-stat span,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-stat span,
body.ui-modern .tech-invoice-review-paged .tech-invoice-tax > span,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-tax > span,
body.ui-modern .tech-invoice-review-paged .tech-invoice-total span,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-total span {
    font-size: 0.6rem;
}

body.ui-modern .tech-invoice-stat,
body:not(.ui-modern) .tech-invoice-stat,
body.ui-modern .tech-invoice-tax,
body:not(.ui-modern) .tech-invoice-tax,
body.ui-modern .tech-invoice-total,
body:not(.ui-modern) .tech-invoice-total {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-width: 0;
}

body.ui-modern .tech-invoice-stat strong,
body:not(.ui-modern) .tech-invoice-stat strong,
body.ui-modern .tech-invoice-total strong,
body:not(.ui-modern) .tech-invoice-total strong {
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 950;
    white-space: nowrap;
}

body.ui-modern .tech-invoice-review-paged .tech-invoice-stat strong,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-stat strong,
body.ui-modern .tech-invoice-review-paged .tech-invoice-total strong,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-total strong {
    font-size: 0.76rem;
}

body.ui-modern .tech-invoice-review-paged .tech-tax-toggle,
body.ui-modern .tech-invoice-review-paged .tech-tax-badge,
body:not(.ui-modern) .tech-invoice-review-paged .tech-tax-toggle,
body:not(.ui-modern) .tech-invoice-review-paged .tech-tax-badge {
    min-width: 38px;
    min-height: 26px;
    padding: 3px 7px;
    font-size: 0.7rem;
}

body.ui-modern .tech-invoice-total strong,
body:not(.ui-modern) .tech-invoice-total strong {
    color: #065f46;
}

body.ui-modern .tech-invoice-remove,
body:not(.ui-modern) .tech-invoice-remove {
    display: grid;
    place-items: center;
}

body.ui-modern .tech-invoice-total-card,
body:not(.ui-modern) .tech-invoice-total-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px;
    min-width: 0;
    margin: 0 !important;
}

body.ui-modern .tech-invoice-total-card div,
body:not(.ui-modern) .tech-invoice-total-card div {
    align-content: center;
    min-height: 52px !important;
    min-width: 0 !important;
    padding: 6px 10px !important;
}

body.ui-modern .tech-invoice-total-card strong,
body:not(.ui-modern) .tech-invoice-total-card strong {
    font-size: 1.08rem !important;
}

body.ui-modern .tech-invoice-review-paged .tech-invoice-delete-button,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-delete-button {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 10px !important;
}

body.ui-modern .tech-invoice-review-paged .tech-invoice-delete-button .app-icon,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-delete-button .app-icon {
    width: 0.9rem;
    height: 0.9rem;
}

body.ui-modern .tech-invoice-review-paged .tech-invoice-total-card,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-total-card {
    gap: 5px;
}

body.ui-modern .tech-invoice-review-paged .tech-invoice-total-card div,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-total-card div {
    min-height: 38px !important;
    padding: 3px 8px !important;
}

body.ui-modern .tech-invoice-review-paged .tech-invoice-total-card span,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-total-card span {
    font-size: 0.6rem !important;
}

body.ui-modern .tech-invoice-review-paged .tech-invoice-total-card strong,
body:not(.ui-modern) .tech-invoice-review-paged .tech-invoice-total-card strong {
    font-size: 0.94rem !important;
}

body.ui-modern .tech-invoice-page-controls,
body:not(.ui-modern) .tech-invoice-page-controls {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 5px;
    align-items: center;
    min-width: 0;
    padding: 3px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
}

body.ui-modern .tech-invoice-page-controls strong,
body:not(.ui-modern) .tech-invoice-page-controls strong {
    overflow: hidden;
    color: #0f172a !important;
    font-size: 0.64rem !important;
    font-weight: 950;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern .tech-invoice-page-controls .small-action,
body:not(.ui-modern) .tech-invoice-page-controls .small-action,
body.ui-modern .tech-invoice-page-disabled,
body:not(.ui-modern) .tech-invoice-page-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 26px !important;
    padding: 3px 6px !important;
    font-size: 0.66rem !important;
    font-weight: 950;
    border-radius: 9px;
    text-decoration: none;
}

body.ui-modern .tech-invoice-page-disabled,
body:not(.ui-modern) .tech-invoice-page-disabled {
    color: #94a3b8 !important;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
}

body.ui-modern .tech-row-placeholder {
    color: #94a3b8;
    font-weight: 900;
}

body.ui-modern .tech-plate-odo-row,
body:not(.ui-modern) .tech-plate-odo-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

body.ui-modern .tech-vehicle-confirm-grid .tech-plate-odo-row-confirm {
    grid-column: span 2;
}

body.ui-modern .tech-vehicle-confirm-grid > label:first-child {
    grid-column: span 2;
}

body.ui-modern .tech-start-card .tech-vehicle-confirm-card {
    gap: 6px !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    padding: 10px !important;
}

body.ui-modern .tech-start-card .tech-vehicle-confirm-grid {
    gap: 6px !important;
}

body.ui-modern .tech-start-card .tech-vehicle-verify-choice {
    grid-column: span 2;
    width: min(520px, 100%);
    min-height: 148px !important;
    align-content: start;
    gap: 8px !important;
    margin-top: 10px;
    padding: 12px 14px !important;
}

body.ui-modern .tech-yellow-field input,
body:not(.ui-modern) .tech-yellow-field input {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.72), 0 0 0 1px rgba(245, 158, 11, 0.18);
}

body.ui-modern .tech-yellow-field input:focus,
body:not(.ui-modern) .tech-yellow-field input:focus {
    background: #fffbeb !important;
    border-color: #d97706 !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.22);
    outline: none;
}

body.ui-modern .tech-vehicle-verify-choice .tech-plate-odo-row {
    margin-top: 2px;
}

body.ui-modern .tech-vehicle-verify-choice .tech-yellow-field input {
    min-height: 40px !important;
}

body.ui-modern .tech-vehicle-verify-choice .tech-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
}

body.ui-modern .tech-vehicle-verify-choice .tech-card-actions .primary-action,
body.ui-modern .tech-vehicle-verify-choice .tech-card-actions .small-action {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 42px !important;
    padding: 7px 10px !important;
    white-space: nowrap;
}

body.ui-modern .tech-decoded-lock-note,
body:not(.ui-modern) .tech-decoded-lock-note {
    margin: -2px 0 2px;
    padding: 5px 9px;
    color: #334155;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #2563eb;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.12;
}

body.ui-modern .tech-decoded-field input[data-decoded-lock="1"],
body:not(.ui-modern) .tech-decoded-field input[data-decoded-lock="1"] {
    color: #475569 !important;
    background: #e5e7eb !important;
    border-color: #94a3b8 !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.72);
    cursor: not-allowed;
}

body.ui-modern .tech-start-card .tech-decoded-field input[data-decoded-lock="1"] {
    min-height: 34px !important;
    padding: 3px 9px !important;
    font-size: 0.88rem !important;
}

body.ui-modern .tech-work-card .tech-receipt-totals div {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.72), 0 2px 0 rgba(5, 150, 105, 0.28);
}

body.ui-modern .tech-work-card .tech-receipt-totals span {
    color: #047857 !important;
}

body.ui-modern .tech-work-card .tech-receipt-totals strong {
    color: #065f46 !important;
}

body.ui-modern .login-bay-panel .tech-specs-card {
    width: min(1180px, calc((100vw - 72px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 48px) * var(--app-display-inverse, 1));
    overflow: hidden;
    padding: 12px !important;
}

body.ui-modern .tech-specs-card .login-brand {
    gap: 10px;
    margin-bottom: 5px !important;
}

body.ui-modern .tech-specs-card .brand-mark.large {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
}

body.ui-modern .tech-specs-card .tech-brand h1 {
    font-size: 1.16rem;
}

body.ui-modern .tech-specs-card .login-brand p {
    display: none;
}

body.ui-modern .tech-specs-card .tech-nav-row {
    margin: 3px 0 4px !important;
}

body.ui-modern .tech-specs-card .tech-lookup-form {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 8px;
    margin-bottom: 5px;
}

body.ui-modern .tech-specs-card .tech-lookup-form input,
body.ui-modern .tech-specs-card .tech-lookup-form .primary-action {
    min-height: 34px !important;
    padding: 5px 9px !important;
}

body.ui-modern .tech-specs-card .tech-result-grid {
    grid-template-columns: 1fr;
    gap: 0;
}

body.ui-modern .tech-specs-card .tech-result-card {
    min-height: 0 !important;
    padding: 7px 8px !important;
    gap: 4px;
    background: linear-gradient(180deg, #ffffff, #f0fdf4);
    border-color: #86efac;
    border-left: 6px solid #059669;
    box-shadow: inset 0 1px rgba(255,255,255,0.82), 0 2px 0 rgba(5, 150, 105, 0.18);
}

body.ui-modern .tech-specs-card .tech-result-card > strong {
    color: #064e3b;
    font-size: 0.86rem;
}

body.ui-modern .tech-specs-card .tech-result-card > span {
    color: #334155;
    font-size: 0.68rem;
    font-weight: 900;
}

body.ui-modern .tech-specs-card .tech-table {
    table-layout: fixed;
    margin: 2px 0 0 !important;
    overflow: hidden;
    font-size: 0.62rem;
    line-height: 1.04;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}

body.ui-modern .tech-specs-card .tech-spec-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

body.ui-modern .tech-specs-card .tech-spec-columns.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.ui-modern .tech-specs-card .tech-spec-columns.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.ui-modern .tech-specs-card .tech-table th {
    width: 88px;
    color: #047857;
    background: #ecfdf5;
}

body.ui-modern .tech-specs-card .tech-table th,
body.ui-modern .tech-specs-card .tech-table td {
    padding: 2px 3px !important;
}

body.ui-modern .tech-specs-card .tech-table td {
    color: #0f172a;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern .tech-specs-card .tech-table th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    body.ui-modern .tech-work-card .tech-brand-grid,
    body.ui-modern .tech-work-card .tech-section-head-with-action,
    body.ui-modern .tech-work-card .tech-product-pick,
    body.ui-modern .tech-spec-service-card,
    body.ui-modern .tech-history-detail-card .tech-history-picker-grid,
    body.ui-modern .tech-history-detail-grid,
    body.ui-modern .tech-specs-card .tech-lookup-form,
    body.ui-modern .tech-specs-card .tech-spec-columns {
        grid-template-columns: 1fr !important;
    }
}

body.ui-modern .tech-card .tech-touch-nav-row,
body.ui-modern .tech-work-card .tech-touch-nav-row,
body.ui-modern .tech-customer-card .tech-touch-nav-row,
body.ui-modern .tech-specs-card .tech-touch-nav-row {
    display: grid !important;
    grid-template-columns: minmax(154px, auto) minmax(280px, 1fr) minmax(154px, auto);
    align-items: center;
    gap: 12px;
    margin: 8px 0 12px !important;
}

body.ui-modern .tech-nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

body.ui-modern .tech-nav-side-action,
body:not(.ui-modern) .tech-nav-side-action {
    display: flex;
    justify-content: flex-end;
    min-width: 154px;
}

body.ui-modern .tech-flow-focus-pill,
body:not(.ui-modern) .tech-flow-focus-pill {
    display: grid;
    align-content: center;
    justify-items: center;
    justify-self: center;
    width: min(430px, 100%);
    min-height: 64px;
    padding: 9px 28px;
    color: #111827;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,251,235,0.98)),
        radial-gradient(circle at 18% 0%, rgba(239,68,68,0.2), transparent 34%),
        radial-gradient(circle at 82% 100%, rgba(16,185,129,0.18), transparent 38%);
    border: 2px solid #f59e0b;
    border-left: 9px solid #b91c1c;
    border-radius: 18px;
    box-shadow: inset 0 1px rgba(255,255,255,0.82), 0 4px 0 rgba(180,83,9,0.34), 0 14px 28px rgba(15,23,42,0.1);
    text-align: center;
}

body.ui-modern .tech-flow-focus-pill span,
body:not(.ui-modern) .tech-flow-focus-pill span {
    display: block !important;
    margin-bottom: 3px;
    color: #991b1b;
    font-size: 0.68rem;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
}

body.ui-modern .tech-flow-focus-pill strong,
body:not(.ui-modern) .tech-flow-focus-pill strong {
    display: block !important;
    max-width: 100%;
    overflow: hidden;
    color: #0f172a;
    font-size: 1.32rem;
    font-weight: 950;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern .tech-touch-nav-button,
body.ui-modern .tech-nav-row .tech-touch-nav-button,
body.ui-modern .tech-work-card .tech-nav-row .tech-touch-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    min-width: 154px;
    max-width: none;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
    box-shadow: inset 0 1px rgba(255,255,255,0.25), 0 3px 0 rgba(6, 95, 70, 0.75);
}

body.ui-modern .tech-touch-nav-button .app-icon {
    width: 1.12em;
    height: 1.12em;
}

body.ui-modern .tech-work-card .tech-nav-row .tech-touch-nav-button span,
body.ui-modern .tech-touch-nav-button span,
body.ui-modern .tech-clock-status {
    display: inline-flex !important;
}

body.ui-modern .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern .tech-work-card .tech-nav-row .tech-main-menu-pill.tech-touch-nav-button {
    color: #ecfdf5;
    background: linear-gradient(180deg, #059669, #047857);
    border: 1px solid #34d399;
}

body.ui-modern .tech-specs-menu-pill.tech-touch-nav-button,
body.ui-modern button.tech-specs-menu-pill.tech-touch-nav-button:not(.selection-tile):not(.profile-status-tile) {
    color: #064e3b;
    background: linear-gradient(180deg, #ecfdf5, #bbf7d0);
    border: 1px solid #10b981;
    box-shadow: inset 0 1px rgba(255,255,255,0.62), 0 3px 0 rgba(5, 150, 105, 0.38);
}

body.ui-modern .tech-touch-nav-button:hover,
body.ui-modern .tech-touch-nav-button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

body.ui-modern .tech-clock-status {
    min-width: 0;
    color: #525252;
    font-size: 0.94rem;
    font-weight: 850;
    text-align: right;
}

body.ui-modern .tech-card,
body:not(.ui-modern) .tech-card {
    position: relative;
    min-height: min(560px, calc((100vh - 112px) * var(--app-display-inverse, 1)));
}

body.ui-modern .tech-work-card,
body:not(.ui-modern) .tech-work-card {
    min-height: min(610px, calc((100vh - 48px) * var(--app-display-inverse, 1)));
}

body.ui-modern .tech-card-loading,
body:not(.ui-modern) .tech-card-loading {
    position: absolute;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 34%, #ffffff, #f0fdfa 44%, #e2e8f0),
        #ffffff;
    border-radius: inherit;
    backdrop-filter: none;
}

body.ui-modern .tech-card-loading[hidden],
body:not(.ui-modern) .tech-card-loading[hidden] {
    display: none;
}

body.ui-modern .tech-card-loading-panel,
body:not(.ui-modern) .tech-card-loading-panel {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(320px, 90%);
    padding: 20px;
    color: #0f172a;
    background: #ffffff;
    border: 2px solid #f59e0b;
    border-left: 8px solid #b91c1c;
    border-radius: 18px;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18);
    text-align: center;
}

body.ui-modern .tech-card-loading-panel strong,
body:not(.ui-modern) .tech-card-loading-panel strong {
    font-size: 1.1rem;
    font-weight: 950;
}

body.ui-modern .tech-card-loading-panel small,
body:not(.ui-modern) .tech-card-loading-panel small {
    color: #64748b;
    font-weight: 850;
}

body.ui-modern .tech-card.is-tech-navigating,
body:not(.ui-modern) .tech-card.is-tech-navigating,
body.ui-modern .tech-card.is-tech-initializing,
body:not(.ui-modern) .tech-card.is-tech-initializing {
    overflow: hidden !important;
}

body.ui-modern .tech-session-corner,
body:not(.ui-modern) .tech-session-corner {
    position: fixed;
    right: 22px;
    bottom: 14px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: min(360px, calc(100vw - 44px));
    padding: 6px 10px;
    color: rgba(255,255,255,0.86);
    background: rgba(3, 7, 18, 0.72);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.32);
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.44);
}

body.ui-modern .tech-session-corner strong,
body:not(.ui-modern) .tech-session-corner strong {
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 950;
}

body.ui-modern.app-chrome-hidden .tech-top-actions,
body:not(.ui-modern).app-chrome-hidden .tech-top-actions {
    top: calc(12px * var(--app-display-inverse, 1));
    right: calc(18px * var(--app-display-inverse, 1));
}

body.ui-modern.app-chrome-hidden .tech-panel,
body:not(.ui-modern).app-chrome-hidden .tech-panel {
    align-items: start;
    place-items: start center;
    padding-top: calc(112px * var(--app-display-inverse, 1));
    padding-bottom: calc(48px * var(--app-display-inverse, 1));
}

body.ui-modern.app-chrome-hidden .login-bay-panel .tech-card,
body:not(.ui-modern).app-chrome-hidden .login-bay-panel .tech-card {
    max-height: calc((100vh - 152px) * var(--app-display-inverse, 1));
    min-height: min(560px, calc((100vh - 152px) * var(--app-display-inverse, 1)));
}

body.ui-modern.app-chrome-hidden .login-bay-panel .tech-work-card,
body:not(.ui-modern).app-chrome-hidden .login-bay-panel .tech-work-card {
    min-height: min(610px, calc((100vh - 152px) * var(--app-display-inverse, 1)));
    overflow: hidden !important;
}

body.ui-modern.app-chrome-hidden .tech-work-card .login-brand {
    gap: 10px;
    margin-bottom: 50px !important;
}

body.ui-modern.app-chrome-hidden .tech-work-card .brand-mark.large {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-brand h1 {
    font-size: 1.12rem;
}

body.ui-modern.app-chrome-hidden .tech-work-card .login-brand p {
    display: none;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-touch-nav-row {
    margin: 0 0 12px !important;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-flow-focus-pill {
    min-height: 54px;
    padding: 6px 22px;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-flow-focus-pill strong {
    font-size: 1.14rem;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-stepper {
    margin: 10px 0 12px !important;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-section-head {
    gap: 1px;
    margin: 8px 0 10px !important;
    padding: 5px 10px !important;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-section-head strong {
    font-size: 0.92rem;
    line-height: 1.05;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-section-head span {
    font-size: 0.74rem;
    line-height: 1.05;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-brand-grid {
    gap: 10px;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-compact-choice {
    align-content: center;
    gap: 2px;
    min-height: 60px !important;
    padding: 4px 8px !important;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-compact-choice strong {
    font-size: 0.86rem;
    line-height: 1.05;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-compact-choice span,
body.ui-modern.app-chrome-hidden .tech-work-card .tech-compact-choice small {
    font-size: 0.68rem;
    line-height: 1.08;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-pager {
    margin-top: 10px !important;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-wizard-actions {
    margin-top: 8px !important;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-pager .small-action,
body.ui-modern.app-chrome-hidden .tech-work-card .tech-wizard-actions .small-action,
body.ui-modern.app-chrome-hidden .tech-work-card .tech-wizard-actions .primary-action {
    min-height: 38px !important;
    padding: 6px 12px !important;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-invoice-review-paged + .tech-wizard-actions {
    margin-top: 6px !important;
}

body.ui-modern.app-chrome-hidden .tech-work-card .tech-invoice-review-paged + .tech-wizard-actions .small-action,
body.ui-modern.app-chrome-hidden .tech-work-card .tech-invoice-review-paged + .tech-wizard-actions .primary-action {
    min-height: 34px !important;
    padding: 5px 12px !important;
}

body.ui-modern .tech-customer-card .tech-touch-nav-row,
body.ui-modern .tech-history-detail-card .tech-touch-nav-row {
    margin: 2px 0 6px !important;
}

body.ui-modern .tech-spec-action-row,
body:not(.ui-modern) .tech-spec-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

body.ui-modern .tech-spec-action-row .primary-action,
body.ui-modern .tech-spec-action-row .small-action,
body:not(.ui-modern) .tech-spec-action-row .primary-action,
body:not(.ui-modern) .tech-spec-action-row .small-action {
    min-height: 54px;
    max-width: none;
    text-decoration: none;
}

body.ui-modern .tech-spec-history-action.disabled,
body:not(.ui-modern) .tech-spec-history-action.disabled {
    color: #64748b;
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: inset 0 1px rgba(255,255,255,0.72);
    cursor: default;
}

body.ui-modern .tech-open-card {
    padding: 18px !important;
}

body.ui-modern .tech-open-card .login-brand {
    margin-bottom: 8px !important;
}

body.ui-modern .tech-open-card .brand-mark.large {
    width: 50px;
    height: 50px;
    font-size: 1rem;
}

body.ui-modern .tech-open-card .tech-brand h1 {
    font-size: 1.32rem;
}

body.ui-modern .tech-open-card .tech-brand p {
    margin-top: 2px;
}

body.ui-modern .tech-open-card .tech-touch-nav-row {
    margin: 4px 0 8px !important;
}

body.ui-modern .tech-open-card .tech-lookup-form {
    margin: 8px 0 10px !important;
}

body.ui-modern .tech-open-card .tech-lookup-form input,
body.ui-modern .tech-open-card .tech-lookup-form .primary-action {
    min-height: 48px !important;
    padding: 8px 12px !important;
}

body.ui-modern .tech-open-card .tech-section-head.compact {
    margin: 6px 0 !important;
    padding: 7px 10px !important;
    min-height: 0;
}

body.ui-modern .tech-open-card .tech-result-grid {
    gap: 8px;
}

body.ui-modern .tech-open-card .tech-result-card {
    min-height: 72px;
    padding: 9px 11px;
}

body.ui-modern .tech-open-card .tech-result-card strong {
    font-size: 0.96rem;
}

body.ui-modern .tech-open-card .tech-result-card span,
body.ui-modern .tech-open-card .tech-result-card small {
    font-size: 0.76rem;
}

body.ui-modern .tech-vehicle-specs-backdrop {
    z-index: 14000;
    display: grid;
    place-items: center;
    padding: 22px;
}

body.ui-modern .tech-vehicle-specs-modal {
    width: min(1040px, calc(100vw - 56px));
    max-height: calc(100vh - 56px);
}

body:not(.ui-modern) .tech-touch-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body:not(.ui-modern) .tech-nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body:not(.ui-modern) .tech-touch-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 154px;
    min-height: 52px;
    padding: 0 18px;
    color: #ecfdf5;
    background: linear-gradient(180deg, #047857, #065f46);
    border: 1px solid #10b981;
    border-radius: 999px;
    font-weight: 950;
    text-decoration: none;
}

body:not(.ui-modern) .tech-specs-menu-pill.tech-touch-nav-button {
    color: #064e3b;
    background: linear-gradient(180deg, #ecfdf5, #bbf7d0);
}

@media (max-width: 760px) {
    body.ui-modern .tech-card .tech-touch-nav-row,
    body.ui-modern .tech-work-card .tech-touch-nav-row,
    body.ui-modern .tech-customer-card .tech-touch-nav-row,
    body.ui-modern .tech-specs-card .tech-touch-nav-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    body.ui-modern .tech-nav-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.ui-modern .tech-touch-nav-button,
    body.ui-modern .tech-nav-row .tech-touch-nav-button,
    body.ui-modern .tech-work-card .tech-nav-row .tech-touch-nav-button {
        width: 100%;
        min-width: 0;
    }

    body.ui-modern .tech-flow-focus-pill,
    body:not(.ui-modern) .tech-flow-focus-pill {
        width: 100%;
        min-width: 0;
    }

    body.ui-modern .tech-nav-side-action,
    body:not(.ui-modern) .tech-nav-side-action {
        justify-content: stretch;
        min-width: 0;
    }

    body.ui-modern .tech-spec-action-row,
    body:not(.ui-modern) .tech-spec-action-row {
        grid-template-columns: 1fr;
    }

    body.ui-modern .tech-clock-status {
        text-align: left;
    }
}

body:not(.tech-v2) .tech-top-metrics {
    position: fixed;
    top: 18px;
    left: 22px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 560px);
    padding: 8px;
    color: #dbeafe;
    background: rgba(3, 7, 18, 0.72);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(0,0,0,0.28);
}

body:not(.tech-v2) .tech-top-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    padding: 5px 8px;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
}

body:not(.tech-v2) .tech-top-metrics strong {
    color: #ffffff;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-main-menu-pill,
body.ui-modern:not(.tech-v2) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-nav-row .tech-main-menu-pill.tech-touch-nav-button {
    background: linear-gradient(180deg, #0f766e, #134e4a);
    border-color: #2dd4bf;
    box-shadow: inset 0 1px rgba(255,255,255,0.26), 0 2px 0 #042f2e, 0 14px 26px rgba(15, 118, 110, 0.18);
}

body:not(.tech-v2) .tech-menu-card .login-bay-grid.tech-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not(.tech-v2) .tech-menu-card .tech-menu-choice,
body:not(.tech-v2) .tech-menu-card button.tech-menu-choice,
body:not(.tech-v2) .tech-menu-card a.tech-menu-choice {
    min-height: 78px !important;
    padding: 10px 12px !important;
}

body:not(.tech-v2) .tech-menu-card .tech-menu-choice.success .tech-v2-tile-icon,
body:not(.tech-v2) .tech-menu-card button.tech-menu-choice.success .tech-v2-tile-icon,
body:not(.tech-v2) .tech-menu-card .tech-menu-choice.clocked-in .tech-v2-tile-icon {
    color: #ffffff !important;
}

body:not(.tech-v2) .tech-menu-card .tech-menu-choice.success .tech-v2-tile-icon .app-icon,
body:not(.tech-v2) .tech-menu-card button.tech-menu-choice.success .tech-v2-tile-icon .app-icon,
body:not(.tech-v2) .tech-menu-card .tech-menu-choice.clocked-in .tech-v2-tile-icon .app-icon {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

body.ui-modern:not(.tech-v2) .tech-selected-customer {
    grid-template-columns: 38px minmax(0, 1fr) 118px 42px 42px !important;
}

body.ui-modern:not(.tech-v2) .tech-selected-customer .tech-selection-reward,
body.ui-modern:not(.tech-v2) .tech-selected-customer .tech-selection-edit,
body.ui-modern:not(.tech-v2) .tech-selected-customer .tech-selection-clear {
    align-self: center;
}

body.ui-modern:not(.tech-v2) .tech-selection-reward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 112px;
    height: 42px;
    padding: 0 10px;
    color: #065f46;
    font-size: 0.82rem;
    font-weight: 950;
    background: linear-gradient(180deg, #ecfdf5, #d1fae5);
    border: 1px solid #5eead4;
    border-radius: 13px;
    box-shadow: inset 0 1px rgba(255,255,255,0.86), 0 2px 0 #5bbdaf;
    cursor: pointer;
}

body.ui-modern:not(.tech-v2) .tech-selection-reward:hover,
body.ui-modern:not(.tech-v2) .tech-selection-reward:focus-visible {
    color: #ffffff;
    background: linear-gradient(180deg, #0f766e, #134e4a);
    outline: none;
}

body.ui-modern:not(.tech-v2) .tech-rewards-modal {
    width: min(1040px, calc(100vw - 70px));
    max-height: min(680px, calc(100vh - 70px));
}

body.ui-modern:not(.tech-v2) .tech-reward-panel-modal {
    margin: 0;
    max-height: calc(100vh - 210px);
    overflow: auto;
}

body.ui-modern:not(.tech-v2) .tech-reward-active-list {
    display: grid;
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-reward-remove-form {
    margin: 0;
}

body.ui-modern:not(.tech-v2) .tech-reward-modal-subhead {
    margin-top: 4px;
}

body.ui-modern:not(.tech-v2) .tech-aux-card {
    padding: 18px !important;
}

body.ui-modern:not(.tech-v2) .tech-aux-workflow {
    display: grid;
    gap: 12px;
}

body.ui-modern:not(.tech-v2) .tech-aux-hero,
body.ui-modern:not(.tech-v2) .tech-aux-found-card,
body.ui-modern:not(.tech-v2) .tech-aux-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #ffffff, #f3f8fb);
    border: 1px solid #bfd0e3;
    border-left: 7px solid #c91f28;
    border-radius: 15px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #9aaabc;
}

body.ui-modern:not(.tech-v2) .tech-aux-hero span,
body.ui-modern:not(.tech-v2) .tech-aux-found-card span {
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-aux-hero strong,
body.ui-modern:not(.tech-v2) .tech-aux-found-card strong,
body.ui-modern:not(.tech-v2) .tech-aux-help strong {
    display: block;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1.05;
}

body.ui-modern:not(.tech-v2) .tech-aux-hero small,
body.ui-modern:not(.tech-v2) .tech-aux-found-card small,
body.ui-modern:not(.tech-v2) .tech-aux-help span {
    color: #64748b;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-aux-lookup-form {
    margin: 0;
}

body.ui-modern:not(.tech-v2) .tech-aux-card-grid,
body.ui-modern:not(.tech-v2) .tech-aux-stock-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-aux-action-card,
body.ui-modern:not(.tech-v2) .tech-aux-stock-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 86px;
    padding: 11px 12px;
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    border: 1px solid #bfd0e3;
    border-left: 6px solid #c91f28;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #9aaabc;
}

body.ui-modern:not(.tech-v2) .tech-aux-action-card .tech-v2-tile-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: linear-gradient(180deg, #c91f28, #8f1018);
    border-radius: 12px;
}

body.ui-modern:not(.tech-v2) .tech-aux-action-card strong,
body.ui-modern:not(.tech-v2) .tech-aux-stock-card strong {
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 950;
    line-height: 1.08;
}

body.ui-modern:not(.tech-v2) .tech-aux-action-card small,
body.ui-modern:not(.tech-v2) .tech-aux-stock-card span,
body.ui-modern:not(.tech-v2) .tech-aux-stock-card small {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.15;
}

body.ui-modern:not(.tech-v2) .tech-aux-results,
body.ui-modern:not(.tech-v2) .tech-aux-stock-panel {
    display: grid;
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-aux-result-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body.ui-modern:not(.tech-v2) .tech-aux-stock-card {
    grid-template-columns: minmax(0, 1fr);
}

body.ui-modern:not(.tech-v2) .tech-parts-fitments-panel {
    display: grid;
    gap: 9px;
}

body.ui-modern:not(.tech-v2) .tech-parts-fitments-head {
    align-items: center;
}

body.ui-modern:not(.tech-v2) .tech-fitment-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

body.ui-modern:not(.tech-v2) .tech-fitment-category-card {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    gap: 3px;
    min-width: 0;
    min-height: 92px;
    padding: 10px 12px;
    text-align: left;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    color: #0f172a;
    background: linear-gradient(180deg, #ffffff, #f2f7fb);
    border: 1px solid #bfd0e3;
    border-left: 7px solid #c91f28;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #9aaabc;
}

body.ui-modern:not(.tech-v2) .tech-fitment-category-card.has-matches,
body.ui-modern:not(.tech-v2) .tech-fitment-category-card.is-service {
    border-left-color: #008d73;
}

body.ui-modern:not(.tech-v2) .tech-fitment-category-card.is-oil {
    border-left-color: #f59e0b;
}

body.ui-modern:not(.tech-v2) .tech-fitment-category-card.is-active {
    border-color: #facc15;
    border-left-color: #c91f28;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.34), inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #9aaabc;
}

body.ui-modern:not(.tech-v2) .tech-fitment-category-card span {
    color: #00796b;
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-fitment-category-card strong {
    min-width: 0;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 950;
    line-height: 1.05;
}

body.ui-modern:not(.tech-v2) .tech-fitment-category-card small {
    min-width: 0;
    color: #526276;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.14;
}

body.ui-modern:not(.tech-v2) .tech-fitment-category-card em {
    justify-self: start;
    max-width: 100%;
    padding: 3px 7px;
    color: #0f172a;
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(148, 163, 184, 0.58);
    border-radius: 999px;
    font-size: 0.64rem;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
}

body.ui-modern:not(.tech-v2) .tech-fitment-category-card:focus-visible {
    outline: 3px solid #facc15;
    outline-offset: 2px;
}

body.ui-modern:not(.tech-v2) .tech-fitments-modal {
    width: min(1180px, calc(100vw - 54px));
    max-height: min(720px, calc(100vh - 54px));
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
    overflow: hidden;
}

body.ui-modern:not(.tech-v2) .tech-fitments-modal-heading {
    margin: 0;
}

body.ui-modern:not(.tech-v2) .tech-fitment-modal-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #d7e3f1;
    border-radius: 13px;
}

body.ui-modern:not(.tech-v2) .tech-fitment-modal-summary strong {
    color: #111827;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-fitment-modal-summary span {
    color: #64748b;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-fitment-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: 0;
    overflow: auto;
    padding: 2px 4px 6px 0;
}

body.ui-modern:not(.tech-v2) .tech-fitment-product-card {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 11px 12px;
    background: linear-gradient(180deg, #ffffff, #f3f8fb);
    border: 1px solid #bfd0e3;
    border-left: 7px solid #c91f28;
    border-radius: 13px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #9aaabc;
}

body.ui-modern:not(.tech-v2) .tech-fitment-product-card.has-stock {
    border-left-color: #008d73;
}

body.ui-modern:not(.tech-v2) .tech-fitment-product-card strong {
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 950;
    line-height: 1.08;
}

body.ui-modern:not(.tech-v2) .tech-fitment-product-card span,
body.ui-modern:not(.tech-v2) .tech-fitment-product-card small {
    color: #5b6b80;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.18;
}

body.ui-modern:not(.tech-v2) .tech-fitment-service-detail {
    display: grid;
    gap: 12px;
    min-height: 0;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff, #f2f7fb);
    border: 1px solid #bfd0e3;
    border-left: 7px solid #008d73;
    border-radius: 15px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #9aaabc;
}

body.ui-modern:not(.tech-v2) .tech-fitment-service-detail strong {
    color: #0f172a;
    font-size: 1.18rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-fitment-service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

body.ui-modern:not(.tech-v2) .tech-fitment-service-list span {
    padding: 10px 11px;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #d7e3f1;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-tpms-service-action {
    gap: 8px;
    color: #ffffff !important;
}

body.ui-modern:not(.tech-v2) .tech-tpms-service-action span {
    color: #ffffff !important;
}

body.ui-modern:not(.tech-v2) .tech-tpms-service-action .app-icon {
    width: 20px;
    height: 20px;
    color: #ffffff !important;
}

body.ui-modern:not(.tech-v2) .tech-tpms-service-panel {
    display: grid;
    gap: 8px;
    min-height: 0;
}

body.ui-modern:not(.tech-v2) .tech-tpms-service-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    min-height: 42px;
    padding: 6px 10px;
}

body.ui-modern:not(.tech-v2) .tech-tpms-service-head .small-action {
    min-width: 124px;
    min-height: 38px;
    padding: 7px 11px;
}

body.ui-modern:not(.tech-v2) .tech-tpms-service-body {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.45fr);
    gap: 8px;
    min-height: 0;
}

body.ui-modern:not(.tech-v2) .tech-tpms-diagram-card,
body.ui-modern:not(.tech-v2) .tech-tpms-check-card {
    min-width: 0;
    background: linear-gradient(180deg, #ffffff, #f3f8fb);
    border: 1px solid #bfd0e3;
    border-radius: 15px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #9aaabc;
}

body.ui-modern:not(.tech-v2) .tech-tpms-diagram-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 3px;
    padding: 6px 8px;
}

body.ui-modern:not(.tech-v2) .tech-tpms-direction {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-tpms-map {
    position: relative;
    min-height: 144px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(20, 184, 166, 0.09), transparent 46%),
        linear-gradient(180deg, #f8fafc, #eef6fb);
    border: 1px solid #d8e3ef;
    border-radius: 18px;
}

body.ui-modern:not(.tech-v2) .tech-tpms-map::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 22%;
    bottom: 18px;
    left: 22%;
    background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(226,232,240,0.62));
    border: 5px solid #cbd5e1;
    border-radius: 44px;
}

body.ui-modern:not(.tech-v2) .tech-tpms-vehicle-core {
    position: absolute;
    z-index: 2;
    top: 47px;
    right: 36%;
    bottom: 47px;
    left: 36%;
    display: grid;
    align-content: center;
    place-items: center;
    gap: 2px;
    padding: 8px;
    color: #0f172a;
    text-align: center;
    background: #ffffff;
    border: 2px solid #0f766e;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

body.ui-modern:not(.tech-v2) .tech-tpms-vehicle-core strong,
body.ui-modern:not(.tech-v2) .tech-tpms-vehicle-core span,
body.ui-modern:not(.tech-v2) .tech-tpms-vehicle-core small {
    display: block;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-tpms-vehicle-core strong {
    font-size: 0.86rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-tpms-vehicle-core span,
body.ui-modern:not(.tech-v2) .tech-tpms-vehicle-core small {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-tpms-wheel {
    position: absolute;
    z-index: 3;
    display: grid;
    align-content: center;
    gap: 1px;
    width: 146px;
    min-height: 46px;
    padding: 5px 8px;
    background: linear-gradient(180deg, #111827, #020617);
    border: 3px solid #334155;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

body.ui-modern:not(.tech-v2) .tech-tpms-wheel span {
    color: #cbd5e1;
    font-size: 0.64rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-tpms-wheel strong {
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 950;
    line-height: 1;
}

body.ui-modern:not(.tech-v2) .tech-tpms-wheel small {
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 850;
}

body.ui-modern:not(.tech-v2) .tech-tpms-wheel-front-left {
    top: 7px;
    left: 12px;
}

body.ui-modern:not(.tech-v2) .tech-tpms-wheel-front-right {
    top: 7px;
    right: 12px;
}

body.ui-modern:not(.tech-v2) .tech-tpms-wheel-rear-left {
    bottom: 7px;
    left: 12px;
}

body.ui-modern:not(.tech-v2) .tech-tpms-wheel-rear-right {
    right: 12px;
    bottom: 7px;
}

body.ui-modern:not(.tech-v2) .tech-tpms-check-card {
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 8px;
    border-left: 7px solid #0f766e;
}

body.ui-modern:not(.tech-v2) .tech-tpms-check-card span {
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-tpms-check-card strong {
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1.05;
}

body.ui-modern:not(.tech-v2) .tech-tpms-check-card div {
    display: grid;
    gap: 6px;
}

body.ui-modern:not(.tech-v2) .tech-tpms-check-card small {
    padding: 5px 7px;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.1;
    background: #ffffff;
    border: 1px solid #d8e3ef;
    border-radius: 10px;
}

@media (min-width: 760px) {
    body.ui-modern:not(.tech-v2) .tech-tpms-service-body {
        grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.45fr);
    }
}

body.ui-modern:not(.tech-v2) .tech-eod-dashboard {
    display: grid;
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-eod-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid #bfd0e3;
    border-left: 7px solid #0f766e;
    border-radius: 15px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #9aaabc;
}

body.ui-modern:not(.tech-v2) .tech-eod-hero span,
body.ui-modern:not(.tech-v2) .tech-eod-metric-grid span {
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-eod-hero strong {
    display: block;
    color: #0f172a;
    font-size: 1.22rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-eod-hero small,
body.ui-modern:not(.tech-v2) .tech-eod-metric-grid small {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-eod-metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-eod-metric-grid div {
    display: grid;
    gap: 3px;
    min-height: 76px;
    padding: 9px 10px;
    background: linear-gradient(180deg, #ffffff, #f3f8fb);
    border: 1px solid #bfd0e3;
    border-radius: 13px;
}

body.ui-modern:not(.tech-v2) .tech-eod-metric-grid strong {
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-eod-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-eod-panel {
    padding: 9px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
}

body.ui-modern:not(.tech-v2) .tech-eod-table {
    font-size: 0.78rem;
}

body.ui-modern:not(.tech-v2) .tech-eod-table th,
body.ui-modern:not(.tech-v2) .tech-eod-table td {
    padding: 4px 6px;
}

.tech-eod-print-report {
    width: 8.27in;
    min-height: 11.69in;
    padding: 0.32in;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8.6pt;
}

.tech-eod-print-report header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 2px solid #111827;
}

.tech-eod-print-report header strong {
    font-size: 13pt;
}

.tech-eod-print-report p {
    margin: 0 0 7px;
}

.tech-eod-print-report h3 {
    margin: 8px 0 4px;
    font-size: 9.4pt;
}

.tech-eod-print-report table {
    width: 100%;
    border-collapse: collapse;
    page-break-inside: avoid;
}

.tech-eod-print-report th,
.tech-eod-print-report td {
    padding: 3px 4px;
    border: 1px solid #cbd5e1;
    text-align: left;
    vertical-align: top;
}

.tech-eod-print-report th {
    background: #eef2f7;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0.25in;
    }

    body.printing-daily-report .tech-eod-print-report {
        position: absolute;
        inset: 0 auto auto 0;
        display: block !important;
        width: 8.27in;
        min-height: 11.69in;
        padding: 0.22in;
        font-size: 8pt;
    }

    body.printing-daily-report .tech-eod-print-report h3 {
        margin: 6px 0 3px;
        font-size: 8.8pt;
    }

    body.printing-daily-report .tech-eod-print-report th,
    body.printing-daily-report .tech-eod-print-report td {
        padding: 2.5px 3px;
    }
}

@media (max-width: 1280px) {
    body:not(.tech-v2) .tech-top-metrics {
        max-width: calc(100vw - 500px);
        gap: 5px;
    }

    body:not(.tech-v2) .tech-top-metrics span {
        font-size: 0.72rem;
        padding: 4px 6px;
    }

    body.ui-modern:not(.tech-v2) .tech-aux-card-grid,
    body.ui-modern:not(.tech-v2) .tech-aux-stock-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.ui-modern:not(.tech-v2) .tech-eod-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

body.ui-modern:not(.tech-v2) .tech-aux-card .login-brand,
body.ui-modern:not(.tech-v2) .tech-eod-card .login-brand {
    gap: 10px;
    margin-bottom: 6px !important;
}

body.ui-modern:not(.tech-v2) .tech-aux-card .brand-mark.large,
body.ui-modern:not(.tech-v2) .tech-eod-card .brand-mark.large {
    width: 46px;
    height: 46px;
    font-size: 1rem;
}

body.ui-modern:not(.tech-v2) .tech-aux-card .tech-brand h1,
body.ui-modern:not(.tech-v2) .tech-eod-card .tech-brand h1 {
    font-size: 1.26rem;
}

body.ui-modern:not(.tech-v2) .tech-aux-card .login-brand p,
body.ui-modern:not(.tech-v2) .tech-eod-card .login-brand p {
    display: none;
}

body.ui-modern:not(.tech-v2) .tech-aux-card .tech-nav-row,
body.ui-modern:not(.tech-v2) .tech-eod-card .tech-nav-row {
    margin: 4px 0 7px !important;
}

body.ui-modern:not(.tech-v2) .tech-aux-card .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-eod-card .tech-touch-nav-button {
    min-height: 46px !important;
    padding: 8px 14px !important;
}

body.ui-modern:not(.tech-v2) .tech-aux-card .tech-flow-focus-pill,
body.ui-modern:not(.tech-v2) .tech-eod-card .tech-flow-focus-pill {
    min-height: 46px;
    padding: 7px 16px;
}

body.ui-modern:not(.tech-v2) .tech-aux-card .tech-flow-focus-pill strong,
body.ui-modern:not(.tech-v2) .tech-eod-card .tech-flow-focus-pill strong {
    font-size: 1rem;
}

body.ui-modern:not(.tech-v2) .tech-aux-workflow {
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-aux-hero,
body.ui-modern:not(.tech-v2) .tech-aux-help {
    min-height: 44px;
    padding: 6px 10px;
}

body.ui-modern:not(.tech-v2) .tech-aux-hero strong,
body.ui-modern:not(.tech-v2) .tech-aux-help strong {
    font-size: 0.98rem;
}

body.ui-modern:not(.tech-v2) .tech-aux-hero small,
body.ui-modern:not(.tech-v2) .tech-aux-help span {
    font-size: 0.68rem;
    line-height: 1.12;
}

body.ui-modern:not(.tech-v2) .tech-aux-workflow.has-lookup .tech-aux-card-grid {
    display: none;
}

body.ui-modern:not(.tech-v2) .tech-aux-workflow.has-lookup .tech-aux-hero {
    display: none;
}

body.ui-modern:not(.tech-v2) .tech-aux-workflow.has-lookup .tech-aux-results {
    gap: 6px;
}

body.ui-modern:not(.tech-v2) .tech-aux-workflow.has-lookup .tech-section-head {
    min-height: 40px;
    padding: 5px 7px;
}

body.ui-modern:not(.tech-v2) .tech-aux-workflow.has-lookup .tech-section-head strong {
    font-size: 0.86rem;
}

body.ui-modern:not(.tech-v2) .tech-aux-workflow.has-lookup .tech-section-head span {
    font-size: 0.62rem;
}

body.ui-modern:not(.tech-v2) .tech-aux-workflow.has-lookup .tech-aux-stock-card {
    min-height: 58px;
    padding: 7px 9px;
}

body.ui-modern:not(.tech-v2) .tech-aux-workflow.has-lookup .tech-aux-stock-card strong {
    font-size: 0.84rem;
}

body.ui-modern:not(.tech-v2) .tech-aux-workflow.has-lookup .tech-aux-stock-card span,
body.ui-modern:not(.tech-v2) .tech-aux-workflow.has-lookup .tech-aux-stock-card small {
    font-size: 0.66rem;
}

body.ui-modern:not(.tech-v2) .tech-aux-lookup-form input,
body.ui-modern:not(.tech-v2) .tech-aux-lookup-form .primary-action {
    min-height: 50px;
    padding-top: 8px;
    padding-bottom: 8px;
}

body.ui-modern:not(.tech-v2) .tech-aux-action-card {
    min-height: 74px;
    padding: 9px 10px;
}

body.ui-modern:not(.tech-v2) .tech-aux-action-card .tech-v2-tile-icon {
    width: 40px;
    height: 40px;
}

body.ui-modern:not(.tech-v2) .tech-aux-action-card strong {
    font-size: 0.9rem;
}

body.ui-modern:not(.tech-v2) .tech-aux-action-card small {
    font-size: 0.7rem;
}

body.ui-modern:not(.tech-v2) .tech-eod-dashboard {
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-eod-hero {
    min-height: 52px;
    padding: 6px 10px;
}

body.ui-modern:not(.tech-v2) .tech-eod-hero strong {
    font-size: 1.02rem;
}

body.ui-modern:not(.tech-v2) .tech-eod-metric-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

body.ui-modern:not(.tech-v2) .tech-eod-metric-grid div {
    min-height: 52px;
    padding: 6px 7px;
}

body.ui-modern:not(.tech-v2) .tech-eod-metric-grid strong {
    font-size: 0.94rem;
}

body.ui-modern:not(.tech-v2) .tech-eod-metric-grid small {
    font-size: 0.64rem;
    line-height: 1.05;
}

body.ui-modern:not(.tech-v2) .tech-eod-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-eod-panel {
    padding: 6px;
}

body.ui-modern:not(.tech-v2) .tech-eod-panel .tech-section-head {
    min-height: 38px;
    padding: 5px 7px;
}

body.ui-modern:not(.tech-v2) .tech-eod-panel .tech-section-head strong {
    font-size: 0.84rem;
}

body.ui-modern:not(.tech-v2) .tech-eod-panel .tech-section-head span {
    font-size: 0.62rem;
}

body.ui-modern:not(.tech-v2) .tech-eod-table {
    font-size: 0.66rem;
}

body.ui-modern:not(.tech-v2) .tech-eod-table th,
body.ui-modern:not(.tech-v2) .tech-eod-table td {
    padding: 1px 3px;
}

body.ui-modern:not(.tech-v2) .tech-eod-panel tbody tr:nth-child(n+4) {
    display: none;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selection-stack {
    gap: 6px;
    margin: 4px 0 6px;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selected-card {
    min-height: 54px;
    padding: 6px 8px;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selected-icon,
body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selection-clear,
body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selection-edit,
body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selection-reward {
    height: 36px;
    min-height: 36px !important;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selected-icon,
body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selection-edit,
body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selection-clear {
    width: 36px;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selection-reward {
    min-width: 104px;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-history-subhead {
    min-height: 36px !important;
    padding: 5px 7px;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-history-subhead strong {
    font-size: 0.86rem;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-history-subhead span {
    font-size: 0.62rem;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-history-picker-grid {
    gap: 6px;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-history-picker-grid .tech-result-card {
    min-height: 56px !important;
    padding: 6px 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-history-picker-grid .tech-result-card strong {
    font-size: 0.86rem;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-history-picker-grid .tech-result-card span,
body.ui-modern:not(.tech-v2) .tech-customer-card .tech-history-picker-grid .tech-result-card small {
    font-size: 0.66rem;
    line-height: 1.08;
}

@media (min-width: 1101px) and (max-width: 1280px) {
    body.ui-modern:not(.tech-v2) .tech-aux-card-grid,
    body.ui-modern:not(.tech-v2) .tech-aux-stock-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

body.tech-v2.app-chrome-hidden {
    background:
        linear-gradient(135deg, rgba(185, 28, 28, 0.12), transparent 28%),
        linear-gradient(315deg, rgba(16, 185, 129, 0.10), transparent 24%),
        #111827;
}

body.tech-v2 .tech-top-actions {
    top: 22px;
    right: 28px;
    gap: 10px;
}

body.tech-v2 .tech-top-actions .command-button {
    min-height: 54px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

body.tech-v2 .tech-ui-toggle {
    color: #ecfdf5;
    background: linear-gradient(180deg, #047857, #065f46);
    border-color: #10b981;
}

body.tech-v2 .tech-ui-toggle kbd {
    margin-left: 8px;
    color: #064e3b;
    background: #d1fae5;
}

body.tech-v2 .login-bay-panel.tech-panel {
    padding: 86px 24px 44px;
}

body.tech-v2 .login-bay-panel .tech-card {
    width: min(1240px, calc((100vw - 72px) * var(--app-display-inverse, 1)));
    min-height: min(675px, calc((100vh - 118px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 118px) * var(--app-display-inverse, 1));
    padding: 22px !important;
    color: #111827;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

body.tech-v2.ui-modern.app-chrome-hidden .login-bay-panel .tech-work-card,
body.tech-v2.app-chrome-hidden .login-bay-panel .tech-work-card {
    min-height: min(675px, calc((100vh - 118px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 118px) * var(--app-display-inverse, 1));
}

body.tech-v2 .tech-card .login-brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 16px !important;
}

body.tech-v2 .tech-card .brand-mark.large {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(185, 28, 28, 0.24);
}

body.tech-v2 .tech-card .tech-brand h1 {
    color: #0f172a;
    font-size: 1.55rem;
    line-height: 1.05;
}

body.tech-v2 .tech-card .tech-brand p {
    color: #64748b;
    font-size: 1rem;
    font-weight: 800;
}

body.tech-v2 .tech-touch-nav-row {
    display: grid !important;
    grid-template-columns: 190px minmax(260px, 1fr) 190px;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px !important;
}

body.tech-v2 .tech-nav-actions,
body.tech-v2 .tech-nav-side-action {
    min-width: 0;
}

body.tech-v2 .tech-touch-nav-button,
body.tech-v2 .tech-main-menu-pill,
body.tech-v2 .tech-specs-menu-pill {
    min-width: 0;
    width: 100%;
    min-height: 58px;
    border-radius: 8px;
    font-size: 0.98rem;
}

body.tech-v2 .tech-flow-focus-pill {
    min-height: 58px;
    padding: 8px 22px;
    color: #064e3b;
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-left: 8px solid #10b981;
    border-radius: 8px;
    box-shadow: none;
}

body.tech-v2 .tech-flow-focus-pill span {
    color: #047857;
    font-size: 0.72rem;
    letter-spacing: 0;
}

body.tech-v2 .tech-flow-focus-pill strong {
    color: #0f172a;
    font-size: 1.25rem;
}

body.tech-v2 .tech-status-strip,
body.tech-v2 .tech-eod-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

body.tech-v2 .tech-status-strip div,
body.tech-v2 .tech-eod-metric-grid div {
    min-height: 86px;
    padding: 14px 16px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-left: 7px solid #b91c1c;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

body.tech-v2 .tech-status-strip span,
body.tech-v2 .tech-eod-metric-grid span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.tech-v2 .tech-status-strip strong,
body.tech-v2 .tech-eod-metric-grid strong {
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1.05;
}

body.tech-v2 .tech-eod-metric-grid small {
    color: #64748b;
    font-weight: 850;
}

body.tech-v2 .tech-action-grid,
body.tech-v2 .tech-compact-grid,
body.tech-v2 .tech-result-grid {
    gap: 14px;
}

body.tech-v2 .tech-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.tech-v2 .tech-menu-choice,
body.tech-v2 .tech-compact-choice,
body.tech-v2 .tech-result-card {
    min-height: 116px;
    padding: 18px 20px;
    color: #0f172a;
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    border: 1px solid #cbd5e1;
    border-left: 8px solid #b91c1c;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

body.tech-v2 .tech-menu-choice:hover,
body.tech-v2 .tech-compact-choice:hover,
body.tech-v2 .tech-result-card:hover,
body.tech-v2 .tech-menu-choice:focus-visible,
body.tech-v2 .tech-compact-choice:focus-visible,
body.tech-v2 .tech-result-card:focus-visible {
    transform: translateY(-1px);
    border-color: #94a3b8;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

body.tech-v2 .tech-menu-choice strong,
body.tech-v2 .tech-compact-choice strong,
body.tech-v2 .tech-result-card strong {
    color: #0f172a;
    font-size: 1.2rem;
}

body.tech-v2 .tech-menu-choice span,
body.tech-v2 .tech-menu-choice small,
body.tech-v2 .tech-compact-choice span,
body.tech-v2 .tech-compact-choice small,
body.tech-v2 .tech-result-card span,
body.tech-v2 .tech-result-card small {
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 850;
}

body.tech-v2 .tech-menu-choice.success,
body.tech-v2 button.tech-menu-choice.success {
    border-left-color: #10b981;
    background: linear-gradient(180deg, #ffffff, #ecfdf5);
}

body.tech-v2 .tech-compact-choice.has-stock,
body.tech-v2 .tech-product-pick.has-stock {
    border-left-color: #10b981;
    background: linear-gradient(180deg, #ffffff, #ecfdf5);
}

body.tech-v2 .tech-lookup-form,
body.tech-v2 .tech-part-search-form {
    align-items: end;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
}

body.tech-v2 .tech-lookup-form label,
body.tech-v2 .tech-form-card label,
body.tech-v2 .tech-part-search-form label {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 950;
}

body.tech-v2 input,
body.tech-v2 select,
body.tech-v2 textarea {
    min-height: 54px;
    border-radius: 8px;
    font-size: 1.08rem;
}

body.tech-v2 .primary-action,
body.tech-v2 .small-action,
body.tech-v2 button:not(.selection-tile):not(.profile-status-tile) {
    min-height: 52px;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 950;
}

body.tech-v2 .tech-stepper {
    gap: 10px;
    margin: 10px 0 16px !important;
}

body.tech-v2 .tech-stepper li {
    min-height: 52px !important;
    background: #ffffff;
    border-color: #dbe3ec;
    border-radius: 8px;
}

body.tech-v2 .tech-stepper .tech-step-icon {
    width: 34px !important;
    height: 34px !important;
}

body.tech-v2 .tech-stepper .tech-step-icon .app-icon {
    width: 18px !important;
    height: 18px !important;
}

body.tech-v2 .tech-stepper li.disabled {
    opacity: 0.58;
    background: #f1f5f9;
}

body.tech-v2 .tech-section-head {
    margin: 10px 0 12px !important;
    padding: 12px 14px !important;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-left: 7px solid #b91c1c;
    border-radius: 8px;
}

body.tech-v2 .tech-section-head strong {
    color: #0f172a;
    font-size: 1.16rem !important;
}

body.tech-v2 .tech-section-head span {
    color: #64748b;
    font-size: 0.88rem !important;
}

body.tech-v2 .tech-product-pick,
body.tech-v2 .tech-spec-service-card {
    min-height: 74px !important;
    padding: 10px 12px !important;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

body.tech-v2 .tech-product-pick strong,
body.tech-v2 .tech-spec-service-summary strong {
    color: #0f172a;
    font-size: 0.98rem;
}

body.tech-v2 .tech-wizard-actions,
body.tech-v2 .tech-pager {
    gap: 12px;
    margin-top: 14px !important;
}

body.tech-v2 .tech-invoice-review {
    gap: 14px;
}

body.tech-v2 .tech-invoice-line,
body.tech-v2 .tech-invoice-total-card,
body.tech-v2 .tech-payment-grid .payment-choice {
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

body.tech-v2 .tech-eod-dashboard {
    display: grid;
    gap: 14px;
}

body.tech-v2 .tech-eod-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: 14px;
    padding: 16px;
    color: #ecfdf5;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
}

body.tech-v2 .tech-eod-hero span {
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.tech-v2 .tech-eod-hero strong {
    display: block;
    margin-top: 2px;
    color: #ffffff;
    font-size: 1.55rem;
}

body.tech-v2 .tech-eod-hero small {
    color: #cbd5e1;
    font-weight: 850;
}

body.tech-v2 .tech-eod-metric-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 0;
}

body.tech-v2 .tech-eod-metric-grid div {
    min-height: 96px;
}

body.tech-v2 .tech-eod-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.tech-v2 .tech-eod-panel {
    min-width: 0;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

body.tech-v2 .tech-eod-table {
    font-size: 0.9rem;
}

body.tech-v2 .tech-eod-table th {
    color: #475569;
    background: #f1f5f9;
}

body.tech-v2 .tech-eod-table td,
body.tech-v2 .tech-eod-table th {
    padding: 8px 9px;
}

body.tech-v2 .tech-session-corner {
    color: #e5e7eb;
    opacity: 0.98;
}

body.tech-v2 .tech-view-all-modal,
body.tech-v2 .action-modal {
    border-radius: 8px;
}

body.tech-v2 .tech-fit-tight .login-brand,
body.tech-v2 .tech-fit-tighter .login-brand,
body.tech-v2 .tech-fit-ultra .login-brand,
body.tech-v2 .tech-fit-emergency .login-brand {
    margin-bottom: 8px !important;
}

body.tech-v2 .tech-fit-emergency .tech-menu-choice,
body.tech-v2 .tech-fit-emergency .tech-compact-choice,
body.tech-v2 .tech-fit-emergency .tech-result-card {
    min-height: 78px !important;
    padding: 10px 12px !important;
}

body.tech-v2 .tech-fit-emergency .tech-eod-metric-grid div {
    min-height: 72px;
    padding: 8px 10px;
}

body.tech-v2 .tech-fit-emergency .tech-eod-hero {
    padding: 10px 12px;
}

body.tech-v2 .tech-fit-emergency .tech-eod-panel {
    padding: 8px;
}

body.tech-v2 .tech-fit-emergency .tech-eod-dashboard {
    gap: 8px;
}

body.tech-v2 .tech-fit-emergency .tech-eod-hero {
    grid-template-columns: minmax(0, 1fr) 150px;
    min-height: 48px;
    padding: 6px 8px;
}

body.tech-v2 .tech-fit-emergency .tech-eod-hero strong {
    font-size: 1rem;
}

body.tech-v2 .tech-fit-emergency .tech-eod-hero span,
body.tech-v2 .tech-fit-emergency .tech-eod-hero small {
    font-size: 0.62rem;
}

body.tech-v2 .tech-fit-emergency .tech-eod-metric-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

body.tech-v2 .tech-fit-emergency .tech-eod-metric-grid div {
    min-height: 54px;
    padding: 6px 8px;
    border-left-width: 5px;
}

body.tech-v2 .tech-fit-emergency .tech-eod-metric-grid span,
body.tech-v2 .tech-fit-emergency .tech-eod-metric-grid small {
    font-size: 0.58rem;
    line-height: 1;
}

body.tech-v2 .tech-fit-emergency .tech-eod-metric-grid strong {
    font-size: 0.96rem;
}

body.tech-v2 .tech-fit-emergency .tech-eod-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

body.tech-v2 .tech-fit-emergency .tech-eod-panel {
    max-height: 150px;
    padding: 6px;
    overflow: hidden;
}

body.tech-v2 .tech-fit-emergency .tech-eod-panel .tech-section-head {
    margin: 0 0 5px !important;
    padding: 4px 6px !important;
    border-left-width: 5px;
}

body.tech-v2 .tech-fit-emergency .tech-eod-panel .tech-section-head strong {
    font-size: 0.78rem !important;
}

body.tech-v2 .tech-fit-emergency .tech-eod-panel .tech-section-head span {
    display: none;
}

body.tech-v2 .tech-fit-emergency .tech-eod-table {
    font-size: 0.64rem;
    line-height: 1;
}

body.tech-v2 .tech-fit-emergency .tech-eod-table td,
body.tech-v2 .tech-fit-emergency .tech-eod-table th {
    padding: 3px 4px;
}

body.tech-v2 .tech-fit-emergency .tech-eod-panel tbody tr:nth-child(n+4) {
    display: none;
}

body.tech-v2 .tech-fit-emergency .tech-touch-nav-row {
    grid-template-columns: 150px minmax(220px, 1fr) 150px;
    gap: 8px;
    margin-bottom: 6px !important;
}

body.tech-v2 .tech-fit-emergency .tech-touch-nav-button,
body.tech-v2 .tech-fit-emergency .tech-main-menu-pill,
body.tech-v2 .tech-fit-emergency .tech-specs-menu-pill,
body.tech-v2 .tech-fit-emergency .tech-flow-focus-pill {
    min-height: 42px !important;
    padding: 5px 12px !important;
    font-size: 0.82rem !important;
}

body.tech-v2 .tech-fit-emergency .tech-flow-focus-pill strong {
    font-size: 0.98rem !important;
}

body.tech-v2 .tech-fit-emergency .tech-flow-focus-pill span {
    font-size: 0.62rem !important;
}

body.tech-v2 .tech-fit-emergency .tech-pager,
body.tech-v2 .tech-fit-emergency .tech-wizard-actions {
    margin-top: 3px !important;
}

body.tech-v2 .tech-fit-emergency .tech-pager .small-action,
body.tech-v2 .tech-fit-emergency .tech-wizard-actions .small-action,
body.tech-v2 .tech-fit-emergency .tech-wizard-actions .primary-action {
    min-height: 28px !important;
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
}

body.tech-v2 .tech-fit-emergency .tech-lookup-form,
body.tech-v2 .tech-fit-emergency .tech-part-search-form {
    gap: 7px;
    margin-bottom: 7px;
    padding: 6px 8px;
}

body.tech-v2 .tech-fit-emergency .tech-lookup-form input,
body.tech-v2 .tech-fit-emergency .tech-part-search-form input,
body.tech-v2 .tech-fit-emergency .tech-lookup-form .primary-action,
body.tech-v2 .tech-fit-emergency .tech-part-search-form .small-action {
    min-height: 30px !important;
    padding: 4px 8px !important;
    font-size: 0.82rem !important;
}

body.tech-v2 .tech-fit-emergency .tech-lookup-form label,
body.tech-v2 .tech-fit-emergency .tech-part-search-form label {
    gap: 3px !important;
    font-size: 0.7rem !important;
}

@media (max-width: 1000px) {
    body.tech-v2 .tech-touch-nav-row,
    body.tech-v2 .tech-action-grid,
    body.tech-v2 .tech-eod-grid,
    body.tech-v2 .tech-eod-metric-grid {
        grid-template-columns: 1fr;
    }

    body.tech-v2 .tech-eod-hero {
        grid-template-columns: 1fr;
    }
}

/* Tech V2 polish pass: a distinct technician terminal UI, not a recolored classic screen. */
.tech-v2-tile-icon {
    display: none;
}

body.tech-v2 {
    --tech-v2-ink: #111827;
    --tech-v2-muted: #64748b;
    --tech-v2-line: #d7dee8;
    --tech-v2-paper: #f7f9fc;
    --tech-v2-surface: #ffffff;
    --tech-v2-red: #b91c1c;
    --tech-v2-green: #047857;
    --tech-v2-blue: #2563eb;
    --tech-v2-amber: #d97706;
}

body.tech-v2.app-chrome-hidden {
    background:
        linear-gradient(120deg, rgba(185, 28, 28, 0.22) 0, rgba(185, 28, 28, 0.05) 22%, transparent 48%),
        linear-gradient(300deg, rgba(4, 120, 87, 0.20) 0, rgba(4, 120, 87, 0.04) 24%, transparent 50%),
        #090d14;
}

body.tech-v2 .login-bay-panel.tech-panel {
    align-items: center;
    padding: 78px 24px 38px;
}

body.tech-v2 .login-bay-panel .tech-card {
    position: relative;
    overflow: hidden !important;
    width: min(1280px, calc((100vw - 72px) * var(--app-display-inverse, 1)));
    color: var(--tech-v2-ink);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,249,252,0.98)),
        var(--tech-v2-paper);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-top: 8px solid var(--tech-v2-red);
    border-radius: 8px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}

body.tech-v2 .login-bay-panel .tech-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: linear-gradient(180deg, var(--tech-v2-red), var(--tech-v2-green), var(--tech-v2-blue));
    pointer-events: none;
}

body.tech-v2 .tech-card .login-brand {
    grid-template-columns: 64px minmax(0, 1fr);
    margin: 0 0 14px !important;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--tech-v2-line);
}

body.tech-v2 .tech-card .brand-mark.large {
    width: 58px;
    height: 58px;
    color: #ffffff;
    background: linear-gradient(180deg, #dc2626, #991b1b);
    border: 1px solid #fecaca;
    border-radius: 8px;
    box-shadow: inset 0 1px rgba(255,255,255,0.28), 0 12px 22px rgba(185, 28, 28, 0.24);
}

body.tech-v2 .tech-card .tech-brand h1 {
    font-size: 1.68rem;
    font-weight: 950;
}

body.tech-v2 .tech-card .tech-brand p {
    color: #475569;
    font-size: 1rem;
    font-weight: 850;
}

body.tech-v2 .tech-touch-nav-row {
    padding: 10px;
    background: #eef3f9;
    border: 1px solid var(--tech-v2-line);
    border-radius: 8px;
}

body.tech-v2 .tech-touch-nav-button,
body.tech-v2 .tech-main-menu-pill,
body.tech-v2 .tech-specs-menu-pill {
    min-height: 62px;
    color: #ffffff;
    background: linear-gradient(180deg, #111827, #0f172a);
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: inset 0 1px rgba(255,255,255,0.12), 0 2px 0 #020617;
}

body.tech-v2 .tech-specs-menu-pill {
    color: #064e3b;
    background: linear-gradient(180deg, #d1fae5, #a7f3d0);
    border-color: #10b981;
    box-shadow: inset 0 1px rgba(255,255,255,0.7), 0 2px 0 #059669;
}

body.tech-v2 .tech-flow-focus-pill {
    min-height: 62px;
    color: var(--tech-v2-ink);
    background: #ffffff;
    border: 1px solid var(--tech-v2-line);
    border-left: 8px solid var(--tech-v2-green);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

body.tech-v2 .tech-flow-focus-pill span {
    color: var(--tech-v2-green);
}

body.tech-v2 .tech-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

body.tech-v2 .tech-v2-tile-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: #ffffff;
    background: linear-gradient(180deg, var(--tech-v2-red), #991b1b);
    border-radius: 8px;
    box-shadow: inset 0 1px rgba(255,255,255,0.25), 0 10px 20px rgba(185, 28, 28, 0.18);
}

body.tech-v2 .tech-v2-tile-icon .app-icon {
    width: 25px;
    height: 25px;
}

body.tech-v2 .tech-menu-choice {
    position: relative;
    align-content: start;
    min-height: 166px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--tech-v2-line);
    border-top: 6px solid var(--tech-v2-red);
    border-left: 1px solid var(--tech-v2-line);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

body.tech-v2 .tech-menu-choice::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
}

body.tech-v2 .tech-menu-choice.success,
body.tech-v2 button.tech-menu-choice.success,
body.tech-v2 .tech-menu-choice.clocked-in {
    border-top-color: var(--tech-v2-green);
}

body.tech-v2 .tech-menu-choice.success .tech-v2-tile-icon,
body.tech-v2 button.tech-menu-choice.success .tech-v2-tile-icon,
body.tech-v2 .tech-menu-choice.clocked-in .tech-v2-tile-icon {
    background: linear-gradient(180deg, #059669, #047857);
    box-shadow: inset 0 1px rgba(255,255,255,0.25), 0 10px 20px rgba(4, 120, 87, 0.18);
}

body.tech-v2 .tech-menu-choice strong {
    font-size: 1.34rem;
    letter-spacing: 0;
}

body.tech-v2 .tech-menu-choice span:not(.tech-v2-tile-icon) {
    margin-top: 8px;
    font-size: 0.98rem;
    line-height: 1.18;
}

body.tech-v2 .tech-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.tech-v2 .tech-status-strip div {
    min-height: 92px;
    border-left-width: 8px;
}

body.tech-v2 .tech-status-strip div:nth-child(2) {
    border-left-color: var(--tech-v2-blue);
}

body.tech-v2 .tech-lookup-form,
body.tech-v2 .tech-part-search-form {
    background: #ffffff;
    border: 1px solid var(--tech-v2-line);
    border-left: 8px solid var(--tech-v2-blue);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

body.tech-v2 input,
body.tech-v2 select,
body.tech-v2 textarea {
    color: var(--tech-v2-ink);
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

body.tech-v2 input:focus-visible,
body.tech-v2 select:focus-visible,
body.tech-v2 textarea:focus-visible {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

body.tech-v2 .tech-compact-choice,
body.tech-v2 .tech-result-card {
    min-height: 112px;
    background: #ffffff;
    border: 1px solid var(--tech-v2-line);
    border-left: 8px solid var(--tech-v2-red);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

body.tech-v2 .tech-compact-choice.has-stock,
body.tech-v2 .tech-result-card.selected {
    border-left-color: var(--tech-v2-green);
}

body.tech-v2 .tech-stock-star {
    color: #78350f;
    background: #fef3c7;
    border-color: #f59e0b;
}

body.tech-v2 .tech-stepper {
    padding: 8px;
    background: #eaf0f7;
    border: 1px solid var(--tech-v2-line);
    border-radius: 8px;
}

body.tech-v2 .tech-stepper li {
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

body.tech-v2 .tech-stepper li.done .tech-step-icon {
    background: var(--tech-v2-green);
    border-color: var(--tech-v2-green);
}

body.tech-v2 .tech-stepper li.active {
    background: #fff7ed;
    border-color: #f59e0b;
    box-shadow: inset 0 -4px #f59e0b;
}

body.tech-v2 .tech-stepper li.active .tech-step-icon {
    background: var(--tech-v2-red);
    border-color: var(--tech-v2-red);
}

body.tech-v2 .tech-stepper li.disabled .tech-step-icon {
    color: #94a3b8;
    background: #e2e8f0;
    border-color: #cbd5e1;
}

body.tech-v2 .tech-section-head {
    background: #ffffff;
    border: 1px solid var(--tech-v2-line);
    border-left: 8px solid var(--tech-v2-red);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

body.tech-v2 .tech-section-head-with-action {
    grid-template-columns: minmax(0, 1fr) 132px;
}

body.tech-v2 .tech-view-all-trigger {
    color: #064e3b;
    background: #d1fae5;
    border-color: #10b981;
}

body.tech-v2 .tech-product-pick,
body.tech-v2 .tech-spec-service-card {
    background: #ffffff;
    border: 1px solid var(--tech-v2-line);
    border-left: 8px solid var(--tech-v2-red);
    border-radius: 8px;
}

body.tech-v2 .tech-product-pick.has-stock {
    border-left-color: var(--tech-v2-green);
}

body.tech-v2 .tech-invoice-line {
    background: #ffffff;
    border: 1px solid var(--tech-v2-line);
    border-left: 8px solid var(--tech-v2-green);
    border-radius: 8px;
}

body.tech-v2 .tech-invoice-total-card {
    color: #ecfdf5;
    background: #064e3b;
    border: 1px solid #10b981;
    border-radius: 8px;
}

body.tech-v2 .tech-invoice-total-card strong,
body.tech-v2 .tech-invoice-total-card span {
    color: #ecfdf5 !important;
}

body.tech-v2 .tech-eod-hero {
    background:
        linear-gradient(90deg, #111827, #172033 64%, #064e3b);
    border-top: 6px solid var(--tech-v2-green);
}

body.tech-v2 .tech-eod-metric-grid div:nth-child(1),
body.tech-v2 .tech-eod-metric-grid div:nth-child(2) {
    border-left-color: var(--tech-v2-green);
}

body.tech-v2 .tech-eod-metric-grid div:nth-child(3),
body.tech-v2 .tech-eod-metric-grid div:nth-child(4) {
    border-left-color: var(--tech-v2-blue);
}

body.tech-v2 .tech-eod-metric-grid div:nth-child(5) {
    border-left-color: var(--tech-v2-green);
}

body.tech-v2 .tech-eod-metric-grid div:nth-child(6) {
    border-left-color: var(--tech-v2-amber);
}

body.tech-v2 .tech-eod-panel {
    border-top: 5px solid var(--tech-v2-red);
}

body.tech-v2 .tech-eod-panel:nth-child(1),
body.tech-v2 .tech-eod-panel:nth-child(4) {
    border-top-color: var(--tech-v2-green);
}

body.tech-v2 .tech-eod-panel:nth-child(2) {
    border-top-color: var(--tech-v2-amber);
}

body.tech-v2 .payment-choice,
body.tech-v2 .tech-history-panel,
body.tech-v2 .tech-spec-card,
body.tech-v2 .tech-form-card {
    background: #ffffff;
    border: 1px solid var(--tech-v2-line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

body.tech-v2 .action-modal {
    border-radius: 8px;
    border-top: 8px solid var(--tech-v2-red);
}

body.tech-v2 .tech-session-corner {
    right: 28px;
    bottom: 14px;
    padding: 8px 12px;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 8px;
}

body.tech-v2 .tech-top-actions .command-button {
    border-radius: 8px;
}

body.tech-v2 .tech-fit-emergency .tech-menu-choice {
    min-height: 92px !important;
}

body.tech-v2 .tech-fit-emergency .tech-v2-tile-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
}

body.tech-v2 .tech-fit-emergency .tech-v2-tile-icon .app-icon {
    width: 18px;
    height: 18px;
}

.tech-section-head > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tech-section-head.tech-section-head-with-action {
    grid-template-columns: minmax(0, 1fr) 138px;
    align-items: center;
    gap: 10px;
}

.tech-view-all-trigger {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    color: #064e3b;
    background: linear-gradient(180deg, #ecfdf5, #bbf7d0);
    border-color: #10b981;
    box-shadow: inset 0 1px rgba(255,255,255,0.7), 0 2px 0 #059669;
}

.tech-view-all-backdrop {
    z-index: 15000;
    display: grid;
    place-items: center;
    padding: 22px;
}

.tech-view-all-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1180px, calc((100vw - 56px) * var(--app-display-inverse, 1)));
    height: min(680px, calc((100vh - 54px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 54px) * var(--app-display-inverse, 1));
    overflow: hidden;
}

.tech-view-all-heading {
    margin-bottom: 12px;
}

.tech-view-all-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    align-content: start;
    gap: 10px;
    height: 100%;
    max-height: none;
    overflow: auto;
    padding: 2px 4px 8px;
}

.tech-view-all-grid .tech-compact-choice {
    min-height: 66px !important;
    padding: 8px 10px !important;
}

.tech-view-all-grid .tech-product-pick {
    grid-template-columns: minmax(0, 1fr) 58px 72px 78px !important;
    gap: 6px !important;
    min-height: 62px !important;
    padding: 7px 8px !important;
}

.tech-view-all-grid .tech-product-pick label {
    gap: 3px !important;
    font-size: 0.66rem;
}

.tech-view-all-grid .tech-product-pick input,
.tech-view-all-grid .tech-product-pick .primary-action {
    min-height: 32px !important;
    padding: 5px 7px !important;
}

.tech-view-all-invoice-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    min-height: 58px;
    padding: 9px 11px;
    color: #0f172a;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #cbd5e1;
    border-left: 6px solid #16a34a;
    border-radius: 12px;
}

.tech-view-all-invoice-line strong,
.tech-view-all-invoice-line span,
.tech-view-all-invoice-line small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tech-view-all-invoice-line span,
.tech-view-all-invoice-line small {
    color: #475569;
    font-weight: 900;
}

.tech-card.tech-fit-tight .login-brand {
    margin-bottom: 28px !important;
}

.tech-card.tech-fit-tighter {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.tech-card.tech-fit-tighter .login-brand {
    margin-bottom: 14px !important;
}

.tech-card.tech-fit-ultra,
.tech-card.tech-fit-emergency {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.tech-card.tech-fit-ultra .login-brand,
.tech-card.tech-fit-emergency .login-brand {
    margin-bottom: 4px !important;
}

.tech-card.tech-fit-emergency .login-brand p {
    display: none !important;
}

.tech-work-card.tech-fit-tight .tech-touch-nav-row,
.tech-start-card.tech-fit-tight .tech-touch-nav-row {
    margin-bottom: 8px !important;
}

.tech-work-card.tech-fit-tighter .tech-touch-nav-row,
.tech-start-card.tech-fit-tighter .tech-touch-nav-row,
.tech-work-card.tech-fit-ultra .tech-touch-nav-row,
.tech-start-card.tech-fit-ultra .tech-touch-nav-row,
.tech-work-card.tech-fit-emergency .tech-touch-nav-row,
.tech-start-card.tech-fit-emergency .tech-touch-nav-row {
    margin-bottom: 5px !important;
}

.tech-work-card.tech-fit-tight .tech-flow-focus-pill {
    min-height: 48px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.tech-work-card.tech-fit-tighter .tech-flow-focus-pill,
.tech-work-card.tech-fit-ultra .tech-flow-focus-pill,
.tech-work-card.tech-fit-emergency .tech-flow-focus-pill {
    min-height: 42px;
    padding: 4px 16px;
}

.tech-work-card.tech-fit-tight .tech-stepper {
    margin: 7px 0 8px !important;
}

.tech-work-card.tech-fit-tighter .tech-stepper,
.tech-work-card.tech-fit-ultra .tech-stepper,
.tech-work-card.tech-fit-emergency .tech-stepper {
    margin: 4px 0 5px !important;
}

.tech-work-card.tech-fit-tight .tech-section-head {
    margin: 5px 0 7px !important;
    padding: 5px 9px !important;
}

.tech-work-card.tech-fit-tighter .tech-section-head,
.tech-work-card.tech-fit-ultra .tech-section-head,
.tech-work-card.tech-fit-emergency .tech-section-head {
    margin: 3px 0 5px !important;
    padding: 4px 8px !important;
}

.tech-work-card.tech-fit-tight .tech-brand-grid {
    gap: 8px;
}

.tech-work-card.tech-fit-tighter .tech-brand-grid,
.tech-work-card.tech-fit-ultra .tech-brand-grid,
.tech-work-card.tech-fit-emergency .tech-brand-grid {
    gap: 6px;
}

.tech-work-card.tech-fit-tight .tech-compact-choice {
    min-height: 54px !important;
    padding: 4px 8px !important;
}

.tech-work-card.tech-fit-tighter .tech-compact-choice,
.tech-work-card.tech-fit-ultra .tech-compact-choice,
.tech-work-card.tech-fit-emergency .tech-compact-choice {
    min-height: 48px !important;
    padding: 3px 7px !important;
}

.tech-work-card.tech-fit-tighter .tech-compact-choice strong,
.tech-work-card.tech-fit-ultra .tech-compact-choice strong,
.tech-work-card.tech-fit-emergency .tech-compact-choice strong {
    font-size: 0.8rem;
}

.tech-work-card.tech-fit-tighter .tech-compact-choice span,
.tech-work-card.tech-fit-tighter .tech-compact-choice small,
.tech-work-card.tech-fit-ultra .tech-compact-choice span,
.tech-work-card.tech-fit-ultra .tech-compact-choice small,
.tech-work-card.tech-fit-emergency .tech-compact-choice span,
.tech-work-card.tech-fit-emergency .tech-compact-choice small {
    font-size: 0.62rem;
}

.tech-work-card.tech-fit-tight .tech-product-pick {
    min-height: 52px !important;
    padding: 5px 7px !important;
}

.tech-work-card.tech-fit-tighter .tech-product-pick,
.tech-work-card.tech-fit-ultra .tech-product-pick,
.tech-work-card.tech-fit-emergency .tech-product-pick {
    min-height: 48px !important;
    padding: 4px 6px !important;
}

.tech-work-card.tech-fit-tighter .tech-product-pick input,
.tech-work-card.tech-fit-ultra .tech-product-pick input,
.tech-work-card.tech-fit-emergency .tech-product-pick input,
.tech-work-card.tech-fit-tighter .tech-product-pick .primary-action,
.tech-work-card.tech-fit-ultra .tech-product-pick .primary-action,
.tech-work-card.tech-fit-emergency .tech-product-pick .primary-action {
    min-height: 29px !important;
}

.tech-work-card.tech-fit-tight .tech-pager,
.tech-work-card.tech-fit-tight .tech-wizard-actions {
    margin-top: 6px !important;
}

.tech-work-card.tech-fit-tighter .tech-pager,
.tech-work-card.tech-fit-tighter .tech-wizard-actions,
.tech-work-card.tech-fit-ultra .tech-pager,
.tech-work-card.tech-fit-ultra .tech-wizard-actions,
.tech-work-card.tech-fit-emergency .tech-pager,
.tech-work-card.tech-fit-emergency .tech-wizard-actions {
    margin-top: 4px !important;
}

.tech-work-card.tech-fit-tighter .tech-pager .small-action,
.tech-work-card.tech-fit-tighter .tech-wizard-actions .small-action,
.tech-work-card.tech-fit-tighter .tech-wizard-actions .primary-action,
.tech-work-card.tech-fit-ultra .tech-pager .small-action,
.tech-work-card.tech-fit-ultra .tech-wizard-actions .small-action,
.tech-work-card.tech-fit-ultra .tech-wizard-actions .primary-action,
.tech-work-card.tech-fit-emergency .tech-pager .small-action,
.tech-work-card.tech-fit-emergency .tech-wizard-actions .small-action,
.tech-work-card.tech-fit-emergency .tech-wizard-actions .primary-action {
    min-height: 32px !important;
    padding: 4px 9px !important;
}

body.ui-modern .tech-card.tech-fit-tight .login-brand {
    margin-bottom: 28px !important;
}

body.ui-modern .tech-card.tech-fit-tighter .login-brand {
    margin-bottom: 14px !important;
}

body.ui-modern .tech-card.tech-fit-ultra .login-brand,
body.ui-modern .tech-card.tech-fit-emergency .login-brand {
    margin-bottom: 4px !important;
}

body.ui-modern .tech-card.tech-fit-emergency .login-brand p {
    display: none !important;
}

body.ui-modern .tech-work-card.tech-fit-tight .tech-touch-nav-row,
body.ui-modern .tech-start-card.tech-fit-tight .tech-touch-nav-row {
    margin-bottom: 8px !important;
}

body.ui-modern .tech-work-card.tech-fit-tighter .tech-touch-nav-row,
body.ui-modern .tech-start-card.tech-fit-tighter .tech-touch-nav-row,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-touch-nav-row,
body.ui-modern .tech-start-card.tech-fit-ultra .tech-touch-nav-row,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-touch-nav-row,
body.ui-modern .tech-start-card.tech-fit-emergency .tech-touch-nav-row {
    margin-bottom: 5px !important;
}

body.ui-modern .tech-work-card.tech-fit-tight .tech-flow-focus-pill {
    min-height: 48px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

body.ui-modern .tech-work-card.tech-fit-tighter .tech-flow-focus-pill,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-flow-focus-pill,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-flow-focus-pill {
    min-height: 42px !important;
    padding: 4px 16px !important;
}

body.ui-modern .tech-work-card.tech-fit-tight .tech-stepper {
    margin: 7px 0 8px !important;
}

body.ui-modern .tech-work-card.tech-fit-tighter .tech-stepper,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-stepper,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-stepper {
    margin: 4px 0 5px !important;
}

body.ui-modern .tech-work-card.tech-fit-emergency .tech-stepper {
    margin: 2px 0 3px !important;
}

body.ui-modern .tech-work-card.tech-fit-emergency .tech-stepper li {
    min-height: 24px !important;
    padding: 2px !important;
    border-radius: 9px;
}

body.ui-modern .tech-work-card.tech-fit-emergency .tech-stepper .tech-step-icon {
    width: 20px !important;
    height: 20px !important;
}

body.ui-modern .tech-work-card.tech-fit-emergency .tech-stepper .tech-step-icon .app-icon {
    width: 12px !important;
    height: 12px !important;
}

body.ui-modern .tech-work-card.tech-fit-tight .tech-section-head {
    margin: 5px 0 7px !important;
    padding: 5px 9px !important;
}

body.ui-modern .tech-work-card.tech-fit-tighter .tech-section-head,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-section-head,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-section-head {
    margin: 3px 0 5px !important;
    padding: 4px 8px !important;
}

body.ui-modern .tech-work-card.tech-fit-emergency .tech-section-head-with-action {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 6px;
}

body.ui-modern .tech-work-card.tech-fit-emergency .tech-view-all-trigger {
    min-height: 28px;
    padding: 3px 8px;
    font-size: 0.72rem;
}

body.ui-modern .tech-work-card.tech-fit-tight .tech-brand-grid {
    gap: 8px !important;
}

body.ui-modern .tech-work-card.tech-fit-tighter .tech-brand-grid,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-brand-grid,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-brand-grid {
    gap: 6px !important;
}

body.ui-modern .tech-work-card.tech-fit-tight .tech-compact-choice {
    min-height: 54px !important;
    padding: 4px 8px !important;
}

body.ui-modern .tech-work-card.tech-fit-tighter .tech-compact-choice,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-compact-choice,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-compact-choice {
    min-height: 48px !important;
    padding: 3px 7px !important;
}

body.ui-modern .tech-work-card.tech-fit-tight .tech-pager,
body.ui-modern .tech-work-card.tech-fit-tight .tech-wizard-actions {
    margin-top: 6px !important;
}

body.ui-modern .tech-work-card.tech-fit-tighter .tech-pager,
body.ui-modern .tech-work-card.tech-fit-tighter .tech-wizard-actions,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-pager,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-wizard-actions,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-pager,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-wizard-actions {
    margin-top: 4px !important;
}

body.ui-modern .tech-work-card.tech-fit-tight .tech-product-pick {
    grid-template-columns: minmax(0, 1fr) 66px 84px 84px !important;
    gap: 6px !important;
    min-height: 52px !important;
    padding: 5px 7px !important;
}

body.ui-modern .tech-work-card.tech-fit-tighter .tech-product-pick,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-product-pick,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-product-pick {
    grid-template-columns: minmax(0, 1fr) 58px 76px 78px !important;
    gap: 5px !important;
    min-height: 44px !important;
    padding: 3px 5px !important;
}

body.ui-modern .tech-work-card.tech-fit-tighter .tech-product-pick > div,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-product-pick > div,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-product-pick > div {
    gap: 0 !important;
    padding-right: 24px !important;
}

body.ui-modern .tech-work-card.tech-fit-tighter .tech-product-pick label,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-product-pick label,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-product-pick label {
    gap: 1px !important;
    font-size: 0.58rem !important;
    line-height: 1 !important;
}

body.ui-modern .tech-work-card.tech-fit-emergency .tech-product-pick small {
    display: none !important;
}

body.ui-modern .tech-work-card.tech-fit-tighter .tech-product-pick input,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-product-pick input,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-product-pick input {
    min-height: 24px !important;
    padding: 2px 5px !important;
    font-size: 0.76rem !important;
}

body.ui-modern .tech-work-card.tech-fit-tighter .tech-product-pick .primary-action,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-product-pick .primary-action,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-product-pick .primary-action,
body.ui-modern .tech-work-card.tech-fit-tighter .tech-pager .small-action,
body.ui-modern .tech-work-card.tech-fit-tighter .tech-wizard-actions .small-action,
body.ui-modern .tech-work-card.tech-fit-tighter .tech-wizard-actions .primary-action,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-pager .small-action,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-wizard-actions .small-action,
body.ui-modern .tech-work-card.tech-fit-ultra .tech-wizard-actions .primary-action,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-pager .small-action,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-wizard-actions .small-action,
body.ui-modern .tech-work-card.tech-fit-emergency .tech-wizard-actions .primary-action {
    min-height: 28px !important;
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
}

/* Tech V2 console override: make the technician flow feel purpose-built, not inherited. */
body.tech-v2 {
    --tech-console-bg: #0b111b;
    --tech-console-panel: #f8fafc;
    --tech-console-panel-2: #eef3f8;
    --tech-console-ink: #0f172a;
    --tech-console-muted: #526174;
    --tech-console-line: #cbd7e5;
    --tech-console-red: #b51218;
    --tech-console-green: #00865f;
    --tech-console-blue: #1f5fbf;
    --tech-console-yellow: #f9c80e;
}

body.tech-v2.app-chrome-hidden {
    background:
        linear-gradient(135deg, rgba(181, 18, 24, 0.22), transparent 30%),
        linear-gradient(315deg, rgba(0, 134, 95, 0.18), transparent 32%),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 22px),
        var(--tech-console-bg);
}

body.tech-v2 .login-bay-panel.tech-panel,
body.tech-v2.ui-modern.app-chrome-hidden .tech-panel {
    display: grid;
    place-items: start center;
    align-items: start;
    padding: 146px 24px 28px;
}

body.tech-v2 .login-bay-panel .tech-card,
body.tech-v2.ui-modern.app-chrome-hidden .login-bay-panel .tech-card,
body.tech-v2:not(.ui-modern).app-chrome-hidden .login-bay-panel .tech-card {
    width: min(1320px, calc((100vw - 56px) * var(--app-display-inverse, 1)));
    min-height: min(742px, calc((100vh - 104px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 104px) * var(--app-display-inverse, 1));
    padding: 22px 24px 24px !important;
    overflow: hidden !important;
    color: var(--tech-console-ink);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96)),
        var(--tech-console-panel);
    border: 1px solid rgba(203, 215, 229, 0.95);
    border-top: 9px solid var(--tech-console-red);
    border-radius: 16px;
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.46),
        inset 0 1px rgba(255,255,255,0.85);
}

body.tech-v2 .login-bay-panel .tech-menu-card {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    row-gap: 10px;
    min-height: min(560px, calc((100vh - 252px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 252px) * var(--app-display-inverse, 1));
}

body.tech-v2 .tech-menu-card .tech-touch-nav-row {
    display: none !important;
}

body.tech-v2 .tech-menu-card .login-brand {
    padding-bottom: 8px;
}

body.tech-v2 .tech-menu-card .brand-mark.large {
    width: 54px;
    height: 54px;
}

body.tech-v2 .tech-menu-card .tech-brand h1 {
    font-size: 1.58rem;
}

body.tech-v2 .tech-menu-card .tech-brand p {
    margin-top: 3px;
    font-size: 0.94rem;
}

body.tech-v2 .login-bay-panel .tech-card::before {
    width: 9px;
    background: linear-gradient(180deg, var(--tech-console-red) 0 33%, var(--tech-console-green) 33% 66%, var(--tech-console-blue) 66%);
}

body.tech-v2 .tech-card .login-brand {
    margin: 0 !important;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--tech-console-line);
}

body.tech-v2 .tech-card .brand-mark.large {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    background: linear-gradient(180deg, #d51b22, #930d13);
}

body.tech-v2 .tech-card .tech-brand h1 {
    color: var(--tech-console-ink);
    font-size: 1.72rem;
    font-weight: 950;
    letter-spacing: 0;
}

body.tech-v2 .tech-card .tech-brand p {
    margin-top: 5px;
    color: var(--tech-console-muted);
    font-size: 1.02rem;
    font-weight: 850;
}

body.tech-v2 .tech-touch-nav-row {
    margin: 0 !important;
    padding: 10px;
    background: linear-gradient(180deg, #f3f7fb, #e8eef6);
    border: 1px solid var(--tech-console-line);
    border-radius: 14px;
}

body.tech-v2 .tech-main-menu-pill,
body.tech-v2 .tech-touch-nav-button,
body.tech-v2 .tech-specs-menu-pill {
    min-height: 58px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 950;
}

body.tech-v2 .tech-main-menu-pill {
    background: linear-gradient(180deg, #00936b, #006b51);
    border-color: #0fb889;
    box-shadow: inset 0 1px rgba(255,255,255,0.22), 0 3px 0 #004d3e;
}

body.tech-v2 .tech-specs-menu-pill {
    background: linear-gradient(180deg, #dffbea, #b9f0cf);
    border-color: #16a66f;
    box-shadow: inset 0 1px rgba(255,255,255,0.72), 0 3px 0 #0d7d55;
}

body.tech-v2 .tech-flow-focus-pill {
    min-height: 58px;
    border-radius: 14px;
    border-left-width: 9px;
    box-shadow: inset 0 1px rgba(255,255,255,0.8), 0 10px 22px rgba(15, 23, 42, 0.07);
}

body.tech-v2 .tech-menu-card .tech-status-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

body.tech-v2 .tech-menu-card .tech-status-strip div {
    min-height: 56px;
    padding: 7px 14px;
    background: linear-gradient(180deg, #ffffff, #f2f6fb);
    border: 1px solid var(--tech-console-line);
    border-left: 9px solid var(--tech-console-red);
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.78), 0 8px 18px rgba(15, 23, 42, 0.06);
}

body.tech-v2 .tech-menu-card .tech-status-strip div:nth-child(2) {
    border-left-color: var(--tech-console-blue);
}

body.tech-v2 .tech-menu-card .tech-status-strip span {
    color: #68788c;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.tech-v2 .tech-menu-card .tech-status-strip strong {
    margin-top: 2px;
    color: var(--tech-console-ink);
    font-size: 1.24rem;
}

body.tech-v2 .tech-menu-card .tech-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 10px 12px;
    margin: 0;
    min-height: 0;
}

body.tech-v2 .tech-menu-card .tech-action-grid > form {
    display: contents;
}

body.tech-v2 .tech-menu-choice,
body.tech-v2 .tech-menu-card button.tech-menu-choice,
body.tech-v2 .tech-menu-card a.tech-menu-choice {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-content: center;
    min-height: 94px;
    padding: 12px 14px;
    color: var(--tech-console-ink);
    background:
        linear-gradient(180deg, #ffffff, #f4f8fc);
    border: 1px solid var(--tech-console-line);
    border-left: 10px solid var(--tech-console-red);
    border-top: 1px solid var(--tech-console-line);
    border-radius: 16px;
    box-shadow:
        inset 0 1px rgba(255,255,255,0.88),
        0 3px 0 #9aabba,
        0 12px 26px rgba(15, 23, 42, 0.08);
}

body.tech-v2 .tech-menu-card .tech-menu-choice,
body.tech-v2 .tech-menu-card button.tech-menu-choice,
body.tech-v2 .tech-menu-card a.tech-menu-choice {
    min-height: 76px !important;
    padding: 8px 12px !important;
}

body.tech-v2 .tech-menu-choice::after {
    right: 16px;
    bottom: 14px;
    width: 38px;
    height: 5px;
    background: #cbd5e1;
}

body.tech-v2 .tech-menu-choice.clocked-in,
body.tech-v2 .tech-menu-choice.success,
body.tech-v2 button.tech-menu-choice.success {
    border-left-color: var(--tech-console-green);
}

body.tech-v2 .tech-menu-choice .tech-v2-tile-icon {
    grid-row: 1 / span 2;
    align-self: center;
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 14px;
}

body.tech-v2 .tech-menu-card .tech-menu-choice .tech-v2-tile-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 11px;
}

body.tech-v2 .tech-menu-card .tech-menu-choice .tech-v2-tile-icon .app-icon {
    width: 20px;
    height: 20px;
}

body.tech-v2 .tech-menu-choice strong {
    align-self: end;
    min-width: 0;
    overflow: hidden;
    color: var(--tech-console-ink);
    font-size: 1.08rem;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.tech-v2 .tech-menu-card .tech-menu-choice strong {
    font-size: 0.98rem;
}

body.tech-v2 .tech-menu-choice span:not(.tech-v2-tile-icon) {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #607086;
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.tech-v2 .tech-menu-card .tech-menu-choice span:not(.tech-v2-tile-icon) {
    font-size: 0.74rem;
}

body.tech-v2 .tech-fit-tight.tech-menu-card .tech-menu-choice,
body.tech-v2 .tech-fit-tighter.tech-menu-card .tech-menu-choice,
body.tech-v2 .tech-fit-ultra.tech-menu-card .tech-menu-choice,
body.tech-v2 .tech-fit-emergency.tech-menu-card .tech-menu-choice {
    min-height: 108px !important;
    padding: 13px !important;
}

body.tech-v2 .tech-fit-tight.tech-menu-card .tech-menu-choice .tech-v2-tile-icon,
body.tech-v2 .tech-fit-tighter.tech-menu-card .tech-menu-choice .tech-v2-tile-icon,
body.tech-v2 .tech-fit-ultra.tech-menu-card .tech-menu-choice .tech-v2-tile-icon,
body.tech-v2 .tech-fit-emergency.tech-menu-card .tech-menu-choice .tech-v2-tile-icon {
    width: 44px !important;
    height: 44px !important;
}

body.tech-v2 .tech-compact-choice,
body.tech-v2 .tech-product-pick,
body.tech-v2 .tech-result-card,
body.tech-v2 .tech-spec-card,
body.tech-v2 .tech-history-panel,
body.tech-v2 .payment-choice {
    border-radius: 14px;
}

body.tech-v2 .tech-section-head {
    border-radius: 14px;
}

body.tech-v2 .primary-action,
body.tech-v2 .small-action,
body.tech-v2 .command-button {
    border-radius: 14px;
}

body.tech-v2 .tech-card-loading {
    border-radius: 16px;
}

body.tech-v2.ui-modern.app-chrome-hidden .login-bay-panel .tech-menu-card,
body.tech-v2:not(.ui-modern).app-chrome-hidden .login-bay-panel .tech-menu-card,
body.tech-v2 .login-bay-panel .tech-menu-card {
    min-height: min(560px, calc((100vh - 238px) * var(--app-display-inverse, 1))) !important;
    max-height: calc((100vh - 238px) * var(--app-display-inverse, 1)) !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .login-bay-panel .tech-work-card,
body.tech-v2:not(.ui-modern).app-chrome-hidden .login-bay-panel .tech-work-card,
body.tech-v2 .login-bay-panel .tech-work-card {
    min-height: min(610px, calc((100vh - 184px) * var(--app-display-inverse, 1))) !important;
    max-height: calc((100vh - 184px) * var(--app-display-inverse, 1)) !important;
}

body.tech-v2 .tech-work-card .login-brand {
    gap: 10px;
    margin-bottom: 6px !important;
    padding-bottom: 8px;
}

body.tech-v2 .tech-work-card .brand-mark.large {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 0.82rem;
}

body.tech-v2 .tech-work-card .tech-brand h1 {
    font-size: 1.12rem;
}

body.tech-v2 .tech-work-card .login-brand p {
    display: none;
}

body.tech-v2 .tech-work-card .tech-touch-nav-row {
    grid-template-columns: 160px minmax(260px, 1fr) 160px;
    gap: 8px;
    margin-bottom: 6px !important;
    padding: 6px;
}

body.tech-v2 .tech-work-card .tech-main-menu-pill,
body.tech-v2 .tech-work-card .tech-touch-nav-button,
body.tech-v2 .tech-work-card .tech-specs-menu-pill {
    min-height: 42px !important;
    padding: 5px 12px !important;
    border-radius: 12px;
    font-size: 0.82rem !important;
}

body.tech-v2 .tech-work-card .tech-flow-focus-pill {
    min-height: 42px !important;
    padding: 4px 14px !important;
    border-radius: 12px;
}

body.tech-v2 .tech-work-card .tech-flow-focus-pill span {
    font-size: 0.62rem !important;
}

body.tech-v2 .tech-work-card .tech-flow-focus-pill strong {
    font-size: 0.98rem !important;
}

body.tech-v2 .tech-work-card .tech-stepper {
    gap: 6px !important;
    margin: 4px 0 5px !important;
    padding: 4px !important;
}

body.tech-v2 .tech-work-card .tech-stepper li {
    min-height: 24px !important;
    padding: 2px !important;
    border-radius: 9px !important;
}

body.tech-v2 .tech-work-card .tech-stepper .tech-step-icon {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.62rem;
}

body.tech-v2 .tech-work-card .tech-stepper .tech-step-icon .app-icon {
    width: 12px !important;
    height: 12px !important;
}

body.tech-v2 .tech-work-card .tech-section-head {
    min-height: 38px;
    margin: 4px 0 5px !important;
    padding: 4px 8px !important;
    border-radius: 12px;
}

body.tech-v2 .tech-work-card .tech-section-head-with-action {
    grid-template-columns: minmax(0, 1fr) 110px !important;
}

body.tech-v2 .tech-work-card .tech-section-head strong {
    font-size: 0.9rem !important;
    line-height: 1.05;
}

body.tech-v2 .tech-work-card .tech-section-head span {
    font-size: 0.7rem !important;
    line-height: 1.05;
}

body.tech-v2 .tech-work-card .tech-view-all-trigger {
    min-height: 30px !important;
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
    border-radius: 10px;
}

body.tech-v2 .tech-work-card .tech-part-search-form,
body.tech-v2 .tech-work-card .tech-lookup-form {
    gap: 6px !important;
    margin: 4px 0 5px !important;
    padding: 5px 8px !important;
    border-radius: 12px;
}

body.tech-v2 .tech-work-card .tech-part-search-form input,
body.tech-v2 .tech-work-card .tech-lookup-form input,
body.tech-v2 .tech-work-card .tech-part-search-form .small-action,
body.tech-v2 .tech-work-card .tech-lookup-form .primary-action {
    min-height: 30px !important;
    padding: 3px 8px !important;
    font-size: 0.78rem !important;
}

body.tech-v2 .tech-work-card .tech-compact-list {
    gap: 5px !important;
}

body.tech-v2 .tech-work-card .tech-product-pick {
    min-height: 38px !important;
    padding: 3px 6px !important;
    border-radius: 12px;
}

body.tech-v2 .tech-work-card .tech-product-pick strong {
    font-size: 0.76rem !important;
    line-height: 1.02;
}

body.tech-v2 .tech-work-card .tech-product-pick span,
body.tech-v2 .tech-work-card .tech-product-pick small {
    font-size: 0.58rem !important;
    line-height: 1;
}

body.tech-v2 .tech-work-card .tech-product-pick input,
body.tech-v2 .tech-work-card .tech-product-pick .primary-action {
    min-height: 24px !important;
    padding: 2px 6px !important;
    font-size: 0.72rem !important;
    border-radius: 10px;
}

body.tech-v2 .tech-work-card .tech-pager,
body.tech-v2 .tech-work-card .tech-wizard-actions {
    margin-top: 4px !important;
}

body.tech-v2 .tech-work-card .tech-pager .small-action,
body.tech-v2 .tech-work-card .tech-wizard-actions .small-action,
body.tech-v2 .tech-work-card .tech-wizard-actions .primary-action {
    min-height: 28px !important;
    padding: 3px 10px !important;
    border-radius: 10px;
    font-size: 0.72rem !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .login-brand {
    gap: 8px !important;
    margin-bottom: 4px !important;
    padding-bottom: 6px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .brand-mark.large {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.74rem !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-brand h1 {
    font-size: 0.98rem !important;
    line-height: 1 !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-touch-nav-row {
    gap: 6px !important;
    margin: 0 0 4px !important;
    padding: 4px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-main-menu-pill,
body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-touch-nav-button,
body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-specs-menu-pill {
    min-height: 34px !important;
    padding: 3px 10px !important;
    font-size: 0.72rem !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-flow-focus-pill {
    min-height: 34px !important;
    padding: 3px 12px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-flow-focus-pill strong {
    font-size: 0.82rem !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-stepper {
    gap: 5px !important;
    margin: 3px 0 4px !important;
    padding: 3px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-stepper li {
    min-height: 18px !important;
    padding: 1px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-stepper .tech-step-icon {
    width: 16px !important;
    height: 16px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-stepper .tech-step-icon .app-icon {
    width: 10px !important;
    height: 10px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-section-head {
    min-height: 30px !important;
    margin: 3px 0 4px !important;
    padding: 3px 7px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-section-head strong {
    font-size: 0.78rem !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-section-head span {
    font-size: 0.62rem !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-view-all-trigger {
    min-height: 24px !important;
    padding: 2px 7px !important;
    font-size: 0.64rem !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-part-search-form,
body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-lookup-form {
    gap: 5px !important;
    margin: 3px 0 4px !important;
    padding: 4px 7px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-part-search-form input,
body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-lookup-form input,
body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-part-search-form .small-action,
body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-lookup-form .primary-action {
    min-height: 24px !important;
    padding: 2px 7px !important;
    font-size: 0.68rem !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-compact-list {
    gap: 4px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-product-pick {
    min-height: 30px !important;
    padding: 2px 5px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-product-pick strong {
    font-size: 0.66rem !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-product-pick span,
body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-product-pick small {
    font-size: 0.52rem !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-product-pick input,
body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-product-pick .primary-action {
    min-height: 20px !important;
    padding: 1px 5px !important;
    font-size: 0.62rem !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-pager,
body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-wizard-actions {
    margin-top: 3px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-pager .small-action,
body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-wizard-actions .small-action,
body.tech-v2.ui-modern.app-chrome-hidden .tech-work-card .tech-wizard-actions .primary-action {
    min-height: 22px !important;
    padding: 2px 8px !important;
    font-size: 0.64rem !important;
}

body.tech-v2 .tech-panel.tech-mode-work .tech-session-corner {
    top: 70px;
    right: 28px;
    bottom: auto;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-card:not(.tech-menu-card):not(.tech-work-card) .login-brand {
    gap: 10px !important;
    margin-bottom: 6px !important;
    padding-bottom: 8px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-card:not(.tech-menu-card):not(.tech-work-card) .brand-mark.large {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px;
    font-size: 0.9rem !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-card:not(.tech-menu-card):not(.tech-work-card) .tech-brand h1 {
    font-size: 1.32rem !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-card:not(.tech-menu-card):not(.tech-work-card) .login-brand p {
    display: none;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-card:not(.tech-menu-card):not(.tech-work-card) .tech-touch-nav-row {
    gap: 8px !important;
    margin: 0 0 8px !important;
    padding: 6px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-card:not(.tech-menu-card):not(.tech-work-card) .tech-main-menu-pill,
body.tech-v2.ui-modern.app-chrome-hidden .tech-card:not(.tech-menu-card):not(.tech-work-card) .tech-touch-nav-button,
body.tech-v2.ui-modern.app-chrome-hidden .tech-card:not(.tech-menu-card):not(.tech-work-card) .tech-specs-menu-pill {
    min-height: 44px !important;
    padding: 4px 12px !important;
    font-size: 0.84rem !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-card:not(.tech-menu-card):not(.tech-work-card) .tech-flow-focus-pill {
    min-height: 44px !important;
    padding: 4px 14px !important;
}

body.tech-v2.ui-modern.app-chrome-hidden .tech-card:not(.tech-menu-card):not(.tech-work-card) .tech-flow-focus-pill strong {
    font-size: 0.96rem !important;
}

body.tech-v2 .tech-panel:not(.tech-mode-menu) .tech-session-corner {
    top: 70px;
    right: 28px;
    bottom: auto;
}

body:not(.tech-v2) .tech-session-corner {
    left: 22px;
    right: 22px;
    bottom: 14px;
    max-width: none;
    justify-content: space-between;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    text-shadow: none;
}

body:not(.tech-v2) .tech-session-corner .tech-session-clock,
body:not(.tech-v2) .tech-session-corner .tech-session-identity {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(3, 7, 18, 0.72);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
    font-size: 0.78rem;
    font-weight: 950;
}

body:not(.tech-v2) .tech-session-corner .tech-session-identity {
    margin-left: auto;
}

body.ui-modern:not(.tech-v2) .tech-main-menu-pill,
body.ui-modern:not(.tech-v2) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-nav-row .tech-main-menu-pill.tech-touch-nav-button {
    color: #ecfeff;
    background: linear-gradient(180deg, #00827a, #005f5a);
    border-color: #22c7b8;
    box-shadow: inset 0 1px rgba(255,255,255,0.28), 0 2px 0 #064e4a;
}

body:not(.tech-v2) .tech-menu-card .tech-menu-choice,
body:not(.tech-v2) .tech-menu-card button.tech-menu-choice,
body:not(.tech-v2) .tech-menu-card a.tech-menu-choice {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    column-gap: 14px;
    row-gap: 4px;
    text-align: left;
}

body:not(.tech-v2) .tech-menu-card .tech-v2-tile-icon {
    grid-row: 1 / span 2;
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0;
    color: #ffffff;
    background: linear-gradient(180deg, #c91f28, #8f1018);
    border-radius: 12px;
    box-shadow: inset 0 1px rgba(255,255,255,0.24), 0 8px 18px rgba(143, 16, 24, 0.20);
}

body:not(.tech-v2) .tech-menu-card .tech-v2-tile-icon .app-icon {
    width: 24px;
    height: 24px;
}

body:not(.tech-v2) .tech-menu-card .tech-menu-choice.success,
body:not(.tech-v2) .tech-menu-card button.tech-menu-choice.success,
body:not(.tech-v2) .tech-menu-card .tech-menu-choice.clocked-in {
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #eef5f7) !important;
    border-left-color: #00827a !important;
}

body:not(.tech-v2) .tech-menu-card .tech-menu-choice.success .tech-v2-tile-icon,
body:not(.tech-v2) .tech-menu-card button.tech-menu-choice.success .tech-v2-tile-icon,
body:not(.tech-v2) .tech-menu-card .tech-menu-choice.clocked-in .tech-v2-tile-icon {
    background: linear-gradient(180deg, #009b86, #006b62);
    box-shadow: inset 0 1px rgba(255,255,255,0.28), 0 8px 18px rgba(0, 107, 98, 0.22);
}

body:not(.tech-v2) .tech-menu-card .tech-menu-choice strong {
    align-self: end;
    min-width: 0;
    line-height: 1.08;
}

body:not(.tech-v2) .tech-menu-card .tech-menu-choice span:not(.tech-v2-tile-icon) {
    align-self: start;
    min-width: 0;
    margin: 0;
    color: #64748b !important;
    line-height: 1.15;
}

body:not(.tech-v2) .tech-menu-card .tech-open-order-choice {
    position: relative;
    padding-right: 104px !important;
    overflow: hidden;
}

body:not(.tech-v2) .tech-menu-card .tech-open-order-choice.has-open-orders {
    border-left-color: #00827a !important;
    background: linear-gradient(180deg, #ffffff, #eefbf8) !important;
}

body:not(.tech-v2) .tech-menu-card .tech-open-order-choice.has-open-orders .tech-v2-tile-icon {
    background: linear-gradient(180deg, #009b86, #006b62);
    box-shadow: inset 0 1px rgba(255,255,255,0.28), 0 8px 18px rgba(0, 107, 98, 0.22);
}

body:not(.tech-v2) .tech-menu-card .tech-open-order-choice .tech-menu-count-badge {
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    place-items: center;
    align-content: center;
    width: 76px;
    min-height: 48px;
    padding: 5px 8px;
    color: #334155 !important;
    background: linear-gradient(180deg, #ffffff, #e5edf6);
    border: 1px solid #b8c6d6;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.88), 0 3px 0 #94a3b8;
    transform: translateY(-50%);
}

body:not(.tech-v2) .tech-menu-card .tech-open-order-choice.has-open-orders .tech-menu-count-badge {
    color: #ecfdf5 !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.25), transparent 38%),
        linear-gradient(180deg, #00a58d, #006b62);
    border-color: #22c7b8;
    box-shadow: inset 0 1px rgba(255,255,255,0.34), 0 3px 0 #064e4a, 0 10px 24px rgba(0, 107, 98, 0.24);
}

body:not(.tech-v2) .tech-menu-card .tech-open-order-choice .tech-menu-count-badge strong {
    align-self: center;
    color: inherit;
    font-size: 1.18rem;
    font-weight: 950;
    line-height: 0.95;
}

body:not(.tech-v2) .tech-menu-card .tech-open-order-choice .tech-menu-count-badge small {
    color: inherit;
    font-size: 0.58rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

body:not(.tech-v2) .tech-section-head-with-action {
    grid-template-columns: minmax(0, 1fr) auto !important;
}

.tech-section-head-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

body:not(.tech-v2) .tech-section-head-with-action > .tech-section-head-actions,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-section-head-with-action > .tech-section-head-actions {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
}

.tech-section-head-actions .small-action {
    min-width: 104px;
    max-width: none;
    min-height: 42px;
}

.tech-part-number-trigger {
    color: #0f172a;
    background: linear-gradient(180deg, #f8fafc, #dbeafe);
    border-color: #7aa7e8;
    box-shadow: inset 0 1px rgba(255,255,255,0.72), 0 2px 0 #9fb6d8;
}

.tech-part-lookup-backdrop {
    z-index: 15000;
    display: grid;
    place-items: center;
    padding: 22px;
}

.tech-part-lookup-modal {
    width: min(560px, calc(100vw - 52px));
    padding: 18px;
    overflow: hidden;
}

.tech-part-lookup-form {
    display: grid;
    gap: 14px;
}

.tech-part-lookup-number {
    display: grid;
    gap: 7px;
    color: #172033;
    font-weight: 950;
}

.tech-part-lookup-number input {
    min-height: 58px;
    padding: 12px 16px;
    font-size: 1.2rem;
    font-weight: 950;
    text-transform: uppercase;
}

.tech-part-fitment-check {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 84px;
    padding: 14px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 7px solid #00827a;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.8);
}

.tech-part-fitment-check input[type="checkbox"] {
    width: 34px;
    height: 34px;
}

.tech-part-fitment-check strong,
.tech-part-fitment-check small {
    display: block;
}

.tech-part-fitment-check small {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.2;
}

/* Stable classic technician workflow: V2 is disabled, so keep these screens cohesive. */
body.ui-modern:not(.tech-v2) .login-bay-panel.tech-panel {
    align-items: start;
    place-items: start center;
    padding-top: calc(104px * var(--app-display-inverse, 1));
}

body.ui-modern:not(.tech-v2) .login-bay-panel .tech-card {
    overflow: hidden !important;
    width: min(1240px, calc((100vw - 88px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 148px) * var(--app-display-inverse, 1));
    border-radius: 18px;
}

body.ui-modern:not(.tech-v2) .tech-card .login-brand {
    gap: 12px;
    margin-bottom: 12px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .login-brand,
body.ui-modern:not(.tech-v2).app-chrome-hidden .tech-work-card .login-brand {
    margin-bottom: 12px !important;
}

body.ui-modern:not(.tech-v2) .tech-card .brand-mark.large {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

body.ui-modern:not(.tech-v2) .tech-card .tech-brand h1 {
    font-size: 1.38rem;
    line-height: 1.08;
}

body.ui-modern:not(.tech-v2) .tech-card .tech-brand p {
    margin-top: 2px;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 800;
}

body.ui-modern:not(.tech-v2) .tech-card .tech-touch-nav-row,
body.ui-modern:not(.tech-v2).app-chrome-hidden .tech-work-card .tech-touch-nav-row {
    display: grid !important;
    grid-template-columns: minmax(132px, 150px) minmax(260px, 1fr) minmax(132px, 150px);
    align-items: center;
    gap: 10px;
    margin: 4px 0 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-flow-focus-pill {
    position: relative;
    width: min(460px, 100%);
    min-height: 58px;
    padding: 8px 24px;
    background: linear-gradient(180deg, #ffffff, #f0fdfa);
    border-color: #14b8a6;
    border-left-color: #c91f28;
    box-shadow: inset 0 1px rgba(255,255,255,0.8), 0 3px 0 rgba(13, 148, 136, 0.34);
}

body.ui-modern:not(.tech-v2) .tech-flow-focus-pill span {
    color: #0f766e;
}

body.ui-modern:not(.tech-v2) .tech-flow-focus-pill strong {
    font-size: 1.18rem;
}

body.ui-modern:not(.tech-v2) .tech-card .tech-nav-actions,
body.ui-modern:not(.tech-v2) .tech-card .tech-nav-side-action {
    display: flex;
    min-width: 0;
}

body.ui-modern:not(.tech-v2) .tech-card .tech-nav-actions {
    justify-content: flex-start;
}

body.ui-modern:not(.tech-v2) .tech-card .tech-nav-side-action {
    justify-content: flex-end;
}

body.ui-modern:not(.tech-v2) .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-nav-row .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-nav-row .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-nav-row .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-specs-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) button.tech-specs-menu-pill.tech-touch-nav-button:not(.selection-tile):not(.profile-status-tile) {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 150px;
    min-height: 46px;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1.05;
    text-align: left;
    text-decoration: none;
    transform: none;
}

body.ui-modern:not(.tech-v2) .tech-touch-nav-button .app-icon {
    box-sizing: content-box;
    width: 17px;
    height: 17px;
    padding: 7px;
    border-radius: 10px;
}

body.ui-modern:not(.tech-v2) .tech-touch-nav-button span {
    display: block !important;
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-nav-row .tech-main-menu-pill.tech-touch-nav-button {
    color: #f8fafc;
    background: linear-gradient(180deg, #1f2937, #111827);
    border: 1px solid #475569;
    border-left: 5px solid #c91f28;
    box-shadow: inset 0 1px rgba(255,255,255,0.16), 0 2px 0 rgba(15, 23, 42, 0.46);
}

body.ui-modern:not(.tech-v2) .tech-main-menu-pill.tech-touch-nav-button .app-icon {
    color: #ffffff;
    background: rgba(201, 31, 40, 0.42);
}

body.ui-modern:not(.tech-v2) .tech-specs-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) button.tech-specs-menu-pill.tech-touch-nav-button:not(.selection-tile):not(.profile-status-tile) {
    color: #0f172a;
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    border: 1px solid #cbd5e1;
    border-left: 5px solid #0d9488;
    box-shadow: inset 0 1px rgba(255,255,255,0.86), 0 2px 0 #94a3b8;
}

body.ui-modern:not(.tech-v2) .tech-specs-menu-pill.tech-touch-nav-button .app-icon {
    color: #0f766e;
    background: #dffaf3;
}

body.ui-modern:not(.tech-v2) .tech-touch-nav-button:hover,
body.ui-modern:not(.tech-v2) .tech-touch-nav-button:focus-visible {
    filter: brightness(1.02);
    transform: translateY(-1px);
}

body.ui-modern:not(.tech-v2) .tech-card.is-tech-initializing .tech-flow-focus-pill,
body.ui-modern:not(.tech-v2) .tech-card.is-tech-navigating .tech-flow-focus-pill {
    padding-right: 56px;
}

body.ui-modern:not(.tech-v2) .tech-card.is-tech-initializing .tech-flow-focus-pill::after,
body.ui-modern:not(.tech-v2) .tech-card.is-tech-navigating .tech-flow-focus-pill::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 3px solid rgba(20, 184, 166, 0.22);
    border-top-color: #0f766e;
    border-radius: 999px;
    animation: modal-progress-spin 0.72s linear infinite;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-card-loading,
body.ui-modern:not(.tech-v2) .tech-start-card .tech-card-loading,
body.ui-modern:not(.tech-v2) .tech-customer-card .tech-card-loading,
body.ui-modern:not(.tech-v2) .tech-specs-card .tech-card-loading,
body.ui-modern:not(.tech-v2) .tech-open-card .tech-card-loading,
body.ui-modern:not(.tech-v2) .tech-aux-card .tech-card-loading,
body.ui-modern:not(.tech-v2) .tech-eod-card .tech-card-loading {
    top: 138px;
    right: 18px;
    bottom: 18px;
    left: 18px;
    min-height: 220px;
    border: 1px solid rgba(20, 184, 166, 0.22);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 34%, #ffffff, #f0fdfa 46%, #e2e8f0),
        #ffffff;
    box-shadow: inset 0 1px rgba(255,255,255,0.9);
}

body.ui-modern:not(.tech-v2) .tech-menu-card .tech-card-loading {
    top: 96px;
    right: 18px;
    bottom: 18px;
    left: 18px;
}

body.ui-modern:not(.tech-v2) .tech-wizard-actions,
body.ui-modern:not(.tech-v2) .tech-pager {
    align-items: center;
}

body.ui-modern:not(.tech-v2) .tech-wizard-actions .small-action,
body.ui-modern:not(.tech-v2) .tech-wizard-actions .primary-action,
body.ui-modern:not(.tech-v2) .tech-pager .small-action {
    min-height: 44px !important;
    border-radius: 14px !important;
    font-size: 0.92rem !important;
}

body.ui-modern:not(.tech-v2) .tech-compact-choice,
body.ui-modern:not(.tech-v2) .tech-product-pick,
body.ui-modern:not(.tech-v2) .tech-result-card {
    border-radius: 14px;
}

body.ui-modern:not(.tech-v2) .tech-view-all-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.ui-modern:not(.tech-v2) .tech-view-all-product-grid .tech-view-all-product-pick {
    grid-template-columns: minmax(0, 1fr) 88px 108px 110px !important;
    gap: 10px !important;
    align-items: end;
    min-height: 112px !important;
    padding: 12px !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: inset 0 1px rgba(255,255,255,0.82), 0 2px 0 #a7b4c3;
}

body.ui-modern:not(.tech-v2) .tech-view-all-product-grid .tech-view-all-product-pick > div {
    align-self: stretch;
    align-content: center;
    gap: 4px;
    min-width: 0;
    padding-right: 34px;
}

body.ui-modern:not(.tech-v2) .tech-view-all-product-grid .tech-view-all-product-pick strong,
body.ui-modern:not(.tech-v2) .tech-view-all-product-grid .tech-view-all-product-pick span,
body.ui-modern:not(.tech-v2) .tech-view-all-product-grid .tech-view-all-product-pick small {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-view-all-product-grid .tech-view-all-product-pick strong {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.12;
}

body.ui-modern:not(.tech-v2) .tech-view-all-product-grid .tech-view-all-product-pick span,
body.ui-modern:not(.tech-v2) .tech-view-all-product-grid .tech-view-all-product-pick small {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 850;
}

body.ui-modern:not(.tech-v2) .tech-view-all-product-grid .tech-view-all-product-pick label {
    gap: 5px !important;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-view-all-product-grid .tech-view-all-product-pick input,
body.ui-modern:not(.tech-v2) .tech-view-all-product-grid .tech-view-all-product-pick .primary-action {
    min-height: 42px !important;
    padding: 7px 10px !important;
    font-size: 0.88rem !important;
}

body.ui-modern:not(.tech-v2) .tech-view-all-product-grid .tech-view-all-product-pick .primary-action {
    width: 100%;
    min-width: 0;
    max-width: none;
}

body.ui-modern:not(.tech-v2) .login-bay-panel .tech-work-card {
    max-height: calc((100vh - 112px) * var(--app-display-inverse, 1));
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 10px;
    align-items: stretch;
    min-height: 0;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main {
    min-width: 0;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-stepper {
    display: none !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-touch-nav-row {
    gap: 10px;
    grid-template-columns: minmax(120px, 132px) minmax(240px, 1fr) minmax(120px, 132px);
    margin: 2px 0 6px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-flow-focus-pill {
    min-height: 42px;
    padding: 4px 16px;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-flow-focus-pill strong {
    font-size: 0.98rem;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .login-brand {
    gap: 8px;
    min-height: 40px;
    margin-bottom: 4px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .brand-mark.large {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 0.78rem;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-brand h1 {
    font-size: 1.08rem;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-brand p {
    display: none;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-specs-menu-pill.tech-touch-nav-button {
    max-width: 132px;
    min-height: 40px;
    padding: 5px 8px;
    font-size: 0.76rem;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-touch-nav-button .app-icon {
    width: 15px;
    height: 15px;
    padding: 6px;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-section-head {
    margin: 6px 0 8px !important;
    padding: 7px 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-section-head span {
    font-size: 0.72rem;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-part-search-form {
    gap: 7px;
    margin: 0 0 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-part-search-form input,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-part-search-form .small-action {
    min-height: 36px !important;
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 58px !important;
    padding: 9px 11px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice strong {
    min-width: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.94rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice small {
    display: none !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice em {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    background: #059669;
    border-radius: 999px;
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.service-kind-oil {
    border-left-color: #f59e0b;
    background: linear-gradient(180deg, #ffffff, #fffbeb);
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.service-kind-check:not(.has-selection) {
    border-left-color: #64748b;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.has-selection {
    background: linear-gradient(180deg, #ecfdf5, #dcfce7);
    border-color: #86efac;
    border-left-color: #059669;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-compact-choice.has-stock:not(.has-selection),
body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-pick.has-stock:not(.is-selected) {
    background: linear-gradient(180deg, #ffffff, #fff7ed) !important;
    border-left-color: #f59e0b !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick {
    grid-template-columns: minmax(0, 1fr) 62px 84px 88px !important;
    gap: 7px !important;
    min-height: 62px !important;
    padding: 7px 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick > div {
    gap: 2px;
    padding-right: 30px;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick strong {
    font-size: 0.86rem;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick small {
    font-size: 0.68rem;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick label {
    gap: 2px !important;
    font-size: 0.62rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick input,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick .primary-action {
    min-height: 31px !important;
    padding: 4px 7px !important;
    font-size: 0.74rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-inline-product-pager {
    grid-template-columns: 118px minmax(0, 1fr) 118px;
    gap: 7px;
    min-height: 38px;
    margin-top: 6px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-inline-product-pager .small-action {
    min-height: 36px !important;
    padding: 6px 10px !important;
    border-radius: 12px !important;
    font-size: 0.78rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-inline-product-pager strong {
    color: #334155;
    font-size: 0.76rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-wizard-actions {
    justify-content: flex-end;
    margin-top: 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-wizard-actions .primary-action {
    min-width: 190px;
    min-height: 48px !important;
    font-size: 0.98rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-pick.is-selected,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick.is-selected {
    background: linear-gradient(180deg, #ecfdf5, #dcfce7) !important;
    border-color: #86efac !important;
    border-left-color: #059669 !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 rgba(5, 150, 105, 0.32) !important;
}

.tech-selected-product-mark {
    position: absolute;
    top: 8px;
    right: 40px;
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #ffffff;
    background: #059669;
    border: 1px solid #047857;
    border-radius: 999px;
    font-size: 0.82rem;
    line-height: 1;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
    padding: 11px;
    color: #0f172a;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #cbd5e1;
    border-left: 6px solid #c91f28;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #a7b4c3;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-head,
body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-head span,
body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot span {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-head strong,
body.ui-modern:not(.tech-v2) .tech-inline-invoice-head b {
    display: block;
    color: #0f172a;
    font-size: 0.94rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-head b {
    color: #065f46;
    font-size: 1.05rem;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-lines {
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 0;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    width: 100%;
    min-height: 56px;
    padding: 8px 10px;
    color: #0f172a;
    font: inherit;
    text-align: left;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    cursor: pointer;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line strong {
    grid-column: 1 / -1;
    min-width: 0;
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line span,
body.ui-modern:not(.tech-v2) .tech-inline-invoice-line small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line small {
    justify-self: end;
    color: #0f172a;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-empty {
    display: grid;
    place-items: center;
    min-height: 118px;
    padding: 12px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-empty strong {
    color: #0f172a;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-empty span {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 850;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 142px;
    min-height: 46px;
    padding: 11px 16px;
    color: #ffffff;
    background: linear-gradient(180deg, #c91f28, #991b1b);
    border: 1px solid #7f1d1d;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 950;
    text-decoration: none;
    box-shadow: inset 0 1px rgba(255,255,255,0.28), 0 2px 0 rgba(127, 29, 29, 0.42);
}

body.ui-modern:not(.tech-v2) .tech-inline-item-backdrop {
    z-index: 15000;
    display: grid;
    place-items: center;
    padding: 20px;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-modal {
    width: min(560px, calc(100vw - 56px));
    max-height: calc(100vh - 72px);
    overflow: hidden;
    padding: 16px;
    border-radius: 18px;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-modal .panel-heading {
    align-items: start;
    margin-bottom: 12px;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-modal .panel-heading h2 {
    margin: 2px 0;
    color: #0f172a;
    font-size: 1.08rem;
    line-height: 1.15;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-modal .panel-heading span {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-form label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-form input {
    min-height: 46px;
    padding: 9px 12px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 950;
    background: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 14px;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.08);
}

body.ui-modern:not(.tech-v2) .tech-inline-item-form .tech-inline-tax-check {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    min-height: 48px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-form .tech-inline-tax-check input[type="hidden"] {
    display: none;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-form .tech-inline-tax-check input[type="checkbox"] {
    width: 28px;
    height: 28px;
    min-height: 0;
    padding: 0;
    accent-color: #0d9488;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-form .modal-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 2px;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-form .modal-actions .small-action,
body.ui-modern:not(.tech-v2) .tech-inline-item-form .modal-actions .primary-action,
body.ui-modern:not(.tech-v2) .tech-inline-item-remove .small-action {
    min-width: 132px;
    min-height: 44px;
    padding: 8px 14px;
    font-size: 0.86rem;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-remove {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-remove .danger {
    color: #991b1b;
    background: linear-gradient(180deg, #fff5f5, #fee2e2);
    border-color: #fca5a5;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-remove .danger:hover,
body.ui-modern:not(.tech-v2) .tech-inline-item-remove .danger:focus-visible {
    color: #ffffff;
    background: linear-gradient(180deg, #dc2626, #991b1b);
    border-color: #7f1d1d;
}

@media (max-width: 980px) {
    body.ui-modern:not(.tech-v2) .tech-view-all-product-grid,
    body.ui-modern:not(.tech-v2) .tech-card .tech-touch-nav-row,
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell {
        grid-template-columns: 1fr;
    }

    body.ui-modern:not(.tech-v2) .tech-nav-side-action {
        justify-content: flex-start;
    }
}

body.ui-modern:not(.tech-v2) .tech-selection-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px;
    margin: 6px 0 8px;
}

body.ui-modern:not(.tech-v2) .tech-selected-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 9px;
    min-height: 64px;
    padding: 8px 10px;
    color: #0f172a;
    background: linear-gradient(180deg, #ffffff, #f3f7fb);
    border: 1px solid #bfd0e3;
    border-left: 6px solid #c91f28;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #9aaabc;
}

body.ui-modern:not(.tech-v2) .tech-selected-customer {
    border-left-color: #0d9488;
    background: linear-gradient(180deg, #ffffff, #eefdf8);
}

body.ui-modern:not(.tech-v2) .tech-selected-vehicle {
    border-left-color: #f59e0b;
}

body.ui-modern:not(.tech-v2) .tech-selected-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #0f766e;
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    border-radius: 12px;
}

body.ui-modern:not(.tech-v2) .tech-selected-card span,
body.ui-modern:not(.tech-v2) .tech-reward-heading > div small,
body.ui-modern:not(.tech-v2) .tech-reward-active-card small,
body.ui-modern:not(.tech-v2) .tech-reward-card small,
body.ui-modern:not(.tech-v2) .tech-reward-card em {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-selected-card strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 950;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-selected-card small {
    display: block;
    overflow: hidden;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-selection-clear {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #991b1b;
    font-size: 1rem;
    font-weight: 950;
    text-decoration: none;
    background: #fff7f7;
    border: 1px solid #fecaca;
    border-radius: 13px;
}

body.ui-modern:not(.tech-v2) .tech-selection-clear:hover,
body.ui-modern:not(.tech-v2) .tech-selection-clear:focus-visible {
    color: #ffffff;
    background: #c91f28;
    outline: none;
}

body.ui-modern:not(.tech-v2) .tech-reward-panel {
    display: grid;
    gap: 8px;
    margin: 6px 0 8px;
    padding: 9px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #cbd5e1;
    border-radius: 14px;
}

body.ui-modern:not(.tech-v2) .tech-reward-heading,
body.ui-modern:not(.tech-v2) .tech-reward-active-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    color: #065f46;
    font-weight: 950;
    background: #d1fae5;
    border: 1px solid #5eead4;
    border-radius: 12px;
}

body.ui-modern:not(.tech-v2) .tech-reward-heading strong,
body.ui-modern:not(.tech-v2) .tech-reward-active-card strong,
body.ui-modern:not(.tech-v2) .tech-reward-card strong {
    color: #0f172a;
    font-weight: 950;
    line-height: 1.12;
}

body.ui-modern:not(.tech-v2) .tech-reward-active-card {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) auto;
    padding: 8px;
    background: linear-gradient(180deg, #ecfdf5, #ffffff);
    border: 1px solid #99f6e4;
    border-radius: 12px;
}

body.ui-modern:not(.tech-v2) .tech-reward-meter {
    height: 16px;
    overflow: hidden;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 999px;
}

body.ui-modern:not(.tech-v2) .tech-reward-meter span {
    display: block;
    height: 100%;
    min-width: 6px;
    background: linear-gradient(90deg, #0d9488, #22c55e);
}

body.ui-modern:not(.tech-v2) .tech-reward-actions,
body.ui-modern:not(.tech-v2) .tech-reward-actions form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

body.ui-modern:not(.tech-v2) .tech-reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-reward-program-form {
    margin: 0;
}

body.ui-modern:not(.tech-v2) .tech-reward-card {
    display: grid;
    gap: 4px;
    width: 100%;
    min-height: 86px;
    padding: 10px 12px;
    text-align: left;
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    border: 1px solid #bfcede;
    border-left: 6px solid #0d9488;
    border-radius: 13px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #9aaabc;
    cursor: pointer;
}

body.ui-modern:not(.tech-v2) .tech-reward-card > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0f766e;
    font-size: 0.76rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-reward-card:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

body.ui-modern:not(.tech-v2) .tech-reward-note {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-reward-search-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: start;
    padding: 5px 8px;
    color: #065f46;
    font-style: normal;
    font-weight: 950;
    background: #d1fae5;
    border: 1px solid #5eead4;
    border-radius: 999px;
}

body.ui-modern:not(.tech-v2) .tech-reward-change-modal {
    width: min(860px, calc(100vw - 72px));
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selection-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selected-card {
    min-height: 54px;
    padding: 6px 8px;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selected-icon,
body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selection-clear {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-reward-panel {
    padding: 7px;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-reward-active-card {
    grid-template-columns: minmax(0, 1fr) 180px auto;
}

.owner-reward-line {
    grid-template-columns: minmax(260px, 1.2fr) 95px 150px minmax(190px, 1fr) 96px 110px;
}

.owner-reward-line.is-inactive {
    opacity: 0.66;
    border-left-color: #94a3b8;
}

.owner-reward-modal {
    width: min(1020px, calc(100vw - 72px));
}

.owner-screen-rewards .owner-reward-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-screen-rewards .owner-reward-form-grid .owner-wide {
    grid-column: 1 / -1;
}

.owner-screen-rewards .owner-reward-active-toggle {
    align-self: end;
    min-height: 40px;
}

@media (max-width: 980px) {
    body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selection-stack,
    body.ui-modern:not(.tech-v2) .tech-reward-active-card,
    .owner-reward-line,
    .owner-screen-rewards .owner-reward-form-grid {
        grid-template-columns: 1fr;
    }

    body.ui-modern:not(.tech-v2) .tech-reward-note,
    body.ui-modern:not(.tech-v2) .tech-reward-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

body.ui-modern:not(.tech-v2) .vehicle-specs-modal,
body:not(.ui-modern) .vehicle-specs-modal {
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1220px, calc((100vw - 64px) * var(--app-display-inverse, 1)));
    max-height: calc((100vh - 64px) * var(--app-display-inverse, 1));
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-unified-specs,
body:not(.ui-modern) .tech-unified-specs {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
    min-height: 0;
}

body.ui-modern:not(.tech-v2) .tech-spec-hero,
body:not(.ui-modern) .tech-spec-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #ffffff, #eefdf8);
    border: 1px solid #99f6e4;
    border-left: 7px solid #0d9488;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.86), 0 2px 0 rgba(15, 118, 110, 0.2);
}

body.ui-modern:not(.tech-v2) .tech-spec-hero span,
body:not(.ui-modern) .tech-spec-hero span {
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-spec-hero strong,
body:not(.ui-modern) .tech-spec-hero strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 1.04rem;
    font-weight: 950;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-spec-hero small,
body:not(.ui-modern) .tech-spec-hero small,
body.ui-modern:not(.tech-v2) .tech-spec-hero-meta,
body:not(.ui-modern) .tech-spec-hero-meta {
    color: #475569;
    font-size: 0.76rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-spec-hero-meta,
body:not(.ui-modern) .tech-spec-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

body.ui-modern:not(.tech-v2) .tech-spec-hero-meta span,
body:not(.ui-modern) .tech-spec-hero-meta span {
    max-width: 260px;
    padding: 5px 8px;
    overflow: hidden;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
}

body.ui-modern:not(.tech-v2) .tech-unified-spec-grid,
body:not(.ui-modern) .tech-unified-spec-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
    align-items: start;
    overflow: hidden;
}

body.ui-modern:not(.tech-v2) .tech-unified-spec-section,
body:not(.ui-modern) .tech-unified-spec-section {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    padding: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #cbd5e1;
    border-left: 6px solid #c91f28;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.86), 0 2px 0 #a7b4c3;
}

body.ui-modern:not(.tech-v2) .tech-spec-section-identity,
body:not(.ui-modern) .tech-spec-section-identity,
body.ui-modern:not(.tech-v2) .tech-spec-section-fluids,
body:not(.ui-modern) .tech-spec-section-fluids,
body.ui-modern:not(.tech-v2) .tech-spec-section-tires,
body:not(.ui-modern) .tech-spec-section-tires {
    grid-column: span 2;
}

body.ui-modern:not(.tech-v2) .tech-spec-section-fitments,
body:not(.ui-modern) .tech-spec-section-fitments {
    grid-column: 1 / -1;
}

body.ui-modern:not(.tech-v2) .tech-spec-section-catalog,
body:not(.ui-modern) .tech-spec-section-catalog {
    border-left-color: #2563eb;
}

body.ui-modern:not(.tech-v2) .tech-spec-section-oil,
body:not(.ui-modern) .tech-spec-section-oil {
    border-left-color: #f59e0b;
}

body.ui-modern:not(.tech-v2) .tech-spec-section-fluids,
body:not(.ui-modern) .tech-spec-section-fluids {
    border-left-color: #0d9488;
}

body.ui-modern:not(.tech-v2) .tech-spec-section-tires,
body:not(.ui-modern) .tech-spec-section-tires {
    border-left-color: #7c3aed;
}

body.ui-modern:not(.tech-v2) .tech-spec-section-fitments,
body:not(.ui-modern) .tech-spec-section-fitments {
    border-left-color: #059669;
    background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

body.ui-modern:not(.tech-v2) .tech-unified-spec-section header,
body:not(.ui-modern) .tech-unified-spec-section header {
    display: grid;
    gap: 1px;
    min-width: 0;
}

body.ui-modern:not(.tech-v2) .tech-unified-spec-section header span,
body:not(.ui-modern) .tech-unified-spec-section header span {
    color: #991b1b;
    font-size: 0.66rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-unified-spec-section header strong,
body:not(.ui-modern) .tech-unified-spec-section header strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 950;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-unified-spec-section header small,
body:not(.ui-modern) .tech-unified-spec-section header small {
    overflow: hidden;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-spec-line-list,
body:not(.ui-modern) .tech-spec-line-list {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body.ui-modern:not(.tech-v2) .tech-spec-section-identity .tech-spec-line-list,
body:not(.ui-modern) .tech-spec-section-identity .tech-spec-line-list,
body.ui-modern:not(.tech-v2) .tech-spec-section-fluids .tech-spec-line-list,
body:not(.ui-modern) .tech-spec-section-fluids .tech-spec-line-list,
body.ui-modern:not(.tech-v2) .tech-spec-section-tires .tech-spec-line-list,
body:not(.ui-modern) .tech-spec-section-tires .tech-spec-line-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.ui-modern:not(.tech-v2) .tech-spec-section-fitments .tech-spec-line-list,
body:not(.ui-modern) .tech-spec-section-fitments .tech-spec-line-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.ui-modern:not(.tech-v2) .tech-spec-line,
body:not(.ui-modern) .tech-spec-line {
    display: grid;
    grid-template-columns: minmax(72px, 0.45fr) minmax(0, 1fr);
    gap: 5px;
    align-items: start;
    min-width: 0;
    min-height: 25px;
    padding: 4px 6px;
    background: rgba(255,255,255,0.72);
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

body.ui-modern:not(.tech-v2) .tech-spec-section-fitments .tech-spec-line,
body:not(.ui-modern) .tech-spec-section-fitments .tech-spec-line {
    grid-template-columns: minmax(80px, 0.44fr) minmax(0, 1fr);
}

body.ui-modern:not(.tech-v2) .tech-spec-line span,
body:not(.ui-modern) .tech-spec-line span {
    color: #475569;
    font-size: 0.64rem;
    font-weight: 950;
    line-height: 1.12;
}

body.ui-modern:not(.tech-v2) .tech-spec-line strong,
body:not(.ui-modern) .tech-spec-line strong {
    min-width: 0;
    color: #111827;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.12;
    word-break: break-word;
}

body.ui-modern:not(.tech-v2) .tech-spec-section-fitments .tech-spec-line strong,
body:not(.ui-modern) .tech-spec-section-fitments .tech-spec-line strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-unified-specs {
    width: 100%;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-hero {
    padding: 6px 10px;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-hero strong {
    font-size: 0.92rem;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-hero small,
body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-hero-meta {
    font-size: 0.62rem;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-unified-spec-grid {
    gap: 6px;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-unified-spec-section {
    padding: 6px;
    gap: 4px;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-line-list {
    gap: 3px;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-section-catalog .tech-spec-line-list,
body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-section-oil .tech-spec-line-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-section-fluids .tech-spec-line-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-section-fitments .tech-spec-line-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-line {
    grid-template-columns: minmax(58px, 0.42fr) minmax(0, 1fr);
    min-height: 17px;
    padding: 2px 4px;
    border-radius: 7px;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-line span,
body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-line strong {
    font-size: 0.52rem;
    line-height: 1.04;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-unified-spec-section header strong {
    font-size: 0.72rem;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-unified-spec-section header small {
    font-size: 0.56rem;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-unified-spec-section header span {
    font-size: 0.58rem;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-action-row {
    margin-top: 6px;
}

body.ui-modern:not(.tech-v2) .tech-spec-launch-card,
body:not(.ui-modern) .tech-spec-launch-card {
    display: grid;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

body.ui-modern:not(.tech-v2) .tech-spec-launch-grid,
body:not(.ui-modern) .tech-spec-launch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-spec-launch-tile,
body:not(.ui-modern) .tech-spec-launch-tile {
    display: grid;
    align-content: center;
    gap: 3px;
    min-height: 58px;
    min-width: 0;
    padding: 7px 9px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #cbd5e1;
    border-left: 6px solid #c91f28;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.86), 0 2px 0 #a7b4c3;
}

body.ui-modern:not(.tech-v2) .tech-spec-launch-catalog,
body:not(.ui-modern) .tech-spec-launch-catalog {
    border-left-color: #2563eb;
}

body.ui-modern:not(.tech-v2) .tech-spec-launch-oil,
body:not(.ui-modern) .tech-spec-launch-oil {
    border-left-color: #f59e0b;
}

body.ui-modern:not(.tech-v2) .tech-spec-launch-fluids,
body:not(.ui-modern) .tech-spec-launch-fluids {
    border-left-color: #0d9488;
}

body.ui-modern:not(.tech-v2) .tech-spec-launch-tires,
body:not(.ui-modern) .tech-spec-launch-tires {
    border-left-color: #7c3aed;
}

body.ui-modern:not(.tech-v2) .tech-spec-launch-fitments,
body:not(.ui-modern) .tech-spec-launch-fitments {
    border-left-color: #059669;
    background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

body.ui-modern:not(.tech-v2) .tech-spec-launch-tile span,
body:not(.ui-modern) .tech-spec-launch-tile span {
    color: #991b1b;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-spec-launch-tile strong,
body:not(.ui-modern) .tech-spec-launch-tile strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 950;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-spec-launch-tile small,
body:not(.ui-modern) .tech-spec-launch-tile small {
    overflow: hidden;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-spec-launch-actions,
body:not(.ui-modern) .tech-spec-launch-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-spec-launch-actions .primary-action,
body.ui-modern:not(.tech-v2) .tech-spec-launch-actions .small-action,
body:not(.ui-modern) .tech-spec-launch-actions .primary-action,
body:not(.ui-modern) .tech-spec-launch-actions .small-action {
    min-height: 38px;
    padding: 6px 10px;
    max-width: none;
    font-size: 0.84rem;
    text-decoration: none;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-lookup-resolved,
body:not(.ui-modern) .tech-specs-card .tech-spec-lookup-resolved {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 6px;
    margin: 2px 0 5px !important;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-lookup-resolved label span,
body:not(.ui-modern) .tech-specs-card .tech-spec-lookup-resolved label span {
    display: none;
}

body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-lookup-resolved input,
body.ui-modern:not(.tech-v2) .tech-specs-card .tech-spec-lookup-resolved .primary-action,
body:not(.ui-modern) .tech-specs-card .tech-spec-lookup-resolved input,
body:not(.ui-modern) .tech-specs-card .tech-spec-lookup-resolved .primary-action {
    min-height: 28px !important;
    padding: 3px 8px !important;
    font-size: 0.74rem !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .panel-heading {
    gap: 10px;
    padding-bottom: 8px;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .vehicle-specs-heading h2 {
    font-size: 1.22rem;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .vehicle-specs-heading span {
    font-size: 0.78rem;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .vehicle-specs-close.small-action {
    min-height: 44px;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-hero {
    padding: 6px 9px;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-hero strong {
    font-size: 0.94rem;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-grid {
    gap: 5px;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section {
    gap: 3px;
    padding: 5px;
    border-radius: 11px;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section header strong {
    font-size: 0.74rem;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section header small {
    font-size: 0.58rem;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-line-list {
    gap: 2px;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-line {
    min-height: 18px;
    padding: 2px 4px;
    border-radius: 7px;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-line span,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-line strong {
    font-size: 0.54rem;
    line-height: 1.05;
}

@media (max-width: 1100px) {
    body.ui-modern:not(.tech-v2) .tech-unified-spec-grid,
    body:not(.ui-modern) .tech-unified-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.ui-modern:not(.tech-v2) .tech-spec-section-fitments .tech-spec-line-list,
    body:not(.ui-modern) .tech-spec-section-fitments .tech-spec-line-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body.ui-modern:not(.tech-v2) .tech-spec-hero,
    body:not(.ui-modern) .tech-spec-hero,
    body.ui-modern:not(.tech-v2) .tech-unified-spec-grid,
    body:not(.ui-modern) .tech-unified-spec-grid,
    body.ui-modern:not(.tech-v2) .tech-spec-section-identity .tech-spec-line-list,
    body:not(.ui-modern) .tech-spec-section-identity .tech-spec-line-list,
    body.ui-modern:not(.tech-v2) .tech-spec-section-fluids .tech-spec-line-list,
    body:not(.ui-modern) .tech-spec-section-fluids .tech-spec-line-list,
    body.ui-modern:not(.tech-v2) .tech-spec-section-tires .tech-spec-line-list,
    body:not(.ui-modern) .tech-spec-section-tires .tech-spec-line-list,
    body.ui-modern:not(.tech-v2) .tech-spec-section-fitments .tech-spec-line-list,
    body:not(.ui-modern) .tech-spec-section-fitments .tech-spec-line-list {
        grid-template-columns: 1fr;
    }

    body.ui-modern:not(.tech-v2) .tech-spec-section-identity,
    body:not(.ui-modern) .tech-spec-section-identity,
    body.ui-modern:not(.tech-v2) .tech-spec-section-fluids,
    body:not(.ui-modern) .tech-spec-section-fluids,
    body.ui-modern:not(.tech-v2) .tech-spec-section-tires,
    body:not(.ui-modern) .tech-spec-section-tires,
    body.ui-modern:not(.tech-v2) .tech-spec-section-fitments,
    body:not(.ui-modern) .tech-spec-section-fitments {
        grid-column: auto;
    }
}

body.ui-modern:not(.tech-v2) .tech-tpms-tires-section .tech-spec-line-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

body.ui-modern:not(.tech-v2) .tech-tpms-tires-section .tech-unified-spec-section {
    gap: 4px;
    margin: 0;
    padding: 6px 8px;
}

body.ui-modern:not(.tech-v2) .tech-tpms-tires-section .tech-spec-line {
    min-height: 30px;
    padding: 3px 6px;
}

body.ui-modern:not(.tech-v2) .tech-tpms-tires-section .tech-unified-spec-section header {
    gap: 0;
}

body.ui-modern:not(.tech-v2) .tech-tpms-tires-section .tech-unified-spec-section header strong {
    font-size: 0.78rem;
}

body.ui-modern:not(.tech-v2) .tech-tpms-tires-section .tech-unified-spec-section header small,
body.ui-modern:not(.tech-v2) .tech-tpms-tires-section .tech-spec-line span,
body.ui-modern:not(.tech-v2) .tech-tpms-tires-section .tech-spec-line strong {
    font-size: 0.62rem;
}

body.ui-modern:not(.tech-v2) .login-bay-panel .tech-tpms-service-card {
    max-height: calc((100vh - 34px) * var(--app-display-inverse, 1));
}

/* Automation terminal fit overrides. Keep these last so older viewport rules cannot win. */
.dashboard-page .dashboard-open-panel {
    max-height: 100%;
}

.dashboard-page .dashboard-open-list,
body.ui-modern .dashboard-page .dashboard-open-list {
    overflow: hidden;
    padding-right: 0;
    scrollbar-gutter: auto;
}

.dashboard-page .open-order-row,
body.ui-modern .dashboard-page .modern-open-order-row {
    min-height: 82px;
}

.settings-launch-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.settings-launch-button,
body.ui-modern .settings-launch-button {
    min-height: 168px;
    padding-inline: 28px;
}

.login-bay-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.bay-login-choice,
body.ui-modern .bay-login-choice,
body.ui-modern button.bay-login-choice:not(.selection-tile):not(.profile-status-tile) {
    min-height: 132px;
    padding: 22px 24px;
}

.vehicle-station .vehicle-odo-history-tile,
.vehicle-station.is-tight .vehicle-odo-history-tile,
.vehicle-station.is-ultra-tight .vehicle-odo-history-tile,
.vehicle-station.needs-scroll .vehicle-odo-history-tile {
    grid-column: 1 / -1;
    min-height: 96px;
    align-content: center;
    gap: 6px;
    overflow: visible;
}

.vehicle-station .detail-list .vehicle-odo-history-tile span,
.vehicle-station .detail-list .vehicle-odo-history-tile strong,
.vehicle-station .detail-list .vehicle-odo-history-tile small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.vehicle-station .detail-list .vehicle-odo-history-tile small {
    font-size: 0.72rem;
    line-height: 1.2;
}

.clockout-step {
    display: grid;
    gap: 12px;
}

.clockout-step[data-clockout-step="end"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clockout-confirm-text {
    margin: 0;
    padding: 14px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    font-weight: 900;
}

.clockout-step > button,
.clockout-step > form > button {
    width: 100%;
}

body.ui-modern:not(.tech-v2) .tech-selected-customer {
    grid-column: 1 / -1;
}

body.ui-modern:not(.tech-v2) .tech-selected-vehicle {
    grid-template-columns: 38px minmax(0, 1fr) 42px 42px;
}

body.ui-modern:not(.tech-v2) .tech-selection-edit {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #0f766e;
    background: linear-gradient(180deg, #ecfeff, #ccfbf1);
    border: 1px solid #5eead4;
    border-radius: 13px;
    box-shadow: inset 0 1px rgba(255,255,255,0.88), 0 2px 0 #7dd3fc;
    cursor: pointer;
}

body.ui-modern:not(.tech-v2) .tech-selection-edit .app-icon {
    width: 19px;
    height: 19px;
}

body.ui-modern:not(.tech-v2) .tech-selection-edit:hover,
body.ui-modern:not(.tech-v2) .tech-selection-edit:focus-visible {
    color: #ffffff;
    background: linear-gradient(180deg, #0f766e, #115e59);
    outline: none;
}

body.ui-modern:not(.tech-v2) .tech-edit-modal {
    width: min(840px, calc(100vw - 70px));
    max-height: min(650px, calc(100vh - 70px));
}

body.ui-modern:not(.tech-v2) .tech-edit-form {
    display: grid;
    gap: 12px;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selection-stack {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    margin: 6px 0 8px !important;
    align-items: stretch;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selected-card {
    min-width: 0;
    min-height: 66px !important;
    padding: 8px 10px !important;
    overflow: hidden;
    align-items: center;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selected-customer {
    grid-column: 1 / -1 !important;
    grid-template-columns: 44px minmax(0, 1fr) 140px 48px 48px !important;
    min-height: 72px !important;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selected-vehicle {
    grid-column: auto !important;
    grid-template-columns: 44px minmax(0, 1fr) 48px 48px !important;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selected-order {
    grid-column: auto !important;
    grid-template-columns: 44px minmax(0, 1fr) 48px !important;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selected-main {
    min-width: 0;
    display: grid;
    gap: 1px;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selected-icon,
body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selection-edit,
body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selection-clear {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 12px !important;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selection-reward {
    width: 132px !important;
    min-width: 132px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    align-self: center;
    color: #065f46 !important;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selection-reward span {
    color: inherit !important;
    font-size: 0.82rem !important;
    font-weight: 950 !important;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selected-card span {
    font-size: 0.75rem;
    line-height: 1;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selected-card strong {
    font-size: 0.98rem;
    line-height: 1.05;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-selected-card small {
    font-size: 0.72rem;
    line-height: 1.08;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-history-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-history-picker-grid .tech-result-card {
    min-height: 66px !important;
    padding: 8px 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-history-detail-grid {
    gap: 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-history-detail-card .tech-history-panel {
    min-width: 0;
}

body:not(.tech-v2) .tech-menu-card button.tech-menu-choice.success,
body:not(.tech-v2) .tech-menu-card .tech-open-order-choice,
body:not(.tech-v2) .tech-menu-card .tech-open-order-choice.has-open-orders {
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #fff5f5) !important;
    border-left-color: #c91f28 !important;
}

body:not(.tech-v2) .tech-menu-card button.tech-menu-choice.success .tech-v2-tile-icon,
body:not(.tech-v2) .tech-menu-card .tech-open-order-choice .tech-v2-tile-icon,
body:not(.tech-v2) .tech-menu-card .tech-open-order-choice.has-open-orders .tech-v2-tile-icon {
    color: #ffffff !important;
    background: linear-gradient(180deg, #d61f2a, #9f121d) !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.28), 0 8px 18px rgba(159, 18, 29, 0.24) !important;
}

body:not(.tech-v2) .tech-menu-card button.tech-menu-choice.success .tech-v2-tile-icon .app-icon,
body:not(.tech-v2) .tech-menu-card .tech-open-order-choice .tech-v2-tile-icon .app-icon {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

body:not(.tech-v2) .tech-menu-card button.tech-menu-choice.success strong {
    font-size: 1.38rem !important;
    line-height: 1.02 !important;
}

body:not(.tech-v2) .tech-menu-card .tech-open-order-choice strong {
    font-size: 1.18rem !important;
    line-height: 1.08 !important;
}

body:not(.tech-v2) .tech-menu-card button.tech-menu-choice.success span:not(.tech-v2-tile-icon) {
    color: #7f1d1d !important;
    font-size: 0.98rem !important;
    font-weight: 950 !important;
}

body:not(.tech-v2) .tech-menu-card .tech-open-order-choice span:not(.tech-v2-tile-icon) {
    color: #7f1d1d !important;
    font-weight: 900 !important;
}

body:not(.tech-v2) .tech-menu-card .tech-open-order-choice.has-open-orders .tech-menu-count-badge {
    color: #fff7f7 !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.25), transparent 38%),
        linear-gradient(180deg, #d61f2a, #9f121d) !important;
    border-color: #fecaca !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.34), 0 3px 0 #7f1d1d, 0 10px 24px rgba(159, 18, 29, 0.24) !important;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selection-stack {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    margin: 6px 0 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selected-customer {
    grid-column: 1 / -1 !important;
    grid-template-columns: 44px minmax(0, 1fr) 132px 44px 44px !important;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selected-vehicle {
    grid-column: auto !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px 44px !important;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selected-order {
    grid-column: auto !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selected-card {
    min-width: 0;
    min-height: 64px !important;
    padding: 8px 10px !important;
    overflow: hidden;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selected-main {
    min-width: 0;
    display: grid;
    gap: 1px;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selected-icon,
body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selection-edit,
body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selection-clear {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 12px !important;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-selection-reward {
    width: 126px !important;
    min-width: 126px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-customer-card .tech-history-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
}

body.ui-modern:not(.tech-v2) .tech-history-order-form,
body:not(.ui-modern):not(.tech-v2) .tech-history-order-form {
    display: block;
    min-width: 0;
    margin: 0;
}

body.ui-modern:not(.tech-v2) .tech-history-order-card,
body:not(.ui-modern):not(.tech-v2) .tech-history-order-card {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    max-width: none;
    text-align: left;
    cursor: pointer;
}

body.ui-modern:not(.tech-v2) .tech-history-order-card em,
body:not(.ui-modern):not(.tech-v2) .tech-history-order-card em {
    justify-self: start;
    margin-top: 2px;
    padding: 3px 9px;
    color: #075e52;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
    background: #dcfce7;
    border: 1px solid #20c997;
    border-radius: 999px;
}

body:not(.tech-v2) .tech-open-card .tech-open-order-grid {
    grid-template-columns: repeat(4, minmax(230px, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch;
    justify-content: stretch !important;
    justify-items: stretch;
}

body:not(.tech-v2) .tech-open-card .tech-open-order-card {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    align-content: start;
    gap: 5px;
    width: 100%;
    max-width: none !important;
    min-width: 0;
    min-height: 108px !important;
    padding: 14px 16px !important;
    color: #111827;
    background: linear-gradient(180deg, #ffffff, #eef3f8);
    border: 1px solid #b8c5d3;
    border-left: 7px solid #b91c1c;
    border-radius: 14px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #94a3b8;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

body:not(.tech-v2) .tech-open-card .tech-open-order-card:hover,
body:not(.tech-v2) .tech-open-card .tech-open-order-card:focus-visible {
    background: linear-gradient(180deg, #ffffff, #e8eef5);
    border-color: #9fb0c2;
    outline: 4px solid rgba(250, 204, 21, 0.24);
    outline-offset: 2px;
    transform: translateY(-1px);
}

body:not(.tech-v2) .tech-open-card .tech-open-order-card strong {
    overflow: hidden;
    color: #111827;
    font-size: 1.12rem !important;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:not(.tech-v2) .tech-open-card .tech-open-order-card span,
body:not(.tech-v2) .tech-open-card .tech-open-order-card small {
    overflow: hidden;
    color: #5f7085;
    font-size: 0.82rem !important;
    font-weight: 850;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:not(.tech-v2) .tech-open-card .tech-open-order-card span {
    color: #0f172a;
    font-weight: 950;
}

@media (max-width: 1100px) {
    body:not(.tech-v2) .tech-open-card .tech-open-order-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

body.ui-modern:not(.tech-v2) .tech-open-order-modal {
    width: min(640px, calc(100vw - 80px));
}

body.ui-modern:not(.tech-v2) .tech-open-order-modal-summary {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #d7e3f1;
    border-left: 6px solid #c91f28;
    border-radius: 12px;
}

body.ui-modern:not(.tech-v2) .tech-open-order-modal-summary strong {
    font-size: 1rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-open-order-modal-summary span {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-open-order-modal-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

body.ui-modern:not(.tech-v2) .tech-open-order-big-action {
    display: grid;
    align-content: center;
    gap: 5px;
    min-height: 104px;
    padding: 18px;
    color: #0f172a;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(180deg, #ffffff, #eef3f8);
    border: 1px solid #b8c5d3;
    border-left: 8px solid #b91c1c;
    border-radius: 16px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 3px 0 #94a3b8;
}

body.ui-modern:not(.tech-v2) .tech-open-order-big-action.primary {
    color: #064e3b;
    background: linear-gradient(180deg, #ecfdf5, #ffffff);
    border-left-color: #0f766e;
}

body.ui-modern:not(.tech-v2) .tech-open-order-big-action.danger {
    color: #7f1d1d;
    background: linear-gradient(180deg, #fff7f7, #ffffff);
}

body.ui-modern:not(.tech-v2) .tech-open-order-big-action:hover,
body.ui-modern:not(.tech-v2) .tech-open-order-big-action:focus-visible {
    outline: 4px solid rgba(250, 204, 21, 0.24);
    outline-offset: 2px;
    transform: translateY(-1px);
}

body.ui-modern:not(.tech-v2) .tech-open-order-big-action strong {
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1.05;
}

body.ui-modern:not(.tech-v2) .tech-open-order-big-action span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.15;
}

body.ui-modern:not(.tech-v2) .tech-open-order-void-form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    background: linear-gradient(180deg, #fff7f7, #ffffff);
    border: 1px solid #fecaca;
    border-left: 8px solid #dc2626;
    border-radius: 16px;
}

body.ui-modern:not(.tech-v2) .tech-open-order-void-form[hidden] {
    display: none !important;
}

body.ui-modern:not(.tech-v2) .tech-open-order-void-head {
    display: grid;
    gap: 3px;
}

body.ui-modern:not(.tech-v2) .tech-open-order-void-head strong {
    color: #7f1d1d;
    font-size: 1.05rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-open-order-void-head span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-open-order-void-fields {
    display: grid;
    grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1.28fr);
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-open-order-void-form label {
    display: grid;
    gap: 4px;
    color: #7f1d1d;
    font-size: 0.76rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-open-order-void-form input {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #fca5a5;
    border-radius: 10px;
}

body.ui-modern:not(.tech-v2) .tech-open-order-void-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-open-order-void-actions .small-action,
body.ui-modern:not(.tech-v2) .tech-open-order-void-actions .primary-action {
    width: 100%;
    max-width: none;
    min-height: 48px;
}

body.ui-modern:not(.tech-v2) .tech-open-order-void-actions .primary-action.danger {
    color: #ffffff;
    background: linear-gradient(180deg, #dc2626, #991b1b);
    border-color: #fecaca;
}

body.ui-modern:not(.tech-v2) .tech-eod-print-report {
    color: #111827;
    background: #ffffff;
}

body.ui-modern:not(.tech-v2) .tech-eod-print-report .tech-eod-print-title,
body.ui-modern:not(.tech-v2) .tech-eod-print-report .tech-eod-print-meta {
    display: grid;
    gap: 2px;
}

body.ui-modern:not(.tech-v2) .tech-eod-print-report .tech-eod-print-meta {
    text-align: right;
    color: #475569;
    font-size: 7.6pt;
    font-weight: 800;
}

body.ui-modern:not(.tech-v2) .tech-eod-print-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    margin: 8px 0;
}

body.ui-modern:not(.tech-v2) .tech-eod-print-kpi-grid div {
    min-height: 42px;
    padding: 6px 7px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #0f766e;
    border-radius: 5px;
}

body.ui-modern:not(.tech-v2) .tech-eod-print-kpi-grid span {
    display: block;
    color: #64748b;
    font-size: 6.8pt;
    font-weight: 900;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-eod-print-kpi-grid strong {
    display: block;
    margin-top: 2px;
    color: #0f172a;
    font-size: 10.2pt;
    font-weight: 950;
}

@media print {
    body.printing-daily-report .tech-eod-print-report {
        box-sizing: border-box;
    }

    body.printing-daily-report .tech-eod-print-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    body.printing-daily-report .tech-eod-print-kpi-grid div {
        min-height: 34px;
        padding: 4px 5px;
        break-inside: avoid;
    }
}

body.ui-modern:not(.tech-v2) .tech-edit-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-edit-form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.ui-modern:not(.tech-v2) .tech-edit-form-grid label {
    display: grid;
    gap: 5px;
    color: #1f2937;
    font-size: 0.82rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-edit-form-grid label.wide {
    grid-column: span 2;
}

body.ui-modern:not(.tech-v2) .tech-edit-form-grid input {
    min-height: 46px;
    padding: 9px 12px;
    color: #111827;
    font-size: 1rem;
    font-weight: 900;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: inset 0 1px 4px rgba(15,23,42,0.08);
}

body.ui-modern:not(.tech-v2) .tech-edit-form-grid input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18), inset 0 1px 4px rgba(15,23,42,0.08);
    outline: none;
}

body.ui-modern:not(.tech-v2) .tech-edit-vehicle-summary {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    color: #0f172a;
    background: linear-gradient(180deg, #f8fafc, #eef6ff);
    border: 1px solid #cbd5e1;
    border-radius: 14px;
}

body.ui-modern:not(.tech-v2) .tech-edit-vehicle-summary strong {
    font-size: 1rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-edit-vehicle-summary span {
    color: #64748b;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .vehicle-specs-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-service-map-trigger {
    color: #064e3b;
    background: linear-gradient(180deg, #d1fae5, #a7f3d0);
    border-color: #34d399;
}

body.ui-modern:not(.tech-v2) .tech-service-map-modal {
    width: min(1120px, calc(100vw - 48px));
    max-height: min(760px, calc(100vh - 48px));
}

body.ui-modern:not(.tech-v2) .tech-service-map {
    display: grid;
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-service-map-summary {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-service-map-summary > div,
body.ui-modern:not(.tech-v2) .tech-service-map-stat {
    display: grid;
    align-content: center;
    min-height: 64px;
    padding: 9px 12px;
    background: linear-gradient(180deg, #ffffff, #f3f7fb);
    border: 1px solid #cbd5e1;
    border-left: 5px solid #0f766e;
    border-radius: 14px;
}

body.ui-modern:not(.tech-v2) .tech-service-map-summary span,
body.ui-modern:not(.tech-v2) .tech-service-map-summary small {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-service-map-summary strong {
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas {
    padding: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas svg {
    display: block;
    width: 100%;
    max-height: 430px;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas text {
    font-family: inherit;
    fill: #111827;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-title {
    font-size: 29px;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-subtitle,
body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-zone text:nth-of-type(2) {
    fill: #64748b;
    font-size: 18px;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-pill {
    fill: #0f766e;
    font-size: 24px;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-zone rect {
    fill: #ffffff;
    stroke: #b6c7d8;
    stroke-width: 3;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-zone text:first-of-type,
body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-marker text {
    font-size: 18px;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-marker circle {
    fill: #c91f28;
    stroke: #ffffff;
    stroke-width: 4;
}

body.ui-modern:not(.tech-v2) .tech-service-map-notes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-service-map-notes article {
    display: grid;
    gap: 4px;
    padding: 9px 10px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
}

body.ui-modern:not(.tech-v2) .tech-service-map-notes strong {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-service-map-notes span,
body.ui-modern:not(.tech-v2) .tech-service-map-footnote {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.2;
}

body.ui-modern:not(.tech-v2) .tech-service-map-footnote {
    margin: 0;
    text-align: center;
}

body.ui-modern.app-chrome-hidden .modal-backdrop,
body.app-chrome-hidden .modal-backdrop,
body.ui-modern:not(.tech-v2) .tech-service-map-backdrop,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-backdrop,
body.ui-modern:not(.tech-v2) .tech-edit-backdrop,
body.ui-modern:not(.tech-v2) .tech-rewards-backdrop {
    z-index: 30000 !important;
}

body.ui-modern:not(.tech-v2) .tech-service-map-modal {
    width: min(1280px, calc(100vw - 46px));
    max-height: calc(100vh - 36px);
    padding: 18px 20px;
    overflow: hidden;
}

body.ui-modern:not(.tech-v2) .tech-service-map-modal .tech-service-map-heading {
    min-height: 58px;
    padding-bottom: 8px;
}

body.ui-modern:not(.tech-v2) .tech-service-map-modal .tech-service-map-heading h2 {
    font-size: 1.18rem;
}

body.ui-modern:not(.tech-v2) .tech-service-map-modal .tech-service-map-heading span {
    font-size: 0.76rem;
}

body.ui-modern:not(.tech-v2) .tech-service-map {
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-service-map-summary > div,
body.ui-modern:not(.tech-v2) .tech-service-map-stat {
    min-height: 58px;
    padding: 8px 11px;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas {
    padding: 7px;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas svg {
    max-height: 390px;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-flow-bg {
    stroke: #cbd5e1;
    stroke-width: 3;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-flow-line,
body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-flow-arrow {
    fill: none;
    stroke: #7890a8;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-flow-node rect {
    fill: #ffffff;
    stroke: #b9c9da;
    stroke-width: 3;
    filter: drop-shadow(0 3px 2px rgba(15, 23, 42, 0.08));
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-flow-root rect {
    fill: #fff7ed;
    stroke: #f59e0b;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-flow-section rect {
    fill: #ecfdf5;
    stroke: #0f766e;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-flow-leaf rect {
    fill: #f8fafc;
    stroke: #c5d2e1;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-flow-node .node-title {
    fill: #111827;
    font-size: 18px;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas .map-flow-node .node-subtitle {
    fill: #64748b;
    font-size: 14px;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-service-map-notes article {
    min-height: 58px;
    padding: 8px 10px;
}

body.ui-modern:not(.tech-v2) .tech-service-map-footnote {
    font-size: 0.68rem;
}

@media (max-width: 900px) {
    body.ui-modern:not(.tech-v2) .tech-edit-form-grid,
    body.ui-modern:not(.tech-v2) .tech-edit-form-grid.two,
    body.ui-modern:not(.tech-v2) .tech-service-map-summary,
    body.ui-modern:not(.tech-v2) .tech-service-map-notes {
        grid-template-columns: 1fr;
    }

    body.ui-modern:not(.tech-v2) .tech-edit-form-grid label.wide {
        grid-column: auto;
    }
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-payment-hero-strip,
body:not(.ui-modern) .tech-payment-hero-strip {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: 6px 0 8px;
    padding: 9px 12px;
    color: #0f172a;
    background: linear-gradient(180deg, #f8fafc, #edf6f4);
    border: 1px solid #b8c9d7;
    border-left: 8px solid #0f766e;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 rgba(100,116,139,0.28);
}

body.ui-modern:not(.tech-v2) .tech-payment-hero-strip div,
body:not(.ui-modern) .tech-payment-hero-strip div {
    display: grid;
    gap: 1px;
}

body.ui-modern:not(.tech-v2) .tech-payment-hero-strip span,
body:not(.ui-modern) .tech-payment-hero-strip span {
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-payment-hero-strip strong,
body:not(.ui-modern) .tech-payment-hero-strip strong {
    color: #064e3b;
    font-size: 1.55rem;
    font-weight: 950;
    line-height: 1;
}

body.ui-modern:not(.tech-v2) .tech-payment-hero-strip small,
body:not(.ui-modern) .tech-payment-hero-strip small {
    overflow: hidden;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-payment-desk,
body:not(.ui-modern) .tech-payment-desk {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 12px !important;
    align-items: stretch;
    margin-top: 0 !important;
}

body.ui-modern:not(.tech-v2) .tech-payment-panel,
body:not(.ui-modern) .tech-payment-panel {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff, #f3f7fa);
    border: 1px solid #c3d0dd;
    border-radius: 15px;
    box-shadow: inset 0 1px rgba(255,255,255,0.92), 0 2px 0 rgba(148,163,184,0.38);
}

body.ui-modern:not(.tech-v2) .tech-payment-panel-head,
body:not(.ui-modern) .tech-payment-panel-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
}

body.ui-modern:not(.tech-v2) .tech-payment-panel-head > span,
body:not(.ui-modern) .tech-payment-panel-head > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: #b91c1c;
    border-radius: 12px;
    box-shadow: inset 0 1px rgba(255,255,255,0.2), 0 2px 0 rgba(127,29,29,0.32);
}

body.ui-modern:not(.tech-v2) .tech-payment-panel-head .app-icon,
body:not(.ui-modern) .tech-payment-panel-head .app-icon {
    width: 1.1rem;
    height: 1.1rem;
}

body.ui-modern:not(.tech-v2) .tech-payment-panel-head strong,
body:not(.ui-modern) .tech-payment-panel-head strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.05;
}

body.ui-modern:not(.tech-v2) .tech-payment-panel-head small,
body:not(.ui-modern) .tech-payment-panel-head small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.15;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-sticker-fields,
body:not(.ui-modern) .tech-sticker-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-sticker-fields label,
body:not(.ui-modern) .tech-sticker-fields label {
    min-width: 0;
    gap: 4px !important;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-sticker-fields input,
body:not(.ui-modern) .tech-sticker-fields input {
    min-height: 42px !important;
    padding: 7px 10px !important;
    font-size: 1rem;
    font-weight: 950;
    background: #fff7ed;
    border-color: #f59e0b;
}

body.ui-modern:not(.tech-v2) .tech-print-choice-grid,
body:not(.ui-modern) .tech-print-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

body.ui-modern:not(.tech-v2) .tech-print-choice,
body:not(.ui-modern) .tech-print-choice {
    display: grid;
    justify-items: start;
    gap: 3px;
    min-height: 64px;
    padding: 10px 12px;
    color: #0f172a;
    cursor: pointer;
    background: linear-gradient(180deg, #ffffff, #eef6fb);
    border: 1px solid #b8c5d3;
    border-left: 6px solid #0f766e;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.92), 0 2px 0 rgba(100,116,139,0.35);
}

body.ui-modern:not(.tech-v2) .tech-print-choice:hover,
body:not(.ui-modern) .tech-print-choice:hover {
    border-color: #0f766e;
    transform: translateY(-1px);
}

body.ui-modern:not(.tech-v2) .tech-print-choice strong,
body:not(.ui-modern) .tech-print-choice strong {
    font-size: 0.95rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-print-choice span,
body:not(.ui-modern) .tech-print-choice span {
    overflow: hidden;
    max-width: 100%;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-payment-note,
body:not(.ui-modern) .tech-payment-note {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
}

body.ui-modern:not(.tech-v2) .tech-payment-note strong,
body:not(.ui-modern) .tech-payment-note strong {
    color: #0f172a;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-payment-note span,
body:not(.ui-modern) .tech-payment-note span {
    font-size: 0.76rem;
    font-weight: 800;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-payment-method-panel .tech-payment-grid,
body:not(.ui-modern) .tech-payment-method-panel .tech-payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px !important;
    margin: 0 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-payment-method-panel .payment-choice,
body:not(.ui-modern) .tech-payment-method-panel .payment-choice {
    min-height: 58px !important;
    border-left: 6px solid #b91c1c;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-payment-method-panel .payment-choice.selected,
body:not(.ui-modern) .tech-payment-method-panel .payment-choice.selected,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-payment-method-panel .payment-choice:has(input:checked),
body:not(.ui-modern) .tech-payment-method-panel .payment-choice:has(input:checked) {
    color: #064e3b;
    background: linear-gradient(180deg, #ecfdf5, #ffffff);
    border-color: #0f766e;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-payment-method-panel .payment-reference-field,
body:not(.ui-modern) .tech-payment-method-panel .payment-reference-field {
    margin: 0;
}

body.ui-modern:not(.tech-v2) .tech-payment-final-actions,
body:not(.ui-modern) .tech-payment-final-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 10px !important;
    margin: 0 !important;
}

body.ui-modern:not(.tech-v2) .tech-payment-final-actions .primary-action,
body:not(.ui-modern) .tech-payment-final-actions .primary-action,
body.ui-modern:not(.tech-v2) .tech-payment-final-actions .small-action,
body:not(.ui-modern) .tech-payment-final-actions .small-action {
    width: 100%;
    max-width: none;
    min-height: 50px !important;
    font-size: 0.96rem !important;
}

@media (max-width: 980px) {
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-payment-desk,
    body:not(.ui-modern) .tech-payment-desk,
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-sticker-fields,
    body:not(.ui-modern) .tech-sticker-fields,
    body.ui-modern:not(.tech-v2) .tech-payment-hero-strip,
    body:not(.ui-modern) .tech-payment-hero-strip {
        grid-template-columns: 1fr;
    }
}

@media print {
    body.printing-invoice .tech-print-receipt {
        position: fixed;
        inset: 0;
        display: block !important;
        width: auto;
        min-height: auto;
        padding: 0.18in;
        color: #111827;
        background: #ffffff;
        font-family: Arial, Helvetica, sans-serif;
    }

    body.printing-invoice .tech-print-receipt-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.2in;
        padding-bottom: 0.12in;
        border-bottom: 2px solid #111827;
    }

    body.printing-invoice .tech-print-receipt-header div {
        display: grid;
        gap: 0.03in;
    }

    body.printing-invoice .tech-print-receipt-header strong {
        font-size: 19pt;
        font-weight: 900;
    }

    body.printing-invoice .tech-print-receipt-header span,
    body.printing-invoice .tech-print-receipt-header small {
        color: #4b5563;
        font-size: 9pt;
        font-weight: 700;
    }

    body.printing-invoice .tech-print-receipt-header b {
        font-size: 13pt;
    }

    body.printing-invoice .tech-print-receipt-meta {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.1in;
        margin: 0.14in 0;
    }

    body.printing-invoice .tech-print-receipt-meta div {
        display: grid;
        gap: 0.03in;
        min-width: 0;
        padding: 0.08in;
        border: 1px solid #cbd5e1;
    }

    body.printing-invoice .tech-print-receipt-meta span,
    body.printing-invoice .tech-print-receipt-meta small {
        overflow: hidden;
        color: #4b5563;
        font-size: 8.5pt;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.printing-invoice .tech-print-receipt-meta strong {
        overflow: hidden;
        font-size: 10pt;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.printing-invoice .tech-print-receipt-items {
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
    }

    body.printing-invoice .tech-print-receipt-items th,
    body.printing-invoice .tech-print-receipt-items td {
        padding: 0.07in;
        border-bottom: 1px solid #d1d5db;
        text-align: left;
        vertical-align: top;
    }

    body.printing-invoice .tech-print-receipt-items th:nth-child(n+2),
    body.printing-invoice .tech-print-receipt-items td:nth-child(n+2) {
        width: 0.7in;
        text-align: right;
        white-space: nowrap;
    }

    body.printing-invoice .tech-print-receipt-footer {
        display: grid;
        gap: 0.12in;
        margin-top: 0.16in;
        padding-top: 0.12in;
        border-top: 2px solid #111827;
    }

    body.printing-invoice .tech-print-receipt-totals {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.08in;
        align-items: center;
    }

    body.printing-invoice .tech-print-receipt-totals span,
    body.printing-invoice .tech-print-receipt-totals b {
        display: flex;
        justify-content: space-between;
        gap: 0.08in;
        padding: 0.08in;
        background: #f8fafc;
        border: 1px solid #cbd5e1;
        font-size: 10pt;
        font-weight: 900;
    }

    body.printing-invoice .tech-print-receipt-totals b {
        color: #065f46;
        background: #ecfdf5;
        border-color: #10b981;
        font-size: 12pt;
    }

    body.printing-invoice .tech-print-receipt-footer p {
        margin: 0;
        color: #4b5563;
        font-size: 8.5pt;
        font-weight: 700;
        text-align: center;
    }

    body.printing-invoice-thermal .tech-print-receipt {
        inset: 0 auto auto 0;
        width: 80mm;
        max-width: 80mm;
        min-height: 0;
        padding: 2.8mm;
        font-family: "Courier New", Courier, monospace;
    }

    body.printing-invoice-thermal .tech-print-receipt-header {
        display: grid;
        gap: 1.2mm;
        padding-bottom: 2mm;
        border-bottom: 1px dashed #111827;
        text-align: center;
    }

    body.printing-invoice-thermal .tech-print-receipt-header div {
        justify-items: center;
    }

    body.printing-invoice-thermal .tech-print-receipt-header strong {
        font-size: 13pt;
        line-height: 1;
        text-transform: uppercase;
    }

    body.printing-invoice-thermal .tech-print-receipt-header b {
        font-size: 9pt;
    }

    body.printing-invoice-thermal .tech-print-receipt-header span,
    body.printing-invoice-thermal .tech-print-receipt-header small {
        font-size: 7.5pt;
    }

    body.printing-invoice-thermal .tech-print-receipt-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1mm;
        margin: 2mm 0;
    }

    body.printing-invoice-thermal .tech-print-receipt-meta div {
        padding: 0 0 1mm;
        border: 0;
        border-bottom: 1px dashed #d1d5db;
    }

    body.printing-invoice-thermal .tech-print-receipt-meta span,
    body.printing-invoice-thermal .tech-print-receipt-meta strong,
    body.printing-invoice-thermal .tech-print-receipt-meta small {
        font-size: 7.6pt;
        white-space: normal;
    }

    body.printing-invoice-thermal .tech-print-receipt-meta span {
        text-transform: uppercase;
    }

    body.printing-invoice-thermal .tech-print-receipt-items {
        font-size: 7.8pt;
        line-height: 1.2;
    }

    body.printing-invoice-thermal .tech-print-receipt-items th,
    body.printing-invoice-thermal .tech-print-receipt-items td {
        padding: 1mm 0;
        border-bottom: 1px dashed #d1d5db;
    }

    body.printing-invoice-thermal .tech-print-receipt-items th:nth-child(3),
    body.printing-invoice-thermal .tech-print-receipt-items td:nth-child(3) {
        display: none;
    }

    body.printing-invoice-thermal .tech-print-receipt-items th:nth-child(2),
    body.printing-invoice-thermal .tech-print-receipt-items td:nth-child(2) {
        width: 10mm;
    }

    body.printing-invoice-thermal .tech-print-receipt-items th:nth-child(4),
    body.printing-invoice-thermal .tech-print-receipt-items td:nth-child(4) {
        width: 18mm;
    }

    body.printing-invoice-thermal .tech-print-receipt-footer {
        gap: 2mm;
        margin-top: 2mm;
        padding-top: 2mm;
        border-top: 1px dashed #111827;
    }

    body.printing-invoice-thermal .tech-print-receipt-totals {
        grid-template-columns: 1fr;
        gap: 1mm;
    }

    body.printing-invoice-thermal .tech-print-receipt-totals span,
    body.printing-invoice-thermal .tech-print-receipt-totals b {
        padding: 0;
        background: transparent;
        border: 0;
        font-size: 8.5pt;
    }

    body.printing-invoice-thermal .tech-print-receipt-totals b {
        padding-top: 1mm;
        border-top: 1px dashed #111827;
        font-size: 10.5pt;
    }

    body.printing-invoice-thermal .tech-print-receipt-footer p {
        font-size: 7.3pt;
        line-height: 1.25;
    }

    body.printing-sticker .printable-sticker {
        position: fixed;
        inset: 0 auto auto 0;
        width: 3.5in;
        height: 2.15in;
        padding: 0;
    }

    body.printing-sticker .tech-service-sticker {
        display: grid;
        grid-template-rows: auto auto 1fr auto auto auto;
        width: 3.5in;
        height: 2.15in;
        padding: 0.12in 0.14in;
        align-content: center;
        gap: 0.035in;
        overflow: hidden;
        border: 2px solid #111827;
        border-radius: 0.12in;
        text-align: center;
    }

    body.printing-sticker .tech-service-sticker strong {
        font-size: 13pt;
        line-height: 1;
        text-transform: uppercase;
    }

    body.printing-sticker .tech-service-sticker span {
        color: #4b5563;
        font-size: 8.5pt;
        font-weight: 900;
        text-transform: uppercase;
    }

    body.printing-sticker .tech-service-sticker b {
        color: #b91c1c;
        font-size: 27pt;
        line-height: 0.95;
    }

    body.printing-sticker .tech-service-sticker small {
        overflow: hidden;
        color: #111827;
        font-size: 7.6pt;
        font-weight: 800;
        line-height: 1.05;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

body.ui-modern:not(.tech-v2).app-chrome-hidden .login-bay-panel.tech-panel,
body:not(.ui-modern):not(.tech-v2).app-chrome-hidden .login-bay-panel.tech-panel {
    display: grid !important;
    align-items: center !important;
    justify-items: center !important;
    place-items: center !important;
    min-height: calc(100vh * var(--app-display-inverse, 1));
    min-height: calc(100dvh * var(--app-display-inverse, 1));
    padding-top: calc(64px * var(--app-display-inverse, 1)) !important;
    padding-right: calc(24px * var(--app-display-inverse, 1)) !important;
    padding-bottom: calc(64px * var(--app-display-inverse, 1)) !important;
    padding-left: calc(24px * var(--app-display-inverse, 1)) !important;
}

body.ui-modern:not(.tech-v2).app-chrome-hidden .login-bay-panel.tech-panel .tech-card,
body:not(.ui-modern):not(.tech-v2).app-chrome-hidden .login-bay-panel.tech-panel .tech-card {
    max-height: calc((100vh - 128px) * var(--app-display-inverse, 1)) !important;
    max-height: calc((100dvh - 128px) * var(--app-display-inverse, 1)) !important;
}

body.ui-modern:not(.tech-v2).app-chrome-hidden .login-bay-panel.tech-panel .tech-work-card,
body:not(.ui-modern):not(.tech-v2).app-chrome-hidden .login-bay-panel.tech-panel .tech-work-card {
    min-height: min(610px, calc((100vh - 128px) * var(--app-display-inverse, 1))) !important;
    min-height: min(610px, calc((100dvh - 128px) * var(--app-display-inverse, 1))) !important;
}

body.ui-modern:not(.tech-v2) .tech-open-order-confirm-card,
body:not(.ui-modern):not(.tech-v2) .tech-open-order-confirm-card {
    display: grid;
    gap: 14px;
    max-width: 920px;
    margin: 18px auto 0;
    padding: 18px;
    color: #0f172a;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #c4d2df;
    border-left: 10px solid #b91c1c;
    border-radius: 18px;
    box-shadow: inset 0 1px rgba(255,255,255,0.92), 0 4px 0 rgba(100,116,139,0.38);
}

body.ui-modern:not(.tech-v2) .tech-open-order-confirm-main,
body:not(.ui-modern):not(.tech-v2) .tech-open-order-confirm-main {
    display: grid;
    gap: 4px;
}

body.ui-modern:not(.tech-v2) .tech-open-order-confirm-main .eyebrow,
body:not(.ui-modern):not(.tech-v2) .tech-open-order-confirm-main .eyebrow {
    justify-self: start;
    color: #ffffff;
    background: #b91c1c;
    border-radius: 999px;
}

body.ui-modern:not(.tech-v2) .tech-open-order-confirm-main h2,
body:not(.ui-modern):not(.tech-v2) .tech-open-order-confirm-main h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1.05;
}

body.ui-modern:not(.tech-v2) .tech-open-order-confirm-main p,
body:not(.ui-modern):not(.tech-v2) .tech-open-order-confirm-main p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-open-order-confirm-summary,
body:not(.ui-modern):not(.tech-v2) .tech-open-order-confirm-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

body.ui-modern:not(.tech-v2) .tech-open-order-confirm-summary div,
body:not(.ui-modern):not(.tech-v2) .tech-open-order-confirm-summary div {
    display: grid;
    gap: 3px;
    min-width: 0;
    min-height: 64px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #d4dee8;
    border-radius: 13px;
}

body.ui-modern:not(.tech-v2) .tech-open-order-confirm-summary span,
body:not(.ui-modern):not(.tech-v2) .tech-open-order-confirm-summary span {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-open-order-confirm-summary strong,
body:not(.ui-modern):not(.tech-v2) .tech-open-order-confirm-summary strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-open-order-confirm-actions,
body:not(.ui-modern):not(.tech-v2) .tech-open-order-confirm-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 12px;
}

body.ui-modern:not(.tech-v2) .tech-open-order-confirm-actions .primary-action,
body.ui-modern:not(.tech-v2) .tech-open-order-confirm-actions .small-action,
body:not(.ui-modern):not(.tech-v2) .tech-open-order-confirm-actions .primary-action,
body:not(.ui-modern):not(.tech-v2) .tech-open-order-confirm-actions .small-action {
    width: 100%;
    max-width: none;
    min-height: 54px;
    font-size: 0.98rem;
}

@media (max-width: 980px) {
    body.ui-modern:not(.tech-v2) .tech-open-order-confirm-summary,
    body:not(.ui-modern):not(.tech-v2) .tech-open-order-confirm-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Recall automation final fit overrides. Keep this block last. */
body.ui-modern .dashboard-page {
    gap: 10px;
}

body.ui-modern .dashboard-page .modern-start-panel {
    min-height: 118px;
    padding: 16px 22px;
}

body.ui-modern .dashboard-page .modern-start-panel h1 {
    font-size: 1.72rem;
}

.dashboard-page .dashboard-open-panel,
body.ui-modern .dashboard-page .dashboard-open-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    flex: 1 1 0;
    min-height: 0;
    max-height: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.dashboard-page .dashboard-open-panel > .panel-heading,
body.ui-modern .dashboard-page .dashboard-open-panel > .panel-heading {
    margin-bottom: 0;
    padding-bottom: 8px;
}

.dashboard-page .dashboard-open-list,
body.ui-modern .dashboard-page .dashboard-open-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-content: start;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.dashboard-page .open-order-row,
body.ui-modern .dashboard-page .modern-open-order-row {
    min-height: 72px;
}

body.ui-modern .dashboard-page .modern-open-order-row {
    grid-template-columns: 38px minmax(220px, 1fr) minmax(230px, 280px) 96px 150px;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
}

body.ui-modern .dashboard-page .modern-open-order-row .modern-order-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

body.ui-modern .dashboard-page .modern-open-order-row .modern-order-main {
    gap: 1px;
}

body.ui-modern .dashboard-page .modern-open-order-row .modern-order-main strong {
    font-size: 0.98rem;
}

body.ui-modern .dashboard-page .modern-open-order-row .modern-order-main small {
    font-size: 0.78rem;
}

body.ui-modern .dashboard-page .modern-open-order-row .modern-order-main em {
    font-size: 0.68rem;
}

body.ui-modern .dashboard-page .modern-open-order-row .modern-progress-step {
    min-height: 26px;
    padding: 4px 6px;
}

body.ui-modern .dashboard-page .modern-open-order-row .modern-progress-step small {
    font-size: 0.62rem;
}

body.ui-modern .dashboard-page .modern-open-order-row .modern-next-action {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
}

.dashboard-page .dashboard-open-panel > .screen-pager,
body.ui-modern .dashboard-page .dashboard-open-panel > .screen-pager {
    display: grid;
    grid-template-columns: minmax(132px, 170px) minmax(0, 1fr) minmax(132px, 170px);
    align-items: center;
    min-height: 54px;
    margin: 0;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #d6dee8;
    border-radius: 10px;
}

.dashboard-page .dashboard-open-panel > .screen-pager strong,
body.ui-modern .dashboard-page .dashboard-open-panel > .screen-pager strong {
    justify-self: center;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 950;
    text-align: center;
}

.dashboard-page .dashboard-open-panel > .screen-pager .command-button,
body.ui-modern .dashboard-page .dashboard-open-panel > .screen-pager .command-button {
    width: 100%;
    min-height: 38px;
    max-width: none;
    padding: 8px 12px;
    border-radius: 8px;
}

.settings-launch-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.settings-launch-button,
body.ui-modern .settings-launch-button {
    min-height: 178px;
    padding-inline: 32px;
}

body.ui-modern .modern-command-actions .command-button.modern-bay-command {
    --modern-command-width: 330px;
    --modern-command-min-width: 240px;
    max-width: 350px;
}

.bay-switch-modal {
    width: min(1040px, calc(100vw - 32px));
}

.bay-choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.bay-choice {
    min-height: 118px;
    padding: 22px 26px;
}

.vehicle-station .detail-list .vehicle-odo-history-tile,
.vehicle-station.is-tight .detail-list .vehicle-odo-history-tile,
.vehicle-station.is-ultra-tight .detail-list .vehicle-odo-history-tile,
.vehicle-station.needs-scroll .detail-list .vehicle-odo-history-tile {
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    gap: 5px;
    min-height: 108px;
    max-height: none;
    padding: 12px 14px;
    overflow: hidden;
}

.vehicle-station .detail-list .vehicle-odo-history-tile span,
.vehicle-station .detail-list .vehicle-odo-history-tile strong,
.vehicle-station .detail-list .vehicle-odo-history-tile small {
    min-width: 0;
    max-width: 100%;
    line-height: 1.12;
}

.vehicle-station .detail-list .vehicle-odo-history-tile strong {
    font-size: 1.16rem;
    overflow-wrap: anywhere;
}

.vehicle-station .detail-list .vehicle-odo-history-tile small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
}

.owner-low-stock-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1180px) {
    body.ui-modern .dashboard-page .modern-open-order-row {
        grid-template-columns: 34px minmax(190px, 1fr) minmax(190px, 240px) 88px 132px;
        gap: 8px;
        padding: 9px 12px;
    }

    .settings-launch-grid,
    .bay-choice-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

body.ui-modern:not(.tech-v2) .login-bay-panel.tech-panel .tech-work-card {
    width: min(1380px, calc((100vw - 56px) * var(--app-display-inverse, 1))) !important;
    max-height: calc((100vh - 40px) * var(--app-display-inverse, 1)) !important;
    max-height: calc((100dvh - 40px) * var(--app-display-inverse, 1)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body.ui-modern:not(.tech-v2) .login-bay-panel.tech-panel .tech-work-card:has(.tech-services-shell) {
    overflow: hidden !important;
}

.tech-service-board-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.35fr);
    gap: 12px;
    align-items: start;
}

.tech-service-board-services,
.tech-service-board-picker,
.tech-service-board-selected {
    min-width: 0;
}

.tech-board-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc, #eef6ff);
}

.tech-board-subhead strong {
    color: #0f172a;
    font-size: 1rem;
}

.tech-board-subhead span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: right;
}

.tech-board-subhead-active {
    border-color: #5eead4;
    background: linear-gradient(180deg, #f0fdfa, #ffffff);
}

.tech-service-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 8px;
    max-height: clamp(220px, calc((100vh - 330px) * var(--app-display-inverse, 1)), 440px);
    max-height: clamp(220px, calc((100dvh - 330px) * var(--app-display-inverse, 1)), 440px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.tech-service-board-grid .tech-compact-choice {
    min-height: 64px !important;
    padding: 8px 10px !important;
}

.tech-service-board-grid .tech-compact-choice strong {
    font-size: 0.86rem !important;
}

.tech-service-board-grid .tech-compact-choice span,
.tech-service-board-grid .tech-compact-choice small {
    font-size: 0.68rem !important;
}

.tech-service-choice.is-active-board-service {
    border-color: #f59e0b !important;
    box-shadow: inset 6px 0 0 #c5161d, 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.tech-service-board-picker {
    display: grid;
    gap: 8px;
}

.tech-board-filter-row {
    display: grid;
    gap: 8px;
}

.tech-inline-filter-bar {
    margin: 0 !important;
    gap: 6px !important;
}

.tech-inline-filter-bar a {
    min-height: 34px !important;
    padding: 7px 12px !important;
    font-size: 0.78rem;
}

.tech-board-part-search {
    margin: 0 !important;
    grid-template-columns: auto minmax(180px, 1fr) 86px;
    align-items: center;
}

.tech-board-fitment-check {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px !important;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    color: #115e59;
    background: #f0fdfa;
    font-size: 0.76rem !important;
    font-weight: 900;
    white-space: nowrap;
}

.tech-board-fitment-check input {
    min-height: 0 !important;
    width: 18px;
    height: 18px;
}

.tech-board-product-list {
    gap: 6px !important;
    max-height: clamp(220px, calc((100vh - 370px) * var(--app-display-inverse, 1)), 390px);
    max-height: clamp(220px, calc((100dvh - 370px) * var(--app-display-inverse, 1)), 390px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.tech-board-product-list .tech-product-pick {
    grid-template-columns: minmax(0, 1fr) 72px 92px 92px !important;
    gap: 7px !important;
    padding: 6px 8px !important;
    min-height: 54px;
}

.tech-board-product-list .tech-product-pick strong {
    font-size: 0.82rem !important;
}

.tech-board-product-list .tech-product-pick span,
.tech-board-product-list .tech-product-pick small {
    font-size: 0.66rem !important;
}

.tech-board-product-list .tech-product-pick input,
.tech-board-product-list .tech-product-pick .primary-action {
    min-height: 30px !important;
    padding: 4px 7px !important;
}

.tech-board-spec-service-card {
    margin-top: 0;
}

.tech-service-board-selected {
    grid-column: 1 / -1;
}

.tech-service-board-selected .tech-selected-service-lines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tech-service-board-selected .tech-selected-service-line {
    min-height: 54px;
}

@media (max-width: 980px) {
    .tech-service-board-layout,
    .tech-service-board-selected .tech-selected-service-lines,
    .tech-board-part-search {
        grid-template-columns: 1fr;
    }
}

.tech-service-board-layout {
    grid-template-columns: minmax(360px, 0.82fr) minmax(560px, 1.45fr);
}

.tech-service-group-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.tech-service-group-tabs a {
    position: relative;
    display: grid;
    gap: 2px;
    min-height: 66px;
    padding: 10px 12px;
    color: #0f172a;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    box-shadow: inset 5px 0 0 #94a3b8, 0 2px 0 #94a3b8;
}

.tech-service-group-tabs a.active {
    color: #064e3b;
    border-color: #2dd4bf;
    background: linear-gradient(180deg, #ecfdf5, #ffffff);
    box-shadow: inset 6px 0 0 #0f766e, 0 0 0 3px rgba(45, 212, 191, 0.18), 0 2px 0 #0f766e;
}

.tech-service-group-tabs strong {
    font-size: 0.94rem;
    line-height: 1.05;
}

.tech-service-group-tabs span {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.1;
}

.tech-service-group-tabs b {
    position: absolute;
    top: 8px;
    right: 9px;
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    color: #ffffff;
    font-size: 0.74rem;
    border-radius: 999px;
    background: #c5161d;
}

.tech-service-palette {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 10px;
    max-height: clamp(250px, calc((100vh - 420px) * var(--app-display-inverse, 1)), 470px);
    max-height: clamp(250px, calc((100dvh - 420px) * var(--app-display-inverse, 1)), 470px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 4px 4px 0;
    scrollbar-gutter: stable;
}

.tech-service-palette .tech-service-choice {
    min-height: 78px !important;
    padding: 12px 14px 12px 18px !important;
    border-radius: 16px;
}

.tech-service-palette .tech-service-choice strong {
    font-size: 1rem !important;
}

.tech-service-palette .tech-service-choice span,
.tech-service-palette .tech-service-choice small {
    font-size: 0.76rem !important;
    line-height: 1.15;
}

.tech-service-palette .tech-service-checkmark {
    width: 34px;
    height: 34px;
}

.tech-service-board-selected {
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.tech-service-board-selected .tech-selected-service-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.tech-selected-cart-title {
    display: grid;
    gap: 2px;
}

.tech-selected-cart-title strong {
    color: #0f172a;
    font-size: 1rem;
}

.tech-selected-cart-title span {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 850;
}

.tech-selected-cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-selected-cart-actions b {
    display: inline-grid;
    place-items: center;
    min-height: 44px;
    min-width: 130px;
    padding: 8px 16px;
    color: #064e3b;
    font-size: 1.15rem;
    border: 1px solid #34d399;
    border-radius: 14px;
    background: #ecfdf5;
}

.tech-service-board-selected .tech-selected-service-lines {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-height: 174px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.tech-service-board-selected .tech-selected-service-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px 92px;
    gap: 8px;
    align-items: center;
    min-height: 62px;
    padding: 8px 10px;
    border-radius: 14px;
}

.tech-service-board-selected .tech-selected-service-line a {
    min-width: 0;
}

.tech-service-board-selected .tech-selected-service-line .small-action {
    min-width: 0;
    min-height: 38px;
    padding: 7px 9px;
}

@media (max-width: 980px) {
    .tech-service-group-tabs {
        grid-template-columns: 1fr;
    }

    .tech-service-board-selected .tech-selected-service-head,
    .tech-selected-cart-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tech-service-board-selected .tech-selected-service-line {
        grid-template-columns: 1fr;
    }
}

.tech-service-order-details {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.tech-service-order-details .tech-selected-service-lines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 8px;
    max-height: clamp(260px, calc((100vh - 420px) * var(--app-display-inverse, 1)), 520px);
    max-height: clamp(260px, calc((100dvh - 420px) * var(--app-display-inverse, 1)), 520px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.tech-service-order-details .tech-selected-service-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px 92px;
    gap: 8px;
    align-items: center;
    min-height: 62px;
    padding: 8px 10px;
    border-radius: 14px;
}

.tech-service-flow-backdrop {
    z-index: 14500;
}

.tech-service-flow-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1320px, calc(100vw - 36px));
    height: min(790px, calc(100vh - 28px));
    height: min(790px, calc(100dvh - 28px));
    padding: 14px;
    overflow: hidden;
}

.tech-service-flow-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px !important;
}

.tech-service-flow-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-service-flow-actions .small-action,
.tech-service-flow-actions .primary-action {
    min-height: 46px;
    min-width: 150px;
}

.tech-service-flow-modal .tech-service-board-layout {
    min-height: 0;
}

.tech-service-flow-modal .tech-service-palette {
    max-height: none;
}

.tech-service-flow-modal .tech-board-product-list {
    max-height: none;
}

.tech-service-flow-modal .tech-service-board-services,
.tech-service-flow-modal .tech-service-board-picker {
    min-height: 0;
    overflow: hidden;
}

.tech-service-flow-modal .tech-service-palette,
.tech-service-flow-modal .tech-board-product-list {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.tech-service-modal-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 320px;
    padding: 24px;
    text-align: center;
    border: 1px dashed #99f6e4;
    border-radius: 18px;
    background: linear-gradient(180deg, #f0fdfa, #ffffff);
}

.tech-service-modal-empty strong {
    color: #0f172a;
    font-size: 1.35rem;
}

.tech-service-modal-empty span {
    max-width: 560px;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 850;
}

@media (max-width: 980px) {
    .tech-service-flow-modal {
        height: min(820px, calc(100dvh - 18px));
        width: min(100%, calc(100vw - 18px));
    }

    .tech-service-flow-heading,
    .tech-service-order-details .tech-selected-service-line {
        grid-template-columns: 1fr;
    }

    .tech-service-flow-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Legacy tech service picker final-fit rules. Keep this last so older emergency-fit rules do not reintroduce cramped product rows. */
body.ui-modern:not(.tech-v2) .login-bay-panel.tech-panel .tech-work-card:has(.tech-services-shell) {
    padding: 16px 18px !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .login-brand {
    gap: 8px !important;
    min-height: 36px !important;
    margin-bottom: 3px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .brand-mark.large {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-brand h1 {
    font-size: 1.02rem !important;
    line-height: 1.05 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-brand p {
    display: none !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-touch-nav-row {
    grid-template-columns: minmax(126px, 148px) minmax(280px, 1fr) minmax(126px, 148px) !important;
    gap: 9px !important;
    margin: 0 0 5px !important;
}

body.ui-modern:not(.tech-v2) .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-nav-row .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-nav-row .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-nav-row .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-specs-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) button.tech-specs-menu-pill.tech-touch-nav-button:not(.selection-tile):not(.profile-status-tile) {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    min-height: 48px !important;
    max-width: 176px !important;
    padding: 7px 11px !important;
    border-radius: 14px !important;
    font-size: 0.86rem !important;
    letter-spacing: 0 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-specs-menu-pill.tech-touch-nav-button {
    min-height: 42px !important;
    max-width: 148px !important;
    padding: 6px 9px !important;
    font-size: 0.78rem !important;
}

body.ui-modern:not(.tech-v2) .tech-touch-nav-button .app-icon {
    width: 18px !important;
    height: 18px !important;
    padding: 7px !important;
    border-radius: 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-touch-nav-button .app-icon {
    width: 15px !important;
    height: 15px !important;
    padding: 6px !important;
}

body.ui-modern:not(.tech-v2) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-nav-row .tech-main-menu-pill.tech-touch-nav-button {
    color: #ffffff !important;
    background: linear-gradient(180deg, #192232, #0f172a) !important;
    border: 1px solid #334155 !important;
    border-left: 5px solid #c91f28 !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.14), 0 2px 0 rgba(15, 23, 42, 0.58) !important;
}

body.ui-modern:not(.tech-v2) .tech-main-menu-pill.tech-touch-nav-button .app-icon {
    color: #ffffff !important;
    background: linear-gradient(180deg, #c91f28, #991b1b) !important;
}

body.ui-modern:not(.tech-v2) .tech-specs-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) button.tech-specs-menu-pill.tech-touch-nav-button:not(.selection-tile):not(.profile-status-tile) {
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #edf7f6) !important;
    border: 1px solid #c4d7dd !important;
    border-left: 5px solid #0d9488 !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.92), 0 2px 0 #8aa4b3 !important;
}

body.ui-modern:not(.tech-v2) .tech-specs-menu-pill.tech-touch-nav-button .app-icon {
    color: #0f766e !important;
    background: #dffaf3 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-flow-focus-pill {
    min-height: 39px !important;
    padding: 4px 14px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-flow-focus-pill strong {
    font-size: 0.94rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell {
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 10px !important;
    align-items: start !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-section-head {
    min-height: 43px !important;
    margin: 3px 0 6px !important;
    padding: 6px 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-section-head strong {
    font-size: 0.9rem !important;
    line-height: 1.05 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-section-head span {
    font-size: 0.66rem !important;
    line-height: 1.05 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-part-search-form {
    margin: 0 0 6px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice {
    min-height: 46px !important;
    padding: 6px 7px !important;
    border-radius: 11px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice strong {
    font-size: 0.76rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice em {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.78rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid {
    gap: 5px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick {
    grid-template-columns: minmax(0, 1fr) 58px 82px 88px !important;
    gap: 6px !important;
    min-height: 55px !important;
    padding: 6px 8px !important;
    border-radius: 11px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick > div {
    gap: 1px !important;
    padding-right: 30px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick strong {
    font-size: 0.82rem !important;
    line-height: 1.05 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick small {
    font-size: 0.64rem !important;
    line-height: 1.05 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick input,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid .tech-view-all-product-pick .primary-action {
    min-height: 28px !important;
    padding: 3px 7px !important;
    border-radius: 11px !important;
    font-size: 0.72rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-inline-product-pager {
    min-height: 34px !important;
    margin-top: 5px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-inline-product-pager .small-action {
    min-height: 32px !important;
    padding: 5px 9px !important;
    font-size: 0.74rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-wizard-actions {
    margin-top: 5px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-wizard-actions .primary-action {
    min-width: 178px !important;
    min-height: 38px !important;
    padding: 7px 14px !important;
    border-radius: 12px !important;
    font-size: 0.86rem !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice {
    gap: 7px !important;
    padding: 10px !important;
    border-radius: 14px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-head {
    min-height: 42px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-head strong {
    font-size: 0.94rem !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-lines {
    gap: 7px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line {
    min-width: 0 !important;
    max-width: none !important;
    min-height: 54px !important;
    padding: 8px 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line strong {
    font-size: 0.84rem !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line span,
body.ui-modern:not(.tech-v2) .tech-inline-invoice-line small {
    font-size: 0.72rem !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot a {
    min-height: 42px !important;
    min-width: 150px !important;
    padding: 8px 14px !important;
    border-radius: 12px !important;
    font-size: 0.84rem !important;
}

/* Legacy tech services polish: cleaner controls, paged inline invoice, and tighter edit modal actions. */
body.ui-modern:not(.tech-v2) .login-bay-panel.tech-panel .tech-work-card:has(.tech-services-shell) {
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 237, 213, 0.42), transparent 24%),
        linear-gradient(180deg, #ffffff, #f8fafc) !important;
    border: 1px solid rgba(148, 163, 184, 0.72) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), inset 0 1px rgba(255,255,255,0.96) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-touch-nav-row {
    grid-template-columns: minmax(150px, 174px) minmax(320px, 1fr) minmax(150px, 174px) !important;
    align-items: center !important;
    margin: 2px 0 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-specs-menu-pill.tech-touch-nav-button {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    min-height: 46px !important;
    max-width: 174px !important;
    padding: 5px 10px !important;
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #eef3f8) !important;
    border: 1px solid #c5d1df !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.94), 0 3px 0 #91a3b7 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-touch-nav-button span {
    font-size: 0.82rem !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-touch-nav-button .app-icon {
    width: 17px !important;
    height: 17px !important;
    padding: 7px !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.2), 0 6px 12px rgba(15, 23, 42, 0.16) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-main-menu-pill.tech-touch-nav-button {
    border-left: 6px solid #c91f28 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-main-menu-pill.tech-touch-nav-button .app-icon {
    background: linear-gradient(180deg, #c91f28, #991b1b) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-specs-menu-pill.tech-touch-nav-button {
    border-left: 6px solid #0f766e !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-specs-menu-pill.tech-touch-nav-button .app-icon {
    background: linear-gradient(180deg, #0d9488, #0f766e) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-flow-focus-pill {
    display: grid !important;
    align-content: center !important;
    justify-self: center !important;
    width: min(460px, 100%) !important;
    min-height: 48px !important;
    padding: 6px 22px !important;
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 8px solid #c91f28 !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.95), 0 4px 0 #94a3b8 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-flow-focus-pill span {
    margin: 0 0 2px !important;
    color: #64748b !important;
    font-size: 0.58rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-flow-focus-pill strong {
    color: #0f172a !important;
    font-size: 1rem !important;
    line-height: 1.05 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell {
    grid-template-columns: minmax(0, 1fr) 400px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice {
    border-left-width: 7px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line {
    min-height: 46px !important;
    padding: 6px 9px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line strong {
    font-size: 0.78rem !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line span,
body.ui-modern:not(.tech-v2) .tech-inline-invoice-line small {
    font-size: 0.66rem !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-pager {
    display: grid;
    grid-template-columns: minmax(84px, 1fr) 58px minmax(84px, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 34px;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-pager .small-action,
body.ui-modern:not(.tech-v2) .tech-inline-page-disabled {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 32px !important;
    padding: 5px 8px !important;
    border-radius: 11px !important;
    font-size: 0.72rem !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-page-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-pager strong {
    color: #334155;
    font-size: 0.78rem;
    font-weight: 950;
    text-align: center;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-modal .panel-heading {
    margin-bottom: 10px;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-modal .panel-heading .small-action {
    display: none !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-lock-note {
    grid-column: 1 / -1;
    display: block;
    margin-top: -2px;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-remove {
    display: none !important;
    margin: 0 !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-actions {
    display: grid !important;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr);
    gap: 10px;
    align-items: stretch;
    margin-top: 12px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-item-actions .small-action,
body.ui-modern:not(.tech-v2) .tech-inline-item-actions .primary-action {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 44px !important;
    border-radius: 12px !important;
    font-size: 0.86rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-touch-nav-row {
    grid-template-columns: minmax(138px, 150px) minmax(300px, 1fr) minmax(138px, 150px) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-specs-menu-pill.tech-touch-nav-button {
    max-width: 150px !important;
    min-height: 42px !important;
    padding: 5px 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice {
    gap: 5px !important;
    padding: 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-head {
    min-height: 36px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line {
    min-height: 40px !important;
    padding: 5px 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line strong {
    font-size: 0.74rem !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line span,
body.ui-modern:not(.tech-v2) .tech-inline-invoice-line small {
    font-size: 0.62rem !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-pager {
    min-height: 28px !important;
    gap: 5px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-pager .small-action,
body.ui-modern:not(.tech-v2) .tech-inline-page-disabled {
    min-height: 28px !important;
    padding: 4px 7px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot {
    min-height: 36px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot a {
    min-height: 36px !important;
    min-width: 132px !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-top-done-pill) .tech-touch-nav-row {
    grid-template-columns: minmax(260px, 318px) minmax(280px, 1fr) minmax(138px, 150px) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-top-done-pill) .tech-nav-actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-top-done-pill) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-top-done-pill) .tech-top-done-pill.tech-touch-nav-button {
    flex: 1 1 0;
    max-width: none !important;
}

body.ui-modern:not(.tech-v2) .tech-top-done-pill.tech-touch-nav-button {
    color: #063b33 !important;
    background: linear-gradient(180deg, #ecfdf5, #d1fae5) !important;
    border: 1px solid #8dd9c7 !important;
    border-left: 6px solid #0d9488 !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.92), 0 3px 0 #7ab8aa !important;
}

body.ui-modern:not(.tech-v2) .tech-top-done-pill.tech-touch-nav-button .app-icon {
    color: #ffffff !important;
    background: linear-gradient(180deg, #0d9488, #0f766e) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-section-head-with-action {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-section-head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-view-all-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 88px !important;
    max-width: none !important;
    min-height: 36px !important;
    padding: 7px 12px !important;
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #eff6ff) !important;
    border: 1px solid #b8c9dc !important;
    border-left: 5px solid #2563eb !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.92), 0 2px 0 #93a7bd !important;
    font-size: 0.78rem !important;
    font-weight: 950 !important;
}

body.ui-modern:not(.tech-v2) .tech-view-all-trigger .app-icon {
    width: 16px !important;
    height: 16px !important;
    padding: 0 !important;
    color: #2563eb !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-services-main {
    display: grid;
    align-content: start;
    gap: 9px;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-services-main > .tech-section-head {
    margin: 0 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid {
    gap: 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-inline-product-pager {
    margin-top: 0 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-part-search-form {
    margin: 0 !important;
}

/* Keep the polished tech header during the spinner phase before the services shell has streamed in. */
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating {
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 237, 213, 0.42), transparent 24%),
        linear-gradient(180deg, #ffffff, #f8fafc) !important;
    border: 1px solid rgba(148, 163, 184, 0.72) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), inset 0 1px rgba(255,255,255,0.96) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-touch-nav-row,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-touch-nav-row {
    grid-template-columns: minmax(138px, 150px) minmax(300px, 1fr) minmax(138px, 150px) !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 2px 0 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing:has(.tech-top-done-pill) .tech-touch-nav-row,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating:has(.tech-top-done-pill) .tech-touch-nav-row {
    grid-template-columns: minmax(260px, 318px) minmax(280px, 1fr) minmax(138px, 150px) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing:has(.tech-top-done-pill) .tech-nav-actions,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating:has(.tech-top-done-pill) .tech-nav-actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-specs-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-specs-menu-pill.tech-touch-nav-button {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    max-width: 150px !important;
    min-height: 42px !important;
    padding: 5px 8px !important;
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #eef3f8) !important;
    border: 1px solid #c5d1df !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.94), 0 3px 0 #91a3b7 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing:has(.tech-top-done-pill) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating:has(.tech-top-done-pill) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing:has(.tech-top-done-pill) .tech-top-done-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating:has(.tech-top-done-pill) .tech-top-done-pill.tech-touch-nav-button {
    flex: 1 1 0;
    max-width: none !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-main-menu-pill.tech-touch-nav-button {
    border-left: 6px solid #c91f28 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-main-menu-pill.tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-main-menu-pill.tech-touch-nav-button .app-icon {
    color: #ffffff !important;
    background: linear-gradient(180deg, #c91f28, #991b1b) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-specs-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-specs-menu-pill.tech-touch-nav-button {
    border-left: 6px solid #0f766e !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-specs-menu-pill.tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-specs-menu-pill.tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-top-done-pill.tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-top-done-pill.tech-touch-nav-button .app-icon {
    color: #ffffff !important;
    background: linear-gradient(180deg, #0d9488, #0f766e) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-touch-nav-button .app-icon {
    width: 17px !important;
    height: 17px !important;
    padding: 7px !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.2), 0 6px 12px rgba(15, 23, 42, 0.16) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-touch-nav-button span {
    font-size: 0.82rem !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-top-done-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-top-done-pill.tech-touch-nav-button {
    color: #063b33 !important;
    background: linear-gradient(180deg, #ecfdf5, #d1fae5) !important;
    border: 1px solid #8dd9c7 !important;
    border-left: 6px solid #0d9488 !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.92), 0 3px 0 #7ab8aa !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-flow-focus-pill,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-flow-focus-pill {
    display: grid !important;
    align-content: center !important;
    justify-self: center !important;
    width: min(460px, 100%) !important;
    min-height: 48px !important;
    padding: 6px 56px 6px 22px !important;
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 8px solid #c91f28 !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.95), 0 4px 0 #94a3b8 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-flow-focus-pill span,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-flow-focus-pill span {
    margin: 0 0 2px !important;
    color: #64748b !important;
    font-size: 0.58rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-flow-focus-pill strong,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-flow-focus-pill strong {
    color: #0f172a !important;
    font-size: 1rem !important;
    line-height: 1.05 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-top-done-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-top-done-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-top-done-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-top-done-pill.tech-touch-nav-button {
    color: #063b33 !important;
    background: linear-gradient(180deg, #ecfdf5, #d1fae5) !important;
    border: 1px solid #8dd9c7 !important;
    border-left: 6px solid #0d9488 !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.92), 0 3px 0 #7ab8aa !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-top-done-pill.tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-top-done-pill.tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-top-done-pill.tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-top-done-pill.tech-touch-nav-button .app-icon {
    color: #ffffff !important;
    background: linear-gradient(180deg, #0d9488, #0f766e) !important;
}

/* Work-order header context: keeps customer/vehicle visible without crowding the service picker. */
body.ui-modern:not(.tech-v2) .tech-work-card .login-brand.tech-brand {
    display: flex !important;
    align-items: center;
    gap: 12px !important;
    min-height: 50px !important;
    margin-bottom: 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .login-brand.tech-brand:has(.tech-work-context-pill) {
    display: grid !important;
    grid-template-columns: auto minmax(180px, 1fr) minmax(280px, 440px);
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-brand-copy {
    min-width: 0;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-brand-copy h1,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-brand-copy p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-work-context-pill {
    justify-self: end;
    display: grid;
    align-content: center;
    gap: 2px;
    width: min(440px, 100%);
    min-height: 48px;
    padding: 6px 12px;
    color: #0f172a;
    background: linear-gradient(180deg, #ffffff, #f4fbfa);
    border: 1px solid #c5d4e2;
    border-left: 7px solid #0d9488;
    border-radius: 15px;
    box-shadow: inset 0 1px rgba(255,255,255,0.95), 0 3px 0 #94a3b8;
}

body.ui-modern:not(.tech-v2) .tech-work-context-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 950;
    line-height: 1.05;
}

body.ui-modern:not(.tech-v2) .tech-work-context-row .app-icon {
    width: 15px;
    height: 15px;
    color: #0f766e;
}

body.ui-modern:not(.tech-v2) .tech-work-context-row strong,
body.ui-modern:not(.tech-v2) .tech-work-context-pill small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-work-context-pill small {
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1.05;
    padding-left: 25px;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .login-brand.tech-brand {
    min-height: 50px !important;
    margin-bottom: 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-touch-nav-row,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-touch-nav-row,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-touch-nav-row {
    margin: 3px 0 9px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-services-main {
    gap: 9px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-services-main > .tech-section-head {
    margin-bottom: 2px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell {
    align-items: stretch !important;
    height: 320px !important;
    max-height: 320px !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    gap: 6px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-work-context-side {
    width: 100%;
    min-height: 50px;
    padding: 5px 10px;
    justify-self: stretch;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-work-context-row {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 6px;
    font-size: 0.74rem;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-work-context-row .app-icon {
    width: 14px;
    height: 14px;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-work-context-pill small {
    padding-left: 22px;
    font-size: 0.58rem;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice {
    width: 100%;
    min-height: 0;
    height: 100%;
    gap: 4px !important;
    padding: 7px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-head,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-foot {
    min-height: 30px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-lines {
    overflow: hidden;
    gap: 5px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-line {
    min-height: 34px !important;
    padding: 4px 7px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-pager {
    min-height: 26px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-pager .small-action,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-page-disabled {
    min-height: 26px !important;
    padding: 3px 7px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-foot a {
    min-height: 32px !important;
    min-width: 128px !important;
    padding: 5px 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-start-bay-card .login-brand {
    margin-bottom: 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-start-bay-card .tech-touch-nav-row {
    display: grid !important;
    grid-template-columns: minmax(150px, 174px) minmax(320px, 1fr) minmax(150px, 174px) !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 4px 0 14px !important;
}

body.ui-modern:not(.tech-v2) .tech-start-bay-card .tech-main-menu-pill.tech-touch-nav-button {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    max-width: 174px !important;
    min-height: 46px !important;
    padding: 5px 10px !important;
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #eef3f8) !important;
    border: 1px solid #c5d1df !important;
    border-left: 6px solid #c91f28 !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.94), 0 3px 0 #91a3b7 !important;
}

body.ui-modern:not(.tech-v2) .tech-start-bay-card .tech-main-menu-pill.tech-touch-nav-button .app-icon {
    width: 17px !important;
    height: 17px !important;
    padding: 7px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #c91f28, #991b1b) !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.2), 0 6px 12px rgba(15, 23, 42, 0.16) !important;
}

body.ui-modern:not(.tech-v2) .tech-start-bay-card .tech-main-menu-pill.tech-touch-nav-button span {
    font-size: 0.82rem !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

body.ui-modern:not(.tech-v2) .tech-start-bay-card .tech-flow-focus-pill {
    display: grid !important;
    align-content: center !important;
    justify-self: center !important;
    width: min(460px, 100%) !important;
    min-height: 48px !important;
    padding: 6px 22px !important;
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 8px solid #c91f28 !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.95), 0 4px 0 #94a3b8 !important;
}

body.ui-modern:not(.tech-v2) .tech-start-bay-card .tech-flow-focus-pill span {
    margin: 0 0 2px !important;
    color: #64748b !important;
    font-size: 0.58rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body.ui-modern:not(.tech-v2) .tech-start-bay-card .tech-flow-focus-pill strong {
    color: #0f172a !important;
    font-size: 1rem !important;
    line-height: 1.05 !important;
}

@media (max-width: 1100px) {
    body.ui-modern:not(.tech-v2) .tech-work-card .login-brand.tech-brand {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.ui-modern:not(.tech-v2) .tech-work-context-pill {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
    }
}

/* Tech workflow V1 final polish: shared nav, receipt totals, specs modal, and compact product cards. */
body.ui-modern:not(.tech-v2) .tech-work-card .tech-touch-nav-row,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-touch-nav-row,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-touch-nav-row {
    display: grid !important;
    grid-template-columns: minmax(150px, 184px) minmax(320px, 1fr) minmax(150px, 184px) !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 4px 0 12px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-nav-actions {
    display: flex;
    gap: 10px;
    min-width: 0;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-specs-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-top-done-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-touch-nav-button {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 184px !important;
    min-height: 50px !important;
    padding: 6px 11px !important;
    color: #0f172a !important;
    text-decoration: none !important;
    background: linear-gradient(180deg, #ffffff, #eef3f8) !important;
    border: 1px solid #c5d1df !important;
    border-left: 7px solid #c91f28 !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.94), 0 3px 0 #91a3b7 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-specs-menu-pill.tech-touch-nav-button {
    border-left-color: #0f766e !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-top-done-pill.tech-touch-nav-button {
    border-left-color: #0d9488 !important;
    background: linear-gradient(180deg, #f0fdfa, #ccfbf1) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-touch-nav-button .app-icon {
    width: 18px !important;
    height: 18px !important;
    padding: 7px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #c91f28, #991b1b) !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.2), 0 6px 12px rgba(15, 23, 42, 0.16) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-specs-menu-pill.tech-touch-nav-button .app-icon {
    background: linear-gradient(180deg, #0d9488, #0f766e) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-top-done-pill.tech-touch-nav-button .app-icon {
    background: linear-gradient(180deg, #0d9488, #0f766e) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-touch-nav-button span {
    overflow: hidden;
    color: #0f172a !important;
    font-size: 0.86rem !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis;
    white-space: nowrap !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-flow-focus-pill,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-flow-focus-pill,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-flow-focus-pill {
    display: grid !important;
    align-content: center !important;
    justify-self: center !important;
    width: min(540px, 100%) !important;
    min-height: 52px !important;
    padding: 7px 24px !important;
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 9px solid #c91f28 !important;
    border-radius: 17px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.95), 0 4px 0 #94a3b8 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-flow-focus-pill span,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-flow-focus-pill span,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-flow-focus-pill span {
    margin: 0 0 2px !important;
    color: #64748b !important;
    font-size: 0.6rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-flow-focus-pill strong,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-flow-focus-pill strong,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-flow-focus-pill strong {
    color: #0f172a !important;
    font-size: 1.04rem !important;
    line-height: 1.05 !important;
}

body.ui-modern:not(.tech-v2) .tech-full-service-choice {
    border-left-color: #1d4ed8 !important;
    background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
}

body.ui-modern:not(.tech-v2) .tech-full-service-choice .app-icon {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 20px;
    height: 20px;
    color: #1d4ed8;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-form {
    display: contents;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
    align-items: stretch !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card,
body.ui-modern:not(.tech-v2) button.tech-product-choice-card {
    width: 100%;
    min-width: 0;
    min-height: 78px !important;
    padding: 10px 12px !important;
    text-align: left;
    cursor: pointer;
    border-left-width: 7px !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card strong {
    padding-right: 26px;
    font-size: 0.9rem !important;
    line-height: 1.08 !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card span,
body.ui-modern:not(.tech-v2) .tech-product-choice-card small {
    font-size: 0.68rem !important;
    line-height: 1.08 !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card.needs-price {
    border-left-color: #f59e0b !important;
    background: linear-gradient(180deg, #fff7ed, #ffedd5) !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card.has-selection,
body.ui-modern:not(.tech-v2) .tech-product-choice-card.is-selected {
    border-left-color: #0d9488 !important;
    background: linear-gradient(180deg, #ecfdf5, #ccfbf1) !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card em {
    position: absolute;
    top: 8px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #ffffff;
    background: #0d9488;
    border-radius: 999px;
    font-style: normal;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-product-price-backdrop {
    z-index: 16000;
}

body.ui-modern:not(.tech-v2) .tech-product-price-modal {
    width: min(560px, calc(100vw - 48px));
}

body.ui-modern:not(.tech-v2) .tech-product-price-form {
    display: grid;
    gap: 12px;
}

body.ui-modern:not(.tech-v2) .tech-product-price-grid {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) minmax(120px, auto);
    gap: 10px;
    align-items: end;
}

body.ui-modern:not(.tech-v2) .tech-product-price-grid label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-product-price-grid input[type="number"] {
    min-height: 46px;
}

body.ui-modern:not(.tech-v2) .tech-inline-tax-check {
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    min-height: 46px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
}

body.ui-modern:not(.tech-v2) .tech-inline-tax-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

body.ui-modern:not(.tech-v2) .tech-product-lock-note {
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-receipt-review-shell {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
    gap: 14px !important;
    align-items: stretch !important;
    margin: 8px 0 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-receipt-review-shell) .tech-work-summary {
    display: none !important;
}

body.ui-modern:not(.tech-v2) .tech-receipt-side {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}

body.ui-modern:not(.tech-v2) .tech-receipt-side .tech-work-context-receipt {
    width: 100%;
    justify-self: stretch;
    min-height: 78px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #ffffff, #f4fbfa);
    border-left-color: #0d9488;
}

body.ui-modern:not(.tech-v2) .tech-pos-total-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 10px !important;
    background: linear-gradient(180deg, #f8fafc, #eefdf8) !important;
    border: 1px solid #b7d6cc !important;
    border-left: 8px solid #0d9488 !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.95), 0 3px 0 #8fb9ad !important;
}

body.ui-modern:not(.tech-v2) .tech-pos-total-card div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 46px !important;
    padding: 8px 10px !important;
    background: #ffffff !important;
    border: 1px solid #c9e1d8 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.ui-modern:not(.tech-v2) .tech-pos-total-card span {
    color: #0f766e !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-pos-total-card strong {
    color: #064e3b !important;
    font-size: 1.08rem !important;
    font-weight: 950 !important;
}

body.ui-modern:not(.tech-v2) .tech-pos-total-card .tech-pos-grand-total {
    min-height: 66px !important;
    background: linear-gradient(180deg, #d1fae5, #99f6e4) !important;
    border-color: #10b981 !important;
}

body.ui-modern:not(.tech-v2) .tech-pos-total-card .tech-pos-grand-total strong {
    color: #022c22 !important;
    font-size: 1.48rem !important;
}

body.ui-modern:not(.tech-v2) .tech-receipt-side .tech-invoice-page-controls {
    grid-column: 1 / -1;
    grid-template-columns: minmax(76px, 1fr) minmax(0, 1.1fr) minmax(76px, 1fr);
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal,
body.ui-modern:not(.tech-v2) .tech-service-map-modal,
body.ui-modern:not(.tech-v2) .tech-chassis-map-modal {
    width: min(1320px, calc(100vw - 46px)) !important;
    max-height: calc(100vh - 48px) !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .vehicle-specs-heading-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-specs {
    display: grid;
    gap: 10px;
    max-height: calc(100vh - 150px);
    overflow: auto;
    padding-right: 2px;
}

body.ui-modern:not(.tech-v2) .tech-spec-pro-menu {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-spec-pro-button {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 8px;
    min-height: 62px;
    min-width: 0;
    padding: 8px 9px;
    color: #0f172a;
    text-align: left;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #cbd5e1;
    border-left: 6px solid #c91f28;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #a7b4c3;
    cursor: pointer;
}

body.ui-modern:not(.tech-v2) .tech-spec-pro-button .app-icon {
    grid-row: 1 / span 2;
    width: 18px;
    height: 18px;
    padding: 6px;
    color: #ffffff;
    background: #c91f28;
    border-radius: 10px;
}

body.ui-modern:not(.tech-v2) .tech-spec-pro-button strong,
body.ui-modern:not(.tech-v2) .tech-spec-pro-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-spec-pro-button strong {
    font-size: 0.78rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-spec-pro-button span {
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-spec-pro-diagram,
body.ui-modern:not(.tech-v2) .tech-spec-pro-chassis {
    border-left-color: #0d9488;
    background: linear-gradient(180deg, #f0fdfa, #ccfbf1);
}

body.ui-modern:not(.tech-v2) .tech-spec-pro-diagram .app-icon,
body.ui-modern:not(.tech-v2) .tech-spec-pro-chassis .app-icon {
    background: #0d9488;
}

body.ui-modern:not(.tech-v2) .tech-spec-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

body.ui-modern:not(.tech-v2) .tech-spec-kpi-grid article {
    display: grid;
    gap: 3px;
    min-height: 66px;
    padding: 9px 10px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #cbd5e1;
    border-left: 6px solid #0d9488;
    border-radius: 14px;
}

body.ui-modern:not(.tech-v2) .tech-spec-kpi-grid span {
    color: #0f766e;
    font-size: 0.62rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-spec-kpi-grid strong,
body.ui-modern:not(.tech-v2) .tech-spec-kpi-grid small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-spec-kpi-grid strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-spec-kpi-grid small {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-section-fluids,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-section-fitments {
    grid-column: span 3;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-section-fluids .tech-spec-line-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-section-fitments .tech-spec-line-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.ui-modern:not(.tech-v2) .tech-chassis-map {
    display: grid;
    gap: 12px;
}

body.ui-modern:not(.tech-v2) .tech-chassis-summary,
body.ui-modern:not(.tech-v2) .tech-chassis-notes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-chassis-notes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.ui-modern:not(.tech-v2) .tech-chassis-summary article,
body.ui-modern:not(.tech-v2) .tech-chassis-notes article {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #cbd5e1;
    border-left: 6px solid #0d9488;
    border-radius: 14px;
}

body.ui-modern:not(.tech-v2) .tech-chassis-summary span,
body.ui-modern:not(.tech-v2) .tech-chassis-notes strong {
    color: #0f766e;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-chassis-summary strong,
body.ui-modern:not(.tech-v2) .tech-chassis-notes span,
body.ui-modern:not(.tech-v2) .tech-chassis-summary small {
    overflow: hidden;
    text-overflow: ellipsis;
}

body.ui-modern:not(.tech-v2) .tech-chassis-summary strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 950;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-chassis-summary small,
body.ui-modern:not(.tech-v2) .tech-chassis-notes span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-chassis-canvas {
    min-height: 420px;
    padding: 18px;
    background:
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(180deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(180deg, #f8fafc, #ecfeff);
    background-size: 34px 34px, 34px 34px, auto;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
}

body.ui-modern:not(.tech-v2) .tech-chassis-frame {
    position: relative;
    width: min(860px, 100%);
    height: 380px;
    margin: 0 auto;
    border: 4px solid #334155;
    border-radius: 120px 120px 90px 90px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(226,232,240,0.88));
    box-shadow: 0 18px 42px rgba(15,23,42,0.16), inset 0 0 0 8px rgba(255,255,255,0.78);
}

body.ui-modern:not(.tech-v2) .tech-chassis-zone {
    position: absolute;
    display: grid;
    place-items: center;
    gap: 2px;
    min-width: 180px;
    padding: 10px 12px;
    text-align: center;
    background: rgba(255,255,255,0.92);
    border: 2px solid #94a3b8;
    border-radius: 16px;
}

body.ui-modern:not(.tech-v2) .tech-chassis-zone b {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-chassis-zone span {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 900;
}

body.ui-modern:not(.tech-v2) .tech-chassis-zone.front {
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    border-color: #c91f28;
}

body.ui-modern:not(.tech-v2) .tech-chassis-zone.engine {
    top: 92px;
    left: 50%;
    transform: translateX(-50%);
    border-color: #f59e0b;
    background: #fff7ed;
}

body.ui-modern:not(.tech-v2) .tech-chassis-zone.center {
    top: 190px;
    left: 50%;
    transform: translateX(-50%);
    border-color: #0d9488;
    background: #ecfdf5;
}

body.ui-modern:not(.tech-v2) .tech-chassis-zone.rear {
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    border-color: #2563eb;
    background: #eff6ff;
}

body.ui-modern:not(.tech-v2) .tech-chassis-wheel {
    position: absolute;
    display: grid;
    place-items: center;
    gap: 1px;
    width: 86px;
    height: 86px;
    color: #ffffff;
    background: #0f172a;
    border: 8px solid #1e293b;
    border-radius: 999px;
    box-shadow: inset 0 0 0 18px #e2e8f0, 0 10px 24px rgba(15,23,42,0.22);
}

body.ui-modern:not(.tech-v2) .tech-chassis-wheel strong {
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-chassis-wheel span {
    margin-top: -4px;
    color: #cbd5e1;
    font-size: 0.62rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-chassis-wheel.front-left {
    top: 70px;
    left: -38px;
}

body.ui-modern:not(.tech-v2) .tech-chassis-wheel.front-right {
    top: 70px;
    right: -38px;
}

body.ui-modern:not(.tech-v2) .tech-chassis-wheel.rear-left {
    bottom: 70px;
    left: -38px;
}

body.ui-modern:not(.tech-v2) .tech-chassis-wheel.rear-right {
    bottom: 70px;
    right: -38px;
}

body.ui-modern:not(.tech-v2) .tech-chassis-centerline {
    position: absolute;
    top: 36px;
    bottom: 36px;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(180deg, #94a3b8 0 18px, transparent 18px 32px);
    opacity: 0.5;
}

/* Tech V1 touch polish pass: start flow modal, service board, product cards, and shared nav. */
body.ui-modern:not(.tech-v2) .tech-start-card .login-brand.tech-brand {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 56px !important;
    margin: 0 0 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-start-card .brand-mark.large {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    font-size: 0.9rem !important;
}

body.ui-modern:not(.tech-v2) .tech-start-card .tech-brand-copy h1 {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 1.42rem !important;
    line-height: 1.05 !important;
}

body.ui-modern:not(.tech-v2) .tech-start-card .tech-brand-copy p {
    margin: 4px 0 0 !important;
    color: #64748b !important;
    font-size: 0.88rem !important;
    font-weight: 850 !important;
}

body.ui-modern:not(.tech-v2) .tech-start-card .tech-touch-nav-row,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-touch-nav-row,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-touch-nav-row,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-touch-nav-row {
    display: grid !important;
    grid-template-columns: minmax(176px, 220px) minmax(360px, 1fr) minmax(176px, 220px) !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 6px 0 14px !important;
}

body.ui-modern:not(.tech-v2) .tech-start-card .tech-nav-actions,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-nav-actions {
    display: flex !important;
    gap: 10px !important;
    min-width: 0 !important;
}

body.ui-modern:not(.tech-v2) .tech-start-card .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-start-card .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-specs-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-top-done-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-touch-nav-button {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 220px !important;
    min-height: 58px !important;
    padding: 8px 12px !important;
    color: #0f172a !important;
    text-decoration: none !important;
    background: linear-gradient(180deg, #ffffff, #edf3f8) !important;
    border: 1px solid #c3ceda !important;
    border-left: 8px solid #c91f28 !important;
    border-radius: 18px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.96), 0 4px 0 #91a3b7 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-specs-menu-pill.tech-touch-nav-button {
    border-left-color: #0d9488 !important;
    background: linear-gradient(180deg, #f8fffd, #e6fbf6) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-top-done-pill.tech-touch-nav-button {
    border-left-color: #0d9488 !important;
    background: linear-gradient(180deg, #ecfdf5, #d1fae5) !important;
}

body.ui-modern:not(.tech-v2) .tech-start-card .tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-touch-nav-button .app-icon {
    width: 20px !important;
    height: 20px !important;
    padding: 8px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #c91f28, #991b1b) !important;
    border-radius: 13px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.22), 0 7px 14px rgba(15, 23, 42, 0.18) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-specs-menu-pill.tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-top-done-pill.tech-touch-nav-button .app-icon {
    background: linear-gradient(180deg, #0d9488, #0f766e) !important;
}

body.ui-modern:not(.tech-v2) .tech-start-card .tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-touch-nav-button span {
    overflow: hidden !important;
    color: #0f172a !important;
    font-size: 0.94rem !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.ui-modern:not(.tech-v2) .tech-start-card .tech-flow-focus-pill,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-flow-focus-pill,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-flow-focus-pill,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-flow-focus-pill {
    display: grid !important;
    align-content: center !important;
    justify-self: center !important;
    width: min(620px, 100%) !important;
    min-height: 58px !important;
    padding: 8px 26px !important;
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 10px solid #c91f28 !important;
    border-radius: 18px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.96), 0 4px 0 #94a3b8 !important;
}

body.ui-modern:not(.tech-v2) .tech-start-card .tech-flow-focus-pill span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-flow-focus-pill span,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-flow-focus-pill span,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-flow-focus-pill span {
    margin: 0 0 2px !important;
    color: #64748b !important;
    font-size: 0.64rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body.ui-modern:not(.tech-v2) .tech-start-card .tech-flow-focus-pill strong,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-flow-focus-pill strong,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-flow-focus-pill strong,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-flow-focus-pill strong {
    color: #0f172a !important;
    font-size: 1.12rem !important;
    line-height: 1.05 !important;
}

body.ui-modern:not(.tech-v2) .tech-start-found-shell {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

body.ui-modern:not(.tech-v2) .tech-start-found-card {
    display: grid !important;
    justify-items: start !important;
    min-height: 106px !important;
    padding: 14px 16px !important;
    text-align: left !important;
    background: linear-gradient(180deg, #ffffff, #f4f8fc) !important;
    border-left-width: 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-start-found-card strong {
    color: #0f172a !important;
    font-size: 1.08rem !important;
    line-height: 1.08 !important;
}

body.ui-modern:not(.tech-v2) .tech-start-found-card span,
body.ui-modern:not(.tech-v2) .tech-start-found-card small {
    color: #64748b !important;
    font-size: 0.84rem !important;
    font-weight: 900 !important;
}

body.ui-modern:not(.tech-v2) .tech-start-vehicle-backdrop {
    z-index: 16000;
}

body.ui-modern:not(.tech-v2) .tech-start-vehicle-modal {
    width: min(780px, calc(100vw - 48px)) !important;
}

body.ui-modern:not(.tech-v2) .tech-start-modal-summary {
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
    margin: 10px 0 12px;
}

body.ui-modern:not(.tech-v2) .tech-start-modal-summary article {
    display: grid;
    gap: 3px;
    min-height: 82px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #cbd5e1;
    border-left: 7px solid #0d9488;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.95), 0 2px 0 #9fb2c7;
}

body.ui-modern:not(.tech-v2) .tech-start-modal-summary span {
    color: #0f766e;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-start-modal-summary strong {
    color: #0f172a;
    font-size: 1.12rem;
    font-weight: 950;
}

body.ui-modern:not(.tech-v2) .tech-start-modal-summary small {
    overflow: hidden;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-start-vehicle-modal-form {
    display: grid;
    gap: 12px;
}

body.ui-modern:not(.tech-v2) .tech-start-modal-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-start-modal-fields input {
    min-height: 56px !important;
    font-size: 1.08rem !important;
}

body.ui-modern:not(.tech-v2) .tech-start-modal-actions {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-start-modal-actions .primary-action,
body.ui-modern:not(.tech-v2) .tech-start-modal-actions .small-action {
    width: 100% !important;
    max-width: none !important;
    min-height: 54px !important;
    font-size: 0.92rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .login-brand.tech-brand {
    min-height: 62px !important;
    margin-bottom: 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .login-brand.tech-brand:has(.tech-work-context-pill) {
    grid-template-columns: auto minmax(220px, 1fr) minmax(420px, 560px) !important;
    gap: 12px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-context-pill {
    width: min(560px, 100%) !important;
    min-height: 72px !important;
    padding: 10px 14px !important;
    background: linear-gradient(180deg, #ffffff, #f4fbfa) !important;
    border: 1px solid #c7d7e6 !important;
    border-left: 8px solid #0d9488 !important;
    border-radius: 15px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.96), 0 3px 0 #9fb2c7 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-context-row strong {
    font-size: 0.94rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-context-pill small {
    font-size: 0.72rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px) !important;
    gap: 14px !important;
    height: min(520px, calc(100vh - 260px)) !important;
    max-height: min(520px, calc(100vh - 260px)) !important;
    min-height: 410px !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main {
    display: grid !important;
    align-content: start !important;
    gap: 12px !important;
    min-width: 0 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
    gap: 12px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice {
    min-height: 82px !important;
    padding: 13px 15px !important;
    border-left-width: 8px !important;
    border-radius: 15px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice strong {
    color: #0f172a !important;
    font-size: 1.08rem !important;
    line-height: 1.08 !important;
    white-space: normal !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice {
    grid-column: 1 / -1 !important;
    min-height: 112px !important;
    padding: 18px 20px !important;
    border-left-width: 10px !important;
    background:
        radial-gradient(circle at 94% 20%, rgba(37, 99, 235, 0.18), transparent 22%),
        linear-gradient(180deg, #eff6ff, #dbeafe) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice strong {
    font-size: 1.36rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice small {
    display: block !important;
    color: #475569 !important;
    font-size: 0.86rem !important;
    font-weight: 900 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-grid,
body.ui-modern:not(.tech-v2) .tech-view-all-product-grid.tech-product-choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)) !important;
    gap: 12px !important;
    align-items: stretch !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-product-choice-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card,
body.ui-modern:not(.tech-v2) button.tech-product-choice-card {
    min-height: 92px !important;
    padding: 13px 15px !important;
    border-left-width: 8px !important;
    border-radius: 15px !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card strong {
    padding-right: 34px !important;
    color: #0f172a !important;
    font-size: 1.02rem !important;
    line-height: 1.08 !important;
    white-space: normal !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card span,
body.ui-modern:not(.tech-v2) .tech-product-choice-card small {
    color: #64748b !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    white-space: normal !important;
}

body.ui-modern:not(.tech-v2) .tech-section-head {
    min-height: 66px !important;
    padding: 11px 13px !important;
    border-radius: 15px !important;
}

body.ui-modern:not(.tech-v2) .tech-section-head strong {
    font-size: 1.02rem !important;
}

body.ui-modern:not(.tech-v2) .tech-section-head span {
    font-size: 0.78rem !important;
}

body.ui-modern:not(.tech-v2) .tech-section-head-actions .small-action {
    min-width: 112px !important;
    min-height: 48px !important;
    border-radius: 14px !important;
    font-size: 0.86rem !important;
}

body.ui-modern:not(.tech-v2) .tech-wizard-actions .tech-invoice-action,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-wizard-actions .tech-invoice-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 220px !important;
    min-height: 52px !important;
    color: #064e3b !important;
    font-size: 0.94rem !important;
    font-weight: 950 !important;
    background: linear-gradient(180deg, #ecfdf5, #bbf7d0) !important;
    border: 1px solid #10b981 !important;
    border-radius: 15px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.8), 0 3px 0 rgba(5, 150, 105, 0.42) !important;
}

@media (max-width: 1320px) {
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell {
        grid-template-columns: 1fr !important;
        height: auto !important;
        max-height: none !important;
    }

    body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid,
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-product-choice-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    }
}

/* Tech V1 July 4 cleanup: transparent loading, DB diagrams, product-page back state. */
body.ui-modern:not(.tech-v2) .tech-card-loading {
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    background: rgba(15, 23, 42, 0.08) !important;
    backdrop-filter: none !important;
    pointer-events: none !important;
    z-index: 35 !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading[hidden] {
    display: none !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading-panel {
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading-panel strong,
body.ui-modern:not(.tech-v2) .tech-card-loading-panel small {
    display: none !important;
}

body.ui-modern:not(.tech-v2) .tech-back-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-back-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-back-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-back-pill.tech-touch-nav-button {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 220px !important;
    min-height: 58px !important;
    padding: 8px 12px !important;
    color: #0f172a !important;
    text-decoration: none !important;
    background: linear-gradient(180deg, #ffffff, #eef4fa) !important;
    border: 1px solid #c3ceda !important;
    border-left: 8px solid #2563eb !important;
    border-radius: 18px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.96), 0 4px 0 #91a3b7 !important;
}

body.ui-modern:not(.tech-v2) .tech-back-pill.tech-touch-nav-button .app-icon {
    width: 20px !important;
    height: 20px !important;
    padding: 8px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #2563eb, #1d4ed8) !important;
    border-radius: 13px !important;
}

body.ui-modern:not(.tech-v2) .tech-back-pill.tech-touch-nav-button span {
    overflow: hidden !important;
    color: #0f172a !important;
    font-size: 0.94rem !important;
    font-weight: 950 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.ui-modern:not(.tech-v2) .tech-start-modal-actions {
    grid-template-columns: 1.2fr 1fr !important;
}

body.ui-modern:not(.tech-v2) .tech-customer-confirm-actions {
    display: grid !important;
    grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr) !important;
    gap: 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-customer-confirm-actions form,
body.ui-modern:not(.tech-v2) .tech-customer-confirm-actions .primary-action,
body.ui-modern:not(.tech-v2) .tech-customer-confirm-actions .small-action {
    width: 100% !important;
    max-width: none !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-product-choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card,
body.ui-modern:not(.tech-v2) button.tech-product-choice-card {
    min-height: 104px !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card strong {
    font-size: 1.08rem !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card span,
body.ui-modern:not(.tech-v2) .tech-product-choice-card small {
    font-size: 0.84rem !important;
}

body.ui-modern:not(.tech-v2) .tech-legacy-diagram {
    display: grid;
    gap: 12px;
}

body.ui-modern:not(.tech-v2) .tech-legacy-diagram-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-legacy-diagram-summary article,
body.ui-modern:not(.tech-v2) .tech-legacy-diagram-notes article {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #ffffff, #f6fafc);
    border: 1px solid #cbd5e1;
    border-left: 7px solid #0d9488;
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,0.95), 0 2px 0 #9fb2c7;
}

body.ui-modern:not(.tech-v2) .tech-legacy-diagram-summary span,
body.ui-modern:not(.tech-v2) .tech-legacy-diagram-notes strong {
    color: #0f766e;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.ui-modern:not(.tech-v2) .tech-legacy-diagram-summary strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ui-modern:not(.tech-v2) .tech-legacy-diagram-summary small,
body.ui-modern:not(.tech-v2) .tech-legacy-diagram-notes span {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 850;
    line-height: 1.25;
}

body.ui-modern:not(.tech-v2) .tech-legacy-diagram-canvas {
    display: grid;
    place-items: center;
    min-height: 420px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    box-shadow: inset 0 1px rgba(255,255,255,0.95), 0 3px 0 #9fb2c7;
}

body.ui-modern:not(.tech-v2) .tech-legacy-diagram-canvas img {
    display: block;
    max-width: 100%;
    max-height: min(58vh, 620px);
    object-fit: contain;
}

body.ui-modern:not(.tech-v2) .tech-legacy-diagram-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-section-diagrams {
    grid-column: span 3;
}

@media (max-width: 980px) {
    body.ui-modern:not(.tech-v2) .tech-legacy-diagram-summary,
    body.ui-modern:not(.tech-v2) .tech-legacy-diagram-notes {
        grid-template-columns: 1fr !important;
    }
}

/* Tech V1 July 4 refinement: compact services, wide products, sectioned specs modal, wheel loader. */
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-backdrop,
body.ui-modern:not(.tech-v2) .tech-service-map-backdrop,
body.ui-modern:not(.tech-v2) .tech-chassis-map-backdrop {
    z-index: 50000 !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal,
body.ui-modern:not(.tech-v2) .tech-service-map-modal,
body.ui-modern:not(.tech-v2) .tech-chassis-map-modal {
    position: relative;
    z-index: 50001 !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading {
    top: 132px !important;
    background: rgba(15, 23, 42, 0.06) !important;
}

body.ui-modern:not(.tech-v2) .tech-menu-card .tech-card-loading {
    top: 112px !important;
}

body.ui-modern:not(.tech-v2) .tech-start-card .tech-card-loading {
    top: 118px !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring {
    position: relative !important;
    width: 62px !important;
    height: 62px !important;
    border: 7px solid #111827 !important;
    border-top-color: #c91f28 !important;
    border-bottom-color: #94a3b8 !important;
    border-radius: 999px !important;
    background:
        radial-gradient(circle at center, #f8fafc 0 18%, #111827 19% 26%, transparent 27%),
        conic-gradient(from 0deg, transparent 0 18deg, rgba(255,255,255,0.58) 18deg 24deg, transparent 24deg 60deg);
    box-shadow:
        inset 0 0 0 5px #e5e7eb,
        inset 0 0 0 15px #ffffff,
        0 12px 26px rgba(15, 23, 42, 0.24) !important;
    animation: modal-progress-spin 0.95s linear infinite !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring::before {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 999px;
    background: #111827;
    box-shadow: 0 0 0 4px #f8fafc;
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 22px;
    border-radius: 999px;
    background: #c91f28;
    transform: translateX(-50%);
    transform-origin: center 23px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.65);
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
    gap: 9px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice {
    min-height: 64px !important;
    padding: 9px 11px !important;
    border-left-width: 7px !important;
    border-radius: 13px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice strong {
    font-size: 0.94rem !important;
    line-height: 1.08 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice em {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.82rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice {
    grid-column: span 2 !important;
    min-height: 80px !important;
    padding: 13px 15px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice strong {
    font-size: 1.16rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice small {
    font-size: 0.78rem !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-product-choice-grid,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid {
    grid-template-columns: repeat(2, minmax(360px, 1fr)) !important;
    gap: 12px !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card,
body.ui-modern:not(.tech-v2) button.tech-product-choice-card {
    min-height: 96px !important;
    padding: 12px 15px !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card strong {
    font-size: 1.02rem !important;
}

body.ui-modern:not(.tech-v2) .tech-product-choice-card span,
body.ui-modern:not(.tech-v2) .tech-product-choice-card small {
    font-size: 0.78rem !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-specs {
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    max-height: calc(100vh - 130px) !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-kpi-grid {
    display: none !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-menu {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-button {
    min-height: 58px !important;
    padding: 8px 10px !important;
    border-radius: 13px !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-button strong {
    font-size: 0.82rem !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-button span {
    font-size: 0.62rem !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-grid {
    display: block !important;
    min-height: min(430px, calc(100vh - 360px)) !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section {
    display: none !important;
    height: 100% !important;
    min-height: min(400px, calc(100vh - 380px)) !important;
    padding: 12px !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section:target {
    display: grid !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-grid:not(:has(.tech-unified-spec-section:target)) .tech-spec-section-identity {
    display: grid !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section .tech-spec-line-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-section-fluids .tech-spec-line-list,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-section-fitments .tech-spec-line-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-line {
    min-height: 46px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-line span,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-line strong {
    font-size: 0.72rem !important;
    line-height: 1.12 !important;
}

@media (max-width: 1320px) {
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr)) !important;
    }

    body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-product-choice-grid,
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr)) !important;
    }
}

@media (max-width: 980px) {
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid,
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-product-choice-grid,
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid,
    body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section .tech-spec-line-list {
        grid-template-columns: 1fr !important;
    }

    body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice {
        grid-column: auto !important;
    }
}

/* Tech V1 July 4 final sizing pass: service-like product cards, full-card loading, compact specs. */
body.ui-modern .tech-card-loading,
body:not(.ui-modern) .tech-card-loading,
body.ui-modern .app-loading-overlay,
body:not(.ui-modern) .app-loading-overlay,
body.ui-modern:not(.tech-v2) .tech-card-loading,
body.ui-modern:not(.tech-v2) .tech-menu-card .tech-card-loading,
body.ui-modern:not(.tech-v2) .tech-start-card .tech-card-loading,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-card-loading,
body.ui-modern:not(.tech-v2) .tech-customer-card .tech-card-loading,
body.ui-modern:not(.tech-v2) .tech-specs-card .tech-card-loading,
body.ui-modern:not(.tech-v2) .tech-open-card .tech-card-loading,
body.ui-modern:not(.tech-v2) .tech-aux-card .tech-card-loading,
body.ui-modern:not(.tech-v2) .tech-eod-card .tech-card-loading {
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    border-radius: inherit !important;
    background: rgba(15, 23, 42, 0.22) !important;
    z-index: 1200 !important;
}

body.ui-modern .app-loading-overlay,
body:not(.ui-modern) .app-loading-overlay {
    z-index: 7000 !important;
    display: grid !important;
    place-items: center !important;
    backdrop-filter: none !important;
}

body.ui-modern .app-loading-panel,
body:not(.ui-modern) .app-loading-panel {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    color: transparent !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.ui-modern .app-loading-panel strong,
body.ui-modern .app-loading-panel small,
body:not(.ui-modern) .app-loading-panel strong,
body:not(.ui-modern) .app-loading-panel small {
    display: none !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring,
body.ui-modern .app-loading-panel .modal-progress-ring,
body:not(.ui-modern) .app-loading-panel .modal-progress-ring,
body.ui-modern .modal-loading-card .modal-progress-ring,
body:not(.ui-modern) .modal-loading-card .modal-progress-ring {
    position: relative !important;
    width: 76px !important;
    height: 76px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background:
        radial-gradient(circle at center, #f8fafc 0 15%, #0f172a 16% 27%, transparent 28%),
        repeating-conic-gradient(from 0deg, #0f172a 0deg 14deg, #334155 14deg 24deg, #0f172a 24deg 38deg),
        radial-gradient(circle at center, #e2e8f0 0 58%, #0f172a 59% 100%) !important;
    box-shadow:
        inset 0 0 0 7px #020617,
        inset 0 0 0 18px #ffffff,
        0 18px 34px rgba(15, 23, 42, 0.34) !important;
    animation: modal-progress-spin 0.9s linear infinite !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring::before,
body.ui-modern .app-loading-panel .modal-progress-ring::before,
body:not(.ui-modern) .app-loading-panel .modal-progress-ring::before,
body.ui-modern .modal-loading-card .modal-progress-ring::before,
body:not(.ui-modern) .modal-loading-card .modal-progress-ring::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -15px;
    width: 18px;
    height: 26px;
    border-radius: 60% 60% 60% 0;
    background: linear-gradient(180deg, #c91f28, #7f1d1d);
    box-shadow: 0 3px 0 rgba(15, 23, 42, 0.24);
    transform: translateX(-50%) rotate(-45deg);
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring::after,
body.ui-modern .app-loading-panel .modal-progress-ring::after,
body:not(.ui-modern) .app-loading-panel .modal-progress-ring::after,
body.ui-modern .modal-loading-card .modal-progress-ring::after,
body:not(.ui-modern) .modal-loading-card .modal-progress-ring::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 54px;
    height: 8px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.28);
    filter: blur(1px);
    transform: translateX(-50%);
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr)) !important;
    gap: 9px !important;
    align-content: start !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-form,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid button.tech-product-choice-card {
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid button.tech-product-choice-card {
    min-height: 66px !important;
    padding: 8px 10px !important;
    border-left-width: 7px !important;
    border-radius: 13px !important;
    align-content: center !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    padding-right: 26px !important;
    font-size: 0.9rem !important;
    line-height: 1.06 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 0.66rem !important;
    line-height: 1.05 !important;
}

/* Tech V1 lazy specs restoration: keep the rich specs UI while loading it on demand. */
body.ui-modern:not(.tech-v2) .vehicle-specs-async-shell {
    display: grid !important;
    min-height: min(540px, calc(100vh - 178px)) !important;
    align-items: stretch !important;
}

body.ui-modern:not(.tech-v2) .vehicle-specs-loader {
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    gap: 10px !important;
    min-height: 360px !important;
    color: #0f172a !important;
    text-align: center !important;
    background: rgba(241, 245, 249, 0.72) !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 18px !important;
}

body.ui-modern:not(.tech-v2) .vehicle-specs-loader strong {
    color: #0f172a !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
}

body.ui-modern:not(.tech-v2) .vehicle-specs-loader small,
body.ui-modern:not(.tech-v2) .vehicle-specs-status {
    color: #64748b !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading:not([hidden]) {
    display: grid !important;
    place-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading,
body.ui-modern .app-loading-overlay,
body:not(.ui-modern) .app-loading-overlay,
body.ui-modern .modal-loading-lock,
body:not(.ui-modern) .modal-loading-lock {
    background: rgba(15, 23, 42, 0.34) !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading-panel,
body.ui-modern .modal-loading-card,
body:not(.ui-modern) .modal-loading-card {
    display: grid !important;
    place-items: center !important;
    gap: 8px !important;
    color: #0f172a !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(148, 163, 184, 0.7) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.24) !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading-panel strong,
body.ui-modern:not(.tech-v2) .tech-card-loading-panel small,
body.ui-modern .modal-loading-card strong,
body.ui-modern .modal-loading-card small,
body:not(.ui-modern) .modal-loading-card strong,
body:not(.ui-modern) .modal-loading-card small {
    color: #0f172a !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring,
body.ui-modern:not(.tech-v2) .vehicle-specs-loader .modal-progress-ring,
body.ui-modern .app-loading-panel .modal-progress-ring,
body:not(.ui-modern) .app-loading-panel .modal-progress-ring,
body.ui-modern .modal-loading-card .modal-progress-ring,
body:not(.ui-modern) .modal-loading-card .modal-progress-ring {
    position: relative !important;
    width: 82px !important;
    height: 82px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    animation: none !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring::before,
body.ui-modern:not(.tech-v2) .vehicle-specs-loader .modal-progress-ring::before,
body.ui-modern .app-loading-panel .modal-progress-ring::before,
body:not(.ui-modern) .app-loading-panel .modal-progress-ring::before,
body.ui-modern .modal-loading-card .modal-progress-ring::before,
body:not(.ui-modern) .modal-loading-card .modal-progress-ring::before {
    content: "" !important;
    position: absolute !important;
    inset: 10px !important;
    border-radius: 999px !important;
    background:
        radial-gradient(circle at center, #f8fafc 0 15%, #111827 16% 25%, #f8fafc 26% 34%, transparent 35%),
        repeating-conic-gradient(from 0deg, #020617 0deg 11deg, #334155 11deg 20deg, #020617 20deg 31deg),
        radial-gradient(circle at center, #f8fafc 0 50%, #111827 51% 72%, #020617 73% 100%) !important;
    box-shadow:
        inset 0 0 0 6px #020617,
        inset 0 0 0 18px rgba(255, 255, 255, 0.92),
        0 18px 30px rgba(2, 6, 23, 0.35) !important;
    animation: pitpilot-quick-lube-tire 0.78s linear infinite !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring::after,
body.ui-modern:not(.tech-v2) .vehicle-specs-loader .modal-progress-ring::after,
body.ui-modern .app-loading-panel .modal-progress-ring::after,
body:not(.ui-modern) .app-loading-panel .modal-progress-ring::after,
body.ui-modern .modal-loading-card .modal-progress-ring::after,
body:not(.ui-modern) .modal-loading-card .modal-progress-ring::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    width: 20px !important;
    height: 28px !important;
    border-radius: 70% 70% 70% 0 !important;
    background: linear-gradient(145deg, #f97316 0%, #c91f28 58%, #7f1d1d 100%) !important;
    box-shadow: inset 3px 3px 0 rgba(255,255,255,0.28), 0 7px 10px rgba(127, 29, 29, 0.24) !important;
    filter: none !important;
    transform-origin: 50% 72% !important;
    animation: pitpilot-quick-lube-drop 0.92s ease-in-out infinite !important;
}

body.ui-modern:not(.tech-v2) .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-specs-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-top-done-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-wizard-actions .small-action,
body.ui-modern:not(.tech-v2) .tech-wizard-actions .primary-action,
body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot a,
body.ui-modern:not(.tech-v2) .tech-invoice-action {
    color: #0f172a !important;
    font-size: 0.9rem !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
}

body.ui-modern:not(.tech-v2) .tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-main-menu-pill.tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-specs-menu-pill.tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-top-done-pill.tech-touch-nav-button span {
    color: #0f172a !important;
    font-size: 0.9rem !important;
    font-weight: 950 !important;
}

body.ui-modern:not(.tech-v2) .tech-flow-focus-pill strong,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-flow-focus-pill strong {
    color: #0f172a !important;
    font-size: 1.02rem !important;
    font-weight: 950 !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-backdrop,
body.ui-modern:not(.tech-v2) .tech-service-map-backdrop,
body.ui-modern:not(.tech-v2) .tech-chassis-map-backdrop {
    z-index: 98000 !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal {
    width: min(1180px, calc(100vw - 52px)) !important;
    max-height: calc(100vh - 56px) !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-specs {
    max-height: calc(100vh - 166px) !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-section {
    min-height: min(410px, calc(100vh - 330px)) !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body {
    display: grid !important;
    place-items: center !important;
    min-height: min(330px, calc(100vh - 405px)) !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-legacy-diagram-canvas,
body.ui-modern:not(.tech-v2) .tech-service-map-canvas,
body.ui-modern:not(.tech-v2) .tech-chassis-canvas {
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    cursor: zoom-in !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-legacy-diagram,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-service-map,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-chassis-map {
    width: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-legacy-diagram-canvas,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-service-map-canvas,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-chassis-canvas {
    width: 100% !important;
    height: min(330px, calc(100vh - 420px)) !important;
    min-height: 240px !important;
}

body.ui-modern:not(.tech-v2) .tech-legacy-diagram-canvas img,
body.ui-modern:not(.tech-v2) .tech-service-map-canvas svg,
body.ui-modern:not(.tech-v2) .tech-chassis-canvas .tech-chassis-frame {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transform-origin: var(--diagram-zoom-x, 50%) var(--diagram-zoom-y, 50%) !important;
    transition: transform 120ms ease-out !important;
    will-change: transform !important;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas svg {
    width: 100% !important;
    height: 100% !important;
}

body.ui-modern:not(.tech-v2) .tech-diagram-magnifier.is-magnifying img,
body.ui-modern:not(.tech-v2) .tech-diagram-magnifier.is-magnifying svg,
body.ui-modern:not(.tech-v2) .tech-diagram-magnifier.is-magnifying .tech-chassis-frame {
    transform: scale(1.55) !important;
}

/* Tech V1 July 5 final pass: one loading style, full-panel loading mask, denser service cards. */
html body .app-loading-panel .oil-loader,
html body .app-loading-panel .odometer-loader,
html body .app-startup-panel .oil-loader {
    display: none !important;
}

html body .app-startup-panel .modal-progress-ring.app-startup-loader,
html body .app-loading-panel .modal-progress-ring,
html body .modal-loading-card .modal-progress-ring,
html body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring,
html body.ui-modern:not(.tech-v2) .vehicle-specs-loader .modal-progress-ring {
    position: relative !important;
    width: 76px !important;
    height: 76px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    animation: none !important;
}

html body .app-startup-panel .modal-progress-ring.app-startup-loader::before,
html body .app-loading-panel .modal-progress-ring::before,
html body .modal-loading-card .modal-progress-ring::before,
html body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring::before,
html body.ui-modern:not(.tech-v2) .vehicle-specs-loader .modal-progress-ring::before {
    content: "" !important;
    position: absolute !important;
    inset: 9px !important;
    border-radius: 999px !important;
    background:
        radial-gradient(circle at center, #f8fafc 0 15%, #111827 16% 25%, #f8fafc 26% 34%, transparent 35%),
        repeating-conic-gradient(from 0deg, #020617 0deg 11deg, #334155 11deg 20deg, #020617 20deg 31deg),
        radial-gradient(circle at center, #f8fafc 0 50%, #111827 51% 72%, #020617 73% 100%) !important;
    box-shadow: inset 0 0 0 5px #020617, inset 0 0 0 16px rgba(255,255,255,0.92), 0 18px 30px rgba(2, 6, 23, 0.35) !important;
    animation: pitpilot-quick-lube-tire 0.78s linear infinite !important;
}

html body .app-startup-panel .modal-progress-ring.app-startup-loader::after,
html body .app-loading-panel .modal-progress-ring::after,
html body .modal-loading-card .modal-progress-ring::after,
html body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring::after,
html body.ui-modern:not(.tech-v2) .vehicle-specs-loader .modal-progress-ring::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    width: 18px !important;
    height: 26px !important;
    border-radius: 70% 70% 70% 0 !important;
    background: linear-gradient(145deg, #f97316 0%, #c91f28 58%, #7f1d1d 100%) !important;
    box-shadow: inset 3px 3px 0 rgba(255,255,255,0.28), 0 7px 10px rgba(127, 29, 29, 0.24) !important;
    transform-origin: 50% 72% !important;
    animation: pitpilot-quick-lube-drop 0.92s ease-in-out infinite !important;
}

html body.ui-modern:not(.tech-v2) .tech-card-loading {
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    background: rgba(15, 23, 42, 0.30) !important;
    border-radius: inherit !important;
    backdrop-filter: blur(1.5px) !important;
    z-index: 1200 !important;
}

html body.ui-modern:not(.tech-v2) .tech-card-loading[hidden] {
    display: none !important;
}

html body.ui-modern:not(.tech-v2) .tech-card-loading > .tech-card-loading-panel {
    min-width: 230px !important;
    padding: 18px 22px !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(148, 163, 184, 0.7) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.24) !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 390px) !important;
    gap: 12px !important;
    height: min(560px, calc(100vh - 230px)) !important;
    max-height: min(560px, calc(100vh - 230px)) !important;
    min-height: 430px !important;
    overflow: hidden !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-content: start !important;
    gap: 9px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(clamp(54px, 6.8vh, 66px), auto) !important;
    align-content: start !important;
    gap: 8px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice {
    position: relative !important;
    display: grid !important;
    align-content: center !important;
    min-height: clamp(54px, 6.8vh, 66px) !important;
    padding: 9px 12px !important;
    border-radius: 14px !important;
    border-left-width: 7px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%) !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.96), 0 2px 0 #9fb2c7, 0 8px 18px rgba(15, 23, 42, 0.05) !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice strong {
    color: #0f172a !important;
    font-size: clamp(0.92rem, 1.25vw, 1.03rem) !important;
    font-weight: 950 !important;
    line-height: 1.08 !important;
    white-space: normal !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice.has-selection,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice.is-selected {
    background: linear-gradient(180deg, #f0fdfa 0%, #e6fffb 100%) !important;
    border-color: #0f766e !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.96), 0 2px 0 #65a99e, 0 10px 20px rgba(13, 148, 136, 0.12) !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice em {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    width: 25px !important;
    height: 25px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #10b981, #047857) !important;
    color: #ffffff !important;
    font-size: 0.86rem !important;
    font-style: normal !important;
    font-weight: 950 !important;
    transform: translateY(-50%) !important;
    box-shadow: 0 7px 14px rgba(4, 120, 87, 0.24) !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice {
    grid-column: span 2 !important;
    min-height: clamp(68px, 8vh, 82px) !important;
    padding: 12px 16px !important;
    background:
        radial-gradient(circle at 94% 18%, rgba(37, 99, 235, 0.20), transparent 24%),
        linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-left-color: #2563eb !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice strong {
    font-size: clamp(1.08rem, 1.55vw, 1.24rem) !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice span,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice small {
    display: block !important;
    color: #475569 !important;
    font-size: 0.76rem !important;
    font-weight: 900 !important;
    line-height: 1.16 !important;
}

@media (max-width: 1280px) {
    html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Absolute final tech polish: keep these after all legacy overrides. */
body.ui-modern:not(.tech-v2) .tech-card-loading,
body.ui-modern .app-loading-overlay,
body:not(.ui-modern) .app-loading-overlay,
body.ui-modern .modal-loading-lock,
body:not(.ui-modern) .modal-loading-lock {
    background: rgba(15, 23, 42, 0.38) !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading-panel,
body.ui-modern .app-loading-panel,
body:not(.ui-modern) .app-loading-panel,
body.ui-modern .modal-loading-card,
body:not(.ui-modern) .modal-loading-card {
    display: grid !important;
    place-items: center !important;
    gap: 9px !important;
    min-width: min(310px, calc(100vw - 74px)) !important;
    min-height: 190px !important;
    padding: 22px 26px !important;
    color: #0f172a !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(148, 163, 184, 0.78) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28) !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading-panel strong,
body.ui-modern:not(.tech-v2) .tech-card-loading-panel small,
body.ui-modern .app-loading-panel strong,
body.ui-modern .app-loading-panel small,
body:not(.ui-modern) .app-loading-panel strong,
body:not(.ui-modern) .app-loading-panel small,
body.ui-modern .modal-loading-card strong,
body.ui-modern .modal-loading-card small,
body:not(.ui-modern) .modal-loading-card strong,
body:not(.ui-modern) .modal-loading-card small {
    display: block !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading-panel strong,
body.ui-modern .app-loading-panel strong,
body:not(.ui-modern) .app-loading-panel strong,
body.ui-modern .modal-loading-card strong,
body:not(.ui-modern) .modal-loading-card strong {
    color: #0f172a !important;
    font-size: 1.02rem !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading-panel small,
body.ui-modern .app-loading-panel small,
body:not(.ui-modern) .app-loading-panel small,
body.ui-modern .modal-loading-card small,
body:not(.ui-modern) .modal-loading-card small {
    color: #64748b !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot a,
body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot a:visited,
body.ui-modern:not(.tech-v2) .tech-invoice-action,
body.ui-modern:not(.tech-v2) .tech-invoice-action:visited,
body.ui-modern:not(.tech-v2) .tech-wizard-actions .tech-invoice-action,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-wizard-actions .tech-invoice-action {
    color: #ffffff !important;
    text-shadow: 0 1px 0 rgba(2, 6, 23, 0.2) !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot a:hover,
body.ui-modern:not(.tech-v2) .tech-invoice-action:hover {
    color: #ffffff !important;
    filter: brightness(1.04) !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line {
    min-height: 52px !important;
    padding: 8px 10px !important;
    gap: 3px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line strong {
    font-size: 0.86rem !important;
    line-height: 1.08 !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line span,
body.ui-modern:not(.tech-v2) .tech-inline-invoice-line small {
    font-size: 0.76rem !important;
    line-height: 1.1 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice:not(.service-kind-full) {
    min-height: 78px !important;
    padding: 13px 18px !important;
    box-shadow:
        inset 0 1px rgba(255,255,255,0.96),
        0 4px 0 #9fb2c4,
        0 12px 24px rgba(15, 23, 42, 0.06) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice:not(.service-kind-full) strong {
    font-size: 1.02rem !important;
    line-height: 1.08 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.service-kind-full {
    min-height: 92px !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-specs {
    font-size: 1.02rem !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-button strong,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section header strong {
    font-size: 1.02rem !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-button span,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section header small,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-fact span,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-table td,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-table th {
    font-size: 0.82rem !important;
}

html body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot > a[href],
html body.ui-modern:not(.tech-v2) a.small-action.tech-invoice-action,
html body.ui-modern:not(.tech-v2) .tech-wizard-actions a.small-action.tech-invoice-action,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-wizard-actions a.small-action.tech-invoice-action {
    color: #ffffff !important;
    text-shadow: 0 1px 0 rgba(2, 6, 23, 0.24) !important;
}

html body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot > a[href]:hover,
html body.ui-modern:not(.tech-v2) a.small-action.tech-invoice-action:hover {
    color: #ffffff !important;
}

html body.ui-modern:not(.tech-v2) .tech-card-loading > .tech-card-loading-panel,
html body.ui-modern .app-loading-overlay > .app-loading-panel,
html body:not(.ui-modern) .app-loading-overlay > .app-loading-panel,
html body.ui-modern .modal-loading-lock > .modal-loading-card,
html body:not(.ui-modern) .modal-loading-lock > .modal-loading-card {
    display: grid !important;
    place-items: center !important;
    gap: 9px !important;
    min-width: min(310px, calc(100vw - 74px)) !important;
    min-height: 190px !important;
    padding: 22px 26px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(148, 163, 184, 0.78) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28) !important;
}

html body.ui-modern:not(.tech-v2) .tech-card-loading-panel strong,
html body.ui-modern:not(.tech-v2) .tech-card-loading-panel small,
html body.ui-modern .app-loading-panel strong,
html body.ui-modern .app-loading-panel small,
html body:not(.ui-modern) .app-loading-panel strong,
html body:not(.ui-modern) .app-loading-panel small,
html body.ui-modern .modal-loading-card strong,
html body.ui-modern .modal-loading-card small,
html body:not(.ui-modern) .modal-loading-card strong,
html body:not(.ui-modern) .modal-loading-card small {
    display: block !important;
}

/* Tech V1 polish lock: invoice contrast, slightly lifted service cards, one boxed loader. */
body.ui-modern:not(.tech-v2) .tech-card-loading,
body.ui-modern .app-loading-overlay,
body:not(.ui-modern) .app-loading-overlay,
body.ui-modern .modal-loading-lock,
body:not(.ui-modern) .modal-loading-lock {
    background: rgba(15, 23, 42, 0.38) !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading-panel,
body.ui-modern .app-loading-panel,
body:not(.ui-modern) .app-loading-panel,
body.ui-modern .modal-loading-card,
body:not(.ui-modern) .modal-loading-card {
    display: grid !important;
    place-items: center !important;
    gap: 9px !important;
    min-width: min(310px, calc(100vw - 74px)) !important;
    min-height: 190px !important;
    padding: 22px 26px !important;
    color: #0f172a !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(148, 163, 184, 0.78) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28) !important;
}

body.ui-modern:not(.tech-v2) .vehicle-specs-loader {
    min-height: 360px !important;
    background: rgba(241, 245, 249, 0.78) !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading-panel strong,
body.ui-modern:not(.tech-v2) .tech-card-loading-panel small,
body.ui-modern .app-loading-panel strong,
body.ui-modern .app-loading-panel small,
body:not(.ui-modern) .app-loading-panel strong,
body:not(.ui-modern) .app-loading-panel small,
body.ui-modern .modal-loading-card strong,
body.ui-modern .modal-loading-card small,
body:not(.ui-modern) .modal-loading-card strong,
body:not(.ui-modern) .modal-loading-card small {
    display: block !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading-panel strong,
body.ui-modern .app-loading-panel strong,
body:not(.ui-modern) .app-loading-panel strong,
body.ui-modern .modal-loading-card strong,
body:not(.ui-modern) .modal-loading-card strong {
    color: #0f172a !important;
    font-size: 1.02rem !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading-panel small,
body.ui-modern .app-loading-panel small,
body:not(.ui-modern) .app-loading-panel small,
body.ui-modern .modal-loading-card small,
body:not(.ui-modern) .modal-loading-card small {
    color: #64748b !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot a,
body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot a:visited,
body.ui-modern:not(.tech-v2) .tech-invoice-action,
body.ui-modern:not(.tech-v2) .tech-invoice-action:visited,
body.ui-modern:not(.tech-v2) .tech-wizard-actions .tech-invoice-action,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-wizard-actions .tech-invoice-action {
    color: #ffffff !important;
    text-shadow: 0 1px 0 rgba(2, 6, 23, 0.2) !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot a:hover,
body.ui-modern:not(.tech-v2) .tech-invoice-action:hover {
    color: #ffffff !important;
    filter: brightness(1.04) !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line {
    min-height: 52px !important;
    padding: 8px 10px !important;
    gap: 3px !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line strong {
    font-size: 0.86rem !important;
    line-height: 1.08 !important;
}

body.ui-modern:not(.tech-v2) .tech-inline-invoice-line span,
body.ui-modern:not(.tech-v2) .tech-inline-invoice-line small {
    font-size: 0.76rem !important;
    line-height: 1.1 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice:not(.service-kind-full) {
    min-height: 78px !important;
    padding: 13px 18px !important;
    box-shadow:
        inset 0 1px rgba(255,255,255,0.96),
        0 4px 0 #9fb2c4,
        0 12px 24px rgba(15, 23, 42, 0.06) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice:not(.service-kind-full) strong {
    font-size: 1.02rem !important;
    line-height: 1.08 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.service-kind-full {
    min-height: 92px !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-specs {
    font-size: 1.02rem !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-button strong,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section header strong {
    font-size: 1.02rem !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-button span,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section header small,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-fact span,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-table td,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-table th {
    font-size: 0.82rem !important;
}

body.ui-modern:not(.tech-v2) .tech-receipt-review-shell {
    align-items: start !important;
}

body.ui-modern:not(.tech-v2) .tech-receipt-review-shell .tech-invoice-lines {
    align-content: start !important;
    align-self: start !important;
    grid-auto-rows: min-content !important;
}

body.ui-modern:not(.tech-v2) .tech-receipt-review-shell .tech-invoice-line {
    align-self: start !important;
    min-height: 48px !important;
    padding: 5px 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal {
    width: min(980px, calc(100vw - 84px)) !important;
    max-height: min(620px, calc(100vh - 96px)) !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .vehicle-specs-heading-actions {
    justify-content: end !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-specs {
    gap: 7px !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    max-height: min(520px, calc(100vh - 176px)) !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-hero {
    min-height: 48px !important;
    padding: 7px 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-hero strong {
    font-size: 0.9rem !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-hero small,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-hero-meta span {
    font-size: 0.62rem !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-button {
    min-height: 44px !important;
    grid-template-columns: 26px minmax(0, 1fr) !important;
    padding: 6px 8px !important;
    border-radius: 11px !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-button .app-icon {
    width: 14px !important;
    height: 14px !important;
    padding: 5px !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-button strong {
    font-size: 0.72rem !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-button span {
    font-size: 0.54rem !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-grid {
    display: block !important;
    min-height: min(285px, calc(100vh - 330px)) !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section {
    min-height: min(275px, calc(100vh - 340px)) !important;
    padding: 8px !important;
    gap: 6px !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section .tech-spec-line-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-section-fitments .tech-spec-line-list,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-section-fluids .tech-spec-line-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-line {
    min-height: 32px !important;
    padding: 5px 7px !important;
    border-radius: 8px !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-line span,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-line strong {
    font-size: 0.62rem !important;
    line-height: 1.08 !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-section {
    grid-template-rows: auto minmax(0, 1fr) !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body {
    min-height: 0 !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-legacy-diagram,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-service-map,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-chassis-map {
    max-height: 235px !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-legacy-diagram-summary,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-legacy-diagram-notes {
    display: none !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-legacy-diagram-canvas img {
    max-height: 225px !important;
    object-fit: contain !important;
}

@media (max-width: 1320px) {
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid {
        grid-template-columns: repeat(3, minmax(160px, 1fr)) !important;
    }
}

@media (max-width: 980px) {
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid,
    body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-menu,
    body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-section-fitments .tech-spec-line-list,
    body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-section-fluids .tech-spec-line-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Keep legacy oil/filter step nav consistent with the newer tech header buttons. */
body.ui-modern:not(.tech-v2) .tech-work-card .tech-nav-row .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-main-menu-pill.tech-touch-nav-button {
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #edf3f8) !important;
    border: 1px solid #c3ceda !important;
    border-left: 8px solid #c91f28 !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.96), 0 4px 0 #91a3b7 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-nav-row .tech-main-menu-pill.tech-touch-nav-button .app-icon,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-main-menu-pill.tech-touch-nav-button .app-icon {
    color: #ffffff !important;
    background: linear-gradient(180deg, #c91f28, #991b1b) !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-nav-row .tech-main-menu-pill.tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-main-menu-pill.tech-touch-nav-button span {
    color: #0f172a !important;
}

/* Tech V1 July 4 product fit: wide readable product rows and contained invoice rail. */
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 400px) !important;
    gap: 14px !important;
    height: min(500px, calc(100vh - 270px)) !important;
    max-height: min(500px, calc(100vh - 270px)) !important;
    min-height: 390px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main {
    min-height: 0 !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start !important;
    gap: 10px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding-right: 2px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-form,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid button.tech-product-choice-card {
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid button.tech-product-choice-card {
    min-height: 78px !important;
    padding: 11px 14px !important;
    align-content: center !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    padding-right: 34px !important;
    font-size: 1rem !important;
    line-height: 1.08 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 0.76rem !important;
    line-height: 1.1 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side {
    grid-template-rows: auto minmax(0, 1fr) !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-work-context-side {
    min-height: 48px !important;
    padding: 5px 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice {
    align-self: stretch !important;
    height: auto !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-lines {
    min-height: 0 !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-empty {
    min-height: 92px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-foot {
    margin-top: 0 !important;
}

/* Tech V1 product picker: match regular service cards, not the full-service row. */
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-view-all-product-grid.tech-product-choice-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(170px, 1fr)) !important;
    align-content: start !important;
    align-items: stretch !important;
    gap: 9px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding-right: 2px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-form,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid button.tech-product-choice-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    justify-self: stretch !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid button.tech-product-choice-card {
    min-height: 64px !important;
    padding: 9px 11px !important;
    border-left-width: 7px !important;
    border-radius: 13px !important;
    align-content: center !important;
    text-align: left !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    padding-right: 24px !important;
    color: #0f172a !important;
    font-size: 0.94rem !important;
    line-height: 1.08 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #64748b !important;
    font-size: 0.68rem !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
}

@media (max-width: 1320px) {
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid,
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-view-all-product-grid.tech-product-choice-grid {
        grid-template-columns: repeat(3, minmax(170px, 1fr)) !important;
    }
}

@media (max-width: 980px) {
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid,
    body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-view-all-product-grid.tech-product-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Loading polish: no spinner inside the step title; use a quick-lube tire/drop loader only. */
body.ui-modern:not(.tech-v2) .tech-card.is-tech-initializing .tech-flow-focus-pill,
body.ui-modern:not(.tech-v2) .tech-card.is-tech-navigating .tech-flow-focus-pill,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-flow-focus-pill,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-flow-focus-pill {
    padding-right: 24px !important;
}

body.ui-modern:not(.tech-v2) .tech-card.is-tech-initializing .tech-flow-focus-pill::after,
body.ui-modern:not(.tech-v2) .tech-card.is-tech-navigating .tech-flow-focus-pill::after,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-flow-focus-pill::after,
body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-flow-focus-pill::after {
    content: none !important;
    display: none !important;
    animation: none !important;
}

@keyframes pitpilot-quick-lube-tire {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pitpilot-quick-lube-drop {
    0%, 100% {
        transform: translateX(-50%) rotate(45deg) scale(1);
    }
    50% {
        transform: translateX(-50%) rotate(45deg) scale(0.88);
    }
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring,
body.ui-modern .app-loading-panel .modal-progress-ring,
body:not(.ui-modern) .app-loading-panel .modal-progress-ring,
body.ui-modern .modal-loading-card .modal-progress-ring,
body:not(.ui-modern) .modal-loading-card .modal-progress-ring {
    position: relative !important;
    width: 84px !important;
    height: 84px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    animation: none !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring::before,
body.ui-modern .app-loading-panel .modal-progress-ring::before,
body:not(.ui-modern) .app-loading-panel .modal-progress-ring::before,
body.ui-modern .modal-loading-card .modal-progress-ring::before,
body:not(.ui-modern) .modal-loading-card .modal-progress-ring::before {
    content: "" !important;
    position: absolute !important;
    inset: 10px !important;
    border-radius: 999px !important;
    background:
        radial-gradient(circle at center, #f8fafc 0 15%, #111827 16% 25%, #f8fafc 26% 34%, transparent 35%),
        repeating-conic-gradient(from 0deg, #020617 0deg 11deg, #334155 11deg 20deg, #020617 20deg 31deg),
        radial-gradient(circle at center, #f8fafc 0 50%, #111827 51% 72%, #020617 73% 100%) !important;
    box-shadow:
        inset 0 0 0 6px #020617,
        inset 0 0 0 18px rgba(255,255,255,0.9),
        0 18px 30px rgba(2, 6, 23, 0.35) !important;
    animation: pitpilot-quick-lube-tire 0.78s linear infinite !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring::after,
body.ui-modern .app-loading-panel .modal-progress-ring::after,
body:not(.ui-modern) .app-loading-panel .modal-progress-ring::after,
body.ui-modern .modal-loading-card .modal-progress-ring::after,
body:not(.ui-modern) .modal-loading-card .modal-progress-ring::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    width: 20px !important;
    height: 28px !important;
    border-radius: 70% 70% 70% 0 !important;
    background: linear-gradient(145deg, #f97316 0%, #c91f28 58%, #7f1d1d 100%) !important;
    box-shadow:
        inset 3px 3px 0 rgba(255,255,255,0.28),
        0 7px 10px rgba(127, 29, 29, 0.24) !important;
    filter: none !important;
    animation: pitpilot-quick-lube-drop 0.92s ease-in-out infinite !important;
    transform-origin: 50% 72% !important;
}

/* Product pages can now show more items; keep the pager fully visible inside the panel. */
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-view-all-product-grid.tech-product-choice-grid {
    grid-template-columns: repeat(4, minmax(155px, 1fr)) !important;
    grid-auto-rows: minmax(60px, auto) !important;
    gap: 7px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid button.tech-product-choice-card {
    min-height: 60px !important;
    padding: 7px 10px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card strong {
    font-size: 0.9rem !important;
    line-height: 1.04 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card small {
    font-size: 0.64rem !important;
    line-height: 1.03 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell .tech-inline-product-pager,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main > .tech-pager {
    margin-top: 7px !important;
    min-height: 36px !important;
}

/* View All product modals need their own rhythm; do not inherit compact in-panel product sizing. */
body.ui-modern:not(.tech-v2) .tech-view-all-backdrop {
    align-items: center !important;
    padding: 18px !important;
}

body.ui-modern:not(.tech-v2) .tech-view-all-modal {
    width: min(1320px, calc(100vw - 54px)) !important;
    height: min(690px, calc(100vh - 54px)) !important;
    max-height: calc(100vh - 54px) !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-view-all-modal .tech-view-all-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 160px) !important;
    align-items: start !important;
    gap: 14px !important;
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.ui-modern:not(.tech-v2) .tech-view-all-modal .tech-view-all-heading .small-action {
    min-height: 54px !important;
    width: 100% !important;
    max-width: none !important;
}

body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-view-all-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(210px, 1fr)) !important;
    grid-auto-rows: minmax(96px, auto) !important;
    align-content: start !important;
    align-items: stretch !important;
    gap: 10px !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: auto !important;
    padding: 2px 8px 12px 2px !important;
}

body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-form {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal button.tech-product-choice-card {
    display: grid !important;
    align-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 96px !important;
    padding: 11px 13px !important;
    border-left-width: 8px !important;
    border-radius: 14px !important;
    text-align: left !important;
}

body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    padding-right: 28px !important;
    color: #0f172a !important;
    font-size: 1rem !important;
    line-height: 1.08 !important;
    white-space: normal !important;
}

body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card span,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card small {
    display: block !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 0.76rem !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@media (max-width: 1180px) {
    body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-view-all-product-grid {
        grid-template-columns: repeat(3, minmax(210px, 1fr)) !important;
    }
}

@media (max-width: 840px) {
    body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-view-all-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Final View All modal containment: wider cards, smaller gaps, no overlap with fixed chrome. */
.tech-view-all-backdrop,
body.ui-modern:not(.tech-v2) .tech-view-all-backdrop {
    inset: 0 !important;
    z-index: 95000 !important;
    display: grid !important;
    place-items: center !important;
    align-items: center !important;
    padding: 42px 52px 54px !important;
    overflow: hidden !important;
}

.tech-view-all-modal,
body.ui-modern:not(.tech-v2) .tech-view-all-modal {
    width: min(1420px, calc(100vw - 104px)) !important;
    height: min(620px, calc(100vh - 112px)) !important;
    max-width: calc(100vw - 104px) !important;
    max-height: calc(100vh - 112px) !important;
    overflow: hidden !important;
}

.tech-view-all-product-modal .tech-view-all-product-grid,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-view-all-product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    grid-auto-rows: minmax(86px, auto) !important;
    justify-items: stretch !important;
    align-items: stretch !important;
    align-content: start !important;
    column-gap: 12px !important;
    row-gap: 10px !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: auto !important;
    padding: 4px 12px 12px 4px !important;
}

.tech-view-all-product-modal .tech-product-choice-form,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-form {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    justify-self: stretch !important;
}

.tech-view-all-product-modal .tech-product-choice-card,
.tech-view-all-product-modal button.tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal button.tech-product-choice-card {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 86px !important;
    padding: 10px 13px !important;
    align-content: center !important;
    justify-self: stretch !important;
    border-left-width: 8px !important;
    border-radius: 14px !important;
}

.tech-view-all-product-modal .tech-product-choice-card strong,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card strong {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding-right: 30px !important;
    color: #0f172a !important;
    font-size: 1rem !important;
    line-height: 1.08 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.tech-view-all-product-modal .tech-product-choice-card span,
.tech-view-all-product-modal .tech-product-choice-card small,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card span,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card small {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@media (max-width: 1100px) {
    .tech-view-all-product-modal .tech-view-all-product-grid,
    body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-view-all-product-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
    }
}

/* Trial polish for View All product cards: lighter cards, smaller type, better density. */
.tech-view-all-product-modal .tech-view-all-product-grid,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-view-all-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    grid-auto-rows: minmax(72px, auto) !important;
    column-gap: 9px !important;
    row-gap: 8px !important;
    padding: 3px 10px 12px 3px !important;
}

.tech-view-all-product-modal .tech-product-choice-card,
.tech-view-all-product-modal button.tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal button.tech-product-choice-card {
    min-height: 72px !important;
    padding: 8px 11px !important;
    gap: 3px !important;
    border-left-width: 7px !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #ffffff, #fff7e8) !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.92), 0 2px 0 #c8b9a4 !important;
}

.tech-view-all-product-modal .tech-product-choice-card.has-selection,
.tech-view-all-product-modal .tech-product-choice-card.is-selected,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card.has-selection,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card.is-selected {
    background: linear-gradient(180deg, #f0fdfa, #dff8ef) !important;
    border-left-color: #0d9488 !important;
}

.tech-view-all-product-modal .tech-product-choice-card strong,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card strong {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    padding-right: 25px !important;
    font-size: 0.88rem !important;
    line-height: 1.04 !important;
    white-space: normal !important;
}

.tech-view-all-product-modal .tech-product-choice-card span,
.tech-view-all-product-modal .tech-product-choice-card small,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card span,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card small {
    font-size: 0.64rem !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
}

.tech-view-all-product-modal .tech-product-choice-card em,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card em {
    top: 8px !important;
    right: 8px !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 0.78rem !important;
}

@media (max-width: 1100px) {
    .tech-view-all-product-modal .tech-view-all-product-grid,
    body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-view-all-product-grid {
        grid-template-columns: repeat(2, minmax(230px, 1fr)) !important;
    }
}

.tech-view-all-backdrop[hidden],
body.ui-modern:not(.tech-v2) .tech-view-all-backdrop[hidden] {
    display: none !important;
}

/* Premium selected state: subtle confirmation instead of a full green card flood. */
body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.has-selection,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.is-selected,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-card.has-selection,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-card.is-selected,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card.has-selection,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card.is-selected {
    color: #0f172a !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245, 250, 248, 0.96)),
        linear-gradient(90deg, rgba(13,148,136,0.14), transparent 56%) !important;
    border-color: #b7c9c6 !important;
    border-left-color: #0d9488 !important;
    box-shadow:
        inset 0 1px rgba(255,255,255,0.96),
        0 0 0 2px rgba(13, 148, 136, 0.14),
        0 3px 0 #9ab8b5 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.has-selection strong,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.is-selected strong,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-card.has-selection strong,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-card.is-selected strong,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card.has-selection strong,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card.is-selected strong {
    color: #0f172a !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.has-selection span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.has-selection small,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.is-selected span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.is-selected small,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-card.has-selection span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-card.has-selection small,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-card.is-selected span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-card.is-selected small,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card.has-selection span,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card.has-selection small,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card.is-selected span,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card.is-selected small {
    color: #526477 !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.has-selection em,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-service-choice.is-selected em,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-card.has-selection em,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-card.is-selected em,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card.has-selection em,
body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card.is-selected em {
    top: 8px !important;
    right: 8px !important;
    width: 22px !important;
    height: 22px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #10b981, #047857) !important;
    border: 2px solid #ffffff !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 10px rgba(4, 120, 87, 0.24) !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
}

/* Legacy oil step: match the newer compact product-card rhythm instead of full-width rows. */
body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-grid.tech-inline-product-grid.tech-product-choice-grid,
body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-product-grid.tech-inline-product-grid.tech-product-choice-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(230px, 1fr)) !important;
    grid-auto-rows: minmax(72px, auto) !important;
    gap: 10px !important;
    align-content: start !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    padding: 4px 6px !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-grid.tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-form,
body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-product-grid.tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-form,
body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-grid.tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-product-grid.tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-grid.tech-inline-product-grid.tech-product-choice-grid button.tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-product-grid.tech-inline-product-grid.tech-product-choice-grid button.tech-product-choice-card {
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-grid.tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-product-grid.tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-grid.tech-inline-product-grid.tech-product-choice-grid button.tech-product-choice-card,
body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-product-grid.tech-inline-product-grid.tech-product-choice-grid button.tech-product-choice-card {
    min-height: 72px !important;
    padding: 9px 12px !important;
    border-left-width: 7px !important;
    border-radius: 13px !important;
    align-content: center !important;
    text-align: left !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-grid.tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card strong,
body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-product-grid.tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    padding-right: 28px !important;
    font-size: 0.92rem !important;
    line-height: 1.05 !important;
    text-align: left !important;
    white-space: normal !important;
}

body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-grid.tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card span,
body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-grid.tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card small,
body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-product-grid.tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card span,
body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-product-grid.tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-card small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 0.68rem !important;
    line-height: 1.08 !important;
    text-align: left !important;
}

/* Final tech V1 lock-in: rich lazy specs, one loader, consistent action buttons, centered zoomable diagrams. */
body.ui-modern:not(.tech-v2) .vehicle-specs-async-shell {
    display: grid !important;
    min-height: min(540px, calc(100vh - 178px)) !important;
    align-items: stretch !important;
}

body.ui-modern:not(.tech-v2) .vehicle-specs-loader {
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    gap: 10px !important;
    min-height: 360px !important;
    color: #0f172a !important;
    text-align: center !important;
    background: rgba(241, 245, 249, 0.74) !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 18px !important;
}

body.ui-modern:not(.tech-v2) .vehicle-specs-loader strong,
body.ui-modern:not(.tech-v2) .tech-card-loading-panel strong,
body.ui-modern .modal-loading-card strong,
body:not(.ui-modern) .modal-loading-card strong {
    color: #0f172a !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
}

body.ui-modern:not(.tech-v2) .vehicle-specs-loader small,
body.ui-modern:not(.tech-v2) .vehicle-specs-status,
body.ui-modern:not(.tech-v2) .tech-card-loading-panel small,
body.ui-modern .modal-loading-card small,
body:not(.ui-modern) .modal-loading-card small {
    color: #64748b !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading:not([hidden]) {
    display: grid !important;
    place-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading,
body.ui-modern .app-loading-overlay,
body:not(.ui-modern) .app-loading-overlay,
body.ui-modern .modal-loading-lock,
body:not(.ui-modern) .modal-loading-lock {
    background: rgba(15, 23, 42, 0.34) !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading-panel,
body.ui-modern .modal-loading-card,
body:not(.ui-modern) .modal-loading-card {
    display: grid !important;
    place-items: center !important;
    gap: 8px !important;
    color: #0f172a !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(148, 163, 184, 0.7) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.24) !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring,
body.ui-modern:not(.tech-v2) .vehicle-specs-loader .modal-progress-ring,
body.ui-modern .app-loading-panel .modal-progress-ring,
body:not(.ui-modern) .app-loading-panel .modal-progress-ring,
body.ui-modern .modal-loading-card .modal-progress-ring,
body:not(.ui-modern) .modal-loading-card .modal-progress-ring {
    position: relative !important;
    width: 82px !important;
    height: 82px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    animation: none !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring::before,
body.ui-modern:not(.tech-v2) .vehicle-specs-loader .modal-progress-ring::before,
body.ui-modern .app-loading-panel .modal-progress-ring::before,
body:not(.ui-modern) .app-loading-panel .modal-progress-ring::before,
body.ui-modern .modal-loading-card .modal-progress-ring::before,
body:not(.ui-modern) .modal-loading-card .modal-progress-ring::before {
    content: "" !important;
    position: absolute !important;
    inset: 10px !important;
    border-radius: 999px !important;
    background:
        radial-gradient(circle at center, #f8fafc 0 15%, #111827 16% 25%, #f8fafc 26% 34%, transparent 35%),
        repeating-conic-gradient(from 0deg, #020617 0deg 11deg, #334155 11deg 20deg, #020617 20deg 31deg),
        radial-gradient(circle at center, #f8fafc 0 50%, #111827 51% 72%, #020617 73% 100%) !important;
    box-shadow: inset 0 0 0 6px #020617, inset 0 0 0 18px rgba(255,255,255,0.92), 0 18px 30px rgba(2, 6, 23, 0.35) !important;
    animation: pitpilot-quick-lube-tire 0.78s linear infinite !important;
}

body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring::after,
body.ui-modern:not(.tech-v2) .vehicle-specs-loader .modal-progress-ring::after,
body.ui-modern .app-loading-panel .modal-progress-ring::after,
body:not(.ui-modern) .app-loading-panel .modal-progress-ring::after,
body.ui-modern .modal-loading-card .modal-progress-ring::after,
body:not(.ui-modern) .modal-loading-card .modal-progress-ring::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    width: 20px !important;
    height: 28px !important;
    border-radius: 70% 70% 70% 0 !important;
    background: linear-gradient(145deg, #f97316 0%, #c91f28 58%, #7f1d1d 100%) !important;
    box-shadow: inset 3px 3px 0 rgba(255,255,255,0.28), 0 7px 10px rgba(127, 29, 29, 0.24) !important;
    filter: none !important;
    transform-origin: 50% 72% !important;
    animation: pitpilot-quick-lube-drop 0.92s ease-in-out infinite !important;
}

body.ui-modern:not(.tech-v2) .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-main-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-specs-menu-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-top-done-pill.tech-touch-nav-button,
body.ui-modern:not(.tech-v2) .tech-wizard-actions .small-action,
body.ui-modern:not(.tech-v2) .tech-wizard-actions .primary-action,
body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot a,
body.ui-modern:not(.tech-v2) .tech-invoice-action {
    color: #0f172a !important;
    font-size: 0.9rem !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
}

body.ui-modern:not(.tech-v2) .tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-main-menu-pill.tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-specs-menu-pill.tech-touch-nav-button span,
body.ui-modern:not(.tech-v2) .tech-top-done-pill.tech-touch-nav-button span {
    color: #0f172a !important;
    font-size: 0.9rem !important;
    font-weight: 950 !important;
}

body.ui-modern:not(.tech-v2) .tech-flow-focus-pill strong,
body.ui-modern:not(.tech-v2) .tech-work-card .tech-flow-focus-pill strong {
    color: #0f172a !important;
    font-size: 1.02rem !important;
    font-weight: 950 !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-backdrop,
body.ui-modern:not(.tech-v2) .tech-service-map-backdrop,
body.ui-modern:not(.tech-v2) .tech-chassis-map-backdrop {
    z-index: 98000 !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal {
    width: min(1180px, calc(100vw - 52px)) !important;
    max-height: calc(100vh - 56px) !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-specs {
    max-height: calc(100vh - 166px) !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-section {
    min-height: min(410px, calc(100vh - 330px)) !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body {
    display: grid !important;
    place-items: center !important;
    min-height: min(330px, calc(100vh - 405px)) !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-legacy-diagram-canvas,
body.ui-modern:not(.tech-v2) .tech-service-map-canvas,
body.ui-modern:not(.tech-v2) .tech-chassis-canvas {
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    cursor: zoom-in !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-legacy-diagram,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-service-map,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-chassis-map {
    width: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
}

body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-legacy-diagram-canvas,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-service-map-canvas,
body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-inline-map-body .tech-chassis-canvas {
    width: 100% !important;
    height: min(330px, calc(100vh - 420px)) !important;
    min-height: 240px !important;
}

body.ui-modern:not(.tech-v2) .tech-legacy-diagram-canvas img,
body.ui-modern:not(.tech-v2) .tech-service-map-canvas svg,
body.ui-modern:not(.tech-v2) .tech-chassis-canvas .tech-chassis-frame {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transform-origin: var(--diagram-zoom-x, 50%) var(--diagram-zoom-y, 50%) !important;
    transition: transform 120ms ease-out !important;
    will-change: transform !important;
}

body.ui-modern:not(.tech-v2) .tech-service-map-canvas svg {
    width: 100% !important;
    height: 100% !important;
}

body.ui-modern:not(.tech-v2) .tech-diagram-magnifier.is-magnifying img,
body.ui-modern:not(.tech-v2) .tech-diagram-magnifier.is-magnifying svg,
body.ui-modern:not(.tech-v2) .tech-diagram-magnifier.is-magnifying .tech-chassis-frame {
    transform: scale(1.55) !important;
}

/* Tech V1 July 5 true-end override: keep loader/cards consistent after duplicate CSS blocks. */
html body .app-loading-panel .oil-loader,
html body .app-loading-panel .odometer-loader,
html body .app-startup-panel .oil-loader {
    display: none !important;
}

html body .app-startup-panel .modal-progress-ring.app-startup-loader,
html body.ui-modern .app-loading-panel .modal-progress-ring,
html body:not(.ui-modern) .app-loading-panel .modal-progress-ring,
html body.ui-modern .modal-loading-card .modal-progress-ring,
html body:not(.ui-modern) .modal-loading-card .modal-progress-ring,
html body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring,
html body.ui-modern:not(.tech-v2) .vehicle-specs-loader .modal-progress-ring {
    position: relative !important;
    width: 76px !important;
    height: 76px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    animation: none !important;
}

html body .app-startup-panel .modal-progress-ring.app-startup-loader::before,
html body.ui-modern .app-loading-panel .modal-progress-ring::before,
html body:not(.ui-modern) .app-loading-panel .modal-progress-ring::before,
html body.ui-modern .modal-loading-card .modal-progress-ring::before,
html body:not(.ui-modern) .modal-loading-card .modal-progress-ring::before,
html body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring::before,
html body.ui-modern:not(.tech-v2) .vehicle-specs-loader .modal-progress-ring::before {
    content: "" !important;
    position: absolute !important;
    inset: 9px !important;
    border-radius: 999px !important;
    background:
        radial-gradient(circle at center, #f8fafc 0 15%, #111827 16% 25%, #f8fafc 26% 34%, transparent 35%),
        repeating-conic-gradient(from 0deg, #020617 0deg 11deg, #334155 11deg 20deg, #020617 20deg 31deg),
        radial-gradient(circle at center, #f8fafc 0 50%, #111827 51% 72%, #020617 73% 100%) !important;
    box-shadow: inset 0 0 0 5px #020617, inset 0 0 0 16px rgba(255,255,255,0.92), 0 18px 30px rgba(2, 6, 23, 0.35) !important;
    animation: pitpilot-quick-lube-tire 0.78s linear infinite !important;
}

html body .app-startup-panel .modal-progress-ring.app-startup-loader::after,
html body.ui-modern .app-loading-panel .modal-progress-ring::after,
html body:not(.ui-modern) .app-loading-panel .modal-progress-ring::after,
html body.ui-modern .modal-loading-card .modal-progress-ring::after,
html body:not(.ui-modern) .modal-loading-card .modal-progress-ring::after,
html body.ui-modern:not(.tech-v2) .tech-card-loading .modal-progress-ring::after,
html body.ui-modern:not(.tech-v2) .vehicle-specs-loader .modal-progress-ring::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    width: 18px !important;
    height: 26px !important;
    border-radius: 70% 70% 70% 0 !important;
    background: linear-gradient(145deg, #f97316 0%, #c91f28 58%, #7f1d1d 100%) !important;
    box-shadow: inset 3px 3px 0 rgba(255,255,255,0.28), 0 7px 10px rgba(127, 29, 29, 0.24) !important;
    transform-origin: 50% 72% !important;
    animation: pitpilot-quick-lube-drop 0.92s ease-in-out infinite !important;
}

html body.ui-modern:not(.tech-v2) .tech-card-loading {
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    background: rgba(15, 23, 42, 0.30) !important;
    border-radius: inherit !important;
    backdrop-filter: blur(1.5px) !important;
    z-index: 1200 !important;
}

html body.ui-modern:not(.tech-v2) .tech-card-loading[hidden] {
    display: none !important;
}

html body.ui-modern:not(.tech-v2) .tech-card-loading > .tech-card-loading-panel {
    min-width: 230px !important;
    padding: 18px 22px !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(148, 163, 184, 0.7) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.24) !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 390px) !important;
    gap: 12px !important;
    height: min(560px, calc(100vh - 230px)) !important;
    max-height: min(560px, calc(100vh - 230px)) !important;
    min-height: 430px !important;
    overflow: hidden !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-content: start !important;
    gap: 9px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(clamp(54px, 6.8vh, 66px), auto) !important;
    align-content: start !important;
    gap: 8px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice {
    position: relative !important;
    display: grid !important;
    align-content: center !important;
    min-height: clamp(54px, 6.8vh, 66px) !important;
    padding: 9px 12px !important;
    border-radius: 14px !important;
    border-left-width: 7px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%) !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.96), 0 2px 0 #9fb2c7, 0 8px 18px rgba(15, 23, 42, 0.05) !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice strong {
    color: #0f172a !important;
    font-size: clamp(0.92rem, 1.25vw, 1.03rem) !important;
    font-weight: 950 !important;
    line-height: 1.08 !important;
    white-space: normal !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice.has-selection,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice.is-selected {
    background: linear-gradient(180deg, #f0fdfa 0%, #e6fffb 100%) !important;
    border-color: #0f766e !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.96), 0 2px 0 #65a99e, 0 10px 20px rgba(13, 148, 136, 0.12) !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice em {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    width: 25px !important;
    height: 25px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #10b981, #047857) !important;
    color: #ffffff !important;
    font-size: 0.86rem !important;
    font-style: normal !important;
    font-weight: 950 !important;
    transform: translateY(-50%) !important;
    box-shadow: 0 7px 14px rgba(4, 120, 87, 0.24) !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice {
    grid-column: span 2 !important;
    min-height: clamp(68px, 8vh, 82px) !important;
    padding: 12px 16px !important;
    background:
        radial-gradient(circle at 94% 18%, rgba(37, 99, 235, 0.20), transparent 24%),
        linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-left-color: #2563eb !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice strong {
    font-size: clamp(1.08rem, 1.55vw, 1.24rem) !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice span,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice small {
    display: block !important;
    color: #475569 !important;
    font-size: 0.76rem !important;
    font-weight: 900 !important;
    line-height: 1.16 !important;
}

@media (max-width: 1280px) {
    html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Tech V1 July 5 correction: preserve spinner fix without regressing cards and invoice density. */
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice:not(.tech-full-service-choice) strong {
    color: #172033 !important;
    font-size: clamp(0.9rem, 1.08vw, 0.98rem) !important;
    font-weight: 820 !important;
    letter-spacing: 0 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice:not(.tech-full-service-choice) {
    background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%) !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.96), 0 2px 0 #9caec2, 0 5px 12px rgba(15, 23, 42, 0.045) !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice strong {
    font-weight: 880 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid,
html body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-grid.tech-inline-product-grid.tech-product-choice-grid,
html body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-product-grid.tech-inline-product-grid.tech-product-choice-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)) !important;
    gap: 10px !important;
    align-content: start !important;
    align-items: stretch !important;
    overflow: hidden !important;
}

html body.ui-modern:not(.tech-v2) .tech-product-choice-form,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-form,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid .tech-product-choice-form {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

html body.ui-modern:not(.tech-v2) .tech-product-choice-card,
html body.ui-modern:not(.tech-v2) button.tech-product-choice-card,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-card,
html body.ui-modern:not(.tech-v2) .tech-work-card button.tech-product-choice-card,
html body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card,
html body.ui-modern:not(.tech-v2) .tech-view-all-product-modal button.tech-product-choice-card {
    display: grid !important;
    justify-items: start !important;
    align-content: center !important;
    width: 100% !important;
    min-height: 76px !important;
    max-height: none !important;
    padding: 10px 12px !important;
    text-align: left !important;
    border: 1px solid #d8c9b6 !important;
    border-left: 7px solid #f59e0b !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #fffaf2 0%, #ffefd9 100%) !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.96), 0 2px 0 #c7b39a, 0 8px 18px rgba(15, 23, 42, 0.055) !important;
}

html body.ui-modern:not(.tech-v2) .tech-product-choice-card strong,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-card strong,
html body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card strong {
    display: -webkit-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: #111827 !important;
    font-size: 0.94rem !important;
    font-weight: 860 !important;
    line-height: 1.08 !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    white-space: normal !important;
}

html body.ui-modern:not(.tech-v2) .tech-product-choice-card span,
html body.ui-modern:not(.tech-v2) .tech-product-choice-card small,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-card span,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-product-choice-card small,
html body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card span,
html body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card small {
    display: -webkit-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 0.74rem !important;
    font-weight: 760 !important;
    line-height: 1.12 !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important;
    white-space: normal !important;
}

html body.ui-modern:not(.tech-v2) .tech-product-choice-card.has-selection,
html body.ui-modern:not(.tech-v2) .tech-product-choice-card.is-selected,
html body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card.has-selection,
html body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card.is-selected {
    border-color: #0f766e !important;
    border-left-color: #0d9488 !important;
    background: linear-gradient(180deg, #f0fdfa 0%, #e6fffb 100%) !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.98), 0 2px 0 #65a99e, 0 10px 20px rgba(13, 148, 136, 0.12) !important;
}

html body.ui-modern:not(.tech-v2) .tech-product-choice-card em,
html body.ui-modern:not(.tech-v2) .tech-view-all-product-modal .tech-product-choice-card em {
    top: 9px !important;
    right: 9px !important;
    width: 23px !important;
    height: 23px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #10b981, #047857) !important;
    box-shadow: 0 6px 14px rgba(4, 120, 87, 0.22) !important;
    transform: none !important;
}

html body.ui-modern:not(.tech-v2) .tech-part-search-form,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-part-search-form {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 138px) !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
}

html body.ui-modern:not(.tech-v2) .tech-part-search-form input,
html body.ui-modern:not(.tech-v2) .tech-part-search-form .small-action {
    min-height: 42px !important;
    padding: 7px 12px !important;
    font-size: 0.9rem !important;
}

html body.ui-modern:not(.tech-v2) .tech-inline-invoice {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
    min-height: 0 !important;
}

html body.ui-modern:not(.tech-v2) .tech-inline-invoice-lines {
    align-content: start !important;
    gap: 6px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

html body.ui-modern:not(.tech-v2) .tech-inline-invoice-line {
    min-height: 42px !important;
    padding: 7px 9px !important;
    gap: 2px 8px !important;
    background: linear-gradient(180deg, #ffffff, #f7fafc) !important;
}

html body.ui-modern:not(.tech-v2) .tech-inline-invoice-line strong {
    color: #172033 !important;
    font-size: 0.81rem !important;
    font-weight: 600 !important;
    line-height: 1.08 !important;
}

html body.ui-modern:not(.tech-v2) .tech-inline-invoice-line span,
html body.ui-modern:not(.tech-v2) .tech-inline-invoice-line small {
    font-size: 0.74rem !important;
    font-weight: 650 !important;
    line-height: 1.05 !important;
}

html body.ui-modern:not(.tech-v2) .tech-inline-invoice-line small {
    font-weight: 760 !important;
}

html body.ui-modern:not(.tech-v2) .tech-inline-invoice-pager {
    margin-top: 6px !important;
    gap: 8px !important;
}

html body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot {
    padding-top: 7px !important;
    gap: 8px !important;
}

html body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot a,
html body.ui-modern:not(.tech-v2) .tech-inline-invoice-foot a:visited {
    color: #ffffff !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-context-pill,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-work-context-side,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-work-context-receipt {
    display: grid !important;
    gap: 5px !important;
    padding: 10px 13px !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-context-row {
    gap: 8px !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-context-row strong {
    line-height: 1.12 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-context-pill small {
    display: block !important;
    margin-top: 2px !important;
    color: #53657d !important;
    line-height: 1.24 !important;
}

html body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-specs {
    color: #1f2937 !important;
    font-size: 0.93rem !important;
}

html body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-button strong,
html body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section header strong {
    color: #111827 !important;
    font-size: 0.93rem !important;
    font-weight: 880 !important;
}

html body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-pro-button span,
html body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-unified-spec-section header small,
html body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-line span,
html body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-fact span,
html body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-table td,
html body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-table th {
    color: #475569 !important;
    font-size: 0.8rem !important;
    font-weight: 760 !important;
}

html body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-line strong,
html body.ui-modern:not(.tech-v2) .tech-vehicle-specs-modal .tech-spec-fact strong {
    color: #0f172a !important;
    font-size: 0.88rem !important;
    font-weight: 820 !important;
}

@media (min-width: 1420px) {
    html body.ui-modern:not(.tech-v2) .tech-work-card .tech-inline-product-grid.tech-product-choice-grid,
    html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-inline-product-grid.tech-product-choice-grid,
    html body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-grid.tech-inline-product-grid.tech-product-choice-grid,
    html body.ui-modern:not(.tech-v2) .tech-work-card > .tech-view-all-product-grid.tech-inline-product-grid.tech-product-choice-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Tech V1 July 5 product-page correction: compact part search and calmer service cards. */
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main:has(.tech-part-search-form) {
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    align-content: stretch !important;
}

html body.ui-modern:not(.tech-v2) .tech-part-search-form,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-part-search-form {
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 48px !important;
    grid-template-columns: minmax(0, 1fr) 128px !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
}

html body.ui-modern:not(.tech-v2) .tech-part-search-form input,
html body.ui-modern:not(.tech-v2) .tech-part-search-form .small-action,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-part-search-form input,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main .tech-part-search-form .small-action {
    align-self: start !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 7px 12px !important;
    font-size: 0.9rem !important;
    line-height: 1.1 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main:has(.tech-part-search-form) .tech-inline-product-grid.tech-product-choice-grid,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main:has(.tech-part-search-form) .tech-view-all-product-grid.tech-product-choice-grid {
    align-self: start !important;
    min-height: 0 !important;
    height: auto !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-main:has(.tech-part-search-form) .tech-empty {
    width: min(100%, 280px) !important;
    min-height: 82px !important;
    padding: 14px 16px !important;
    gap: 7px !important;
    align-self: start !important;
    justify-self: start !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice:not(.tech-full-service-choice) strong {
    font-weight: 700 !important;
    color: #1f2937 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice:not(.tech-full-service-choice).has-selection strong,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-service-choice:not(.tech-full-service-choice).is-selected strong {
    font-weight: 740 !important;
}

/* Tech V1 July 5 action polish: stable header during loading, cleaner full service card, clearer payment actions. */
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-brand-copy h1,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-brand h1,
html body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-brand-copy h1,
html body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-brand-copy h1,
html body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .tech-brand h1,
html body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .tech-brand h1 {
    margin: 0 !important;
    color: #172033 !important;
    font-size: 1.02rem !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .brand-mark.large,
html body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .brand-mark.large,
html body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .brand-mark.large {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 10px !important;
    font-size: 0.72rem !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .login-brand.tech-brand,
html body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-initializing .login-brand.tech-brand,
html body.ui-modern:not(.tech-v2) .tech-work-card.is-tech-navigating .login-brand.tech-brand {
    min-height: 36px !important;
    margin-bottom: 3px !important;
    gap: 8px !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    align-content: center !important;
    gap: 3px 12px !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice span,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice small {
    grid-column: 2 / -1 !important;
    margin: 0 !important;
    white-space: normal !important;
}

html body.ui-modern:not(.tech-v2) .tech-wizard-actions .primary-action:not(.tech-invoice-action),
html body.ui-modern:not(.tech-v2) .tech-wizard-actions a.primary-action:not(.tech-invoice-action),
html body.ui-modern:not(.tech-v2) .tech-wizard-actions button.primary-action:not(.tech-invoice-action) {
    color: #ffffff !important;
}

html body.ui-modern:not(.tech-v2) .tech-payment-final-actions {
    gap: 10px !important;
    margin-top: 9px !important;
}

html body.ui-modern:not(.tech-v2) .tech-payment-final-actions .small-action {
    min-height: 44px !important;
    padding: 8px 14px !important;
    color: #1d4ed8 !important;
    font-size: 0.92rem !important;
    background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
    border: 1px solid #93c5fd !important;
    border-radius: 13px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 2px 0 #93aeca !important;
}

html body.ui-modern:not(.tech-v2) .tech-payment-final-actions .primary-action {
    min-height: 44px !important;
    padding: 8px 14px !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    background: linear-gradient(180deg, #c91f28, #9f1239) !important;
    border: 1px solid #b91c1c !important;
    border-radius: 13px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.18), 0 2px 0 #7f1d1d !important;
}

html body.ui-modern:not(.tech-v2) .tech-payment-final-actions .primary-action:disabled {
    color: #e5e7eb !important;
    background: linear-gradient(180deg, #94a3b8, #64748b) !important;
    border-color: #64748b !important;
    box-shadow: none !important;
}

/* Tech V1 July 5 open-order polish: match service header, fix nav contrast, and upgrade order cards. */
html body.ui-modern:not(.tech-v2) .tech-open-card .tech-main-menu-pill.tech-touch-nav-button,
html body.ui-modern:not(.tech-v2) .tech-open-card.is-tech-initializing .tech-main-menu-pill.tech-touch-nav-button,
html body.ui-modern:not(.tech-v2) .tech-open-card.is-tech-navigating .tech-main-menu-pill.tech-touch-nav-button {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    align-items: center !important;
    min-height: 50px !important;
    max-width: 184px !important;
    padding: 7px 12px !important;
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #edf3f8) !important;
    border: 1px solid #c3ceda !important;
    border-left: 8px solid #c91f28 !important;
    border-radius: 15px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.96), 0 4px 0 #91a3b7 !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-main-menu-pill.tech-touch-nav-button span,
html body.ui-modern:not(.tech-v2) .tech-open-card.is-tech-initializing .tech-main-menu-pill.tech-touch-nav-button span,
html body.ui-modern:not(.tech-v2) .tech-open-card.is-tech-navigating .tech-main-menu-pill.tech-touch-nav-button span {
    color: #0f172a !important;
    font-size: 0.9rem !important;
    font-weight: 950 !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-main-menu-pill.tech-touch-nav-button .app-icon,
html body.ui-modern:not(.tech-v2) .tech-open-card.is-tech-initializing .tech-main-menu-pill.tech-touch-nav-button .app-icon,
html body.ui-modern:not(.tech-v2) .tech-open-card.is-tech-navigating .tech-main-menu-pill.tech-touch-nav-button .app-icon {
    color: #ffffff !important;
    background: linear-gradient(180deg, #c91f28, #991b1b) !important;
    border-radius: 12px !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-flow-focus-pill,
html body.ui-modern:not(.tech-v2) .tech-open-card.is-tech-initializing .tech-flow-focus-pill,
html body.ui-modern:not(.tech-v2) .tech-open-card.is-tech-navigating .tech-flow-focus-pill {
    display: grid !important;
    align-content: center !important;
    justify-self: center !important;
    width: min(460px, 100%) !important;
    min-height: 48px !important;
    padding: 6px 22px !important;
    color: #0f172a !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 8px solid #c91f28 !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.95), 0 4px 0 #94a3b8 !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-flow-focus-pill span,
html body.ui-modern:not(.tech-v2) .tech-open-card.is-tech-initializing .tech-flow-focus-pill span,
html body.ui-modern:not(.tech-v2) .tech-open-card.is-tech-navigating .tech-flow-focus-pill span {
    margin: 0 0 2px !important;
    color: #64748b !important;
    font-size: 0.58rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-flow-focus-pill strong,
html body.ui-modern:not(.tech-v2) .tech-open-card.is-tech-initializing .tech-flow-focus-pill strong,
html body.ui-modern:not(.tech-v2) .tech-open-card.is-tech-navigating .tech-flow-focus-pill strong {
    color: #0f172a !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-lookup-form .primary-action {
    min-width: 170px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #c91f28, #991b1b) !important;
    border: 1px solid #b91c1c !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.18), 0 3px 0 #7f1d1d !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-lookup-form .primary-action:hover,
html body.ui-modern:not(.tech-v2) .tech-open-card .tech-lookup-form .primary-action:focus-visible {
    background: linear-gradient(180deg, #dc2626, #991b1b) !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-open-order-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-open-order-card {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 11px !important;
    min-height: 96px !important;
    padding: 11px 13px !important;
    text-align: left !important;
    background: linear-gradient(180deg, #ffffff, #f3f7fb) !important;
    border: 1px solid #c8d5e2 !important;
    border-left: 7px solid #c91f28 !important;
    border-radius: 15px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.96), 0 3px 0 #92a5bb, 0 8px 18px rgba(15, 23, 42, 0.06) !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-open-order-logo {
    display: inline-grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #c91f28, #991b1b) !important;
    border-radius: 13px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.22), 0 8px 18px rgba(153, 27, 27, 0.18) !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-open-order-logo .app-icon {
    width: 22px !important;
    height: 22px !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-open-order-copy {
    display: grid !important;
    gap: 3px !important;
    min-width: 0 !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-open-order-card strong {
    overflow: hidden !important;
    color: #0f172a !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-open-order-vehicle {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: #172033 !important;
    font-size: 0.82rem !important;
    font-weight: 850 !important;
    line-height: 1.08 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-open-order-vehicle .app-icon {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 auto !important;
    color: #0d9488 !important;
}

html body.ui-modern:not(.tech-v2) .tech-open-card .tech-open-order-card small {
    overflow: hidden !important;
    color: #607089 !important;
    font-size: 0.75rem !important;
    font-weight: 820 !important;
    line-height: 1.08 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Full Service helper copy should read as one compact line. */
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice span {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    -webkit-line-clamp: 1 !important;
}

/* Full Service card: title first, slogan below, no squeezed title. */
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 13px 46px 13px 16px !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice > .app-icon {
    position: absolute !important;
    top: 12px !important;
    right: 14px !important;
    width: 18px !important;
    height: 18px !important;
    color: #2563eb !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice strong {
    display: block !important;
    grid-column: 1 / -1 !important;
    overflow: visible !important;
    max-width: none !important;
    padding: 0 !important;
    color: #0f172a !important;
    font-size: 1.08rem !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    -webkit-line-clamp: unset !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-grid .tech-full-service-choice span {
    grid-column: 1 / -1 !important;
    color: #4b5f78 !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
}

/* Keep the services invoice rail inside the white panel and pin Review Invoice to the rail bottom. */
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell),
html body.ui-modern:not(.tech-v2) .login-bay-panel.tech-panel .tech-work-card:has(.tech-services-shell) {
    overflow: hidden !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell {
    min-height: 0 !important;
    height: min(560px, calc(100vh - 246px)) !important;
    max-height: min(560px, calc(100vh - 246px)) !important;
    overflow: hidden !important;
    align-items: stretch !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 8px !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice {
    position: relative !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    padding-bottom: 10px !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-lines {
    min-height: 0 !important;
    overflow: hidden !important;
    align-content: start !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-line {
    min-height: 38px !important;
    padding: 6px 8px !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-line strong {
    font-size: 0.78rem !important;
    line-height: 1.04 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-line span,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-line small {
    font-size: 0.68rem !important;
    line-height: 1.02 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-pager {
    align-self: end !important;
    margin-top: 6px !important;
    min-height: 32px !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-foot {
    align-self: end !important;
    margin-top: 6px !important;
    padding-top: 6px !important;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), #f8fafc) !important;
    border-top: 1px solid #d7e1ec !important;
    z-index: 2 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-foot a {
    min-height: 38px !important;
    padding: 7px 13px !important;
    white-space: nowrap !important;
}

/* Concrete invoice rail fix: Review Invoice is an anchored bottom bar, never part of the scrolling/cropping row flow. */
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-inline-invoice {
    position: relative !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 10px 10px 66px !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-lines,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-inline-invoice-lines {
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-pager,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-inline-invoice-pager {
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 54px !important;
    min-height: 28px !important;
    margin: 0 !important;
    z-index: 5 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-foot,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-inline-invoice-foot {
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 6px 0 0 !important;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), #f8fafc 55%) !important;
    border-top: 1px solid #d7e1ec !important;
    z-index: 6 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-foot a,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-inline-invoice-foot a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 150px !important;
    min-height: 38px !important;
    padding: 7px 13px !important;
    color: #ffffff !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Structural services review dock: separate bottom row, outside invoice line flow. */
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-services-side {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 8px !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-services-side .tech-inline-invoice {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    padding: 10px !important;
    overflow: hidden !important;
}

html body.ui-modern:not(.tech-v2) .tech-services-review-dock {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 52px !important;
    padding: 8px 10px !important;
    color: #0f172a !important;
    background: linear-gradient(180deg, #fff7f7, #f8fafc) !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 7px solid #c91f28 !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.95), 0 3px 0 #94a3b8 !important;
    z-index: 12 !important;
}

html body.ui-modern:not(.tech-v2) .tech-services-review-dock span {
    overflow: hidden !important;
    color: #52627a !important;
    font-size: 0.76rem !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.ui-modern:not(.tech-v2) .tech-services-review-dock a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 150px !important;
    min-height: 38px !important;
    padding: 7px 13px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    background: linear-gradient(180deg, #c91f28, #9f1239) !important;
    border: 1px solid #b91c1c !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.18), 0 2px 0 #7f1d1d !important;
    font-size: 0.86rem !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

/* Final services invoice sizing: auto-calculate the invoice height and keep footer in normal flow. */
html body.ui-modern:not(.tech-v2) .tech-services-review-dock {
    display: none !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-shell,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-services-shell {
    height: auto !important;
    max-height: calc(100vh - 220px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    align-items: start !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-services-side {
    display: grid !important;
    grid-template-rows: auto minmax(0, auto) !important;
    align-self: start !important;
    gap: 8px !important;
    height: auto !important;
    max-height: calc(100vh - 250px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-inline-invoice {
    position: relative !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
    height: auto !important;
    max-height: calc(100vh - 360px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 10px !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-lines,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-inline-invoice-lines {
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    align-content: start !important;
    padding: 0 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-line,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-inline-invoice-line {
    min-height: 36px !important;
    padding: 5px 8px !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-line strong,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-inline-invoice-line strong {
    font-size: 0.78rem !important;
    line-height: 1.04 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-line span,
html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-line small,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-inline-invoice-line span,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-inline-invoice-line small {
    font-size: 0.68rem !important;
    line-height: 1.02 !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-pager,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-inline-invoice-pager {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    align-self: end !important;
    min-height: 28px !important;
    margin: 5px 0 0 !important;
    z-index: auto !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-foot,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-inline-invoice-foot {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 40px !important;
    margin: 5px 0 0 !important;
    padding: 6px 0 0 !important;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), #f8fafc 55%) !important;
    border-top: 1px solid #d7e1ec !important;
    z-index: auto !important;
}

html body.ui-modern:not(.tech-v2) .tech-work-card .tech-services-side .tech-inline-invoice-foot a,
html body.ui-modern:not(.tech-v2) .tech-work-card:has(.tech-services-shell) .tech-inline-invoice-foot a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 142px !important;
    min-height: 36px !important;
    padding: 6px 12px !important;
    color: #ffffff !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: nowrap !important;
}

/* Owner/admin compact scroll pass: owner tools are data screens, so let the page scroll and reduce touch-scale bulk. */
html body.ui-modern:has(.owner-page) {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

html body.ui-modern .workspace:has(.owner-page) {
    width: min(1240px, calc(100% - 48px)) !important;
    padding: 12px 0 42px !important;
    overflow: visible !important;
}

html body.ui-modern .screen-page.owner-page,
html body.ui-modern .owner-page {
    display: grid !important;
    grid-template-rows: none !important;
    align-content: start !important;
    gap: 10px !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding-bottom: 34px !important;
}

html body.ui-modern .owner-screen,
html body.ui-modern .owner-work-surface,
html body.ui-modern .owner-business-info-grid,
html body.ui-modern .owner-info-grid,
html body.ui-modern .owner-location-info-list,
html body.ui-modern .owner-line-list,
html body.ui-modern .owner-page .owner-table,
html body.ui-modern .owner-page .owner-oil-preview,
html body.ui-modern .owner-page .owner-flow-list {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
}

html body.ui-modern .owner-screen-stores,
html body.ui-modern .owner-screen-bays,
html body.ui-modern .owner-screen-stock,
html body.ui-modern .owner-screen-purchase_orders,
html body.ui-modern .owner-screen-payments,
html body.ui-modern .owner-screen-valor_settings,
html body.ui-modern .owner-screen-pay_in,
html body.ui-modern .owner-screen-pay_out,
html body.ui-modern .owner-screen-bank_accounts,
html body.ui-modern .owner-screen-suppliers,
html body.ui-modern .owner-screen-catalog_products,
html body.ui-modern .owner-screen-tech_flow,
html body.ui-modern .owner-screen-rewards {
    grid-template-rows: none !important;
}

html body.ui-modern .owner-page .owner-hero {
    min-height: 0 !important;
    padding: 12px 16px !important;
    gap: 12px !important;
    border-radius: 14px !important;
}

html body.ui-modern .owner-page .owner-hero h1 {
    font-size: 1.2rem !important;
    line-height: 1.05 !important;
}

html body.ui-modern .owner-page .owner-hero .lead {
    margin-top: 2px !important;
    font-size: 0.78rem !important;
    line-height: 1.12 !important;
}

html body.ui-modern .owner-page .owner-hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)) !important;
    gap: 6px !important;
}

html body.ui-modern .owner-page .owner-hero-metrics span,
html body.ui-modern .owner-page .owner-health-pill {
    min-height: 38px !important;
    padding: 6px 9px !important;
    border-radius: 9px !important;
    font-size: 0.72rem !important;
    line-height: 1.05 !important;
}

html body.ui-modern .owner-page .owner-hero-metrics strong,
html body.ui-modern .owner-page .owner-health-pill strong {
    font-size: 1.05rem !important;
    line-height: 1 !important;
}

html body.ui-modern .owner-page .owner-tabs {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)) !important;
    gap: 7px !important;
}

html body.ui-modern .owner-page .owner-tabs a {
    min-height: 38px !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    font-size: 0.86rem !important;
    line-height: 1.05 !important;
}

html body.ui-modern .owner-page-screen-dashboard .owner-card-grid,
html body.ui-modern .owner-page .owner-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 9px !important;
}

html body.ui-modern .owner-page .owner-card,
html body.ui-modern .owner-page-screen-dashboard .owner-card {
    min-height: 108px !important;
    height: auto !important;
    padding: 12px 13px !important;
    gap: 6px 10px !important;
    border-radius: 13px !important;
}

html body.ui-modern .owner-page .owner-card span {
    min-width: 0 !important;
    min-height: 26px !important;
    height: auto !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    font-size: 0.58rem !important;
}

html body.ui-modern .owner-page .owner-card strong {
    font-size: 0.98rem !important;
    line-height: 1.08 !important;
}

html body.ui-modern .owner-page .owner-card small {
    font-size: 0.74rem !important;
    line-height: 1.12 !important;
}

html body.ui-modern .owner-two-column,
html body.ui-modern .owner-business-info-grid {
    grid-template-columns: minmax(320px, 0.82fr) minmax(460px, 1.18fr) !important;
    gap: 10px !important;
}

html body.ui-modern .owner-page .owner-form,
html body.ui-modern .owner-page .owner-list-panel,
html body.ui-modern .owner-work-surface {
    gap: 8px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
}

html body.ui-modern .owner-work-toolbar,
html body.ui-modern .owner-po-list-surface .owner-work-toolbar,
html body.ui-modern .owner-stock-surface .owner-work-toolbar,
html body.ui-modern .owner-payments-surface .owner-work-toolbar,
html body.ui-modern .owner-valor-surface .owner-work-toolbar {
    grid-template-columns: minmax(210px, 0.9fr) minmax(360px, 1.2fr) auto !important;
    gap: 8px !important;
    align-items: center !important;
    padding-bottom: 7px !important;
}

html body.ui-modern .owner-work-toolbar h2,
html body.ui-modern .owner-page .owner-form .panel-heading h2,
html body.ui-modern .owner-page .owner-list-panel .panel-heading h2 {
    font-size: 1rem !important;
    line-height: 1.05 !important;
}

html body.ui-modern .owner-work-toolbar span,
html body.ui-modern .owner-page .owner-form .panel-heading span,
html body.ui-modern .owner-page .owner-list-panel .panel-heading span {
    font-size: 0.72rem !important;
    line-height: 1.1 !important;
}

html body.ui-modern .owner-page .owner-form-grid {
    gap: 6px 8px !important;
}

html body.ui-modern .owner-page .owner-form-grid label,
html body.ui-modern .owner-page .owner-search {
    gap: 3px !important;
    font-size: 0.76rem !important;
    line-height: 1.05 !important;
}

html body.ui-modern .owner-page .owner-form-grid input,
html body.ui-modern .owner-page .owner-form-grid select,
html body.ui-modern .owner-page .owner-form-grid textarea,
html body.ui-modern .owner-page .owner-search input,
html body.ui-modern .owner-page .owner-search select {
    min-height: 32px !important;
    padding: 5px 9px !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
}

html body.ui-modern .owner-page .owner-form-grid textarea {
    min-height: 48px !important;
}

html body.ui-modern .owner-page .owner-submit,
html body.ui-modern .owner-page .owner-dark-action,
html body.ui-modern .owner-page .owner-green-action,
html body.ui-modern .owner-page .owner-toolbar-actions .small-action,
html body.ui-modern .owner-page .owner-toolbar-actions .primary-action,
html body.ui-modern .owner-page .primary-action,
html body.ui-modern .owner-page .small-action {
    min-height: 38px !important;
    padding: 7px 12px !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    line-height: 1.05 !important;
}

html body.ui-modern .owner-heading-search,
html body.ui-modern .owner-stock-surface .owner-heading-search,
html body.ui-modern .owner-po-list-surface .owner-heading-search {
    grid-template-columns: minmax(130px, 0.75fr) minmax(170px, 1fr) minmax(88px, auto) !important;
    width: 100% !important;
}

html body.ui-modern .owner-payment-toolbar-actions,
html body.ui-modern .owner-payment-toolbar-actions .owner-heading-search {
    grid-template-columns: minmax(150px, 1fr) minmax(86px, auto) !important;
    gap: 7px !important;
    width: 100% !important;
}

html body.ui-modern .owner-valor-settings-surface .owner-work-toolbar {
    grid-template-columns: minmax(260px, 1fr) auto !important;
}

html body.ui-modern .owner-line-button {
    min-height: 50px !important;
    padding: 7px 10px !important;
    gap: 7px !important;
    border-radius: 10px !important;
    font-size: 0.78rem !important;
    line-height: 1.08 !important;
}

html body.ui-modern .owner-line-button strong,
html body.ui-modern .owner-line-button b {
    font-size: 0.84rem !important;
    line-height: 1.05 !important;
}

html body.ui-modern .owner-line-button span,
html body.ui-modern .owner-line-button small {
    font-size: 0.68rem !important;
    line-height: 1.05 !important;
}

html body.ui-modern .owner-stock-line,
html body.ui-modern .owner-po-line,
html body.ui-modern .owner-po-list-row,
html body.ui-modern .owner-payment-line,
html body.ui-modern .owner-valor-line,
html body.ui-modern .owner-bay-line,
html body.ui-modern .owner-reward-line,
html body.ui-modern .owner-money-line,
html body.ui-modern .owner-bank-line,
html body.ui-modern .owner-supplier-line,
html body.ui-modern .owner-catalog-line {
    grid-template-columns: minmax(220px, 1.35fr) repeat(auto-fit, minmax(72px, 0.55fr)) !important;
}

html body.ui-modern .owner-page .owner-table-head,
html body.ui-modern .owner-page .owner-table-row {
    gap: 7px !important;
    padding: 6px 9px !important;
    border-radius: 9px !important;
}

html body.ui-modern .owner-page .owner-table-head {
    min-height: 24px !important;
    font-size: 0.64rem !important;
}

html body.ui-modern .owner-page .owner-table-row {
    min-height: 42px !important;
    font-size: 0.76rem !important;
}

html body.ui-modern .owner-page .owner-table-row small {
    font-size: 0.64rem !important;
}

html body.ui-modern .owner-page .owner-status {
    min-height: 24px !important;
    padding: 3px 8px !important;
    font-size: 0.66rem !important;
}

html body.ui-modern .owner-placeholder-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    gap: 9px !important;
}

html body.ui-modern .owner-placeholder-button {
    min-height: 110px !important;
    padding: 12px !important;
    border-radius: 13px !important;
}

html body.ui-modern .owner-placeholder-button strong,
html body.ui-modern .owner-placeholder-modal-body strong {
    font-size: 1rem !important;
}

html body.ui-modern .owner-subpager,
html body.ui-modern .screen-pager {
    min-height: 34px !important;
    margin-top: 6px !important;
    padding-top: 6px !important;
}

html body.ui-modern .owner-page-step {
    min-height: 34px !important;
    padding: 6px 10px !important;
    border-radius: 9px !important;
    font-size: 0.74rem !important;
}

html body.ui-modern .owner-touch-modal {
    max-height: calc(100vh - 40px) !important;
}

html body.ui-modern .owner-modal-table,
html body.ui-modern .owner-touch-modal .owner-form {
    max-height: calc(100vh - 210px) !important;
    overflow-y: auto !important;
}

@media (max-width: 1100px) {
    html body.ui-modern .workspace:has(.owner-page) {
        width: min(100% - 24px, 1240px) !important;
    }

    html body.ui-modern .owner-two-column,
    html body.ui-modern .owner-business-info-grid,
    html body.ui-modern .owner-work-toolbar,
    html body.ui-modern .owner-po-list-surface .owner-work-toolbar,
    html body.ui-modern .owner-stock-surface .owner-work-toolbar,
    html body.ui-modern .owner-payments-surface .owner-work-toolbar,
    html body.ui-modern .owner-valor-surface .owner-work-toolbar {
        grid-template-columns: 1fr !important;
    }
}

/* Primary action contrast guard.
   Older generic button rules can override .primary-action and leave Save/Submit
   buttons looking neutral. Keep this late so primary controls stay readable. */
html body.ui-modern a.primary-action,
html body.ui-modern button.primary-action,
html body.ui-modern input.primary-action,
html body.ui-modern .modal-actions .primary-action,
html body.ui-modern .tech-wizard-actions .primary-action,
html body.ui-modern .owner-form-actions .primary-action {
    color: #ffffff !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(180deg, #c81e1e, #991b1b) !important;
    border-color: #7f1d1d !important;
    text-decoration: none !important;
    text-shadow: 0 1px 0 rgba(15, 23, 42, 0.2) !important;
}

html body.ui-modern a.primary-action.success,
html body.ui-modern button.primary-action.success,
html body.ui-modern input.primary-action.success {
    color: #ffffff !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(180deg, #0f9f7f, #047857) !important;
    border-color: #065f46 !important;
}

html body.ui-modern a.primary-action.danger,
html body.ui-modern button.primary-action.danger,
html body.ui-modern input.primary-action.danger {
    color: #ffffff !important;
    background: linear-gradient(180deg, #dc2626, #991b1b) !important;
    border-color: #7f1d1d !important;
}

html body.ui-modern a.primary-action .app-icon,
html body.ui-modern button.primary-action .app-icon {
    color: #ffffff !important;
    stroke: currentColor !important;
}

html body.ui-modern a.primary-action:disabled,
html body.ui-modern button.primary-action:disabled,
html body.ui-modern input.primary-action:disabled,
html body.ui-modern .primary-action[aria-disabled="true"] {
    color: #f8fafc !important;
    background: linear-gradient(180deg, #94a3b8, #64748b) !important;
    border-color: #64748b !important;
    text-shadow: none !important;
    opacity: 0.78 !important;
}

/* Owner/admin commercial polish pass.
   Owner pages should behave like dense SaaS admin screens: readable, vertically
   scrollable, table-first, and less visually heavy than the bay workflow. */
html body.ui-modern .workspace:has(.owner-page) {
    width: min(1500px, calc(100vw - 56px)) !important;
    max-width: min(1500px, calc(100vw - 56px)) !important;
    margin-inline: auto !important;
    overflow: visible !important;
}

html body.ui-modern .screen-page.owner-page,
html body.ui-modern .owner-page {
    padding-inline: 0 !important;
    padding-bottom: 48px !important;
    overflow: visible !important;
}

html body.ui-modern .owner-page * {
    letter-spacing: 0 !important;
}

html body.ui-modern .owner-page h1,
html body.ui-modern .owner-page h2,
html body.ui-modern .owner-page h3,
html body.ui-modern .owner-page strong,
html body.ui-modern .owner-page b,
html body.ui-modern .owner-page .owner-card strong,
html body.ui-modern .owner-page .owner-line-button strong,
html body.ui-modern .owner-page .owner-data-row strong,
html body.ui-modern .owner-page .owner-table-row strong {
    font-weight: 760 !important;
}

html body.ui-modern .owner-page .eyebrow,
html body.ui-modern .owner-page small,
html body.ui-modern .owner-page span,
html body.ui-modern .owner-page label {
    font-weight: 650 !important;
}

html body.ui-modern .owner-page .owner-hero {
    padding: 10px 14px !important;
    border-radius: 12px !important;
}

html body.ui-modern .owner-page .owner-hero h1 {
    font-size: 1.08rem !important;
}

html body.ui-modern .owner-page .owner-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
}

html body.ui-modern .owner-page .owner-tabs a {
    flex: 1 1 138px !important;
    min-width: 132px !important;
    min-height: 34px !important;
    padding: 7px 9px !important;
    border-radius: 9px !important;
    font-size: 0.78rem !important;
    font-weight: 740 !important;
}

html body.ui-modern .owner-page .panel,
html body.ui-modern .owner-page .owner-work-surface,
html body.ui-modern .owner-page .owner-form,
html body.ui-modern .owner-page .owner-list-panel {
    border-radius: 12px !important;
}

html body.ui-modern .owner-work-toolbar,
html body.ui-modern .owner-stock-surface .owner-work-toolbar,
html body.ui-modern .owner-po-list-surface .owner-work-toolbar,
html body.ui-modern .owner-payments-surface .owner-work-toolbar,
html body.ui-modern .owner-valor-surface .owner-work-toolbar,
html body.ui-modern .owner-valor-settings-surface .owner-work-toolbar {
    display: grid !important;
    grid-template-columns: minmax(210px, 0.8fr) minmax(360px, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
}

html body.ui-modern .owner-work-toolbar h2 {
    font-size: 0.98rem !important;
}

html body.ui-modern .owner-work-toolbar span {
    font-size: 0.7rem !important;
}

html body.ui-modern .owner-data-table,
html body.ui-modern .owner-table {
    display: grid !important;
    gap: 5px !important;
}

html body.ui-modern .owner-data-head,
html body.ui-modern .owner-table-head {
    display: grid !important;
    align-items: center !important;
    min-height: 30px !important;
    padding: 5px 9px !important;
    color: #475569 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 0.64rem !important;
    font-weight: 760 !important;
    text-transform: uppercase !important;
}

html body.ui-modern .owner-data-row,
html body.ui-modern .owner-table-row,
html body.ui-modern .owner-line-button {
    min-height: 42px !important;
    padding: 7px 9px !important;
    border: 1px solid #dbe4ef !important;
    border-left: 5px solid #c91f28 !important;
    border-radius: 9px !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    box-shadow: 0 1px 0 #cbd5e1 !important;
}

html body.ui-modern .owner-data-row strong,
html body.ui-modern .owner-table-row strong,
html body.ui-modern .owner-line-button strong {
    font-size: 0.82rem !important;
    line-height: 1.06 !important;
}

html body.ui-modern .owner-data-row span,
html body.ui-modern .owner-data-row small,
html body.ui-modern .owner-table-row span,
html body.ui-modern .owner-table-row small,
html body.ui-modern .owner-line-button span,
html body.ui-modern .owner-line-button small {
    color: #64748b !important;
    font-size: 0.66rem !important;
    line-height: 1.05 !important;
}

html body.ui-modern .owner-payment-table .owner-data-head,
html body.ui-modern .owner-payment-table .owner-data-row {
    grid-template-columns: minmax(210px, 1.2fr) minmax(90px, 0.45fr) minmax(64px, 0.3fr) minmax(84px, 0.36fr) minmax(150px, 0.6fr) !important;
}

html body.ui-modern .owner-po-table .owner-data-head,
html body.ui-modern .owner-po-table .owner-data-row {
    grid-template-columns: minmax(150px, 0.75fr) minmax(190px, 1fr) minmax(88px, 0.45fr) minmax(70px, 0.35fr) minmax(90px, 0.45fr) minmax(84px, 0.35fr) !important;
}

html body.ui-modern .owner-stock-line,
html body.ui-modern .owner-bay-line,
html body.ui-modern .owner-valor-line,
html body.ui-modern .owner-reward-line {
    border-left-width: 5px !important;
}

html body.ui-modern .owner-page .owner-form-grid input,
html body.ui-modern .owner-page .owner-form-grid select,
html body.ui-modern .owner-page .owner-form-grid textarea,
html body.ui-modern .owner-page .owner-search input,
html body.ui-modern .owner-page .owner-search select {
    min-height: 34px !important;
    padding: 6px 9px !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 650 !important;
}

html body.ui-modern .owner-page .primary-action,
html body.ui-modern .owner-page .small-action {
    min-height: 36px !important;
    padding: 7px 11px !important;
    border-radius: 9px !important;
    font-size: 0.78rem !important;
    font-weight: 760 !important;
}

html body.ui-modern .owner-touch-modal {
    width: min(980px, calc(100vw - 56px)) !important;
    max-height: calc(100vh - 54px) !important;
    border-radius: 18px !important;
}

html body.ui-modern .owner-stock-touch-modal,
html body.ui-modern .owner-po-line-touch-modal,
html body.ui-modern .owner-oil-helper-modal,
html body.ui-modern .owner-valor-modal {
    width: min(1040px, calc(100vw - 68px)) !important;
}

html body.ui-modern .owner-oil-helper-modal .owner-line-list,
html body.ui-modern .owner-stock-touch-modal .owner-product-results-shell,
html body.ui-modern .owner-po-line-touch-modal .owner-product-results-shell {
    max-height: min(430px, calc(100vh - 310px)) !important;
}

html body.ui-modern .owner-modal-pager,
html body.ui-modern .screen-pager,
html body.ui-modern .owner-subpager {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

html body.ui-modern .screen-pager a,
html body.ui-modern .screen-pager span,
html body.ui-modern .owner-page-step,
html body.ui-modern .owner-modal-pager button {
    min-width: 104px !important;
    min-height: 34px !important;
    border-radius: 999px !important;
    font-size: 0.72rem !important;
    font-weight: 760 !important;
}

html body.ui-modern .settings-grid,
html body.ui-modern .settings-launch-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
    gap: 12px !important;
}

html body.ui-modern .settings-launch-button,
html body.ui-modern .settings-choice {
    min-height: 112px !important;
    padding: 16px !important;
}

@media (max-width: 1200px) {
    html body.ui-modern .workspace:has(.owner-page) {
        width: min(100% - 24px, 1240px) !important;
        max-width: min(100% - 24px, 1240px) !important;
    }

    html body.ui-modern .owner-work-toolbar,
    html body.ui-modern .owner-stock-surface .owner-work-toolbar,
    html body.ui-modern .owner-po-list-surface .owner-work-toolbar,
    html body.ui-modern .owner-payments-surface .owner-work-toolbar,
    html body.ui-modern .owner-valor-surface .owner-work-toolbar,
    html body.ui-modern .owner-valor-settings-surface .owner-work-toolbar {
        grid-template-columns: 1fr !important;
    }
}

/* Owner pages run inside the global display-scale transform. Keep the admin
   workspace visually bounded and let the page move vertically, not sideways. */
html:has(body.ui-modern .owner-page),
html body.ui-modern:has(.owner-page) {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

html body.ui-modern:has(.owner-page) {
    height: auto !important;
    min-height: calc(100vh * var(--app-display-inverse, 1)) !important;
}

html body.ui-modern .workspace:has(.owner-page) {
    width: min(1180px, calc((100vw - 64px) * var(--app-display-inverse, 1))) !important;
    max-width: min(1180px, calc((100vw - 64px) * var(--app-display-inverse, 1))) !important;
    overflow: visible !important;
}

html body.ui-modern .workspace:has(.owner-page) .owner-page,
html body.ui-modern .workspace:has(.owner-page) .owner-screen,
html body.ui-modern .workspace:has(.owner-page) .owner-tabs,
html body.ui-modern .workspace:has(.owner-page) .owner-card-grid {
    width: 100% !important;
    max-width: 100% !important;
}

html body.ui-modern:has(.owner-page) .command-bar {
    overflow: visible !important;
}

html body.ui-modern:has(.owner-page) .modern-command-actions {
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 7px !important;
    min-width: 0 !important;
    max-width: calc((100vw - 210px) * var(--app-display-inverse, 1)) !important;
}

html body.ui-modern:has(.owner-page) .modern-command-spacer {
    display: none !important;
}

html body.ui-modern:has(.owner-page) .command-button {
    min-width: 88px !important;
    min-height: 48px !important;
    padding: 9px 12px !important;
    border-radius: 11px !important;
    font-size: 0.82rem !important;
    line-height: 1.02 !important;
}

html body.ui-modern:has(.owner-page) .modern-bay-command {
    min-width: 148px !important;
    max-width: 190px !important;
}

html body.ui-modern:has(.owner-page) .brand-block {
    min-width: 160px !important;
    max-width: 180px !important;
}

.login-download-panel {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-left: 5px solid #0f766e;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(248, 250, 252, 0.98));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.login-download-panel strong {
    color: #111827;
    font-size: 0.98rem;
    line-height: 1.1;
}

.login-download-panel span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
}

.login-download-panel .small-action {
    justify-self: start;
    min-height: 38px;
    border-color: rgba(15, 118, 110, 0.38);
    color: #0f766e;
    background: #ecfdf5;
}

.owner-reports-surface {
    display: grid;
    gap: 14px;
}

.owner-report-toolbar {
    align-items: start;
}

.owner-report-filter {
    grid-template-columns: minmax(120px, 0.65fr) minmax(150px, 1fr) minmax(124px, 0.65fr) minmax(124px, 0.65fr) auto;
}

.owner-report-export-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.owner-report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.owner-report-card {
    min-height: 84px;
    padding: 12px;
    border: 1px solid #d8e3ef;
    border-left: 5px solid #0f766e;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 1px 0 #cbd5e1, 0 12px 22px rgba(15, 23, 42, 0.05);
}

.owner-report-card.warning {
    border-left-color: #f59e0b;
}

.owner-report-card.green {
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.owner-report-card span,
.owner-report-card small {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 760;
    line-height: 1.15;
}

.owner-report-card strong {
    display: block;
    margin: 3px 0;
    color: #0f172a;
    font-size: 1.22rem;
    font-weight: 820;
    line-height: 1;
}

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

.owner-report-panel {
    min-width: 0;
    padding: 12px;
    border: 1px solid #d8e3ef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 1px 0 #cbd5e1;
}

.owner-report-wide {
    grid-column: 1 / -1;
}

.owner-report-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e2e8f0;
}

.owner-report-panel-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.05;
}

.owner-report-panel-head span {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}

.owner-report-table {
    gap: 6px;
}

.owner-report-table .owner-data-head,
.owner-report-table .owner-data-row {
    display: grid;
    align-items: center;
    gap: 8px;
}

.owner-report-table-three .owner-data-head,
.owner-report-table-three .owner-data-row {
    grid-template-columns: minmax(150px, 1fr) 70px 100px;
}

.owner-report-table-four .owner-data-head,
.owner-report-table-four .owner-data-row {
    grid-template-columns: minmax(260px, 1fr) 80px 90px 110px;
}

.owner-report-table-five .owner-data-head,
.owner-report-table-five .owner-data-row {
    grid-template-columns: minmax(110px, 0.8fr) minmax(120px, 1fr) 72px 92px minmax(92px, 0.8fr);
}

.owner-report-table-seven .owner-data-head,
.owner-report-table-seven .owner-data-row {
    grid-template-columns: 92px minmax(140px, 1fr) 64px 92px 92px 80px 92px;
}

.owner-report-table .owner-data-head {
    min-height: 30px;
    padding: 6px 8px;
    border-radius: 9px;
    background: #f1f5f9;
}

.owner-report-table .owner-data-row {
    min-height: 38px;
    padding: 7px 8px;
}

.owner-report-table .owner-data-row strong,
.owner-report-table .owner-data-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-report-low-stock {
    max-height: 430px;
    overflow: auto;
    padding-right: 4px;
}

.owner-report-section-switcher {
    display: inline-flex;
    width: fit-content;
    padding: 4px;
    border: 1px solid #d8e3ef;
    border-radius: 12px;
    background: #f1f5f9;
}

.owner-report-section-switcher a {
    min-width: 118px;
    padding: 9px 16px;
    border-radius: 9px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.owner-report-section-switcher a.active {
    color: #ffffff;
    background: #0f172a;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.owner-report-orders-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: auto;
}

.owner-report-orders-link .app-icon {
    width: 16px;
    height: 16px;
}

.owner-report-order-filter {
    grid-template-columns: minmax(118px, 0.7fr) minmax(150px, 1fr) minmax(130px, 0.75fr) minmax(240px, 1.5fr) minmax(124px, 0.72fr) minmax(124px, 0.72fr) auto;
}

.owner-report-open-order-filter {
    grid-template-columns: minmax(210px, 0.8fr) minmax(340px, 1.6fr) auto;
}

.owner-report-open-order-filter .owner-report-order-search {
    grid-column: auto;
}

.owner-report-order-count {
    display: inline-flex;
    width: fit-content;
    min-height: 27px;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 0.73rem;
    font-weight: 820;
    text-decoration: none;
}

.owner-report-order-count:hover,
.owner-report-order-count:focus-visible {
    border-color: #2563eb;
    background: #dbeafe;
    outline: none;
}

.owner-report-order-detail {
    border-left: 5px solid #0f766e;
}

.owner-report-order-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.owner-report-order-detail-grid > div {
    min-width: 0;
    min-height: 68px;
    padding: 10px 12px;
    border: 1px solid #d8e3ef;
    border-radius: 10px;
    background: #f8fafc;
}

.owner-report-order-detail-grid span,
.owner-report-order-detail-grid small,
.owner-report-order-detail-grid strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owner-report-order-detail-grid span {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.owner-report-order-detail-grid strong {
    margin-top: 3px;
    color: #0f172a;
    font-size: 0.88rem;
}

.owner-report-order-detail-grid small {
    margin-top: 2px;
    color: #64748b;
    font-size: 0.72rem;
}

.owner-report-order-items .owner-data-head,
.owner-report-order-items .owner-data-row {
    grid-template-columns: minmax(260px, 1fr) 70px minmax(210px, 0.65fr) 70px 110px;
}

.owner-report-order-pricing {
    display: grid;
    gap: 2px;
    min-width: 0;
    line-height: 1.25;
}

.owner-report-order-pricing strong {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 800;
}

.owner-report-order-pricing small {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: normal;
}

.owner-report-order-items .owner-data-row strong small,
.owner-report-order-table .owner-data-row span small,
.owner-report-order-table .owner-data-row strong small {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-report-order-totals {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f1f5f9;
}

.owner-report-order-totals span {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 750;
}

.owner-report-order-totals strong {
    margin-left: 5px;
    color: #0f172a;
}

.owner-report-order-ledger {
    overflow: hidden;
}

.owner-report-order-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
}

.owner-report-order-table .owner-data-head,
.owner-report-order-table .owner-data-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns:
        minmax(86px, 0.72fr)
        minmax(112px, 0.9fr)
        minmax(96px, 0.75fr)
        minmax(110px, 0.9fr)
        minmax(130px, 1.15fr)
        minmax(72px, 0.62fr)
        minmax(90px, 0.72fr)
        minmax(68px, 0.55fr)
        minmax(104px, 0.75fr);
}

.owner-report-order-table .owner-data-row {
    border-left: 4px solid #0f766e;
}

.owner-report-order-table .owner-data-head > *,
.owner-report-order-table .owner-data-row > * {
    min-width: 0;
}

.owner-report-order-action-cell {
    display: flex;
    align-items: center;
    justify-content: stretch;
    overflow: hidden;
}

.owner-report-order-action-cell .owner-report-order-open {
    width: 100%;
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
    white-space: nowrap;
}

.owner-customer-table,
.owner-customer-vehicle-table,
.owner-customer-order-table {
    overflow-x: auto;
    padding-bottom: 4px;
}

.owner-customer-table .owner-data-head,
.owner-customer-table .owner-data-row {
    grid-template-columns: minmax(190px, 1.25fr) minmax(210px, 1.35fr) 75px 75px 110px 115px 74px;
    min-width: 930px;
}

.owner-customer-vehicle-table .owner-data-head,
.owner-customer-vehicle-table .owner-data-row {
    grid-template-columns: minmax(220px, 1.4fr) minmax(190px, 1.2fr) 100px 70px 110px 110px 105px;
    min-width: 940px;
}

.owner-customer-order-table .owner-data-head,
.owner-customer-order-table .owner-data-row {
    grid-template-columns: 120px 135px minmax(135px, 1fr) minmax(135px, 1fr) 105px 145px 105px 70px;
    min-width: 990px;
}

.owner-customer-notes {
    margin: 12px 0;
    padding: 10px 12px;
    color: #475569;
    border: 1px solid #dbe3e8;
    border-radius: 8px;
    background: #f8fafc;
}

.owner-report-order-open {
    min-width: 60px;
    justify-content: center;
}

.owner-report-order-pager {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    align-items: center;
    text-align: center;
}

@media (max-width: 1050px) {
    .owner-report-grid {
        grid-template-columns: 1fr;
    }

    .owner-report-filter {
        grid-template-columns: 1fr 1fr;
    }

    .owner-report-filter button {
        grid-column: 1 / -1;
    }

    .owner-report-order-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .owner-report-open-order-filter {
        grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.2fr);
    }

    .owner-report-order-search {
        grid-column: 1 / -1;
    }

    .owner-report-open-order-filter .owner-report-order-search {
        grid-column: auto;
    }

    .owner-report-order-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html body.ui-modern .owner-report-order-table .owner-data-head {
        display: none !important;
    }

    .owner-report-order-table .owner-data-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: start;
        gap: 10px 16px;
        min-height: 0;
        padding: 12px;
    }

    .owner-report-order-table .owner-data-row > [data-label] {
        display: grid;
        grid-template-columns: minmax(86px, 0.45fr) minmax(0, 1fr);
        align-items: start;
        gap: 8px;
        overflow: visible;
        white-space: normal;
    }

    .owner-report-order-table .owner-data-row > [data-label]::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.035em;
        line-height: 1.25;
        text-transform: uppercase;
    }

    .owner-report-order-table .owner-data-row > [data-label] small {
        grid-column: 2;
    }

    .owner-report-order-table .owner-report-order-action-cell {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(86px, 0.45fr) minmax(0, 1fr);
    }

    .owner-report-order-table .owner-report-order-action-cell .owner-report-order-open {
        grid-column: 2;
        width: min(180px, 100%);
    }
}

@media (max-width: 650px) {
    .owner-report-section-switcher {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .owner-report-section-switcher a {
        min-width: 0;
    }

    .owner-report-order-filter,
    .owner-report-order-detail-grid {
        grid-template-columns: 1fr;
    }

    .owner-report-open-order-filter .owner-report-order-search {
        grid-column: auto;
    }

    .owner-report-order-search {
        grid-column: auto;
    }

    .owner-report-order-totals {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
    }

    .owner-report-order-pager {
        grid-template-columns: 1fr 1fr;
    }

    .owner-report-order-pager strong {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 6px;
    }

    .owner-report-order-table .owner-data-row {
        grid-template-columns: 1fr !important;
    }

    .owner-report-order-table .owner-report-order-action-cell {
        grid-column: auto;
    }
}

html body.ui-modern .owner-page .owner-card-grid,
html body.ui-modern .owner-page-screen-dashboard .owner-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 12px !important;
    align-items: stretch !important;
}

html body.ui-modern .owner-page .owner-card {
    min-height: 124px !important;
    padding: 16px !important;
    gap: 8px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}

html body.ui-modern .owner-page .owner-card span {
    position: static !important;
    align-self: flex-start !important;
    max-width: 100% !important;
    line-height: 1 !important;
}

html body.ui-modern .owner-page .owner-card strong {
    max-width: 100% !important;
    font-size: clamp(0.98rem, 1.08vw, 1.18rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere !important;
}

html body.ui-modern .owner-page .owner-card small {
    max-width: 100% !important;
    font-size: clamp(0.72rem, 0.82vw, 0.88rem) !important;
    line-height: 1.18 !important;
}

.owner-pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.owner-scope-pill {
    align-self: center;
    border: 1px solid #99f6e4;
    background: #ecfdf5;
    color: #047857;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 900;
    white-space: nowrap;
}

.owner-pricing-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 10px;
}

.owner-pricing-form .owner-submit {
    grid-column: 1 / -1;
}

.owner-pricing-form-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.owner-pricing-form label.is-disabled {
    opacity: 0.48;
}

.owner-pricing-form label.is-disabled input {
    background: #f8fafc;
    cursor: not-allowed;
}

.owner-pricing-tables {
    margin-top: 14px;
}

.owner-pricing-table.owner-report-table-five .owner-data-head,
.owner-pricing-table.owner-report-table-five .owner-data-row {
    grid-template-columns: minmax(180px, 1.15fr) minmax(110px, 0.7fr) minmax(150px, 0.9fr) minmax(260px, 1.4fr) minmax(130px, auto);
}

.owner-pricing-table.owner-report-table-six .owner-data-head,
.owner-pricing-table.owner-report-table-six .owner-data-row {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(105px, 0.65fr) minmax(135px, 0.8fr) minmax(240px, 1.35fr) minmax(125px, auto);
}

.owner-pricing-table.owner-oil-pricing-table .owner-data-head,
.owner-pricing-table.owner-oil-pricing-table .owner-data-row {
    grid-template-columns: minmax(270px, 1.25fr) minmax(145px, 0.65fr) minmax(280px, 1.2fr) minmax(245px, auto);
}

.owner-oil-rule-identity {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.owner-oil-rule-identity > span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.owner-oil-rule-identity > span b {
    color: #334155;
}

.owner-oil-rule-identity > span i {
    color: #94a3b8;
    font-style: normal;
}

.owner-oil-pricing-table .owner-row-actions {
    flex-wrap: wrap;
    overflow: visible !important;
    white-space: normal !important;
}

.owner-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 980px) {
    .owner-pricing-grid,
    .owner-pricing-form {
        grid-template-columns: 1fr;
    }
}
html body.ui-modern .owner-page {
    width: min(100%, 1500px);
    max-width: 1500px;
    margin-inline: auto;
    overflow: visible;
}

html body.ui-modern .owner-page .owner-tabs,
html body.ui-modern .owner-work-toolbar,
html body.ui-modern .owner-report-toolbar,
html body.ui-modern .owner-toolbar-actions,
html body.ui-modern .owner-payment-toolbar-actions,
html body.ui-modern .owner-form-actions {
    flex-wrap: wrap;
    gap: 10px;
}

html body.ui-modern .owner-page .owner-tabs a {
    min-height: 48px;
    padding: 10px 16px;
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.05;
}

html body.ui-modern .owner-page .owner-card-grid,
html body.ui-modern .owner-page-screen-dashboard .owner-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    align-items: stretch;
    gap: 12px;
}

html body.ui-modern .owner-card {
    min-width: 0;
    min-height: 124px;
    padding: 18px;
    overflow: hidden;
    text-align: left;
}

html body.ui-modern .owner-card strong,
html body.ui-modern .owner-card small,
html body.ui-modern .owner-card span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

html body.ui-modern .owner-card strong {
    font-size: clamp(20px, 1.6vw, 28px);
    line-height: 1.05;
}

html body.ui-modern .owner-card small {
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.15;
}

html body.ui-modern .owner-work-surface {
    max-width: 100%;
    overflow: visible;
}

html body.ui-modern .owner-data-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

html body.ui-modern .owner-data-table .owner-data-head,
html body.ui-modern .owner-data-table .owner-data-row {
    min-width: max-content;
}

html body.ui-modern .owner-report-summary-grid,
html body.ui-modern .owner-smtp-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

html body.ui-modern .owner-smtp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
    gap: 14px;
    align-items: start;
    margin-top: 14px;
}

html body.ui-modern .owner-smtp-form,
html body.ui-modern .owner-smtp-test-panel {
    border: 1px solid #CBD5E1;
    border-radius: 18px;
    background: #F8FAFC;
    padding: 16px;
}

html body.ui-modern .owner-smtp-help {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #BAE6FD;
    background: #F0F9FF;
    color: #334155;
    font-weight: 800;
}

html body.ui-modern .owner-employee-modal .owner-data-table {
    margin-top: 12px;
}

html body.ui-modern .owner-employee-table .owner-data-head,
html body.ui-modern .owner-employee-table .owner-data-row {
    grid-template-columns: minmax(170px, 1.4fr) repeat(4, minmax(90px, 0.8fr));
}

@media (max-width: 1000px) {
    html body.ui-modern .owner-smtp-grid {
        grid-template-columns: 1fr;
    }

    html body.ui-modern .owner-hero,
    html body.ui-modern .owner-work-toolbar {
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    html body.ui-modern .owner-page {
        width: 100%;
    }

    html body.ui-modern .owner-page .owner-card-grid,
    html body.ui-modern .owner-page-screen-dashboard .owner-card-grid {
        grid-template-columns: 1fr;
    }

    html body.ui-modern .owner-form-grid,
    html body.ui-modern .owner-modal-grid {
        grid-template-columns: 1fr;
    }
}

/* Owner/admin hardening pass: keep owner pages commercial, compact, and scroll-safe. */
html body.ui-modern .owner-page {
    --owner-red: #b91c1c;
    --owner-ink: #0f172a;
    --owner-muted: #64748b;
    --owner-line: #d8e3ef;
    --owner-panel: #f8fafc;
    width: min(100%, 1440px);
    max-width: 1440px;
    min-height: auto;
    height: auto;
    margin-inline: auto;
    gap: 12px;
    overflow: visible;
}

html body.ui-modern .owner-page .owner-hero {
    padding: 16px 18px;
    border-radius: 18px;
}

html body.ui-modern .owner-page .owner-hero h1,
html body.ui-modern .owner-work-toolbar h2,
html body.ui-modern .owner-report-panel-head h3 {
    letter-spacing: 0;
}

html body.ui-modern .owner-page .owner-hero h1 {
    font-size: clamp(1.25rem, 1.35vw, 1.65rem);
}

html body.ui-modern .owner-page .owner-hero .lead,
html body.ui-modern .owner-work-toolbar span,
html body.ui-modern .owner-report-panel-head span {
    color: var(--owner-muted);
    font-weight: 740;
}

html body.ui-modern .owner-page .owner-hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
}

html body.ui-modern .owner-page .owner-hero-metrics span,
html body.ui-modern .owner-page .owner-health-pill {
    min-height: 54px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.1;
}

html body.ui-modern .owner-page .owner-hero-metrics strong,
html body.ui-modern .owner-page .owner-health-pill strong {
    font-size: 1.22rem;
}

html body.ui-modern .owner-page .owner-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
}

html body.ui-modern .owner-page .owner-tabs a {
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: clamp(0.82rem, 0.92vw, 1rem);
    font-weight: 800;
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.55);
}

html body.ui-modern .owner-page .owner-card-grid,
html body.ui-modern .owner-page-screen-dashboard .owner-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
    gap: 12px !important;
}

html body.ui-modern .owner-page .owner-card {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: start;
    min-width: 0;
    min-height: 122px !important;
    padding: 15px 16px !important;
    gap: 8px !important;
    border-color: var(--owner-line);
    border-radius: 16px !important;
    box-shadow: inset 5px 0 0 rgba(185, 28, 28, 0.9), 0 1px 0 rgba(148, 163, 184, 0.45) !important;
    overflow: hidden !important;
}

html body.ui-modern .owner-page .owner-card span {
    justify-self: start;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
}

html body.ui-modern .owner-page .owner-card strong {
    display: block;
    color: var(--owner-ink);
    font-size: clamp(1rem, 1.05vw, 1.2rem) !important;
    font-weight: 820;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

html body.ui-modern .owner-page .owner-card small {
    display: block;
    color: var(--owner-muted);
    font-size: clamp(0.76rem, 0.8vw, 0.9rem) !important;
    font-weight: 720;
    line-height: 1.2;
}

html body.ui-modern .owner-work-surface,
html body.ui-modern .owner-report-panel,
html body.ui-modern .owner-smtp-form,
html body.ui-modern .owner-smtp-test-panel {
    border-color: var(--owner-line);
    border-radius: 18px;
    background: #fff;
}

html body.ui-modern .owner-work-toolbar,
html body.ui-modern .owner-report-toolbar,
html body.ui-modern .owner-stock-surface .owner-work-toolbar,
html body.ui-modern .owner-po-list-surface .owner-work-toolbar,
html body.ui-modern .owner-payments-surface .owner-work-toolbar,
html body.ui-modern .owner-valor-surface .owner-work-toolbar,
html body.ui-modern .owner-valor-settings-surface .owner-work-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: auto;
    padding: 12px;
}

html body.ui-modern .owner-work-toolbar > div:first-child {
    min-width: 220px;
}

html body.ui-modern .owner-work-toolbar h2 {
    font-size: clamp(1.15rem, 1.35vw, 1.55rem);
    font-weight: 820;
    line-height: 1.05;
}

html body.ui-modern .owner-toolbar-actions,
html body.ui-modern .owner-payment-toolbar-actions,
html body.ui-modern .owner-report-export-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

html body.ui-modern .owner-search,
html body.ui-modern .owner-heading-search,
html body.ui-modern .owner-report-filter {
    display: grid;
    align-items: end;
    gap: 8px;
    min-width: min(100%, 360px);
}

html body.ui-modern .owner-heading-search {
    grid-template-columns: minmax(150px, 0.75fr) minmax(180px, 1fr) auto;
    width: min(100%, 560px);
}

html body.ui-modern .owner-report-filter {
    grid-template-columns: minmax(120px, 0.7fr) minmax(150px, 1fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) auto;
    width: min(100%, 760px);
}

html body.ui-modern .owner-form-grid label,
html body.ui-modern .owner-search,
html body.ui-modern .owner-checkbox {
    font-weight: 760;
}

html body.ui-modern .owner-page input,
html body.ui-modern .owner-page select,
html body.ui-modern .owner-page textarea {
    min-height: 42px;
    border-color: #cbd5e1;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 680;
}

html body.ui-modern .owner-page .primary-action,
html body.ui-modern .owner-page .small-action,
html body.ui-modern .owner-page .owner-submit,
html body.ui-modern .owner-page .owner-dark-action,
html body.ui-modern .owner-page .owner-green-action {
    min-height: 44px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 820;
    line-height: 1.05;
}

html body.ui-modern .owner-data-table {
    display: grid;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
}

html body.ui-modern .owner-data-head,
html body.ui-modern .owner-data-row {
    display: grid;
    align-items: center;
    gap: 8px;
    min-width: 720px;
}

html body.ui-modern .owner-data-head {
    min-height: 32px;
    padding: 7px 10px;
    color: var(--owner-muted);
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 820;
    letter-spacing: 0.04em;
}

html body.ui-modern .owner-data-row {
    min-height: 52px;
    padding: 9px 10px;
    border: 1px solid #d8e3ef;
    border-radius: 12px;
    background: #fff;
    font-weight: 720;
    box-shadow: none;
}

html body.ui-modern .owner-data-row strong {
    color: var(--owner-ink);
    font-size: 0.92rem;
    font-weight: 820;
    line-height: 1.08;
}

html body.ui-modern .owner-data-row span,
html body.ui-modern .owner-data-row small,
html body.ui-modern .owner-data-row b {
    min-width: 0;
    overflow: hidden;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 680;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body.ui-modern .owner-stock-table .owner-data-head,
html body.ui-modern .owner-stock-table .owner-data-row {
    grid-template-columns: minmax(230px, 1.5fr) 86px minmax(110px, 0.8fr) 86px 92px minmax(90px, 0.7fr);
}

html body.ui-modern .owner-bay-table .owner-data-head,
html body.ui-modern .owner-bay-table .owner-data-row {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(90px, 0.7fr) minmax(160px, 1fr) 90px 112px;
}

html body.ui-modern .owner-po-table .owner-data-head,
html body.ui-modern .owner-po-table .owner-data-row,
html body.ui-modern .owner-po-lines-table .owner-data-head,
html body.ui-modern .owner-po-lines-table .owner-data-row {
    grid-template-columns: minmax(190px, 1.25fr) minmax(170px, 1fr) 100px 90px 95px 105px;
}

html body.ui-modern .owner-payment-table .owner-data-head,
html body.ui-modern .owner-payment-table .owner-data-row {
    grid-template-columns: minmax(190px, 1.35fr) 100px 74px 98px 124px;
}

html body.ui-modern .owner-valor-table .owner-data-head,
html body.ui-modern .owner-valor-table .owner-data-row {
    grid-template-columns: minmax(180px, 1.25fr) minmax(140px, 1fr) 120px 82px 128px 128px;
}

html body.ui-modern .owner-report-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 9px;
}

html body.ui-modern .owner-report-card {
    min-height: 76px;
    padding: 10px 12px;
    border-radius: 13px;
    box-shadow: none;
}

html body.ui-modern .owner-report-card strong {
    font-size: clamp(1.05rem, 1.2vw, 1.3rem);
    font-weight: 820;
}

html body.ui-modern .owner-report-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 12px;
}

html body.ui-modern .owner-report-wide {
    grid-column: 1 / -1;
}

html body.ui-modern .owner-report-table-seven .owner-data-head,
html body.ui-modern .owner-report-table-seven .owner-data-row {
    grid-template-columns: 92px minmax(150px, 1fr) 70px 90px 90px 80px 90px;
}

html body.ui-modern .owner-modal-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

html body.ui-modern .owner-page .owner-stock-touch-modal,
html body.ui-modern .owner-page .owner-oil-helper-modal,
html body.ui-modern .owner-page .owner-valor-modal,
html body.ui-modern .owner-page .owner-summary-modal {
    width: min(1120px, 92vw);
    max-height: 86vh;
    overflow: auto;
}

html body.ui-modern .owner-oil-lines,
html body.ui-modern .owner-product-results-shell,
html body.ui-modern .owner-low-stock-list {
    max-height: min(56vh, 520px);
    overflow: auto;
}

html body.ui-modern .owner-oil-line {
    grid-template-columns: minmax(220px, 1.25fr) minmax(120px, 0.85fr) 92px minmax(130px, 0.9fr) auto;
    min-height: 54px;
    padding: 9px 10px;
}

html body.ui-modern .owner-modal-pager,
html body.ui-modern .screen-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

html body.ui-modern .screen-pager .command-button,
html body.ui-modern .owner-modal-pager button {
    min-width: 116px;
    min-height: 42px;
    border-radius: 999px;
}

@media (max-width: 1180px) {
    html body.ui-modern .owner-page .owner-hero {
        grid-template-columns: 1fr;
    }

    html body.ui-modern .owner-work-toolbar,
    html body.ui-modern .owner-report-toolbar,
    html body.ui-modern .owner-stock-surface .owner-work-toolbar,
    html body.ui-modern .owner-po-list-surface .owner-work-toolbar,
    html body.ui-modern .owner-payments-surface .owner-work-toolbar,
    html body.ui-modern .owner-valor-surface .owner-work-toolbar,
    html body.ui-modern .owner-valor-settings-surface .owner-work-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    html body.ui-modern .owner-heading-search,
    html body.ui-modern .owner-report-filter {
        width: 100%;
    }

    html body.ui-modern .owner-toolbar-actions,
    html body.ui-modern .owner-payment-toolbar-actions,
    html body.ui-modern .owner-report-export-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    html body.ui-modern .owner-page .owner-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html body.ui-modern .owner-heading-search,
    html body.ui-modern .owner-report-filter,
    html body.ui-modern .owner-search {
        grid-template-columns: 1fr;
    }

    html body.ui-modern .owner-report-grid {
        grid-template-columns: 1fr;
    }

    html body.ui-modern .owner-data-head,
    html body.ui-modern .owner-data-row {
        min-width: 680px;
    }
}

/* Owner stock / purchase order workflow polish.
   Keep owner screens dense and table-oriented while making the difference
   between sell-pricing maintenance and PO receiving explicit. */
html body.ui-modern .owner-stock-po-guide,
html body.ui-modern .owner-ops-note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    margin: 2px 0 10px;
}

html body.ui-modern .owner-ops-note {
    display: grid;
    gap: 3px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #b7d8ce;
    border-left: 5px solid #0f9f7f;
    border-radius: 12px;
    background: linear-gradient(180deg, #f7fffc, #eefbf6);
}

html body.ui-modern a.owner-ops-note {
    text-decoration: none;
}

html body.ui-modern a.owner-ops-note:hover {
    border-color: #0f9f7f;
    box-shadow: 0 8px 20px rgba(15, 159, 127, 0.12);
    transform: translateY(-1px);
}

html body.ui-modern .owner-ops-note.muted {
    border-color: #d7e3f2;
    border-left-color: #2563eb;
    background: linear-gradient(180deg, #fbfdff, #f4f8ff);
}

html body.ui-modern .owner-ops-note strong {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 820;
    line-height: 1.05;
}

html body.ui-modern .owner-ops-note span {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 680;
    line-height: 1.18;
}

html body.ui-modern .platform-check-label,
.platform-check-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd7e6;
    border-radius: 10px;
    background: #f8fbff;
    color: #0f172a;
    font-weight: 850;
}

html body.ui-modern .platform-check-label input,
.platform-check-label input {
    width: 22px;
    height: 22px;
    accent-color: #0f9f87;
}

html body.ui-modern .owner-form-section {
    display: grid;
    gap: 3px;
    margin-top: 2px;
    padding: 9px 11px;
    border: 1px solid #d7e3f2;
    border-left: 5px solid #0f9f7f;
    border-radius: 11px;
    background: #f8fbff;
}

html body.ui-modern .owner-form-section.owner-optional-stock-defaults {
    border-left-color: #f59e0b;
    background: #fffaf0;
}

html body.ui-modern .owner-form-section strong {
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 820;
}

html body.ui-modern .owner-form-section span {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 680;
}

html body.ui-modern .owner-product-picker {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #c8d7e8;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

html body.ui-modern .owner-product-picker-head {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

html body.ui-modern .owner-product-picker-head > div {
    display: grid;
    gap: 3px;
}

html body.ui-modern .owner-product-picker-head strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 820;
}

html body.ui-modern .owner-product-picker-head span,
html body.ui-modern .owner-product-search-status {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 680;
    line-height: 1.18;
}

html body.ui-modern .owner-product-results-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 8px;
    min-height: 136px;
    max-height: min(42vh, 420px) !important;
}

html body.ui-modern .owner-product-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    align-content: start;
    gap: 8px;
    overflow: auto;
    padding: 2px 4px 4px 0;
}

html body.ui-modern .owner-product-pick {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
    min-height: 76px;
    padding: 10px 11px;
    color: #0f172a;
    text-align: left;
    border: 1px solid #d5e1ef;
    border-left: 5px solid #b91c1c;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.38);
}

html body.ui-modern .owner-product-pick.has-stock {
    border-left-color: #0f9f7f;
    background: linear-gradient(180deg, #ffffff, #f3fffb);
}

html body.ui-modern .owner-product-pick.selected {
    border-color: #0f9f7f;
    border-left-color: #0f9f7f;
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(15, 159, 127, 0.16);
}

html body.ui-modern .owner-product-pick .owner-product-source {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 20px;
    padding: 3px 8px;
    color: #0f766e;
    background: #dffbf3;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 820;
    text-transform: uppercase;
}

html body.ui-modern .owner-product-pick strong {
    grid-column: 1 / -1;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 820;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body.ui-modern .owner-product-pick small {
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 680;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body.ui-modern .owner-product-pick b {
    justify-self: end;
    color: #334155;
    font-size: 0.68rem;
    font-weight: 820;
    white-space: nowrap;
}

html body.ui-modern .owner-product-scroll-buttons {
    display: grid;
    gap: 7px;
    align-content: center;
}

html body.ui-modern .owner-product-scroll-buttons button {
    min-height: 44px;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.72rem;
    font-weight: 820;
}

html body.ui-modern .owner-stock-table .owner-data-head,
html body.ui-modern .owner-stock-table .owner-data-row {
    grid-template-columns: minmax(250px, 1.45fr) 84px minmax(120px, 0.75fr) minmax(150px, 1fr) 92px minmax(82px, 0.55fr) !important;
}

html body.ui-modern .owner-po-lines-table .owner-data-head,
html body.ui-modern .owner-po-lines-table .owner-data-row {
    grid-template-columns: minmax(230px, 1.35fr) 78px 78px minmax(112px, 0.7fr) 96px 96px 82px !important;
}

html body.ui-modern .owner-po-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

html body.ui-modern .owner-po-summary span {
    display: grid;
    gap: 3px;
    min-height: 54px;
    padding: 9px 11px;
    border: 1px solid #d7e3f2;
    border-radius: 11px;
    background: #f8fbff;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 720;
}

html body.ui-modern .owner-po-summary b {
    color: #64748b;
    font-size: 0.64rem;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    html body.ui-modern .owner-product-picker-head,
    html body.ui-modern .owner-product-results-shell {
        grid-template-columns: 1fr;
    }

    html body.ui-modern .owner-product-scroll-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Owner dashboard: final guard against cards collapsing into vertical text. */
html body.ui-modern .owner-page-screen-dashboard .owner-card-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch !important;
}

html body.ui-modern .owner-page-screen-dashboard .owner-card {
    min-width: 0 !important;
    min-height: 142px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto 1fr !important;
    column-gap: 12px !important;
    row-gap: 10px !important;
    align-content: start !important;
    overflow: hidden !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

html body.ui-modern .owner-page-screen-dashboard .owner-card strong {
    grid-column: 1 / 2 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: clamp(1.08rem, 1vw, 1.38rem) !important;
    line-height: 1.12 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
}

html body.ui-modern .owner-page-screen-dashboard .owner-card small {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: clamp(.82rem, .75vw, .98rem) !important;
    line-height: 1.23 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
}

html body.ui-modern .owner-page-screen-dashboard .owner-card span {
    justify-self: end !important;
    align-self: start !important;
    max-width: 150px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 980px) {
    html body.ui-modern .owner-page-screen-dashboard .owner-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    }
}

/* Owner operations polish: compact SaaS subpages with vertical scroll instead of oversized touch overflow. */
html body.ui-modern.owner-page,
html body.ui-modern .owner-page {
    overflow-x: hidden;
}

html body.ui-modern .owner-main,
html body.ui-modern .owner-content,
html body.ui-modern .owner-page-content {
    min-width: 0;
}

html body.ui-modern .owner-work-surface,
html body.ui-modern .owner-stock-surface,
html body.ui-modern .owner-po-surface,
html body.ui-modern .owner-subscription-surface {
    width: min(1520px, calc(100vw - 44px));
    max-width: 1520px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

html body.ui-modern .owner-work-toolbar {
    gap: 14px !important;
    align-items: center !important;
}

html body.ui-modern .owner-work-toolbar h2,
html body.ui-modern .owner-report-panel h3 {
    font-size: clamp(1.15rem, 1.1vw, 1.55rem) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
}

html body.ui-modern .owner-work-toolbar span,
html body.ui-modern .owner-report-panel span,
html body.ui-modern .owner-report-panel small,
html body.ui-modern .owner-data-table span,
html body.ui-modern .owner-data-table small {
    font-size: clamp(.78rem, .72vw, .96rem) !important;
    line-height: 1.2 !important;
}

html body.ui-modern .owner-stock-table,
html body.ui-modern .owner-po-table,
html body.ui-modern .owner-subscription-table,
html body.ui-modern .owner-subscription-payment-table {
    overflow-x: auto;
    padding-bottom: 2px;
}

/* Inventory categories use the same structured row language as inventory items. */
html body.ui-modern .owner-inventory-category-table {
    margin: 14px 0;
    overflow-x: visible;
}

html body.ui-modern .owner-inventory-category-table .owner-data-head,
html body.ui-modern .owner-inventory-category-table .owner-category-row {
    grid-template-columns: minmax(230px, 1.45fr) minmax(76px, .42fr) minmax(220px, 1.25fr) minmax(104px, .55fr);
    min-width: 0;
}

html body.ui-modern .owner-inventory-category-table .owner-category-row {
    color: #0f172a;
    border-left-color: #94a3b8;
}

html body.ui-modern .owner-inventory-category-table .owner-category-row:hover,
html body.ui-modern .owner-inventory-category-table .owner-category-row:focus-visible,
html body.ui-modern .owner-inventory-category-table .owner-category-row.is-active {
    color: #075f54;
    background: #effbf7;
    border-color: #8bc9bb;
    border-left-color: #0f9887;
}

html body.ui-modern .owner-inventory-category-table .owner-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-width: 44px;
    min-height: 30px;
    padding: 4px 10px;
    color: #075f54;
    background: #e1f5ef;
    border: 1px solid #b5e1d6;
    border-radius: 999px;
}

html body.ui-modern .owner-inventory-category-table .owner-category-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-width: 94px;
    min-height: 32px;
    padding: 6px 11px;
    color: #ffffff !important;
    background: #0f766e;
    border-radius: 9px;
    font-size: .76rem !important;
    font-weight: 820;
}

html body.ui-modern .owner-inventory-category-table .owner-category-row:hover .owner-category-action,
html body.ui-modern .owner-inventory-category-table .owner-category-row:focus-visible .owner-category-action,
html body.ui-modern .owner-inventory-category-table .owner-category-row:visited .owner-category-action {
    color: #ffffff !important;
}

html body.ui-modern .owner-inventory-category-table .owner-category-row.is-active .owner-category-action {
    background: #075f54;
}

@media (max-width: 860px) {
    html body.ui-modern .owner-inventory-category-table .owner-data-head {
        display: none;
    }

    html body.ui-modern .owner-inventory-category-table .owner-category-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 12px;
        padding: 11px 12px;
    }

    html body.ui-modern .owner-inventory-category-table .owner-category-row > span:not(.owner-category-action) {
        grid-column: 1 / -1;
    }

    html body.ui-modern .owner-inventory-category-table .owner-category-action {
        grid-column: 2;
        grid-row: 1;
    }
}

html body.ui-modern .owner-stock-table .owner-data-head,
html body.ui-modern .owner-stock-table .owner-data-row {
    grid-template-columns: minmax(220px, 1.7fr) minmax(88px, .55fr) minmax(120px, .85fr) minmax(150px, 1fr) minmax(96px, .65fr) minmax(90px, .65fr) minmax(108px, .65fr) !important;
    min-width: 1000px;
}

html body.ui-modern .owner-po-table .owner-data-head,
html body.ui-modern .owner-po-table .owner-data-row {
    grid-template-columns: minmax(160px, 1fr) minmax(190px, 1.2fr) minmax(110px, .7fr) minmax(120px, .8fr) minmax(120px, .8fr) minmax(190px, 1fr) !important;
    min-width: 980px;
}

html body.ui-modern .owner-subscription-table .owner-data-head,
html body.ui-modern .owner-subscription-table .owner-data-row {
    grid-template-columns: minmax(170px, 1.2fr) minmax(110px, .7fr) minmax(95px, .6fr) minmax(130px, .8fr) minmax(270px, 1.7fr) minmax(96px, .55fr) !important;
    min-width: 980px;
}

html body.ui-modern .owner-subscription-payment-table .owner-data-head,
html body.ui-modern .owner-subscription-payment-table .owner-data-row {
    grid-template-columns: minmax(150px, .9fr) minmax(160px, 1fr) minmax(95px, .55fr) minmax(125px, .7fr) minmax(150px, .85fr) minmax(190px, 1.1fr) !important;
    min-width: 980px;
}

html body.ui-modern .owner-data-head,
html body.ui-modern .owner-data-row {
    gap: 8px !important;
    align-items: center !important;
}

html body.ui-modern .owner-data-row input,
html body.ui-modern .owner-data-row select,
html body.ui-modern .owner-form input,
html body.ui-modern .owner-form select,
html body.ui-modern .owner-form textarea {
    min-height: 42px !important;
    font-size: .92rem !important;
    line-height: 1.1 !important;
}

html body.ui-modern .owner-data-row button,
html body.ui-modern .owner-form button,
html body.ui-modern .owner-product-picker button {
    min-height: 42px;
    white-space: normal;
}

html body.ui-modern .owner-adjustment-panel {
    margin-top: 16px;
}

html body.ui-modern .owner-adjustment-table .owner-data-head,
html body.ui-modern .owner-adjustment-table .owner-data-row {
    grid-template-columns: minmax(140px, .9fr) minmax(220px, 1.4fr) minmax(80px, .55fr) minmax(90px, .55fr) minmax(80px, .55fr) minmax(180px, 1.1fr) !important;
    min-width: 850px;
}

html body.ui-modern .owner-selected-product-strip {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-left: 7px solid #0f9887;
    border-radius: 10px;
    background: #f8fafc;
}

html body.ui-modern .owner-selected-product-strip span {
    color: #64748b;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

html body.ui-modern .owner-stock-adjust-modal {
    width: min(720px, calc(100vw - 44px)) !important;
}

html body.ui-modern .owner-subscription-summary {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

html body.ui-modern .owner-subscription-gateway-status {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: .78rem;
    font-weight: 950;
}

html body.ui-modern .owner-subscription-gateway-status.is-ready {
    border-color: #99f6e4;
    background: #ecfdf5;
    color: #0f766e;
}

html body.ui-modern .owner-subscription-gateway-status.is-offline {
    border-color: #fed7aa;
    background: #fffbeb;
    color: #92400e;
}

html body.ui-modern .owner-subscription-checkout-notice {
    display: grid;
    gap: 4px;
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #fed7aa;
    border-left: 7px solid #f59e0b;
    border-radius: 12px;
    background: #fffbeb;
}

html body.ui-modern .owner-subscription-checkout-notice strong {
    color: #92400e;
    font-size: 1rem;
}

html body.ui-modern .owner-subscription-checkout-notice span {
    color: #78350f;
    font-size: .84rem;
    font-weight: 800;
}

html body.ui-modern .owner-subscription-location-section {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

html body.ui-modern .owner-subscription-location-list {
    display: grid;
    gap: 10px;
}

html body.ui-modern .owner-subscription-location-card {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) minmax(145px, .7fr) minmax(200px, .9fr) minmax(230px, auto);
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid #d8e2ee;
    border-left: 7px solid #0f9887;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

html body.ui-modern .owner-subscription-location-main,
html body.ui-modern .owner-subscription-location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

html body.ui-modern .owner-subscription-location-title,
html body.ui-modern .owner-subscription-price,
html body.ui-modern .owner-subscription-date {
    display: grid;
    gap: 2px;
}

html body.ui-modern .owner-subscription-location-title span,
html body.ui-modern .owner-subscription-price span,
html body.ui-modern .owner-subscription-date span {
    color: #64748b;
    font-size: .69rem !important;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

html body.ui-modern .owner-subscription-location-title strong {
    color: #0f172a;
    font-size: 1.1rem;
}

html body.ui-modern .owner-subscription-price strong {
    color: #0f766e;
    font-size: 1.55rem;
}

html body.ui-modern .owner-subscription-date strong {
    color: #0f172a;
    font-size: 1rem;
}

html body.ui-modern .owner-subscription-location-title small,
html body.ui-modern .owner-subscription-price small,
html body.ui-modern .owner-subscription-date small {
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
}

html body.ui-modern .owner-subscription-location-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: .68rem !important;
    font-weight: 950;
    text-transform: uppercase;
}

html body.ui-modern .owner-subscription-location-actions {
    justify-content: flex-end;
}

html body.ui-modern .owner-subscription-location-actions form {
    margin: 0;
}

html body.ui-modern .owner-subscription-ach-form {
    display: grid;
    justify-items: end;
    gap: 8px;
    width: min(360px, 100%);
}

html body.ui-modern .owner-subscription-ach-form .owner-checkbox {
    align-items: flex-start;
    color: #475569;
    font-size: .73rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
}

html body.ui-modern .owner-subscription-ach-form .owner-checkbox input {
    flex: 0 0 auto;
    margin-top: 2px;
}

html body.ui-modern .owner-subscription-pay-button {
    min-height: 48px;
    padding-inline: 18px;
    white-space: nowrap;
}

html body.ui-modern .owner-subscription-pay-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

html body.ui-modern .owner-subscription-payments,
html body.ui-modern .owner-subscription-attempts {
    margin-top: 18px;
}

html body.ui-modern .owner-subscription-attempts summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}

html body.ui-modern .owner-subscription-attempt-table .owner-data-head,
html body.ui-modern .owner-subscription-attempt-table .owner-data-row {
    grid-template-columns: minmax(145px, .9fr) minmax(150px, 1fr) minmax(90px, .55fr) minmax(95px, .6fr) minmax(180px, 1fr) minmax(220px, 1.3fr) !important;
    min-width: 980px;
}

html body.ui-modern .owner-subscription-alert {
    width: min(1520px, calc(100vw - 44px));
    margin: 0 auto 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #fed7aa;
    border-left: 7px solid #f59e0b;
    border-radius: 12px;
    background: #fffbeb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

html body.ui-modern .owner-subscription-alert.is-danger {
    border-color: #fecaca;
    border-left-color: #c8171d;
    background: #fff5f5;
}

html body.ui-modern .owner-subscription-alert div {
    display: grid;
    gap: 3px;
}

html body.ui-modern .owner-subscription-alert strong {
    color: #0f172a;
    font-size: clamp(.98rem, .9vw, 1.16rem);
    line-height: 1.1;
}

html body.ui-modern .owner-subscription-alert span {
    color: #64748b;
    font-size: clamp(.78rem, .72vw, .92rem);
    font-weight: 760;
    line-height: 1.25;
}

html body.ui-modern .owner-subscription-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, .85fr);
    gap: 16px;
    align-items: start;
}

html body.ui-modern .owner-subscription-override-fields {
    display: grid;
    grid-template-columns: minmax(88px, .5fr) minmax(140px, 1fr);
    gap: 7px;
}

html body.ui-modern .owner-subscription-admin {
    position: sticky;
    top: 12px;
}

html body.ui-modern .owner-product-picker {
    display: grid;
    gap: 12px;
    align-content: start;
}

html body.ui-modern .owner-product-picker-head {
    grid-template-columns: minmax(220px, 1fr) auto !important;
    align-items: center;
}

html body.ui-modern .owner-product-results-shell {
    max-height: min(48vh, 520px);
    overflow: auto;
}

html body.ui-modern .owner-product-results-shell .owner-stock-line,
html body.ui-modern .owner-line-list .owner-stock-line {
    min-height: 66px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
}

html body.ui-modern .owner-product-results-shell .owner-stock-line strong,
html body.ui-modern .owner-line-list .owner-stock-line strong {
    font-size: .96rem !important;
    line-height: 1.12 !important;
}

html body.ui-modern .owner-product-results-shell .owner-stock-line span,
html body.ui-modern .owner-line-list .owner-stock-line span {
    font-size: .78rem !important;
}

@media (max-width: 1100px) {
    html body.ui-modern .owner-subscription-grid {
        grid-template-columns: 1fr;
    }

    html body.ui-modern .owner-subscription-admin {
        position: static;
    }

    html body.ui-modern .owner-subscription-location-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html body.ui-modern .owner-subscription-location-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    html body.ui-modern .owner-work-surface,
    html body.ui-modern .owner-stock-surface,
    html body.ui-modern .owner-po-surface,
    html body.ui-modern .owner-subscription-surface {
        width: calc(100vw - 20px);
    }

    html body.ui-modern .owner-subscription-alert {
        width: calc(100vw - 20px);
        grid-template-columns: 1fr;
    }

    html body.ui-modern .owner-subscription-location-card {
        grid-template-columns: 1fr;
    }
}

/* Owner pricing/catalog viewport guard: keep subpages inside the browser width and
   make wide tables scroll inside their own panels instead of shifting the app. */
html body.ui-modern:has(.owner-page),
html body.ui-modern .workspace:has(.owner-page) {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

html body.ui-modern .screen-page.owner-page,
html body.ui-modern .owner-page {
    width: min(100%, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    margin-inline: auto !important;
    overflow-x: hidden !important;
}

html body.ui-modern .owner-work-surface,
html body.ui-modern .owner-stock-surface,
html body.ui-modern .owner-po-surface,
html body.ui-modern .owner-subscription-surface,
html body.ui-modern .owner-pricing-surface,
html body.ui-modern .owner-catalog-surface {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

html body.ui-modern .owner-page .owner-tabs {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

html body.ui-modern .owner-page .owner-tabs a {
    min-width: 0 !important;
    white-space: normal !important;
}

html body.ui-modern .owner-pricing-surface .owner-work-toolbar,
html body.ui-modern .owner-catalog-surface .owner-work-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

html body.ui-modern .owner-heading-search.owner-location-filter,
html body.ui-modern .owner-product-pricing-search {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) auto !important;
    gap: 10px !important;
    min-width: 0 !important;
}

html body.ui-modern .owner-product-pricing-search {
    width: 100% !important;
    margin: 10px 0 12px !important;
}

html body.ui-modern .owner-pricing-table,
html body.ui-modern .owner-product-pricing-table,
html body.ui-modern .owner-catalog-lines {
    max-width: 100% !important;
    overflow-x: auto !important;
}

html body.ui-modern .owner-product-pricing-table .owner-data-head,
html body.ui-modern .owner-product-pricing-table .owner-data-row {
    grid-template-columns: minmax(240px, 1.25fr) minmax(150px, .8fr) minmax(105px, .55fr) minmax(130px, .7fr) minmax(190px, 1fr) minmax(96px, .5fr) !important;
    min-width: 980px !important;
}

html body.ui-modern .owner-inline-field {
    display: grid !important;
    gap: 4px !important;
}

html body.ui-modern .owner-inline-field span {
    color: #64748b !important;
    font-size: .68rem !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
}

html body.ui-modern .owner-inline-field input {
    min-height: 38px !important;
}

html body.ui-modern .owner-inline-checks {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

html body.ui-modern .owner-inline-checks label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 36px !important;
    padding: 6px 8px !important;
    border: 1px solid #dbe5f1 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    font-size: .78rem !important;
    font-weight: 900 !important;
}

html body.ui-modern .owner-catalog-line {
    grid-template-columns: minmax(260px, 1.2fr) minmax(90px, .45fr) minmax(160px, .75fr) auto !important;
    min-width: 760px !important;
}

html body.ui-modern:has(.owner-page) .command-bar {
    max-width: 100vw !important;
    overflow: hidden !important;
}

html body.ui-modern:has(.owner-page) .modern-command-actions {
    min-width: 0 !important;
    max-width: calc(100vw - 190px) !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

html body.ui-modern:has(.owner-page) .command-button {
    min-width: 84px !important;
    max-width: 170px !important;
}

@media (max-width: 900px) {
    html body.ui-modern .owner-heading-search.owner-location-filter,
    html body.ui-modern .owner-product-pricing-search {
        grid-template-columns: 1fr !important;
    }
}

/* Final owner action-visibility guard; kept after the commercial owner layout. */
html body.ui-modern .owner-product-pricing-table .owner-action-cell {
    position: sticky !important;
    right: 0 !important;
    z-index: 4 !important;
    box-shadow: -10px 0 14px rgba(248, 250, 252, 0.92) !important;
}

html body.ui-modern .owner-product-pricing-table .owner-data-head .owner-action-cell {
    background: #e8eef6 !important;
}

html body.ui-modern .owner-product-pricing-row .owner-action-cell {
    align-self: stretch !important;
    min-width: 92px !important;
}

html body.ui-modern .owner-touch-modal .owner-form > .owner-submit:last-child {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 6 !important;
    width: 100% !important;
    margin-top: 12px !important;
    box-shadow: 0 -10px 18px rgba(255, 255, 255, 0.96) !important;
}

html body.ui-modern .owner-money-field {
    position: relative !important;
}

html body.ui-modern .owner-money-field::after {
    content: "$";
    position: absolute;
    left: 14px;
    bottom: 0;
    display: flex;
    align-items: center;
    height: 42px;
    line-height: 1;
    z-index: 2;
    color: #475569;
    font-weight: 900;
    pointer-events: none;
}

html body.ui-modern .owner-money-field input {
    box-sizing: border-box !important;
    padding-left: 36px !important;
}

@media (max-width: 1100px) {
    html body.ui-modern .owner-product-pricing-table .owner-data-head,
    html body.ui-modern .owner-product-pricing-table .owner-data-row {
        min-width: 820px !important;
        grid-template-columns: minmax(210px, 1.2fr) minmax(130px, .75fr) minmax(130px, .7fr) minmax(115px, .65fr) minmax(170px, .9fr) minmax(92px, .5fr) !important;
    }
}

/* Owner dashboard interactive-card width guard. Global content-button sizing
   must not cap modal-opening dashboard cards at the shared 142px button width. */
html body.ui-modern .owner-page-screen-dashboard button.owner-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
}

/* Owner report toolbar alignment guard. Keep the report identity and exports
   on one calm header row, then give every filter a labeled, equal-height row. */
html body.ui-modern .owner-reports-surface .owner-report-toolbar {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) minmax(420px, auto) !important;
    grid-template-areas:
        "heading exports"
        "filters filters";
    align-items: end !important;
    gap: 14px 20px !important;
    padding: 14px 12px !important;
}

html body.ui-modern .owner-reports-surface .owner-report-heading {
    grid-area: heading;
    min-width: 0 !important;
}

html body.ui-modern .owner-reports-surface .owner-report-heading h2 {
    max-width: 520px;
}

html body.ui-modern .owner-reports-surface .owner-report-filter {
    grid-area: filters;
    display: grid !important;
    grid-template-columns: minmax(140px, .75fr) minmax(190px, 1fr) minmax(160px, .85fr) minmax(160px, .85fr) minmax(150px, auto) !important;
    align-items: end !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px !important;
    gap: 10px !important;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #f8fafc;
}

html body.ui-modern .owner-report-orders-surface .owner-report-order-filter {
    grid-template-columns: minmax(130px, .65fr) minmax(180px, 1fr) minmax(140px, .7fr) minmax(280px, 1.5fr) !important;
}

html body.ui-modern .owner-report-orders-surface .owner-report-export-actions {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    width: min(100%, 360px);
}

html body.ui-modern .owner-reports-surface .owner-report-filter-field {
    display: grid;
    min-width: 0;
    gap: 5px;
}

html body.ui-modern .owner-reports-surface .owner-report-filter-field > span,
html body.ui-modern .owner-reports-surface .owner-report-export-label {
    color: #64748b;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .055em;
    line-height: 1;
    text-transform: uppercase;
}

html body.ui-modern .owner-reports-surface .owner-report-filter-field select,
html body.ui-modern .owner-reports-surface .owner-report-filter-field input,
html body.ui-modern .owner-reports-surface .owner-report-apply {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    margin: 0 !important;
}

html body.ui-modern .owner-reports-surface .owner-report-export-actions {
    grid-area: exports;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    align-items: end !important;
    justify-self: end;
    width: min(100%, 440px);
    gap: 8px !important;
}

html body.ui-modern .owner-reports-surface .owner-report-export-label {
    grid-column: 1 / -1;
}

html body.ui-modern .owner-reports-surface .owner-report-export-actions .small-action {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
}

@media (max-width: 980px) {
    html body.ui-modern .owner-reports-surface .owner-report-toolbar {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "heading"
            "exports"
            "filters";
    }

    html body.ui-modern .owner-reports-surface .owner-report-export-actions {
        justify-self: start;
    }

    html body.ui-modern .owner-reports-surface .owner-report-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html body.ui-modern .owner-reports-surface .owner-report-apply {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    html body.ui-modern .owner-reports-surface .owner-report-filter,
    html body.ui-modern .owner-reports-surface .owner-report-export-actions {
        grid-template-columns: 1fr !important;
    }

    html body.ui-modern .owner-reports-surface .owner-report-apply,
    html body.ui-modern .owner-reports-surface .owner-report-export-label {
        grid-column: 1;
    }
}

/* Owner staff-roster guard. Platform support roles never belong in this UI;
   the remaining business logins are presented as readable credential cards. */
html body.ui-modern .owner-login-roster {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 2px 4px 4px 0;
}

html body.ui-modern .owner-login-roster-card {
    display: grid;
    grid-template-columns: minmax(180px, .85fr) minmax(0, 2.8fr) minmax(132px, .6fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #d7e2ed;
    border-left: 6px solid #0f9488;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

html body.ui-modern .owner-login-roster-card.is-inactive {
    border-left-color: #94a3b8;
    opacity: .72;
}

html body.ui-modern .owner-login-person {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

html body.ui-modern .owner-login-avatar {
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #0f9488, #0f766e);
    font-size: 1.05rem;
    font-weight: 950;
}

html body.ui-modern .owner-login-person > div,
html body.ui-modern .owner-login-facts > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

html body.ui-modern .owner-login-person strong {
    overflow: hidden;
    color: #0f172a;
    font-size: .98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body.ui-modern .owner-login-person span:not(.owner-login-avatar),
html body.ui-modern .owner-login-person small,
html body.ui-modern .owner-login-facts > div > span,
html body.ui-modern .owner-login-facts small {
    color: #64748b;
    font-size: .67rem;
    font-weight: 800;
    line-height: 1.2;
}

html body.ui-modern .owner-login-person span:not(.owner-login-avatar),
html body.ui-modern .owner-login-facts > div > span {
    letter-spacing: .045em;
    text-transform: uppercase;
}

html body.ui-modern .owner-login-facts {
    display: grid;
    grid-template-columns: minmax(135px, .85fr) minmax(150px, 1fr) minmax(230px, 1.45fr);
    min-width: 0;
    gap: 12px;
}

html body.ui-modern .owner-login-facts strong {
    color: #0f172a;
    font-size: .82rem;
    line-height: 1.2;
}

html body.ui-modern .owner-login-username,
html body.ui-modern .owner-login-pin-chip code {
    font-family: "Cascadia Mono", Consolas, monospace;
    letter-spacing: .08em;
}

html body.ui-modern .owner-login-username {
    overflow-wrap: anywhere;
}

html body.ui-modern .owner-login-pin-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

html body.ui-modern .owner-login-pin-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 4px 8px;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    color: #0f766e;
    background: #ecfdf5;
    font-size: .69rem;
    font-weight: 900;
}

html body.ui-modern .owner-login-pin-chip b {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body.ui-modern .owner-login-pin-chip code {
    color: inherit;
    font-weight: 950;
}

html body.ui-modern .owner-login-pin-chip.is-legacy {
    border-color: #fde68a;
    color: #92400e;
    background: #fffbeb;
}

html body.ui-modern .owner-login-pin-chip.is-missing {
    border-color: #fecaca;
    color: #991b1b;
    background: #fff7f7;
}

html body.ui-modern .owner-login-card-actions {
    display: grid;
    align-content: center;
    gap: 7px;
}

html body.ui-modern .owner-login-card-actions .small-action,
html body.ui-modern .owner-login-card-actions .owner-muted-pill {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

html body.ui-modern .owner-location-pin-editor {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    background: #f0fdfa;
}

html body.ui-modern .owner-location-pin-editor > span {
    color: #475569;
    font-size: .72rem;
    font-weight: 750;
}

html body.ui-modern .owner-location-pin-editor > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 9px;
}

@media (max-width: 920px) {
    html body.ui-modern .owner-login-roster-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    html body.ui-modern .owner-login-card-actions {
        display: flex;
        flex-wrap: wrap;
    }

    html body.ui-modern .owner-login-card-actions .small-action,
    html body.ui-modern .owner-login-card-actions .owner-muted-pill {
        width: auto !important;
        min-width: 120px !important;
    }
}

@media (max-width: 640px) {
    html body.ui-modern .owner-login-facts {
        grid-template-columns: 1fr;
    }
}

/* Owner bulk oil-pricing matrix. The table intentionally remains semantic;
   this shell provides bounded two-axis scrolling without flattening rows into
   cards, while the sticky identity/header keep large store price books usable. */
.owner-pricing-surface .owner-pricing-grid,
.owner-pricing-surface .owner-oil-matrix-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.owner-oil-matrix-panel {
    min-width: 0;
    overflow: visible;
}

.owner-oil-matrix-heading {
    align-items: flex-start;
}

.owner-oil-matrix-heading > div:first-child {
    min-width: 0;
}

.owner-oil-matrix-summary {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.owner-oil-matrix-summary > span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #dbe5ef;
    border-radius: 10px;
    color: #526174;
    background: #f8fafc;
    font-size: 0.76rem;
    font-weight: 760;
}

.owner-oil-matrix-summary > span b {
    color: #0f766e;
    font-size: 0.94rem;
    font-weight: 900;
}

.owner-oil-matrix-form {
    display: block;
    min-width: 0;
    margin: 0;
}

.owner-oil-matrix-table-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: min(68vh, 760px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.owner-oil-matrix-table {
    width: 100%;
    min-width: 1180px;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: #1e293b;
}

.owner-oil-matrix-table th,
.owner-oil-matrix-table td {
    height: 58px;
    padding: 8px 9px;
    border-right: 1px solid #e5eaf0;
    border-bottom: 1px solid #e5eaf0;
    background: #fff;
    text-align: left;
    vertical-align: middle;
}

.owner-oil-matrix-table th:last-child,
.owner-oil-matrix-table td:last-child {
    border-right: 0;
}

.owner-oil-matrix-table tbody tr:last-child > * {
    border-bottom: 0;
}

.owner-oil-matrix-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    height: 42px;
    padding-block: 9px;
    color: #475569;
    background: #eef3f7;
    box-shadow: 0 1px 0 #cbd5e1;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: normal;
}

.owner-oil-matrix-table thead th:first-child {
    left: 0;
    z-index: 7;
}

.owner-oil-matrix-table thead th:nth-child(1) { width: 250px; }
.owner-oil-matrix-table thead th:nth-child(2) { width: 92px; }
.owner-oil-matrix-table thead th:nth-child(3) { width: 142px; }
.owner-oil-matrix-table thead th:nth-child(4) { width: 108px; }
.owner-oil-matrix-table thead th:nth-child(5) { width: 108px; }
.owner-oil-matrix-table thead th:nth-child(6) { width: 110px; }
.owner-oil-matrix-table thead th:nth-child(7) { width: 118px; }
.owner-oil-matrix-table thead th:nth-child(8) { width: 94px; }
.owner-oil-matrix-table thead th:nth-child(9) { width: 108px; }

.owner-oil-matrix-table tbody tr[data-oil-matrix-row]:hover > * {
    background: #f8fbfd;
}

.owner-oil-matrix-table tbody tr[data-pricing-source="inherited"] > * {
    background: #f8fafc;
}

.owner-oil-matrix-table tbody tr[data-pricing-source="paused"] > * {
    background: #fffdf5;
}

.owner-oil-matrix-table tbody tr.is-dirty > * {
    background: #fff9e8;
}

.owner-oil-matrix-table tbody tr.is-dirty > .owner-oil-matrix-identity {
    box-shadow: inset 4px 0 0 #f59e0b;
}

.owner-oil-matrix-group-row th {
    height: auto;
    padding: 10px 12px;
    border-right: 0;
    color: #0f172a;
    background: linear-gradient(90deg, #e8f8f4 0%, #f7fbfa 74%, #fff 100%);
}

.owner-oil-matrix-group-row th strong,
.owner-oil-matrix-group-row th span {
    display: block;
}

.owner-oil-matrix-group-row th strong {
    color: #0f766e;
    font-size: 0.79rem;
    font-weight: 900;
}

.owner-oil-matrix-group-row th span {
    margin-top: 2px;
    color: #64748b;
    font-size: 0.69rem;
    font-weight: 650;
    line-height: 1.25;
}

.owner-oil-matrix-identity {
    position: sticky;
    left: 0;
    z-index: 3;
    box-shadow: 1px 0 0 #dbe3eb;
}

.owner-oil-matrix-identity > small,
.owner-oil-matrix-identity > em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-oil-matrix-identity > small {
    margin-top: 3px;
    color: #536273;
    font-size: 0.72rem;
    font-weight: 750;
}

.owner-oil-matrix-identity > em {
    margin-top: 2px;
    color: #7c8998;
    font-size: 0.64rem;
    font-style: normal;
    font-weight: 650;
}

.owner-oil-matrix-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
}

.owner-oil-matrix-title > strong {
    min-width: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.83rem;
    font-weight: 880;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-oil-matrix-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border: 1px solid #d7dee7;
    border-radius: 999px;
    color: #64748b;
    background: #f1f5f9;
    font-size: 0.6rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.025em;
    line-height: 1;
    white-space: nowrap;
}

.owner-oil-matrix-status.is-location {
    border-color: #99f6e4;
    color: #047857;
    background: #ecfdf5;
}

.owner-oil-matrix-status.is-inherited {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.owner-oil-matrix-status.is-paused {
    border-color: #fde68a;
    color: #92400e;
    background: #fffbeb;
}

.owner-oil-matrix-status.is-unconfigured {
    border-color: #d8dee7;
    color: #64748b;
    background: #f8fafc;
}

.owner-oil-matrix-viscosity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.owner-oil-matrix-table select,
.owner-oil-matrix-table input[type="number"] {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    height: 38px;
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #172033;
    background: #fff;
    box-shadow: none;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 760;
    line-height: 1;
}

.owner-oil-matrix-table select {
    padding: 6px 28px 6px 8px;
}

.owner-oil-matrix-table input[type="number"] {
    padding: 6px 8px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.owner-oil-matrix-table select:focus-visible,
.owner-oil-matrix-table input:focus-visible {
    border-color: #0f9488;
    outline: 3px solid rgba(15, 148, 136, 0.16);
    outline-offset: 0;
}

.owner-oil-matrix-table select:disabled,
.owner-oil-matrix-table input:disabled {
    color: #8491a0;
    background: #edf1f5;
    cursor: not-allowed;
    opacity: 0.78;
}

.owner-oil-matrix-money {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.owner-oil-matrix-money > span {
    position: absolute;
    top: 50%;
    left: 9px;
    z-index: 2;
    display: block;
    width: auto;
    color: #657386;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
}

.owner-oil-matrix-money > input[type="number"] {
    padding-left: 25px;
}

.owner-oil-matrix-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
}

.owner-oil-matrix-check input[type="checkbox"] {
    flex: 0 0 17px;
    width: 17px;
    min-width: 17px;
    height: 17px;
    min-height: 17px;
    margin: 0;
    padding: 0;
    accent-color: #0f9488;
}

.owner-oil-matrix-check input:disabled + span {
    color: #718096;
}

.owner-oil-matrix-savebar {
    position: sticky;
    bottom: 12px;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 12px;
    padding: 13px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.owner-oil-matrix-savebar > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.owner-oil-matrix-savebar strong {
    color: #172033;
    font-size: 0.82rem;
    font-weight: 900;
}

.owner-oil-matrix-savebar span {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 680;
    line-height: 1.25;
}

.owner-oil-matrix-savebar .owner-submit {
    flex: 0 0 auto;
    width: auto;
    min-width: 210px;
    margin: 0;
}

.owner-oil-matrix-savebar.is-dirty {
    border-color: #f59e0b;
    background: rgba(255, 251, 235, 0.98);
    box-shadow: 0 14px 32px rgba(146, 64, 14, 0.17);
}

.owner-oil-matrix-savebar [data-oil-matrix-feedback].is-dirty {
    color: #92400e;
    font-weight: 800;
}

@media (max-width: 880px) {
    .owner-oil-matrix-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .owner-oil-matrix-heading .owner-scope-pill {
        align-self: flex-start;
    }

    .owner-oil-matrix-table-shell {
        max-height: min(64vh, 680px);
    }

    .owner-oil-matrix-savebar {
        bottom: 8px;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .owner-oil-matrix-savebar .owner-submit {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .owner-oil-matrix-summary {
        display: grid;
        grid-template-columns: 1fr;
    }

    .owner-oil-matrix-summary > span {
        justify-content: space-between;
    }

    .owner-oil-matrix-table {
        min-width: 1120px;
    }

    .owner-oil-matrix-table thead th:nth-child(1) {
        width: 220px;
    }

    .owner-oil-matrix-savebar {
        padding: 11px;
        border-radius: 12px;
    }
}

/* Universal white eyebrow contrast contract. */
html body .eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    min-width: 0 !important;
    min-height: 24px !important;
    margin-bottom: 7px !important;
    padding: 4px 9px !important;
    border: 1px solid #991b1b !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #d51b26 0%, #a90f18 100%) !important;
    font-weight: 850 !important;
    line-height: 1.05 !important;
    letter-spacing: 0.09em !important;
    text-shadow: none !important;
}
