/* v2 dashboard: Alerte suplimentare, Acte, Ajutor rapid, footer.
   Loaded only by index2.php after alertes.css / acte.css. Everything is
   scoped to .ev2-shell so the shared fragments keep their old look on
   index.php. Selectors carry an id + .ev2-shell to win over the inline
   <style> that acte_content.php injects after this file. */

/* ---------- Shared section shell ---------- */
.ev2-shell .lazy-section-skeleton {
    border: 0 !important;
    border-radius: 18px !important;
    background: var(--ev2s-card) !important;
    box-shadow: var(--ev2s-shadow);
}

.ev2-shell #alerte-content .data-table-list,
.ev2-shell #acte-content .data-table-list {
    margin: 0;
    padding: 22px;
    border: 0;
    border-radius: 18px;
    background: var(--ev2s-card) !important;
    box-shadow: var(--ev2s-shadow);
    font-family: var(--ev2s-font);
}

.ev2-shell #alerte-content .row,
.ev2-shell #acte-content > .container > .row {
    margin-left: 0;
    margin-right: 0;
}

.ev2-shell #alerte-content .listamasini,
.ev2-shell #acte-content > .container > .row > [class*="col-"] {
    float: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
}

/* ---------- Alerte suplimentare ---------- */
.ev2-shell #tablealert {
    --al-brand: var(--ev2s-accent);
    --al-text: var(--ev2s-text);
    --al-muted: var(--ev2s-muted);
    --al-border: var(--ev2s-border);
    --al-surface: var(--ev2s-card);
    --al-subtle: #f5f7fb;
    --al-hover: #f9fbfe;
    --al-ok-bg: var(--ev2s-ok-bg);
    --al-ok-fg: #166534;
    --al-soon-bg: var(--ev2s-warn-bg);
    --al-soon-fg: var(--ev2s-warn-fg);
    --al-urgent-bg: var(--ev2s-exp-bg);
    --al-urgent-fg: var(--ev2s-exp-fg);
    --al-expired-bg: #dc2626;
    --al-expired-fg: #fff;
    --al-empty-fg: var(--ev2s-faint);
    --al-empty-border: #d6dce7;
    --al-extra-fg: var(--ev2s-blue);
    --al-shadow: none;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

[data-theme="dark"] .ev2-shell #tablealert {
    --al-subtle: #2c323e;
    --al-hover: #2b313c;
    --al-ok-fg: #4ade80;
    --al-empty-border: #4a5263;
}

.ev2-shell #tablealert .alerte-head {
    margin-bottom: 16px;
}

.ev2-shell #tablealert .alerte-head-icon {
    background: var(--ev2s-tint);
    color: var(--ev2s-accent) !important;
    font-size: 20px;
    box-shadow: none;
}

[data-theme="dark"] .ev2-shell #tablealert .alerte-head-icon {
    color: #f87171 !important;
}

.ev2-shell #tablealert .alerte-title,
.ev2-shell #acte-content .basic-tb-hd h2,
.ev2-shell .ev2s-help .ev2s-card-head h2 {
    font-family: var(--ev2s-font);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.015em;
    color: var(--ev2s-text) !important;
}

.ev2-shell #tablealert .alerte-count {
    height: 24px;
    min-width: 28px;
    border: 0;
    background: #e9eef7;
    color: #39445e !important;
    font-size: 13px;
}

[data-theme="dark"] .ev2-shell #tablealert .alerte-count {
    background: var(--ev2s-soft-2);
    color: var(--ev2s-text-2) !important;
}

.ev2-shell #tablealert .alerte-subtitle {
    margin-top: 3px;
    font-size: 14px;
    color: var(--ev2s-muted) !important;
}

.ev2-shell #tablealert .alerte-setup-btn,
.ev2-shell #alerte-content .basic-tb-hd .btn-primary {
    height: 44px;
    padding: 0 20px;
    border: 0 !important;
    border-radius: 12px;
    background: var(--ev2s-grad) !important;
    color: #fff !important;
    font-family: var(--ev2s-font);
    font-size: 14.5px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(236, 67, 32, .28);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.ev2-shell #tablealert .alerte-setup-btn i,
.ev2-shell #alerte-content .basic-tb-hd .btn-primary i {
    color: #fff !important;
}

@media (hover: hover) {
    .ev2-shell #tablealert .alerte-setup-btn:hover,
    .ev2-shell #alerte-content .basic-tb-hd .btn-primary:hover {
        transform: translateY(-1px);
        filter: brightness(1.04);
        box-shadow: 0 10px 22px rgba(236, 67, 32, .32);
    }
}

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

.ev2-shell #tablealert .alerte-chip {
    height: 38px;
    padding: 0 9px 0 14px;
    border-color: var(--ev2s-border);
    background: var(--ev2s-card);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ev2s-text-2) !important;
}

.ev2-shell #tablealert .alerte-chip:not(.is-active):hover {
    background: var(--ev2s-soft);
}

.ev2-shell #tablealert .alerte-chip-count {
    background: var(--ev2s-soft);
    color: var(--ev2s-text-2) !important;
}

.ev2-shell #tablealert .alerte-chip.is-active .alerte-chip-count {
    background: rgba(255, 255, 255, .7);
}

[data-theme="dark"] .ev2-shell #tablealert .alerte-chip.is-active .alerte-chip-count {
    background: rgba(0, 0, 0, .25);
}

.ev2-shell #tablealert .alerte-grid {
    border-color: var(--ev2s-border);
    border-radius: 14px;
}

.ev2-shell #tablealert #alerte thead th {
    color: var(--ev2s-muted) !important;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .01em;
}

.ev2-shell #tablealert #alerte thead th.alerte-car-th {
    font-size: 14px;
}

.ev2-shell #tablealert .alerte-pill {
    height: 28px;
    padding: 0 12px;
    font-weight: 700;
}

.ev2-shell #tablealert .alerte-cell:hover .alerte-add,
.ev2-shell #tablealert .alerte-cell:focus-visible .alerte-add {
    background: var(--ev2s-tint);
}

.ev2-shell #tablealert .alerte-hint {
    margin-top: 14px;
    font-size: 12.5px;
}

.ev2-shell #tablealert .alerte-view-toggle {
    border-color: var(--ev2s-border);
    background: var(--ev2s-soft);
}

/* Expired subscription / no cars: the fragment ships inline-styled cards */
.ev2-shell #alerte-content .data-table-list:not(.alerte-card) .basic-tb-hd {
    margin: 0;
    padding: 0;
}

.ev2-shell #alerte-content .data-table-list:not(.alerte-card) .basic-tb-hd > .card {
    margin: 0 !important;
    padding: 34px 22px !important;
    border: 1px dashed #dde3ee !important;
    border-radius: 16px !important;
    background: #fafbfd !important;
    box-shadow: none !important;
}

[data-theme="dark"] .ev2-shell #alerte-content .data-table-list:not(.alerte-card) .basic-tb-hd > .card {
    border-color: var(--ev2s-border) !important;
    background: rgba(255, 255, 255, .02) !important;
}

.ev2-shell #alerte-content .data-table-list:not(.alerte-card) h2,
.ev2-shell #alerte-content .data-table-list:not(.alerte-card) h3,
.ev2-shell #alerte-content .data-table-list:not(.alerte-card) h4 {
    font-family: var(--ev2s-font);
    font-weight: 800 !important;
    letter-spacing: -.01em;
    color: var(--ev2s-text) !important;
}

.ev2-shell #alerte-content .data-table-list:not(.alerte-card) p {
    color: var(--ev2s-muted) !important;
}

/* ---------- Acte ---------- */
.ev2-shell #acte-content {
    font-family: var(--ev2s-font);
}

.ev2-shell #acte-content .basic-tb-hd {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    margin: 0 0 18px !important;
    padding: 0;
}

.ev2-shell #acte-content .basic-tb-hd::before {
    content: "\f2c2";
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--ev2s-tint);
    color: var(--ev2s-accent);
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    font-size: 19px;
    line-height: 1;
}

.ev2-shell #acte-content .basic-tb-hd ~ .basic-tb-hd {
    margin-top: 28px !important;
    padding-top: 26px;
    border-top: 1px solid var(--ev2s-border);
}

.ev2-shell #acte-content .basic-tb-hd ~ .basic-tb-hd::before {
    content: "\f1b9";
    grid-row: 1 / span 2;
}

[data-theme="dark"] .ev2-shell #acte-content .basic-tb-hd::before {
    color: #f87171;
}

.ev2-shell #acte-content .basic-tb-hd h2 {
    margin: 0;
    line-height: 1.25;
}

.ev2-shell #acte-content .basic-tb-hd p {
    margin: 3px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ev2s-muted) !important;
}

/* Personal documents */
.ev2-shell #acte-content .personal-docs-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.ev2-shell #acte-content .personal-docs-row::before,
.ev2-shell #acte-content .personal-docs-row::after {
    display: none;
}

.ev2-shell #acte-content .personal-docs-row > [class*="col-"] {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
}

.ev2-shell #acte-content .personal-docs-row > .col-md-12 {
    grid-column: 1 / -1;
}

.ev2-shell #acte-content .personal-docs-row .card {
    height: 100%;
    margin: 0;
    border: 1px solid var(--ev2s-border);
    border-radius: 16px;
    background: var(--ev2s-card);
    box-shadow: none;
    transition: box-shadow .2s ease, border-color .2s ease;
}

@media (hover: hover) {
    .ev2-shell #acte-content .personal-docs-row .card:hover {
        border-color: #dfe5ef;
        box-shadow: var(--ev2s-shadow-hover);
        transform: none;
    }
}

.ev2-shell #acte-content .personal-docs-row .card-body {
    padding: 18px;
}

.ev2-shell #acte-content .personal-docs-row .card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ev2s-text) !important;
}

.ev2-shell #acte-content .personal-docs-row .card-title i {
    border-radius: 10px;
    background: var(--ev2s-tint);
    color: var(--ev2s-accent) !important;
}

.ev2-shell #acte-content .upload-hint {
    color: var(--ev2s-muted) !important;
}

.ev2-shell #acte-content .document-label {
    border: 0;
    background: var(--ev2s-soft);
    color: var(--ev2s-text-2) !important;
}

.ev2-shell #acte-content .expiry-set-btn {
    border: 1px solid var(--ev2s-border);
    border-radius: 10px;
    background: var(--ev2s-soft);
    color: var(--ev2s-text-2) !important;
}

@media (hover: hover) {
    .ev2-shell #acte-content .expiry-set-btn:hover {
        border-color: #f9c6b6;
        background: var(--ev2s-tint);
        color: var(--ev2s-accent) !important;
    }
}

/* Upload buttons: same accent as the PLĂTEȘTE / Setează buttons */
.ev2-shell #acte-content label.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    margin: 0;
    padding: 0 13px;
    border: 0 !important;
    border-radius: 10px;
    background: var(--ev2s-grad) !important;
    color: #fff !important;
    font-family: var(--ev2s-font);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(236, 67, 32, .22);
    transition: filter .2s ease, box-shadow .2s ease;
}

.ev2-shell #acte-content label.btn-primary i {
    color: #fff !important;
    font-size: 12px;
}

@media (hover: hover) {
    .ev2-shell #acte-content label.btn-primary:hover {
        filter: brightness(1.05);
        box-shadow: 0 6px 14px rgba(236, 67, 32, .3);
    }
}

.ev2-shell #acte-content .document-preview {
    border: 1px dashed #dbe1eb;
    border-radius: 12px;
    background: #f7f9fc;
}

.ev2-shell #acte-content .document-preview.clickable-upload:hover:not(:has(img)):not(:has(.pdf-preview)) {
    border-color: #f6b9a5;
    background: #fff7f4;
}

.ev2-shell #acte-content .empty-state i {
    color: #c3cad6 !important;
}

.ev2-shell #acte-content .document-preview.clickable-upload:hover:not(:has(img)):not(:has(.pdf-preview)) .empty-state i {
    color: var(--ev2s-accent) !important;
}

[data-theme="dark"] .ev2-shell #acte-content .document-preview {
    border-color: #414857;
    background: #2c313c;
}

[data-theme="dark"] .ev2-shell #acte-content .document-preview.clickable-upload:hover:not(:has(img)):not(:has(.pdf-preview)) {
    border-color: rgba(244, 81, 30, .5);
    background: rgba(244, 81, 30, .08);
}

[data-theme="dark"] .ev2-shell #acte-content .empty-state i {
    color: #5d6676 !important;
}

.ev2-shell #acte-content .delete-overlay {
    border-radius: 9px;
}

/* Car search + page size */
.ev2-shell #acte-content .acte-masini-controls {
    margin-bottom: 14px !important;
    padding: 0;
    border: 0;
    background: none;
}

.ev2-shell #acte-content .acte-masini-controls > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 0;
}

.ev2-shell #acte-content .acte-masini-controls > .row::before,
.ev2-shell #acte-content .acte-masini-controls > .row::after {
    display: none;
}

.ev2-shell #acte-content .acte-masini-controls > .row > [class*="col-"] {
    float: none;
    width: auto;
    margin: 0 !important;
    padding: 0;
}

.ev2-shell #acte-content .acte-masini-controls > .row > [class*="col-"]:first-child {
    flex: 1 1 280px;
    max-width: 420px;
}

.ev2-shell #acte-content .acte-search-container {
    position: relative;
    display: flex;
    width: 100%;
}

.ev2-shell #acte-content .acte-search-container::before {
    content: "\f002";
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    font-size: 14px;
    color: var(--ev2s-faint);
    pointer-events: none;
}

.ev2-shell #acte-content .acte-search-container label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ev2-shell #acte-content .acte-masini-controls .form-control {
    height: 44px;
    border: 1px solid var(--ev2s-border);
    border-radius: 12px;
    background-color: var(--ev2s-card);
    box-shadow: none;
    color: var(--ev2s-text);
    font-family: var(--ev2s-font);
    font-size: 14.5px;
}

.ev2-shell #acte-content #acte-masini-search {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 40px !important;
}

.ev2-shell #acte-content .acte-masini-controls .form-control:focus {
    border-color: #f4a58c;
    box-shadow: 0 0 0 3px rgba(236, 67, 32, .14);
    outline: none;
}

.ev2-shell #acte-content .acte-length-container {
    gap: 8px;
    color: var(--ev2s-muted);
    font-size: 14px;
}

.ev2-shell #acte-content .acte-length-container label {
    margin: 0 !important;
    color: var(--ev2s-muted) !important;
    font-weight: 600 !important;
}

.ev2-shell #acte-content #acte-masini-length {
    min-width: 78px;
    padding: 0 30px 0 14px;
}

.ev2-shell #acte-content .acte-masini-info {
    color: var(--ev2s-muted) !important;
    font-style: normal;
}

/* Car accordion */
.ev2-shell #acte-content #carsAccordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
}

.ev2-shell #acte-content #carsAccordion .acte-masini-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ev2s-border);
    border-radius: 14px;
    background: var(--ev2s-card);
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ev2-shell #acte-content #carsAccordion .acte-masini-card:has(.collapse.in),
.ev2-shell #acte-content #carsAccordion .acte-masini-card:has(.collapsing) {
    border-color: #f3cfc3;
    box-shadow: 0 8px 22px rgba(31, 58, 110, .07);
}

[data-theme="dark"] .ev2-shell #acte-content #carsAccordion .acte-masini-card:has(.collapse.in),
[data-theme="dark"] .ev2-shell #acte-content #carsAccordion .acte-masini-card:has(.collapsing) {
    border-color: rgba(244, 81, 30, .35);
    box-shadow: var(--ev2s-shadow);
}

@media (hover: hover) {
    .ev2-shell #acte-content #carsAccordion .acte-masini-card:hover {
        border-color: #dde3ee;
    }
}

.ev2-shell #acte-content #carsAccordion .card-header {
    padding: 0;
    border: 0;
    background: transparent;
}

.ev2-shell #acte-content #carsAccordion .card-header h5 {
    margin: 0;
}

.ev2-shell #acte-content #carsAccordion .btn-link {
    padding: 12px 16px;
    border-radius: 0;
    color: var(--ev2s-text);
    font-weight: 600;
}

@media (hover: hover) {
    .ev2-shell #acte-content #carsAccordion .btn-link:hover {
        background: #fafbfd;
    }

    [data-theme="dark"] .ev2-shell #acte-content #carsAccordion .btn-link:hover {
        background: rgba(255, 255, 255, .03);
    }
}

.ev2-shell #acte-content #carsAccordion .btn-link:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(236, 67, 32, .35);
}

.ev2-shell #acte-content .car-plate-section {
    gap: 14px;
}

.ev2-shell #acte-content #carsAccordion .accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 9px;
    background: var(--ev2s-soft);
    color: var(--ev2s-text-2) !important;
    font-size: 12px;
    transition: background-color .2s ease, color .2s ease;
}

.ev2-shell #acte-content #carsAccordion .accordion-icon.fa-minus {
    background: var(--ev2s-tint);
    color: var(--ev2s-accent) !important;
}

/* Number plate, same look as the Alerte grid */
.ev2-shell #acte-content .car-plate {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    min-width: 136px;
    height: 30px;
    padding: 0 8px 0 24px;
    overflow: hidden;
    border: 2px solid #111;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0 0 1px #d1d5db, 0 2px 4px rgba(16, 24, 40, .14);
    color: #111 !important;
    font-family: 'Plate Barlow', 'Barlow Semi Condensed', 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: .02em;
    text-align: center;
    white-space: nowrap;
}

.ev2-shell #acte-content .car-plate::before {
    content: "RO";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 18px;
    padding-bottom: 3px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-sizing: border-box;
    background: #039 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><g fill='%23fc0'><circle cx='10' cy='2.5' r='1.1'/><circle cx='13.75' cy='3.5' r='1.1'/><circle cx='16.5' cy='6.25' r='1.1'/><circle cx='17.5' cy='10' r='1.1'/><circle cx='16.5' cy='13.75' r='1.1'/><circle cx='13.75' cy='16.5' r='1.1'/><circle cx='10' cy='17.5' r='1.1'/><circle cx='6.25' cy='16.5' r='1.1'/><circle cx='3.5' cy='13.75' r='1.1'/><circle cx='2.5' cy='10' r='1.1'/><circle cx='3.5' cy='6.25' r='1.1'/><circle cx='6.25' cy='3.5' r='1.1'/></g></svg>") center 2px / 14px 14px no-repeat;
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.ev2-shell #acte-content .car-docs-indicators {
    gap: 6px;
}

.ev2-shell #acte-content .doc-indicator {
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.ev2-shell #acte-content .doc-indicator.has-doc {
    background: var(--ev2s-ok-bg);
    color: #166534 !important;
}

.ev2-shell #acte-content .doc-indicator.has-doc i,
.ev2-shell #acte-content .doc-indicator.has-doc .doc-name {
    color: inherit !important;
}

.ev2-shell #acte-content .doc-indicator.has-doc i {
    color: var(--ev2s-ok-ic) !important;
}

.ev2-shell #acte-content .doc-indicator.missing-doc {
    background: var(--ev2s-soft);
    color: #8a94a6 !important;
}

.ev2-shell #acte-content .doc-indicator.missing-doc i,
.ev2-shell #acte-content .doc-indicator.missing-doc .doc-name {
    color: inherit !important;
}

[data-theme="dark"] .ev2-shell #acte-content .doc-indicator.has-doc {
    color: #86efac !important;
}

/* Expanded car: one tile per document */
.ev2-shell #acte-content #carsAccordion .card-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    padding: 4px 16px 16px;
    background: transparent;
}

.ev2-shell #acte-content #carsAccordion .card-body > .row {
    display: contents;
}

.ev2-shell #acte-content #carsAccordion .card-body > .row::before,
.ev2-shell #acte-content #carsAccordion .card-body > .row::after {
    display: none;
}

.ev2-shell #acte-content #carsAccordion .col-md-4 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 10px 8px;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--ev2s-border);
    border-radius: 14px;
    background: #fbfcfe;
}

[data-theme="dark"] .ev2-shell #acte-content #carsAccordion .col-md-4 {
    background: rgba(255, 255, 255, .02);
}

.ev2-shell #acte-content #carsAccordion .col-md-4 > * {
    flex: 1 1 100%;
    min-width: 0;
    order: 3;
}

.ev2-shell #acte-content #carsAccordion .col-md-4 > .card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    order: 0;
    margin: 0;
    font-family: var(--ev2s-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ev2s-text) !important;
}

.ev2-shell #acte-content #carsAccordion .col-md-4 > .card-title::before {
    content: "\f15c";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--ev2s-tint);
    color: var(--ev2s-accent);
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    font-size: 13px;
}

[data-theme="dark"] .ev2-shell #acte-content #carsAccordion .col-md-4 > .card-title::before {
    color: #f87171;
}

.ev2-shell #acte-content #carsAccordion .col-md-4:nth-child(2) > .card-title::before { content: "\f018"; }
.ev2-shell #acte-content #carsAccordion .col-md-4:nth-child(3) > .card-title::before { content: "\f3ed"; }
.ev2-shell #acte-content #carsAccordion .col-md-4:nth-child(4) > .card-title::before { content: "\f2c2"; }
.ev2-shell #acte-content #carsAccordion .col-md-4:nth-child(5) > .card-title::before { content: "\f15b"; }

.ev2-shell #acte-content #carsAccordion .col-md-4 > .document-preview {
    order: 1;
    margin-top: 0 !important;
}

.ev2-shell #acte-content #carsAccordion .col-md-4 > label.btn-primary {
    order: 2;
    justify-content: center;
    height: 36px;
}

.ev2-shell #acte-content .rca-pdf-container,
.ev2-shell #acte-content .rovinieta-history-container {
    margin-top: 0 !important;
    padding: 12px !important;
    border-radius: 12px !important;
    font-size: 13px;
}

.ev2-shell #acte-content .rca-pdf-container {
    background: var(--ev2s-blue-tint) !important;
}

.ev2-shell #acte-content .rovinieta-history-container {
    background: #ecfbee !important;
}

[data-theme="dark"] .ev2-shell #acte-content .rovinieta-history-container {
    background: rgba(34, 197, 94, .1) !important;
}

.ev2-shell #acte-content .rca-pdf-container .btn,
.ev2-shell #acte-content .rovinieta-history-container .btn {
    border-radius: 8px;
    font-weight: 600;
}

/* Pagination */
.ev2-shell #acte-content .acte-masini-pagination {
    margin-top: 16px;
}

.ev2-shell #acte-content .acte-masini-pagination .page-link,
.ev2-shell #acte-content .acte-masini-pagination .pagination > li > a,
.ev2-shell #acte-content .acte-masini-pagination .pagination > li > span {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ev2s-border);
    border-radius: 10px !important;
    background: var(--ev2s-card);
    color: var(--ev2s-text-2) !important;
    font-size: 13.5px;
    font-weight: 600;
}

.ev2-shell #acte-content .acte-masini-pagination .active > .page-link,
.ev2-shell #acte-content .acte-masini-pagination .active > a {
    border-color: transparent;
    background: var(--ev2s-grad);
    color: #fff !important;
}

.ev2-shell #acte-content .acte-masini-pagination .disabled > .page-link,
.ev2-shell #acte-content .acte-masini-pagination .disabled > a {
    opacity: .5;
}

.ev2-shell #acte-content #acte-masini-showing {
    color: var(--ev2s-muted) !important;
    font-size: 13px;
}

/* ---------- Ajutor rapid ---------- */
.ev2-shell .ev2s-help .ev2s-faq-item {
    border-radius: 14px;
}

.ev2-shell .ev2s-help .ev2s-faq-item > summary {
    border-radius: 14px;
    padding: 12px 16px;
}

.ev2-shell .ev2s-help .ev2s-faq-item[open]:not(.is-closing) {
    border-color: #f6d5ca;
    background: #fff7f4;
    box-shadow: none;
}

[data-theme="dark"] .ev2-shell .ev2s-help .ev2s-faq-item[open]:not(.is-closing) {
    border-color: rgba(244, 81, 30, .35);
    background: var(--ev2s-card);
}

/* Question icons: soft round badges, peach when open */
.ev2-shell .ev2s-help .ev2s-faq-ic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ev2s-soft);
}

.ev2-shell .ev2s-help .ev2s-faq-ic i {
    font-size: 14px;
    color: var(--ev2s-text-2) !important;
}

.ev2-shell .ev2s-help .ev2s-faq-item[open]:not(.is-closing) .ev2s-faq-ic {
    background: var(--ev2s-tint);
    box-shadow: none;
}

.ev2-shell .ev2s-help .ev2s-faq-item[open]:not(.is-closing) .ev2s-faq-ic i {
    color: var(--ev2s-accent) !important;
}

[data-theme="dark"] .ev2-shell .ev2s-help .ev2s-faq-item[open]:not(.is-closing) .ev2s-faq-ic i {
    color: #ff8a73 !important;
}

.ev2-shell .ev2s-help .ev2s-faq-a {
    padding-left: 64px;
}

@media (min-width: 1200px) {
    /* Left column sits on a soft peach panel (the ::before is a grid item behind it) */
    .ev2-shell .ev2s-help {
        display: grid;
        grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
        grid-template-rows: auto auto 1fr;
        column-gap: 20px;
        align-items: start;
    }

    .ev2-shell .ev2s-help::before {
        content: "";
        grid-column: 1;
        grid-row: 1 / -1;
        align-self: stretch;
        border-radius: 16px;
        background: linear-gradient(160deg, #fff4f0 0%, #fff8f5 100%);
    }

    [data-theme="dark"] .ev2-shell .ev2s-help::before {
        background: var(--ev2s-peach-tint);
    }

    .ev2-shell .ev2s-help > .ev2s-card-head {
        grid-column: 1;
        grid-row: 1;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin: 0;
        padding: 22px 22px 0;
    }

    .ev2-shell .ev2s-help > .ev2s-card-head .ev2s-head-ic {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--ev2s-card);
        box-shadow: 0 4px 12px rgba(236, 67, 32, .12);
    }

    .ev2-shell .ev2s-help .ev2s-card-head h2 {
        font-size: 24px;
    }

    .ev2-shell .ev2s-help > .ev2s-faq {
        grid-column: 2;
        grid-row: 1 / span 3;
    }

    .ev2-shell .ev2s-help > .ev2s-contact {
        grid-column: 1;
        grid-row: 2;
        flex-direction: column;
        align-items: stretch;
        margin: 20px 22px 0;
        border-top-color: rgba(236, 67, 32, .12);
    }

    /* Contacts as full-width rows with an arrow */
    .ev2-shell .ev2s-help > .ev2s-contact .ev2s-chip {
        gap: 12px;
        height: 42px;
        padding: 0 14px;
        border: 1px solid rgba(15, 23, 42, .06);
        border-radius: 12px;
        background: var(--ev2s-card);
        color: var(--ev2s-text) !important;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    }

    .ev2-shell .ev2s-help > .ev2s-contact .ev2s-chip::after {
        content: "\f054";
        margin-left: auto;
        font-family: "Font Awesome 7 Free";
        font-size: 11px;
        font-weight: 900;
        color: var(--ev2s-faint);
        transition: transform .2s ease;
    }

    .ev2-shell .ev2s-help > .ev2s-danger {
        grid-column: 1;
        grid-row: 3;
        margin: 18px 22px 22px;
        padding-top: 14px;
        border-top: 1px solid rgba(236, 67, 32, .12);
    }

    [data-theme="dark"] .ev2-shell .ev2s-help > .ev2s-contact,
    [data-theme="dark"] .ev2-shell .ev2s-help > .ev2s-danger {
        border-top-color: var(--ev2s-border);
    }

    [data-theme="dark"] .ev2-shell .ev2s-help > .ev2s-contact .ev2s-chip {
        border-color: var(--ev2s-border);
    }
}

@media (min-width: 1200px) and (hover: hover) {
    .ev2-shell .ev2s-help > .ev2s-contact .ev2s-chip:hover {
        border-color: rgba(236, 67, 32, .25);
        background: var(--ev2s-card);
    }

    .ev2-shell .ev2s-help > .ev2s-contact .ev2s-chip:hover::after {
        transform: translateX(2px);
        color: var(--ev2s-accent);
    }
}

/* ---------- Footer ---------- */
.ev2-shell .ev2s-foot-top {
    align-items: start;
}

.ev2-shell .ev2s-foot-anpc {
    align-self: center;
}

.ev2-shell .ev2s-foot-col h3 {
    margin: 0 0 12px;
    font-family: var(--ev2s-font);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ev2s-faint) !important;
}

.ev2-shell .ev2s-foot-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 18px 56px;
}

.ev2-shell .ev2s-foot-col ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ev2-shell .ev2s-foot-col a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ev2s-text-2) !important;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s ease;
}

.ev2-shell .ev2s-foot-col a i {
    width: 16px;
    color: var(--ev2s-faint) !important;
    font-size: 14px;
    text-align: center;
    transition: color .2s ease;
}

@media (hover: hover) {
    .ev2-shell .ev2s-foot-col a:hover,
    .ev2-shell .ev2s-foot-col a:hover i {
        color: var(--ev2s-accent) !important;
    }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 991px) {
    .ev2-shell #acte-content .personal-docs-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .ev2-shell #alerte-content .data-table-list,
    .ev2-shell #acte-content .data-table-list {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .ev2-shell #tablealert .alerte-title,
    .ev2-shell #acte-content .basic-tb-hd h2,
    .ev2-shell .ev2s-help .ev2s-card-head h2 {
        font-size: 19px;
    }

    .ev2-shell #tablealert .alerte-head-icon,
    .ev2-shell #acte-content .basic-tb-hd::before {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .ev2-shell #acte-content .basic-tb-hd {
        grid-template-columns: 42px minmax(0, 1fr);
        column-gap: 12px;
    }

    .ev2-shell #acte-content .basic-tb-hd p,
    .ev2-shell #tablealert .alerte-subtitle {
        font-size: 13px;
    }

    .ev2-shell #tablealert .alerte-setup-btn {
        width: 100%;
    }

    .ev2-shell #acte-content .personal-docs-row .card-body {
        padding: 14px;
    }

    .ev2-shell #acte-content .acte-masini-controls > .row > [class*="col-"]:first-child {
        max-width: none;
    }

    .ev2-shell #acte-content .acte-length-container {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .ev2-shell #acte-content #acte-masini-search,
    .ev2-shell #acte-content #acte-masini-length {
        margin-top: 0;
    }

    .ev2-shell #acte-content #acte-masini-length {
        width: auto !important;
        min-width: 78px !important;
    }

    .ev2-shell #acte-content #carsAccordion .document-preview {
        min-height: 112px;
    }

    .ev2-shell #acte-content #carsAccordion .btn-link {
        padding: 12px;
    }

    .ev2-shell #acte-content .car-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ev2-shell #acte-content .car-docs-indicators {
        justify-content: flex-start;
        padding-left: 44px;
    }

    .ev2-shell #acte-content #carsAccordion .card-body {
        grid-template-columns: minmax(0, 1fr);
        padding: 2px 12px 12px;
    }

    .ev2-shell .ev2s-foot-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .ev2-shell .ev2s-foot-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 16px;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .ev2-shell #acte-content .doc-indicator {
        height: 26px;
        padding: 0 9px;
        font-size: 11.5px;
    }

    .ev2-shell #acte-content .car-docs-indicators {
        padding-left: 0;
    }
}

/* ---------- Dialogs (SweetAlert2, document viewer, toasts) ----------
   The payment / billing flows have their own complete design and are left
   alone; every other popup gets the v2 look. Confirm buttons whose inline
   confirmButtonColor is red stay red (destructive actions). */
.ev2-shell .swal2-container.swal2-backdrop-show {
    background: rgba(15, 23, 42, .55) !important;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) {
    padding: 26px 24px 22px !important;
    border: 0;
    border-radius: 20px !important;
    background: var(--ev2s-card) !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .24);
    font-family: var(--ev2s-font);
}

.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-title {
    margin: 0 0 4px !important;
    padding: 0;
    font-family: var(--ev2s-font);
    font-size: 20px !important;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--ev2s-text) !important;
}

.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-html-container,
.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-content {
    font-size: 14.5px !important;
    line-height: 1.55;
    color: var(--ev2s-text-2) !important;
}

.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-html-container b,
.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-html-container strong {
    color: var(--ev2s-text) !important;
}

/* Status icons: smaller, softer, on-palette */
.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-icon {
    margin: 4px auto 16px !important;
    font-size: 12.5px;
}

.ev2-shell .swal2-icon.swal2-warning {
    border-color: #fcd34d !important;
    color: #f59e0b !important;
}

.ev2-shell .swal2-icon.swal2-error {
    border-color: #fca5a5 !important;
}

.ev2-shell .swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
    background-color: #ef4444 !important;
}

.ev2-shell .swal2-icon.swal2-success {
    border-color: #86efac !important;
}

.ev2-shell .swal2-icon.swal2-success [class^="swal2-success-line"] {
    background-color: #22c55e !important;
}

.ev2-shell .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(34, 197, 94, .3) !important;
}

.ev2-shell .swal2-icon.swal2-info,
.ev2-shell .swal2-icon.swal2-question {
    border-color: #93c5fd !important;
    color: var(--ev2s-blue) !important;
}

/* Buttons */
.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-actions {
    gap: 10px;
    margin-top: 22px !important;
}

.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-styled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 112px;
    height: 46px;
    margin: 0 !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-family: var(--ev2s-font);
    font-size: 14.5px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    transition: filter .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-styled i {
    color: inherit !important;
}

.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-styled.swal2-confirm {
    background: var(--ev2s-grad) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(236, 67, 32, .28) !important;
}

.ev2-shell .swal2-popup .swal2-styled.swal2-confirm[style*="rgb(221, 51, 51)"],
.ev2-shell .swal2-popup .swal2-styled.swal2-confirm[style*="rgb(220, 38, 38)"],
.ev2-shell .swal2-popup .swal2-styled.swal2-deny {
    background: #dc2626 !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, .25) !important;
}

.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-styled.swal2-cancel {
    background: var(--ev2s-soft) !important;
    color: var(--ev2s-text-2) !important;
}

@media (hover: hover) {
    .ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-styled:not(:disabled):hover {
        filter: brightness(1.05);
        background-image: none;
    }

    .ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-styled.swal2-cancel:hover {
        background: var(--ev2s-soft-2) !important;
        filter: none;
    }
}

.ev2-shell .swal2-popup .swal2-styled:focus,
.ev2-shell .swal2-popup .swal2-styled:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 67, 32, .3) !important;
}

.ev2-shell .swal2-popup .swal2-styled:disabled {
    background: var(--ev2s-soft-2) !important;
    color: var(--ev2s-muted) !important;
    box-shadow: none !important;
}

/* Fields, validation, loader, close */
.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) :is(.swal2-input, .swal2-textarea, .swal2-select, .form-control) {
    border: 1px solid var(--ev2s-border) !important;
    border-radius: 12px !important;
    background: var(--ev2s-card) !important;
    box-shadow: none !important;
    color: var(--ev2s-text) !important;
    font-family: var(--ev2s-font);
}

.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) :is(.swal2-input, .swal2-select, input.form-control, select.form-control) {
    height: 46px;
}

.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) :is(.swal2-input, .swal2-textarea, .swal2-select, .form-control):focus {
    border-color: #f4a58c !important;
    box-shadow: 0 0 0 3px rgba(236, 67, 32, .14) !important;
    outline: none;
}

.ev2-shell .swal2-popup .swal2-validation-message {
    margin: 14px 0 0 !important;
    padding: 10px 14px !important;
    border-radius: 12px;
    background: var(--ev2s-exp-bg) !important;
    color: var(--ev2s-exp-fg) !important;
    font-size: 13.5px;
    font-weight: 600;
}

.ev2-shell .swal2-popup .swal2-validation-message::before {
    background-color: #dc2626;
}

.ev2-shell .swal2-popup .swal2-loader {
    border-color: var(--ev2s-accent) transparent var(--ev2s-accent) transparent;
}

.ev2-shell .swal2-popup .swal2-timer-progress-bar {
    background: var(--ev2s-grad);
}

.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--ev2s-faint) !important;
    font-size: 26px;
    transition: background-color .2s ease, color .2s ease;
}

.ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-close:hover {
    background: var(--ev2s-soft);
    color: var(--ev2s-text) !important;
}

/* Alert types picker (alerte.js selectAlertTypes) */
.ev2-shell .swal-alerte-types .alerte-select-intro {
    color: var(--ev2s-muted);
    font-size: 14px;
}

.ev2-shell .alerte-types-grid {
    gap: 8px;
}

.ev2-shell .alerte-type-chip {
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--ev2s-border);
    border-radius: 999px;
    background: var(--ev2s-card);
    color: var(--ev2s-text-2);
    font-size: 13.5px;
    font-weight: 600;
}

.ev2-shell .alerte-type-chip:hover {
    border-color: #dde3ee;
    background: var(--ev2s-soft);
}

.ev2-shell .alerte-type-chip.checked {
    border-color: #f6b9a5;
    background: var(--ev2s-tint);
    color: var(--ev2s-accent);
}

[data-theme="dark"] .ev2-shell .alerte-type-chip.checked {
    border-color: rgba(244, 81, 30, .45);
    color: #fb923c;
}

.ev2-shell .alerte-type-chip .alerte-type-check {
    color: inherit !important;
}

.ev2-shell .alerte-type-chip .alerte-type-remove:hover {
    color: #dc2626 !important;
}

.ev2-shell .alerte-custom-section {
    padding: 14px;
    border: 1px solid var(--ev2s-border);
    border-radius: 14px;
    background: var(--ev2s-soft);
}

.ev2-shell .alerte-custom-header {
    color: var(--ev2s-text-2);
    font-size: 13.5px;
    font-weight: 700;
}

.ev2-shell .alerte-custom-header i {
    color: var(--ev2s-accent) !important;
}

.ev2-shell .alerte-custom-row input {
    height: 42px;
    border: 1px solid var(--ev2s-border);
    border-radius: 11px;
    background: var(--ev2s-card);
    color: var(--ev2s-text);
    font-family: var(--ev2s-font);
}

.ev2-shell .alerte-custom-row input:focus {
    border-color: #f4a58c;
    box-shadow: 0 0 0 3px rgba(236, 67, 32, .14);
}

.ev2-shell .alerte-custom-row button {
    width: 42px;
    padding: 0;
    border-radius: 11px;
    background: var(--ev2s-grad);
}

.ev2-shell .alerte-custom-row button i {
    color: #fff !important;
}

.ev2-shell .alerte-selected-count {
    border-radius: 12px;
    background: var(--ev2s-blue-tint);
    color: var(--ev2s-blue);
    font-weight: 700;
}

.ev2-shell .alerte-selected-count i,
.ev2-shell .alerte-selected-count span {
    color: inherit !important;
}

.ev2-shell .alerte-selected-count.over-limit {
    background: var(--ev2s-exp-bg);
    color: var(--ev2s-exp-fg);
}

/* Single alert date (alerte.js editCellAlert) */
.ev2-shell .alerte-cell-car {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom-color: var(--ev2s-border);
}

.ev2-shell .alerte-cell-plate {
    position: relative;
    padding: 0 8px 0 24px;
    height: 30px;
    overflow: hidden;
    border: 2px solid #111;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0 0 1px #d1d5db;
    color: #111 !important;
    font-family: 'Plate Barlow', 'Barlow Semi Condensed', 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: .02em;
    white-space: nowrap;
}

.ev2-shell .alerte-cell-plate::before {
    content: "RO";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 18px;
    padding-bottom: 3px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-sizing: border-box;
    background: #039;
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    line-height: 1;
}

.ev2-shell .alerte-cell-doc {
    color: var(--ev2s-text) !important;
    font-size: 17px;
    font-weight: 800;
}

.ev2-shell .alerte-cell-field label {
    color: var(--ev2s-muted) !important;
    font-size: 12.5px;
    font-weight: 700;
}

.ev2-shell .alerte-cell-field label i {
    color: var(--ev2s-faint) !important;
}

.ev2-shell .alerte-cell-field input {
    height: 46px;
    border: 1px solid var(--ev2s-border);
    border-radius: 12px;
    background: var(--ev2s-card);
    color: var(--ev2s-text);
    font-family: var(--ev2s-font);
    font-size: 15px;
}

.ev2-shell .alerte-cell-field input:focus {
    border-color: #f4a58c;
    box-shadow: 0 0 0 3px rgba(236, 67, 32, .14);
}

.ev2-shell .alerte-cell-delete {
    border-top-color: var(--ev2s-border);
}

.ev2-shell .alerte-cell-delete a {
    color: #dc2626 !important;
    font-weight: 600;
}

[data-theme="dark"] .ev2-shell .alerte-cell-delete a {
    color: #f87171 !important;
}

/* Document viewer (acte.js) */
.ev2-shell .fsv-overlay {
    background: rgba(10, 14, 24, .93);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ev2-shell .fsv-image {
    border-radius: 12px;
}

.ev2-shell .fsv-btn {
    width: 48px;
    height: 48px;
    border-color: rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
}

.ev2-shell .fsv-btn i {
    color: #fff !important;
}

@media (hover: hover) {
    .ev2-shell .fsv-btn:hover {
        border-color: transparent;
        background: var(--ev2s-grad);
    }
}

.ev2-shell .fsv-caption {
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-family: var(--ev2s-font);
    font-weight: 600;
}

/* Toasts */
.ev2-shell #toast-container > div {
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .22);
    font-family: var(--ev2s-font);
    font-size: 14px;
    font-weight: 600;
    opacity: 1;
}

.ev2-shell #toast-container > div:hover {
    box-shadow: 0 14px 36px rgba(15, 23, 42, .28);
}

@media (max-width: 767px) {
    .ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) {
        padding: 22px 16px 14px !important;
        border-radius: 18px !important;
    }

    .ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-title {
        margin-top: 0 !important;
        font-size: 19px !important;
    }

    .ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-header {
        padding-top: 0;
    }

    .ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-html-container {
        padding-bottom: 4px !important;
    }

    .ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-actions {
        flex-wrap: nowrap;
        margin-top: 14px !important;
        padding: 12px 0 4px !important;
        border-top-color: var(--ev2s-border) !important;
    }

    .ev2-shell .swal2-popup:not(.ps-popup, .bp-popup, .billing-popup-mobile, .payment-state-popup, .saved-cards-swal-popup, .payment-swal-popup) .swal2-styled {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 14px !important;
    }
}

/* ---------- Car settings dialog (principal.js forceedit) ---------- */
.ev2-shell .swal2-popup:has(.car-edit-popup) {
    width: 480px !important;
    max-width: calc(100vw - 20px) !important;
}

.ev2-shell .swal2-popup:has(.car-edit-popup) .swal2-title {
    display: block !important;
    width: 100%;
    padding-right: 34px;
    text-align: left;
}

.ev2-shell .swal2-popup .swal2-title[data-ev2-head] {
    margin-bottom: 20px !important;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ev2s-border);
}

.ev2-shell .ev2-ce-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

.ev2-shell .ev2-ce-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--ev2s-tint);
}

.ev2-shell .ev2-ce-ic i {
    color: var(--ev2s-accent) !important;
    font-size: 20px;
}

[data-theme="dark"] .ev2-shell .ev2-ce-ic i {
    color: #f87171 !important;
}

.ev2-shell .ev2-ce-txt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.ev2-shell .ev2-ce-kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ev2s-muted) !important;
}

.ev2-shell .ev2-ce-plate {
    position: relative;
    display: inline-block;
    height: 32px;
    padding: 0 10px 0 26px;
    overflow: hidden;
    border: 2px solid #111;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0 0 1px #d1d5db, 0 2px 4px rgba(16, 24, 40, .14);
    color: #111 !important;
    font-family: 'Plate Barlow', 'Barlow Semi Condensed', 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: .02em;
    white-space: nowrap;
}

.ev2-shell .ev2-ce-plate::before {
    content: "RO";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 19px;
    padding-bottom: 3px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-sizing: border-box;
    background: #039;
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.ev2-shell .car-edit-popup {
    font-family: var(--ev2s-font);
    color: var(--ev2s-text-2);
}

.ev2-shell .car-edit-popup .form-field {
    margin: 0 0 16px;
}

.ev2-shell .car-edit-popup .form-field:first-child,
.ev2-shell .car-edit-popup > br:first-child + .form-field {
    margin-top: 6px;
}

.ev2-shell .car-edit-popup .field-label {
    margin-bottom: 7px;
    color: var(--ev2s-text-2) !important;
    font-size: 13px;
    font-weight: 700;
}

[data-theme="dark"] .ev2-shell .car-edit-popup .field-label,
[data-theme="dark"] .ev2-shell .car-edit-popup .chassis-field .field-label {
    color: var(--ev2s-text-2) !important;
}

.ev2-shell .car-edit-popup .input-container {
    height: 50px;
    border: 1px solid var(--ev2s-border);
    border-radius: 13px;
    background: var(--ev2s-card);
    overflow: hidden;
}

.ev2-shell .car-edit-popup .input-container:focus-within {
    border-color: #f4a58c;
    box-shadow: 0 0 0 3px rgba(236, 67, 32, .14);
}

.ev2-shell .car-edit-popup .field-icon {
    flex: 0 0 46px !important;
    height: 100% !important;
    border-right: 0 !important;
    background: transparent !important;
}

.ev2-shell .car-edit-popup .field-icon i {
    color: var(--ev2s-faint) !important;
    font-size: 15px !important;
}

.ev2-shell .car-edit-popup .input-container:focus-within .field-icon i {
    color: var(--ev2s-accent) !important;
}

.ev2-shell .swal2-popup .car-edit-popup .input-container .form-control {
    height: 100% !important;
    padding: 0 14px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ev2s-text) !important;
    font-family: var(--ev2s-font);
    font-size: 15.5px !important;
    font-weight: 600;
    letter-spacing: .02em;
}

.ev2-shell .car-edit-popup .form-control::placeholder {
    color: var(--ev2s-faint);
    font-weight: 500;
    letter-spacing: 0;
}

.ev2-shell .car-edit-popup .error-message {
    margin: 0 0 10px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: var(--ev2s-exp-bg);
    color: var(--ev2s-exp-fg) !important;
    font-size: 13px;
    font-weight: 600;
}

/* Scan the registration certificate: secondary action */
.ev2-shell .car-edit-popup .scan-talon-section {
    margin: -4px 0 18px;
}

.ev2-shell .car-edit-popup .scan-talon-divider {
    margin-bottom: 10px;
}

.ev2-shell .car-edit-popup .scan-talon-divider::before,
.ev2-shell .car-edit-popup .scan-talon-divider::after {
    background: var(--ev2s-border);
}

.ev2-shell .car-edit-popup .scan-talon-divider span {
    color: var(--ev2s-faint) !important;
    font-size: 11.5px;
    font-weight: 700;
}

.ev2-shell .car-edit-popup .btn-scan-talon {
    height: 46px;
    padding: 0 16px;
    border: 1px dashed #f2b3a0;
    border-radius: 13px;
    background: var(--ev2s-peach-tint);
    color: var(--ev2s-accent) !important;
    font-family: var(--ev2s-font);
    font-size: 14.5px;
    font-weight: 700;
    box-shadow: none;
    transform: none;
}

.ev2-shell .car-edit-popup .btn-scan-talon i {
    color: inherit !important;
}

@media (hover: hover) {
    .ev2-shell .car-edit-popup .btn-scan-talon:not(:disabled):hover {
        border-style: solid;
        background: var(--ev2s-tint);
        box-shadow: none;
        transform: none;
    }
}

.ev2-shell .car-edit-popup .btn-scan-talon.btn-scan-success {
    border: 1px solid #86efac;
    background: var(--ev2s-ok-bg);
    color: #166534 !important;
}

.ev2-shell .car-edit-popup .btn-scan-talon.btn-scan-warning {
    border: 1px solid #fcd34d;
    background: var(--ev2s-warn-bg);
    color: var(--ev2s-warn-fg) !important;
}

.ev2-shell .car-edit-popup .btn-scan-talon.btn-scan-error {
    border: 1px solid #fca5a5;
    background: var(--ev2s-exp-bg);
    color: var(--ev2s-exp-fg) !important;
}

[data-theme="dark"] .ev2-shell .car-edit-popup .btn-scan-talon {
    border-color: rgba(244, 81, 30, .4);
    color: #fb923c !important;
}

.ev2-shell .car-edit-popup .scan-talon-hint {
    margin-top: 7px;
    color: var(--ev2s-muted) !important;
    font-size: 12px;
}

/* Alerts to another phone number */
.ev2-shell .car-edit-popup .phone-notification-section {
    margin: 0 0 16px;
    padding: 0;
    border: 1px solid var(--ev2s-border);
    border-radius: 13px;
    background: var(--ev2s-soft);
}

.ev2-shell .car-edit-popup .phone-notification-section label {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    min-height: 50px;
    margin: 0 !important;
    padding: 12px 14px;
    line-height: 1.35;
    color: var(--ev2s-text-2) !important;
    font-size: 14px;
    font-weight: 600;
}

.ev2-shell .car-edit-popup .phone-notification-section input[type="checkbox"] {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--ev2s-accent);
}

.ev2-shell .car-edit-popup .premium-badge {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--ev2s-grad);
    font-size: 10.5px;
    letter-spacing: .04em;
    text-shadow: none;
}

.ev2-shell .car-edit-popup .phone-notification-disabled {
    opacity: 1;
}

.ev2-shell .car-edit-popup .upgrade-notice {
    margin: 0 12px 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    background: var(--ev2s-warn-bg);
    color: var(--ev2s-warn-fg) !important;
    font-size: 13px;
    line-height: 1.5;
}

.ev2-shell .car-edit-popup .upgrade-notice span {
    color: inherit !important;
}

.ev2-shell .car-edit-popup .upgrade-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    color: var(--ev2s-accent) !important;
    font-weight: 700;
}

.ev2-shell .car-edit-popup .btn-verify {
    height: 34px;
    margin-right: 8px;
    border-radius: 10px;
    background: var(--ev2s-grad);
    font-family: var(--ev2s-font);
}

.ev2-shell .car-edit-popup .verification-status {
    border: 0;
    border-radius: 12px;
    background: var(--ev2s-soft);
}

/* RCA policy link */
.ev2-shell .car-edit-popup .rca-link {
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: var(--ev2s-ok-bg);
    color: #166534 !important;
    font-size: 14px;
    font-weight: 700;
}

.ev2-shell .car-edit-popup .rca-link i {
    color: inherit !important;
}

[data-theme="dark"] .ev2-shell .car-edit-popup .rca-link {
    color: #86efac !important;
}

/* Detected vehicle data (missing chassis flow) */
.ev2-shell .car-edit-popup .detected-data {
    padding: 16px;
    border: 1px solid var(--ev2s-border);
    border-radius: 16px;
    background: var(--ev2s-soft);
}

.ev2-shell .car-edit-popup .detected-data h4 {
    color: var(--ev2s-text) !important;
    font-size: 15px;
    font-weight: 800;
}

.ev2-shell .car-edit-popup .data-item {
    border: 0;
    border-radius: 11px;
    background: var(--ev2s-card);
}

.ev2-shell .car-edit-popup .data-label {
    color: var(--ev2s-muted) !important;
}

.ev2-shell .car-edit-popup .data-value {
    color: var(--ev2s-text) !important;
}

.ev2-shell .car-edit-popup .confirmation-question {
    border-top-color: var(--ev2s-border);
}

.ev2-shell .car-edit-popup .confirmation-question p {
    color: var(--ev2s-text-2) !important;
}

.ev2-shell .car-edit-popup .btn-confirm-yes,
.ev2-shell .car-edit-popup .btn-confirm-no {
    justify-content: center;
    min-width: 110px;
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    font-family: var(--ev2s-font);
    font-size: 14.5px;
    font-weight: 700;
    transform: none;
}

.ev2-shell .car-edit-popup .btn-confirm-yes {
    background: var(--ev2s-grad);
    box-shadow: 0 6px 16px rgba(236, 67, 32, .28);
}

.ev2-shell .car-edit-popup .btn-confirm-no {
    background: var(--ev2s-soft-2);
    color: var(--ev2s-text-2) !important;
}

.ev2-shell .car-edit-popup .btn-confirm-yes i,
.ev2-shell .car-edit-popup .btn-confirm-no i {
    color: inherit !important;
}

/* Save / reprocess / delete */
.ev2-shell .car-edit-popup .action-buttons {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px !important;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--ev2s-border);
}

.ev2-shell .car-edit-popup .action-buttons:has(.btn-reprocess) {
    grid-template-columns: 1.3fr 1.25fr .95fr;
}

.ev2-shell .car-edit-popup .action-buttons button {
    min-width: 0;
    width: auto !important;
    height: 46px;
    padding: 0 12px !important;
    gap: 8px !important;
    border: 0;
    border-radius: 12px;
    font-family: var(--ev2s-font);
    font-size: 14px !important;
    font-weight: 700;
}

.ev2-shell .car-edit-popup .action-buttons button i {
    color: inherit !important;
    font-size: 13px !important;
}

.ev2-shell .car-edit-popup .action-buttons .btn-save {
    background: var(--ev2s-grad);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(236, 67, 32, .28);
}

.ev2-shell .car-edit-popup .action-buttons .btn-reprocess {
    background: var(--ev2s-soft);
    color: var(--ev2s-text-2) !important;
}

.ev2-shell .car-edit-popup .action-buttons .btn-delete {
    background: transparent;
    box-shadow: inset 0 0 0 1px #f6c4c4;
    color: #dc2626 !important;
}

[data-theme="dark"] .ev2-shell .car-edit-popup .action-buttons .btn-delete {
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .4);
    color: #f87171 !important;
}

@media (hover: hover) {
    .ev2-shell .car-edit-popup .action-buttons .btn-save:hover {
        filter: brightness(1.05);
        background: var(--ev2s-grad);
    }

    .ev2-shell .car-edit-popup .action-buttons .btn-reprocess:hover {
        background: var(--ev2s-soft-2);
        color: var(--ev2s-text) !important;
    }

    .ev2-shell .car-edit-popup .action-buttons .btn-delete:hover {
        background: #dc2626;
        box-shadow: none;
        color: #fff !important;
    }
}

@media (max-width: 500px) {
    .ev2-shell .car-edit-popup .action-buttons,
    .ev2-shell .car-edit-popup .action-buttons:has(.btn-reprocess) {
        grid-template-columns: 1fr 1fr;
    }

    .ev2-shell .car-edit-popup .action-buttons:has(.btn-reprocess) .btn-save {
        grid-column: 1 / -1;
    }

    .ev2-shell .ev2-ce-ic {
        width: 44px;
        height: 44px;
    }

    .ev2-shell .ev2-ce-plate {
        font-size: 23px;
    }
}
