/* =========================================================
   EBADI VEHICLES — UI V2 / PAGE 01
   Uses the same shared chrome and visual tokens as approved Home.
========================================================= */
body.ebadi-vehicles-page.ebadi-ui-v2{margin:0!important;background:#fff!important;color:var(--eb-ui-text)!important;overflow-x:hidden}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicles-app{width:100%!important;min-height:auto!important;margin:0!important;padding:0!important;background:#fff!important}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicles-header{display:none!important}

.vehicles-v2-add{position:relative;display:flex;min-height:82px;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border:1px solid #eadbbd;border-radius:15px;background:var(--eb-surface-soft);color:var(--eb-ui-text);text-decoration:none;box-shadow:0 4px 12px rgba(111,80,34,.045);overflow:hidden}
.vehicles-v2-add:before{content:"";position:absolute;left:-25px;top:-30px;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.42)}
.vehicles-v2-add__copy{position:relative;z-index:1;display:flex;min-width:0;flex-direction:column;align-items:flex-start;text-align:right}
.vehicles-v2-add__copy strong{color:#272522;font-size:14px;font-weight:900;line-height:1.4}
.vehicles-v2-add__copy small{max-width:290px;margin-top:2px;color:#7c746c;font-size:11px;font-weight:600;line-height:1.55}
.vehicles-v2-add__icon{position:relative;z-index:1;display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border-radius:50%;background:var(--eb-ui-gold-2);color:#171b20!important;box-shadow:0 6px 14px rgba(198,143,45,.20)}
.vehicles-v2-add__icon svg{width:20px;height:20px;fill:none;stroke:#171b20!important;stroke-width:2;stroke-linecap:round}

.vehicles-v2-list{display:grid;gap:10px}
.vehicle-v2-card{position:relative;overflow:hidden;}
.vehicle-v2-card.is-default{border-color:#e6c98f}
.vehicle-v2-card__hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 43%;min-height:148px;padding:13px;background:var(--eb-surface-soft);overflow:hidden}
.vehicle-v2-card__hero:after{content:"";position:absolute;top:-55px;left:-45px;width:170px;height:170px;border-radius:50%;background:rgba(255,255,255,.46)}
.vehicle-v2-card__copy{position:relative;z-index:2;display:flex;min-width:0;flex-direction:column;align-items:flex-start;text-align:right;padding:1px 0 1px 2px}
.vehicle-v2-card__default-badge{display:inline-flex;align-items:center;gap:4px;min-height:23px;padding:0 8px;border:1px solid #ead8b7;border-radius:999px;background:#f9eed9;color:#a8792c;font-size:11px;font-weight:850;white-space:nowrap}
.vehicle-v2-card__default-badge svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.7}
.vehicle-v2-card__copy h3{display:flex;max-width:100%;align-items:center;gap:6px;margin:8px 0 0;color:#202328}
.vehicle-v2-card__copy h3 img{width:21px;height:21px;flex:0 0 21px;object-fit:contain}
.vehicle-v2-card__copy p{margin:2px 0 0;color:#746e67;font-size:11px;font-weight:600;line-height:1.5}
.vehicle-v2-card__plate{display:block;margin-top:8px;max-width:100%}
.vehicle-v2-card__mileage{margin-top:7px;color:#817970;font-size:11px;font-weight:700}
.vehicle-v2-card__mileage bdi{color:#34312d;font-weight:850}
.vehicle-v2-card__image{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:center;min-width:0;text-decoration:none}
.vehicle-v2-card__image img{display:block;width:112%;max-width:none;height:122px;object-fit:contain;filter:drop-shadow(0 10px 10px rgba(48,42,34,.12));transform:translate(-3px,7px)}
.vehicle-v2-card__more{position:absolute;z-index:4;top:10px;left:10px;display:grid;width:31px;height:31px;place-items:center;border:1px solid #e3dbd0;border-radius:10px;background:rgba(255,255,255,.94);color:#373431;box-shadow:0 3px 8px rgba(70,56,35,.05);cursor:pointer}
.vehicle-v2-card__more svg{width:16px;height:16px;fill:currentColor}
.vehicle-v2-card__quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;padding:5px 6px;border-top:1px solid #eee8de;background:#fff}
.vehicle-v2-card__quick a,.vehicle-v2-card__quick button{display:flex;min-width:0;min-height:52px;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 2px;border:0;border-radius:10px;background:transparent;color:#514c46;text-decoration:none;cursor:pointer}
.vehicle-v2-card__quick a:active,.vehicle-v2-card__quick button:active{background:#faf7f2}
.vehicle-v2-card__quick svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vehicle-v2-card__quick span{width:100%;font-size:11px;font-weight:800;line-height:1.3;text-align:center;white-space:nowrap}
.vehicle-v2-card__quick .is-gold{color:var(--eb-primary-pressed)}
.vehicle-v2-card__quick form{margin:0;min-width:0}

.vehicles-v2-empty{display:flex;min-height:220px;flex-direction:column;align-items:center;justify-content:center;padding:24px 18px;border:1px dashed #ddd3c4;border-radius:16px;background:#fff;text-align:center}
.vehicles-v2-empty__icon{display:grid;width:64px;height:64px;place-items:center;border-radius:18px;background:#f9efdf;color:#171b20!important}
.vehicles-v2-empty__icon svg{width:34px;height:34px;fill:none;stroke:#171b20!important;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.vehicles-v2-empty strong{margin-top:13px;color:#25231f;font-size:15px;font-weight:900}
.vehicles-v2-empty p{max-width:260px;margin:4px 0 0;color:#827a71;font-size:12px;font-weight:600;line-height:1.75}
.vehicles-v2-empty .ui-v2-primary{margin-top:14px}

.vehicles-v2-tip{display:flex;align-items:flex-start;gap:9px;margin-top:12px;padding:11px 12px;border:1px solid #eadfce;border-radius:14px;background:#fffaf2;color:#6d6255}
.vehicles-v2-tip>svg{width:18px;height:18px;flex:0 0 18px;margin-top:1px;color:#171b20;fill:none;stroke:currentColor;stroke-width:1.8}
.vehicles-v2-tip span{font-size:11px;font-weight:600;line-height:1.7}
.vehicles-v2-tip strong{display:block;margin-bottom:1px;color:#3d372f;font-size:12px;font-weight:900}

body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-actions-dialog,body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-delete-dialog{width:min(420px,calc(100% - 28px));max-width:none;margin:auto;padding:0;}
body.ebadi-vehicles-page.ebadi-ui-v2 dialog::backdrop{background:rgba(32,28,23,.42);backdrop-filter:blur(4px)}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-actions-dialog__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-bottom:1px solid var(--eb-ui-line)}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-actions-dialog__head>div{display:flex;min-width:0;flex-direction:column;text-align:right}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-actions-dialog__head strong{font-size:14px;font-weight:900}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-actions-dialog__head span{margin-top:2px;color:var(--eb-ui-muted);font-size:11px;font-weight:700}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-actions-dialog__head span.is-default{color:#a77726}

body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-action-row{display:flex;min-height:47px;align-items:center;gap:9px;padding:0 14px;border-bottom:1px solid #f0ebe4;color:#302d29;text-decoration:none;font-size:11px;font-weight:800}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-action-row svg{width:17px;height:17px;fill:none;stroke:#171b20!important;stroke-width:1.8}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-actions-dialog form{margin:0}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-delete-dialog{padding:20px;text-align:center}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-delete-dialog>span{display:grid;width:52px;height:52px;margin:0 auto 11px;place-items:center;border-radius:16px;background:#fff0ed;color:#c55751}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-delete-dialog h3{margin:0}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-delete-dialog p{margin:5px auto 14px;color:#7d756d;font-size:12px;line-height:1.75}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-delete-dialog>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-delete-dialog button{min-height:40px;border:0;border-radius:12px;font-size:12px;font-weight:900;cursor:pointer}
body.ebadi-vehicles-page.ebadi-ui-v2 [data-submit-vehicle-delete]{background:#c85a54;color:#fff}
body.ebadi-vehicles-page.ebadi-ui-v2 [data-cancel-vehicle-delete]{background:#f4f0ea;color:#4d4842}

@media(max-width:380px){
  .vehicle-v2-card__hero{grid-template-columns:minmax(0,1fr) 41%;min-height:142px;padding:11px}.vehicle-v2-card__image img{height:114px}.vehicle-v2-card__quick span{font-size:11px}.vehicles-v2-add{min-height:76px;padding:11px 12px}.vehicles-v2-add__copy strong{font-size:13px}.vehicles-v2-add__copy small{font-size:11px}
}

/* =========================================================
   VEHICLE DOCUMENTS — UI V2 (production feature preserved)
========================================================= */
.vehicles-v2-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 12px;padding:4px;}
.vehicles-v2-tabs a{display:flex;align-items:center;justify-content:center;padding:0 10px;}

.vehicle-documents-notice{margin:0 0 10px;padding:10px 12px;border:1px solid;border-radius:12px;font-size:12px;font-weight:700;line-height:1.6}
.vehicle-documents-notice.is-success{border-color:#cde4d3;background:#f3fbf5;color:#2f6d42}
.vehicle-documents-notice.is-error{border-color:#efd0cc;background:#fff6f5;color:#a54e48}
.vehicle-documents-v2{display:grid;gap:10px}
.vehicle-documents-v2__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:13px;border:1px solid #eadfce;border-radius:15px;background:#fffaf2}
.vehicle-documents-v2__head h2{margin:0;color:#25231f}
.vehicle-documents-v2__head p{margin:3px 0 0;color:#7b746c;font-size:11px;line-height:1.6}
.vehicle-documents-v2__head>span{flex:none;padding:5px 8px;border-radius:999px;background:#f6ead5;color:#a77726;font-size:11px;font-weight:800}
.vehicle-documents-v2__list{display:grid;gap:10px}
.vehicle-documents-v2__card{scroll-margin-top:18px;padding:12px;border:1px solid var(--eb-ui-line);border-radius:16px;background:#fff;box-shadow:0 6px 16px rgba(78,61,36,.045)}
.vehicle-documents-v2__card>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid #f0ebe4}
.vehicle-documents-v2__card>header>div{display:flex;min-width:0;flex-direction:column}
.vehicle-documents-v2__card>header strong{overflow:hidden;color:#25231f;font-size:12px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
.vehicle-documents-v2__card>header small{margin-top:2px;color:#847d75;font-size:11px;font-weight:700}
.vehicle-documents-v2__files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
.vehicle-document-v2{position:relative;overflow:hidden;border:1px solid #eee7dd;border-radius:12px;background:#fbfaf8}
.vehicle-document-v2>a{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:1px 7px;min-height:62px;padding:7px 32px 7px 7px;color:#2f2c28;text-decoration:none}
.vehicle-document-v2>a>img,.vehicle-document-v2>a>span{grid-row:1/3;width:42px;height:42px;border-radius:8px;object-fit:cover}
.vehicle-document-v2>a>span{display:grid;background:#f4e5ca;color:#9a6b22;font-size:12px;font-weight:900;place-items:center}
.vehicle-document-v2 b{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.vehicle-document-v2 small{color:#8a837b;font-size:11px}
.vehicle-document-v2 form{position:absolute;top:5px;right:5px;margin:0}
.vehicle-document-v2 form button{display:grid;width:23px;height:23px;padding:0;border:1px solid #efcfcb;border-radius:7px;background:#fff4f2;color:#bd5d55;font-size:16px;line-height:1;place-items:center}
.vehicle-documents-v2__empty{margin:10px 0 0;padding:14px 9px;border:1px dashed #ddd4c9;border-radius:11px;color:#817970;font-size:11px;text-align:center}
.vehicle-document-v2-upload{display:grid;grid-template-columns:112px minmax(0,1fr);gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid #f0ebe4}
.vehicle-document-v2-upload select,.vehicle-document-v2-upload label,.vehicle-document-v2-upload button{width:100%;min-height:48px;border-radius:12px;font:700 12px var(--eb-font)}
.vehicle-document-v2-upload select{padding:0 8px;border:1px solid #e4ddd4;background:#fff;color:#3c3833}
.vehicle-document-v2-upload label{display:grid;position:relative;overflow:hidden;border:1px dashed #d7b77c;background:#fffaf2;color:#9d7026;cursor:pointer;place-items:center}
.vehicle-document-v2-upload label input{position:absolute;width:1px;height:1px;opacity:0}
.vehicle-document-v2-upload button{grid-column:1/-1;border:1px solid #d3a254;background:#f3dfb8;color:#5f4318;font-weight:900}
@media(max-width:390px){.vehicle-documents-v2__files{grid-template-columns:1fr}.vehicle-document-v2-upload{grid-template-columns:1fr}.vehicle-document-v2-upload button{grid-column:auto}}

html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicles-v2-tabs,
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-documents-v2__card{border-color:#2d3237;background:#171a1d}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicles-v2-tabs a{color:#d5d8da}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicles-v2-tabs a.is-active{background:#29231a;color:#e2b766}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-documents-v2__head{border-color:#403827;background:#211d17}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-documents-v2__head h2,
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-documents-v2__card>header strong{color:#f5f2ec}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-documents-v2__head p,
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-documents-v2__card>header small{color:#aaa49b}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-documents-v2__card>header,
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-document-v2-upload{border-color:#2d3237}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-document-v2{border-color:#2d3237;background:#1b1f22}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-document-v2>a{color:#eef0f1}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-document-v2 small{color:#a6aaad}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-document-v2-upload select{border-color:#343a3f;background:#171a1d;color:#f2f4f5}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-document-v2-upload label{border-color:#6f5936;background:#211d17;color:#d5ad67}
