/* ewd-fit.css — Ajuste al 100% del ancho y sin zoom (paneles admin y clientes).
   Se carga antes que el CSS de cada página: todo con baja especificidad para no pisar diseños. */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;            /* solo en <html>: no rompe position:sticky */
  max-width: 100%;
}
body { max-width: 100%; }
@supports (overflow-x: clip) { body { overflow-x: clip; } }

/* Sin zoom por pellizco ni doble toque (solo scroll). :where() = especificidad 0, cualquier regla propia gana. */
:where(*) { touch-action: pan-x pan-y; }
:where(input, textarea, select, button, a, label, summary) { touch-action: manipulation; }

:where(img, video, iframe, embed, object) { max-width: 100%; }
:where(pre) { max-width: 100%; overflow-x: auto; }

/* Tablas que no entran en pantalla: scroll horizontal propio (lo activa ewd-fit.js solo si desbordan) */
table.ewd-tbl-ov { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* iOS hace zoom automático al enfocar campos con letra < 16px */
@media (max-width: 1024px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="hidden"]),
  select,
  textarea { font-size: 16px !important; }
}
