/* Residencia → Rendición en VERTICAL (REN-W02, 20/10/2026): chips · filtros híbridos · una tabla con pestañas · dos franjas. Ningún cuadro al costado.
   Reutiliza el kit de Asistencia (amanta-asis-*) y solo compone la pantalla. En escritorio la página ocupa el alto de la ventana
   (amanta-economy-pagina-fit): la tabla toma el alto que queda y pagina el resto; no hay desplazamiento de la página. */
.amanta-rres{display:flex;flex-direction:column;gap:10px;min-width:0}
.amanta-rres>.amanta-management-error{margin:0}
.amanta-rres :is(h2,small,i,b,em){margin:0}

/* 1) Chips */
.amanta-rres-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0}
.amanta-rres-chips:where(.cinco){grid-template-columns:repeat(5,minmax(0,1fr))}
.amanta-rres-linea{margin-left:8px;font-style:normal;font-weight:700;color:#b3261e;white-space:nowrap}
.amanta-rres-chip{border:1px solid #e5e7eb;background:rgba(255,255,255,.92);border-radius:16px;padding:6px 14px 7px;min-width:0}
.amanta-rres-chip small{display:block;font-size:11.5px;line-height:1.3;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amanta-rres-chip b{display:block;font-size:16px;line-height:1.25;font-weight:600;letter-spacing:-.2px;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amanta-rres-chip b em{font-style:normal;font-size:11px;font-weight:400;color:#6b7280;margin-left:5px}
.amanta-rres-chip.o{background:#fff7ed;border-color:#fdba74}.amanta-rres-chip.o b{color:#c2410c}
.amanta-rres-chip.v{background:#f0fdf7;border-color:#a7f3d0}.amanta-rres-chip.v b{color:#047857}
.amanta-rres-chip.r{background:#fef6f5;border-color:#fecaca}.amanta-rres-chip.r b{color:#b91c1c}

/* 2) Filtros: el botón «Consultar rendición» va en la misma fila (columna `auto` de FiltroHibrido) */
.amanta-rres-filtros{overflow:visible}
.amanta-rres-filtros .amanta-hybrid-filter{min-height:0}
.amanta-rres .amanta-asistencia-state.error{background:#fde8e8;color:#b91c1c}
.amanta-rres-filtros .amanta-asis-filtro{border-bottom:0}
.amanta-rres :is(.amanta-asis-total,.amanta-asis-cuadro-title) p{margin:0}
.amanta-rres .amanta-asis-total{gap:0}
.amanta-rres .amanta-rres-filtros .amanta-compact-filter-bar :is(input:not([type="checkbox"]),button[role="combobox"]){height:44px;min-height:0}
.amanta-rres .amanta-rres-consultar{height:44px;border-radius:999px;border:1px solid #cbd5e1;background:#fff;padding:0 16px;font-size:13px;font-weight:600;color:#18212f;white-space:nowrap}
.amanta-rres-consultar:hover:not(:disabled){border-color:rgba(214,58,30,.45);color:#c2410c}
.amanta-rres-consultar:disabled{opacity:.55}

/* 3) Tabla con pestañas */
.amanta-rres-datos{display:flex;flex-direction:column;min-width:0;min-height:0}
.amanta-rres-pestanas{display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid #e5e7eb;flex:none}
.amanta-rres-pestanas>div{display:flex;gap:4px;border:1px solid #e5e7eb;border-radius:15px;background:#fff;padding:3px;flex:1 1 auto;min-width:0}
.amanta-rres-pestanas [role=tab]{flex:1 1 0;min-width:0;height:34px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:12px;border:0;background:transparent;font-size:13.5px;color:#6b7280;white-space:nowrap;padding:0 8px;cursor:pointer}
.amanta-rres-pestanas [role=tab] b{font-size:10.5px;font-weight:600;background:#f3f4f6;color:#6b7280;border-radius:999px;padding:1px 7px}
.amanta-rres-pestanas [role=tab].on{background:#fff7ed;color:#c2410c;font-weight:600;box-shadow:inset 0 0 0 1.5px #fdba74}
.amanta-rres-pestanas [role=tab].on b{background:#fde7da;color:#c2410c}
.amanta-rres-pestanas [role=tab]:focus-visible,.amanta-rres-info:focus-visible,.amanta-rres-flecha:focus-visible,.amanta-rres-icono:focus-visible{outline:2px solid #d63a1e;outline-offset:2px}
.amanta-rres .amanta-rres-info{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;min-width:0;min-height:0;padding:0!important;line-height:1;border-radius:50%;border:1px solid #cbd5e1;background:#fff;color:#475569;font-size:13px;font-weight:700;font-style:italic;font-family:Georgia,serif;cursor:help}
.amanta-rres-cuerpo{flex:1 1 auto;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d1d5db transparent}
.amanta-rres .amanta-asis-tabla-marco{overflow:visible}
.amanta-rres-tabla thead th{height:32px;position:sticky;top:0;z-index:1;padding:0 8px}
.amanta-rres-tabla td{height:var(--rres-fila,40px);padding:2px 8px}
.amanta-rres-tabla td.c-left>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.amanta-rres-tabla td input[type=checkbox]{width:18px;height:18px;accent-color:#d63a1e;cursor:pointer;vertical-align:middle}
.amanta-rres-tabla tr.amanta-rres-sel td{background:#fff7ed}
.amanta-rres-tabla tr.amanta-rres-sel td:first-child{box-shadow:inset 3px 0 0 #d63a1e}
.amanta-rres-tabla tr.amanta-rres-r-pendiente td:first-child{box-shadow:inset 3px 0 0 #fb923c}
.amanta-rres-tabla tr.amanta-rres-r-observada td:first-child{box-shadow:inset 3px 0 0 #facc15}
.amanta-rres-tabla tr.amanta-rres-r-rechazada td:first-child{box-shadow:inset 3px 0 0 #f87171}
.amanta-rres .amanta-rres-flecha{width:22px;height:22px;min-width:0;min-height:0;border-radius:50%;border:1px solid #e5e7eb;background:#fff;color:#6b7280;display:inline-grid;place-items:center;cursor:pointer;padding:0!important;line-height:1}
.amanta-rres-actualizar .amanta-rres-ic{width:14px;height:14px}
.amanta-rres .amanta-rres-actualizar{cursor:pointer;font-style:normal}
.amanta-rres-actualizar:disabled{opacity:.5;cursor:default}
.amanta-rres-flecha .amanta-rres-ic{width:11px;height:11px;transition:transform .15s}
.amanta-rres-flecha.on .amanta-rres-ic{transform:rotate(90deg)}
.amanta-rres .amanta-rres-icono{width:32px;height:32px;min-width:0;min-height:0;padding:0!important;line-height:1;border-radius:10px;border:1px solid #e5e7eb;background:#fff;color:#374151;display:inline-grid;place-items:center;cursor:pointer}
.amanta-rres-icono.az{color:#1d4ed8;border-color:#bfdbfe;background:#eff6ff}
.amanta-rres-icono.am{color:#a16207;border-color:#fde68a;background:#fefce8}
.amanta-rres-icono:disabled{opacity:.5;cursor:default}
.amanta-rres-ic{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.amanta-rres-tabla tr.amanta-rres-det td{height:36px;padding:0 14px 0 52px;background:#f9fafb;text-align:left;border-bottom:1px dashed #e5e7eb}
.amanta-rres-det td>div{display:flex;align-items:center;gap:22px;font-size:12.5px;color:#374151;white-space:nowrap;overflow:hidden}
.amanta-rres-det td>div>span{display:inline-flex;align-items:center;min-width:0}
.amanta-rres-det i{font-style:normal;font-size:10px;letter-spacing:1.2px;color:#6b7280;text-transform:uppercase;margin-right:6px}
.amanta-rres-det .amanta-rres-nota{overflow:hidden;text-overflow:ellipsis}
.amanta-rres-solo-movil{display:none!important}
.amanta-rres-datos .amanta-asis-paginador{min-height:34px;flex:none;padding-top:2px;padding-bottom:2px}
.amanta-rres-datos .amanta-asis-paginador button{width:30px;height:30px;min-width:0;min-height:0;padding:0}

/* 4) Franjas compactas apiladas, a todo el ancho */
.amanta-rres-franja-in{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;padding:8px 14px;min-width:0}
.amanta-rres-grupo{flex:1 1 300px;display:flex;align-items:flex-end;gap:10px;min-width:0}
.amanta-rres-franja h2{font-size:14.5px;font-weight:700;white-space:nowrap;flex:none}
.amanta-rres-dato{flex:none;min-width:0}
.amanta-rres-dato small{display:block;font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:#6b7280;font-weight:600;line-height:1.2;white-space:nowrap}
.amanta-rres-dato b{display:block;font-size:13.5px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.35}
.amanta-rres-dato.amanta-rres-caja{flex:0 1 190px}
.amanta-rres-dato.amanta-rres-caja b>span{display:block;overflow:hidden;text-overflow:ellipsis}
.amanta-rres-dato .amanta-asistencia-state{display:inline-block}
.amanta-rres-campo{flex:1 1 0;min-width:110px;display:block}
.amanta-rres-campo>span{display:block;font-size:10px;letter-spacing:1.4px;color:#6b7280;font-weight:600;text-transform:uppercase;white-space:nowrap;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis}
.amanta-rres .amanta-rres-campo input{width:100%;height:38px!important;min-height:0!important;margin:0;border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:0 12px;font-size:13.5px;color:#111827}
.amanta-rres .amanta-rres-boton{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px!important;min-height:0!important;border-radius:999px;border:1px solid #cbd5e1;background:#fff;padding:0 16px;font-size:13.5px;font-weight:600;color:#18212f;white-space:nowrap;align-self:flex-end}
.amanta-rres-boton.primary{background:#d63a1e;border-color:#d63a1e;color:#fff;box-shadow:0 8px 18px -10px rgba(214,58,30,.8)}
.amanta-rres-boton:disabled{opacity:.45;box-shadow:none;cursor:default}
.amanta-rres-sin-mes{flex:1 1 0;min-width:0;font-size:13px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amanta-rres-franja .amanta-rres-dato:has(.amanta-asistencia-state){align-self:center}

/* Escritorio: la página ocupa el alto; la tabla toma lo que queda. Franjas y chips no se estiran. */
@media (min-width:761px){
  main.amanta-economy.amanta-economy-offline-fit.amanta-economy-pagina-fit>.amanta-rres{flex:1 1 0;min-height:0;gap:8px}
  .amanta-rres>:is(.amanta-rres-chips,.amanta-rres-filtros,.amanta-rres-franja){flex:none}
  .amanta-rres>.amanta-rres-datos{flex:1 1 0;min-height:0}
  /* 28/11/2026: lo pagado con tarjeta se tiene que ver también a 768 de alto: al menos dos filas (la página se desplaza). */
  .amanta-rres>.amanta-rres-datos:has(.amanta-rres-t-tarjeta){flex:none}
  .amanta-rres-datos:has(.amanta-rres-t-tarjeta) .amanta-rres-cuerpo{min-height:130px}
}
/* Simetría (R12): con la barra lateral ancha (más de 1100 px) el contenido arranca a 26 px de su borde visible; a la derecha, otros 26 px */
@media (min-width:1101px){
  main.amanta-economy.amanta-economy-offline-fit.amanta-economy-pagina-fit.amanta-economy-v-rendicion.amanta-economy-rol-resident{padding-right:26px}
}
/* Alturas bajas (1093×508 y similares): todo más compacto */
@media (max-height:640px) and (min-width:761px){
  .amanta-rres{gap:6px}
  .amanta-rres-chip{padding:3px 12px 4px;border-radius:13px}
  .amanta-rres-chip small{font-size:10.5px}.amanta-rres-chip b{font-size:14px}
  .amanta-rres-filtros .amanta-asis-filtro{padding:4px 8px}
  .amanta-rres-filtros .amanta-compact-filter-bar>*{--alto:36px}
  .amanta-rres-filtros :is(input[type=search],.amanta-rres-consultar,button[aria-label="Limpiar filtros"]){height:36px!important}
  .amanta-rres-filtros button[aria-label="Limpiar filtros"]{width:36px!important}
  .amanta-rres-filtros :is(.amanta-asis-total){height:36px}
  .amanta-rres-filtros [role=combobox],.amanta-rres-filtros .h-11{height:36px!important;min-height:36px}
  .amanta-rres-pestanas{padding:4px 10px}
  .amanta-rres-pestanas [role=tab]{height:28px;font-size:12.5px}
  .amanta-rres-tabla thead th{height:28px}
  .amanta-rres-tabla td{height:var(--rres-fila,34px);padding:1px 8px}
  .amanta-rres-tabla tr.amanta-rres-det td{height:30px}
  .amanta-rres-datos .amanta-asis-paginador{min-height:28px;padding-top:0;padding-bottom:0}
  .amanta-rres-datos .amanta-asis-paginador button{width:26px;height:26px}
  .amanta-rres-franja-in{padding:4px 12px;gap:10px}
  .amanta-rres-campo>span{display:none}
  .amanta-rres .amanta-rres-campo input,.amanta-rres .amanta-rres-boton{height:32px!important}
  .amanta-rres-boton{align-self:center}
  .amanta-rres-grupo{align-items:center}
  .amanta-rres-franja h2{font-size:13.5px}
  .amanta-rres-dato b{font-size:12.5px}
}
/* Anchos medios (1093): el total del filtro cede su lugar al buscador (los chips ya llevan los importes) */
@media (max-width:1180px) and (min-width:761px){
  .amanta-rres-filtros .amanta-compact-filter-bar{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,.8fr) auto 44px!important}
  .amanta-rres-filtros .amanta-asis-total{display:none}
  .amanta-rres-pestanas [role=tab]{font-size:12.5px;gap:5px}
  .amanta-rres-dato.amanta-rres-caja{flex-basis:130px}
}
/* Teléfono (Residencia usa el teléfono): todo apilado en una columna, sin desborde lateral; la página sí se desplaza. */
@media (max-width:760px){
  /* En el teléfono el kit oculta los selectores del filtro; aquí Estado, Mes y «Consultar rendición» siguen a la vista */
  .amanta-rres .amanta-rres-filtros .amanta-asis-filtro .amanta-compact-filter-bar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  .amanta-rres .amanta-rres-filtros .amanta-asis-filtro .amanta-compact-filter-bar>:is(div,button):not(button[aria-label="Limpiar filtros"]):not(.amanta-asis-total){display:block!important}
  .amanta-rres .amanta-rres-filtros .amanta-asis-filtro .amanta-compact-filter-bar>.amanta-asis-total{display:none!important}
  .amanta-rres .amanta-rres-filtros .amanta-asis-filtro .amanta-compact-filter-bar>label{grid-column:1/-1}
  .amanta-rres .amanta-rres-filtros .amanta-asis-filtro .amanta-compact-filter-bar>button[aria-label="Limpiar filtros"]{justify-self:end}
  .amanta-rres-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
  .amanta-rres-pestanas{flex-wrap:wrap}
  .amanta-rres-pestanas [role=tab]{font-size:12px;padding:0 4px;flex-wrap:wrap;height:auto;min-height:34px;white-space:normal;text-align:center}
  .amanta-rres-tabla :is(th,td).c-verif{display:none}
  .amanta-rres-tabla col:nth-child(6){display:none}
  .amanta-rres-tabla col{width:auto!important}
  .amanta-rres-t-pagos col:nth-child(-n+2){width:40px!important}.amanta-rres-t-pagos col:nth-child(3){width:76px!important}
  .amanta-rres-t-rend col:first-child,.amanta-rres-t-mov col:first-child{width:36px!important}
  .amanta-rres-t-rend col:nth-child(2),.amanta-rres-t-mov col:nth-child(2){width:76px!important}
  .amanta-rres-t-rend col:nth-child(6){width:48px!important;display:table-column}
  .amanta-rres-solo-movil{display:inline-flex!important}
  .amanta-rres-det td>div{flex-wrap:wrap;gap:6px 16px;white-space:normal}
  .amanta-rres-tabla tr.amanta-rres-det td{height:auto;padding:6px 12px}
  .amanta-rres-tabla td{padding:2px 4px;font-size:12px}
  .amanta-rres-franja-in{flex-wrap:wrap}
  .amanta-rres-grupo{flex:1 1 100%;flex-wrap:wrap}
  .amanta-rres-campo{flex:1 1 100%}
  .amanta-rres-boton{flex:1 1 100%;align-self:stretch}
  .amanta-rres-cuerpo{overflow-y:visible}
}
