/* ESTILOS ERROR */
label.is-invalid {
    width: 100%;
    margin-top: -1rem;
    margin-bottom: 1rem;
    font-size: .875em;
    color: #dc3545;
    font-weight: 600;
}

p.is-invalid {
    width: 100%;
    margin-top: .25rem;
    margin-bottom: 0 !important;
    font-size: .875em;
    color: #dc3545;
    font-weight: 600;
}

/* ESTILOS BOTÓN COLOR MODE */
.bi {
    vertical-align: -.125em;
    fill: currentColor
}

.bd-mode-toggle {
    z-index: 1500
}

.bd-mode-toggle .bi {
    width: 1em;
    height: 1em
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important
}

/* ESTILOS BOTÓN COLOR MODE */

/* ESTILOS PAGINADOR */

/* PAGINADOR AGORA */
.pagination .page-link {
    background-color: #1f2428;
    /* fondo oscuro */
    color: #adb5bd;
    /* texto gris */
    border: 1px solid #343a40;
    transition: all 0.2s ease-in-out;
}

/* Hover */
.pagination .page-link:hover {
    background-color: #198754;
    /* verde Agora */
    color: #fff;
    border-color: #198754;
}

/* Página activa */
.pagination .page-item.active .page-link {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
    font-weight: 600;
}

/* Deshabilitado */
.pagination .page-item.disabled .page-link {
    background-color: #1f2428;
    color: #6c757d;
    border-color: #343a40;
    cursor: not-allowed;
}

/* Focus / aura verde Agora */
.pagination .page-link:focus,
.pagination .page-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.4);
    /* verde Agora */
    background-color: #198754;
    color: #fff;
    border-color: #198754;
}

/* ESTILOS PAGINADOR */

/* ESTILOS BTN PLUS */
.btn-plus {
    display: inline-block;
    /* Asegura que el enlace se comporte como un bloque inline para la animación */
    cursor: pointer;
    color: #198754;
    transition: all .2s;
    animation: pulse 2s ease-in-out infinite;
    /* Aplica la animación de pulso infinita */
}

.btn-plus:hover {
    cursor: pointer;
    color: rgb(5, 191, 48);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        /* Tamaño original */
    }

    50% {
        transform: scale(1.1);
        /* Crece un 10% */
    }

    100% {
        transform: scale(1);
        /* Vuelve al tamaño original */
    }
}

/* COLOR DE TEXTO AGORA */
.agora-tip {
    color: #198754;
    cursor: pointer;
}

/* NAV-LINK AGORA */

.nav-pills .nav-link {
    color: rgb(235, 234, 234);
    border: 1px solid #146c43;
    transition: all 0.15s ease;
}

.nav-pills .nav-link:hover {
    color: white;
    border-color: #146c43;
    background-color: #157347;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: #198754;
    color: #ffffff;
    font-weight: 500;
    border-color: #198754;
}

/* Botones DataTables */
/* Contenedor de botones DataTables */
div.dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .75rem;
}

/* Base button AGORA */
.ag-btn {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #e9ecef;
  padding: .45rem .9rem;
  border-radius: .7rem !important;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
  margin-left: 0 !important;
}

.ag-btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
}

.ag-btn:active {
  transform: translateY(1px);
}

/* Outline look (más neutro) */
.ag-btn--outline {
  background: transparent;
}

/* Activo (seleccionado) */
.ag-btn.is-active {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
}

/* Excel (verde AGORA) */
.ag-btn--excel {
  background: rgba(31, 210, 73, 0.5);
  border-color: rgba(31, 210, 73, 0.45);
  color: #eafff0;
}

.ag-btn--excel:hover {
  background: rgba(31, 210, 73, 0.7);
  border-color: rgba(31, 210, 73, 0.60);
}


/* ROW STYLES */
.table.table-dark .table-success,
.table.table-dark .table-success > * {
  --bs-table-bg: rgba(25, 135, 84, 0.18);
  --bs-table-striped-bg: rgba(25, 135, 84, 0.22);
  --bs-table-hover-bg: rgba(25, 135, 84, 0.28);
  --bs-table-color: #d1f7e2;
  color: var(--bs-table-color) !important;
}

.table.table-dark .table-warning,
.table.table-dark .table-warning > * {
  --bs-table-bg: rgba(255, 193, 7, 0.12);
--bs-table-hover-bg: rgba(255, 193, 7, 0.18);
  --bs-table-striped-bg: rgba(255, 193, 7, 0.22);
  --bs-table-color: #ffe69c;
  color: var(--bs-table-color) !important;
}

.table.table-dark .table-danger,
.table.table-dark .table-danger > * {
  --bs-table-bg: rgba(220, 53, 69, 0.18);
  --bs-table-striped-bg: rgba(220, 53, 69, 0.22);
  --bs-table-hover-bg: rgba(220, 53, 69, 0.28);
  --bs-table-color: #f8d7da;
  color: var(--bs-table-color) !important;
}


/* ESTILOS TOAST AGORA */

#agoraToast {
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

#agoraToast .toast-body {
  color: #e9ecef;
  line-height: 1.35;
}

/* Puntos por tipo */
.ag-dot-success { background: #1fd249 !important; }
.ag-dot-warning { background: #ffc107 !important; }
.ag-dot-danger  { background: #dc3545 !important; }
.ag-dot-info    { background: #0dcaf0 !important; }

/* ESTILOS ACORDEÓN */
.accordion-button:focus {
  box-shadow: none;
}