/* "Mașinile mele" v2 (index2.php) - list rendered by assets/js/masini-v2.js */

.ev2,
.ev2-sheet,
.ev2-popover {
    --ev2-font: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ev2-panel: #ffffff;
    --ev2-card: #ffffff;
    --ev2-border: #e9edf4;
    --ev2-text: #0f172a;
    --ev2-text-2: #334155;
    --ev2-muted: #64748b;
    --ev2-faint: #94a3b8;
    --ev2-soft: #f1f4f9;
    --ev2-soft-2: #e6ebf3;
    --ev2-accent: #ec4320;
    --ev2-accent-2: #f6582a;
    --ev2-nav: #3d4a68;
    --ev2-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 3px 12px rgba(31, 58, 110, .06);
    --ev2-shadow-hover: 0 8px 22px rgba(31, 58, 110, .11);
    --ev2-ok-bg: #c9f7cd;
    --ev2-ok-ic: #16a34a;
    --ev2-warn-bg: #fdf0b4;
    --ev2-warn-ic: #c2410c;
    --ev2-exp-bg: #fde0e0;
    --ev2-exp-fg: #dc2626;
    --ev2-missing-bg: #e4e8ef;
    --ev2-missing-fg: #334155;
    --ev2-na-bg: #e6eaf2;
    --ev2-na-fg: #475569;
    --ev2-fix-bg: #ffedd5;
    --ev2-fix-fg: #c2410c;
    --ev2-off-bg: #f6efe1;
    --ev2-off-fg: #92400e;
    --ev2-year-bg: #e2effe;
    --ev2-year-fg: #1d5fd0;
    /* Solid tile fills with white text, like the classic table */
    --ev2-tile-ok: #4fa13a;
    --ev2-tile-warn: #ec8209;
    --ev2-tile-exp: #e02d2d;
    --ev2-tile-na: #6c757d;
    --ev2-tile-fix: #d57600;
    --ev2-tile-off: #c47406;
    --tile-w: 96px;
    --tile-h: 88px;
    --photo-w: 128px;
    --photo-h: 88px;
    font-family: var(--ev2-font);
    color: var(--ev2-text);
    -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] .ev2,
[data-theme="dark"] .ev2-sheet,
[data-theme="dark"] .ev2-popover {
    --ev2-panel: #262b36;
    --ev2-card: #262b36;
    --ev2-nav: #b9c0cc;
    --ev2-row-border: #343a47;
    --ev2-border: #343a47;
    --ev2-text: #f1f5f9;
    --ev2-text-2: #e2e8f0;
    --ev2-muted: #a3adbd;
    --ev2-faint: #7c8798;
    --ev2-soft: #313745;
    --ev2-soft-2: #3a4150;
    --ev2-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    --ev2-shadow-hover: 0 8px 22px rgba(0, 0, 0, .45);
    --ev2-ok-bg: rgba(34, 197, 94, .22);
    --ev2-ok-ic: #4ade80;
    --ev2-warn-bg: rgba(251, 191, 36, .28);
    --ev2-warn-ic: #fbbf24;
    --ev2-exp-bg: rgba(239, 68, 68, .22);
    --ev2-exp-fg: #f87171;
    --ev2-missing-bg: #3a4150;
    --ev2-missing-fg: #e2e8f0;
    --ev2-na-bg: #394150;
    --ev2-na-fg: #cbd5e1;
    --ev2-fix-bg: rgba(249, 115, 22, .22);
    --ev2-fix-fg: #fdba74;
    --ev2-off-bg: rgba(217, 119, 6, .18);
    --ev2-off-fg: #fcd34d;
    --ev2-year-bg: rgba(99, 132, 255, .18);
    --ev2-year-fg: #a5b8ff;
    --ev2-tile-ok: #3d8a2b;
    --ev2-tile-warn: #c86e08;
    --ev2-tile-exp: #c42626;
    --ev2-tile-na: #4f5763;
    --ev2-tile-fix: #b56405;
    --ev2-tile-off: #a66205;
}

.ev2 [hidden],
.ev2-sheet [hidden] {
    display: none !important;
}

.ev2 *,
.ev2-sheet *,
.ev2-popover * {
    box-sizing: border-box;
}

.ev2 button,
.ev2-sheet button,
.ev2-popover button {
    font-family: inherit;
}

/* ---------- Panel + header ---------- */

.ev2 {
    background: var(--ev2-panel);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 18px rgba(31, 58, 110, .05);
    padding: 22px 22px 22px;
    margin-bottom: 0;
}

.ev2-head {
    padding: 0;
    margin-bottom: 14px;
}

.ev2-head-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ev2-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    font-family: var(--ev2-font);
    font-size: 27px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ev2-text);
}

.ev2-count {
    display: inline-flex;
    align-items: baseline;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e9eef7;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    color: #39445e;
    font-variant-numeric: tabular-nums;
}

.ev2-count .car-count {
    color: inherit;
}

[data-theme="dark"] .ev2-count {
    background: var(--ev2-soft);
    color: var(--ev2-muted);
}

.ev2-sub {
    margin: 6px 0 0;
    font-size: 15px;
    color: var(--ev2-muted);
}

.ev2-pay {
    position: relative;
    flex: none;
}

.ev2-pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 13px;
    padding: 14px 22px;
    background: linear-gradient(135deg, var(--ev2-accent-2) 0%, var(--ev2-accent) 100%);
    color: #fff;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(229, 57, 53, .32), inset 0 1px 0 rgba(255, 255, 255, .18);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.ev2-pay-btn:hover,
.ev2-pay-btn:focus-visible {
    filter: brightness(1.05);
    box-shadow: 0 10px 22px rgba(229, 57, 53, .4), inset 0 1px 0 rgba(255, 255, 255, .18);
    outline: none;
}

.ev2-pay-btn:active {
    transform: translateY(1px) scale(.99);
}

.ev2-pay-btn .fa-plus {
    font-size: 18px;
}

.ev2-pay-btn .fa-chevron-down {
    font-size: 12px;
    transition: transform .2s ease;
}

.ev2-pay.open .ev2-pay-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.ev2-pay .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 220px;
    margin-top: 8px;
    padding: 6px;
    border: 1px solid var(--ev2-border);
    border-radius: 14px;
    background: var(--ev2-card);
    box-shadow: 0 16px 40px rgba(16, 24, 40, .16);
}

.ev2-pay .dropdown-menu > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ev2-text);
}

.ev2-pay .dropdown-menu > li > a i {
    width: 18px;
    text-align: center;
    color: var(--ev2-accent);
}

.ev2-pay .dropdown-menu > li > a:hover,
.ev2-pay .dropdown-menu > li > a:focus {
    background: var(--ev2-soft);
    color: var(--ev2-text);
}

.ev2-notices {
    margin-top: 12px;
}

.ev2-notices p {
    margin: 0 0 6px;
    font-size: 14px;
}

/* Search + sort */
.ev2-tools {
    display: flex;
    gap: 12px;
    margin: 0 0 14px;
}

.ev2-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.ev2-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ev2-muted);
    font-size: 14px;
}

.ev2-search input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 42px;
    border: 1px solid var(--ev2-border);
    border-radius: 12px;
    background: var(--ev2-card);
    color: var(--ev2-text);
    font-family: var(--ev2-font);
    font-size: 14.5px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ev2-search input::placeholder {
    color: #8792a8;
}

.ev2-search input:focus {
    outline: none;
    border-color: rgba(236, 67, 32, .5);
    box-shadow: 0 0 0 4px rgba(236, 67, 32, .12);
}

.ev2-order {
    position: relative;
    flex: none;
}

.ev2-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--ev2-border);
    border-radius: 12px;
    background: var(--ev2-card);
    color: var(--ev2-text-2);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.ev2-order-ic {
    width: 17px;
    height: 17px;
    color: var(--ev2-nav);
}

.ev2-order-btn .fa-chevron-down {
    font-size: 11px;
    color: var(--ev2-muted);
    transition: transform .2s ease;
}

.ev2-order.is-open .ev2-order-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.ev2-order.is-custom .ev2-order-btn {
    border-color: #f9c9b8;
    color: var(--ev2-accent);
}

.ev2-order.is-custom .ev2-order-ic {
    color: var(--ev2-accent);
}

@media (hover: hover) {
    .ev2-order-btn:hover {
        background: var(--ev2-soft);
    }
}

.ev2-order-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 67, 32, .35);
}

.ev2-order-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 230px;
    padding: 6px;
    border: 1px solid var(--ev2-border);
    border-radius: 14px;
    background: var(--ev2-card);
    box-shadow: 0 16px 40px rgba(16, 24, 40, .16);
}

.ev2-order-menu button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 34px 10px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ev2-text);
    font-size: 14.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.ev2-order-menu button:hover,
.ev2-order-menu button:focus-visible {
    background: var(--ev2-soft);
    outline: none;
}

.ev2-order-menu button[aria-checked="true"] {
    color: var(--ev2-accent);
}

.ev2-order-menu button[aria-checked="true"]::after {
    content: "\f00c";
    position: absolute;
    right: 12px;
    font-family: "Font Awesome 7 Free";
    font-size: 13px;
    font-weight: 900;
}

.ev2-order-group {
    margin: 6px 6px 2px;
    padding: 8px 6px 2px;
    border-top: 1px solid var(--ev2-border);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ev2-muted);
}

/* ---------- Rows ---------- */

.ev2-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ev2-car {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 38px;
    align-items: center;
    gap: 14px;
    padding: 8px 14px 8px 8px;
    background: var(--ev2-card);
    border: 1px solid var(--ev2-row-border, #edf1f7);
    border-radius: 14px;
    box-shadow: var(--ev2-shadow);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease, opacity .3s ease, height .3s ease, padding .3s ease, margin .3s ease;
}

.ev2-car:hover {
    box-shadow: var(--ev2-shadow-hover);
}

.ev2-car.is-new {
    animation: ev2-in .45s cubic-bezier(.2, .8, .2, 1) both;
}

.ev2-car.is-updated {
    animation: ev2-flash 1.1s ease;
}

.ev2-car.is-leaving {
    opacity: 0;
    transform: scale(.98);
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: -10px;
    border-width: 0;
}

@keyframes ev2-in {
    from { opacity: 0; transform: translateY(-8px) scale(.99); }
    to { opacity: 1; transform: none; }
}

@keyframes ev2-flash {
    0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0), var(--ev2-shadow); }
    25% { box-shadow: 0 0 0 3px rgba(229, 57, 53, .18), var(--ev2-shadow); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0), var(--ev2-shadow); }
}

.ev2-ident {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    border-radius: 12px;
    cursor: pointer;
    outline: none;
}

.ev2-ident:focus-visible {
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .35);
}

.is-blocked .ev2-ident {
    cursor: default;
}

.ev2-photo {
    position: relative;
    flex: none;
    width: var(--photo-w);
    height: var(--photo-h);
    border-radius: 11px;
    background: radial-gradient(120% 90% at 50% 100%, #e9edf3 0%, #f5f7fa 60%, #f8f9fb 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .ev2-photo {
    background: radial-gradient(120% 90% at 50% 100%, #3a404c 0%, #313642 70%);
}

.ev2-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px 6px 2px;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.ev2-photo.is-own img,
.ev2-sheet-ic.is-photo img.is-own {
    object-fit: cover;
    padding: 0;
}

.ev2-photo img.is-swap {
    animation: ev2-photo-in .45s ease-out;
}

@keyframes ev2-photo-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ev2-ident:hover .ev2-photo img {
    transform: scale(1.04);
}

.ev2-photo > i {
    display: none;
    font-size: 30px;
    color: var(--ev2-faint);
}

.ev2-photo.is-noimg img,
.ev2-photo.is-pending img {
    display: none;
}

.ev2-photo.is-pending > i {
    display: block;
    opacity: .6;
}

.ev2-photo.is-pending::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: ev2-photo-wait 1.4s ease-in-out infinite;
}

[data-theme="dark"] .ev2-photo.is-pending::after {
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .08) 50%, transparent 70%);
}

@keyframes ev2-photo-wait {
    to { transform: translateX(100%); }
}

.ev2-photo.is-noimg > i {
    display: block;
}

.is-blocked .ev2-photo img {
    filter: grayscale(1);
    opacity: .55;
}

.ev2-id {
    min-width: 0;
}

.ev2-plate {
    font-size: 19.5px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .01em;
    color: var(--ev2-text);
    white-space: nowrap;
}

.ev2-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 5px;
}

.ev2-make {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--ev2-muted);
    text-transform: uppercase;
}

.ev2-year {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 7px;
    background: var(--ev2-year-bg);
    color: var(--ev2-year-fg);
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ev2-reactivate {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 0;
    border-radius: 9px;
    background: #16a34a;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- Document tiles ---------- */

/* The columns form one joined block; each label sits inside its tile */
.ev2-docs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--tile-w);
    align-self: stretch;
    border-radius: 11px;
    overflow: hidden;
    isolation: isolate;
}

.ev2-doc {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    transition: opacity .25s ease, filter .25s ease;
}

.ev2-doc-label {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    z-index: 1;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.ev2-doc:has(.ev2-tile.is-wait, .ev2-tile.is-locked, .ev2-tile.is-missing) .ev2-doc-label {
    color: var(--ev2-muted);
}

.ev2-tile {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 100%;
    min-height: var(--tile-h);
    padding: 24px 3px 7px;
    border: 0;
    border-radius: 0;
    background: var(--ev2-na-bg);
    color: var(--ev2-text);
    text-align: center;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    transition: box-shadow .2s ease, filter .2s ease;
}

/* Hairline between neighbouring columns */
.ev2-doc + .ev2-doc .ev2-tile::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, .22);
    pointer-events: none;
}

.ev2-doc + .ev2-doc .ev2-tile.is-wait::before,
.ev2-doc + .ev2-doc .ev2-tile.is-locked::before,
.ev2-doc + .ev2-doc .ev2-tile.is-missing::before {
    background: rgba(100, 116, 139, .2);
}

button.ev2-tile,
.ev2-tile[role="button"] {
    cursor: pointer;
}

@media (hover: hover) {
    button.ev2-tile:hover,
    .ev2-tile[role="button"]:hover {
        filter: brightness(1.07);
    }
}

button.ev2-tile:active,
.ev2-tile[role="button"]:active:not(:has(.ev2-file:active)) {
    filter: brightness(.93);
}

button.ev2-tile:focus-visible,
.ev2-tile[role="button"]:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .75);
}

/* "PDF" bar along the bottom of the tile (RCA policy, rovinieta proof) */

.ev2-tile {
    --file-h: 21px;
}

.ev2-tile:has(.ev2-file) {
    padding-bottom: calc(var(--file-h) + 5px);
}

.ev2-file {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--file-h);
    background: #1e40af;
    color: #fff !important;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease;
}

@media (hover: hover) {
    .ev2-file:hover {
        background: #1d4ed8;
    }
}

.ev2-file:active {
    background: #172f80;
}

.ev2-file:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px #fff;
}

.ev2-num {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.ev2-num-sm {
    font-size: 18px;
}

.ev2-unit {
    font-size: 13px;
    font-weight: 600;
}

.ev2-tile-txt {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
}

.ev2-tile-txt-sm {
    max-width: 100%;
    font-size: 11.5px;
    line-height: 1.15;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.ev2-ic {
    margin-top: 5px;
    font-size: 15px;
}

.ev2-tile.is-ok,
.ev2-tile.is-warn,
.ev2-tile.is-crit,
.ev2-tile.is-exp,
.ev2-tile.is-na,
.ev2-tile.is-fix,
.ev2-tile.is-off {
    color: #fff;
}

.ev2-tile.is-ok .ev2-ic,
.ev2-tile.is-warn .ev2-ic,
.ev2-tile.is-crit .ev2-ic,
.ev2-tile.is-exp .ev2-ic,
.ev2-tile.is-na .ev2-ic,
.ev2-tile.is-fix .ev2-ic,
.ev2-tile.is-off .ev2-ic {
    color: rgba(255, 255, 255, .88);
}

.ev2-tile.is-ok { background: var(--ev2-tile-ok); }

.ev2-tile.is-warn { background: var(--ev2-tile-warn); }

.ev2-tile.is-crit,
.ev2-tile.is-exp {
    background: var(--ev2-tile-exp);
}

.ev2-tile.is-exp .ev2-tile-txt {
    font-size: 13px;
}

.ev2-tile.is-exp .ev2-unit {
    font-size: 12.5px;
    font-weight: 700;
}

.ev2-tile.is-blink {
    animation: ev2-blink 1s linear infinite;
}

@keyframes ev2-blink {
    50% { opacity: .25; }
}

.ev2-tile.is-missing {
    background: var(--ev2-missing-bg);
    color: var(--ev2-missing-fg);
}

.ev2-tile.is-missing .ev2-ic {
    color: var(--ev2-muted);
    font-size: 17px;
}

.ev2-tile.is-na {
    background: var(--ev2-tile-na);
}

.ev2-na-txt {
    font-size: 11.5px;
    font-weight: 700;
}

.ev2-na-txt .ev2-short {
    display: none;
}

.ev2-tile.is-na .ev2-ic {
    font-size: 17px;
}

.ev2-tile.is-wait {
    background: var(--ev2-soft);
    color: var(--ev2-muted);
}

.ev2-tile.is-wait .ev2-unit {
    margin-top: 6px;
    font-size: 11.5px;
}

.ev2-spin {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(100, 116, 139, .25);
    border-top-color: var(--ev2-accent);
    animation: ev2-spin .8s linear infinite;
}

@keyframes ev2-spin {
    to { transform: rotate(360deg); }
}

.ev2-tile.is-locked {
    background: var(--ev2-soft);
    color: var(--ev2-muted);
}

.ev2-blurred {
    filter: blur(4px);
    user-select: none;
}

.ev2-tile.is-locked .ev2-ic {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: var(--ev2-text-2);
}

.ev2-tile.is-dark {
    background: #1f2937;
    color: #fff;
}

.ev2-tile.is-dark .ev2-ic {
    color: #fca5a5;
}

.ev2-tile.is-fix {
    background: var(--ev2-tile-fix);
}

.ev2-tile.is-off {
    background: var(--ev2-tile-off);
}

/* Focused column (ITP / Rovinietă / RCA / Licență tab) */
.ev2[data-focus="rar"] .ev2-doc:not([data-doc="rar"]),
.ev2[data-focus="rov"] .ev2-doc:not([data-doc="rov"]),
.ev2[data-focus="aid"] .ev2-doc:not([data-doc="aid"]),
.ev2[data-focus="arr"] .ev2-doc:not([data-doc="arr"]) {
    opacity: .38;
    filter: saturate(.6);
}

.ev2[data-focus="rar"] .ev2-doc[data-doc="rar"] .ev2-doc-label,
.ev2[data-focus="rov"] .ev2-doc[data-doc="rov"] .ev2-doc-label,
.ev2[data-focus="aid"] .ev2-doc[data-doc="aid"] .ev2-doc-label,
.ev2[data-focus="arr"] .ev2-doc[data-doc="arr"] .ev2-doc-label {
    font-weight: 800;
}

/* ---------- Kebab ---------- */

.ev2-kebab {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--ev2-soft);
    color: var(--ev2-text-2);
    font-size: 16px;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease;
}

.ev2-kebab:hover,
.ev2-kebab[aria-expanded="true"] {
    background: var(--ev2-soft-2);
}

.ev2-kebab:active {
    transform: scale(.94);
}

.ev2-kebab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .35);
}

/* ---------- Empty / no results / notifications ---------- */

.ev2-empty,
.ev2-noresults {
    padding: 34px 20px;
    border-radius: 16px;
    background: var(--ev2-card);
    border: 1px dashed var(--ev2-border);
    text-align: center;
    color: var(--ev2-muted);
}

.ev2-noresults {
    margin-top: 10px;
    padding: 22px;
}

.ev2-empty > i {
    font-size: 34px;
    color: var(--ev2-faint);
}

.ev2-empty h3 {
    margin: 12px 0 6px;
    font-family: var(--ev2-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--ev2-text);
}

.ev2-empty p {
    margin: 0 0 16px;
}

.ev2-empty a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ev2-accent-2), var(--ev2-accent));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.ev2-notify {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--ev2-card);
    border: 1px solid var(--ev2-border);
    color: var(--ev2-text);
    text-decoration: none;
    transition: box-shadow .2s ease;
}

.ev2-notify:hover,
.ev2-notify:focus {
    color: var(--ev2-text);
    text-decoration: none;
    box-shadow: var(--ev2-shadow-hover);
}

.ev2-notify-ic {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fde4e4;
    color: #ef4444;
    font-size: 21px;
}

[data-theme="dark"] .ev2-notify-ic {
    background: rgba(239, 68, 68, .18);
}

.ev2-notify-txt {
    flex: 1;
    min-width: 0;
}

.ev2-notify-txt strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.ev2-notify-txt > span {
    display: block;
    margin-top: 3px;
    font-size: 13.5px;
    color: var(--ev2-muted);
}

.ev2-notify-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 11px;
    background: var(--ev2-soft);
    color: var(--ev2-year-fg);
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
}

.ev2-notify-cta i {
    font-size: 11px;
    transition: transform .2s ease;
}

.ev2-notify:hover .ev2-notify-cta i {
    transform: translateX(2px);
}

/* ---------- Sheet (details / actions) ---------- */

html.ev2-noscroll,
html.ev2-noscroll body {
    overflow: hidden !important;
}

.ev2-sheet {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ev2-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    transition: opacity .25s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.ev2-sheet-card {
    position: relative;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 8px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
    background: var(--ev2-card);
    color: var(--ev2-text);
    box-shadow: 0 -10px 40px rgba(15, 23, 42, .2);
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    overscroll-behavior: contain;
}

.ev2-sheet.is-open .ev2-sheet-backdrop {
    opacity: 1;
}

.ev2-sheet.is-open .ev2-sheet-card {
    transform: none;
}

.ev2-sheet-grab {
    width: 40px;
    height: 5px;
    margin: 0 auto 12px;
    border-radius: 3px;
    background: var(--ev2-soft-2);
}

.ev2-sheet-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.ev2-sheet-ic {
    flex: none;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--ev2-soft);
    color: var(--ev2-text-2);
    font-size: 20px;
}

.ev2-sheet-ic.is-ok { background: var(--ev2-ok-bg); color: var(--ev2-ok-ic); }
.ev2-sheet-ic.is-warn { background: var(--ev2-warn-bg); color: var(--ev2-warn-ic); }
.ev2-sheet-ic.is-crit,
.ev2-sheet-ic.is-exp { background: var(--ev2-exp-bg); color: var(--ev2-exp-fg); }
.ev2-sheet-ic.is-missing { background: var(--ev2-missing-bg); color: var(--ev2-missing-fg); }
.ev2-sheet-ic.is-off { background: var(--ev2-off-bg); color: var(--ev2-off-fg); }

.ev2-sheet-ic.is-photo {
    width: 64px;
    background: var(--ev2-soft);
    overflow: hidden;
}

.ev2-sheet-ic.is-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.ev2-sheet-titles {
    flex: 1;
    min-width: 0;
}

.ev2-sheet-title {
    margin: 0;
    font-family: var(--ev2-font);
    font-size: 19px;
    font-weight: 800;
    color: var(--ev2-text);
}

.ev2-sheet-sub {
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
    color: var(--ev2-muted);
}

.ev2-sheet-close {
    flex: none;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--ev2-soft);
    color: var(--ev2-text-2);
    font-size: 16px;
    cursor: pointer;
}

.ev2-status {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--ev2-soft);
    font-variant-numeric: tabular-nums;
}

.ev2-status.is-ok { background: var(--ev2-ok-bg); }
.ev2-status.is-warn { background: var(--ev2-warn-bg); }
.ev2-status.is-crit,
.ev2-status.is-exp { background: var(--ev2-exp-bg); color: var(--ev2-exp-fg); }
.ev2-status.is-missing { background: var(--ev2-missing-bg); color: var(--ev2-missing-fg); }
.ev2-status.is-off { background: var(--ev2-off-bg); color: var(--ev2-off-fg); }

.ev2-status-big {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.02em;
}

.ev2-status-word {
    font-size: 24px;
}

.ev2-status-sub {
    font-size: 15px;
    font-weight: 600;
}

.ev2-dates {
    display: flex;
    gap: 10px;
    margin: 12px 0 0;
}

.ev2-dates > div {
    flex: 1;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--ev2-border);
}

.ev2-dates dt {
    font-size: 12px;
    font-weight: 500;
    color: var(--ev2-muted);
}

.ev2-dates dd {
    margin: 3px 0 0;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ev2-note {
    margin: 14px 2px 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ev2-text-2);
}

.ev2-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.ev2-btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 0;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: filter .2s ease, transform .15s ease, background-color .2s ease;
}

.ev2-btn:hover,
.ev2-btn:focus {
    text-decoration: none;
}

.ev2-btn:active {
    transform: scale(.99);
}

.ev2-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .35);
}

.ev2-btn-primary {
    background: linear-gradient(135deg, var(--ev2-accent-2), var(--ev2-accent));
    color: #fff;
    box-shadow: 0 8px 18px rgba(229, 57, 53, .28);
}

.ev2-btn-primary:hover,
.ev2-btn-primary:focus {
    color: #fff;
    filter: brightness(1.05);
}

.ev2-btn-soft {
    background: var(--ev2-soft);
    color: var(--ev2-text);
}

.ev2-btn-soft:hover,
.ev2-btn-soft:focus {
    background: var(--ev2-soft-2);
    color: var(--ev2-text);
}

/* Promo under the label ("Primeşti GRATUIT abonament 1 an"): a centred badge on its own line */
.ev2-btn:has(.ev2-btn-hint)::after {
    content: "";
    flex-basis: 100%;
    height: 0;
    order: 1;
}

.ev2-btn-hint {
    order: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .01em;
}

.ev2-btn-hint::before {
    content: "\f06b";
    font-family: "Font Awesome 7 Free";
    font-size: 10.5px;
    font-weight: 900;
}

.ev2-btn-soft .ev2-btn-hint {
    background: var(--ev2-card);
    color: var(--ev2-accent);
}

[data-theme="dark"] .ev2-btn-primary .ev2-btn-hint {
    color: #fff !important;
}

[data-theme="dark"] .ev2-btn-soft .ev2-btn-hint {
    color: #f87171 !important;
}

/* Action menu (popover on desktop, sheet on mobile) */

.ev2-popover {
    position: absolute;
    z-index: 10045;
    min-width: 240px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--ev2-border);
    background: var(--ev2-card);
    box-shadow: 0 18px 44px rgba(16, 24, 40, .18);
    opacity: 0;
    transform: translateY(-4px) scale(.97);
    transform-origin: top right;
    transition: opacity .15s ease, transform .15s ease;
}

.ev2-popover.is-up {
    transform-origin: bottom right;
}

.ev2-popover.is-open {
    opacity: 1;
    transform: none;
}

.ev2-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ev2-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ev2-text);
    font-size: 14.5px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.ev2-menu-item i {
    width: 18px;
    text-align: center;
    color: var(--ev2-muted);
    font-size: 15px;
}

.ev2-menu-item:hover,
.ev2-menu-item:focus {
    background: var(--ev2-soft);
    color: var(--ev2-text);
    text-decoration: none;
    outline: none;
}

.ev2-menu-item.is-primary i {
    color: #16a34a;
}

.ev2-menu-item.is-danger,
.ev2-menu-item.is-danger i {
    color: #dc2626;
}

.ev2-menu--sheet .ev2-menu-item {
    padding: 15px 14px;
    font-size: 16px;
}

/* ---------- Desktop sheet becomes a centered dialog ---------- */

@media (min-width: 768px) {
    .ev2-sheet {
        align-items: center;
    }

    .ev2-sheet-card {
        width: 440px;
        max-width: calc(100vw - 40px);
        padding: 22px 24px 24px;
        border-radius: 22px;
        box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
        opacity: 0;
        transform: translateY(10px) scale(.97);
        transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
    }

    .ev2-sheet.is-open .ev2-sheet-card {
        opacity: 1;
    }

    .ev2-sheet-grab {
        display: none;
    }
}

/* ---------- Wide lists: columns grow towards the plate instead of leaving a gap ---------- */

@container ev2main (min-width: 801px) {
    .ev2-car {
        grid-template-columns: minmax(240px, 340px) minmax(0, 1fr) 38px;
    }

    .ev2-docs {
        justify-self: end;
        grid-auto-columns: minmax(var(--tile-w), 150px);
    }
}

/* ---------- Medium widths ---------- */

/* The list column width depends on the page layout, not only on the viewport */
@container ev2main (max-width: 800px) {
    .ev2 {
        --tile-w: 86px;
        --photo-w: 116px;
        --photo-h: 82px;
    }
}

@container ev2main (max-width: 680px) {
    .ev2 {
        --tile-w: 78px;
        --tile-h: 84px;
        --photo-w: 100px;
        --photo-h: 72px;
        padding: 18px;
    }

    .ev2-ident {
        gap: 12px;
    }

    .ev2-plate {
        font-size: 17.5px;
    }
}

@container ev2main (max-width: 600px) {
    .ev2--fleet {
        --tile-w: 68px;
        --photo-w: 84px;
        --photo-h: 62px;
    }

    .ev2--fleet .ev2-car {
        gap: 10px;
    }
}

@media (max-width: 680px) {
    .ev2 {
        --tile-w: 68px;
        --tile-h: 80px;
        --photo-w: 88px;
        --photo-h: 62px;
    }

    .ev2 {
        padding: 14px;
    }

    .ev2-title {
        font-size: 24px;
        gap: 10px;
    }

    .ev2-plate {
        font-size: 16.5px;
    }

    .ev2-ident {
        gap: 12px;
    }

    .ev2-num { font-size: 19px; }
    .ev2-unit { font-size: 12px; }
    .ev2-tile-txt { font-size: 13px; }
}

/* ---------- Phones: photo moves above the plate, all columns stay visible ---------- */

@media (max-width: 560px) {
    .ev2 {
        --tile-w: 61px;
        --tile-h: 78px;
        --photo-w: 100%;
        --photo-h: 54px;
        padding: 12px 8px 8px;
        border-radius: 18px;
    }

    .ev2--fleet {
        --tile-w: 57px;
    }

    .ev2-tile {
        --file-h: 19px;
    }

    .ev2-file {
        font-size: 10.5px;
    }

    .ev2-head {
        padding: 4px 6px 0;
        margin-bottom: 10px;
    }

    .ev2-head-top {
        gap: 10px;
    }

    .ev2-title {
        font-size: 21px;
        gap: 8px;
    }

    .ev2-count {
        padding: 3px 8px;
        font-size: 13px;
    }

    .ev2-sub {
        margin-top: 5px;
        font-size: 14px;
    }

    .ev2-pay-btn {
        gap: 7px;
        padding: 11px 13px;
        border-radius: 12px;
        font-size: 13.5px;
    }

    .ev2-pay-btn .fa-plus {
        font-size: 14px;
    }

    .ev2-tools {
        gap: 8px;
        margin-bottom: 10px;
    }

    .ev2-search input,
    .ev2-order-btn {
        height: 42px;
        font-size: 16px;
    }

    .ev2-order-btn {
        width: 42px;
        padding: 0;
        justify-content: center;
    }

    .ev2-order-btn > span,
    .ev2-order-btn .fa-chevron-down {
        display: none;
    }

    .ev2-list {
        gap: 8px;
    }

    .ev2-car {
        grid-template-columns: minmax(0, 1fr) auto 24px;
        gap: 8px;
        padding: 8px 6px 8px 8px;
        border-radius: 14px;
    }

    .ev2-car.is-leaving {
        margin-bottom: -8px;
    }

    .ev2-ident {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .ev2-photo {
        border-radius: 10px;
    }

    .ev2-photo img {
        padding: 2px 4px 1px;
    }

    .ev2-plate {
        font-size: 14.5px;
        white-space: normal;
        line-height: 1.15;
    }

    .ev2-meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 6px;
        margin-top: 3px;
    }

    .ev2-make {
        font-size: 10.5px;
    }

    .ev2-year {
        padding: 1px 6px;
        border-radius: 5px;
        font-size: 10.5px;
    }

    .ev2-reactivate {
        margin-top: 6px;
        padding: 5px 8px;
        font-size: 11px;
    }

    .ev2-docs {
        border-radius: 10px;
    }

    .ev2-doc-label {
        top: 7px;
        font-size: 10.5px;
    }

    .ev2-tile {
        padding: 20px 2px 5px;
    }

    .ev2-num { font-size: 17px; }
    .ev2-num-sm { font-size: 15px; }
    .ev2-unit { font-size: 10.5px; }
    .ev2-tile-txt { font-size: 11.5px; }
    .ev2-tile-txt-sm { font-size: 9.5px; }
    .ev2-tile.is-exp .ev2-tile-txt { font-size: 10.5px; }
    .ev2-tile.is-exp .ev2-unit { font-size: 10px; }
    .ev2-ic { margin-top: 4px; font-size: 12.5px; }
    .ev2-tile.is-missing .ev2-ic,
    .ev2-tile.is-na .ev2-ic { font-size: 14px; }
    .ev2-tile.is-wait .ev2-unit { font-size: 9.5px; }
    .ev2-spin { width: 15px; height: 15px; border-width: 2px; }

    .ev2-na-txt { font-size: 9.5px; }
    .ev2-na-txt .ev2-long { display: none; }
    .ev2-na-txt .ev2-short { display: inline; }

    .ev2-kebab {
        width: 24px;
        height: 36px;
        border-radius: 8px;
        background: transparent;
        font-size: 15px;
    }

    .ev2-kebab:hover {
        background: var(--ev2-soft);
    }

    .ev2-notify {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px;
    }

    .ev2-notify-ic {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .ev2-notify-txt strong {
        font-size: 15px;
    }

    .ev2-notify-txt > span {
        font-size: 12.5px;
    }

    .ev2-notify-cta {
        flex-basis: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 374px) {
    .ev2 {
        --tile-w: 54px;
        --tile-h: 74px;
    }

    .ev2--fleet {
        --tile-w: 50px;
    }

    .ev2-title {
        font-size: 19px;
    }

    .ev2-pay-btn {
        padding: 10px 11px;
        font-size: 12.5px;
    }

    .ev2-plate {
        font-size: 13px;
    }

    .ev2-num { font-size: 15.5px; }
    .ev2-unit { font-size: 10px; }
    .ev2-tile-txt { font-size: 10.5px; }
    .ev2-doc-label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .ev2 *,
    .ev2-sheet *,
    .ev2-popover * {
        animation: none !important;
        transition: none !important;
    }
}

.ev2-notify-txt > span > span {
    display: inline;
}

[data-theme="dark"] .ev2 .stuck-cars-banner {
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .4);
}

[data-theme="dark"] .ev2 .stuck-cars-text strong {
    color: #fbbf24;
}

[data-theme="dark"] .ev2 .stuck-cars-text span {
    color: #fde68a;
}

/* ---------- Compact list + "Trimite status" (5+ cars) ---------- */

.ev2-tool-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--ev2-border);
    border-radius: 12px;
    background: var(--ev2-card);
    color: var(--ev2-text-2);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.ev2-tool-btn i {
    font-size: 15px;
    color: var(--ev2-nav);
}

.ev2-tool-btn[aria-pressed="true"] {
    border-color: #f9c9b8;
    color: var(--ev2-accent);
}

.ev2-tool-btn[aria-pressed="true"] i {
    color: var(--ev2-accent);
}

@media (hover: hover) {
    .ev2-tool-btn:hover {
        background: var(--ev2-soft);
    }
}

.ev2-tool-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 67, 32, .35);
}

.ev2-colhead {
    display: none;
}

.ev2--compact .ev2-car,
.ev2--compact .ev2-colhead {
    grid-template-columns: minmax(0, 1fr) auto 30px;
    gap: 10px;
    padding: 4px 6px 4px 14px;
}

.ev2--compact .ev2-colhead {
    display: grid;
    padding-top: 0;
    padding-bottom: 5px;
}

.ev2--compact .ev2-colhead .ev2-docs {
    border-radius: 0;
}

.ev2--compact .ev2-colhead .ev2-docs > button {
    padding: 2px 0;
    border: 0;
    border-radius: 6px;
    background: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--ev2-muted);
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s ease;
}

@media (hover: hover) {
    .ev2--compact .ev2-colhead .ev2-docs > button:hover {
        color: var(--ev2-text);
    }
}

.ev2--compact .ev2-colhead .ev2-docs > button:focus-visible {
    outline: 2px solid var(--ev2-accent);
    outline-offset: -2px;
}

.ev2--compact .ev2-colhead .ev2-docs > button[aria-pressed="true"] {
    color: var(--ev2-accent);
}

.ev2--compact .ev2-colhead .ev2-docs > button[aria-pressed="true"]::after {
    content: " \2193";
}

.ev2--compact .ev2-list {
    gap: 0;
    border: 1px solid var(--ev2-border);
    border-radius: 14px;
    background: var(--ev2-card);
    box-shadow: var(--ev2-shadow);
    overflow: hidden;
}

.ev2--compact .ev2-car {
    border: 0;
    border-top: 1px solid var(--ev2-border);
    border-radius: 0;
    box-shadow: none;
}

.ev2--compact .ev2-car:first-child {
    border-top: 0;
}

.ev2--compact .ev2-car:hover {
    box-shadow: none;
    background: var(--ev2-soft);
}

.ev2--compact .ev2-photo {
    display: none;
}

.ev2--compact .ev2-ident {
    flex-direction: row;
    gap: 0;
    border-radius: 6px;
}

.ev2--compact .ev2-plate {
    font-size: 16px;
    line-height: 1.15;
    white-space: nowrap;
}

.ev2--compact .ev2-meta {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    margin-top: 1px;
}

.ev2--compact .ev2-make {
    min-width: 0;
    font-size: 11px;
}

.ev2--compact .ev2-year {
    flex: none;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--ev2-muted);
    font-size: 11px;
    font-weight: 500;
}

.ev2--compact .ev2-make + .ev2-year::before {
    content: "· ";
}

.ev2--compact .ev2-reactivate {
    margin-top: 3px;
    padding: 3px 8px;
    font-size: 11px;
}

.ev2--compact .ev2-docs {
    border-radius: 7px;
}

.ev2--compact .ev2-doc-label,
.ev2--compact .ev2-ic {
    display: none;
}

.ev2--compact .ev2-tile {
    --file-h: 13px;
    gap: 0;
    min-height: 42px;
    padding: 3px 2px;
}

.ev2--compact .ev2-tile:has(.ev2-file) {
    padding-bottom: calc(var(--file-h) + 2px);
}

.ev2--compact .ev2-file {
    font-size: 8.5px;
    letter-spacing: .04em;
}

.ev2--compact .ev2-num { font-size: 16px; }
.ev2--compact .ev2-num-sm { font-size: 14px; }
.ev2--compact .ev2-unit { font-size: 10px; }
.ev2--compact .ev2-tile-txt { font-size: 11.5px; }
.ev2--compact .ev2-tile-txt-sm { font-size: 9.5px; white-space: nowrap; }
.ev2--compact .ev2-tile.is-exp .ev2-tile-txt { font-size: 11px; }
.ev2--compact .ev2-tile.is-exp .ev2-unit { font-size: 9.5px; }
.ev2--compact .ev2-tile.is-wait .ev2-unit { margin-top: 2px; font-size: 9px; }
.ev2--compact .ev2-spin { width: 13px; height: 13px; border-width: 2px; }

.ev2--compact .ev2-kebab {
    width: 30px;
    height: 34px;
    border-radius: 8px;
    background: transparent;
}

.ev2-export-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 160px;
    max-height: 46vh;
    margin-top: 4px;
    padding: 10px;
    overflow-y: auto;
    border-radius: 14px;
    background: var(--ev2-soft);
    color: var(--ev2-muted);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.ev2-export-preview.is-ready {
    justify-content: flex-start;
}

.ev2-export-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}

@media (max-width: 560px) {
    .ev2-tool-btn {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
    }

    .ev2-tool-btn > span {
        display: none;
    }

    .ev2--compact .ev2-car,
    .ev2--compact .ev2-colhead {
        grid-template-columns: minmax(0, 1fr) auto 22px;
        gap: 6px;
        padding: 3px 2px 3px 8px;
    }

    .ev2--compact .ev2-colhead {
        padding-top: 0;
        padding-bottom: 4px;
    }

    .ev2--compact .ev2-colhead .ev2-docs > button {
        font-size: 10px;
    }

    .ev2--compact .ev2-plate {
        font-size: 13.5px;
    }

    .ev2--compact .ev2-make,
    .ev2--compact .ev2-year {
        font-size: 9.5px;
    }

    .ev2--compact .ev2-tile {
        min-height: 38px;
    }

    .ev2--compact .ev2-num { font-size: 14.5px; }
    .ev2--compact .ev2-num-sm { font-size: 12.5px; }
    .ev2--compact .ev2-unit { font-size: 9px; }
    .ev2--compact .ev2-tile-txt { font-size: 10.5px; }
    .ev2--compact .ev2-tile-txt-sm { font-size: 7.5px; letter-spacing: -0.02em; }
    .ev2--compact .ev2-tile.is-exp .ev2-tile-txt { font-size: 10px; }
    .ev2--compact .ev2-tile.is-exp .ev2-unit { font-size: 9px; }

    .ev2--compact .ev2-kebab {
        width: 22px;
        height: 32px;
    }
}

/* Four tiles leave too little room for the plate on small phones */
@media (max-width: 420px) {
    .ev2--compact.ev2--fleet {
        --tile-w: 51px;
    }

    .ev2--compact.ev2--fleet .ev2-car,
    .ev2--compact.ev2--fleet .ev2-colhead {
        grid-template-columns: minmax(0, 1fr) auto 20px;
        gap: 4px;
        padding-left: 6px;
    }

    .ev2--compact.ev2--fleet .ev2-plate {
        font-size: 13px;
        white-space: normal;
    }

    .ev2--compact.ev2--fleet .ev2-kebab {
        width: 20px;
    }

    .ev2--compact.ev2--fleet .ev2-colhead .ev2-docs > button {
        letter-spacing: 0;
    }
}

@media (max-width: 374px) {
    .ev2--compact.ev2--fleet {
        --tile-w: 47px;
    }
}

/* Own photo crop dialog (SweetAlert, outside .ev2) */
.ev2-crop-popup {
    width: min(560px, calc(100vw - 24px)) !important;
    padding: 1.1em !important;
}

.ev2-crop {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a;
    touch-action: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.ev2-crop.is-dragging {
    cursor: grabbing;
}

.ev2-crop img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    transform-origin: 0 0;
    pointer-events: none;
}

.ev2-crop::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
    pointer-events: none;
}

.ev2-crop-zoom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 4px 0;
    color: #94a3b8;
}

.ev2-crop-zoom input {
    flex: 1;
    accent-color: #ec4320;
}

.ev2-crop-hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: #64748b;
}
