/* EVBro — Vehicle sheet (Ajustes → Coche).
   Standalone sheet: the load ORDER (templates/index.html) follows the original cascade; do not change it. */

.vp-photo-card { padding: 14px; margin-bottom: 12px; }
.vp-photo { aspect-ratio: 16 / 7; border-radius: 14px; overflow: hidden; background: var(--bg-glass-inset); display: flex; align-items: center; justify-content: center; }
.vp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-photo-empty { color: var(--text-muted); font-weight: 600; }
.vp-photo-actions { display: flex; gap: 10px; margin: 12px 0 6px; flex-wrap: wrap; }
.vp-photo-actions button { flex: 1 1 150px; min-height: 44px; }

.vp-form { display: flex; flex-direction: column; gap: 14px; }
.vp-section { --tone: var(--accent-bright); padding: 6px 16px 12px; margin: 0; border-left: 4px solid var(--tone); }
.vp-section[data-tone="blue"] { --tone: #0a84ff; } .vp-section[data-tone="green"] { --tone: #30d158; } .vp-section[data-tone="violet"] { --tone: #bf5af2; }
.vp-section[data-tone="amber"] { --tone: #ff9f0a; } .vp-section[data-tone="cyan"] { --tone: #64d2ff; }
.vp-section-title { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 44px; font-size: 1rem; font-weight: 700; color: var(--text-primary); cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.vp-section-title::-webkit-details-marker { display: none; }
.vp-section[open] > .vp-section-title { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.vp-chev { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--text-secondary); border-bottom: 2px solid var(--text-secondary); transform: rotate(45deg); transition: transform 0.15s ease; }
.vp-section[open] > .vp-section-title .vp-chev { transform: rotate(-135deg); }
.vp-fold-bar { display: flex; justify-content: flex-end; gap: 8px; }
.vp-fold-bar button { min-height: 36px; padding: 0 12px; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); background: none; border: 1px solid var(--border-color); border-radius: 10px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .vp-chev { transition: none; } }
.vp-section-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, transparent); }
.vp-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.vp-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vp-field > span { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.vp-field .form-control { width: 100%; box-sizing: border-box; min-height: 44px; }
.vp-field .form-control[readonly] { opacity: 0.75; font-family: monospace; }
.vp-field .form-control[hidden] { display: none; }
#vpVin { font-family: monospace; }
.vp-hint { display: block; font-size: 0.74rem; line-height: 1.35; color: var(--text-muted); }
.vp-actions { padding-top: 14px; }
.vp-actions button { width: 100%; min-height: 48px; }
@media (min-width: 560px) {
  .vp-grid { grid-template-columns: 1fr 1fr; }
  .vp-wide { grid-column: 1 / -1; }
}

/* Roadside assistance phone with a call button next to it (tel:) */
.vp-phone-row { display: flex; align-items: center; gap: 0.4rem; }
.vp-phone-row .form-control { flex: 1; min-width: 0; }
.vp-call { flex-shrink: 0; width: var(--tap, 44px); height: var(--tap, 44px); display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--accent-green); }
.vp-call[hidden] { display: none; }

/* GPS position (Traccar) */
.vp-status { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; font-size: 0.84rem; background: var(--surface-secondary); border: 1px solid var(--border-color); color: var(--text-secondary); }
.vp-status[data-tone="ok"] { color: var(--accent-green, #30d158); border-color: currentColor; }
.vp-status[data-tone="bad"] { color: var(--accent-red, #ff453a); border-color: currentColor; }
.vp-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.9rem; }
.vp-check input { width: 20px; height: 20px; accent-color: var(--accent-bright); flex: none; }
.vp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
#trDevice { min-width: 0; flex: 1 1 auto; }

/* Car book */
.vp-book-btn { margin-right: auto; font-weight: 700; }
.book-sections { display: grid; gap: 6px; margin: 10px 0; }
.book-sections label { display: flex; align-items: flex-start; gap: 10px; min-height: 36px; font-size: 0.9rem; line-height: 1.35; }
.book-sections input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--accent-bright); }
.book-quick { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 4px; }
