/* Syntrixor Axle — ERP/DMS shell (SAP / Odoo style)
   Top module tabs with large icons + white workspace */

:root {
    --axle-primary: #714b67; /* Odoo-like plum for accents; override below for Syntrixor blue */
    --axle-blue: #017e84; /* Odoo teal-ish operational */
    --axle-syntrixor: #0b5cab;
    --axle-header: #1f1f1f;
    --axle-tabs-bg: #f0f0f0;
    --axle-tab-active: #ffffff;
    --axle-border: #d4d4d4;
    --axle-text: #212529;
    --axle-muted: #6c757d;
    --axle-white: #ffffff;
    --tblr-primary: #0b5cab;
    --tblr-font-sans-serif: "Segoe UI", Tahoma, Arial, sans-serif;
    --tblr-body-bg: #ffffff;
    --tblr-body-color: #212529;
    --tblr-border-color: #d4d4d4;
    --tblr-card-border-radius: 2px;
    --tblr-border-radius: 2px;
}

html, body {
    font-size: 13px;
    line-height: 1.35;
    background: var(--axle-white);
    color: var(--axle-text);
    margin: 0;
}

.axle-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1100;
    transform: translateY(-150%);
    background: #fff;
    color: var(--axle-syntrixor);
    padding: 8px 12px;
    border: 2px solid var(--axle-syntrixor);
}
.axle-skip-link:focus {
    transform: translateY(0);
}

.axle-lookup-field { position: relative; }
.axle-lookup-field .input-group .form-control[readonly] {
    background: var(--axle-white);
    cursor: default;
}
.axle-lookup-suggest {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 16rem;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--axle-border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.axle-lookup-suggest button {
    display: block;
    width: 100%;
    text-align: start;
    border: 0;
    background: #fff;
    padding: 6px 10px;
}
.axle-lookup-suggest button.is-active,
.axle-lookup-suggest button:hover {
    background: #e7f1ff;
}

.axle-vehicle-figure {
    position: relative;
    width: min(100%, 28rem);
    aspect-ratio: 1 / 1.35;
    margin-inline: auto;
    background: #eaf2fb;
    border: 1px dashed #8ab2da;
    border-radius: 1.5rem;
    overflow: hidden;
}
.axle-vehicle-shape {
    position: absolute;
    inset: 8% 27%;
    border: .55rem solid #64748b;
    border-radius: 28% 28% 20% 20%;
    background: #cbd5e1;
}
.axle-vehicle-shape::before,
.axle-vehicle-shape::after {
    content: "";
    position: absolute;
    width: 26%;
    height: 18%;
    background: #334155;
    border-radius: 45%;
    left: -24%;
}
.axle-vehicle-shape::before { top: 11%; }
.axle-vehicle-shape::after { bottom: 11%; }
.axle-vehicle-windshield {
    position: absolute;
    top: 23%;
    left: 13%;
    width: 74%;
    height: 18%;
    background: #94a3b8;
    clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%);
}
.axle-vehicle-roof {
    position: absolute;
    top: 42%;
    left: 14%;
    width: 72%;
    height: 24%;
    border: .25rem solid #64748b;
    border-radius: 25% 25% 10% 10%;
}
.axle-vehicle-marker {
    position: absolute;
    width: 1.75rem;
    height: 1.75rem;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    background: #64748b;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.axle-vehicle-marker.is-ok { background: #2fb344; }
.axle-vehicle-marker.is-scratch { background: #f59f00; }
.axle-vehicle-marker.is-dent { background: #d63939; }
.axle-vehicle-marker.is-damage { background: #7e22ce; }
.axle-signature-wrap {
    border: 1px solid var(--axle-border);
    border-radius: .25rem;
    background: #fff;
    touch-action: none;
}
.axle-signature-wrap canvas {
    display: block;
    width: 100%;
    height: 220px;
    cursor: crosshair;
    touch-action: none;
}
.axle-tablet-checker .card,
.axle-tablet-checker .btn,
.axle-tablet-checker .form-control,
.axle-tablet-checker .form-select {
    font-size: 1rem;
}
.axle-tablet-checker .btn { min-height: 2.75rem; }

.axle-tablet-checker-home .card {
    border-radius: 1rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, .06);
}
.axle-tablet-checker-home .card-body {
    padding: 1.25rem 1.35rem;
}
.axle-tablet-checker-home h2.h4 {
    font-weight: 700;
}
.axle-tablet-shell .axle-subnav--icons:empty {
    display: none;
}

.axle-tablet-shell .axle-modules .axle-module {
    min-width: 5.5rem;
    min-height: 4.25rem;
}
.axle-tablet-shell .axle-modules .axle-module .ico {
    font-size: 1.6rem;
}
.axle-tablet-shell .btn,
.axle-tablet-shell .form-control,
.axle-tablet-shell .form-select,
.axle-tablet-shell .page-link {
    min-height: 2.6rem;
    font-size: 1rem;
}
.axle-tablet-shell .table td,
.axle-tablet-shell .table th {
    padding: .7rem .85rem;
    font-size: 1rem;
}
.axle-tablet-shell .card-link {
    min-height: 12rem;
}

/* ---- Top brand bar (SAP/Odoo shell) ---- */
.axle-header {
    background: var(--axle-header);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 16px;
    height: 48px;
    border-bottom: 1px solid #000;
}
.axle-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.axle-nav-toggle {
    display: none;
    flex: 0 0 auto;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.35rem 0.5rem;
}
.axle-header-mobile-actions {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
}
.axle-header-mobile-actions .btn {
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.axle-header-right--desktop {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.axle-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}
.axle-logo-mark {
    width: 32px;
    height: 32px;
    background: var(--axle-syntrixor);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.02em;
}
.axle-logo-text {
    line-height: 1.15;
}
.axle-logo-text .company {
    font-size: 11px;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.axle-logo-text .product {
    font-size: 15px;
    font-weight: 700;
}
.axle-logo-text .product span {
    color: #6db3ff;
    font-weight: 600;
}

.axle-header-right,
.axle-header-right--desktop {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #cfcfcf;
}
.axle-header-right .btn,
.axle-header-right--desktop .btn {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 2px;
}
.axle-header-select {
    background: #2a2a2a;
    color: #fff;
    border-color: #555;
}
.axle-header-select option {
    color: #212529;
    background: #fff;
}

/* ---- Module tabs with LARGE icons (Odoo apps / SAP tiles row) ---- */
.axle-modules {
    background: var(--axle-tabs-bg);
    border-bottom: 1px solid var(--axle-border);
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    padding: 4px 8px 0;
    gap: 10px;
}

.axle-module-group {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-width: 0;
    padding: 0 6px;
    border-right: 1px solid #ddd;
}
.axle-module-group:last-child {
    border-right: none;
}
.axle-module-group-finance {
    background: linear-gradient(180deg, #e8eef5 0%, #f0f0f0 100%);
    border: 1px solid #c5d0dc;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding-bottom: 0;
}
.axle-module-group-finance.is-active {
    background: #fff;
}
.axle-group-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
    text-align: center;
    padding: 4px 4px 0;
    line-height: 1.2;
    min-height: 16px;
}
.axle-module-group-finance .axle-group-label {
    color: #0b5cab;
}
.axle-group-icons {
    display: flex;
    align-items: stretch;
    gap: 2px;
}

.axle-module {
    flex: 0 0 auto;
    min-width: 76px;
    max-width: 120px;
    padding: 8px 6px 6px;
    text-align: center;
    text-decoration: none;
    color: #3d3d3d;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    margin-top: 2px;
    position: relative;
}
.axle-module:hover {
    background: #e4e4e4;
    color: #111;
}
.axle-module.active {
    background: var(--axle-tab-active);
    border-color: var(--axle-border);
    color: #111;
    font-weight: 600;
    box-shadow: 0 -1px 0 #fff inset;
}
.axle-module .ico {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    margin-bottom: 2px;
}
.axle-module .ico i {
    font-size: 30px;
    line-height: 1;
    color: var(--axle-syntrixor);
}
.axle-module.active .ico i {
    color: #084a8c;
}
.axle-module .lbl {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile / small-tablet shell: hamburger + account drawers */
.axle-modules--drawer {
    flex-direction: column;
    overflow: visible;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 0;
}
.axle-modules--drawer .axle-module-group {
    border-right: 0;
    border-bottom: 1px solid var(--axle-border);
    padding: 8px 4px 10px;
    width: 100%;
}
.axle-modules--drawer .axle-module-group-finance {
    border-radius: 4px;
    border: 1px solid #c5d0dc;
    margin-bottom: 8px;
}
.axle-modules--drawer .axle-group-label {
    text-align: start;
    padding-inline: 8px;
}
.axle-modules--drawer .axle-group-icons {
    flex-wrap: wrap;
}
.axle-modules--drawer .axle-module {
    min-width: 5.5rem;
    max-width: none;
    border-radius: 4px;
    border: 1px solid transparent;
}
.axle-modules--drawer .axle-module.active {
    border-color: var(--axle-border);
    box-shadow: none;
    background: #e7f1ff;
}
.axle-nav-drawer,
.axle-account-drawer {
    width: min(320px, 100vw);
}
.axle-account-drawer .axle-header-select {
    background: #fff;
    color: #212529;
    border-color: var(--axle-border);
}

@media (max-width: 900px) {
    .axle-header {
        height: auto;
        min-height: 48px;
        padding: 6px 10px;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .axle-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .axle-header-right--desktop {
        display: none !important;
    }
    .axle-header-mobile-actions {
        display: inline-flex;
    }
    .axle-modules--desktop {
        display: none !important;
    }
    .axle-subnav {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }
    .axle-subnav > a {
        flex: 0 0 auto;
    }
    .axle-workspace {
        padding-inline: 10px;
    }
    .axle-logo-text .company {
        max-width: 9rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .axle-header-mobile-actions__lbl {
        display: none;
    }
    .axle-group-label {
        display: none;
    }
    .axle-subnav--icons {
        min-height: 56px;
        padding-top: 4px;
    }
    .axle-subnav--icons a {
        min-width: 64px;
        max-width: 96px;
        padding: 6px 4px 4px;
    }
    .axle-subnav--icons a .ico {
        height: 28px;
    }
    .axle-subnav--icons a .ico i {
        font-size: 22px;
    }
    .axle-subnav--icons a .lbl {
        font-size: 10px;
    }
}

/* Sub-tabs under active module (secondary menu) */
.axle-subnav {
    background: #fff;
    border-bottom: 1px solid var(--axle-border);
    padding: 0 12px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    min-height: 34px;
    align-items: center;
}
.axle-subnav a {
    display: inline-block;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #444;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.axle-subnav a:hover { color: var(--axle-syntrixor); background: #f7f9fb; }
.axle-subnav a.active {
    color: var(--axle-syntrixor);
    border-bottom-color: var(--axle-syntrixor);
    font-weight: 600;
}

/* Aftersales secondary menu — large icons (same .ico pattern as modules) */
.axle-subnav--icons {
    min-height: 72px;
    gap: 4px;
    padding: 6px 10px 0;
    align-items: stretch;
}
.axle-subnav--icons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 88px;
    max-width: 120px;
    padding: 8px 8px 6px;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    color: #3d3d3d;
    text-decoration: none;
}
.axle-subnav--icons a:hover {
    background: #f0f3f6;
    color: #111;
}
.axle-subnav--icons a.active {
    background: #f7f9fb;
    border-color: var(--axle-border);
    color: #111;
    font-weight: 600;
    border-bottom: 2px solid var(--axle-syntrixor);
}
.axle-subnav--icons a .ico {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin-bottom: 2px;
}
.axle-subnav--icons a .ico i {
    font-size: 28px;
    line-height: 1;
    color: var(--axle-syntrixor);
}
.axle-subnav--icons a.active .ico i {
    color: #084a8c;
}
.axle-subnav--icons a .lbl {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

/* Aftersales hub landing tiles */
.axle-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    max-width: 920px;
}
.axle-hub-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 128px;
    padding: 18px 12px 14px;
    text-align: center;
    text-decoration: none;
    color: #2f2f2f;
    background: #fff;
    border: 1px solid var(--axle-border);
    border-radius: 6px;
    transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.axle-hub-tile:hover {
    border-color: var(--axle-syntrixor);
    box-shadow: 0 2px 10px rgba(11, 92, 171, 0.12);
    color: #111;
    background: #fafcfe;
}
.axle-hub-tile.active {
    border-color: var(--axle-syntrixor);
    background: #f3f8fc;
}
.axle-hub-tile .ico {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    margin-bottom: 8px;
}
.axle-hub-tile .ico i {
    font-size: 42px;
    line-height: 1;
    color: var(--axle-syntrixor);
}
.axle-hub-tile .lbl {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}
.axle-hub-grid--favs {
    max-width: none;
}
.axle-fav-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.axle-fav-tile__actions {
    display: flex;
    justify-content: center;
    gap: 4px;
}
.axle-hub-tile.disabled {
    pointer-events: none;
    opacity: 0.5;
}
.axle-home-stat__ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #eef5fb;
    color: var(--axle-syntrixor);
    font-size: 24px;
}
.axle-home-stat__ico.is-pending {
    background: #fff6e8;
    color: #b86e00;
}
.axle-home-stat__ico.is-done {
    background: #e9f7ef;
    color: #1b7a45;
}

/* ---- White workspace ---- */
.axle-workspace {
    background: #fff;
    min-height: calc(100vh - 48px - 78px - 34px);
    padding: 12px 16px 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.axle-workspace-main {
    flex: 1;
    min-width: 0;
}
.axle-level-rail {
    width: 13.5rem;
    flex-shrink: 0;
    border: 1px solid var(--axle-border);
    padding: 10px 12px;
    background: #fafafa;
    position: sticky;
    top: 12px;
}
.axle-level-rail__title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--axle-muted);
    margin-bottom: 8px;
}
.axle-level-rail__tree {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    border-left: 2px solid #d4d4d4;
}
.axle-level-rail__tree li {
    padding: 6px 0 6px 10px;
    margin-left: -2px;
    border-left: 2px solid transparent;
}
.axle-level-rail__tree li.is-current {
    border-left-color: var(--axle-syntrixor);
    background: #eef6fc;
}
.axle-level-rail__k {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--axle-muted);
}
.axle-level-rail__v {
    font-weight: 600;
}
.axle-level-rail__hint {
    font-size: 11px;
    color: var(--axle-muted);
    margin-bottom: 8px;
}
@media (max-width: 1100px) {
    .axle-workspace { display: block; }
    .axle-level-rail { width: auto; margin-top: 16px; position: static; }
}

.axle-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.axle-page-head > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.axle-page-head h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.axle-page-head .pretitle {
    font-size: 11px;
    color: var(--axle-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

/* Dense ERP panels on white */
.card {
    border: 1px solid var(--axle-border);
    box-shadow: none;
    border-radius: 2px;
    background: #fff;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: #f7f7f7;
    border-bottom: 1px solid var(--axle-border);
    padding: 6px 10px;
}
.card-title { font-size: 13px; font-weight: 600; margin: 0; }
.card-body { padding: 10px; }
.card-footer {
    background: #fafafa;
    border-top: 1px solid var(--axle-border);
    padding: 6px 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.card-footer.text-end { justify-content: flex-end; }
.modal-header,
.modal-footer { flex-wrap: wrap; gap: 8px; }
.card-body.row > [class*="col"] > .form-label,
.modal-body.row > [class*="col"] > .form-label,
.axle-wip-panel .row > [class*="col"] > .form-label,
.modal-body .row > [class*="col"] > .form-label {
    min-height: 2.5em;
}
.card-footer.text-end { justify-content: flex-end; }

.table { font-size: 12.5px; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: 5px 8px; vertical-align: middle; }
.table thead th {
    background: #f5f5f5;
    border-bottom: 1px solid var(--axle-border);
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}
.card-table tr:hover td { background: #f8fafc; }

.form-label { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.form-control, .form-select {
    font-size: 12.5px;
    min-height: 32px;
    padding: 4px 8px;
    border-radius: 2px;
    border-color: var(--axle-border);
    max-width: 100%;
}
textarea.form-control { min-height: 4.5rem; height: auto; }
select.form-select[multiple],
select.form-select[size] {
    height: auto;
    min-height: 7rem;
}
.form-select { padding-right: 1.85rem; }
.form-control-sm, .form-select-sm {
    min-height: 28px;
    height: 28px;
    padding: 2px 8px;
    font-size: 12px;
}
.form-select-sm { padding-right: 1.6rem; }
.input-group > .form-control,
.input-group > .form-select { min-width: 0; }
textarea.form-control-sm { height: auto; min-height: 4.5rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--axle-syntrixor);
    box-shadow: 0 0 0 0.15rem rgba(11, 92, 171, 0.15);
}
.input-group { flex-wrap: nowrap; min-width: 0; max-width: 100%; }
.axle-fluid-control {
    min-width: 0 !important;
    max-width: 100%;
    flex: 1 1 12rem;
}
.axle-open-strip-input {
    width: min(100%, 14rem);
    flex: 1 1 10rem;
}
@media (max-width: 768px) {
    .input-group { flex-wrap: wrap; }
    .axle-open-strip-input {
        width: 100%;
        flex: 1 1 100%;
    }
}
.input-group-text {
    min-height: 32px;
    font-size: 12.5px;
    padding: 4px 8px;
}
.input-group > .form-control,
.input-group > .form-select,
.input-group > .btn { min-height: 32px; }
.input-group-sm > .form-control,
.input-group-sm > .form-select,
.input-group-sm > .btn,
.input-group > .form-control-sm,
.input-group > .btn-sm { min-height: 28px; height: 28px; }
.form-check:not(.form-switch) {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 32px;
    padding-left: 0;
    margin-bottom: 0;
}
.form-check:not(.form-switch) .form-check-input {
    float: none;
    margin: 0;
    position: static;
    flex: 0 0 auto;
}
.row > [class*="col-"] { min-width: 0; }
.row > [class*="col-"]:has(> .form-check:only-child) {
    display: flex;
    align-items: flex-end;
}
.card-body.row,
.modal-body.row {
    margin-left: 0;
    margin-right: 0;
    row-gap: 0.75rem;
}
.card-body.row > [class*="col"],
.modal-body.row > [class*="col"] {
    padding-left: 8px;
    padding-right: 8px;
}
.card-body.row:not(:has(textarea)):has(.btn),
form.row:not(:has(textarea)):has(.btn) {
    align-items: flex-end;
}
.row > .col-auto > .form-control,
.row > .col-auto > .form-select {
    width: auto;
    min-width: 7rem;
}
.row > [class*="col-"]:not(.col-auto) > .form-control[style],
.row > [class*="col-"]:not(.col-auto) > .form-select[style] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
}
.axle-ops-sheet .form-control,
.axle-ops-sheet .form-select,
.axle-ops-sheet .input-group,
.axle-wip-panel .form-control,
.axle-wip-panel .form-select,
.axle-wip-panel .input-group,
.card-body .form-control,
.card-body .form-select,
.card-body .input-group,
.modal-body .form-control,
.modal-body .form-select,
.modal-body .input-group {
    width: 100%;
}
.d-flex.justify-content-between,
.card-footer.d-flex {
    flex-wrap: wrap;
    gap: 8px;
}
.offcanvas.offcanvas-end { width: min(420px, 100vw); }
.table-responsive { max-width: 100%; }
.btn { font-size: 12.5px; border-radius: 2px; padding: 4px 12px; }
.btn:not(.btn-sm):not(.btn-lg):not(.dropdown-item) { min-height: 32px; }
.btn-sm {
    min-height: 28px;
    padding: 2px 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.btn-primary {
    background: var(--axle-syntrixor);
    border-color: #084a8c;
}
.btn-primary:hover { background: #084a8c; border-color: #063a6e; }
.alert { border-radius: 2px; padding: 8px 10px; font-size: 12.5px; }
.badge { border-radius: 2px; font-weight: 500; }
.subheader { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--axle-muted); }
.h1 { font-size: 22px; font-weight: 600; }

.axle-footer {
    padding: 8px 16px;
    color: var(--axle-muted);
    font-size: 11px;
    border-top: 1px solid var(--axle-border);
    background: #fafafa;
}

/* Login */
.axle-login-body {
    background: #f5f5f5;
    min-height: 100vh;
}
.axle-login-box {
    width: 380px;
    max-width: 94vw;
    border: 1px solid var(--axle-border);
    background: #fff;
    border-radius: 2px;
}
.axle-login-head {
    background: var(--axle-header);
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.axle-login-head .mark {
    width: 40px;
    height: 40px;
    background: var(--axle-syntrixor);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.axle-login-head .name { font-weight: 700; font-size: 16px; }
.axle-login-head .name span { color: #6db3ff; }
.axle-login-head .tag { font-size: 11px; color: #aaa; margin-top: 2px; }

/* WIP job card workspace */
.axle-wip-strip {
    border: 1px solid var(--axle-border);
    background: #fff;
    border-radius: 2px;
    padding: 12px 14px;
}
.axle-wip-strip__main {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}
.axle-wip-strip__doc {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0b1f33;
}
.axle-wip-strip__amount {
    font-size: 22px;
    font-weight: 700;
    color: #0b1f33;
}
.axle-wip-strip__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    align-items: center;
}
.axle-wip-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.axle-wip-pill .label {
    color: var(--axle-muted);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.axle-wip-panel {
    border: 1px solid var(--axle-border);
    background: #fff;
    border-radius: 2px;
    padding: 12px 14px;
}
.axle-wip-section-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.axle-wip-tabs {
    border-bottom: 1px solid var(--axle-border);
    gap: 0;
    background: #f7f8fa;
    padding: 0 4px;
}
.axle-wip-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #445;
    font-size: 12.5px;
    font-weight: 600;
    padding: 10px 14px;
    background: transparent;
}
.axle-wip-tabs .nav-link:hover { color: var(--axle-syntrixor); }
.axle-wip-tabs .nav-link.active {
    color: var(--axle-syntrixor);
    border-bottom-color: var(--axle-syntrixor);
    background: #fff;
}
.axle-wip-tab-content {
    border: 1px solid var(--axle-border);
    border-top: 0;
    background: #fafbfc;
    padding: 14px;
    border-radius: 0 0 2px 2px;
}
.axle-wip-audit__row {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.axle-wip-audit__row:last-child { border-bottom: 0; }
.datagrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}
.datagrid-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--axle-muted);
    font-weight: 600;
}
.datagrid-content { font-size: 12.5px; }
@media (max-width: 768px) {
    .axle-wip-strip__main { flex-direction: column; }
    .datagrid { grid-template-columns: 1fr; }
}

/* Document form chrome (hides module subnav) */
.axle-formbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 6px 12px;
    background: #e8eef4;
    border-bottom: 1px solid var(--axle-border);
    font-size: 12.5px;
}
.axle-formbar__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--axle-syntrixor);
    text-decoration: none;
    white-space: nowrap;
    padding-right: 10px;
    border-right: 1px solid #c5d0db;
}
.axle-formbar__back:hover { color: #084a8c; }
.axle-formbar__main {
    flex: 1 1 16rem;
    min-width: 0;
    display: flex;
    align-items: center;
}
.axle-page-head--doc { padding-top: 8px; }
.axle-workspace--doc .axle-page-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}
.axle-workspace--doc .axle-page-head > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    margin-left: auto;
}
/* Form bar already states the document — drop a title-only page head. */
.axle-workspace--doc .axle-page-head:not(:has(a, button, form)) { display: none; }
/* Ops desk already shows the document identity — hide the default page head (avoids "Axle DMS / Dashboard"). */
.axle-workspace-main:has(#wip-ops-desk) .axle-page-head,
.axle-workspace-main:has(.axle-ops-id) .axle-page-head { display: none; }
.axle-wip-load {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
}
.axle-wip-load__form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.axle-wip-load__input {
    width: auto;
    min-width: 7rem;
    max-width: 12rem;
    flex: 1 1 7rem;
}

.axle-ops-header-save {
    border: 1px solid var(--axle-border);
    background: #f7f9fb;
    padding: 8px 10px;
    margin-bottom: 0;
    border-radius: 2px 2px 0 0;
}
.axle-ops-sheet--form {
    border: 1px solid var(--axle-border);
    border-top: 0;
    margin-bottom: 0;
    border-radius: 0;
}
.axle-ops-sheet--form .axle-ops-info__body .form-label-sm { margin-bottom: 2px; }
.axle-ops-quick-customer {
    padding: 8px;
    background: #fff;
    border: 1px dashed #ccd5e0;
    border-radius: 4px;
}
.axle-ops-id--slim {
    border-radius: 0;
    border-top: 0;
    padding: 8px 14px;
}
.axle-ops-totals {
    border: 1px solid var(--axle-border);
    border-top: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 10px 14px;
}
.axle-ops-totals__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: baseline;
}
.axle-ops-totals__grid > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 90px;
}
.axle-ops-totals__grid span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--axle-muted);
    font-weight: 600;
}
.axle-ops-totals__grid strong { font-size: 14px; }
.axle-ops-totals__grid .is-total strong { font-size: 17px; color: #0b1f33; }
.axle-ops-totals__grid .is-remain strong { color: var(--axle-syntrixor); font-weight: 700; }
.axle-ops-totals__detail { margin-top: 6px; }

.axle-ops-attachments .card {
    margin-top: 0;
    border: 1px solid var(--axle-border);
    box-shadow: none;
}
.axle-ops-attachments .card-header {
    background: #f3f5f7;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
}
.axle-ops-header-save__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.axle-ops-header-save__bar[hidden] {
    display: none !important;
    margin-bottom: 0;
}
.form-label-sm {
    font-size: 11px;
    margin-bottom: 2px;
    color: #556;
}

.axle-menubar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    background: #f0f3f6;
    border-bottom: 1px solid var(--axle-border);
}
.axle-menubar--chrome {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}
.axle-subnav--form {
    background: #fff;
    border-bottom: 2px solid var(--axle-syntrixor, #0b5cab);
}
.axle-subnav--form a.active {
    font-weight: 700;
}
.axle-menubar__btn {
    border: 0;
    background: transparent;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 10px;
    color: #334;
    border-radius: 2px;
}
.axle-menubar__btn:hover, .axle-menubar__btn.show { background: #fff; color: var(--axle-syntrixor); }
.axle-menubar__desktop-menus {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}
.axle-menubar__more {
    display: none;
}
.axle-menubar__shortcuts {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.axle-ops-nav--top {
    border-top: 0;
    border-radius: 0;
}
.axle-ops-sheet--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.axle-ops-crm-card { background: #fafbfd; }
.axle-ops-crm-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}
.axle-ops-mini-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    gap: 0;
    border-bottom: 1px solid #e5e8eb;
}
.axle-ops-mini-tabs a {
    display: block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #556;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.axle-ops-mini-tabs a.active {
    color: var(--axle-syntrixor);
    border-bottom-color: var(--axle-syntrixor);
}
.axle-ops-info__body { font-size: 12.5px; }
.axle-ops-info .hint { font-size: 11px; color: #667; }

/* WIP Ops Desk (SAP/Odoo dense) */
.axle-ops { display: flex; flex-direction: column; gap: 0; }
.axle-ops-id {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid var(--axle-border);
    border-bottom: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 12px 14px 10px;
    border-radius: 2px 2px 0 0;
}
.axle-ops-id__right { text-align: right; }
.axle-ops-doc {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0b1f33;
    line-height: 1.1;
}
.axle-ops-meta { font-size: 11px; color: var(--axle-muted); margin-top: 4px; }
.axle-ops-money {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
    margin-bottom: 8px;
    font-size: 12px;
}
.axle-ops-money span {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--axle-muted);
    font-weight: 600;
}
.axle-ops-money .is-total { font-size: 16px; font-weight: 700; color: #0b1f33; }
.axle-ops-money .is-remain { font-weight: 700; color: var(--axle-syntrixor); }
.axle-ops-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.axle-ops-sheet {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--axle-border);
    background: #fff;
}
.axle-ops-sheet__col {
    padding: 10px 12px;
    border-right: 1px solid #eee;
    min-width: 0;
}
.axle-ops-sheet__col:last-child { border-right: 0; }
.axle-ops-field {
    display: grid;
    grid-template-columns: minmax(4.75rem, 7.5rem) minmax(0, 1fr);
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12.5px;
    align-items: start;
}
.axle-ops-field:last-child { margin-bottom: 0; }
.axle-ops-field > span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--axle-muted);
    font-weight: 600;
    padding-top: 6px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.axle-ops-field .hint {
    font-size: 11px;
    color: #667;
    margin-top: 1px;
}
.axle-ops-ar { background: #f4f8fc; padding: 10px 12px; }
.axle-ops-ar.is-warn { background: #fffbeb; }
.axle-ops-ar.is-blocked { background: #fff5f5; }
.axle-ops-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--axle-muted);
    font-weight: 600;
    margin-bottom: 2px;
}
.axle-ops-value { font-size: 12.5px; }
.axle-ops-ar__nums {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    gap: 6px;
    margin-top: 8px;
}
.axle-ops-ar__nums span {
    display: block;
    font-size: 10px;
    color: var(--axle-muted);
    text-transform: uppercase;
}
.axle-ops-ar__nums strong { font-size: 13px; }
.axle-ops-notes {
    border: 1px solid var(--axle-border);
    border-top: 0;
    background: #fffdf6;
    padding: 8px 12px;
    font-size: 12.5px;
}

.axle-ops-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--axle-border);
    border-top: 0;
    background: #eef1f4;
}
.axle-ops-nav a {
    display: block;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #445;
    text-decoration: none;
    border-right: 1px solid #dde2e8;
    border-bottom: 2px solid transparent;
}
.axle-ops-nav a:hover { color: var(--axle-syntrixor); background: #f7f9fb; }
.axle-ops-nav a.active {
    background: #fff;
    color: var(--axle-syntrixor);
    border-bottom-color: var(--axle-syntrixor);
}

.axle-ops-body {
    border: 1px solid var(--axle-border);
    border-top: 0;
    background: #fff;
    padding: 12px;
    border-radius: 0 0 2px 2px;
    min-height: 320px;
}

.axle-ops-lines { display: flex; flex-direction: column; }
.axle-ops-lines__toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.axle-ops-table { font-size: 12px; }
.axle-ops-table thead th { background: #f3f5f7; }
.axle-ops-table tbody tr { cursor: pointer; }
.axle-ops-table tbody tr .axle-line-ops,
.axle-ops-table tbody tr .axle-col-actions,
.axle-ops-table tbody tr .axle-col-analysis { cursor: default; }
.axle-line-detail dt {
    font-size: 12px;
    color: var(--axle-muted);
    font-weight: 600;
}
.axle-line-detail dd {
    font-size: 13px;
    margin-bottom: 0.65rem;
}
.axle-ops-table tbody tr:hover td { background: #f5f9fc; }
.axle-ops-table tbody tr.is-short td { background: #fff8f0; }
.axle-ops-table tbody tr.is-lost td { background: #fafafa; color: #888; }
.axle-ops-table tbody tr.is-lost td strong,
.axle-ops-table tbody tr.is-lost td .small { text-decoration: line-through; }
.axle-ops-table tfoot td { background: #f7f8fa; font-size: 12px; }
.axle-ops-table tbody tr.is-selected td { background: #eef6fb; }
.axle-ops-table .axle-col-select {
    width: 2.75rem;
    text-align: center;
    vertical-align: middle;
}
.axle-ops-table tbody tr .axle-col-select { cursor: pointer; }
.axle-ops-table .axle-col-select .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    cursor: pointer;
}
.axle-vpo-desk .axle-ops-table tbody tr.js-rcv-selectable { cursor: pointer; }
.axle-vpo-desk .axle-ops-table tbody tr.is-selected td { background: #e7f3fa; }
.axle-ops-table .axle-col-idx {
    width: 2rem;
    padding-left: 8px;
    padding-right: 4px;
    text-align: right;
    white-space: nowrap;
}
.axle-ops-table .axle-col-actions {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #fff;
    box-shadow: -4px 0 6px -4px rgba(0, 0, 0, 0.08);
    min-width: 4.25rem;
}
.axle-ops-table thead .axle-col-actions { background: #f3f5f7; z-index: 3; }
.axle-ops-table tbody tr:hover .axle-col-actions { background: #f5f9fc; }
.axle-ops-table tbody tr.is-selected .axle-col-actions { background: #eef6fb; }
.axle-ops-table tbody tr.is-short .axle-col-actions { background: #fff8f0; }
.axle-ops-table tbody tr.is-lost .axle-col-actions { background: #fafafa; }
.axle-ops-table .axle-line-ops { min-width: 7.25rem; width: 8.5rem; max-width: 10rem; }
.axle-ops-table .form-control-sm,
.axle-ops-table .form-select-sm {
    min-height: 28px;
    height: 28px;
}
.axle-ops-table .axle-col-analysis {
  min-width: 4.5rem;
  max-width: 7.5rem;
  white-space: nowrap;
}
.axle-ops-table .axle-line-analysis-form .form-select-sm {
  min-width: 3.25rem;
  padding-left: 0.35rem;
  padding-right: 1.25rem;
  font-weight: 700;
}
.axle-ops-table .axle-line-ops__form { margin-bottom: 2px; }
.axle-ops-table .axle-line-ops__form .form-select-sm {
    font-size: 11px;
    padding: 2px 22px 2px 6px;
    min-height: 26px;
}
.axle-ops-table .axle-line-ops__meta {
    font-size: 11px;
    color: var(--axle-muted);
    line-height: 1.3;
}
.axle-line-actions-menu {
    max-height: none;
    overflow: visible;
}

.axle-ctx {
    position: absolute;
    z-index: 1080;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--axle-border);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    padding: 4px 0;
    border-radius: 2px;
}
.axle-ctx button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 7px 12px;
    font-size: 12.5px;
    cursor: pointer;
}
.axle-ctx button:hover { background: #f0f4f8; color: var(--axle-syntrixor); }

@media (max-width: 1400px) {
    .axle-ops-sheet,
    .axle-ops-sheet--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .axle-ops-sheet--3 .axle-ops-info { grid-column: 1 / -1; }
    .axle-ops-sheet__col:nth-child(2n) { border-right: 0; }
}
@media (max-width: 1280px) {
    .axle-menubar__shortcuts { margin-left: 0; width: 100%; }
}
@media (max-width: 1100px) {
    .axle-ops-id { flex-direction: column; }
    .axle-ops-id__right { text-align: left; }
    .axle-ops-money, .axle-ops-pills { justify-content: flex-start; }
}
@media (max-width: 768px) {
    .axle-ops-sheet, .axle-ops-sheet--3 { grid-template-columns: minmax(0, 1fr); }
    .axle-ops-sheet__col { border-right: 0; border-bottom: 1px solid #eee; }
    .axle-ops-field { grid-template-columns: minmax(4.5rem, 6.5rem) minmax(0, 1fr); }
    .axle-formbar__back { border-right: 0; padding-right: 0; }
    .axle-menubar__desktop-menus { display: none; }
    .axle-menubar__more { display: inline-block; }
}

/* Touch-friendlier chrome on phone / small tablet */
@media (max-width: 900px) {
    .axle-menubar__btn {
        min-height: 40px;
        padding: 8px 12px;
    }
    .axle-menubar__shortcuts .btn,
    .axle-doc-actions__btns .btn,
    .axle-ops-table .btn-sm,
    .axle-line-ops .btn-sm,
    .axle-line-ops .form-select-sm,
    .axle-line-ops .form-control-sm {
        min-height: 40px;
    }
    .axle-ctx button {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 14px;
    }
}
.axle-tablet-shell .axle-menubar__btn,
.axle-tablet-shell .axle-menubar__shortcuts .btn,
.axle-tablet-shell .axle-doc-actions__btns .btn {
    min-height: 44px;
}

/* ---- Workshop timeline board ---- */
.axle-timeline {
    border: 1px solid var(--axle-border);
    background: var(--axle-white);
    position: relative;
}
.axle-timeline.is-saving { opacity: .6; pointer-events: none; }
.axle-timeline-toolbar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .5rem;
    border-bottom: 1px solid var(--axle-border);
    background: #fafafa;
    flex-wrap: wrap;
}
.axle-timeline-legend { display: flex; gap: .35rem; flex-wrap: wrap; }
.axle-timeline-chip {
    font-size: .7rem;
    padding: .05rem .4rem;
    border-radius: 2px;
    text-transform: capitalize;
    border-left: 3px solid transparent;
    background: #f1f3f5;
}
.axle-timeline-scroll {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.axle-timeline-scroll-hint {
    display: none;
    font-size: .75rem;
    color: var(--axle-muted);
    padding: .25rem .5rem 0;
}
.axle-timeline-grid { min-width: 60rem; }
.axle-timeline-row {
    display: grid;
    grid-template-columns: 13rem 1fr;
    border-bottom: 1px solid var(--axle-border);
}
.axle-timeline-row:last-child { border-bottom: 0; }
.axle-timeline-row--head { position: sticky; top: 0; z-index: 3; background: #fff; }
.axle-timeline-row--unassigned { background: #fff8f0; }
.axle-timeline-lane-head {
    padding: .35rem .5rem;
    border-right: 1px solid var(--axle-border);
    background: #fbfbfb;
}
.axle-timeline-tech { font-weight: 600; }
.axle-timeline-sub { font-size: .72rem; color: var(--axle-muted); }
.axle-timeline-util {
    position: relative;
    height: .85rem;
    margin-top: .2rem;
    background: #eceff1;
    border-radius: 2px;
}
.axle-timeline-util-bar { height: 100%; background: #2fb344; border-radius: 2px; }
.axle-timeline-util-bar.is-busy { background: #f59f00; }
.axle-timeline-util-bar.is-full { background: #d63939; }
.axle-timeline-util span {
    position: absolute;
    right: .25rem;
    top: -.05rem;
    font-size: .65rem;
    color: #333;
}
.axle-timeline-track {
    position: relative;
    min-height: 3.4rem;
    background-image: repeating-linear-gradient(to right, #eef1f4 0 1px, transparent 1px 12.5%);
}
.axle-timeline-ruler { min-height: 1.5rem; background-image: none; }
.axle-timeline-tick {
    position: absolute;
    top: .2rem;
    transform: translateX(-50%);
    font-size: .68rem;
    color: var(--axle-muted);
    white-space: nowrap;
}
.axle-timeline-drop.is-over { background-color: #e7f5ff; }
.axle-timeline-break {
    position: absolute;
    top: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, #e9ecef 0 6px, #f8f9fa 6px 12px);
}
.axle-timeline-free {
    position: absolute;
    top: .35rem;
    bottom: .35rem;
    border: 1px dashed #adb5bd;
    border-radius: 2px;
    color: #868e96;
    font-size: .65rem;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.axle-timeline-card {
    position: absolute;
    top: .3rem;
    bottom: .3rem;
    min-width: 3.5rem;
    padding: .15rem .35rem;
    border-radius: 2px;
    border-left: 3px solid #0b5cab;
    background: #e7f1fb;
    color: #14324f;
    cursor: grab;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.axle-timeline-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,.22); z-index: 2; }
.axle-timeline-card.is-dragging { opacity: .5; cursor: grabbing; }
.axle-timeline-card.is-resizing { user-select: none; }
.axle-timeline-card__title {
    font-weight: 600;
    font-size: .74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.axle-timeline-card__meta {
    font-size: .66rem;
    opacity: .8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.axle-timeline-card.is-scheduled, .axle-timeline-chip.is-scheduled { border-left-color: #0b5cab; background: #e7f1fb; }
.axle-timeline-card.is-confirmed, .axle-timeline-chip.is-confirmed { border-left-color: #ae3ec9; background: #f8ecfb; }
.axle-timeline-card.is-progress, .axle-timeline-chip.is-progress { border-left-color: #f59f00; background: #fff4e0; }
.axle-timeline-card.is-completed, .axle-timeline-chip.is-completed { border-left-color: #2fb344; background: #e9f8ed; }
.axle-timeline-card.is-cancelled, .axle-timeline-chip.is-cancelled {
    border-left-color: #868e96;
    background: #f1f3f5;
    text-decoration: line-through;
    opacity: .75;
}
.axle-timeline-resize {
    position: absolute;
    top: 0;
    right: 0;
    width: .45rem;
    height: 100%;
    cursor: ew-resize;
    background: rgba(0,0,0,.08);
}
@media (max-width: 900px) {
    .axle-timeline-resize {
        width: 1rem;
        background: rgba(0,0,0,.14);
    }
}
.axle-timeline-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    padding: .5rem .75rem;
    border-radius: 3px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    max-width: 24rem;
}
.axle-timeline-toast.is-ok { background: #2fb344; }
.axle-timeline-toast.is-error { background: #d63939; }
.axle-workload-assign {
    min-width: min(22rem, 100%);
    max-width: 100%;
}
@media (max-width: 768px) {
    .axle-workload-assign {
        min-width: 0;
    }
    .axle-workload-assign .row > [class*="col"] {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
.axle-kanban-col.is-over { background: #e7f5ff; }
.axle-kanban-card { cursor: grab; }

@media (max-width: 768px) {
    .axle-timeline-row { grid-template-columns: 8.5rem 1fr; }
    .axle-timeline-grid { min-width: 48rem; }
    .axle-timeline-scroll-hint { display: block; }
}

/* Icon FOIT: Tabler CSS has no font-display. Bind icons to a swap face. */
@font-face {
    font-family: "tabler-icons-axle";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../vendor/tabler-icons/fonts/tabler-icons.woff2") format("woff2");
}
.ti {
    font-family: "tabler-icons-axle" !important;
}

.axle-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
}

.axle-pipeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(12rem, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}
.axle-pipeline-col {
    background: #f4f6f8;
    border: 1px solid #d0d4d8;
    min-height: 12rem;
    padding: .6rem;
}
.axle-pipeline-col h4 {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 .5rem;
    color: #5c636a;
}
.axle-pipeline-card {
    display: block;
    background: #fff;
    border: 1px solid #cfd4da;
    padding: .55rem .65rem;
    margin-bottom: .45rem;
    color: inherit;
    text-decoration: none;
}
.axle-pipeline-card:hover { border-color: var(--axle-syntrixor); }
.axle-pipeline-card .no { font-weight: 700; }
.axle-pipeline-card .meta { font-size: .8rem; color: #6c757d; }

.axle-tablet-dock {
    display: none;
}
.axle-tablet-shell .axle-modules,
.axle-tablet-shell .axle-nav-toggle {
    display: none !important;
}
.axle-tablet-shell .axle-header {
    height: 52px;
}
.axle-tablet-shell .axle-header-right--desktop {
    display: none !important;
}
.axle-tablet-shell .axle-header-mobile-actions {
    display: inline-flex;
}
.axle-tablet-shell main {
    padding-bottom: 5.5rem;
}
.axle-tablet-shell .axle-tablet-dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: #111;
    border-top: 1px solid #000;
    justify-content: space-around;
    padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom));
}
.axle-tablet-dock a {
    flex: 1;
    color: #ddd;
    text-decoration: none;
    text-align: center;
    padding: .4rem .2rem;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.axle-tablet-dock a i {
    display: block;
    font-size: 1.45rem;
    margin-bottom: .1rem;
}
.axle-tablet-dock a.active,
.axle-tablet-dock a:hover {
    color: #fff;
    background: var(--axle-syntrixor);
}
.axle-tablet-home {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}
@media (min-width: 900px) {
    .axle-tablet-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.axle-tablet-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 9.5rem;
    padding: 1.25rem 1rem;
    background: #111;
    color: #fff;
    text-decoration: none;
    border: 2px solid transparent;
}
.axle-tablet-tile:hover,
.axle-tablet-tile:focus {
    color: #fff;
    border-color: var(--axle-syntrixor);
}
.axle-tablet-tile i {
    font-size: 2.4rem;
    margin-bottom: .55rem;
}
.axle-tablet-tile strong {
    font-size: 1.2rem;
    font-weight: 700;
}
.axle-tablet-tile span {
    color: #c5c5c5;
    font-size: .9rem;
    margin-top: .2rem;
}

/* Vehicle sales enquiry desk — action icon strip */
.axle-enquiry-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    gap: .65rem;
}
.axle-enquiry-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 5.25rem;
    padding: .65rem .4rem;
    border: 1px solid var(--tblr-border-color, #dce1e7);
    border-radius: .5rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.axle-enquiry-action:hover,
.axle-enquiry-action:focus-visible {
    border-color: var(--axle-blue, #017e84);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--axle-blue, #017e84) 18%, transparent);
    color: inherit;
    text-decoration: none;
}
.axle-enquiry-action i {
    font-size: 1.55rem;
    line-height: 1;
    color: var(--axle-blue, #017e84);
}
.axle-enquiry-action span {
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
}
.axle-enquiry-action.is-muted {
    opacity: .42;
    pointer-events: none;
}
.axle-enquiry-action.is-danger i { color: #d63939; }
.axle-enquiry-action.is-success i { color: #2fb344; }
.axle-enquiry-action.is-warning i { color: #f76707; }
.axle-enquiry-action form { margin: 0; width: 100%; height: 100%; }
.axle-enquiry-action button {
    all: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    width: 100%;
    height: 100%;
    cursor: pointer;
    text-align: center;
}
.axle-enquiry-confirm-sum {
    background: #f6f8fa;
    border-radius: .5rem;
    padding: .85rem 1rem;
}

@media print {
    .d-print-none { display: none !important; }
}

/* Always-visible WIP document actions */
.axle-doc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.65rem;
  background: #f3f5f7;
  border: 1px solid #e6e8eb;
  border-radius: 6px;
}
.axle-doc-actions__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6c7a89;
  margin-right: 0.15rem;
}
.axle-doc-actions__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.axle-doc-actions__btns .btn {
  font-size: 12px;
  padding: 0.2rem 0.55rem;
}

/* Vehicle PO ops desk — reuse WIP chrome */
.axle-vpo-desk .axle-ops-table tbody tr { cursor: default; }
.axle-vpo-desk .axle-ops-table .form-control-sm,
.axle-vpo-desk .axle-ops-table .form-select-sm {
  min-width: 0;
  width: 100%;
  font-size: 12px;
}
.axle-vpo-desk .axle-ops-table .js-vpo-vin { min-width: 8rem; }
.text-orange { color: #c2410c !important; }
.text-azure { color: #0b6e99 !important; }

/* In-app Help markdown */
.axle-help-list .list-group-item { border-inline: 0; }
.axle-help-markdown h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.axle-help-markdown h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.axle-help-markdown h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
}
.axle-help-markdown p,
.axle-help-markdown li {
    font-size: 13px;
    line-height: 1.45;
}
.axle-help-markdown ul,
.axle-help-markdown ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}
.axle-help-markdown table {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 12.5px;
}
.axle-help-markdown th,
.axle-help-markdown td {
    border: 1px solid var(--axle-border);
    padding: 0.35rem 0.5rem;
    vertical-align: top;
}
.axle-help-markdown th { background: #f5f7fa; }
.axle-help-markdown code {
    font-size: 0.9em;
    background: #f1f3f5;
    padding: 0.05rem 0.3rem;
    border-radius: 2px;
}
.axle-help-markdown strong { font-weight: 600; }


