/* VehicleUI — کامپوننت‌های مشترک نمایش خودرو (پلاک/تصویر/رنگ). مشترک بین ناحیه‌ی کاربر و سرویس‌دهنده.
   مستند طراحی: ../../../../Doc/ui-vehicle-components.md */

/* ---------- تصویر خودرو ---------- */
.v-car { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.v-car-svg { width: 78%; height: auto; display: block; filter: drop-shadow(0 8px 14px rgba(15, 23, 42, .16)); }
.v-car-body { transition: fill .25s ease; }
.v-car-photo { width: 100%; height: 100%; object-fit: cover; }
.v-car-sm { height: 120px; }
.v-car-sm .v-car-svg { width: 70%; }
.v-car-lg { height: 250px; }

/* ---------- پلاک واقع‌نمای فقط‌خواندنی ---------- */
.v-plate { direction: ltr; display: inline-flex; align-items: stretch; background: #fff; border: 2px solid #111827; border-radius: 9px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); vertical-align: middle; max-width: 100%; }
.v-plate-main { display: flex; align-items: center; gap: 6px; padding: 6px 9px; }
.v-plate-cell { text-align: center; font-weight: 800; font-size: 22px; line-height: 1; color: #111827; font-family: 'Vazirmatn', 'IRANSans', sans-serif; }
.v-plate-letter { color: #0b3d91; }
.v-plate-region { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #0b3d91; color: #fff; padding: 4px 8px; }
.v-plate-flag { display: flex; flex-direction: column; width: 20px; height: 13px; border-radius: 2px; overflow: hidden; }
.v-plate-flag i { flex: 1; display: block; }
.v-plate-flag i:nth-child(1) { background: #16a34a; }
.v-plate-flag i:nth-child(2) { background: #fff; }
.v-plate-flag i:nth-child(3) { background: #dc2626; }
.v-plate-region-num { background: #fff; color: #111827; border-radius: 3px; font-weight: 800; font-size: 16px; line-height: 1.1; padding: 1px 5px; min-width: 26px; text-align: center; }
.v-plate-ir { font-size: 11px; font-weight: 700; }

/* نسخه‌ی کوچک (برای جدول‌ها و ردیف‌های فشرده) */
.v-plate-sm { border-width: 1.5px; border-radius: 7px; }
.v-plate-sm .v-plate-main { padding: 3px 6px; gap: 4px; }
.v-plate-sm .v-plate-cell { font-size: 15px; }
.v-plate-sm .v-plate-region { padding: 2px 5px; }
.v-plate-sm .v-plate-flag { width: 15px; height: 10px; }
.v-plate-sm .v-plate-region-num { font-size: 12px; min-width: 20px; }
.v-plate-sm .v-plate-ir { font-size: 9px; }

/* ---------- سوآچ رنگ ---------- */
.v-color { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; }
.v-color-dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); flex: 0 0 16px; }
.v-color-light .v-color-dot { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .30); }
.v-color-name { font-weight: 500; }

@media (max-width: 480px) {
    .v-plate-cell { font-size: 19px; }
    .v-plate-region-num { font-size: 14px; }
}
