/* =========================================================
   Admin · El Manantial 502 · Layout específico
   Componentes base (forms, tablas, badges, modales,
   toasts, tipografía) → /tokens.css
   Botones (admin + portal) → /ui/buttons.css
   Este archivo: sidebar, topbar, auth, KPI/dashboard, pagos.
========================================================= */

/* Componentes compartidos (botones, forms, tablas, badges, modales,
   toasts, alertas, tipografía) viven en /tokens.css — no redefinir aquí. */

/* Refuerzo tablas en grids admin (por si un módulo pisa td) */
.results table tbody tr:nth-child(even) td,
table tbody tr:nth-child(even) td { background: var(--row-alt, #f9fafb); }
.results table tbody tr:nth-child(odd) td,
table tbody tr:nth-child(odd) td { background: #fff; }
.results table td,
table td { border-bottom: 1px solid var(--border, #e5e7eb); }
.results table tbody tr:last-child td,
table tbody tr:last-child td { border-bottom: 0; }
.results table tbody tr:hover td,
table tbody tr:hover td { background: var(--row-hover, #eef2f7); }
table tbody tr.selected td,
.tr-active.selected td { background: var(--row-selected, #e8eef7) !important; }

/* ---------- Auth (login / cambiar) ---------- */
body.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
body.auth main.card {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  margin: 0;
}
body.auth main.card h1 {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
}
body.auth main.card .sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}
body.auth label {
  display: block;
  margin: 12px 0 5px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .01em;
}
body.auth input,
body.auth select,
body.auth textarea {
  width: 100%;
}
body.auth button[type="submit"] {
  width: 100%;
  margin-top: 16px;
  padding: 10px 14px;
  font-weight: 600;
}
body.auth .err {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--err);
  font-size: 13px;
}
body.auth .small {
  color: var(--muted);
  font-size: 12.5px;
  text-align: right;
  margin-top: 14px;
}
body.auth .small.left {
  text-align: left;
}
body.auth .small .spacer {
  display: block;
  margin-bottom: 6px;
}
body.auth .small button.ghost {
  margin: 0;
}

/* .row en auth: 2 columnas iguales (token/actual), NO sobrescribe el global */
body.auth .row {
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 0;
  align-items: start;
}

/* ---------- Login inmersivo (foto del lugar + panel) ---------- */
body.auth-login {
  --auth-ink: #f8fafc;
  --auth-muted: #cbd5e1;
  --auth-panel: rgba(11, 18, 32, 0.88);
  --auth-field: rgba(255, 255, 255, 0.06);
  --auth-line: rgba(248, 250, 252, 0.14);
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px 36px;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--auth-ink);
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}
body.auth-login .auth-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url("/images/san-jose-el-tablon.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: authBgIn 1.1s ease-out both, authBgDrift 28s ease-in-out 1.1s infinite alternate;
}
body.auth-login .auth-shade {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 15, 28, 0.55) 0%, rgba(8, 15, 28, 0.28) 42%, rgba(8, 15, 28, 0.72) 100%),
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(8, 15, 28, 0.15), rgba(8, 15, 28, 0.55));
  pointer-events: none;
}
@keyframes authBgIn {
  from { opacity: 0; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1.04); }
}
@keyframes authBgDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, 0.6%, 0); }
}
@keyframes authPanelIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
body.auth-login .auth-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 22px 20px 0;
  animation: authPanelIn .55s ease-out both;
}
body.auth-login .auth-top-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
body.auth-login .auth-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #0f172a;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
body.auth-login .auth-top-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
body.auth-login .auth-panel {
  width: min(100%, 420px);
  margin-top: 48px;
  padding: 28px 26px 22px;
  border-radius: 16px;
  background: var(--auth-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.38);
  animation: authPanelIn .65s ease-out .08s both;
}
body.auth-login .auth-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #93c5fd;
}
body.auth-login .auth-title {
  margin: 0 0 10px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: #fff;
}
body.auth-login .auth-lead {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--auth-muted);
}
body.auth-login .auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.auth-login .auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  body.auth-login .auth-row { grid-template-columns: 1fr; }
}
body.auth-login .auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #e2e8f0;
}
body.auth-login .auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--auth-field);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--auth-line);
  outline: none;
  transition: box-shadow .15s ease, background .15s ease;
}
body.auth-login .auth-field input::placeholder {
  color: #94a3b8;
}
body.auth-login .auth-field input:focus {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1.5px #93c5fd;
}
body.auth-login .auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 13px 16px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
body.auth-login .auth-submit:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}
body.auth-login .auth-submit:active {
  transform: translateY(0);
}
body.auth-login .auth-msg {
  margin: 2px 0 0;
  min-height: 18px;
  color: #fca5a5;
  font-size: 13px;
}
body.auth-login .auth-links {
  margin-top: 16px;
  text-align: center;
}
body.auth-login .auth-links a,
body.auth-login .auth-links button {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
body.auth-login .auth-links a:hover,
body.auth-login .auth-links button:hover {
  color: #bfdbfe;
  text-decoration: underline;
}
body.auth-login .auth-links .auth-reset {
  display: block;
  margin-top: 8px;
  color: #cbd5e1;
  font-weight: 500;
}
body.auth-login .auth-panel-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--auth-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.auth-login .auth-panel-foot strong {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
body.auth-login .auth-panel-foot span {
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
}
@media (max-width: 560px) {
  body.auth-login {
    padding: 18px 14px 28px;
    align-content: start;
  }
  body.auth-login .auth-top {
    position: relative;
    padding: 8px 0 18px;
  }
  body.auth-login .auth-panel {
    margin-top: 0;
    padding: 22px 18px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.auth-login .auth-bg,
  body.auth-login .auth-top,
  body.auth-login .auth-panel {
    animation: none;
  }
  body.auth-login .auth-bg { transform: none; }
}

/* ---------- App layout (dashboard + páginas internas) ---------- */
.layout {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: 56px 1fr;
  min-height: 100vh;
}
/* Cinta full-width: collage sólido vía ::before (no espera a app.js) */
.layout::before {
  content: "";
  grid-column: 1 / -1;
  grid-row: 1;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background-color: #0b1220;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0, rgba(255, 255, 255, 0.38) 64px, rgba(255, 255, 255, 0.22) 64px, rgba(255, 255, 255, 0.40) 100%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.12) 0%, rgba(248, 250, 252, 0.48) 100%),
    image-set(
      url("/images/admin-cinta.webp") type("image/webp"),
      url("/images/admin-cinta.jpg") type("image/jpeg")
    );
  background-position: center, center, center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
}
aside {
  grid-row: 2;
  width: 64px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, #ffffff 52px),
    #ffffff;
  color: var(--muted);
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid rgba(15,23,42,.06);
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  max-height: calc(100vh - 56px);
  min-height: 0;
  align-self: start;
  overflow: hidden;
  z-index: 40;
  --nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-ms: 0.4s;
  transition:
    width var(--nav-ms) var(--nav-ease),
    box-shadow var(--nav-ms) var(--nav-ease);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-bottom: 12px;
  padding: 10px 12px 14px;
  border-bottom: 1px solid rgba(15,23,42,.06);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.4) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: navBrandIn 0.55s ease-out both;
}
.brand .mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.02em;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand .mark.mark-logo,
.brand .mark:has(img) {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.brand .mark img,
.brand .mark .brand-isotipo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand:hover .mark {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 12px rgba(12, 74, 110, 0.18);
}
.brand .txt {
  min-width: 0;
  max-width: 13rem;
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.22s ease 0.06s, max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.brand .txt h2 {
  margin: 0;
  font-size: 15px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand .txt span {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  margin-right: -2px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.28) transparent;
  animation: navListIn 0.5s ease-out 0.08s both;
}
.nav::-webkit-scrollbar {
  width: 6px;
}
.nav::-webkit-scrollbar-track {
  background: transparent;
}
.nav::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.22);
  border-radius: 999px;
}
.nav::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.38);
}
.nav-group {
  margin-bottom: 2px;
  padding-bottom: 2px;
}
.nav-group + .nav-group {
  margin-top: 4px;
}
.grp-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: auto;
  margin: 1px 4px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  text-transform: none;
  color: #0f172a;
  text-align: left;
  pointer-events: none;
}
.grp-title .ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.grp-title .ico svg {
  width: 20px;
  height: 20px;
  stroke: #64748b;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.grp-title .grp-label {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  transition: opacity 0.22s ease 0.06s, max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a .nav-txt {
  white-space: nowrap;
  max-width: 14rem;
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.22s ease 0.06s, max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.grp-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 8px 2px 22px;
  padding: 2px 0 2px 12px;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}
.nav-group .grp-items a {
  margin: 1px 0;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}
.nav-group .grp-items a .ico {
  width: 18px;
  height: 18px;
}
.nav-group .grp-items a .ico svg {
  width: 16px;
  height: 16px;
}
.nav-group.has-active .grp-title {
  color: var(--brand);
}
.nav-group.has-active .grp-title .ico svg {
  stroke: var(--brand);
  stroke-width: 2;
}
.nav-group[data-group="operacion"] .grp-title .ico svg { stroke: #0c4a6e; }
.nav-group[data-group="campo"] .grp-title .ico svg { stroke: #075985; }
.nav-group[data-group="ubicaciones"] .grp-title .ico svg { stroke: #0d9488; }
.nav-group[data-group="proyectos"] .grp-title .ico svg { stroke: #16a34a; }
.nav-group[data-group="administracion"] .grp-title .ico svg { stroke: #1e3a5f; }
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 1px 4px;
  border-radius: 9px;
  color: #334155;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition:
    background 0.28s ease,
    color 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
  position: relative;
}
.nav a .ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.nav a .ico svg {
  width: 20px;
  height: 20px;
  stroke: #64748b;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease, stroke-width 0.2s ease;
}
/* Colorimetría íconos catálogo Manantial (menú + títulos/KPIs) */
.nav a[data-ico="dashboard"] .ico svg,
.ic[data-ico="dashboard"] svg { stroke: #0c4a6e; }
.nav a[data-ico="droplet"] .ico svg,
.ic[data-ico="droplet"] svg { stroke: #0284c7; }
.nav a[data-ico="map-pin"] .ico svg,
.ic[data-ico="map-pin"] svg { stroke: #0d9488; }
.nav a[data-ico="globe"] .ico svg,
.ic[data-ico="globe"] svg { stroke: #0f766e; }
.nav a[data-ico="layers"] .ico svg,
.ic[data-ico="layers"] svg { stroke: #0d9488; }
.nav a[data-ico="map"] .ico svg,
.ic[data-ico="map"] svg { stroke: #14b8a6; }
.nav a[data-ico="card"] .ico svg,
.ic[data-ico="card"] svg { stroke: #38bdf8; }
.nav a[data-ico="receipt"] .ico svg,
.ic[data-ico="receipt"] svg { stroke: #0ea5e9; }
.nav a[data-ico="tap"] .ico svg,
.ic[data-ico="tap"] svg { stroke: #0369a1; }
.nav a[data-ico="reconnect"] .ico svg,
.ic[data-ico="reconnect"] svg { stroke: #1d4ed8; }
.nav a[data-ico="gauge"] .ico svg,
.ic[data-ico="gauge"] svg { stroke: #075985; }
.nav a[data-ico="clipboard"] .ico svg,
.ic[data-ico="clipboard"] svg { stroke: #16a34a; }
.nav a[data-ico="calendar"] .ico svg,
.ic[data-ico="calendar"] svg { stroke: #0c4a6e; }
.nav a[data-ico="chart"] .ico svg,
.ic[data-ico="chart"] svg { stroke: #15803d; }
.nav a[data-ico="org"] .ico svg,
.ic[data-ico="org"] svg { stroke: #1e3a5f; }
.nav a[data-ico="search-doc"] .ico svg,
.ic[data-ico="search-doc"] svg { stroke: #334155; }
.nav a[data-ico="users-cog"] .ico svg,
.ic[data-ico="users-cog"] svg { stroke: #1e3a5f; }
.nav a[data-ico="cog"] .ico svg,
.ic[data-ico="cog"] svg { stroke: #2563eb; }
.nav a[data-ico="shield"] .ico svg,
.ic[data-ico="shield"] svg { stroke: #0c4a6e; }
.ic[data-ico="check"] svg { stroke: #16a34a; }
.ic[data-ico="search"] svg { stroke: #334155; }
.ic[data-ico="wallet"] svg { stroke: #0ea5e9; }
.ic[data-ico="currency"] svg { stroke: #0d9488; }
.ic[data-ico="users"] svg { stroke: #1e3a5f; }
.ic[data-ico="folder"] svg { stroke: #16a34a; }
.ic[data-ico="activity"] svg { stroke: #334155; }
.ic[data-ico="scissors"] svg { stroke: #1d4ed8; }
.ic[data-ico="x-circle"] svg { stroke: #b91c1c; }
.panel-intro h3 .ic {
  margin-right: 8px;
  vertical-align: -3px;
}
h3 > .ic[data-ico] {
  margin-right: 8px;
  vertical-align: -3px;
}
.nav a:hover {
  background: rgba(15, 23, 42, 0.045);
  color: var(--brand);
  transform: translateX(3px);
}
.nav a:hover .ico {
  transform: scale(1.08);
}
.nav a:hover .ico svg {
  stroke-width: 2;
}
.nav a.active {
  background: #f1f5f9;
  color: var(--brand);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  transform: translateX(2px);
}
.nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04);
  animation: navActiveBar 0.28s ease-out both;
}
.nav a.active .ico svg {
  stroke-width: 2.05;
}
.nav a:focus-visible {
  outline: 2px solid rgba(15, 23, 42, 0.35);
  outline-offset: 2px;
}

@keyframes navBrandIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes navListIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes navActiveBar {
  from { transform: scaleY(0.35); opacity: 0.3; }
  to { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .brand,
  .nav,
  .nav a,
  .nav a .ico,
  .nav a .ico svg,
  .brand .mark,
  aside,
  .grp-title .grp-label,
  .grp-items,
  .nav a .nav-txt,
  .brand .txt,
  aside .foot #who,
  aside .foot a .logout-txt {
    animation: none !important;
    transition: background 0.15s ease, color 0.15s ease !important;
  }
  .nav a:hover,
  .nav a.active,
  .brand:hover .mark {
    transform: none;
  }
  .nav a.active::before {
    animation: none;
  }
}

aside .foot {
  margin-top: 10px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-left: 8px;
  margin-right: 8px;
  margin-bottom: 4px;
  padding: 12px 10px;
  border-top: 0;
  background: rgba(15,23,42,.035);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.05);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
aside .foot:hover {
  background: rgba(15, 23, 42, 0.05);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
aside .foot #who { color: var(--text-soft); margin-bottom: 4px; }
aside .foot a {
  color: var(--text-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 500;
  transition: color 0.18s ease, transform 0.18s ease;
}
aside .foot a svg {
  width: 16px;
  height: 16px;
  stroke: #0c4a6e;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
aside .foot a:hover {
  color: var(--brand);
  transform: translateX(2px);
}
aside .foot a:hover svg {
  stroke: var(--brand);
}
aside .foot a .logout-txt {
  white-space: nowrap;
  opacity: 1;
  max-width: 10rem;
  overflow: hidden;
  transition: opacity 0.22s ease 0.06s, max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
aside .foot #who {
  opacity: 1;
  max-width: 16rem;
  overflow: hidden;
  transition: opacity 0.22s ease 0.06s, max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 961px), (min-width: 601px) and (any-hover: hover) and (any-pointer: fine) {
  aside {
    padding: 12px 0 10px;
    overflow: hidden;
    justify-self: start;
  }
  aside:hover,
  aside.nav-open {
    width: 270px;
    box-shadow: 6px 0 18px rgba(15, 23, 42, 0.08);
  }
  aside .brand {
    width: 100%;
    gap: 8px;
    padding: 8px 0 12px;
    margin-bottom: 8px;
  }
  aside .brand .mark {
    margin-left: 12px;
    flex-shrink: 0;
  }
  aside .nav {
    padding-right: 0;
    margin-right: 0;
    scrollbar-gutter: auto;
  }
  aside .grp-title {
    width: auto;
    min-width: 0;
    gap: 12px;
    padding: 10px 12px;
    margin: 1px 8px;
    justify-content: flex-start;
    overflow: hidden;
  }
  aside .grp-title .ico {
    flex: 0 0 22px;
    width: 22px;
    min-width: 22px;
    max-width: 22px;
  }
  aside .nav a {
    margin: 1px 8px 1px 8px;
  }
  aside .grp-items {
    margin-left: 26px;
    margin-right: 8px;
  }
  aside .foot {
    margin-left: 0;
    margin-right: 0;
  }
  aside .foot a svg {
    margin-left: 24px;
  }
  aside:not(:hover):not(.nav-open) .grp-title {
    margin: 1px 0;
    padding: 10px 0;
    gap: 0;
  }
  aside:not(:hover):not(.nav-open) .grp-title .ico {
    flex: 0 0 64px;
    width: 64px;
    min-width: 64px;
    max-width: 64px;
  }
  aside:not(:hover):not(.nav-open) .grp-items {
    display: none;
  }
  aside:not(:hover):not(.nav-open) .grp-title .grp-label {
    max-width: 0;
    opacity: 0;
  }
  aside:not(:hover):not(.nav-open) .nav-group.has-active .grp-title {
    background: #f1f5f9;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  }
  aside:not(:hover):not(.nav-open) .foot #who {
    max-height: 0;
    opacity: 0;
    margin: 0;
    overflow: hidden;
  }
  aside:hover .nav,
  aside.nav-open .nav {
    scrollbar-gutter: stable;
    padding-right: 2px;
  }
}

main.content {
  grid-column: 2;
  grid-row: 2;
  padding: 18px 30px 22px;
  max-width: 100%;
  overflow-x: hidden;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar .title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -.01em;
}
.topbar .user {
  font-size: 12.5px;
  color: var(--muted);
}
.topbar .actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.topbar .actions a {
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}
.topbar .actions a:hover { color: var(--brand); }
.topbar .actions a svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0 14px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--line, rgba(15,23,42,.08));
}
/* Catálogos (países/zonas/ubicaciones): búsqueda + botones en la misma fila */
.search-row:has(> div),
.search-row:has(input#pBusc),
.search-row:has(input#zBusc),
.search-row:has(input#buscUbic) {
  display: grid;
  grid-template-columns: 1fr auto;
  justify-content: stretch;
}
.search-row input { width: 100%; }
.toolbar-row:empty { display: none; }
.search-row .ghost-inline {
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--text-soft);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 500;
  border: 0;
  font: inherit;
}
.search-row .ghost-inline svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.panel .row button.ghost-inline,
.panel .row button.primary.ghost-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.panel .row button svg,
.panel .row .ic svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.ic svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-sm { font-size: 14px; }
.ic-md { font-size: 18px; }
.ic-lg { font-size: 22px; }

/* ---------- KPI grid (4 tarjetas superiores) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.kpi {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.07);
}
.kpi .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.kpi .hd .ic { color: var(--muted); }
.kpi .num {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.kpi .lbl {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}

/* ---------- Dashboard operativo ---------- */
.dash-lead { margin: 0 0 14px; max-width: 72ch; }
.dash-stamp { color: var(--muted); font-size: 11.5px; }
.kpi-link {
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.kpi-link:hover {
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.16);
  transform: translateY(-1px);
}
.kpi-link .num { color: var(--brand); }
.kpi-link .num.num-cobro { color: #1d4ed8; }
.kpi-link .num.num-cartera { color: #b45309; }
.kpi-link .num.num-favor { color: #047857; }
.kpi-link .num.num-alerta { color: #b91c1c; }
.kpi-link .num.num-neutro { color: #334155; }
.rep-lead { margin: 0 0 14px; max-width: 64ch; }
.rep-actions { text-align: right; margin: 0 0 8px; }
.dash-kpis {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  margin-bottom: 16px;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.dash-span-2 { grid-column: 1 / -1; }
.dash-chart {
  position: relative;
  min-height: 280px;
  overflow-x: auto;
  overflow-y: visible;
}
.dash-chart svg {
  width: 100%;
  min-width: 560px;
  max-height: 320px;
  display: block;
  cursor: crosshair;
}
.dash-tip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  min-width: 160px;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(15,23,42,.22);
  opacity: 0;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity .12s ease;
  white-space: nowrap;
}
.dash-tip.is-on { opacity: 1; }
.dash-tip .tip-title {
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.dash-tip .tip-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 3px;
}
.dash-tip .tip-row .k {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dash-tip .tip-row .k i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.dash-tip .tip-row .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-soft);
}
.dash-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dash-legend i {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
}
.dash-legend i.lg-cobros { background: #1d4ed8; height: 3px; }
.dash-legend i.lg-facturado {
  height: 0;
  border-top: 2px dashed #b45309;
  background: transparent;
  border-radius: 0;
}
.dash-legend i.lg-neto {
  height: 0;
  border-top: 2px dashed #0f766e;
  background: transparent;
  border-radius: 0;
}
.dash-asamblea {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}
.dash-asamblea h4 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
}
.dash-hist { position: relative; min-height: 168px; }
.dash-hist-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 8px;
  align-items: end;
  height: 168px;
  padding-top: 8px;
}
.dash-hist-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
  cursor: default;
}
.dash-hist-val {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
  margin-bottom: 4px;
  text-align: center;
  line-height: 1.2;
}
.dash-hist-bar {
  width: 100%;
  max-width: 36px;
  border-radius: 4px 4px 0 0;
  min-height: 3px;
}
.dash-hist-col.is-oculta .dash-hist-bar {
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 4px, transparent 4px 8px);
}
.dash-hist-lab {
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
}
.dash-hist-meta { margin: 8px 0 0; }
.dash-cobertura { position: relative; }
.dash-cobertura-pct {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1d4ed8;
  line-height: 1.1;
  margin-bottom: 2px;
}
.dash-ciclo { position: relative; }
.dash-ciclo-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.dash-ciclo-head strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: #334155;
}
.dash-ciclo-track {
  height: 10px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
}
.dash-ciclo-track > span {
  display: block;
  height: 100%;
  background: #1d4ed8;
  border-radius: 999px;
  min-width: 2px;
}
.dash-ciclo-meta {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
}
.dash-ciclo-meta strong { font-variant-numeric: tabular-nums; color: var(--brand); }
.dash-inversion { display: flex; flex-direction: column; gap: 14px; }
.dash-inv-row { min-width: 0; }
.dash-inv-name { margin-bottom: 6px; }
.dash-inv-name strong { display: block; color: var(--brand); font-weight: 600; font-size: 13px; }
.dash-inv-row .dash-bar-row { grid-template-columns: minmax(72px, 28%) 1fr auto; }
.dash-bars {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-bar-row {
  display: grid;
  grid-template-columns: minmax(88px, 34%) 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  padding: 4px 6px;
  margin: 0 -6px;
  border-radius: 6px;
  cursor: default;
  transition: background .12s ease;
}
.dash-bar-row:hover { background: #f8fafc; }
.dash-bar-row:hover .dash-bar-track { box-shadow: inset 0 0 0 1px rgba(15,23,42,.12); }
.dash-bar-row:hover .dash-bar-fill { filter: brightness(1.08); }
.dash-bar-row .name {
  color: var(--text-soft);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-bar-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
}
.dash-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  min-width: 2px;
  transition: width .35s ease, filter .12s ease;
}
.dash-bar-row .val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.dash-agenda { display: flex; flex-direction: column; gap: 12px; }
.dash-agenda-block h4 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
}
.dash-agenda ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-agenda li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line, rgba(15,23,42,.08));
  font-size: 13px;
}
.dash-agenda li:last-child { border-bottom: 0; padding-bottom: 0; }
.dash-agenda .when {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  min-width: 72px;
}
.dash-agenda .what { color: var(--text-soft); }
.dash-agenda .what strong { display: block; color: var(--brand); font-weight: 600; margin-bottom: 2px; }
.dash-search { margin-top: 0; }
.dash-rank { overflow-x: auto; }
.dash-rank-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dash-rank-table th,
.dash-rank-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line, #e5e7eb);
  vertical-align: middle;
}
.dash-rank-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 700;
  background: #fafbfc;
}
.dash-rank-table td.num,
.dash-rank-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-rank-table .rank {
  color: var(--muted);
  font-weight: 700;
  width: 28px;
}
.dash-rank-table a { color: var(--brand); text-decoration: none; }
.dash-rank-table a:hover { text-decoration: underline; }
.dash-rank-table td.num { font-weight: 700; color: #b45309; }
.dash-favor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dash-favor-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line, #e5e7eb);
  font-size: 13px;
}
.dash-favor-list li:last-child { border-bottom: 0; }
.dash-favor-list .rank { color: var(--muted); font-weight: 700; }
.dash-favor-list .who strong { display: block; color: var(--brand); font-weight: 600; }
.dash-favor-list .amt {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #047857;
  white-space: nowrap;
}

/* ---------- Panel búsqueda + contenido (extensiones del panel global) ---------- */
.panel .row {
  grid-template-columns: 1fr 110px;
  gap: 8px;
  margin: 0;
  align-items: end;
}
.panel .results {
  margin-top: 0;
}

/* Toolbar de listado: búsqueda + acciones en una sola fila */
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}
.list-toolbar > input {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
}
.list-toolbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 8px;
}
.list-toolbar-actions > button {
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
}
.list-toolbar-actions .ic,
.list-toolbar-actions .ic svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.list-filter-btn {
  color: var(--text-soft, #475569);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
}
.list-filter-btn:hover {
  color: var(--brand-dark, #0b3a5b);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .22);
}
.list-filter-btn.is-active-filter {
  color: var(--brand-dark, #14532d);
  background: rgba(20, 83, 45, .07);
  box-shadow: inset 0 0 0 1px rgba(20, 83, 45, .32);
  font-weight: 600;
}
@media (max-width: 560px) {
  .list-toolbar-actions {
    width: 100%;
  }
  .list-toolbar-actions > button {
    flex: 1 1 auto;
  }
}

/* ---------- Checkbox matrix permisos (solo admin) ---------- */
.check-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px 14px;margin-top:10px}
.check-row{display:flex;align-items:center;gap:7px;padding:7px 9px;border-radius:4px;background:#fafafa;box-shadow:inset 0 0 0 1px rgba(15,23,42,.06)}
.check-row label{margin:0;font-size:12.5px;color:var(--text-soft);cursor:pointer;flex:1}
.check-row input[type="checkbox"]{width:16px;height:16px;accent-color:var(--info)}
.roles-tabs{display:flex;gap:6px;margin-bottom:12px;flex-wrap:wrap}
.roles-tabs button{padding:7px 12px;font-size:12.5px}
.roles-tabs button.active,
.roles-tabs button[aria-selected="true"]{
  background:var(--brand,#0f172a);
  color:#fff;
  border-color:var(--brand,#0f172a);
  font-weight:700;
}

/* ---------- Chips / tabs / filtros avanzados (admin) ---------- */
/* Base .chips/.chip/.filtros en tokens.css; aquí solo overrides admin si hacen falta */

/* ---------- Progress upload ---------- */
.upload-progress{height:6px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin-top:8px;box-shadow:inset 0 0 0 1px rgba(15,23,42,.06)}
.upload-progress > span{display:block;height:100%;background:var(--info);transition:width .25s ease}
.drop-zone{border:2px dashed #cbd5e1;border-radius:5px;padding:22px;text-align:center;color:var(--muted);cursor:pointer;background:#fafafa;font-size:12.5px}
.drop-zone.dragover{background:var(--info-bg);border-color:var(--info);color:var(--info)}

/* ---------- Gráficos SVG placeholders (R-001, L-004) ---------- */
.chart-wrap{padding:6px 2px}
.chart-wrap svg{width:100%;height:auto;display:block}
.chart-legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px;font-size:12px;color:var(--muted)}
.chart-legend .lg{display:flex;align-items:center;gap:7px}
.chart-legend .sw{width:11px;height:11px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(15,23,42,.1)}

/* ---------- Candidatos suspensión (dashboard panel) ---------- */
.cand-list{max-height:300px;overflow:auto;margin-top:6px}
.cand-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:10px;align-items:center;padding:8px 6px;border-bottom:1px solid rgba(15,23,42,.05)}
.cand-row:last-child{border-bottom:0}
.cand-row input[type="checkbox"]{width:16px;height:16px;accent-color:var(--err)}

/* ---------- Responsive admin ---------- */
@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: 48px auto 1fr;
  }
  .layout::before {
    height: 48px;
    background-image:
      linear-gradient(180deg, rgba(248, 250, 252, 0.18) 0%, rgba(248, 250, 252, 0.52) 100%),
      image-set(
        url("/images/admin-cinta.webp") type("image/webp"),
        url("/images/admin-cinta.jpg") type("image/jpeg")
      );
    background-position: center, center;
    background-size: cover, cover;
  }
  aside {
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    top: auto;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15,23,42,.06);
    background: #ffffff;
    overflow: visible;
    z-index: auto;
    box-shadow: none;
    transition: none;
  }
  .nav {
    flex: none;
    overflow: visible;
    max-height: none;
    padding-right: 0;
    margin-right: 0;
  }
  main.content { grid-row: auto; grid-column: auto; }
  .grid { grid-template-columns: 1fr 1fr; }
  .dash-kpis { grid-template-columns: repeat(3, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-asamblea { grid-template-columns: 1fr 1fr; }
  .dash-span-2 { grid-column: auto; }
  body.auth .row { grid-template-columns: 1fr; }
  .search-row { justify-content: flex-start; }
  .search-row:has(> div),
  .search-row:has(input#pBusc),
  .search-row:has(input#zBusc),
  .search-row:has(input#buscUbic) {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .check-grid { grid-template-columns: repeat(2,1fr); }
  .filtros { grid-template-columns: 1fr 1fr; }
  .form-2col, .form-3col { grid-template-columns: 1fr; }
  #toast-host { right: 10px; left: 10px; max-width: none; }
}
/* Con mouse o touchpad (PC, laptop táctil, 2 en 1 con teclado) el menú no se va arriba
   por tener la ventana angosta (zoom 125–150 %, pantalla dividida). Solo aprieta el menú;
   columnas, tablas y formularios siguen la regla de 960 px. Sin mouse (celular, tablet),
   rige la regla de arriba. Por debajo de 600 px se apila siempre. */
@media (min-width: 601px) and (max-width: 960px) and (any-hover: hover) and (any-pointer: fine) {
  .layout {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: 56px 1fr;
  }
  .layout::before {
    height: 56px;
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0, rgba(255, 255, 255, 0.38) 64px, rgba(255, 255, 255, 0.22) 64px, rgba(255, 255, 255, 0.40) 100%),
      linear-gradient(180deg, rgba(248, 250, 252, 0.12) 0%, rgba(248, 250, 252, 0.48) 100%),
      image-set(
        url("/images/admin-cinta.webp") type("image/webp"),
        url("/images/admin-cinta.jpg") type("image/jpeg")
      );
    background-position: center, center, center;
    background-size: cover, cover, cover;
  }
  aside {
    position: sticky;
    width: 64px;
    top: 56px;
    height: calc(100vh - 56px);
    max-height: calc(100vh - 56px);
    padding: 12px 8px 10px;
    border-bottom: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, #ffffff 52px),
      #ffffff;
    overflow: hidden;
    z-index: 40;
  }
  aside:hover,
  aside.nav-open {
    width: 270px;
  }
  .nav {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 2px;
    margin-right: -2px;
  }
  main.content {
    grid-column: 2;
    grid-row: 2;
    padding: 18px 20px 22px;
  }
}
@media (max-width: 560px) {
  main.content { padding: 14px 14px 16px; }
  .layout::before { height: 44px; }
  .grid { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-asamblea { grid-template-columns: 1fr; }
  .panel .row { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .filtros { grid-template-columns: 1fr; }
}

/* ---------- Pagos: intro + tools (A+C) ---------- */
.pagos-panel > .panel-intro > h3 { margin: 0; }
.pagos-hint-inline {
  margin: 2px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
.pagos-hint-inline strong {
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-soft);
  font-weight: 600;
}

/* Tools de pagos: búsqueda → filtros activos → colas (compacto) */
.pagos-panel > .panel-tools.pagos-tools {
  gap: 10px;
  padding: 12px 14px;
}
.pagos-panel .list-toolbar {
  width: 100%;
}
.pagos-panel .pagos-colas {
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line, rgba(15, 23, 42, .08));
}
.pagos-panel .bandeja-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.pagos-panel .pagos-rango-hint {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted, #64748b);
}
.pagos-panel .pagos-rango-hint[hidden],
.pagos-panel .pagos-rango-hint:empty {
  display: none !important;
}
.pagos-panel .filter-chips {
  margin-top: 0;
}

/* Colas: dentro de .panel-tools, sin pozo propio */
.bandeja-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 10px 0 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  border-top: 1px solid var(--line, rgba(15, 23, 42, .08));
}
.bandeja-chips .bandeja-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .1);
  white-space: nowrap;
}
.bandeja-chips .bandeja-chip:hover {
  background: #f1f5f9;
  color: var(--brand);
}
.bandeja-chips .bandeja-chip.is-active {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}
.bandeja-chips .bandeja-chip .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: rgba(15, 23, 42, .08);
  color: inherit;
}
.bandeja-chips .bandeja-chip.is-active .n {
  background: rgba(255, 255, 255, .22);
}

/* Filtro Desde/Hasta (lecturas, cortes, etc.) */
.pag-fecha-row,
.list-fecha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
}
.pag-fecha-field {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.pag-fecha-field input[type="date"] {
  box-sizing: border-box;
  min-width: 148px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.pag-fecha-row > button,
.list-fecha-row > button {
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin: 0;
}

/* Barra de filtros (Mi ruta, Asignaciones): etiqueta arriba, control 38px */
.search-row.filtro-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px 10px;
}
.search-row.filtro-toolbar .pag-fecha-field select,
.search-row.filtro-toolbar .pag-fecha-field input[type="date"] {
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
  width: auto;
  min-width: 148px;
  margin: 0;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  background-image: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
}
.search-row.filtro-toolbar .pag-fecha-field select {
  min-width: 132px;
  padding-right: 28px;
}
.search-row.filtro-toolbar > button,
.search-row.filtro-toolbar > .ghost-inline,
.search-row.filtro-toolbar .filtro-toolbar-acciones > button,
.search-row.filtro-toolbar .filtro-toolbar-acciones > .ghost-inline {
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin: 0;
}
.search-row.filtro-toolbar .filtro-toolbar-acciones {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.pag-sin-limite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  font-size: 12.5px;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
}
.pag-sin-limite input { margin: 0; }
#pagRangoHint.pagos-rango-hint { flex: none; min-width: 0; }

/* Encabezados ordenables (servidor) */
th.th-sort {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
th.th-sort:hover { color: var(--brand-ink, #0b3a5b); }
th.th-sort.is-sorted { color: var(--brand); }
th.th-sort .th-sort-ind {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  font-weight: 500;
  opacity: .28;
  vertical-align: middle;
  letter-spacing: -1px;
}
th.th-sort:hover .th-sort-ind { opacity: .55; }
th.th-sort.is-sorted .th-sort-ind {
  opacity: .9;
  color: var(--brand, #0b3a5b);
  font-weight: 700;
}

/* Chips de filtros activos (listados: Servicios, …) */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 2px;
}
.filter-chips[hidden] { display: none !important; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 5px 6px 5px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-dark, #0f3d2e);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 83, 45, .22);
  border-radius: 999px;
  border: 0;
}
.filter-chip .filter-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .05);
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: .75;
}
.filter-chip .filter-chip-x:hover {
  opacity: 1;
  background: rgba(20, 83, 45, .14);
}
.filter-chips .filter-clear-all {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  color: var(--muted, #64748b);
  background: transparent;
  box-shadow: none;
}
.filter-chips .filter-clear-all:hover {
  color: var(--brand-dark, #0b3a5b);
  text-decoration: underline;
}
button.ghost.is-active-filter {
  color: var(--brand-dark, #14532d);
  box-shadow: inset 0 0 0 1px rgba(20, 83, 45, .28);
  background: rgba(20, 83, 45, .06);
}
.svc-filtro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
@media (max-width: 560px) {
  .svc-filtro-grid { grid-template-columns: 1fr; }
}

/* ---------- Revisar ticket (pagos) ---------- */
.modal.ticket-review-modal {
  width: min(1100px, calc(100% - 24px));
  max-height: 92vh;
}
.modal.ticket-review-modal .modal-body { padding: 16px 18px; }
.ticket-review {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(260px, 0.95fr);
  grid-template-areas:
    "file side"
    "apps apps";
  gap: 14px;
}
.ticket-review-file { grid-area: file; }
.ticket-review-side { grid-area: side; }
.ticket-review-apps { grid-area: apps; }
.ticket-review-h {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ticket-file-frame {
  background: #0b1220;
  border-radius: 8px;
  overflow: hidden;
  min-height: 320px;
  max-height: 420px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}
.ticket-file-frame img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
  background: #0b1220;
}
.ticket-file-pdf iframe,
.ticket-file-pdf embed {
  width: 100%;
  height: 420px;
  border: 0;
  background: #fff;
}
.ticket-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ticket-file-empty {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.ticket-file-empty.warn {
  background: #fffbeb;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
}
.ticket-file-empty.bad {
  background: #fef2f2;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.25);
}
.ticket-kv {
  display: grid;
  gap: 8px;
}
.ticket-kv > div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.ticket-kv > div > span:first-child {
  font-size: 12px;
  color: var(--muted, #64748b);
  font-weight: 600;
}
.ticket-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.ticket-note p { margin: 6px 0 0; white-space: pre-wrap; font-size: 13px; }
.ticket-note.warn {
  background: var(--warn-bg, #fffbeb);
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.22);
}
.ticket-note.info {
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.2);
}
.ticket-note.info .form-row { margin-bottom: 8px; }
.ticket-senales {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.ticket-review-ctx {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.ticket-review-ctx .results table { font-size: 12.5px; }
.ticket-note.err {
  background: var(--err-bg, #fef2f2);
  box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.22);
}
#gridPag .row-actions {
  justify-content: flex-start;
  max-width: 420px;
}

/* Estilos de .btn-act → /ui/buttons.css (no duplicar aquí) */
.modal.ticket-review-modal .modal-footer {
  gap: 8px;
  flex-wrap: wrap;
}
.modal.ticket-review-modal .modal-footer .btn-act {
  padding: 10px 16px;
  font-size: 14px;
}

@media (max-width: 820px) {
  .ticket-review {
    grid-template-columns: 1fr;
    grid-template-areas:
      "side"
      "file"
      "apps";
  }
  .ticket-file-frame, .ticket-file-frame img, .ticket-file-pdf iframe {
    max-height: 280px;
    min-height: 220px;
  }
  .ticket-file-pdf iframe { height: 280px; }
}

.cargo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  align-items: stretch;
}
.cargo-card {
  border: 1px solid rgba(15,23,42,.1);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 210px;
}
.cargo-card.vacante { background: #fff; }
.cargo-card.tecnica { background: #fff; }
.cargo-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.cargo-titular { min-height: 2.4em; margin: 0 0 4px; }
.cargo-meta { min-height: 1.4em; margin: 0; }
.cargo-status { min-height: 2.2em; margin: 6px 0 0; }
.cargo-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.cargo-hist { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.cargo-hist ul { margin: 6px 0 0 16px; padding: 0; }
.cargo-asig { list-style: none; margin: 0 0 6px; padding: 0; }
.cargo-asig li {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline;
  padding: 6px 0; border-bottom: 1px solid rgba(15,23,42,.06); font-size: 13px;
}
.cargo-asig li:last-child { border-bottom: 0; }
.cargo-asig .asig-acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.persona-hits {
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: 220px;
  overflow: auto;
  margin: 6px 0 0;
  border: 1px solid rgba(15,23,42,.1);
  border-radius: 8px;
  padding: 4px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15,23,42,.12);
}
.persona-hits.is-open { display: flex; }
/* En flujo (no absolute): .modal-body tiene overflow:auto y recortaba el dropdown. */
.ficha-busca { position: relative; overflow: visible; }
.ficha-busca .persona-hits {
  position: static;
  z-index: 40;
  margin: 6px 0 10px;
  max-height: 200px;
}
.persona-hit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  width: 100%;
  box-shadow: none;
}
.persona-hit:hover { background: #f8fafc; }
.persona-hit .hit-name { font-size: 13px; font-weight: 600; color: #0f172a; }
.persona-hit .hit-meta { font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.hit-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 1px 7px;
  border-radius: 999px;
  line-height: 1.5;
}
.hit-badge.usuario { background: #ecfdf3; color: #166534; }
.hit-badge.ficha { background: #f1f5f9; color: #334155; }
.warn-txt { color: #9a3412; }
.clave-lote { margin: 10px 0 0 18px; padding: 0; }
.clave-lote li { margin: 6px 0; }
.cambio-row { border: 1px solid rgba(15,23,42,.08); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.cambio-row-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; margin-bottom: 6px; }
.cambio-sel { margin: 8px 0 0; padding: 8px 10px; background: #ecfdf3; border-radius: 6px; font-size: 13px; }

/* Captura de pagos: cuatro caminos después del monto */
.pago-modos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 4px;
  min-width: 0;
  max-width: 100%;
}
.pago-modo {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  justify-content: stretch;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--inset-border);
  cursor: pointer;
  font: inherit;
  font-weight: 400;
  color: inherit;
  width: 100%;
  height: auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}
.pago-modo:hover,
.pago-modo:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brand);
}
.pago-modo.is-on {
  background: #f0fdf4;
  box-shadow: inset 0 0 0 2px var(--brand);
}
.pago-modo-n {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  background: #f1f5f9;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.pago-modo.is-on .pago-modo-n {
  background: var(--brand);
  color: #fff;
}
.pago-modo strong {
  grid-column: 2;
  display: block;
  min-width: 0;
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 4px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.pago-modo > span:not(.pago-modo-n) {
  grid-column: 2;
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: anywhere;
}
.pago-modo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.pago-modo-actual {
  margin: 6px 0 0;
  font-weight: 700;
  color: var(--brand);
  font-size: 13.5px;
}
.pago-toma {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0;
  padding: 10px 12px;
  box-shadow: var(--inset-border);
  border-radius: var(--radius);
  background: #fff;
}
.pago-toma label { display: flex; gap: 8px; align-items: flex-start; flex: 1; margin: 0; cursor: pointer; }
.pago-toma input[type="radio"],
.pago-toma input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: var(--brand);
}
.pago-toma .pago-toma-amt { width: 110px; max-width: 36%; flex: 0 0 auto; min-width: 0; }
.pago-mix-acciones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 10px;
  min-width: 0;
  max-width: 100%;
}
.pago-mix-acciones button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
  padding: 8px 10px;
  font-size: 13px;
}
.pago-bloque {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--inset-border);
  min-width: 0;
  max-width: 100%;
}
.pago-bloque-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.pago-bloque-head .form-row {
  min-width: 0;
  margin: 0;
}
.pago-bloque-head .p-blk-mon,
.pago-bloque-head .m-blk-mon {
  grid-column: 1 / -1;
}
.pago-bloque-head button {
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: end;
}
.pago-bloque select,
.pago-bloque input[type="number"],
.pago-bloque input[type="text"] {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 560px) {
  .pago-mix-acciones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pago-modos { grid-template-columns: 1fr; }
}

