/* Add New Vehicle (design 9) */
.vs2-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.vs2-head h1 { margin: 0; font-size: 24px; font-weight: 800; }
.vs2-head p { margin: 3px 0 0; color: var(--text-dim); font-size: 13px; }

.vs2-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.vs2-card { padding: 16px 18px 14px; position: relative; overflow: visible; }
.vs2-cardhead { display: grid; grid-template-columns: 56px 1fr; gap: 10px 14px; align-items: end; }
.vs2-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vs2-ico { width: 52px; height: 44px; display: flex; align-items: center; justify-content: center; }
.vs2-ico img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vs2-h { font-size: 16px; font-weight: 800; margin-bottom: 7px; }
.vs2-f label { font-size: 12px; }
.vs2-row { display: flex; gap: 14px; margin-top: 12px; }
.vs2-row .field { width: 130px; }
.vs2-row .field.vs2-grow { flex: 1; width: auto; }
.vs2-stage { position: relative; margin-top: 8px; min-height: 178px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.vs2-big { max-width: 60%; max-height: 190px; object-fit: contain; display: block; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.5)); }
.vs2-sum { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; min-width: 200px; background: rgba(2, 20, 37, 0.55); align-self: center; }
.vs2-sum .t { font-weight: 800; font-size: 14px; margin-bottom: 8px; line-height: 1.25; }
.vs2-sum .r { display: flex; justify-content: space-between; gap: 22px; font-size: 13px; padding: 3px 0; color: var(--text-dim); }
.vs2-sum .r b { color: var(--text); }

/* dropdown */
.dd { position: relative; }
.dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; }
.dd-btn:hover, .dd.open .dd-btn { border-color: var(--accent); }
.dd-btn svg { width: 14px; height: 14px; color: var(--text-dim); flex: none; transition: transform 0.15s; }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-list { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; z-index: 60; background: #04213a; border: 1px solid var(--accent); border-radius: 10px; padding: 4px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 18px rgba(30, 130, 255, 0.25); }
.dd.open .dd-list { display: block; }
.dd-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.dd-item:hover { background: #07304f; }
.dd-item.sel { background: linear-gradient(90deg, #1471e0, #0d58b8); }
.dd-item .di-img { width: 78px; height: 36px; display: flex; align-items: center; justify-content: center; flex: none; }
.dd-item .di-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dd-item .di-img svg { width: 28px; height: 28px; color: var(--text-dim); }
.dd-item .di-t { font-weight: 700; font-size: 13.5px; }
.dd-item .di-d { font-size: 11.5px; color: var(--text-dim); margin-top: 1px; }
.dd-item.sel .di-d { color: rgba(255, 255, 255, 0.78); }

/* axle configuration */
.vs2-mid { display: grid; grid-template-columns: 3.2fr 1fr; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.vs2-axle { padding: 16px 18px; }
.vs2-custom { font-size: 12px; font-weight: 600; color: var(--text-dim); margin-left: auto; display: flex; align-items: center; gap: 6px; }
.vs2-custom select { background: var(--bg-input); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 4px 6px; }
.vs2-rigwrap { position: relative; min-height: 120px; margin: 0; overflow: hidden; }
.vs2-rigwrap .rig-compose, .vs2-rigwrap .rig-side { position: absolute; left: 0; bottom: 0; }
.vs2-mk { position: absolute; top: 0; width: 0; bottom: 6px; display: flex; flex-direction: column; align-items: center; pointer-events: none; --c: var(--green); }
.vs2-mk .n { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--c); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: rgba(2, 20, 37, 0.8); box-shadow: 0 0 10px var(--c); flex: none; transform: translateX(0); }
.vs2-mk .l { flex: 1; width: 2px; background: var(--c); box-shadow: 0 0 6px var(--c); }
.vs2-mk .d { width: 11px; height: 11px; border-radius: 50%; background: var(--c); border: 2px solid #fff; position: absolute; bottom: -5px; }
.vs2-tirerow { position: relative; height: 84px; margin-top: 4px; }
.vs2-tcol { position: absolute; top: 0; width: 96px; transform: translateX(-50%); text-align: center; border: 1px solid var(--border); border-radius: 8px; padding: 7px 6px 8px; background: rgba(2, 20, 37, 0.6); }
.vs2-tcol b { display: block; font-size: 12.5px; }
.vs2-tcol span { display: block; font-size: 11px; color: var(--text-dim); margin-bottom: 5px; }
.vs2-tcol select { width: 100%; background: var(--bg-input); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 5px 4px; font-size: 12.5px; }
.vs2-tcol i { display: block; font-style: normal; font-size: 11px; color: var(--text-dim); margin-top: 3px; }

.vs2-weights, .vs2-psi { padding: 16px 18px; }
.vs2-wrow { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.vs2-wrow .b { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #04213a; flex: none; }
.vs2-wrow span.nm { flex: 1; font-size: 13.5px; }
.vs2-wrow input, .vs2-psirow input { width: 104px; background: var(--bg-input); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 8px 10px; font-size: 13.5px; text-align: left; }
.vs2-psirow { display: flex; align-items: center; justify-content: space-between; margin: 12px 0; font-size: 14px; }
.vs2-psirow input { width: 110px; }

.vs2-bottom { display: grid; grid-template-columns: 1.7fr 1.15fr 0.7fr; gap: 16px; align-items: stretch; }
.vs2-summary { padding: 16px 20px; }
.vs2-sumgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; }
.vs2-sumline { display: flex; align-items: center; gap: 14px; margin: 8px 0; font-size: 14px; }
.vs2-sumline img { width: 60px; height: 34px; object-fit: contain; flex: none; }
.vs2-sumline .text-dim { font-size: 12.5px; margin-top: 2px; }
.vs2-sumnums { border-left: 1px solid var(--border); padding-left: 22px; }
.vs2-sumnums div { display: flex; justify-content: space-between; font-size: 13.5px; margin: 7px 0; color: var(--text-dim); }
.vs2-sumnums b { color: var(--text); }
.vs2-valid { border: 1.5px solid var(--green); border-radius: 12px; background: rgba(34, 197, 94, 0.10); padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.vs2-valid.bad { border-color: var(--yellow); background: rgba(234, 179, 8, 0.10); }
.vs2-valid .vi { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.vs2-valid.bad .vi { background: var(--yellow); color: #221a00; }
.vs2-valid .vi svg { width: 24px; height: 24px; }
.vs2-valid .vt { font-weight: 800; font-size: 17px; color: var(--green); }
.vs2-valid.bad .vt { color: var(--yellow); }
.vs2-valid .vd { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
.vs2-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.vs2-actions .btn { padding: 14px 24px; font-size: 14.5px; font-weight: 700; }
.vs2-saved { display: none; align-items: center; gap: 12px; padding: 12px 16px; border: 1.5px solid var(--green); border-radius: 10px; background: rgba(34, 197, 94, 0.10); margin-top: 14px; }
.vs2-saved.show { display: flex; }

/* ---- 1. Select Truck Type (matches the reference layout) ---- */
.vt-card { padding: 16px 18px 14px; min-height: 330px; display: flex; flex-direction: column; }
.vt-top { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 18px; align-items: start; }
.vt-titlerow { display: flex; align-items: flex-start; gap: 12px; }
.vt-icon { flex: none; color: #7fa6d6; margin-top: 0; }
.vt-icon svg { stroke-width: 1.6; }
.vt-titlebox { flex: 1; min-width: 0; }
.vt-title { font-size: 15.5px; font-weight: 800; margin-bottom: 8px; white-space: nowrap; }
.vt-card .dd-btn { padding: 8px 11px; font-size: 12.5px; border-radius: 5px; background: rgba(2, 27, 49, 0.9); white-space: nowrap; }
.vt-card .dd-list { min-width: 0; width: 262px; top: calc(100% + 6px); border-radius: 10px; padding: 3px; background: rgba(4, 27, 50, 0.97); backdrop-filter: blur(6px); border-color: rgba(60, 150, 255, 0.55); }
.vt-card .dd-item { padding: 5px 10px; gap: 10px; border-radius: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.vt-card .dd-item:last-child { border-bottom: none; }
.vt-card .dd-item .di-img { width: 72px; height: 34px; }
.vt-card .dd-item .di-t { font-size: 12.5px; }
.vt-card .dd-item .di-d { font-size: 10.5px; }
.vt-card .dd-item.sel { background: linear-gradient(90deg, #1877e8, #0f5ec9); }
.vt-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vt-row3 { display: grid; grid-template-columns: 1.1fr 1fr 0.78fr; gap: 10px; }
.vt-row2 { display: grid; grid-template-columns: 0.55fr 1.6fr; gap: 10px; }
.vt-card .field { min-width: 0; }
.vt-card .field label { font-size: 11.5px; font-weight: 500; color: #c9d8ee; margin-bottom: 1px; white-space: nowrap; }
.vt-card .field select, .vt-card .field input { width: 100%; font-size: 12.5px; padding: 8px 9px; border-radius: 5px; background: rgba(2, 27, 49, 0.9); }
.vt-stage { position: relative; flex: 1; display: flex; align-items: flex-end; margin-top: 4px; min-height: 190px; }
.vt-big { width: 60%; max-height: 190px; object-fit: contain; object-position: left bottom; display: block; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.55)); }
.vt-info { flex: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; align-self: center; padding-bottom: 20px; min-width: 0; }
.vt-name { font-size: 13.5px; font-weight: 800; line-height: 1.25; margin-top: 6px; }
.vt-sum { border: 1px solid rgba(120, 165, 220, 0.4); border-radius: 7px; padding: 9px 12px; min-width: 128px; background: rgba(2, 20, 37, 0.45); }
.vt-sum .r { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; padding: 3px 0; }
.vt-sum .r b { font-weight: 700; }

/* trailer card (block 2): same grid as the truck card so both rows line up */
.vt-icon { width: 46px; height: 34px; display: flex; align-items: center; justify-content: flex-start; }
.vt-icon svg, .vt-icon img { width: 100%; height: auto; max-height: 34px; display: block; }
.vt-rowtr1 { grid-template-columns: 1.1fr 1fr 0.78fr; }
.vt-rowtr1 .field:first-child { grid-column: span 2; }
.vt-big-tr { width: 56%; }

/* bottom row: bigger summary / validation / buttons (scales with the screen) */
.vs2-bottom { grid-template-columns: 1.8fr 1.1fr 0.75fr; gap: clamp(12px, 1vw, 20px); }
.vs2-summary { padding: clamp(16px, 1.3vw, 26px) clamp(18px, 1.5vw, 30px); }
.vs2-summary .vs2-h { font-size: clamp(15px, 1vw, 20px); margin-bottom: 6px; }
.vs2-sumgrid { gap: clamp(16px, 1.4vw, 28px); }
.vs2-sumline { gap: clamp(12px, 1vw, 20px); margin: clamp(10px, 0.8vw, 16px) 0; font-size: clamp(13px, 0.9vw, 18px); }
.vs2-sumline img { width: clamp(70px, 6vw, 120px); height: clamp(34px, 2.8vw, 56px); }
.vs2-sumline .text-dim { font-size: clamp(11.5px, 0.75vw, 15px); margin-top: 4px; }
.vs2-sumnums { padding-left: clamp(16px, 1.5vw, 30px); }
.vs2-sumnums div { font-size: clamp(12.5px, 0.85vw, 17px); margin: clamp(9px, 0.7vw, 14px) 0; }
.vs2-valid { padding: clamp(16px, 1.3vw, 26px) clamp(16px, 1.4vw, 28px); gap: clamp(12px, 1vw, 20px); border-radius: 14px; }
.vs2-valid .vi { width: clamp(42px, 3vw, 60px); height: clamp(42px, 3vw, 60px); }
.vs2-valid .vi svg { width: clamp(24px, 1.6vw, 32px); height: clamp(24px, 1.6vw, 32px); }
.vs2-valid .vt { font-size: clamp(16px, 1.15vw, 23px); }
.vs2-valid .vd { font-size: clamp(12px, 0.75vw, 15px); margin-top: 5px; }
.vs2-actions { flex-direction: column; align-items: stretch; justify-content: center; gap: clamp(10px, 0.7vw, 14px); }
.vs2-actions .btn { padding: clamp(13px, 1vw, 20px) 24px; font-size: clamp(14px, 0.9vw, 18px); border-radius: 10px; width: 100%; }

/* axle columns under the rig now hold the legal weight of each axle */
.vs2-tcol { border-top: 2px solid var(--c, var(--border)); }
.vs2-tcol input { width: 100%; box-sizing: border-box; background: var(--bg-input); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 6px 4px; font-size: 13px; font-weight: 700; text-align: center; }
.vs2-tcol input:focus { outline: none; border-color: var(--accent); }

/* axle markers: just a numbered dot on each wheel hub */
.vs2-dot { position: absolute; width: 22px; height: 22px; margin: 0 0 -11px -11px; border-radius: 50%; border: 2px solid var(--c); background: rgba(2, 20, 37, 0.85); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 8px var(--c); pointer-events: none; z-index: 3; }

/* tire pressure settings: Min / Max per tire group */
.vs2-psihead, .vs2-psirow { display: grid; grid-template-columns: 1fr 64px 64px; gap: 8px; align-items: center; }
.vs2-psihead { font-size: 11px; font-weight: 700; color: var(--text-dim); text-align: center; margin: 8px 0 0; }
.vs2-psirow { margin: 9px 0; font-size: 13.5px; }
.vs2-psirow input { width: 100%; box-sizing: border-box; padding: 7px 4px; text-align: center; font-weight: 700; }
.vs2-psirow input:focus { outline: none; border-color: var(--accent); }
.vs2-psihint { font-size: 11px; color: var(--text-faint); margin-top: 6px; }

.vs2-sub { font-size: 12px; font-weight: 500; color: var(--text-dim); margin-left: 6px; }

/* dimensions panel */
.vs2-geo { padding: 16px 18px; margin-bottom: 16px; }
.vs2-geogrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 16px; margin-top: 10px; align-items: end; }
.vs2-geogrid label { font-size: 12px; color: var(--text-dim); display: flex; flex-direction: column; gap: 4px; }
.vs2-geogrid input { background: var(--bg-input); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 8px 10px; font-size: 13.5px; font-weight: 700; }
.vs2-geogrid input:focus { outline: none; border-color: var(--accent); }
@media (max-width: 1100px) { .vs2-geogrid { grid-template-columns: repeat(2, 1fr); } }
