.section-card {
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  /* visible: overflow:hidden recorta listas nativas de <select> en muchos moviles (Android/WebView) */
  overflow: visible;
}

.section-header {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.9rem 1rem;
}

.section-header h2 {
  font-size: 1rem;
  font-weight: 700;
}

.section-body {
  padding: 1rem;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.input-base {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  background: #fff;
  padding: 0.64rem 0.75rem;
  font-size: 0.95rem;
}

.input-base:focus {
  outline: 2px solid transparent;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgb(37 99 235 / 0.15);
}

/* Movil: evita zoom automatico iOS (<16px) y mejora toque en selects largos */
@media (max-width: 640px) {
  .input-base,
  select.input-base {
    font-size: 16px;
    min-height: 48px;
    line-height: 1.25;
  }

  /* Asegura que el picker del sistema no quede limitado por contenedores flex/grid */
  select.input-base {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgb(220 38 38 / 0.12) !important;
}

.btn-primary {
  border-radius: 0.65rem;
  background: #1d4ed8;
  color: white;
  font-weight: 700;
  padding: 0.75rem 1rem;
  min-width: 11rem;
}

.btn-secondary {
  border-radius: 0.65rem;
  border: 1px solid #334155;
  color: #0f172a;
  font-weight: 700;
  padding: 0.75rem 1rem;
  min-width: 9rem;
}

.btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.check-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.8rem;
  background: #f8fafc;
}

/* Tarjetas de inspecciones en movil (dashboard.js): Tailwind CDN no incluye clases solo en JS */
.dash-mobile-card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.dash-mobile-card__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-mobile-card__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: #64748b;
}

.dash-mobile-card__plate {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-mobile-card__vehicle {
  font-size: 0.875rem;
  line-height: 1.375;
  color: #334155;
}

.dash-mobile-card__date {
  font-size: 0.75rem;
  color: #64748b;
}

.dash-mobile-card__sede {
  font-size: 0.875rem;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-mobile-card__sede-label {
  color: #64748b;
}

.dash-mobile-card__status {
  font-size: 0.875rem;
  font-weight: 600;
}

.dash-mobile-card__status--listo {
  color: #047857;
}

.dash-mobile-card__status--proceso {
  color: #b45309;
}

.dash-mobile-card__actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-mobile-btn {
  display: flex;
  min-height: 44px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #cbd5e1;
  background: #fff;
  color: #1e293b;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.dash-mobile-btn:active {
  opacity: 0.92;
}

button.dash-mobile-btn {
  cursor: pointer;
  font-family: inherit;
}

.dash-mobile-btn--primary {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.dash-mobile-btn--neutral {
  border-color: #cbd5e1;
  background: #fff;
  color: #1e293b;
}

.dash-mobile-btn--edit {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a;
}

.dash-mobile-btn--danger {
  border-color: #f87171;
  background: #fef2f2;
  color: #991b1b;
}

/* Dashboard lista: tarjetas en movil y tabla en escritorio (no depender solo de Tailwind CDN) */
.dash-inspection-mobile-list {
  display: block;
  width: 100%;
}

.dash-inspection-mobile-list > * + * {
  margin-top: 0.75rem;
}

.dash-inspection-table-wrap {
  display: none;
  overflow-x: auto;
  width: 100%;
}

@media (min-width: 640px) {
  .dash-inspection-mobile-list {
    display: none !important;
  }

  .dash-inspection-table-wrap {
    display: block;
  }
}

.dash-mobile-empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.dash-mobile-only-hint {
  display: block;
}

@media (min-width: 640px) {
  .dash-mobile-only-hint {
    display: none;
  }
}
