:root {
    --v3-navy: #0f1c2e;
    --v3-slate: #20324a;
    --v3-sand: #f6f1e9;
    --v3-accent: #d48432;
    --v3-line: #d8dde5;
    --v3-admin-bg: #eef2f7;
    --v3-admin-sidebar: #1f2d3d;
    --v3-admin-sidebar-hover: #2c3f54;
    --v3-admin-header: #ffffff;
    --v3-admin-border: #d9e0e7;
}


body {
    background: var(--v3-admin-bg);
    color: var(--v3-navy);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.adminlte-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.adminlte-sidebar {
    background: var(--v3-admin-sidebar);
    color: #fff;
    min-height: 100vh;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

.adminlte-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.adminlte-topbar {
    min-height: 74px;
    background: var(--v3-admin-header);
    border-bottom: 1px solid var(--v3-admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.adminlte-topbar__eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7d8ca1;
    margin-bottom: 0.2rem;
}

.adminlte-topbar__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #223247;
}

.adminlte-userchip {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--v3-admin-border);
    border-radius: 999px;
    background: #f8fafc;
}

.adminlte-userchip__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #2f455d;
    color: #fff;
    font-weight: 700;
}

.adminlte-userchip__name {
    font-weight: 700;
    color: #223247;
    line-height: 1.1;
}

.adminlte-userchip__mail {
    color: #7d8ca1;
    font-size: 0.82rem;
}

.adminlte-content {
    padding: 1.4rem;
}

.auth-shell,
.auth-page {
    min-height: 100vh;
}

.auth-card,
.stat-card,
.card {
    border-radius: 1.25rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.92);
}

/* ================================================================
   AUTH SPLIT LAYOUT
   ================================================================ */

.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
}

/* ── Panneau gauche : branding ── */

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #0f1c2e 0%, #1a3045 55%, #0f1c2e 100%);
    display: flex;
    align-items: stretch;
}

.auth-brand-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 3.5rem;
    width: 100%;
}

/* Blobs décoratifs */
.auth-brand-blur-1,
.auth-brand-blur-2 {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
}

.auth-brand-blur-1 {
    width: 420px;
    height: 420px;
    top: -80px;
    right: -120px;
    background: radial-gradient(circle, rgba(212, 132, 50, 0.18) 0%, transparent 70%);
}

.auth-brand-blur-2 {
    width: 340px;
    height: 340px;
    bottom: -60px;
    left: -80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

/* Logo */
.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-brand-logo__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(212, 132, 50, 0.28) 0%, rgba(212, 132, 50, 0.12) 100%);
    border: 1px solid rgba(212, 132, 50, 0.35);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: #d48432;
    box-shadow: 0 8px 24px rgba(212, 132, 50, 0.2);
}

.auth-brand-logo__name {
    display: block;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.auth-brand-logo__sub {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.52);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.1rem;
}

/* Contenu central */
.auth-brand-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand-title {
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 1.2rem;
}

.auth-brand-desc {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.65;
    max-width: 32ch;
    margin: 0;
}

/* Pills */
.auth-brand-pills {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.auth-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.auth-brand-pill i {
    color: #d48432;
    font-size: 0.9rem;
}

/* ── Panneau droit : formulaire ── */

.auth-form-panel {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-form-inner {
    width: 100%;
    max-width: 420px;
}

/* Card formulaire */
.auth-login-card {
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 24px 56px rgba(15, 23, 42, 0.08);
    padding: 2.5rem 2.25rem;
}

.auth-login-header {
    margin-bottom: 2rem;
}

.auth-login-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d48432;
    margin-bottom: 0.6rem;
}

.auth-login-title {
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f1c2e;
    letter-spacing: -0.04em;
    margin: 0 0 0.65rem;
    line-height: 1.1;
}

.auth-login-desc {
    font-size: 0.93rem;
    color: #647489;
    margin: 0;
    line-height: 1.6;
}

/* Champs */
.auth-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 1.35rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-field__label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #2d3f52;
    margin: 0;
}

.auth-field__wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-field__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8ea0b5;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}

.auth-field__input {
    width: 100%;
    height: 52px;
    border-radius: 0.85rem;
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    background: #f8fafc;
    color: #0f1c2e;
    font-size: 0.95rem;
    font-family: inherit;
    padding: 0 3rem 0 2.8rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.auth-field__input::placeholder {
    color: #b0bcc8;
}

.auth-field__input:focus {
    border-color: #d48432;
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(212, 132, 50, 0.12);
}

.auth-field__toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8ea0b5;
    cursor: pointer;
    font-size: 1.05rem;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.15s ease;
    z-index: 1;
}

.auth-field__toggle:hover {
    color: #0f1c2e;
}

.auth-field__input--pwd {
    padding-right: 3rem;
}

/* Messages d'erreur */
.auth-field__error {
    font-size: 0.78rem;
    color: #c0392b;
    font-weight: 600;
    margin: 0.35rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.auth-field__wrap + .error-message,
.error-message {
    font-size: 0.78rem;
    color: #c0392b;
    font-weight: 600;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.has-error .auth-field__input,
.auth-field__input.is-invalid {
    border-color: rgba(192, 57, 43, 0.4);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

/* Bouton submit */
.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    height: 52px;
    border-radius: 0.85rem;
    border: none;
    background: linear-gradient(135deg, #d48432 0%, #b96c22 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 20px rgba(212, 132, 50, 0.3);
    margin-top: 0.4rem;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(212, 132, 50, 0.38);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn i {
    font-size: 1.05rem;
    transition: transform 0.18s ease;
}

.auth-submit-btn:hover i {
    transform: translateX(3px);
}

/* Hint identifiants */
.auth-login-hint {
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.07);
    font-size: 0.8rem;
    color: #7a8ea3;
    line-height: 1.55;
}

.auth-login-hint i {
    color: #d48432;
    margin-right: 0.3rem;
}

.auth-login-hint strong {
    color: #2d3f52;
    font-weight: 700;
}

/* Flash messages */
.auth-form-inner .message,
.auth-form-inner .flash-message {
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.auth-form-inner .error {
    background: rgba(192, 57, 43, 0.07);
    border-color: rgba(192, 57, 43, 0.2);
    color: #a33030;
}

.auth-form-inner .success {
    background: rgba(30, 122, 87, 0.07);
    border-color: rgba(30, 122, 87, 0.2);
    color: #1e6b4f;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        min-height: 220px;
        max-height: 260px;
    }

    .auth-brand-inner {
        padding: 2rem 2rem 1.5rem;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .auth-brand-content,
    .auth-brand-pills {
        display: none;
    }

    .auth-brand-title {
        font-size: 1.5rem;
    }

    .auth-form-panel {
        padding: 2rem 1.25rem;
    }
}

.content-wrap {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--v3-admin-border);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(26, 37, 52, 0.06);
}

.sidebar-inner {
    padding: 1rem 0.9rem;
}

.brand-block {
    padding: 1rem 1rem 1.15rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
}

.adminlte-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.adminlte-brand__logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
}

.brand-kicker,
.eyebrow,
.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--v3-accent);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.7rem;
    padding: 0.8rem 0.95rem;
    font-weight: 600;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: var(--v3-admin-sidebar-hover);
}

.sidebar-footer {
    padding: 1rem;
}

.adminlte-sidebar-footer {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-title {
    font-size: clamp(1.7rem, 2vw, 2.4rem);
}

.stat-card {
    background: linear-gradient(135deg, #fff 0%, #f5efe7 100%);
    box-shadow: 0 12px 35px rgba(16, 31, 53, 0.08);
}

.stat-card h2 {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
}

.table thead th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #607086;
}

.btn-primary {
    background-color: var(--v3-accent);
    border-color: var(--v3-accent);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #b66f28;
    border-color: #b66f28;
}

.form-control,
.form-select {
    border-radius: 0.9rem;
    border-color: var(--v3-line);
    min-height: 48px;
}

textarea.form-control {
    min-height: 120px;
}

.btn-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    padding-inline: 1rem;
}

/* --- Clients : page index épurée --- */

.clients-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.clients-header__eyebrow {
    margin: 0 0 0.25rem;
    color: #8593a8;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.clients-header__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 700;
    color: var(--v3-navy, #18304d);
    line-height: 1.1;
}

.clients-header__meta {
    margin: 0;
    color: #6b7a90;
    font-size: 0.95rem;
}

.clients-header__meta strong {
    color: var(--v3-navy, #18304d);
}

.clients-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.clients-panel {
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 0.85rem;
    overflow: hidden;
}

.clients-panel__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #eef0f4;
    background: #fafbfc;
}

.clients-panel__search {
    position: relative;
    flex: 1 1 280px;
    min-width: 240px;
}

.clients-panel__search i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8593a8;
    pointer-events: none;
}

.clients-panel__search .form-control {
    padding-left: 2.4rem;
    background: #fff;
    border-color: #e2e6ec;
}

.clients-panel__clear {
    padding: 0.25rem 0.5rem;
    color: #6b7a90;
    text-decoration: none;
    font-size: 0.88rem;
}

.clients-panel__counter {
    color: #6b7a90;
    font-size: 0.85rem;
    min-width: 4.5rem;
    text-align: right;
}

.clients-panel__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f1f3f6;
    color: #6b7a90;
}

.clients-panel__status.is-ok {
    background: #e8f4ee;
    color: #1e7a59;
}

.clients-panel__status.is-off {
    background: #fdecec;
    color: #a23030;
}

.clients-table {
    margin: 0;
}

.clients-table thead th {
    padding: 0.8rem 1.1rem;
    background: #fff;
    border-bottom: 1px solid #eef0f4;
    color: #8593a8;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.clients-table tbody td {
    padding: 0.85rem 1.1rem;
    border-top: 1px solid #f1f3f6;
    vertical-align: middle;
}

.clients-table tbody tr:hover {
    background: #fafbfc;
}

.client-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.client-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.client-avatar.is-company {
    background: #2f5075;
}

.client-avatar.is-individual {
    background: #6651b7;
}

.client-cell__name {
    font-weight: 600;
    color: var(--v3-navy, #18304d);
    line-height: 1.2;
}

.client-cell__sub {
    margin-top: 0.15rem;
    color: #8593a8;
    font-size: 0.82rem;
}

.client-cell__dot {
    margin: 0 0.2rem;
    color: #c0c8d4;
}

.client-contact {
    line-height: 1.3;
    font-size: 0.9rem;
}

.client-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    background: #f1f3f6;
    color: #6b7a90;
}

.client-tag.is-linked {
    background: #fff3e5;
    color: #9b5c12;
}

.client-actions {
    display: inline-flex;
    gap: 0.25rem;
}

.client-actions .btn {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.clients-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #6b7a90;
}

.clients-empty i {
    font-size: 1.6rem;
    color: #b7c0cc;
    margin-bottom: 0.5rem;
    display: block;
}

.sync-status-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid transparent;
}

.sync-status-card__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sync-status-card__title {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.sync-status-card__text {
    color: #647489;
    font-size: 0.94rem;
}

.sync-status-card.is-linked {
    background: #edf8f1;
    border-color: #cfe8d8;
}

.sync-status-card.is-linked .sync-status-card__icon {
    background: #d8f0e1;
    color: #1e7a59;
}

.sync-status-card.is-pending {
    background: #fff7ec;
    border-color: #f0dcc0;
}

.sync-status-card.is-pending .sync-status-card__icon {
    background: #ffe7c8;
    color: #b96b14;
}

.sync-meta dt {
    margin-top: 1rem;
    color: #7a889b;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sync-meta dd {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--v3-navy);
}

.imat-lookup-card {
    padding: 1.2rem;
    border: 1px solid rgba(39, 71, 118, 0.12);
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #fbfdff 0%, #f3f8ff 100%);
}

.imat-lookup-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.vehicle-form-section {
    border: 1px solid rgba(20, 42, 79, 0.1);
    border-radius: 1rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 249, 253, 0.95));
}

.vehicle-step-panel {
    display: none;
}

.vehicle-step-panel.is-active {
    display: block;
    animation: vehicleStepFade 240ms ease;
}

.vehicle-form-section__title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10rem;
    margin-bottom: 1rem;
    padding: 0.55rem 1rem;
    border-radius: 0.85rem;
    background: rgba(20, 42, 79, 0.08);
    color: var(--v3-navy);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.vehicle-form-section__title.is-admin {
    background: rgba(212, 132, 50, 0.18);
    color: #885512;
}

.vehicle-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vehicle-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.35rem 0.4rem;
    border-radius: 0.85rem;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.vehicle-timeline__item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.15rem;
    top: 2.25rem;
    bottom: -1rem;
    width: 2px;
    background: rgba(20, 42, 79, 0.12);
}

.vehicle-timeline__marker {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 42, 79, 0.08);
    color: #73819d;
    font-size: 1rem;
    box-shadow: inset 0 0 0 1px rgba(20, 42, 79, 0.08);
}

.vehicle-timeline__item:hover {
    background: rgba(20, 42, 79, 0.04);
}

.vehicle-timeline__item.is-done .vehicle-timeline__marker {
    background: rgba(30, 140, 91, 0.14);
    color: #1e8c5b;
    box-shadow: inset 0 0 0 1px rgba(30, 140, 91, 0.14);
}

.vehicle-timeline__item.is-current {
    background: rgba(39, 71, 118, 0.08);
    transform: translateX(2px);
}

.vehicle-timeline__item.is-current .vehicle-timeline__marker {
    background: rgba(39, 71, 118, 0.14);
    color: #274776;
}

.vehicle-timeline__item.is-locked {
    opacity: 0.55;
}

.vehicle-timeline__title {
    font-weight: 700;
    color: var(--v3-navy);
    margin-bottom: 0.15rem;
}

.vehicle-timeline__text {
    color: #647489;
    line-height: 1.55;
    font-size: 0.95rem;
}

.vehicle-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.vehicle-upload-dropzone {
    border: 2px dashed rgba(39, 71, 118, 0.24);
    border-radius: 1.2rem;
    padding: 2rem 1.25rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.95), rgba(240, 246, 253, 0.95));
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.vehicle-upload-dropzone:hover,
.vehicle-upload-dropzone.is-dragover {
    border-color: #2c5a92;
    background: linear-gradient(180deg, rgba(241, 247, 255, 0.98), rgba(231, 241, 252, 0.98));
    transform: translateY(-1px);
}

.vehicle-upload-dropzone__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(39, 71, 118, 0.1);
    color: #274776;
    font-size: 1.5rem;
}

.vehicle-upload-dropzone__title {
    font-weight: 700;
    color: var(--v3-navy);
    margin-bottom: 0.35rem;
}

.vehicle-upload-dropzone__text,
.vehicle-upload-dropzone__hint,
.vehicle-photo-sortable-head__text,
.vehicle-photo-card__drag,
.vehicle-photo-card__caption {
    color: #647489;
    font-size: 0.94rem;
}

.vehicle-upload-dropzone__hint {
    margin-top: 0.45rem;
}

.vehicle-photo-card {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(20, 42, 79, 0.08);
    background: #fff;
    box-shadow: 0 10px 24px rgba(20, 34, 58, 0.06);
}

.vehicle-photo-card--pending {
    border-style: dashed;
}

.vehicle-photo-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.vehicle-photo-card__body {
    padding: 0.85rem;
    border-top: 1px solid rgba(20, 42, 79, 0.08);
}

.vehicle-photo-card__order-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(39, 71, 118, 0.08);
    color: #274776;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.vehicle-photo-sortable__item {
    cursor: move;
}

.vehicle-photo-sortable-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.vehicle-photo-sortable-head__title {
    font-weight: 700;
    color: var(--v3-navy);
    margin-bottom: 0.15rem;
}

.vehicle-photo-card__drag {
    margin-top: 0.35rem;
}

.timeline-range-wrap {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(245, 248, 252, 0.95);
    border: 1px solid rgba(20, 42, 79, 0.08);
}

.timeline-range-wrap .form-range {
    margin-bottom: 0.35rem;
}

.timeline-range-label {
    font-weight: 700;
    color: var(--v3-navy);
}

.step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.police-modal .modal-content,
.police-modal {
    border-radius: 1.5rem;
}

.police-modal .modal-dialog {
    max-width: 1320px;
}

.police-modal .modal-content {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(212, 132, 50, 0.14), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 249, 252, 0.99) 100%);
}

.police-modal__header {
    padding: 1.65rem 2rem 1.1rem;
    border-bottom: 1px solid rgba(216, 221, 229, 0.9);
    background:
        radial-gradient(circle at top right, rgba(212, 132, 50, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 241, 233, 0.97) 100%);
}

.police-modal__body {
    padding: 1.5rem 2rem 2rem;
    background:
        linear-gradient(180deg, rgba(251, 252, 254, 0.9) 0%, rgba(242, 246, 250, 0.98) 100%);
}

.police-modal__title-wrap {
    max-width: 42rem;
}

.police-modal__sidebar {
    padding: 1.15rem;
    border: 1px solid rgba(216, 221, 229, 0.9);
    border-radius: 1.35rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    box-shadow: 0 18px 38px rgba(20, 34, 58, 0.08);
}

.police-modal__sidebar-head,
.police-form-shell__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.police-modal__sidebar-title,
.police-form-panel__title {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8a612f;
    font-weight: 700;
}

.police-searchbar .form-control {
    background: #fff;
    border-radius: 1rem;
    min-height: 54px;
    padding-inline: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.police-vehicle-list {
    display: block;
    max-height: 32rem;
    overflow: auto;
    padding-right: 0.2rem;
    border-top: 1px solid rgba(216, 221, 229, 0.85);
}

.police-vehicle-card {
    position: relative;
    padding: 0.9rem 0.95rem;
    border: 1px solid rgba(216, 221, 229, 0.95);
    border-radius: 1.3rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(251, 252, 253, 1) 100%);
    box-shadow: 0 10px 22px rgba(20, 34, 58, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.police-vehicle-card:hover,
.police-vehicle-card.border-primary {
    transform: translateY(-1px);
    border-color: rgba(212, 132, 50, 0.45);
    box-shadow: 0 18px 34px rgba(20, 34, 58, 0.1);
}

.police-vehicle-row {
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(216, 221, 229, 0.85);
}

.police-vehicle-row[data-eligible-index-item][hidden] {
    display: none !important;
}

.police-vehicle-row__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.police-vehicle-row__identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.police-vehicle-row__side {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.police-vehicle-card__thumb,
.police-vehicle-card__thumb img,
.police-vehicle-card__thumb-placeholder {
    width: 84px;
    height: 62px;
    border-radius: 1rem;
}

.police-vehicle-card__thumb img {
    display: block;
    object-fit: cover;
}

.police-vehicle-card__thumb-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef3f8 0%, #dce5ef 100%);
    color: #5f738d;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.police-vehicle-card__immat {
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--v3-navy);
}

.police-vehicle-card__model {
    color: #607184;
    margin-top: 0.18rem;
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.police-vehicle-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.3rem;
    color: #77879a;
    font-size: 0.8rem;
}

.police-vehicle-card__button {
    margin-top: 0;
    border-radius: 0.95rem;
    padding-inline: 0.95rem;
    min-height: 40px;
    font-size: 0.88rem;
    font-weight: 700;
    min-width: 108px;
}

.police-vehicle-card__status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(33, 40, 48, 0.08);
    color: #2b3d53;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}

.police-form-shell {
    padding: 1.2rem;
    border: 1px solid rgba(216, 221, 229, 0.9);
    border-radius: 1.35rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 252, 0.96) 100%);
    box-shadow: 0 18px 38px rgba(20, 34, 58, 0.08);
}

.police-selected-vehicle {
    min-width: 16rem;
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 32%),
        linear-gradient(135deg, #17304d 0%, #2f4f75 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(24, 48, 77, 0.26);
}

.police-selected-vehicle__label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.police-selected-vehicle__meta {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
}

.police-form-panel {
    padding: 1rem 1rem 0.45rem;
    margin-top: 1rem;
    border: 1px solid rgba(216, 221, 229, 0.92);
    border-radius: 1.15rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.police-form-panel__title {
    margin-bottom: 0.85rem;
}

.police-form-shell .input {
    margin-bottom: 0.95rem;
}

.police-form-shell label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    color: #20324a;
}

.police-form-shell .form-control,
.police-form-shell .form-select,
.police-form-shell input[type="text"],
.police-form-shell input[type="number"],
.police-form-shell input[type="datetime-local"],
.police-form-shell select,
.police-form-shell textarea {
    width: 100%;
    min-height: 52px;
    border-radius: 1rem;
    border: 1px solid rgba(205, 213, 223, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.8),
        0 8px 18px rgba(20, 34, 58, 0.04);
}

.police-form-shell textarea {
    min-height: 118px;
    resize: vertical;
}

.police-form-shell .form-control:focus,
.police-form-shell .form-select:focus,
.police-form-shell input:focus,
.police-form-shell select:focus,
.police-form-shell textarea:focus {
    border-color: rgba(212, 132, 50, 0.65);
    box-shadow:
        0 0 0 0.2rem rgba(212, 132, 50, 0.12),
        0 10px 20px rgba(20, 34, 58, 0.06);
}

.police-form-shell .error-message {
    display: inline-flex;
    align-items: center;
    margin-top: 0.45rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(205, 36, 36, 0.08);
    color: #bc2c2c;
    font-size: 0.8rem;
    font-weight: 600;
}

.police-form-shell .input.error input,
.police-form-shell .input.error select,
.police-form-shell .input.error textarea {
    border-color: rgba(205, 36, 36, 0.35);
    box-shadow:
        0 0 0 0.18rem rgba(205, 36, 36, 0.08),
        0 10px 18px rgba(20, 34, 58, 0.04);
}

.vehicles-stock-page {
    display: grid;
    gap: 1.25rem;
}

.vehicles-stock-hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    padding: 1.6rem 1.8rem;
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(212, 132, 50, 0.24), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 241, 233, 0.98) 100%);
    box-shadow: 0 20px 44px rgba(20, 34, 58, 0.08);
}

.vehicles-stock-hero__title {
    margin: 0.35rem 0 0.5rem;
    font-size: clamp(1.9rem, 2.6vw, 2.9rem);
    line-height: 1.02;
}

.vehicles-stock-hero__text {
    max-width: 56ch;
    color: #617185;
    margin-bottom: 0;
}

.vehicles-stock-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem 1.3rem;
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(216, 221, 229, 0.92);
    box-shadow: 0 16px 34px rgba(20, 34, 58, 0.06);
}

.vehicles-stock-toolbar__filters {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(170px, 220px));
    gap: 0.85rem;
}

.vehicles-stock-toolbar__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    color: #6a7a8d;
    font-size: 0.9rem;
    white-space: nowrap;
}

.vehicles-stock-list {
    display: grid;
    gap: 0.7rem;
}

.vehicles-stock-row {
    position: relative;
    display: grid;
    gap: 0.25rem;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    border: 1px solid rgba(194, 204, 216, 0.95);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(244, 247, 251, 0.98) 0%, rgba(236, 241, 246, 0.98) 100%);
    box-shadow: 0 10px 20px rgba(20, 34, 58, 0.06);
}

.vehicles-stock-row::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(29, 40, 55, 0);
    transition: background 0.18s ease;
    pointer-events: none;
}

.vehicles-stock-row:focus-visible {
    outline: 0;
    border-color: rgba(212, 132, 50, 0.45);
    box-shadow: 0 0 0 3px rgba(212, 132, 50, 0.12);
}

.vehicles-stock-row:hover {
    background: linear-gradient(180deg, rgba(240, 244, 249, 0.98) 0%, rgba(232, 238, 244, 0.98) 100%);
    box-shadow: 0 14px 26px rgba(20, 34, 58, 0.08);
}

.vehicles-stock-row.is-active {
    background: linear-gradient(180deg, rgba(222, 228, 236, 0.98) 0%, rgba(212, 220, 229, 0.98) 100%);
    border-color: rgba(114, 132, 154, 0.45);
    box-shadow: 0 16px 28px rgba(20, 34, 58, 0.1);
}

.vehicles-stock-row.is-active::after {
    background: rgba(29, 40, 55, 0.34);
}

.vehicles-stock-row__media {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0.8rem;
}

.vehicles-stock-row__photo {
    margin-left: -0.05rem;
}

.vehicles-stock-row__photo img,
.vehicles-stock-row__placeholder {
    width: 100%;
    height: 165px;
    border-radius: 0.9rem;
    object-fit: cover;
}

.vehicles-stock-row__placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eff3f8 0%, #dbe3ed 100%);
    color: #65768c;
    font-weight: 600;
}

.vehicles-stock-row__identity {
    min-width: 0;
}

.vehicles-stock-row__head {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: flex-start;
    margin-bottom: 0.3rem;
}

.vehicles-stock-row__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0;
}

.vehicles-stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    background: rgba(15, 28, 46, 0.06);
    color: #42556d;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.vehicles-stock-badge--immat {
    background: rgba(212, 132, 50, 0.12);
    color: #a5621d;
}

.vehicles-stock-badge--neutral {
    background: rgba(35, 51, 72, 0.08);
    color: #4b5d73;
}

.vehicles-stock-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.22rem 0.56rem;
    border-radius: 999px;
    background: #eef3f8;
    color: #31455d;
    font-size: 0.7rem;
    font-weight: 700;
}

.vehicles-stock-row__status {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.vehicles-stock-status--muted {
    background: rgba(15, 28, 46, 0.06);
    color: #65768c;
}

.vehicles-stock-row__identity h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(0.95rem, 1.05vw, 1.14rem);
    line-height: 1.2;
    white-space: normal;
}

.vehicles-stock-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem 0.7rem;
    color: #495d74;
    font-size: 0.8rem;
}

.vehicles-stock-meta-grid span {
    display: grid;
    gap: 0.08rem;
}

.vehicles-stock-meta-grid strong {
    color: var(--v3-navy);
    font-weight: 700;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vehicles-stock-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.vehicles-stock-fact {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.46rem;
    border-radius: 999px;
    background: rgba(15, 28, 46, 0.05);
    color: #53657a;
    font-size: 0.69rem;
    font-weight: 600;
}

.vehicles-stock-fact i {
    font-size: 0.9rem;
    color: #6c7c8f;
}

.vehicles-stock-fact.is-positive i {
    color: #2f9d57;
}

.vehicles-stock-fact.is-negative i {
    color: #cf4d4d;
}

.vehicles-stock-row__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-items: start;
    padding-top: 0.6rem;
    margin-top: 0.6rem;
    border-top: 1px solid rgba(216, 221, 229, 0.75);
}

.vehicles-stock-finance {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.vehicles-stock-finance__main {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.4rem;
}

.vehicles-stock-finance__metric {
    min-height: 70px;
    padding: 0.58rem 0.68rem;
    border-radius: 0.78rem;
    border: 1px solid rgba(214, 221, 229, 0.95);
    background: #fbfcfe;
}

.vehicles-stock-finance__label {
    display: block;
    margin-bottom: 0.2rem;
    color: #7d8ca1;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vehicles-stock-finance__metric strong {
    display: block;
    color: var(--v3-navy);
    font-size: 0.92rem;
    line-height: 1.05;
}

.vehicles-stock-finance__metric small {
    display: block;
    margin-top: 0.14rem;
    color: #748397;
    font-size: 0.66rem;
    font-weight: 600;
}

.vehicles-stock-finance__metric--margin.is-positive {
    border-color: rgba(47, 157, 87, 0.2);
    background: rgba(240, 251, 245, 0.85);
}

.vehicles-stock-finance__metric--margin.is-positive strong {
    color: #1f7a43;
}

.vehicles-stock-finance__metric--margin.is-negative {
    border-color: rgba(207, 77, 77, 0.18);
    background: rgba(255, 246, 246, 0.92);
}

.vehicles-stock-finance__metric--margin.is-negative strong {
    color: #b33b3b;
}

.vehicles-stock-finance__aside {
    display: contents;
}

.vehicles-stock-finance__mini {
    display: grid;
    align-content: start;
    gap: 0.2rem;
    min-height: 70px;
    padding: 0.58rem 0.68rem;
    border-radius: 0.78rem;
    border: 1px solid rgba(214, 221, 229, 0.95);
    background: #f8fafc;
}

.vehicles-stock-finance__mini span {
    color: #7d8ca1;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.vehicles-stock-finance__mini strong {
    color: var(--v3-navy);
    font-size: 0.92rem;
}

.vehicles-stock-row__actions {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease;
    padding: 1.25rem;
}

.vehicles-stock-row.is-active .vehicles-stock-row__actions {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.vehicles-stock-action {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: auto;
    min-width: 190px;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(216, 221, 229, 0.95);
    background: rgba(255, 255, 255, 0.98);
    color: var(--v3-navy);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 16px 28px rgba(12, 20, 31, 0.16);
}

.vehicles-stock-action:hover {
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--v3-navy);
    box-shadow: 0 12px 24px rgba(20, 34, 58, 0.08);
}

.vehicles-stock-action__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0.95rem;
}

.vehicles-stock-action__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vehicles-stock-action__text strong {
    font-size: 0.84rem;
    line-height: 1.1;
}

.vehicles-stock-action__text small {
    color: #7b8a9c;
    font-size: 0.72rem;
}

.vehicles-stock-action--primary {
    border-color: rgba(212, 132, 50, 0.28);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 240, 230, 0.95) 100%);
}

.vehicles-stock-action--primary .vehicles-stock-action__icon {
    background: rgba(212, 132, 50, 0.14);
    color: #b56c22;
}

.vehicles-stock-action--danger {
    border-color: rgba(188, 44, 44, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 242, 242, 0.95) 100%);
    font-size: 0.82rem;
    font-weight: 700;
    justify-content: center;
    color: #a33c3c;
}

.vehicles-stock-action--danger:hover {
    color: #8f3030;
}

.vehicles-stock-action--disabled {
    border-color: rgba(173, 183, 195, 0.75);
    background: rgba(247, 249, 252, 0.96);
    color: #67798f;
    box-shadow: none;
}

.vehicles-stock-action--disabled .vehicles-stock-action__icon {
    background: rgba(103, 121, 143, 0.1);
    color: #67798f;
}

.vehicles-stock-empty {
    padding: 2rem;
    border-radius: 1.35rem;
    border: 1px dashed rgba(216, 221, 229, 0.95);
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.vehicles-stock-empty h3 {
    margin-bottom: 0.45rem;
    font-size: 1.25rem;
}

.vehicles-stock-empty p {
    margin-bottom: 0;
    color: #69798d;
}

.showroom-admin-page {
    display: grid;
    gap: 1rem;
}

.showroom-admin-head,
.showroom-filters,
.showroom-card,
.showroom-alert {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 1.5rem;
    box-shadow: 0 18px 42px rgba(18, 38, 32, 0.08);
}

.showroom-admin-head,
.showroom-filters {
    padding: 1.25rem;
}

.showroom-admin-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}

.showroom-admin-head h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.04em;
}

.showroom-admin-head__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.showroom-alert {
    padding: 1rem 1.1rem;
    background: #fff4df;
    border-color: #edd5a3;
}

.showroom-alert__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.showroom-alert__head strong {
    color: #6e4e1f;
}

.showroom-alert__head span {
    color: #8a6b3d;
    font-size: 0.92rem;
}

.showroom-alert__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.showroom-alert__item {
    padding: 0.7rem 0.8rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(138, 107, 61, 0.18);
}

.showroom-alert__item strong,
.showroom-alert__item span {
    display: block;
}

.showroom-alert__item span {
    margin-top: 0.18rem;
    font-size: 0.86rem;
    color: #6a6254;
}

.showroom-list {
    display: grid;
    gap: 0.85rem;
}

.showroom-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 220px;
    gap: 1rem;
    padding: 1rem;
}

.showroom-card__media img,
.showroom-card__placeholder {
    width: 100%;
    height: 170px;
    border-radius: 1rem;
    object-fit: cover;
}

.showroom-card__placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eff3f8 0%, #dbe3ed 100%);
    color: #65768c;
    font-weight: 700;
}

.showroom-card__eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: #72808a;
    font-weight: 700;
}

.showroom-card h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.showroom-card__subtitle {
    margin: 0 0 0.55rem;
    color: #69798d;
}

.showroom-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.showroom-card__meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 28, 46, 0.06);
    color: #42556d;
    font-size: 0.72rem;
    font-weight: 700;
}

.showroom-card__side {
    display: grid;
    align-content: space-between;
    gap: 0.75rem;
}

.showroom-card__price {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #16242d;
}

.showroom-card__warning {
    padding: 0.8rem 0.9rem;
    border-radius: 1rem;
    background: #f8ede8;
    color: #8a4b3e;
    font-size: 0.88rem;
    font-weight: 600;
}

.showroom-print-page {
    margin: 0;
    padding: 1.25rem;
    background: #eef2f5;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.showroom-print-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(16, 24, 40, 0.08);
}

.incoming-documents-list {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.incoming-document-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr) minmax(340px, 1fr);
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(18, 28, 45, 0.08);
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.incoming-document-card__main,
.incoming-document-card__match,
.incoming-document-card__actions {
    min-width: 0;
}

.incoming-document-card__head {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    align-items: flex-start;
}

.incoming-document-card__head h4 {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.incoming-document-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.incoming-document-card__meta span,
.incoming-document-card__plate {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
}

.incoming-document-card__meta span {
    background: rgba(20, 34, 58, 0.06);
    color: #4c5d73;
}

.incoming-document-card__plate {
    background: rgba(231, 179, 63, 0.2);
    color: #7b5b0e;
    white-space: nowrap;
}

.incoming-document-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.9rem;
}

.incoming-document-pill {
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    background: rgba(246, 248, 251, 0.95);
    border: 1px solid rgba(18, 28, 45, 0.06);
}

.incoming-document-pill__label,
.incoming-document-card__section-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7b8798;
}

.incoming-document-pill strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.25;
    color: #16212f;
}

.incoming-document-pill small,
.incoming-document-card__extra,
.incoming-document-card__suggestion span,
.incoming-document-card__empty {
    display: block;
    margin-top: 0.18rem;
    font-size: 0.8rem;
    color: #6d7a8c;
}

.incoming-document-card__links {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.incoming-document-card__specific {
    margin-top: 0.75rem;
    font-size: 0.83rem;
    color: #5f6f84;
    font-weight: 600;
}

.incoming-document-card__match {
    padding: 0.1rem 0;
}

.incoming-document-card__suggestion,
.incoming-document-card__empty {
    padding: 0.9rem;
    border-radius: 1rem;
    border: 1px solid rgba(18, 28, 45, 0.08);
    background: rgba(250, 251, 253, 0.95);
}

.incoming-document-card__suggestion strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.25;
    color: #172231;
}

.incoming-document-card__extra {
    margin-top: 0.7rem;
}

.incoming-document-card__actions {
    padding-left: 0.2rem;
}

.incoming-feedback {
    margin-top: 0.85rem;
    padding-top: 0.2rem;
}

.incoming-feedback__section + .incoming-feedback__section {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(18, 28, 45, 0.07);
}

.incoming-feedback__title {
    margin-bottom: 0.55rem;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6f7f92;
}

.incoming-feedback__section--identity {
    background: rgba(246, 248, 251, 0.72);
    border: 1px solid rgba(18, 28, 45, 0.06);
    border-radius: 1rem;
    padding: 0.85rem;
}

@media (max-width: 1200px) {
    .incoming-document-card {
        grid-template-columns: 1fr;
    }

    .incoming-document-card__stats {
        grid-template-columns: 1fr;
    }
}

.showroom-print-toolbar__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.showroom-print-toolbar__actions a,
.showroom-print-toolbar__actions button {
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    background: #18242e;
    color: #fff;
    text-decoration: none;
}

.showroom-print-break {
    break-after: page;
    page-break-after: always;
    height: 1px;
}

.showroom-sheet {
    max-width: 1120px;
    margin: 0 auto 1.25rem;
    padding: 1.2rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid rgba(16, 24, 40, 0.08);
}

.showroom-sheet__hero {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.showroom-sheet__media img,
.showroom-sheet__placeholder {
    width: 100%;
    height: 300px;
    border-radius: 1rem;
    object-fit: cover;
}

.showroom-sheet__placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eff3f8 0%, #dbe3ed 100%);
    color: #65768c;
    font-weight: 700;
}

.showroom-sheet__brand {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    color: #72808a;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.showroom-sheet h1 {
    margin: 0 0 0.35rem;
    font-size: 2.3rem;
    letter-spacing: -0.04em;
}

.showroom-sheet__subtitle {
    margin: 0 0 0.7rem;
    color: #69798d;
    font-size: 1.05rem;
}

.showroom-sheet__description {
    margin: 0 0 1rem;
    color: #47586d;
    line-height: 1.55;
}

.showroom-sheet__priceband {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.showroom-sheet__priceband > div {
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(16, 24, 40, 0.08);
}

.showroom-sheet__priceband span,
.showroom-sheet__spec span {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: #7d8ca1;
    font-weight: 700;
}

.showroom-sheet__priceband strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
}

.showroom-sheet__priceband small {
    display: block;
    margin-top: 0.25rem;
    color: #67798f;
}

.showroom-sheet__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.showroom-sheet__panel {
    padding: 1rem;
    border-radius: 1rem;
    background: #fbfcfe;
    border: 1px solid rgba(16, 24, 40, 0.08);
}

.showroom-sheet__panel h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.showroom-sheet__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.showroom-sheet__spec strong {
    display: block;
    margin-top: 0.15rem;
    color: #17212b;
}

.showroom-sheet__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
}

.showroom-sheet__feature {
    padding-left: 1rem;
    position: relative;
    color: #47586d;
}

.showroom-sheet__feature::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #d48432;
}

.showroom-sheet__empty {
    margin: 0;
    color: #69798d;
}

@media print {
    .showroom-print-toolbar {
        display: none;
    }

    .showroom-print-page {
        padding: 0;
        background: #fff;
    }

    .showroom-sheet {
        box-shadow: none;
        border: 0;
        margin: 0;
        max-width: none;
    }
}

@keyframes vehicleStepFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .adminlte-wrapper {
        grid-template-columns: 1fr;
    }

    .adminlte-sidebar {
        min-height: auto;
    }

    .adminlte-topbar {
        position: static;
        padding: 1rem;
        align-items: flex-start;
        flex-direction: column;
    }

    .adminlte-content {
        padding: 1rem;
    }

    .clients-header,
    .clients-panel__bar {
        flex-direction: column;
        align-items: stretch;
    }

    .clients-header__actions {
        width: 100%;
    }

    .clients-panel__counter {
        text-align: left;
    }

    .clients-table thead th,
    .clients-table tbody td {
        padding-inline: 0.85rem;
    }

    .police-modal__body {
        padding: 1rem;
    }

    .police-modal__sidebar-head,
    .police-form-shell__head {
        flex-direction: column;
    }

    .police-selected-vehicle {
        min-width: 0;
        width: 100%;
    }

    .police-vehicle-list {
        max-height: none;
    }

    .police-vehicle-row__main {
        flex-direction: column;
        align-items: flex-start;
    }

    .police-vehicle-row__side {
        width: 100%;
        justify-content: space-between;
    }

    .vehicles-stock-hero,
    .vehicles-stock-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .vehicles-stock-toolbar__filters {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .vehicles-stock-toolbar__meta {
        align-items: flex-start;
    }

    .showroom-admin-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .showroom-card {
        grid-template-columns: 1fr;
    }

    .showroom-alert__list,
    .showroom-sheet__hero,
    .showroom-sheet__content,
    .showroom-sheet__priceband,
    .showroom-sheet__specs,
    .showroom-sheet__features {
        grid-template-columns: 1fr;
    }

    .vehicles-stock-row__media {
        grid-template-columns: 1fr;
    }

    .vehicles-stock-row__photo img,
    .vehicles-stock-row__placeholder {
        height: 220px;
    }

    .vehicles-stock-row__body {
        grid-template-columns: 1fr;
    }

    .vehicles-stock-row__head {
        flex-direction: column;
    }

    .vehicles-stock-row__status {
        justify-content: flex-start;
    }

    .vehicles-stock-finance {
        grid-template-columns: 1fr;
    }

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

    .vehicles-stock-row__badges,
    .vehicles-stock-facts {
        flex-wrap: wrap;
        white-space: normal;
    }

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

@media (max-width: 767.98px) {
    .vehicles-stock-hero {
        padding: 1.25rem;
    }

    .showroom-filters,
    .showroom-admin-head,
    .showroom-sheet {
        padding: 1rem;
    }

    .vehicles-stock-summary .col-md-3 {
        width: 100%;
    }

    .vehicles-stock-row {
        padding: 0.85rem;
        gap: 0.85rem;
    }

    .vehicles-stock-row__photo img,
    .vehicles-stock-row__placeholder {
        height: 180px;
    }

    .vehicles-stock-row__body {
        grid-template-columns: 1fr;
    }

    .vehicles-stock-meta-grid {
        grid-template-columns: 1fr;
    }

    .vehicles-stock-finance__main {
        grid-template-columns: 1fr;
    }

    .vehicles-stock-row__actions {
        flex-direction: column;
        align-items: center;
    }

    .vehicles-stock-action {
        width: 100%;
        min-width: 0;
        max-width: 320px;
    }
}
