/* ============================================================
   SG.AGUA — Custom CSS
   Sistema de Gestión de Organizaciones de Aguas
   Diseño: Hydro Minimal — Lexend + Barlow
   ============================================================ */

/*
 * ── PALETA OFICIAL ───────────────────────────────────────────
 *
 *  Portales autenticados (dashboard, super-admin, usuarios)
 *    --agua-primary:   #00365a   azul marino oscuro
 *    --agua-secondary: #0077c2   azul institucional
 *    --agua-accent:    #00b4d8   cian claro
 *
 *  Portal de Organizaciones (_administrador/login.html)
 *    override :root { --primary: #0e7490; --secondary: #0891b2; --accent: #22d3ee; }
 *    Diferenciación visual teal para distinguir el acceso de organizaciones.
 *
 *  Páginas standalone (home.css, login.css)
 *    Usan --primary / --secondary / --accent con los mismos valores base.
 *    No cargan custom.css, por lo que replican los valores aquí documentados.
 *
 * ─────────────────────────────────────────────────────────── */

:root {
  --agua-primary:   #00365a;
  --agua-secondary: #0077c2;
  --agua-accent:    #00b4d8;
  --agua-accent-lt: #caf0f8;
  --agua-light:     #f0f7ff;
  --agua-surface:   #ffffff;
  --agua-border:    rgba(0, 54, 90, .10);
  --agua-org:       #0e7490;
  --font-display:   'Barlow', -apple-system, sans-serif;
  --font-main:      'Barlow', -apple-system, sans-serif;
  --radius-sm:      6px;
  --radius-base:    8px;
  --radius-card:    14px;
  --shadow-sm:      0 1px 4px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.04);
  --shadow-md:      0 6px 20px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --transition:     .2s cubic-bezier(.4,0,.2,1);
}

/* ── Base ────────────────────────────────────────────── */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: #f0f7ff;
}

h1, h2, h3, h4, h5, h6,
.card-title, .brand-text {
  font-family: var(--font-display);
  letter-spacing: -.02em;
}
h1 { font-size: 2.0rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.7rem; }
h5 { font-size: 1.6rem; }
h6 { font-size: 1.5rem; }

/* ── Navbar ──────────────────────────────────────────── */
.app-header.navbar {
  background: var(--agua-surface) !important;
  border-bottom: 1px solid var(--agua-border) !important;
  box-shadow: none !important;
}

.app-header .nav-link {
  font-family: var(--font-main);
  font-size: .82rem;
  color: #374151;
}

/* ── Sidebar ─────────────────────────────────────────── */
.app-sidebar {
  background: var(--agua-primary) !important;
}

.app-sidebar .sidebar-brand {
  background: var(--agua-primary) !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.app-sidebar .sidebar-brand .brand-text {
  font-family: var(--font-display) !important;
  font-weight: 600;
  font-size: .9rem !important;
  color: #fff;
  letter-spacing: -.02em;
}

.app-sidebar .nav-sidebar .nav-link {
  border-radius: 8px;
  margin: 1px 8px;
  padding: .42rem .7rem;
  color: rgba(255,255,255,.70);
  transition: background var(--transition), color var(--transition);
  font-family: var(--font-main);
  font-size: .82rem;
  position: relative;
}

.app-sidebar .nav-sidebar .nav-link:hover {
  background: rgba(255,255,255,.09);
  color: #fff;
}

.app-sidebar .nav-sidebar .nav-link.active {
  background: var(--agua-secondary) !important;
  color: #fff !important;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0,119,194,.35);
}

.app-sidebar .nav-sidebar .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  background: var(--agua-accent);
  border-radius: 0 2px 2px 0;
}

.app-sidebar .nav-header {
  padding: 1rem 1rem .3rem;
  font-size: .6rem !important;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35) !important;
  text-transform: uppercase;
  font-family: var(--font-display) !important;
}

.app-sidebar .nav-treeview .nav-link {
  font-size: .78rem;
  padding-left: 2rem;
}

/* ── Content header ──────────────────────────────────── */
.app-content-header {
  background: linear-gradient(135deg, #EEEEEE 0%, #FEFEFE 100%);
  border-bottom: none !important;
  border-radius: var(--radius-card);
  border-left: 3px solid var(--agua-secondary);
  padding: .7rem 1.1rem !important;
  margin: .75rem 1rem !important;
  box-shadow: var(--shadow-sm);
}

.app-content-header h3 {
  font-family: var(--font-display) !important;
  font-size: 1.05rem !important;
  font-weight: 600;
  color: var(--agua-primary);
  letter-spacing: -.02em;
}

.breadcrumb-item a {
  color: var(--agua-secondary);
  text-decoration: none;
  font-family: var(--font-main);
  font-size: .78rem;
}

/* ── KPI small-box ───────────────────────────────────── */
.small-box {
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.small-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.small-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, transparent 55%);
  pointer-events: none;
  border-radius: var(--radius-card);
}

.small-box > .inner {
  padding: 1.1rem 1rem .8rem;
}

.small-box h3 {
  font-family: var(--font-display) !important;
  font-size: 2.1rem !important;
  font-weight: 700 !important;
  letter-spacing: -.04em !important;
  margin-bottom: .25rem !important;
  line-height: 1.1 !important;
}

.small-box p {
  font-size: .82rem;
  font-weight: 500;
  opacity: .9;
  letter-spacing: .01em;
}

.small-box .small-box-icon {
  position: absolute;
  top: .6rem;
  right: .75rem;
  font-size: 3.8rem;
  opacity: .18;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.small-box:hover .small-box-icon {
  opacity: .28;
  transform: scale(1.05) rotate(-5deg);
}

.small-box .small-box-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .5rem .75rem;
  background: rgba(0,0,0,.15);
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  transition: background .15s;
}

.small-box .small-box-footer:hover {
  background: rgba(0,0,0,.25);
}

/* ── Cards ───────────────────────────────────────────── */
.card {
  border-radius: var(--radius-card);
  border: 1px solid var(--agua-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  font-family: var(--font-display) !important;
  font-weight: 600;
  font-size: .85rem;
}

.card-header h3.card-title {
  font-family: var(--font-display) !important;
  font-size: .85rem !important;
  font-weight: 600 !important;
  letter-spacing: -.01em;
}

/* ── Stagger animation ───────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Usa .anim-stagger en el <div class="row"> para animar solo columnas específicas */
.anim-stagger > [class*="col-"] {
  animation: fadeInUp .4s ease both;
}
.anim-stagger > [class*="col-"]:nth-child(1) { animation-delay: .04s; }
.anim-stagger > [class*="col-"]:nth-child(2) { animation-delay: .10s; }
.anim-stagger > [class*="col-"]:nth-child(3) { animation-delay: .16s; }
.anim-stagger > [class*="col-"]:nth-child(4) { animation-delay: .22s; }

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  background: var(--agua-secondary) !important;
  vertical-align: middle;
  border-color: var(--agua-secondary) !important;
  font-family: var(--font-main) !important;
  font-weight: 500;
  transition: background var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--agua-primary) !important;
  border-color: var(--agua-primary) !important;
  box-shadow: 0 4px 14px rgba(0,119,194,.35) !important;
}

/* ── Menu Cell (Iconos centrados) ──────────────────── */
.menu_cell {
  align-items: center;
  text-align: center;
  white-space: nowrap;
}

/* ── Color utilities ─────────────────────────────────── */
.text-org { color: var(--agua-org) !important; }

/* ── Badges ──────────────────────────────────────────── */
.badge {
  border-radius: var(--radius-sm);
  padding: .3em .65em;
  font-family: var(--font-display);
  font-weight: 500;
}

/* ── Tables ──────────────────────────────────────────── */
.table {
  font-size: .82rem;
  font-family: var(--font-main);
}

.table > thead > tr > th {
  font-family: var(--font-display) !important;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #4b5563;
  background: #f8fafc;
}

.table-hover > tbody > tr:hover > td {
  background-color: rgba(0,54,90,.03) !important;
}

/* ── Forms ───────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: var(--radius-base);
  border: 1.5px solid #d1d5db;
  font-family: var(--font-main);
  font-size: .85rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--agua-secondary);
  box-shadow: 0 0 0 3px rgba(0,119,194,.12);
}

.form-control[readonly],
.form-control:disabled {
  background: #f8fafc;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb !important;
}

.caudal-field[readonly] {
  background: #f1f5f9 !important;
  cursor: not-allowed !important;
}

/* Error messages — Django errorlist */
.errorlist {
  list-style: none;
  padding: 0;
  margin: .35rem 0 0;
}

.errorlist li {
  color: #ef4444;
  font-size: .82rem;
}

/* ── Config / Formsets ───────────────────────────────── */
.config-container {
  max-width: 1100px;
  margin: 0 auto;
}

.config-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--agua-border);
}

.config-card p {
  color: #64748b;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}

.config-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--agua-border);
}

/* Formset tables */
.formset-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.formset-table th {
  background: #f1f5f9;
  padding: .65rem .5rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  color: #334155;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid #cbd5e1;
}

.formset-table td {
  padding: .55rem .5rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.formset-table td input,
.formset-table td select {
  width: 100%;
  min-width: 0;
}

.btn-add-row {
  background: var(--agua-secondary);
  color: #fff;
  border: none;
  padding: .45rem .9rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: .85rem;
  margin-top: .75rem;
  transition: background var(--transition);
}

.btn-add-row:hover {
  background: var(--agua-primary);
}

/* Duplicate row validation */
.formset-table tbody tr.duplicate {
  background: #fee2e2 !important;
}

.formset-table tbody tr.duplicate td {
  background: #fee2e2 !important;
  border-bottom-color: #ef4444 !important;
}

.formset-table tbody tr.duplicate input.form-control,
.formset-table tbody tr.duplicate select.form-control,
.formset-table tbody tr.duplicate select.form-select {
  border-color: #ef4444 !important;
  background-color: #fff7f7 !important;
}

/* ── DataTables ──────────────────────────────────────── */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  font-size: .82rem;
  padding: .35rem .65rem;
}
.dataTables_wrapper .dataTables_length select {
  padding-right: 1.75rem;
}
.dataTables_wrapper .dataTables_processing {
  display: none !important;
}

/* Overlay global "Procesando" para DataTables */
#dt-processing-overlay {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  background: var(--agua-primary);
  color: #fff;
  padding: .45rem 1.4rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  pointer-events: none;
}

/* ── Avatar ──────────────────────────────────────────── */
.avatar-initials {
  font-family: var(--font-display) !important;
  font-weight: 600;
  font-size: .8rem !important;
  background: var(--agua-primary) !important;
}

/* ── Alert ───────────────────────────────────────────── */
.alert {
  border-radius: 10px !important;
  font-size: .84rem;
  border-left-width: 4px !important;
}

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.16); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.28); }

/* ── Sidebar Admin Panel ─────────────────────────────── */
.sidebar-user-panel {
  padding: .9rem 1rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.25);
  flex-shrink: 0;
}

.sidebar-avatar-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.2);
}

.sidebar-avatar-placeholder i {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
}

.sidebar-user-name {
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: .68rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: .1rem;
}

.sidebar-org-panel {
  padding: .6rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-org-label {
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: .35rem;
}

.sidebar-org-select {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: .4rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .6rem;
  cursor: pointer;
  outline: none;
}

.sidebar-org-select option {
  background: #1a2942;
  color: #fff;
}

/* ── Modales ─────────────────────────────────────────── */
.modal_ancha {
  max-width: 900px;
}

/* ── Periodos Table ──────────────────────────────────── */
.periodos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: white;
}

.periodos-table thead {
  background: #ecf0f1;
}

.periodos-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #bdc3c7;
}

.periodos-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #ecf0f1;
}

.periodos-table tr:hover {
  background: #f8f9fa;
}

.badge-abierto {
  background: #d5f4e6;
  color: #27ae60;
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.badge-cerrado {
  background: #fadbd8;
  color: #e74c3c;
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.85rem;
}


.table-container {
  background: white;
  border-radius: 0.375rem;
  border: 1px solid #dee2e6;
  overflow: hidden;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: #7f8c8d;
}

/* Periodo modal content */
.periodo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.acciones-section h4,
.calendario-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #34495e;
}

.acciones-table,
.calendario-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.acciones-table thead,
.calendario-table thead {
  background: #ecf0f1;
}

.acciones-table th,
.calendario-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #bdc3c7;
}

.acciones-table td,
.calendario-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #ecf0f1;
}

.acciones-table tr:hover,
.calendario-table tr:hover {
  background: #f8f9fa;
}

.monto-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #bdc3c7;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

.monto-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.total-cell {
  font-weight: 600;
  color: #27ae60;
}

.btn-small {
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  margin-right: 0.25rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-edit-cell {
  background: #3498db;
  color: white;
}

.btn-edit-cell:hover {
  background: #2980b9;
}

.btn-delete {
  background: #e74c3c;
  color: white;
}

.btn-delete:hover {
  background: #c0392b;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .periodo-content {
    grid-template-columns: 1fr;
  }
}

.modal-dialog-wide {
  max-width: 800px;
}

/* ── Selector de Año (Cuotas) ────────────────────────── */
.selector-anio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.selector-anio select {
  padding: 0.4rem 0.75rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius-base);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.selector-anio select:focus {
  border-color: var(--agua-secondary);
  box-shadow: 0 0 0 3px rgba(0,119,194,.12);
}


/* ── Cuotas Pagar (Payment Page) ────────────────────── */
.cuotas-pagar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.cuotas-pagar-table thead {
  background: #2c3e50;
}

.cuotas-pagar-table th {
  padding: 0.75rem 0.9rem;
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #1a252f;
  text-align: center;
  letter-spacing: 0.3px;
}

.cuotas-pagar-table th.col-usuario,
.cuotas-pagar-table th.col-estado {
  text-align: left;
}

.cuotas-pagar-table tbody td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #e8eef5;
  text-align: right;
  vertical-align: middle;
}

.cuotas-pagar-table tbody tr:nth-child(even) {
  background: #f9fbfd;
}

.cuotas-pagar-table tbody tr:hover {
  background: #f0f4f9;
  transition: background 0.2s ease;
}

.cuotas-pagar-table td.col-estado {
  text-align: left;
  font-weight: 500;
}

.cuotas-pagar-table td.col-tipo {
  text-align: left;
  color: #555;
}

.cuotas-pagar-table tfoot td {
  padding: 0.75rem 0.9rem;
  background: #f0f3f7;
  font-weight: 700;
  border-top: 2px solid #d0d8e0;
  border-bottom: 1px solid #d0d8e0;
}

.btn-select-vencidas,
.btn-select-todas {
  padding: 0.5rem 1rem;
  margin-right: 0.6rem;
  margin-bottom: 0.5rem;
  background: #0077c2;
  color: white;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-select-vencidas:hover,
.btn-select-todas:hover {
  background: #0055a4;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.btn-registrar-pago {
  padding: 0.6rem 1.4rem;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-registrar-pago:hover {
  background: #229954;
}

.btn-registrar-pago:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}

/* ── Action Links (Estándar para Ver, Editar, Borrar, Pagar, Generar, Asignar) ── */
.gap-2 {
 gap: 3px; 
}
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  padding: 4px;
  border: 0px solid var(--agua-secondary);
  background: transparent;
  color: var(--agua-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}

.action-link:hover {
  background: var(--agua-secondary);
  color: #fff;
  border-color: var(--agua-secondary);
}

.action-link.action-delete,
.action-link.action-borrar {
  border-color: #ef4444;
  color: #ef4444;
}

.action-link.action-delete:hover,
.action-link.action-borrar:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* ── Iconos en Action Links ── */
.action-link i,
i[class*="fa-"] {
  font-style: normal;
}

.action-link i {
  margin-right: 0;
}

.action-link.action-ver i::before {
  content: '\f15c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
}

.action-link.action-editar i::before {
  content: '\f044';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.action-link.action-borrar i::before,
.action-link.action-delete i::before {
  content: '\f1f8';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.action-link.action-pagar i::before {
  content: '\f571';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.action-link.action-generar i::before {
  content: '\f1c0';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.action-link.action-asignar i::before {
  content: '\e4ce';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.action-link.action-infraestructura i::before {
  content: '\f5a0';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

/* ── Footer ──────────────────────────────────────────── */
.app-footer {
  font-size: .78rem;
  color: #9ca3af;
  background: transparent;
  border-top: 1px solid var(--agua-border);
}

/* ── SG.CLUBES — Sidebar Menu Chevrons ──────────────── */
.sidebar-menu .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sidebar-menu .nav-link > p {
  flex: 1;
  margin: 0;
}

.sidebar-menu .nav-link > i.right {
  margin-left: auto;
  transition: transform 0.3s ease;
  font-size: 0.875rem;
}

.sidebar-menu .nav-link[aria-expanded="true"] > i.right {
  transform: rotate(90deg);
}
