/* Thẻ xe dùng chung cho app thật và bản demo trên website (vehicle-card-view.mjs) */
.vc-card{min-width:0;display:flex;flex-direction:column;border:1px solid #d7e1ec;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 4px 16px #102a4306}
.vc-card.partner::before{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:#9a65d1;z-index:3}
.vc-photo{margin:0;position:relative;aspect-ratio:4/3;background:#f3f2ed center/contain no-repeat;display:flex;align-items:center;justify-content:center;text-align:center;color:#6b7c8d;font-size:14px;padding:8px}
.vc-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.vc-photo.can-change{cursor:pointer;outline:none}
.vc-photo.can-change:hover,.vc-photo.can-change:focus-visible{box-shadow:inset 0 0 0 2px #1677ff}
.vc-photo.can-change[style*="background-image"]::after{content:'Đổi ảnh';position:absolute;right:10px;bottom:10px;padding:4px 10px;border-radius:999px;background:rgba(20,48,73,.82);color:#fff;font-size:12px;font-weight:600;opacity:0;transition:opacity .16s}
.vc-photo.can-change:hover::after,.vc-photo.can-change:focus-visible::after{opacity:1}
.vc-body{padding:18px 18px 16px;display:flex;flex-direction:column;gap:0;flex:1}
.vc-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:#52667a}
.vc-head b{background:#eaf3ff;color:#1655a4;padding:4px 9px;border-radius:6px;white-space:nowrap}
.vc-body h2{font-size:18px;line-height:1.35;letter-spacing:-.02em;margin:10px 0 6px;color:#102a43;text-wrap:balance}
.vc-op{font-style:normal;font-size:12px;font-weight:700;margin-left:8px;padding:3px 8px;border-radius:999px;background:#FFF4E5;color:#8A5200;vertical-align:middle;white-space:nowrap}
.vc-specs{font-size:14px;line-height:1.7;color:#52667a;margin:0 0 12px}
.vc-state{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;font-size:14px;margin:0 0 12px}
.vc-state i{width:9px;height:9px;border-radius:50%;background:#16845B;flex:none}
.vc-state.blue i{background:#1677FF}.vc-state.amber i{background:#F0A04B}.vc-state.red i{background:#E5484D}
.vc-state{min-height:40px;align-content:flex-start}.vc-state b{color:#27394B}.vc-state span{color:#5B6F82;font-size:12px;flex-basis:100%}
.vc-rates{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid #e8eef5;padding-top:12px;font-size:12px;color:#52667a}
.vc-rates b{display:block;font-size:16px;color:#102a43;margin-top:3px;font-variant-numeric:tabular-nums}
.vc-util{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin-top:14px;color:#52667a}.vc-util b{color:#1677ff}
.vc-track{height:6px;background:#eaf0f7;border-radius:8px;margin:7px 0 14px;overflow:hidden}.vc-track i{display:block;height:100%;background:#1677ff;border-radius:8px}
.vc-fin{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#f4f8fc;border-radius:10px;padding:12px;margin-top:2px}
.vc-fin span{display:block;font-size:12px;color:#52667a;line-height:1.4}
.vc-fin strong{display:block;font-size:18px;line-height:1.5;font-variant-numeric:tabular-nums;letter-spacing:-.03em;color:#102a43}
.vc-fin .pos strong{color:#16845b}.vc-fin .neg strong{color:#B3261E}
.vc-margin{font-size:12px;display:flex;gap:5px;flex-wrap:wrap;line-height:1.6;margin:8px 0 12px;color:#52667a}.vc-margin b{color:#16845b}.vc-margin span{margin-left:auto}
/* Cảnh báo thiếu thông tin: dấu nhỏ trên ảnh, chi tiết nằm trong biểu mẫu sửa xe */
.vc-card{position:relative}
.vc-flag{position:absolute;top:10px;right:10px;z-index:2;border:0;border-radius:999px;padding:5px 11px;background:#FFF4E5;color:#8A5200;font:inherit;font-size:12px;font-weight:700;box-shadow:0 1px 6px #10294322;cursor:pointer}
.vc-flag::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#E08A00;margin-right:6px}
.vc-flag.off{cursor:default}
.vc-flag:not(.off):hover{background:#FFE8C7}
.vc-actions{display:flex;gap:8px;margin-top:auto;padding-top:10px}.vc-actions .btn{flex:1;justify-content:center;white-space:nowrap}
@media(max-width:720px){.vc-body{padding:16px}.vc-fin strong{font-size:18px}}

/* VEH-03: ba nút Sửa, Ngưng sử dụng, Xóa phân biệt bằng màu; tên xe bấm để xem chi tiết */
.vc-act.edit{background:#EAF3FF;border-color:#9CC4FA;color:#0F4FA8}.vc-act.edit:hover{background:#D8E9FF}
.vc-act.pause{background:#FFF4E5;border-color:#F0CE96;color:#8A5006}.vc-act.pause:hover{background:#FFE9C7}
.vc-act.on{background:#EAF7F0;border-color:#9BD3B7;color:#116846}.vc-act.on:hover{background:#D7F0E3}
.vc-act.del{background:#FFF0F1;border-color:#F0B8BB;color:#A32930}.vc-act.del:hover{background:#FFDFE1}
.vc-title{all:unset;cursor:pointer;color:inherit;font:inherit;display:inline;border-radius:4px}.vc-title:hover{text-decoration:underline;text-underline-offset:3px}.vc-title:focus-visible{outline:2px solid #1677FF;outline-offset:2px}
@media(max-width:380px){.vc-actions{flex-wrap:wrap}.vc-actions .btn{flex:1 1 30%}}

/* Gọn thẻ xe: chưa có ảnh thì thu ô ảnh còn thanh thấp; nút phụ gom vào menu "Thêm". */
.vc-photo.vc-photo-empty{aspect-ratio:auto;min-height:72px;height:72px}
.vc-actions{align-items:stretch}.vc-more{position:relative;flex:1}.vc-more>summary{list-style:none;width:100%;box-sizing:border-box;justify-content:center;cursor:pointer}.vc-more>summary::-webkit-details-marker{display:none}
.vc-act.more{background:#fff;border-color:#C9D6E3;color:#2A4054}
.vc-menu{position:absolute;right:0;bottom:calc(100% + 6px);z-index:20;min-width:170px;padding:6px;background:#fff;border:1px solid #D6E0EA;border-radius:10px;box-shadow:0 10px 30px rgba(15,40,70,.16);display:grid;gap:2px}
.vc-item{appearance:none;border:0;background:transparent;text-align:left;font:inherit;font-size:14px;min-height:40px;padding:0 12px;border-radius:8px;cursor:pointer;color:#16283A}
.vc-item:hover{background:#EEF3F8}.vc-item.del{color:#A32930}.vc-item.del:hover{background:#FFF0F1}.vc-item.pause{color:#8A5006}.vc-item.on{color:#116846}
.vc-photo.vc-photo-empty{justify-content:flex-start;padding:8px 16px}
