/* =========================================
   CHECAR®MX — Flotilla Page Styles
   Espejado del sistema de diseño checar-page-styles.css
   Version: 1.0 | 2026
   ========================================= */

html, body { max-width: 100%; overflow-x: hidden; background: #f5f5f5; }

/* Flex truncation helper — must be defined, Bootstrap 5 does not include it */
.min-width-0 { min-width: 0 !important; }

/* ── LAYOUT ─────────────────────────────── */
.flotilla-content {
  padding: 20px 24px;
}
@media (max-width: 767.98px) {
  .flotilla-content { padding: 14px 12px; }
}

/* ── PAGE HEADER ────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-header-left {}
.page-header-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2328;
  margin: 0 0 4px 0;
  line-height: 1.3;
}
.page-header-subtitle {
  font-size: .8rem;
  color: #6c757d;
  margin: 0;
}
.page-breadcrumb {
  font-size: .78rem;
  color: #6c757d;
  margin-bottom: 0;
}
.page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── SECTION TITLE ─────────────────────── */
.section-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #6c757d;
  margin-bottom: 12px;
}

/* ── CARDS ──────────────────────────────── */
.section-card {
  background: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.section-card.card-no-hover:hover {
  transform: none !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

/* ── FORM CARD ──────────────────────────── */
.form-card {
  background: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ── STAT CARDS ─────────────────────────── */
.stat-card {
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
}
.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2328;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: .8rem;
  color: #6c757d;
  margin-top: 4px;
}

/* ── VEHICLE CARDS ──────────────────────── */
.vehicle-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  background: #fff;
}
.vehicle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.vehicle-link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
  position: relative;
}
.vehicle-link:hover,
.vehicle-link:focus,
.vehicle-link:visited {
  color: inherit;
  text-decoration: none;
}
.vehicle-image-wrap {
  width: 100%;
  height: 180px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.vehicle-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vehicle-image-empty {
  color: #adb5bd;
  text-align: center;
  font-size: .85rem;
}

/* ── VEHICLE HERO (DETAIL) ──────────────── */
.vehicle-hero {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.vehicle-hero-image {
  width: 100%;
  height: 280px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vehicle-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── DATA ROWS ──────────────────────────── */
.data-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed #ececec;
  font-size: .92rem;
}
.data-row:last-child {
  border-bottom: 0;
}
.data-label { color: #6c757d; }
.data-value { font-weight: 600; text-align: right; }

/* ── OPERATOR CARDS ─────────────────────── */
.operator-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: center;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.operator-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.operator-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--checar-yellow);
}
.operator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.operator-avatar i {
  font-size: 2.4rem;
  color: var(--checar-yellow);
}
.operator-name {
  font-weight: 700;
  font-size: 1rem;
  color: #1f2328;
  margin: 0 0 4px 0;
}
.operator-info {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-bottom: 16px;
  flex-grow: 1;
  text-align: left;
}
.operator-info-row {
  margin-bottom: 10px;
}
.operator-info-label {
  font-size: .78rem;
  color: #9ca3af;
  margin: 0 0 2px 0;
}
.operator-info-value {
  font-size: .85rem;
  color: #1f2328;
  margin: 0;
  word-break: break-word;
}

/* ── SERVICE CARDS ──────────────────────── */
.service-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  border-color: var(--checar-yellow);
}
.svc-image-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 12px;
}
.svc-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-image-wrap i {
  font-size: 3rem;
  color: var(--checar-yellow);
  opacity: .3;
}
.svc-type-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #1f2328;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fff4c4, #ffca05);
}
.svc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2328;
  margin: 0 0 4px 0;
  line-height: 1.2;
}
.svc-subtitle {
  font-size: .875rem;
  color: #6c757d;
  margin: 0;
}
.svc-meta {
  font-size: .82rem;
  color: #6c757d;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* ── SERVICE GRID ───────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

/* ── PROFILE ─────────────────────────────── */
.profile-card {
  background: white;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: box-shadow .2s ease;
}
.profile-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--checar-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2328;
  flex-shrink: 0;
}
.profile-field {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: .9rem;
}
.profile-field:last-child { border-bottom: none; }
.profile-field-label { font-weight: 600; color: #6c757d; }
.profile-field-value { color: #1f2328; word-break: break-word; }

/* ── SUMMARY CARDS ──────────────────────── */
.summary-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  border: 1px solid #e9ecef;
}
.summary-value {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  color: var(--checar-yellow);
}
.summary-label {
  font-size: .8rem;
  color: #6c757d;
  margin-top: 4px;
}

/* ── TIMELINE ────────────────────────────── */
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 24px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--checar-yellow);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--checar-yellow);
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 5px; top: 28px;
  width: 2px;
  height: calc(100% + 20px);
  background: #e9ecef;
}
.timeline-item:last-child::after { display: none; }
.timeline-content {
  background: white;
  padding: 16px;
  border-radius: 10px;
  border-left: 3px solid var(--checar-yellow);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.timeline-title { font-weight: 700; color: #1f2328; margin-bottom: 4px; font-size: .95rem; }
.timeline-date { font-size: .82rem; color: #9ca3af; margin-bottom: 8px; }
.timeline-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.timeline-photo {
  position: relative;
  width: 100%;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s;
}
.timeline-photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline-photo:hover { transform: scale(1.04); }
.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .18s;
  color: #fff;
  font-size: 1.3rem;
}
.timeline-photo:hover .photo-overlay { opacity: 1; }

/* ── STATUS BADGES ──────────────────────── */
.badge-ok { background: #d1e7dd; color: #0f5132; border-radius: 999px; padding: 4px 12px; font-size: .75rem; font-weight: 700; display: inline-block; }
.badge-warning { background: #fff3cd; color: #856404; border-radius: 999px; padding: 4px 12px; font-size: .75rem; font-weight: 700; display: inline-block; }
.badge-danger { background: #f8d7da; color: #721c24; border-radius: 999px; padding: 4px 12px; font-size: .75rem; font-weight: 700; display: inline-block; }
.badge-info { background: #d1ecf1; color: #0c5460; border-radius: 999px; padding: 4px 12px; font-size: .75rem; font-weight: 700; display: inline-block; }
.badge-yellow { background: var(--checar-yellow); color: #1f2328; border-radius: 999px; padding: 4px 12px; font-size: .75rem; font-weight: 700; display: inline-block; }

/* Badge status — espejo del sistema checar (usado en services.blade y index.blade) */
.badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-completed  { background: #d4edda; color: #155724; }
.badge-proximo    { background: #d1ecf1; color: #0c5460; }
.badge-urgente    { background: #f8d7da; color: #721c24; }

/* ── IMAGE MODAL ────────────────────────── */
.img-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.img-modal-backdrop.active { display: flex; }
.img-modal-box {
  max-width: 860px;
  width: 100%;
  position: relative;
}
.img-modal-box img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  background: #111;
}
.img-modal-close {
  position: absolute;
  top: -42px; right: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

/* ── EMPTY STATE ────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #adb5bd;
}
.empty-state i {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
}
.empty-state-title {
  font-size: 1rem;
  font-weight: 700;
  color: #6c757d;
  margin-bottom: 6px;
}
.empty-state-text { font-size: .88rem; }

/* ── UPLOAD STATUS ──────────────────────── */
.upload-status {
  display: none;
  padding: 12px;
  border-radius: 8px;
  font-size: .9rem;
  margin-top: 12px;
}
.upload-status.success { background: #d1e7dd; color: #0f5132; }
.upload-status.error   { background: #f8d7da; color: #721c24; }

/* ── FILTER / SEARCH STRIP ──────────────── */
.filter-strip {
  background: white;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-strip input,
.filter-strip select {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .9rem;
  background: #fff;
}
.filter-strip input:focus,
.filter-strip select:focus {
  outline: none;
  border-color: var(--checar-yellow);
  box-shadow: 0 0 0 .2rem rgba(255,202,5,.18);
}

/* ── SERVICE CARD (DASHBOARD / LIST) ────── */
.service-card-improved {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 0;
  transition: box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card-improved:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  border-color: var(--checar-yellow);
}
.service-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.service-image-wrapper img  { width: 100%; height: 100%; object-fit: cover; }
.service-image-wrapper i    { font-size: 3.5rem; color: var(--checar-yellow); opacity: .3; }
.service-info {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-header-improved {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.card-title-improved  { font-size: 1rem; font-weight: 700; color: #1f2328; margin: 0 0 4px 0; line-height: 1.2; overflow-wrap: anywhere; }
.card-subtitle-improved { font-size: .875rem; color: #6c757d; margin: 0; }
.card-row-improved {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: .88rem;
}
.card-row-improved:last-of-type { border-bottom: none; padding-bottom: 0; }
.card-label-improved { color: #6c757d; font-weight: 600; }
.card-value-improved  { color: #1f2328; font-weight: 500; }
.card-actions { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.action-btn-improved {
  flex: 1;
  min-width: 60px;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all .2s ease;
  text-decoration: none;
}
.action-btn-primary-improved  { background: var(--checar-yellow); color: #1f2328; }
.action-btn-primary-improved:hover  { background: var(--checar-yellow-dark); box-shadow: 0 2px 8px rgba(255,202,5,.3); color: #1f2328; }
.action-btn-secondary-improved { background: #e7f7f7; color: #0dcaf0; border: 1px solid #bef5ff; }
.action-btn-secondary-improved:hover { background: #d0f0f7; }
.action-btn-info-improved  { background: #cfe2ff; color: #084298; border: 1px solid #b6d4fe; }
.action-btn-info-improved:hover { background: #b6d4fe; }
.action-btn-danger-improved { background: #f8d7da; color: #842029; border: 1px solid #f5c6cb; }
.action-btn-danger-improved:hover { background: #f5c6cb; }

/* ── VEHICLE ACTIONS (LIST) ─────────────── */
.flotilla-actions-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  align-items: stretch !important;
}
.flotilla-actions-row.d-flex {
  display: grid !important;
}
.flotilla-action-btn {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  flex: initial !important;
}

/* ── FILTER STRIP (DASHBOARD) ───────────── */
.filter-section-improved {
  background: white;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.filter-row-improved { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filter-input-improved {
  flex: 1;
  min-width: 140px;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: .9rem;
}
.filter-input-improved:focus {
  outline: none;
  border-color: var(--checar-yellow);
  box-shadow: 0 0 0 .2rem rgba(255,202,5,.18);
}
.filter-btn-improved {
  padding: 8px 16px;
  background: var(--checar-yellow);
  border: none;
  border-radius: 8px;
  color: #1f2328;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s ease;
}
.filter-btn-improved:hover { background: var(--checar-yellow-dark); }

/* ── EMPTY STATE (GRID) ─────────────────── */
.empty-state-improved {
  text-align: center;
  padding: 48px 20px;
  color: #6c757d;
  grid-column: 1 / -1;
}
.empty-state-improved i { font-size: 3rem; display: block; margin-bottom: 12px; opacity: .45; }

/* ── OPERATOR DETAIL — VEHICLE CARDS ────── */
.vehicle-card-container {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.vehicle-card-container:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transform: translateY(-4px);
}
.vehicle-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vehicle-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-image-wrapper i { font-size: 3.5rem; color: var(--checar-yellow); opacity: .3; }
.vehicle-info { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; }
.vehicle-plate { font-weight: 700; font-size: 1.05rem; color: #1f2328; margin: 0; line-height: 1.2; }
.vehicle-model { font-size: .85rem; color: #6c757d; margin: 4px 0 0; }
.vehicle-specs { border-top: 1px solid #f0f0f0; padding-top: 12px; margin-bottom: 12px; font-size: .8rem; flex-grow: 1; }
.spec-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.spec-row:last-child { margin-bottom: 0; }
.spec-label { color: #9ca3af; font-size: .72rem; text-transform: uppercase; font-weight: 600; }
.spec-value { font-weight: 600; color: #1f2328; }
.vehicle-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-action {
  flex: 1;
  padding: 7px 10px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  font-size: .75rem;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.btn-view { background: var(--checar-yellow); color: #1f2328; }
.btn-view:hover { background: var(--checar-yellow-dark); color: #1f2328; }
.btn-reassign { background: #e7f7f7; color: #0dcaf0; border: 1px solid #bef5ff; }
.btn-reassign:hover { background: #d0f0f7; }

/* ── PROFILE EXTRAS ─────────────────────── */
.stat-box { padding: 3px; border-radius: 8px; text-align: center; }
.stat-box-label { font-size: .85rem; color: #6c757d; margin-bottom: 6px; }
.stat-box-value { font-size: 1.4rem; font-weight: 700; color: #1f2328; }
.org-info-card {
  background: linear-gradient(135deg, #fff8d6 0%, #fffaf0 100%);
  border: 1px solid #f4e7a3;
  border-radius: 14px;
}

/* ── VEHICLE WIZARD FORM ────────────────── */
.vehicle-wizard-shell {
  max-width: 760px;
  margin: 0 auto 24px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  border: 1px solid #f0f0f0;
  background: white;
}
.vehicle-wizard-shell.edit-mode { max-width: 100%; }
.vehicle-wizard-shell .step,
.vehicle-form-pane { padding: 0; }
.prog-track {
  width: 100%;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  background: var(--checar-yellow);
  width: 33%;
  transition: width .3s ease;
}
.step-counter { display: flex; gap: 8px; margin-bottom: 24px; justify-content: center; }
.step-pip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e9ecef;
  transition: all .3s ease;
}
.step-pip.active { background: var(--checar-yellow); transform: scale(1.2); }
.step-pip.done { background: #28a745; }
.step-badge {
  display: inline-block;
  background: #f8f9fa;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .75rem;
  color: #666;
  margin-bottom: 12px;
}
.step-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.step-subtitle { color: #666; margin-bottom: 24px; font-size: .95rem; }
.step { display: none; }
.step.active { display: block; }
.carousel-area { margin: 24px 0; }
.carousel-viewport { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.car-track-wrap { flex: 1; overflow: hidden; border-radius: 12px; }
.car-track { display: flex; gap: 12px; transition: transform .3s ease; justify-content: center; }
.veh-card {
  flex: 0 0 auto;
  width: 280px;
  padding: 32px 24px;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all .3s ease;
}
.veh-card:hover { border-color: var(--checar-yellow); }
.veh-card.selected { background: #fffbf0; border-color: var(--checar-yellow); }
.veh-icon { font-size: 8rem; display: block; margin-bottom: 16px; }
.veh-name { font-size: 1rem; font-weight: 600; color: #333; word-break: break-word; }
.car-arrow {
  background: white;
  border: 1px solid #e9ecef;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  color: #666;
}
.car-arrow:hover { background: #f8f9fa; color: var(--checar-yellow); }
.car-dots { display: flex; justify-content: center; gap: 6px; }
.car-dot { width: 8px; height: 8px; border-radius: 50%; background: #e9ecef; cursor: pointer; transition: all .2s; }
.car-dot.active { background: var(--checar-yellow); transform: scale(1.3); }
.swipe-hint { text-align: center; font-size: .8rem; color: #999; margin-top: 12px; }
.veh-selected-display {
  background: #fffbf0;
  border: 1px solid #ffe8c4;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.vsd-icon { font-size: 3rem; line-height: 1; }
.vsd-label { font-size: .85rem; color: #666; }
.vsd-text { font-weight: 700; font-size: 1.1rem; color: #333; }
.btn-next, .btn-submit, .btn-back {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
  margin-top: 8px;
}
.btn-next, .btn-submit { background: var(--checar-yellow); color: #000; }
.btn-next:hover, .btn-submit:hover { background: var(--checar-yellow-dark); transform: translateY(-2px); }
.btn-back { background: #f8f9fa; color: #333; border: 1px solid #e9ecef; }
.btn-back:hover { background: #e9ecef; }
.file-upload-zone {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.file-upload-zone:hover { border-color: var(--checar-yellow); background: #fffbf0; }
.file-upload-zone.is-selected { border-color: #28a745; background: #f0f8f5; }
.file-zone-icon { font-size: 2rem; color: #999; }
.file-zone-title { font-weight: 600; color: #333; }
.file-zone-hint { font-size: .85rem; color: #999; }
.file-zone-name { font-size: .85rem; color: #28a745; font-weight: 600; word-break: break-all; }

/* ── SERVICE FORM ───────────────────────── */
.vehicle-card-option { cursor: pointer; }
.vehicle-card-option:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.vehicle-card-option.selected {
  border-color: var(--checar-yellow) !important;
  border-width: 3px !important;
  box-shadow: 0 0 0 4px rgba(255,202,5,.15);
}

/* ── VEHICLES LIST ──────────────────────── */
.flotilla-vehicles-header-top { row-gap: 8px; }
.flotilla-vehicles-header-actions,
.flotilla-vehicles-sort-block .d-flex { row-gap: 8px; }
.flotilla-search-input {
  border-radius: 8px;
  border: 1px solid #d8dee4;
  font-size: .875rem;
}
.flotilla-search-input:focus {
  border-color: var(--checar-yellow);
  box-shadow: 0 0 0 .2rem rgba(255,202,5,.15);
  outline: none;
}
.flotilla-filter-block {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

/* Badge de vehículo bloqueado (posicionado sobre la imagen del vehículo) */
.locked-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  backdrop-filter: blur(2px);
}

/* Nota dentro de tarjeta de vehículo bloqueado */
.vehicle-lock-note {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .78rem;
  color: #5c4a00;
  line-height: 1.4;
  margin-top: 10px;
}

/* Nota al pie sobre límite / suscripción */
.subscription-legend-footer {
  margin-top: 18px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: 10px;
  font-size: .8rem;
  color: #6c757d;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

/* Botones de lista visibles solo en desktop */
@media (max-width: 767.98px) {
  .flotilla-desktop-only { display: none !important; }
}

/* ── SERVICE FORM — VEHICLE CAROUSEL ───── */
.vehicle-carousel-wrap { position: relative; }
.vehicle-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.vehicle-carousel.is-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  overflow-x: visible;
  padding: 0;
  scroll-snap-type: none;
}
.vehicle-carousel::-webkit-scrollbar { height: 8px; }
.vehicle-carousel::-webkit-scrollbar-thumb { background: rgba(0,0,0,.14); border-radius: 999px; }
.vehicle-pick-card {
  min-width: 220px;
  max-width: 220px;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.04);
}
.vehicle-carousel.is-list .vehicle-pick-card {
  min-width: 100%; max-width: 100%; width: 100%;
  display: flex; align-items: stretch;
  scroll-snap-align: none; border-radius: 14px;
}
.vehicle-pick-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.vehicle-pick-card.is-selected {
  border-color: var(--checar-yellow);
  box-shadow: 0 0 0 2px rgba(255,202,5,.35), 0 10px 24px rgba(0,0,0,.08);
}
.vehicle-pick-media {
  height: 124px;
  background: linear-gradient(135deg, #fff7d1, #f8f9fa);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.vehicle-carousel.is-list .vehicle-pick-media { width: 130px; min-width: 130px; height: auto; }
.vehicle-pick-media img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-pick-empty { color: #a0a7ad; text-align: center; font-size: .82rem; }
.vehicle-pick-body { padding: 12px; }
.vehicle-carousel.is-list .vehicle-pick-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; }
.vehicle-pick-name { font-weight: 700; font-size: .96rem; color: #202428; margin-bottom: 3px; line-height: 1.2; }
.vehicle-pick-meta { color: #6c757d; font-size: .82rem; line-height: 1.35; }
.vehicle-view-toggle {
  border-radius: 999px; width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}
.vehicle-view-toggle[aria-pressed="true"] { color: #1f2328; border-color: var(--checar-yellow); background: #fff5cc; }

/* ── SERVICE FORM — SECTION HEADERS ─────── */
.svc-section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.svc-section-number {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--checar-yellow); color: #1a1a1a;
  font-weight: 800; font-size: .95rem; flex-shrink: 0;
}
.svc-section-title { font-weight: 700; font-size: 1.05rem; color: #1a1a1a; }
.svc-section-subtitle { font-size: .82rem; color: #888; margin-top: 1px; }
.svc-section-divider { border-top: 2px dashed #e5e5e5; margin: 0; }
.svc-check-highlight { background: #f8f9fa; border: 1px solid #eee; border-radius: 8px; padding: 10px 14px; }
.svc-icon-check-input { position: absolute; opacity: 0; pointer-events: none; }
.svc-icon-check-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.svc-icon-check-label .icon-off { color: #6c757d; display: inline-block; }
.svc-icon-check-label .icon-on { color: var(--checar-yellow); display: none; }
.svc-icon-check-input:checked + .svc-icon-check-label .icon-off { display: none; }
.svc-icon-check-input:checked + .svc-icon-check-label .icon-on { display: inline-block; }
.svc-disabled-field { opacity: .55; }

/* ── FILE CHIPS ─────────────────────────── */
.file-chips-list { display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f0f1f3; border: 1px solid #e2e4e8;
  border-radius: 999px; padding: 5px 10px 5px 12px;
  font-size: .78rem; font-weight: 600; color: #1f2328; max-width: 240px;
}
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .bi-file-earmark-pdf-fill { color: #e74c3c; flex-shrink: 0; }
.file-chip .bi-image-fill { color: #3498db; flex-shrink: 0; }
.file-chip-remove {
  flex-shrink: 0; background: #e2e4e8; border: none; outline: none;
  padding: 0; margin-left: 4px; width: 16px; height: 16px;
  line-height: 1; color: #6c757d; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; border-radius: 50%; transition: background .15s, color .15s;
}
.file-chip-remove:hover { background: #e74c3c; color: #fff; }
.file-add-btn {
  flex-shrink: 0; align-self: flex-start;
  width: 46px; height: 46px; border-radius: 12px;
  border: 2px dashed #d8dee4; background: #fafbfc;
  color: #6c757d; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .18s, background .18s, color .18s; outline: none;
}
.file-add-btn:hover { border-color: var(--checar-yellow); background: #fffdf3; color: #1f2328; }

/* ── FUEL EXPENSES ──────────────────────── */
.fuel-card {
  border-radius: 14px;
  transition: box-shadow .2s ease;
}
.fuel-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1) !important; }
.fuel-meta-box {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
}

/* ── ACTION LEGEND ──────────────────────── */
.action-buttons-legend {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  font-size: .78rem; color: #6c757d;
  margin-top: 12px;
  padding: 8px 0;
}
.action-legend-item  { display: flex; align-items: center; gap: 4px; }
.action-legend-edit i    { color: var(--checar-yellow); }
.action-legend-service i { color: #6c757d; }
.action-legend-fuel i    { color: #e67e22; }
.action-legend-km i      { color: #0d6efd; }
.action-legend-delete i  { color: #dc3545; }

/* ── OVERDUE SERVICES LIST ──────────────── */
.overdue-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #fce8e9;
  border-left: 3px solid #dc3545;
  transition: background .15s;
  color: inherit;
}
.overdue-list-item:last-child { border-bottom: none; }
.overdue-list-item:hover { background: #fff8f8; }
.overdue-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.overdue-text {
  flex: 1;
  min-width: 0; /* permite que el texto se trunque */
}
.overdue-title {
  font-size: .9rem;
  font-weight: 700;
  color: #1f2328;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.overdue-subtitle {
  font-size: .76rem;
  color: #6c757d;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 767.98px) {
  .vehicle-hero-image { height: 200px; }
  .service-grid { grid-template-columns: 1fr; }
  .data-row { flex-direction: column; gap: 2px; }
  .data-value { text-align: left; }
  .profile-field { grid-template-columns: 1fr; gap: 2px; }
  .page-header { flex-direction: column; align-items: stretch; }
  .page-header-actions { justify-content: flex-start; }
  /* Fix flex overflow in card headers */
  .card-header-improved > div:first-child { min-width: 0; }
  .card-subtitle-improved { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card-value-improved { word-break: break-word; }
  /* Filter inputs full-width on narrow mobile */
  .filter-input-improved { min-width: 0; width: 100%; }
  .flotilla-actions-row {
    gap: 6px;
  }
}
