* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

.hidden {
  display: none !important;
}

.screen {
  min-height: 100vh;
}


.card {
  background: white;
  border-radius: 18px;
  padding: 16px;
  margin: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.subtitle,
.user-email,
.message,
.stat-label,
.detail-label {
  color: #6b7280;
}

/*.topbar {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.app-title {
  margin: 0;
  font-size: 1.2rem;
}*/

.content {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: bold;
  color: #111827;
}

.input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  background: white;
}

.textarea {
  min-height: 100px;
  resize: vertical;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
}

.btn:hover {
  opacity: 0.95;
}

.btn-block {
  width: 100%;
}

.btn-small {
  padding: 10px 12px;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-primary,
.btn-secondary {
  border: 1px solid transparent;
}

.divider {
  text-align: center;
  margin: 12px 0;
  color: #9ca3af;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  background: #fafafa;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.list-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.list-item h3 {
  margin: 0 0 6px 0;
  font-size: 1rem;
}

.list-item p {
  margin: 4px 0;
  color: #4b5563;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-top: 8px;
}

.badge-ok {
  background: #dcfce7;
  color: #166534;
}

.badge-pending {
  background: #fee2e2;
  color: #991b1b;
}

.badge-neutral {
  background: #e5e7eb;
  color: #374151;
}

.detail-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: #111827;
}

.field-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.dynamic-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dynamic-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
}

.dynamic-checkbox-item input[type="checkbox"] {
  transform: scale(1.15);
}

.dynamic-checkbox-item span {
  font-weight: 500;
  color: #111827;
}

/* --- LISTADO SOCIOS COMPACTO --- */

.list-item.compacto {
  padding: 10px 12px;
}

.row-single {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.left-block {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.nombre {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.chips-inline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: #e5e7eb;
}

.chip-ok {
  background: #dcfce7;
  color: #166534;
}

.chip-pending {
  background: #fee2e2;
  color: #991b1b;
}

.chip-neutral {
  background: #e5e7eb;
  color: #374151;
}

.socio-quick-delete-btn {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
}

@media (min-width: 701px) {
  .list-item.compacto {
    padding: 8px 12px;
  }

  .nombre {
    font-size: 0.92rem;
  }

  .chip {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .socio-quick-delete-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.9rem;
  }
}

/* --- FORMULARIO SOCIO POR FILAS --- */

.form-grid-socio-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field .input,
.form-field textarea,
.form-field select {
  margin-bottom: 0;
}

.checkbox-inline {
  margin-top: 10px;
}

@media (min-width: 900px) {
  .form-row-main {
    grid-template-columns: 0.9fr 1.3fr 0.5fr;
  }

  .form-row-contacto {
    grid-template-columns: 0.7fr 1.5fr 0.7fr;
  }

  .form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .form-row-extra {
    grid-template-columns: 0.7fr 1.3fr 0.45fr 0.8fr;
  }
}

/* --- FICHA SOCIO EN GRID --- */

.detail-grid-socio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.detail-grid-socio .detail-row {
  margin: 0;
}

.detail-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-row-span-full {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .detail-grid-socio {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
  }

  .detail-row-span-2 {
    grid-column: span 2;
  }

  .detail-row-span-full {
    grid-column: 1 / -1;
  }
}

/* --- GRID TARJETAS CUOTAS / ATRIBUTOS --- */

.list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card-mini {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  background: #fafafa;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-mini:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card-mini-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card-mini h3 {
  margin: 0 0 6px 0;
  font-size: 1rem;
}

.card-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.card-mini p {
  margin: 4px 0;
  color: #4b5563;
}

@media (min-width: 900px) {
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- PAGOS COMPACTOS --- */

.pago-compacto {
  padding: 12px 14px;
}

.pago-top {
  font-weight: 600;
  font-size: 0.98rem;
  color: #111827;
  margin-bottom: 4px;
}

.pago-meta {
  font-size: 0.9rem;
  color: #4b5563;
}

/* --- EVENTOS COMPACTOS --- */

.evento-compacto {
  padding: 12px 14px;
}

.evento-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.evento-nombre {
  font-weight: 600;
  color: #111827;
}

.evento-meta {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #4b5563;
}

.list-grid-cumples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cumple-mini {
  padding: 12px 14px;
  background: #fafafa;
}

@media (min-width: 900px) {
  .list-grid-cumples {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- MODAL CALENDARIO --- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100vw - 32px));
  margin: 60px auto;
  background: white;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* --- CALENDARIO --- */

.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.calendar-title {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 150px;
  color: #111827;
}

.calendar-year-select {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  margin-bottom: 0;
  padding: 10px 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.calendar-weekday {
  font-weight: 700;
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
  padding: 4px 0 6px;
}

.calendar-cell {
  min-height: 72px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.calendar-cell:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.calendar-cell-empty {
  background: transparent;
  border: none;
  cursor: default;
}

.calendar-cell-today {
  border: 2px solid #2563eb;
  background: #eef4ff;
}

.calendar-cell-has-events {
  background: #f9fafb;
}

.calendar-day-number {
  position: absolute;
  top: 6px;
  right: 8px;
  font-weight: 800;
  font-size: 1rem;
  color: #111827;
}

.calendar-dots {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.calendar-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 2px #ffffff;
}

.calendar-dot-evento {
  background: #16a34a;
}

.calendar-dot-cumple {
  background: #2563eb;
}

.calendar-dot-inactivo {
  background: #9ca3af;
}

.calendar-count {
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: 0.68rem;
  color: #6b7280;
}

/* --- DETALLE MODAL CALENDARIO --- */

.calendar-detail-item {
  padding: 8px 0;
  border-top: 1px solid #e5e7eb;
}

.calendar-detail-item:first-of-type {
  border-top: none;
}

.calendar-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-detail-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
}

.calendar-detail-dot-evento {
  background: #16a34a;
}

.calendar-detail-dot-cumple {
  background: #2563eb;
}

.calendar-detail-meta {
  color: #4b5563;
  margin-top: 4px;
  font-size: 0.9rem;
}

.calendar-detail-meta-evento {
  color: #166534;
}

.calendar-detail-meta-cumple {
  color: #1d4ed8;
}

/* --- NAV SUPERIOR --- */

.top-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  margin: 0 16px 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-btn {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #1d4ed8;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav-btn:hover {
  background: #eff6ff;
}

.nav-btn.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* --- TOOLBAR SOCIOS LIMPIA --- */

.socios-toolbar {
  display: grid;
  grid-template-columns: 40px auto 1fr 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.socios-toolbar-left,
.socios-toolbar-right {
  display: contents;
}

#add-socio-btn,
#load-socios-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}

#search-socios {
  width: 100%;
  height: 40px;
  min-width: 0;
  margin: 0;
  margin-bottom: 0;
  padding: 0 14px;
  border-radius: 12px;
  box-sizing: border-box;
}

#socios-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

#socios-filter-bar .btn,
#socios-filter-bar .socios-toggle {
  height: 40px;
  margin: 0;
  padding: 0 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  white-space: nowrap;
}

.socios-toggle {
  background: #dbeafe;
  color: #1d4ed8;
  gap: 8px;
  font-weight: 600;
  border: 1px solid transparent;
}

.socios-toggle input {
  margin: 0;
  transform: translateY(-1px);
}

.socios-toggle.active {
  background: #dbeafe;
  color: #1d4ed8;
}

#socios-filter-bar .btn.btn-todos {
  width: 40px;
  min-width: 40px;
  padding: 0;
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  border: 1px solid transparent !important;
}

#socios-filter-bar .btn.btn-todos.btn-todos-active .icon-check-all {
  border-color: #1d4ed8;
}

#socios-filter-bar .btn.btn-todos.btn-todos-active .icon-check-all::after {
  border-color: #1d4ed8;
}

#socios-filter-bar .btn.btn-todos.btn-todos-inactive .icon-check-all {
  border-color: white;
}

#socios-filter-bar .btn.btn-todos.btn-todos-inactive .icon-check-all::after {
  border-color: white;
}

#socios-filter-bar .btn.btn-todos:hover {
  background: #bfdbfe !important;
}

#socios-filter-bar .btn.btn-todos .icon-check-all {
  width: 18px;
  height: 18px;
  border: 2px solid #1d4ed8;
  border-radius: 4px;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
}

#socios-filter-bar .btn.btn-todos .icon-check-all::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid #1d4ed8;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .calendar-toolbar {
    gap: 8px;
  }

  .calendar-title {
    min-width: auto;
    font-size: 1rem;
  }

  .calendar-year-select {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-cell {
    min-height: 56px;
    padding: 4px;
    border-radius: 10px;
  }

  .calendar-day-number {
    top: 4px;
    right: 6px;
    font-size: 0.9rem;
  }

  .calendar-dots {
    left: 4px;
    bottom: 4px;
    gap: 4px;
  }

  .calendar-dot {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 1.5px #ffffff;
  }

  .calendar-weekday {
    font-size: 0.72rem;
    padding: 2px 0 4px;
  }

  .calendar-count {
    left: 4px;
    top: 4px;
    font-size: 0.64rem;
  }

  .socios-toolbar {
    grid-template-columns: 40px 1fr 40px;
    grid-template-areas:
      "add filters filters"
      "search search refresh";
    gap: 10px;
  }

  #add-socio-btn {
    grid-area: add;
  }

  #socios-filter-bar {
    grid-area: filters;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  #search-socios {
    grid-area: search;
  }

  #load-socios-btn {
    grid-area: refresh;
  }
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

}

.btn-pago {
  white-space: nowrap;
}

.atributos-dropdown {
  position: absolute;
  margin-top: 6px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  z-index: 20;
  width: 220px;
}

.atributos-dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.atributos-dropdown label {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
}

.atributos-actions {
  margin-top: 6px;
  text-align: right;
}

.chip-atributo {
  background: #ede9fe;
  color: #5b21b6;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-atributo-more {
  background: #f3f4f6;
  color: #4b5563;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-card-link {
  border: 1px solid #e5e7eb;
  cursor: pointer;
  text-align: left;
}

.stat-card-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.stat-card-wide {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-card-wide {
    grid-column: span 2;
  }
}

.missing-data {
  color: #b91c1c;
}

.missing-label {
  color: #b91c1c;
  font-weight: 700;
}

.input-missing {
  border-color: #ef4444 !important;
  background: #fef2f2;
}

.list-total {
  margin-top: 10px;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 600;
}

.list-footer-actions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

/* --- HEADER NUEVO --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 16px;

  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: white;

  border-bottom: none;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-logo {
  height: 32px;
  width: auto;
}

.app-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.topbar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.user-email {
  font-size: 0.75rem;
  opacity: 0.8;
  color: rgba(255,255,255,0.85);
}

.logout-btn {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);

  background: rgba(255,255,255,0.15);
  color: white;

  font-size: 1.1rem;
  cursor: pointer;

  transition: all 0.15s ease;
}

.logout-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* --- DASHBOARD CON COLOR --- */

.dashboard-grid .stat-card {
  background: #f1f5ff;
  border: 1px solid #dbeafe;
}

.dashboard-grid .stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15);
}

.dashboard-grid .stat-card:nth-child(2) {
  background: #fef2f2;
  border-color: #fecaca;
}

.dashboard-grid .stat-card:nth-child(5) {
  background: #fff7ed;
  border-color: #fed7aa;
}

/* wrapper general */
.top-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 12px;
}

/* botón home separado */
.nav-home {
  width: 42px;
  height: 42px;
  min-width: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  border: none;

  background: #2563eb;
  color: white;

  font-size: 1.2rem;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* hover */
.nav-home:hover {
  transform: translateY(-1px);
}

/* centrar navegación */
.top-nav {
  display: flex;
  justify-content: center;   /* 🔥 clave */
  gap: 6px;

  overflow-x: auto;
  padding: 6px;

  margin: 0 16px 12px;

  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #dbeafe;
  border-radius: 16px;

  backdrop-filter: blur(6px);
}

.socio-quick-delete-btn {
  color: #ef4444;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.socio-quick-delete-btn:hover {
  background: #fee2e2;
  transform: scale(1.05);
}

.mini-toolbar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mini-filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
}

.mini-filter-bar .btn {
  height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.compacto-simple .nombre {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.right-block-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.cuota-quick-delete-btn,
.atributo-quick-delete-btn {
  color: #ef4444;
  background: #fef2f2;
  border: 1px solid #fecaca;
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cuota-quick-delete-btn:hover,
.atributo-quick-delete-btn:hover {
  background: #fee2e2;
}

.mini-filter-bar .btn-todos {
  width: 40px;
  min-width: 40px;
  padding: 0;
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid transparent;
}

.mini-filter-bar .btn-todos.active,
.mini-filter-bar .btn-primary.btn-todos {
  background: #2563eb;
  color: white;
}

.mini-filter-bar .btn-todos .icon-check-all {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
}

.mini-filter-bar .btn-todos .icon-check-all::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  box-sizing: border-box;
}

/* --- BOTON TODOS EN CUOTAS Y ATRIBUTOS --- */

.mini-filter-bar .btn-todos {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid transparent;
}

.mini-filter-bar .btn-todos .icon-check-all {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
}

.mini-filter-bar .btn-todos .icon-check-all::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  box-sizing: border-box;
}

/* estado activo */
.mini-filter-bar .btn.btn-primary.btn-todos,
.mini-filter-bar .btn-todos.active {
  background: #2563eb;
  color: white;
}

.btn-filter-active {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid transparent;
}

.btn-filter-active:hover {
  background: #bfdbfe;
}

.mini-filter-bar .btn-filter-active.btn-todos {
  background: #dbeafe;
  color: #1d4ed8;
}

/* --- BOTON TODOS: estados como en Socios --- */

.mini-filter-bar .btn.btn-secondary.btn-todos .icon-check-all {
  border-color: white;
}

.mini-filter-bar .btn.btn-secondary.btn-todos .icon-check-all::after {
  border-color: white;
}

.mini-filter-bar .btn.btn-filter-active.btn-todos .icon-check-all {
  border-color: #1d4ed8;
}

.mini-filter-bar .btn.btn-filter-active.btn-todos .icon-check-all::after {
  border-color: #1d4ed8;
}

/* acciones header */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* botones icono header */
.header-icon-btn {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);

  background: rgba(255,255,255,0.15);
  color: white;

  font-size: 1.1rem;
  cursor: pointer;

  transition: all 0.15s ease;
}

.header-icon-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

#auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px;   /* 👈 clave */
  padding-bottom: 24px;
  background:
    linear-gradient(180deg, rgba(21, 89, 222, 0.08), rgba(21, 89, 222, 0.02)),
    #f5f7fb;
}

.auth-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  padding: 36px 32px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
  border: 1px solid #e5e7eb;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 16px;
}

.auth-brand h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  color: #1f2937;
}

.auth-brand .subtitle {
  margin: 10px 0 0;
  font-size: 1.1rem;
  color: #6b7280;
}

.btn-block {
  width: 100%;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 22px 0 18px;
  color: #9ca3af;
  font-weight: 600;
}

.divider span {
  padding: 0 10px;
  background: #fff;
}

.input {
  width: 100%;
  margin-bottom: 14px;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid #cfd6e4;
  padding: 0 18px;
  font-size: 1rem;
  background: #fff;
}

.input:focus {
  outline: none;
  border-color: #1559de;
  box-shadow: 0 0 0 3px rgba(21, 89, 222, 0.12);
}

#login-google-btn,
#login-email-btn {
  min-height: 56px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
}

#auth-message {
  margin-top: 12px;
  text-align: center;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .auth-logo {
    width: 72px;
    height: 72px;
  }

  .auth-brand h1 {
    font-size: 1.7rem;
  }

  .auth-brand .subtitle {
    font-size: 1rem;
  }
}
