/* Global form-control styling. Plain CSS, not a Tailwind @apply layer -- the
   Tailwind CDN script only JIT-compiles class names already in the DOM, it can't
   process a separately linked stylesheet. Elements use these classes instead of
   the old inline utility strings, so no !important/specificity fights needed. */

.zp-label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: .25rem;
}

.zp-input {
  display: block;
  width: 100%;
  height: 2.75rem;
  padding: 0 .75rem;
  border-radius: .5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.zp-input::placeholder {
  color: #94a3b8;
}

.zp-input:hover {
  border-color: #94a3b8;
}

.zp-input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .35);
}

.zp-input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

textarea.zp-input {
  height: auto;
  padding-top: .625rem;
  padding-bottom: .625rem;
}

@media (max-width: 640px) {
  .zp-input { font-size: 16px; } /* prevents iOS Safari zoom-on-focus */
}

/* Dense contexts (servicios pricing matrix cells, small inline fields) keep a
   compact height -- forcing h-11 in a wide grid of price cells would break the
   layout -- but get the same border/text/focus legibility upgrade as zp-input. */
.zp-input-sm {
  display: block;
  width: 100%;
  height: 2rem;
  padding: 0 .5rem;
  border-radius: .5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.zp-input-sm::placeholder {
  color: #94a3b8;
}

.zp-input-sm:hover {
  border-color: #94a3b8;
}

.zp-input-sm:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .35);
}

.zp-input-sm:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

/* Light-on-dark variant of .zp-label/.zp-input, for form controls placed on a
   brand-black band (e.g. the Gastos administrativos registration band) instead
   of the app's usual white cards. */
.zp-label-dark {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: .25rem;
}

.zp-input-dark {
  display: block;
  width: 100%;
  height: 2.75rem;
  padding: 0 .75rem;
  border-radius: .5rem;
  border: 1px solid #334155;
  background: #1e293b;
  color: #fff;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.zp-input-dark::placeholder {
  color: #64748b;
}

.zp-input-dark:hover {
  border-color: #475569;
}

.zp-input-dark:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 2px rgba(217, 164, 65, .35);
}

@media (max-width: 640px) {
  .zp-input-dark { font-size: 16px; } /* prevents iOS Safari zoom-on-focus */
}

input[type="date"].zp-input-dark {
  padding-right: .5rem;
  color-scheme: dark;
}

/* Native date-picker inputs render their calendar icon/segments with browser-default
   metrics that don't match the vertical rhythm of .zp-input/.zp-input-sm text inputs.
   Chromium-based browsers expose the icon as a styleable pseudo-element; Firefox does
   not, so this degrades gracefully there. */
input[type="date"].zp-input,
input[type="date"].zp-input-sm {
  padding-right: .5rem;
}

input[type="date"].zp-input::-webkit-datetime-edit,
input[type="date"].zp-input-sm::-webkit-datetime-edit {
  padding: 0;
}

input[type="date"].zp-input::-webkit-calendar-picker-indicator,
input[type="date"].zp-input-sm::-webkit-calendar-picker-indicator {
  margin-left: .375rem;
  padding: 0;
  cursor: pointer;
  opacity: .55;
  transition: opacity .15s ease;
}

input[type="date"].zp-input::-webkit-calendar-picker-indicator:hover,
input[type="date"].zp-input-sm::-webkit-calendar-picker-indicator:hover {
  opacity: .85;
}

/* Inline leading icon inside a text input (teléfono, documento, etc). Wrap the
   input in .zp-input-icon-wrap + a sibling <svg>; the icon is purely decorative
   so it never intercepts clicks/focus. */
.zp-input-icon-wrap {
  position: relative;
}

.zp-input-icon-wrap > svg {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #cbd5e1;
  pointer-events: none;
}

.zp-input-icon-wrap > .zp-input,
.zp-input-icon-wrap > .zp-input-sm {
  padding-left: 2.25rem;
}

/* Selectable "option card" for radio/checkbox groups (e.g. Comisión). Active
   state is driven by :has(), not JS, so any group using this class gets the
   selected-tile look for free. */
.zp-option-card {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.zp-option-card:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.zp-option-card:has(input:checked) {
  border-color: var(--brand-red);
  background-color: var(--brand-red-50);
  box-shadow: 0 0 0 1px var(--brand-red);
}

.zp-option-card:has(input:checked):hover {
  background-color: var(--brand-red-50);
}

/* Shared button classes so the red-glow CTA treatment (same recipe as the POS
   Cobrar button) and the secondary hover-lift live in one place instead of a
   repeated Tailwind class string per template. */
.zp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--brand-red);
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  line-height: 1.25rem;
  padding: .5rem 1rem;
  border-radius: .5rem;
  box-shadow: 0 8px 20px -6px rgba(220, 38, 38, .45);
  transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.zp-btn-primary:hover {
  background: var(--brand-red-dark);
  box-shadow: 0 10px 24px -6px rgba(220, 38, 38, .55);
}

.zp-btn-primary:active {
  transform: scale(.98);
}

.zp-btn-primary:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.zp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #fff;
  color: #475569;
  font-weight: 600;
  font-size: .875rem;
  line-height: 1.25rem;
  padding: .5rem 1rem;
  border-radius: .5rem;
  border: 1px solid #cbd5e1;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.zp-btn-secondary:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 10px -4px rgba(15, 23, 42, .15);
  transform: translateY(-1px);
}

/* One pill shape for every status badge; templates only add the semantic
   bg-*/text-* color pair on top of this. */
.zp-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: .125rem .625rem;
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Card section header band -- title + count/description row that separates
   header from body inside a table or list card. */
.zp-card-header {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.zp-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 .375rem;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #475569;
  font-size: .75rem;
  font-weight: 600;
}

/* Toast stack (bottom-right) that replaces the top-of-page flash banner for
   save confirmations -- see toast.js. Messages still go through Flask's
   flash()/flash.html exactly as before; [data-toast-flash] wrappers in
   base.html just mark which flash blocks toast.js should lift into toasts
   instead of leaving as an inline banner. password_reveal is exempt (copy
   button, must stay on-page), so it's excluded from the hide rule below. */
#zp-toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: .5rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.zp-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  padding: .75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: .625rem;
  background: #fff;
  color: #0f172a;
  font-size: .875rem;
  line-height: 1.25rem;
  box-shadow: 0 10px 25px -8px rgba(15, 23, 42, .25), 0 4px 10px -6px rgba(15, 23, 42, .15);
  cursor: pointer;
  opacity: 0;
  transform: translateY(.5rem);
  transition: opacity .18s ease-out, transform .18s ease-out;
}

.zp-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.zp-toast-leaving {
  opacity: 0;
  transform: translateY(.25rem);
}

.zp-toast-success { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.zp-toast-error   { border-color: #fecdd3; background: #fff1f2; color: #be123c; }
.zp-toast-warning { border-color: #fde68a; background: #fffbeb; color: #b45309; }
.zp-toast-info    { border-color: #bae6fd; background: #f0f9ff; color: #0369a1; }

.zp-toast-dot {
  flex-shrink: 0;
  width: .5rem;
  height: .5rem;
  margin-top: .375rem;
  border-radius: 9999px;
  background: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .zp-toast {
    transition: none;
  }
}

[data-toast-flash] [data-flash-message]:not([data-flash-category="password_reveal"]) {
  display: none;
}

/* Collapsible desktop sidebar (icon rail). The single source of truth is a
   `zp-sidebar-collapsed` class on <body> -- server-rendered from the user's
   saved preference (app/__init__.py's context_processor) so there's no flash
   of the wrong state on load, then toggled instantly by sidebar-collapse.js
   for a snappy transition while the new state persists in the background.
   Plain CSS (not Tailwind utility classes) so the width/margin swap doesn't
   depend on which classes the Tailwind CDN script already scanned. Mobile
   off-canvas (-translate-x-full / toggleSidebar()) is untouched by any of
   this -- it only takes effect >= lg, same breakpoint as the old lg:ml-64. */
.zp-sidebar {
  width: 16rem;
  transition: width .2s ease, transform .2s ease;
}

.zp-content-wrap {
  transition: margin-left .2s ease;
}

.zp-sidebar-toggle-icon {
  transition: transform .2s ease;
}

@media (min-width: 1024px) {
  .zp-content-wrap {
    margin-left: 16rem;
  }

  body.zp-sidebar-collapsed .zp-sidebar {
    width: 5rem;
  }

  body.zp-sidebar-collapsed .zp-content-wrap {
    margin-left: 5rem;
  }

  body.zp-sidebar-collapsed #sidebar .zp-sidebar-logo,
  body.zp-sidebar-collapsed #sidebar .zp-nav-label,
  body.zp-sidebar-collapsed #sidebar .zp-sidebar-user-info {
    display: none;
  }

  body.zp-sidebar-collapsed #sidebar nav a,
  body.zp-sidebar-collapsed #sidebar .zp-sidebar-footer-row {
    justify-content: center;
    gap: 0;
  }

  body.zp-sidebar-collapsed #sidebar nav a {
    padding-left: .5rem;
    padding-right: .5rem;
  }

  body.zp-sidebar-collapsed #zp-sidebar-collapse-toggle .zp-sidebar-toggle-icon {
    transform: rotate(180deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zp-sidebar,
  .zp-content-wrap,
  .zp-sidebar-toggle-icon {
    transition: none;
  }
}

/* Sidebar accordion categories (sidebar-accordion.js toggles zp-nav-cat-open
   on the .zp-nav-group; only one group carries it at a time). Plain CSS, same
   reasoning as the collapse rules above. In icon-rail mode (zp-sidebar-collapsed,
   >=1024px) the grouping stops mattering visually -- headers hide and every
   panel is forced open so collapsed mode reads as the old flat icon list. */
.zp-nav-cat-items {
  display: none;
}

.zp-nav-group.zp-nav-cat-open .zp-nav-cat-items {
  display: block;
}

.zp-nav-cat-chevron {
  transition: transform .15s ease;
}

.zp-nav-group.zp-nav-cat-open .zp-nav-cat-chevron {
  transform: rotate(90deg);
}

@media (min-width: 1024px) {
  body.zp-sidebar-collapsed #sidebar .zp-nav-cat-toggle {
    display: none;
  }

  body.zp-sidebar-collapsed #sidebar .zp-nav-cat-items {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zp-nav-cat-chevron {
    transition: none;
  }
}

/* Dashboard daily-goal hero widget. Color state (zp-meta-inicio / -cerca / -cumplida)
   is picked server-side from cumplimiento_meta so there's no flash of the wrong state. */
.zp-meta-widget {
  border: 1px solid;
  transition: background-color .3s ease, border-color .3s ease;
}

.zp-meta-fill {
  transition: width .6s ease;
}

.zp-meta-inicio {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.zp-meta-inicio .zp-meta-label,
.zp-meta-inicio .zp-meta-badge { color: #64748b; }
.zp-meta-inicio .zp-meta-pct,
.zp-meta-inicio .zp-meta-detail { color: #334155; }
.zp-meta-inicio .zp-meta-track { background: #e2e8f0; }
.zp-meta-inicio .zp-meta-fill { background: #94a3b8; }

.zp-meta-cerca {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
  border-color: #fed7aa;
}
.zp-meta-cerca .zp-meta-label,
.zp-meta-cerca .zp-meta-badge,
.zp-meta-cerca .zp-meta-pct,
.zp-meta-cerca .zp-meta-exceso { color: #c2410c; }
.zp-meta-cerca .zp-meta-detail { color: #7c2d12; }
.zp-meta-cerca .zp-meta-track { background: #fed7aa; }
.zp-meta-cerca .zp-meta-fill { background: linear-gradient(90deg, var(--brand-red), #f59e0b); }

.zp-meta-cumplida {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border-color: #6ee7b7;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .15);
  animation: zp-meta-glow 2.2s ease-in-out infinite;
}
.zp-meta-cumplida .zp-meta-label,
.zp-meta-cumplida .zp-meta-badge,
.zp-meta-cumplida .zp-meta-pct,
.zp-meta-cumplida .zp-meta-exceso { color: #059669; }
.zp-meta-cumplida .zp-meta-detail { color: #065f46; }
.zp-meta-cumplida .zp-meta-track { background: #bbf7d0; }
.zp-meta-cumplida .zp-meta-fill { background: linear-gradient(90deg, #10b981, #34d399); }

@keyframes zp-meta-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(16, 185, 129, .15); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, .12); }
}

@media (prefers-reduced-motion: reduce) {
  .zp-meta-widget,
  .zp-meta-fill {
    transition: none;
  }
  .zp-meta-cumplida {
    animation: none;
  }
}

/* ============================================================
   Asistente de configuración (onboarding wizard)

   Authored as plain CSS on purpose: the running app serves a
   precompiled app/static/css/tailwind.css (regenerated only by
   `npm run build:css`), so brand-new Tailwind utility classes
   would not take effect here. These semantic zp-onb-* classes
   always apply and keep the wizard spacious and on-brand with
   the rest of the zp-* design system.
   ============================================================ */

/* Vertical frame + brand backdrop. Step pages flow from the top with
   comfortable breathing room; welcome/fin center themselves (--center). */
.zp-onb-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem;
  background: radial-gradient(ellipse at top, var(--brand-carbon) 0%, var(--brand-black) 65%);
}
.zp-onb-frame--center { justify-content: center; }
@media (min-width: 640px) {
  .zp-onb-frame { padding: 3.5rem 1.5rem; }
}

/* Width shells: comfortable by default, wide for the Precios matrix,
   narrow+centered for the welcome and summary screens. */
.zp-onb-shell {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
}
.zp-onb-shell--wide { max-width: 78rem; }
.zp-onb-shell--narrow {
  max-width: 32rem;
  text-align: center;
}

/* Progress header */
.zp-onb-progress { margin-bottom: 1.25rem; }
.zp-onb-progress-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}
.zp-onb-step-kicker {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.zp-onb-step-num { color: var(--brand-gold); }
.zp-onb-step-name { color: #e2e8f0; }
.zp-onb-step-count { color: #94a3b8; font-weight: 500; letter-spacing: 0; }
.zp-onb-summary-link {
  font-size: .8125rem;
  color: #94a3b8;
  white-space: nowrap;
  transition: color .15s ease;
}
.zp-onb-summary-link:hover { color: #e2e8f0; }
.zp-onb-track {
  height: .4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.zp-onb-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--brand-gold-gradient);
  transition: width .35s ease;
}

/* Card */
.zp-onb-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px -24px rgba(2, 6, 23, .65), 0 4px 14px -6px rgba(2, 6, 23, .28);
  padding: 1.5rem;
}
@media (min-width: 640px) { .zp-onb-card { padding: 2.25rem 2.5rem; } }

.zp-onb-card-title {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #0f172a;
}
.zp-onb-card-sub {
  margin-top: .5rem;
  font-size: .95rem;
  line-height: 1.55;
  color: #64748b;
  max-width: 54ch;
}
.zp-onb-body { margin-top: 1.5rem; }

/* Larger, legible controls inside the wizard card (scoped so the rest of
   the app keeps its denser defaults). */
.zp-onb-card .zp-label {
  font-size: .8125rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: .375rem;
}
.zp-onb-card .zp-input {
  height: 3rem;
  font-size: 1rem;
}
.zp-onb-card textarea.zp-input { height: auto; }

/* Footer actions */
.zp-onb-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef2f7;
}
.zp-onb-skip {
  font-size: .875rem;
  font-weight: 500;
  color: #94a3b8;
  transition: color .15s ease;
}
.zp-onb-skip:hover { color: #475569; }
.zp-onb-card .zp-btn-primary { padding: .75rem 1.5rem; font-size: .95rem; }

/* Soft informational / note panels */
.zp-onb-note {
  font-size: .9rem;
  line-height: 1.5;
  border-radius: .75rem;
  padding: .75rem 1rem;
}

/* --------------------------------------------------------------
   Precios matrix
   -------------------------------------------------------------- */
.zp-precios-wrap {
  border: 1px solid #e2e8f0;
  border-radius: .875rem;
  overflow: hidden;            /* clip the scroll area to the rounded frame */
  background: #fff;
}
.zp-precios-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.zp-precios {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.zp-precios th, .zp-precios td { padding: 0; }

/* Group header (Carros / Motos) */
.zp-precios-group {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
  text-align: center;
  padding: .6rem .75rem .35rem;
  background: #f8fafc;
}
/* Per-type column header */
.zp-precios-th {
  font-size: .8rem;
  font-weight: 600;
  color: #334155;
  text-align: center;
  padding: .35rem .5rem .7rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  min-width: 7.25rem;
}
.zp-precios-corner {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

/* Sticky "Servicio" column so the row label stays visible while the
   matrix scrolls horizontally. */
.zp-precios-rowhead {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
  text-align: left;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  padding: .7rem .9rem;
  min-width: 11rem;
  box-shadow: 1px 0 0 0 #e2e8f0;
}
.zp-precios thead .zp-precios-corner {
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: .6rem .9rem;
  box-shadow: 1px 0 0 0 #e2e8f0;
}
.zp-precios tbody tr:hover .zp-precios-rowhead { background: #f8fafc; }
.zp-precios tbody tr + tr td { border-top: 1px solid #f1f5f9; }

.zp-precios-cell { padding: .35rem .4rem; }
/* Subtle divider at the start of each new vehicle group */
.zp-precios-sep { border-left: 1px solid #e5e9f0; }

/* Money cell: a $ prefix + the formatted, right-aligned amount. */
.zp-precios-money { position: relative; display: block; }
.zp-precios-money > .zp-precios-cur {
  position: absolute;
  left: .6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .85rem;
  color: #94a3b8;
  pointer-events: none;
  transition: opacity .15s ease;
}
.zp-precios-input {
  width: 100%;
  min-width: 6rem;
  height: 2.5rem;
  padding: 0 .65rem 0 1.4rem;
  border-radius: .5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: .95rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.zp-precios-input::placeholder { color: #cbd5e1; }
.zp-precios-input:hover { border-color: #94a3b8; }
.zp-precios-input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(var(--brand-red-rgb), .3);
  background: #fff;
}
/* Blank cell reads clearly as "no aplica / déjalo vacío": dashed, tinted
   and muted — visually distinct from a typed 0. The $ hides while empty. */
.zp-precios-input:placeholder-shown {
  background: #f8fafc;
  border-style: dashed;
  border-color: #e2e8f0;
}
.zp-precios-money:has(.zp-precios-input:placeholder-shown) > .zp-precios-cur { opacity: 0; }
@media (max-width: 640px) {
  .zp-precios-input { font-size: 16px; } /* prevents iOS Safari zoom-on-focus */
}

/* Small legend under the matrix */
.zp-precios-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: .75rem;
  font-size: .78rem;
  color: #94a3b8;
}
.zp-precios-legend-chip {
  display: inline-block;
  width: 1.5rem;
  height: 1rem;
  border-radius: .25rem;
  vertical-align: -2px;
  margin-right: .4rem;
}
.zp-precios-legend-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}
.zp-precios-legend-filled {
  background: #fff;
  border: 1px solid #cbd5e1;
}
