/*
==================================================
  Índice de secciones (app.css)
  1) Login
  2) Módulo Clientes
  3) Módulo Colaboradores
  4) Layout General + Utilidades
  5) Base (NiceAdmin overrides)
  6) Header / Nav / Sidebar
  7) Dashboard
  8) Módulos adicionales (Calendario/Chat)
  9) Footer / Misceláneos
==================================================
*/

/* === LOGIN LEGACY STYLES === */

/* Sticky layout: header fixed, sidebar fixed, only #main scrolls, footer pegado abajo */
body.app-layout {
  height: 100vh;
  overflow: hidden;
  /* Evita scroll global */
  --footer-h: 72px;
  /* altura del footer */
}

/* Asegura que el contenedor principal sea el que scrollea */
#main {
  height: calc(100vh - 60px - var(--footer-h, 64px));
  /* header 60px + footer */
  overflow: auto;
}

/* Footer pegado al fondo y fuera del flujo principal */
#footer.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffebeb;
  /* color rosado original */
  z-index: 996;
  height: var(--footer-h, 64px);
  padding: 10px 0;
  /* anula el padding grande de .footer para encajar en la altura fija */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Reserva espacio inferior en #main para que el contenido no quede oculto bajo el footer */
#main {
  padding-bottom: 8px;
}

@media (min-width: 1200px) {

  /* Cuando el sidebar está visible, alinea main y footer al margen izquierdo del contenido */
  body.app-layout #main,
  body.app-layout #footer {
    margin-left: 300px;
  }

  body.app-layout.toggle-sidebar #main,
  body.app-layout.toggle-sidebar #footer {
    margin-left: 0;
  }
}

html.login-bg,
body.login-bg {
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.login-bg {
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  /* Se removió imagen de fondo inexistente para evitar 404; usar .bodyimg si se desea patrón */
  background-image: none;
  background-repeat: repeat;
  background-size: auto;
}

.login-legacy-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}



.login-legacy-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Scope de estilos de logo solo para la pantalla de login para evitar colisión con el header global */
.login-bg .logo img {
  width: 60px;
  height: auto;
  margin-right: 10px;
}

.login-bg .logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
}

.card.mb-3 {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  border: none;
  background: #fff;
  width: 380px;
  max-width: 95vw;
}

.btn-sesion {
  background: red;
  border: none;
  border-color: red;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-sesion:hover {
  background: #b80000;
}

.form-control:focus {
  border-color: #e60000;
  box-shadow: 0 0 0 0.2rem rgba(230, 0, 0, .15);
}

.card-title {
  font-weight: 700;
  color: #222;
}

.input-group-text {
  background: #f5f5f5;
  color: #222;
}

@media (max-width: 600px) {
  .card.mb-3 {
    width: 100% !important;
    margin: 0 10px;
  }
}

/* === ESTILOS MÓDULO CLIENTES === */
/* Combobox simple para búsqueda de clientes en modal de abonos */
.client-search-wrapper {
  position: relative;
}

.client-search-wrapper .list-group {
  max-height: 260px;
  overflow-y: auto;
}

.modal .list-group-item {
  cursor: pointer;
}

.modal .list-group-item.active,
.modal .list-group-item:active {
  background-color: #0d6efd;
  color: #fff;
}

/* Estilos para foto de cliente */
.square-photo {
  position: relative;
  width: 150px;
  height: 150px;
  border: 2px dashed #ccc;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.square-photo:hover {
  border-color: #007bff;
  background-color: #e7f1ff;
}

.square-photo img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 3px;
  object-fit: cover;
}

.photo-placeholder {
  color: #6c757d;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.upload-icon {
  font-size: 36px;
  color: #aaa;
  margin-bottom: 8px;
}

.uploaded-photo {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

/* Mapa de ubicación */
#map {
  height: 300px;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  z-index: 1;
}

/* Input de archivos */
.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.file-input-wrapper input[type=file] {
  position: absolute;
  left: -9999px;
}

.file-preview {
  margin-top: 10px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #dee2e6;
}

/* Campo requerido */
.required-field {
  color: #dc3545;
}

/* Ocultar visualmente pero mantener accesibilidad */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tarjeta de perfil de cliente */
.profile-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.profile-card .profile-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.profile-card .profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin: 0 auto 1rem;
  display: block;
  object-fit: cover;
}

.profile-card .profile-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.profile-card .profile-title {
  opacity: 0.9;
  font-size: 1rem;
}

.profile-card .profile-body {
  padding: 1.5rem;
}

.profile-card .profile-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.profile-card .profile-info:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.profile-card .profile-info .icon {
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: #667eea;
}

.profile-card .profile-info .content .label {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.profile-card .profile-info .content .value {
  font-weight: 500;
  color: #495057;
}

/* Botones de acción */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.action-buttons .btn {
  flex: 1;
  min-width: 120px;
}

/* Badges de categoría */
.category-badge {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.category-badge.premium {
  background: #28a745;
  color: white;
}

.category-badge.intermedio {
  background: #ffc107;
  color: #212529;
}

.category-badge.basico {
  background: #6c757d;
  color: white;
}

.category-badge.moroso {
  background: #dc3545;
  color: white;
}

/* Formularios */
.form-floating>.form-control {
  height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
}

.form-floating>label {
  padding: 1rem 0.75rem;
}

/* DataTables personalization */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.375rem 0.75rem;
  /* Original padding */
}

/* ======= Paridad visual con legacy (detalle_prestamos) ======= */
/* Selects: usar apariencia compacta y altura similar a legacy */
select.form-control,
.form-control.select-legacy {
  height: calc(1.5em + .75rem + 2px);
  padding: .375rem .75rem;
  border-radius: 4px;
  background-clip: padding-box;
}

/* Inputs con icono (input-group) deben tener la misma altura visual */
.input-group .form-control {
  height: calc(1.5em + .75rem + 2px);
}

/* Saldo (tarjeta lateral): tamaño y peso para igualar legacy */
.profile-card h5.card-body {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

/* Más contraste para valores dentro de .masked */
.masked {
  font-weight: 600;
}

/* Botones (sólo para la tarjeta lateral): padding y tamaño similares a legacy */
.profile-card .btn-primary {
  padding: .5rem .75rem;
}

/* Tabla historial full-width */
#detalleprestamo {
  width: 100%;
}

/* Asegurar que selects del detalle usen el estilo global esperado */
#det_prt_tipo,
#det_prt_dia {
  display: block;
}

/* End paridad */

/* Reglas específicas para la tarjeta lateral (paridad con legacy)
   Aumentan especificidad para que no las sobreescriba bootstrap/base */
.profile-card select.form-control,
.profile-card .input-group .form-control,
.profile-card .form-control {
  height: calc(1.5em + .75rem + 2px);
  padding: .375rem .75rem;
  border-radius: 4px;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  color: #ced4da;
}

/* ===== Paridad visual precisa para selects en la tarjeta de detalle ===== */
/* Mantener select semántico pero mostrarlo como en legacy (botón azul con flecha blanca) */
.profile .profile-card select.form-control,
.profile-card select.form-control {
  background-color: #e60000 !important;
  /* rojo del tema */
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding: .375rem 2.2rem .375rem .75rem !important;
  /* espacio para la flecha */
  height: calc(1.5em + .75rem + 2px) !important;
  border-radius: .375rem !important;
  font-weight: 600 !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23ffffff' d='M0 0l5 6 5-6z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right .65rem center !important;
  text-align: center !important;
  /* centrar el texto visible */
}

.profile .profile-card select.form-control option {
  color: #fff !important;
  /* forzar blanco en los items */
  background-color: #e60000 !important;
  /* mantener fondo rojo si el navegador lo soporta */
  text-align: center !important;
  /* centrar cada item */
  -webkit-text-fill-color: #fff !important;
  /* Safari/iOS fallback */
}

/* Quitar flecha nativa en IE */
.profile .profile-card select.form-control::-ms-expand {
  display: none;
}

/* Asegurar que los input-group dentro de la tarjeta mantengan el borde claro */
.profile .profile-card .input-group .form-control {
  border: 1px solid #ced4da !important;
  background-color: #fff !important;
  color: #212529 !important;
}

/* Fin paridad precisa */

/* Responsive adjustments */
@media (max-width: 768px) {
  .square-photo {
    width: 120px;
    height: 120px;
  }

  .profile-card .profile-avatar {
    width: 100px;
    height: 100px;
  }

  .profile-card .profile-header {
    padding: 1.5rem;
  }

  .action-buttons .btn {
    min-width: 100px;
    font-size: 0.875rem;
  }

  #map {
    height: 250px;
  }
}

@media (max-width: 600px) {
  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn {
    min-width: auto;
  }
}

/* === FIN ESTILOS MÓDULO CLIENTES === */

/* === ESTILOS MÓDULO COLABORADORES === */

/* Estilos para el perfil de colaboradores (paridad con usuarioc.php legacy) */

/* .w100 utilitario consolidado más abajo en utilidades */

.box-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

/* Perfil card específico para colaboradores */
.profile-card .rounded-circle {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.profile-card h2 {
  margin: 0;
}

.profile-card h3 {
  color: #012970;
  font-size: 18px;
  margin: 5px 0;
}

.profile-card h5 {
  font-size: 14px;
  margin-bottom: 15px;
}

/* Avatar circular perfecto para perfil de cliente */
.profile-card .avatar-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}


/* Botones del perfil */
.profile-card .btn {
  margin-bottom: 8px;
}

/* Datos personales box */
.box {
  width: 100%;
}

.box-header {
  padding: 10px 15px;
  border-bottom: 1px solid #f4f4f4;
}

.box-body {
  padding: 10px 15px;
}

.box-body strong {
  color: #e60000;
  /* rojo del tema */
  font-weight: 600;
}

.box-body p {
  margin: 8px 0;
  color: #777;
}

.box-body hr {
  margin: 15px 0;
  border-color: #f4f4f4;
}

/* AdminLTE-like primary box styling (legacy parity) */
.box.box-primary {
  border-top: 3px solid #e60000;
  /* rojo, coherente con el tema */
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.box.box-primary .box-header.with-border {
  border-bottom: 1px solid #f4f4f4;
}

.box.box-primary .box-title {
  font-weight: 600;
  color: #e60000;
  /* rojo */
  font-size: 16px;
}

.box.box-primary .btn.btn-primary.btn-sm {
  background-color: #e60000;
  /* rojo botón */
  border-color: #b80000;
}

.box.box-primary .btn.btn-primary.btn-sm:hover {
  background-color: #b80000;
  border-color: #9a0000;
}

.box .box-title {
  margin: 0;
}

/* Tabs específicos para colaboradores */
.nav-tabs-bordered .nav-link1 {
  border: 1px solid transparent;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  color: #012970;
  font-weight: 600;
}

.nav-tabs-bordered .nav-link1:hover {
  border-color: #e9ecef #e9ecef #dee2e6;
  color: #4154f1;
}

.nav-tabs-bordered .nav-link1.active {
  color: #4154f1;
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
}

/* Tarjetas de estadísticas pequeñas */
.stats-card {
  margin-bottom: 15px;
}

.stats-card .card-body {
  padding: 15px;
}

.stats-card .card-title {
  font-size: 14px;
  font-weight: 600;
  color: #012970;
  margin-bottom: 8px;
}

.stats-card .card-text {
  font-size: 18px;
  font-weight: 700;
  color: #4154f1;
  margin: 0;
}

.stats-card .img-fluid {
  width: 100%;
  height: 60px;
  object-fit: cover;
}

/* Tablas dentro de las pestañas */
.tab-content .card {
  box-shadow: none;
  border: 1px solid #eee;
}

.tab-content .table {
  margin-bottom: 0;
}

/* === VISOR DE ARCHIVOS === */

/* Lista de archivos */
.archivo-item {
  border: none !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.archivo-item:hover {
  background-color: #f8f9fa !important;
  border-color: transparent !important;
}

.archivo-item.active {
  background-color: #e3f2fd !important;
  border-color: #2196f3 !important;
  border-left: 3px solid #2196f3 !important;
}

.archivo-item:focus {
  box-shadow: none;
  border-color: #2196f3;
}

/* Visor de contenido */
#archivo-contenido img {
  border-radius: 8px;
  transition: transform 0.2s ease;
}

#archivo-contenido img:hover {
  transform: scale(1.02);
}

/* Información del archivo */
#archivo-info {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

#archivo-info .col-md-4 {
  padding: 0.5rem;
}

#archivo-info small {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsivo para el visor */
@media (max-width: 768px) {
  .tab-pane .row {
    flex-direction: column-reverse;
  }

  .tab-pane .col-md-4,
  .tab-pane .col-md-8 {
    margin-bottom: 1rem;
  }

  .archivo-item .text-truncate {
    max-width: 150px !important;
  }
}

/* === FIN VISOR DE ARCHIVOS === */

/* === COMENTARIOS DE CLIENTE === */

/* Timeline de comentarios */
.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: -15px;
  width: 2px;
  background: #e9ecef;
}

.timeline-item:last-child::before {
  display: none;
}

.border-left-primary {
  border-left: 4px solid var(--bs-primary) !important;
}

.avatar-sm {
  font-size: 0.75rem;
}

/* Espaciado para comentarios */
.timeline-item .card {
  margin-left: 20px;
  transition: all 0.2s ease;
}

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

/* Modal de comentarios */
#modalNuevoComentario .form-control {
  border-radius: 8px;
}

#modalNuevoComentario .modal-body {
  padding: 1.5rem;
}

/* === FIN COMENTARIOS DE CLIENTE === */

/* Enlaces de transferencias en rojo */
.transfer-link {
  color: red !important;
}

.transfer-link:hover {
  color: darkred !important;
}

/* === ESTILOS PARA AGENDA/CALENDARIO === */

/* FullCalendar custom styles */
#calendar {
  max-width: 100%;
  margin: 0 auto;
}

.fc-header-toolbar {
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.fc-button {
  background-color: #007bff !important;
  border-color: #007bff !important;
}

.fc-button:hover {
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
}

.fc-button-active {
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
}

.fc-event {
  cursor: pointer;
}

.fc-daygrid-day:hover {
  background-color: #f8f9fa;
}

.fc-daygrid-day-number {
  font-weight: bold;
}

/* Responsive para calendario */
@media (max-width: 768px) {
  .fc-header-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fc-toolbar-chunk {
    margin-bottom: 0.5rem;
  }
}

body,
html {
  height: 100vh !important;
  min-height: 100vh !important;
  overflow: auto !important;
}

/* #main consolidado más abajo en la sección Main */

/* === FIN ESTILOS GENERALES LAYOUT === */

/* Utilidades globales */
.precheck-hidden {
  visibility: hidden;
}

/**
* Template Name: NiceAdmin
* Updated: May 30 2023 with Bootstrap v5.3.0
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
:root {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  background: #fff6f6;
  color: #444444;
}

a {
  color: red;
  text-decoration: none;
}


/* Fix para submenús colapsables del sidebar (Bootstrap 5) */
.sidebar-nav .collapse {
  display: none;
}

.sidebar-nav .collapse.show {
  display: block;
}

a:hover {
  color: #6e00009c;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px 30px;
  transition: all 0.3s;
  background: transparent;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: black;
}

/* Breadcrumbs minimal */
.breadcrumb {
  --bs-breadcrumb-divider: "\\F285";
  /* Bootstrap Icons chevron-right */
  --bs-breadcrumb-divider-color: #899bbd;
  margin: 6px 0 14px 0;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "\F285";
  /* Bootstrap Icons chevron-right */
  font-family: "bootstrap-icons";
  color: var(--bs-breadcrumb-divider-color);
  font-size: 0.85rem;
}

.breadcrumb-item a {
  color: #4154f1;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #f14141;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #d38080;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f6f9ff;
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

/* Light Backgrounds */
.bg-primary-light {
  background-color: #cfe2ff;
  border-color: #cfe2ff;
}

.bg-secondary-light {
  background-color: #e2e3e5;
  border-color: #e2e3e5;
}

.bg-success-light {
  background-color: #d1e7dd;
  border-color: #d1e7dd;
}

.bg-danger-light {
  background-color: #f8d7da;
  border-color: #f8d7da;
}

.bg-warning-light {
  background-color: #fff3cd;
  border-color: #fff3cd;
}

.bg-info-light {
  background-color: #cff4fc;
  border-color: #cff4fc;
}

.bg-dark-light {
  background-color: #d3d3d4;
  border-color: #d3d3d4;
}

/* Card */
.card {
  margin-bottom: 30px;
  border: none;
  border-radius: 5px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
  background-color: rgba(255, 255, 255, 0.95);
}

.card-header,
.card-footer {
  border-color: #ebeef4;
  background-color: #fff;
  color: #798eb3;
  padding: 15px;
}

.card-title {
  padding: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 500;
  color: black;
  font-family: "Poppins", sans-serif;
}

.card-title span {
  color: #555555;
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  padding: 0 20px 20px 20px;
  overflow-x: auto;
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
.accordion-item {
  border: 1px solid #ebeef4;
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #012970;
  background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: #4154f1;
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: #3e4f6f;
  font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: "Nunito", sans-serif;
  color: #899bbd;
  font-weight: 600;
}

.breadcrumb a {
  color: #899bbd;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #51678f;
}

.breadcrumb .breadcrumb-item::before {
  color: #899bbd;
}

.breadcrumb .active {
  color: #51678f;
  font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
  border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: red;
}

.nav-tabs-bordered .nav-link.active {
  background-color: #fff;
  color: red;
  border-bottom: 2px solid red;
}

/*--------------------------------------------------------------
# Header (global)
--------------------------------------------------------------*/
.logo {
  line-height: 1;
}

@media (min-width: 1200px) {
  .logo {
    width: 280px;
  }
}

.logo img {
  max-height: 26px;
  margin-right: 6px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: black;
  font-family: "Nunito", sans-serif;
}

.header {
  transition: all 0.5s;
  z-index: 997;
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-shadow: 0px 2px 20px rgb(255 0 0 / 31%);
  background-color: #fff;
  /* Toggle Sidebar Button */
  /* Search Bar */
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: black;
}

.header .search-bar {
  min-width: 360px;
  padding: 0 20px;
}

@media (max-width: 1199px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: white;
    z-index: 9999;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }
}

.header .search-form {
  width: 100%;
}

.header .search-form input {
  border: 0;
  font-size: 14px;
  color: #012970;
  border: 1px solid rgba(1, 41, 112, 0.2);
  padding: 7px 38px 7px 8px;
  border-radius: 3px;
  transition: 0.3s;
  width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
  border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.header .search-form button i {
  color: #012970;
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: #012970;
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #000000;
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

.header-nav .notifications {
  inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .notifications .notification-item:hover {
  background-color: #f6f9ff;
}

.header-nav .messages {
  inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .messages .message-item a {
  display: flex;
}

.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  max-height: 40px;
}

.header-nav .messages .message-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444444;
}

.header-nav .messages .message-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .messages .message-item:hover {
  background-color: #f6f9ff;
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: #444444;
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: #f6f9ff;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aab7cf transparent;
  box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
  background-color: #fff;
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #aab7cf;
}

@media (min-width: 1200px) {

  #main,
  #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {

  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: #899bbd;
  font-weight: 600;
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: red;
  transition: 0.3s;
  background: #fff3f3;
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: red;
}

.sidebar-nav .nav-link.collapsed {
  color: black;
  background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
  color: black;
}

.sidebar-nav .nav-link:hover {
  color: red;
  background: #fff3f3;
}

.sidebar-nav .nav-link:hover i {
  color: red;
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: black;
  transition: 0.3s;
  padding: 10px 0 10px 40px;
  transition: 0.3s;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: red;
}

.sidebar-nav .nav-content a.active i {
  background-color: black;
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
.dashboard .section {
  background: transparent;
}

/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: #aab7cf;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: black;
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #aab7cf;
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

/* Info Cards */
.dashboard .info-card {
  padding-bottom: 10px;
}

.dashboard .info-card h6 {
  font-size: 1.5rem;
  color: black;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

/* === Módulo Colaboradores (global) === */
.dashboard .info-card.red-card {
  border-left: 4px solid #dc3545;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.dashboard .info-card.gray-card {
  border-left: 4px solid #6c757d;
  box-shadow: 0 2px 4px rgba(108, 117, 125, 0.1);
  opacity: 0.7;
}

/* Estilos específicos para cards de colaboradores - blancas con borde */
#colaboradoresGrid .info-card.red-card {
  background: #fff !important;
  border-left: 4px solid #dc3545;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
}

#colaboradoresGrid .info-card.gray-card {
  background: #fff !important;
  border-left: 4px solid #6c757d;
  box-shadow: 0 2px 4px rgba(108, 117, 125, 0.1);
  opacity: 0.7;
}

.dashboard .info-card .card-body {
  transition: all 0.3s ease;
}

.dashboard .info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dashboard .form-check-input:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

/* Switch en card de colaboradores */
.colab-card-switch {
  position: absolute;
  top: 10px;
  right: 10px;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.dashboard .sales-card .card-icon {
  color: #4154f1;
  background: #f6f6fe;
}

.dashboard .revenue-card .card-icon {
  color: #2eca6a;
  background: #e0f8e9;
}

.dashboard .gray-card .card-icon {
  color: gray;
  background: #cfcfcf8f;
}

.dashboard .customers-card .card-icon {
  color: #ff771d;
  background: #ffecdf;
}

.dashboard .red-card .card-icon {
  color: red;
  background: #f9b9b9;
}

.dashboard .yellow-card .card-icon {
  color: yellow;
  background: #b1b188;
}

.dashboard .green-card .card-icon {
  color: green;
  background: #c1ebc1;
}

.dashboard .blue-card .card-icon {
  color: blue;
  background: #dfe5ff;
}

/* Colores de fondo para las tarjetas del dashboard */
.dashboard .info-card.blue-card {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.dashboard .info-card.revenue-card {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.dashboard .info-card.customers-card {
  background: linear-gradient(135deg, #fd7e14 0%, #e8680d 100%);
}

.dashboard .info-card.yellow-card {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.dashboard .info-card.green-card {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.dashboard .info-card.red-card {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.dashboard .info-card.purple-card {
  background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

.dashboard .info-card.teal-card {
  background: linear-gradient(135deg, #20c997 0%, #1aa085 100%);
}

/* Activity */
.dashboard .activity {
  font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
  color: #888;
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #eceefe;
}

.dashboard .activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
  margin-top: 15px;
}

.dashboard .news img {
  width: 80px;
  float: left;
  border-radius: 5px;
}

.dashboard .news h4 {
  font-size: 15px;
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: #012970;
  transition: 0.3s;
}

.dashboard .news h4 a:hover {
  color: #4154f1;
}

.dashboard .news p {
  font-size: 14px;
  color: #777777;
  margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: 14px;
}

.dashboard .recent-sales .table thead {
  background: #f6f6fe;
}

.dashboard .recent-sales .table thead th {
  border: 0;
}

.dashboard .recent-sales .dataTable-top {
  padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
  padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
  font-size: 14px;
}

.dashboard .top-selling .table thead {
  background: #f6f6fe;
}

.dashboard .top-selling .table thead th {
  border: 0;
}

.dashboard .top-selling .table tbody td {
  vertical-align: middle;
}

.dashboard .top-selling img {
  border-radius: 5px;
  max-width: 60px;
}

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: #fff;
  border-radius: 0.25rem;
  text-align: center;
  color: #012970;
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  font-family: var(--bs-font-monospace);
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
  max-width: 140px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c384e;
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 15px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(1, 41, 112, 0.5);
  line-height: 0;
  margin-right: 10px;
  transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
  color: #012970;
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: black;
}

.profile .profile-overview .label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
  max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: #4154f1;
}

.faq .basic p {
  color: #6980aa;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  padding: 28px 30px;
}

.contact .info-box i {
  font-size: 38px;
  line-height: 0;
  color: #4154f1;
}

.contact .info-box h3 {
  font-size: 20px;
  color: #012970;
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 0;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #4154f1;
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: #4154f1;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #5969f3;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: #4154f1;
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: #012970;
  margin-bottom: 30px;
}

.error-404 .btn {
  background: #51678f;
  color: #fff;
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background: #3e4f6f;
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: #012970;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #012970;
}

.text-rigth {
  text-align: right;
}

/* .btn-sesion definido al inicio */

.bodyimg {
  background-image: url('/assets/images/system/logo1.webp');
  background-repeat: repeat;
  background-size: 13rem;
  background-blend-mode: overlay;
  background-color: #fff6f6;
}

.select2-container {
  width: 100% !important;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  background-clip: padding-box;
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.select2-container--default .select2-selection--single {
  border: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  display: block !important;
  width: 100% !important;
}

/* utilitarios consolidado */
.w100 {
  width: 100% !important;
}

footer {
  background-color: #ffebeb;
}

.p-text {
  font-size: 1.2rem;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  color: #969696;
}

.cont-icon {
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
  padding-left: 1rem;
}

.i-red {
  font-size: -webkit-xxx-large;
  background-color: #ff000085;
  width: 6rem;
  height: 6rem;
  border-radius: 100px;
  padding-top: 0.5rem;
  color: white;
}

/* Botón primario tema rojo */
.btn-primary {
  background-color: red;
  border-color: red;
}

.btn-primary:hover {
  background-color: white;
  color: black;
  font-weight: bolder;
  border-color: red;
  box-shadow: 0 4px 6px rgba(255, 0, 0, .5);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background-color: #ff000036;
  border-color: #ff00004d;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background-color: red !important;
  border-color: red !important;
  color: white !important;
  font-weight: bolder;
}

.dataTables_wrapper .dataTables_paginate span .paginate_button:hover {
  background: linear-gradient(to bottom, #ff8a8a 0%, #f00 100%);
  border-color: red !important;
  color: white !important;
  font-weight: bolder;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: linear-gradient(to bottom, #ff8a8a 0%, #f00 100%);
  border-color: red !important;
  color: white !important;
  font-weight: bolder;
}

.position-r {
  position: relative;
}

.icon-facture {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(-110%, -68%);
  z-index: 0;
}

.card-text {
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.i-red-c {
  background-color: #ff000042;
}

.tabs-horarios.active {
  background-color: red !important;
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
  font-weight: bold;
}

.tabs-horarios {
  color: black;
  border-bottom: 1px solid red;
  border-radius: 0 !important;
}

.tabs-horarios:hover {
  font-weight: bold;
  background-color: #ff000033 !important;
  color: black !important;
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
}

.fc .fc-col-header-cell-cushion,
.fc-daygrid-day-number,
.fc-direction-ltr .fc-daygrid-event.fc-event-end,
.fc-direction-rtl .fc-daygrid-event.fc-event-start {
  color: black;
}

.fc-more-link {
  color: black;
  font-weight: bolder;
}

.fc-h-event {
  background-color: red;
  border: 1px solid red;
  display: block;
}

.fc-daygrid-event-dot {
  border: calc(var(--fc-daygrid-event-dot-width)/2) solid red;
  border-radius: calc(var(--fc-daygrid-event-dot-width)/2);
  box-sizing: content-box;
  height: 0px;
  margin: 0px 4px;
  width: 0px;
}

.fc-event {
  margin-top: 0.25rem !important;
}

span.select2-container.select2-container--default.select2-container--open {
  width: 48rem !important;
}

.apexcharts-toolbar {
  z-index: 0 !important;
}

.text-bold {
  font-weight: bold;
}


/*ESTILOS DE CHAT*/

.title {
  margin: auto;
  font-size: x-large;
  font-family: Raleway, sans-serif;
  color: red;
}

@media (min-width: 450px) {
  .main-card {
    width: 96%;
    max-width: 400px;
    height: calc(100% - 32px) !important;
    border-radius: 8px !important;
    max-height: 600px;
    margin: 16px !important;
  }
}

.collapsed2 {
  width: 4rem !important;
  height: 4rem !important;
  border-radius: 50px !important;
  margin: 16px !important;
}

.main-card {
  z-index: 1;
  background: white;
  color: white;
  width: 100%;
  height: 100%;
  margin: 0px;
  border-radius: 0px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  right: 0;
  bottom: 4rem;
  position: fixed;
  transition: all 0.5s;
  box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#chatbot_toggle {
  position: absolute;
  right: 0;
  border: none;
  height: 4rem;
  width: 4rem;
  background: red;
  padding: 14px;
  color: white;
}

#chatbot_toggle:hover {
  background: #db4747;
}

.line {
  height: 1px;
  background-color: red;
  width: 100%;
  opacity: 0.2;
}

.main-title {
  background-color: red;
  font-size: large;
  font-weight: bold;
  display: flex;
  height: 4rem;
}

.main-title>div {
  height: 48px;
  width: 48px;
  display: flex;
  margin-left: 8px;
}

.main-title svg {
  height: 24px;
  margin: auto;
}

.main-title>span {
  margin: auto auto auto 8px;
}

.chat-area {
  flex-grow: 1;
  overflow: auto;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  color: black;
}

.input-message {
  padding: 8px 48px 8px 16px;
  flex-grow: 1;
  border: none;
}

.input-message:focus {
  outline: none;
}

.input-div {
  height: 48px;
  display: flex;
}

.input-send {
  background: transparent;
  width: 48px;
  height: 48px;
  right: 0%;
  border: none;
  cursor: pointer;
}

.input-send:hover {
  background: lavender;
}

.input-send svg {
  fill: red;
  margin: 11px 8px;
}

.chat-message-div {
  display: flex;
}

.chat-message-sent {
  background-color: white;
  margin: 8px 16px 8px 64px;
  padding: 8px 16px;
  animation-name: fadeIn;
  animation-iteration-count: 1;
  animation-timing-function: ease-in;
  animation-duration: 100ms;
  color: black;
  border-radius: 8px 8px 2px 8px;
  background-color: lavender;
}

.chat-message-received {
  background-color: white;
  margin: 8px 64px 8px 16px;
  padding: 8px 16px;
  animation-name: fadeIn;
  animation-iteration-count: 1;
  animation-timing-function: ease-in;
  animation-duration: 100ms;
  color: black;
  border-radius: 8px 8px 8px 2px;
  background-color: lavender;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}


@media (max-width: 590px) {
  .btn-primary {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .btn-secondary {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .col-smx-12 {
    width: 100%;
  }

  .col-smx-6 {
    width: 50%;
  }

  .icon-facture {
    position: absolute;
    bottom: 56px;
    right: -66px;
    transform: translate(-110%, -68%);
    z-index: 0;
  }

  .fc .fc-toolbar {
    align-items: center;
    display: block;
    justify-content: space-between;
  }

  .fc-direction-ltr .fc-toolbar>*> :not(:first-child) {
    margin-left: 10.75em;
  }

  .fc .fc-button-group {
    display: flex;
    position: relative;
    vertical-align: middle;
  }

  .fc .fc-toolbar-title {
    font-size: 1.75em;
    margin: 0px;
    text-align: center;
  }

  .fc .fc-daygrid-day-bottom {
    font-size: 0.85em;
    margin: 0px 2px;
    margin-top: -15px !important;
  }
}

.no-pago {
  background-color: red !important;
  font-weight: bold;
}

.pago {
  background-color: #2fc72f94 !important;
  font-weight: bold;
}

.pago-incompleto {
  background-color: aqua !important;
  font-weight: bold;
}

.pago-renovado {
  background-color: #2fc72f94 !important;
  font-weight: bold;
}

.pago-renovacion-c {
  background-color: #2fc72f94 !important;
  font-weight: bold;
}

.pago-renovado-c {
  background-color: #2fc72f94 !important;
  font-weight: bold;
}

/* === Ajustes vista Detalle Cliente === */
.profile-card h2 {
  font-size: 1.25rem;
  text-align: center;
}

.profile-card h3 {
  font-size: 0.95rem;
}

.zones-compact {
  max-height: 120px;
  overflow: auto;
  font-size: 0.9rem;
}

.zones-compact div {
  line-height: 1.2;
  padding: 2px 0;
}

#tabla-cobros a,
#tabla-prestamos a,
#tabla-clientes-con a {
  color: #dc3545 !important;
  /* bootstrap .text-danger */
}

/* Estilos para las tabs de regiones */
#prestamosTabs .nav-link {
  color: #000 !important;
  background-color: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
}

#prestamosTabs .nav-link.active {
  color: #000 !important;
  background-color: transparent !important;
  border-bottom: 2px solid #000 !important;
  font-weight: bold;
}

#prestamosTabs .nav-link:hover {
  color: #333 !important;
  background-color: transparent !important;
  border-bottom: 2px solid #333 !important;
}

/* Estilos para los links en las tablas de regiones */
#diariosTable a,
#semanalesTable a,
#quincenalesTable a,
#mensualesTable a,
#colaboradoresTable a,
#abonosRecientesTable a {
  color: #dc3545 !important;
}

#diariosTable a:hover,
#semanalesTable a:hover,
#quincenalesTable a:hover,
#mensualesTable a:hover,
#colaboradoresTable a:hover,
#abonosRecientesTable a:hover {
  color: #b02a37 !important;
  text-decoration: none;
}

/* Estilos específicos para cards de regiones - blancas con borde */
#regionesGrid .info-card.red-card {
  background: #fff !important;
  border-left: 4px solid #dc3545;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
}