@charset "UTF-8";

/* =====================
   Validación de formularios (inputs y selects inválidos)
   Estilos globales para mostrar campos inválidos en formularios
====================== */
.form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-select.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}


/* Select2 compacto para Bootstrap-5 (aplica a todo el sistema, forzado) */
.select2-container--bootstrap-5 .select2-selection--single,
.select2-container--bootstrap-5 .select2-selection--multiple {
  min-height: 30px !important;
  font-size: 13px !important;
  padding: 2px 8px !important;
}
.select2-container--bootstrap-5 .select2-selection__rendered {
  line-height: 26px !important;
  font-size: 13px !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}
.select2-container--bootstrap-5 .select2-selection__arrow {
  height: 26px !important;
}

/*
============================================================
 Archivo: app.css
 Descripción: Estilos principales del CRM-MVP. Cada sección está comentada para indicar su función y dónde se aplica en el proyecto.
 Última actualización: 7 de agosto de 2025
============================================================


/* =====================
   Variables globales
   Definen colores y tamaños de fuente reutilizables en todo el sistema.
   Se usan en la mayoría de los componentes y vistas.
====================== */
:root {
  --color-card-bg: #fff; /* Fondo por defecto de las tarjetas */
  --color-title-card: #343a40; /* Color de título de tarjeta */

  --fs-12: 0.875rem;
  --fs-13: 0.925rem;
  --fs-14: 1rem;
  --fs-15: 1.0625rem;
  --fs-16: 1.125rem;
  --fs-18: 1.25rem;
  --fs-20: 1.375rem;
  --fs-22: 1.5rem;
  --fs-24: 1.625rem;
}

/* Fuente global para todo el sistema */
* {
  font-family: "Inter", sans-serif;
}

/* Tamaño base de fuente y color de fondo general */
html {
  font-size: 14px;
}

body {
  background-color: #fafafa;
}

/* =====================
   Menú lateral (sidemenu)
   Aparece en todas las vistas principales con navegación lateral.
====================== */
.sidemenu {
  /* Menú lateral fijo a la izquierda */
  position: fixed;
  width: 220px;
  background-color: var(--bs-bgnav);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-height: 100vh;
  padding: 15px;
  padding-top: 0.5rem;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

/* Logo del menú lateral */
.sidemenu-logo a {
  padding: 0 !important;
  margin: 0 !important;
}

.sidemenu-logo a:hover {
  background-color: transparent !important;
}

.sidemenu-logo img {
  width: 190px;
  height: 60px;
}

/* Lista de navegación del menú lateral */
.sidemenu-list {
  height: calc(100vh - 320px);
  list-style: none;
  overflow-y: scroll;
  padding: 0 5px 0 0;
}

.sidemenu-list::-webkit-scrollbar {
  width: 5px;
}

.sidemenu-list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.sidemenu-list::-webkit-scrollbar-thumb:hover {
  background-color: #ccc;
}

.sidemenu-list::-webkit-scrollbar-track {
  background: transparent;
}

/* Enlaces del menú lateral */
.sidemenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 5px;
  color: var(--bs-textnav);
  font-size: var(--fs-13);
  text-decoration: none;
  margin-bottom: 5px;
}

.sidemenu a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Flecha para submenús */
.nav-toggle::after {
  margin-left: auto;
  transition: transform 0.3s;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  font-size: 0.7rem;
}

.nav-toggle[aria-expanded="true"]::after {
  transform: rotate(90deg);
}

.sidemenu .submenu {
  padding-left: 12px;
}

.sidemenu-bottom a {
  margin-bottom: 0;
}

.btn-logout {
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.15);
}

.btn-logout:hover {
  background-color: rgba(0, 0, 0, 0.2) !important;
}

.sidemenu.dark {
  background-color: var(--bs-bgdark);
  color: var(--bs-light);
}

.sidemenu.dark a {
  color: var(--bs-light);
}

.sidemenu.dark a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidemenu.dark .nav-toggle::after {
  content: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2710%27%20height%3D%2710%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27rgba(255%2C255%2C255%2C0.5)%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20stroke-width%3D%272%27%20d%3D%27M5%2014l6-6-6-6%27/%3E%3C/svg%3E");
}

.sidemenu.dark .btn-logout {
  background-color: rgba(255, 255, 255, 0.15);
}

.sidemenu.dark .btn-logout:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Oculta el menú lateral en modo responsive */
.sidemenu.hidden {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

/* =====================
   Header superior (site-header)
   Barra superior fija presente en todas las vistas principales.
====================== */
.site-header {
  position: fixed;
  top: 0;
  right: 100px;
  height: 45px;
  padding: 0 15px;
  display: flex;
  align-items: center; /* Centrado vertical */
  justify-content: center; /* Centrado horizontal del contenido */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.8),
    rgba(247, 249, 250, 0.5)
  );
  backdrop-filter: blur(2px);
  box-shadow: 0 0.1875rem 0.75rem 0 rgba(47, 43, 61, 0.14);
  z-index: 1000;
  border-radius: 5px;
}

.site-header-option {
  display: flex; /* Flex para alinear botones */
  align-items: center; /* Alineación vertical */
  gap: 20px;
}

.site-header-button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0 7px;
}

.site-header-logo {
  display: none;
  position: absolute;
  padding-top: 5px;
  padding-left: 27px;
  top: 0;
  left: 0;
}

.site-header-logo img {
  width: 40px;
  height: 40px;
}

/* =====================
   Contenido principal (page-content)
   Área donde se muestra el contenido de cada módulo.
====================== */
.page-content {
  padding: 0 0 0 220px;
  transition: padding-left 0.35s ease;
}

.page-content.hidden {
  padding-left: 15px;
}

.page-content header {
  padding: 10px 0;
}

.container-fluid {
  padding: 0 100px;
}

.home-mt {
  margin-top: 60px;
}

/* =====================
   Responsive (media queries)
   Ajustes para pantallas menores a 1600px, 1280px y 768px.
   Permite que el sistema sea usable en tablets y móviles.
====================== */
@media (max-width: 1599px) {
  .container-fluid {
    padding: 0 30px;
  }

  .site-header {
    right: 30px;
  }
}

@media (max-width: 1279px) {
  .page-content {
    padding-top: 50px;
    padding-left: 15px;
  }

  .container-fluid {
    padding: 0 15px;
  }

  .home-mt {
    margin-top: 15px;
  }

  .sidemenu {
    transform: translateX(-100%); /* Mueve el menú fuera de la pantalla */
    opacity: 0;
    pointer-events: none;
    padding-top: 70px;
  }

  .sidemenu.hidden {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sidemenu-logo {
    display: none;
  }

  .sidemenu-list {
    height: calc(100vh - 280px);
  }

  .site-header {
    right: 0;
    top: 0;
    width: 100%;
    height: 50px;
    justify-content: right;
  }

  .site-header-logo {
    display: block;
  }
  .site-header-option {
    padding-right: 27px;
  }
}

@media (max-width: 768px) {
  .page-content {
    padding-left: 0;
    padding-right: 0;
    padding-top: 50px;
  }
  .page-content.hidden {
    padding-left: 0px;
  }

  .site-header-option {
    gap: 15px;
  }
}

/* =====================
   Cajas y tarjetas (box-typical, card)
   Usadas para mostrar información agrupada: clientes, operaciones, paneles, etc.
====================== */
.box-typical {
  -webkit-border-radius: 4px;
  border-radius: 4px;
  background: #fff;
  border: solid 1px #d8e2e7;
  margin: 0 0 20px;
  box-shadow: 0 0.1875rem 0.75rem 0 rgba(47, 43, 61, 0.14);
}

.box-typical.box-typical-padding {
  padding: 20px 15px;
}

/* =====================
   Tablas (DataTables, paginación, búsqueda)
   Usadas en listados de clientes, operaciones, tareas, etc.
====================== */
table.dataTable {
  width: 100%;
  border-spacing: 0;
  background-color: #fff;
  border-top: 1px solid #ddd;
  font-size: var(--fs-12);
}

/* Table headers */
table.dataTable thead th {
  background-color: rgba(var(--bs-body-color-rgb), 0.03);
  color: var(--bs-gray-800);
  font-weight: 500;
  text-align: left;
  border-bottom: none;
  padding: 10px;
}

/* Table rows */
table.dataTable tbody tr {
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
}

/* Table cells */
table.dataTable tbody td {
  vertical-align: middle;
  padding: 10px;
  color: var(--bs-gray-700);
  font-size: var(--fs-12);
}

/* Pagination buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 26px;
  font-size: var(--fs-12);
  border: 1px solid #ddd;
  /* border-right: none; */
  border-radius: 0;
  margin: 0;
  color: var(--bs-gray-700);
  padding: 2px 6px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

/* Active page button */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background-color: #007bff;
  color: #fff !important;
  border: 1px solid #007bff;
}

/* Search input */
.dataTables_wrapper .dataTables_filter {
  font-size: var(--fs-12);
}

.dataTables_wrapper .dataTables_filter input {
  width: 220px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  margin: 10px 10px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Info text */
.dataTables_wrapper .dataTables_info {
  color: #555;
  margin-top: 10px;
  font-size: var(--fs-12);
}

/* Estilo base para la paginación */

div.dt-container .dt-paging .dt-paging-button {
  padding: 0;
  margin: 0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: var(--fs-12);
}

.pagination .page-item {
  margin: 0 3px;
}

.page-link {
  padding: 5px 10px;
  font-size: var(--fs-12);
  border: 1px solid #ddd;
  border-radius: 4px;
  color: var(--color-enfasis);
  background-color: transparent;
  transition: all 0.3s ease;
}

/* Estilo para el hover y el estado activo */

div.dt-container .dt-paging .dt-paging-button:hover {
  background: var(--color-enfasis);
  border: 1px solid #ddd;
}

.page-link:hover {
  background: var(--color-enfasis);
  color: #fff;
}

.page-link:focus {
  box-shadow: none;
}

.page-item.active .page-link {
  background-color: var(--color-enfasis);
  border: 1px solid #ddd;
}

/* Estilo para los botones de navegación (First, Previous, Next, Last) */
.page-link.first,
.page-link.previous,
.page-link.next,
.page-link.last {
  margin: 0;
  font-size: var(--fs-12);
  font-weight: 500;
}

/* Estilo para los botones deshabilitados */
.page-item.disabled .page-link {
  background-color: #f1f1f1;
  color: #ccc;
  border-color: #ddd;
  cursor: not-allowed;
}

/* Diseño responsivo */
@media (max-width: 768px) {
  .pagination {
    font-size: var(--fs-12);
  }

  .page-link {
    padding: 4px 8px;
  }
}

/* =====================
   Botones (btn, btn-cstm, etc.)
   Usados en formularios, acciones rápidas, paneles, etc.
====================== */
.btn {
  font-size: var(--fs-12);
  font-weight: 400;
}

.bt-import {
  width: 120px;
  height: 70px;
}

.btn-cstm {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--color-enfasis);
  --bs-btn-border-color: var(--color-enfasis);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: color-mix(in sRGB, #000 10%, var(--color-enfasis));
  --bs-btn-hover-border-color: color-mix(
    in sRGB,
    #000 10%,
    var(--color-enfasis)
  );
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: color-mix(in sRGB, #000 10%, var(--color-enfasis));
  --bs-btn-active-border-color: color-mix(
    in sRGB,
    #000 10%,
    var(--color-enfasis)
  );
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #6c757d;
  --bs-btn-disabled-border-color: #6c757d;
}

.form-control:focus {
  border-color: color-mix(in sRGB, #fff 70%, var(--color-enfasis));
  box-shadow: 0 0 0 0.2rem color-mix(in sRGB, #fff 70%, var(--color-enfasis));
}

.btn-rounded {
  border-radius: 50px;
}

.btn svg {
  margin-right: 2px;
  margin-bottom: 2px;
}

.btn-custom-option {
  background-color: #f6f8fa;
  color: var(--bs-gray-700);
  border: 1px solid #d8e2e7;
  padding: 0.15rem 0.35rem;
  margin: 2px;
}

.btn-custom-option svg {
  margin: 0;
}

.btn-custom-option:hover {
  background-color: #f6f8fa;
  color: var(--bs-gray-900);
}

.btn-eliminarinfo {
  position: absolute;
  top: 0;
  right: 20px;
}

.btn-custom-danger {
  color: #df0a1f;
}

.btn-custom-danger:hover {
  color: #df0a1f;
}

.btn-xs {
  padding: 0.195rem 0.517rem;
  font-size: var(--fs-12);
}

/* =====================
   Modales
   Títulos de ventanas modales.
====================== */
.modal-title {
  font-size: var(--fs-14);
  font-weight: 500;
}

/* =====================
   Formularios (inputs, selects, labels)
   Usados en formularios de alta/edición de clientes, operaciones, tareas, etc.
====================== */
.form-group {
  margin-bottom: 0.5rem;
}

.form-label {
  display: block;
  font-size: var(--fs-13);
  font-weight: 400;
  color: var(--bs-gray-800);
}

.cliente-info {
  display: flex;
  flex-direction: column;
  font-size: var(--fs-12);
  font-weight: 500;
  color: var(--bs-gray-700);
  align-items: flex-start;
  justify-content: center;
}

.cliente-info label {
  font-size: var(--fs-14);
  font-weight: 500;
}

.form-group input {
  font-size: var(--fs-13);
  line-height: 1.3;
}

.form-group textarea {
  font-size: var(--fs-12);
}

.form-select {
  font-size: var(--fs-12);
}

.form-select:focus {
  border-color: color-mix(in sRGB, #fff 70%, var(--color-enfasis));
  box-shadow: 0 0 0 0.2rem color-mix(in sRGB, #fff 70%, var(--color-enfasis));
}

.form-control {
  font-size: var(--fs-12);
  line-height: 1.3;
}

/* =====================
   Fichas comerciales y de operación
   Tarjetas para mostrar información resumida de clientes, operaciones, paneles comerciales.
====================== */
.ficha-comercial {
  font-weight: 500;
  border: 1px solid #d8e2e7;
  border-left: solid 2px;
  margin-bottom: 10px;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  color: var(--bs-gray-800);
  cursor: pointer;
  min-height: 55px;
  align-content: center;
}

.ficha-comercial .title {
  font-size: var(--fs-12);
  margin-bottom: 2px;
}

.ficha-comercial .count {
  font-size: var(--fs-13);
  text-align: right;
}

.ficha-operacion .ficha-comercial:hover {
  background: #f6f8fa;
}
/* Hover resaltado de panel comercial*/
.ficha-operacion:hover,
.ficha-comercial:hover {
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.15),
    0 1.5px 6px rgba(0, 0, 0, 0.08);
  border: 2px solid #007bff;
  background-color: #f0f8ff;
  transition: box-shadow 0.2s, border 0.2s, background 0.2s;
  cursor: pointer;
}

.ficha-operacion {
  font-weight: 500;
  margin-bottom: 10px;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  color: var(--bs-gray-800);
  cursor: pointer;
  min-height: 55px;
}

.ficha-operacion .title {
  font-size: var(--fs-12);
  color: var(--bs-gray-800);
}
.ficha-operacion .amount {
  font-size: var(--fs-13);
  color: var(--bs-gray-800);
}

.ficha-operacion .count {
  text-align: right;
  font-size: var(--fs-13);
}

/*TAMAÑO DE LAS CARD DE CONTACTO EXITOSO */ /*Solo para la primera columna*/
.col-lg-4:first-child .card {
  min-height: 323px;
}

/* =====================
   Cards de contacto exitoso
   Ajusta el tamaño mínimo de la primera tarjeta en ciertas vistas de contacto.
====================== */
.card {
  margin-bottom: 15px;
  box-shadow: 0 0.1875rem 0.75rem 0 rgba(47, 43, 61, 0.14);
  border: none;
}

.card-header {
  background-color: var(--color-card-bg);
  /* padding: 10px 15px;
  border-bottom: 1px solid #d8e2e7; */
}

.card-title {
  font-size: var(--fs-12);
  color: var(--bs-heading-color);
  font-weight: 500;
  margin: 0;
}

/* =====================
   Breadcrumbs
   Navegación de migas de pan.
====================== */
.breadcrumb {
  font-size: var(--fs-13);
  margin-bottom: 5px;
}

.breadcrumb-item {
  font-size: inherit;
}

.breadcrumb-item a {
  font-size: inherit;
  color: var(--bs-gray-800);
  text-decoration: none;
}

.breadcrumb-item + .breadcrumb-item::before {
  float: left;
  padding-right: var(--bs-breadcrumb-item-padding-x);
  color: var(--bs-breadcrumb-divider-color);
  content: var(--bs-breadcrumb-divider, ">");
}

/* =====================
   Tabs y navegación de secciones
   Usados en paneles, configuraciones, etc.
====================== */
.nav-item {
  text-decoration: none;
  margin-right: 15px;
}

.nav-set {
  min-width: 120px;
  text-align: center;
}

.tabs-section-nav {
  background: #fff;
  padding: 5px 5px;
  border-radius: 5px;
  box-shadow: 0 0.1875rem 0.75rem 0 rgba(47, 43, 61, 0.14);
}

.tabs-section .tabs-section-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bs-gray-700);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;

  /* Refuerzo para quitar subrayado en todas las tabs/fichas/ */
  .nav-tabs .nav-link,
  .nav-pills .nav-link,
  .tabs-section-nav .nav-link,
  .tabs-section-nav a,
  a.nav-link,
  a.tab-link,
  a.tab-title,
  a.tab-name {
    text-decoration: none !important;
    border-bottom: none !important;
  }
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--color-enfasis);
  color: #fff;
}

.form-check-input {
  height: 0.9rem;
  width: 0.9rem;
}

.form-check label {
  font-size: 0.85rem;
}

.swal2-styled {
  font-size: 0.8rem;
  font-weight: 400;
}

.swal2-html-container {
  font-size: 1rem;
}

.swal2-title {
  font-size: 1.2rem;
}

/* Lista para cat doc */

/* =====================
   Listas personalizadas (documentos, estados)
   Usadas en módulos de documentos, estados, etc.
====================== */
.list-custom-doc {
  padding: 8px 0;
  border: none;
}

.list-custom-doc:hover {
  background: #f6f8fa;
}

.list-custom-doc a {
  font-size: 0.8rem;
  color: var(--bs-gray-700);
  font-weight: 500;
  text-decoration: none;
}

a.estado-click {
  text-decoration: none !important;
  border-bottom: none !important;
}

.dropdown-item {
  font-size: 0.85rem;
}

/* =====================
   Botones personalizados de panel
   Usados en paneles de acceso rápido.
====================== */
.btn-custom-panel {
  display: flex;
  padding: 1rem;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 100px;
  min-width: 150px;
  width: 150px;
}

@media (max-width: 767px) {
  .btn-custom-panel {
    width: auto;
    height: 80px;
  }
}

.font-size-12 {
  font-size: 12px !important;
}

.font-size-13 {
  font-size: 13px !important;
}

.font-size-14 {
  font-size: 14px !important;
}

.font-size-15 {
  font-size: 15px !important;
}

.font-size-16 {
  font-size: 16px !important;
}

.font-size-18 {
  font-size: 18px !important;
}

.ds-icon {
  background: #f6f8fa;
  color: var(--bs-gray-600);
  border: 1px solid #ced4da;
  border-right: none;
  border-radius: 3px 0 0 3px;
  margin-right: 0;
  padding: 3px 0 1px 7px;
  width: 31px;
  height: 31px;
}

.comments-box {
  border-radius: 10px;
  background: #fff;
  padding: 0.8rem;
  margin-bottom: 0.25rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comments-header {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-right: 0.8rem;
  background: var(--color-enfasis);
  color: #fff;
  padding: 0 0.25rem;
}

.comments-title {
  flex-grow: 1;
}

.comments-title .title {
  font-size: 0.8rem;
  font-weight: 500;
}

.comments-title .title-sub {
  font-size: 0.75rem;
  font-weight: 400;
}

.comments-title .date {
  font-size: 0.75rem;
  color: var(--bs-gray-600);
}

.comments-body {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  text-align: justify;
  color: var(--bs-gray-700);
}

.comments-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #d8e2e7;
  padding: 0 1rem;
}

.comments-footer a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bs-gray-700);
  text-decoration: none;
}

.sub-comments {
  border-left: #adb7be solid 1px;
  margin-left: 1rem;
  padding-left: 1rem;
}

.wr-response {
  width: 100%;
  text-align: center;
  background-color: #ced4da;
  font-size: 0.7rem;
}

.input-group {
  flex-wrap: nowrap;
}

.checkbox-detailed {
  display: inline-block;
  position: relative;
  vertical-align: top;
  margin: 0 12px 12px 0;
}

.checkbox-detailed input {
  position: absolute;
  visibility: hidden;
}

.checkbox-detailed input + label {
  /* width: 200px; */
  /* height: 84px; */
  border: 1px solid #d8e2e7;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  padding: 0 10px 0 30px;
  line-height: 1.4;
}

.checkbox-detailed input:checked + label {
  background-color: #e4f6fe;
  border-color: var(--color-enfasis);
}

.checkbox-detailed input:checked + label:before {
  border-color: var(--color-enfasis);
  background-color: var(--color-enfasis);
}

.checkbox-detailed input + label:before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid #c5d6de;
  position: absolute;
  left: 10px;
  top: 50%;
  margin-top: -9px;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.checkbox-detailed .checkbox-detailed-tbl {
  display: table;
  width: 100%;
  height: 100%;
}

.checkbox-detailed .checkbox-detailed-cell {
  display: table-cell;
  vertical-align: middle;
  padding: 5px 0;
}

.form-check-input:checked {
  background-color: var(--color-enfasis);
  border-color: var(--color-enfasis);
}
.form-check-input:focus {
  border-color: var(--color-enfasis);
  outline: 0;
  box-shadow: 0 0 0 0.25rem color-mix(in sRGB, #fff 70%, var(--color-enfasis));
}

.input-group-text {
  color: #6c757d;
  padding: 1px 8px;
}

.tbl_dsm {
  padding: 10px;
  display: grid;
  grid-template-columns: auto auto auto auto;
  width: max-content;
  gap: 5px 15px;
  margin: auto;
  font-size: 12px;
}

.cell_dsm {
  text-align: left;
  white-space: nowrap;
}

.card-docs {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-docs-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-docs-content .title {
  padding-left: 5px;
  font-size: 13px;
  margin-bottom: 2px;
}

.card-docs-content .btn-docs {
  padding: 5px;
  font-size: 12px;
}

/* Timeline  */

.timeline {
  --bs-timeline-point-indicator-color: var(--bs-primary);
  --bs-timeline-point-indicator-bg: var(--bs-primary-bg-subtle);
  --bs-timeline-event-time-color: var(--bs-secondary-color);
  list-style: none;
}

.timeline .timeline-item {
  position: relative;
  border: 0;
  border-inline-start: 1px solid var(--bs-border-color);
  padding-inline-start: 1.4rem;
}

.timeline .timeline-item .timeline-point {
  position: absolute;
  z-index: 2;
  display: block;
  background-color: var(--bs-timeline-point-indicator-color);
  block-size: 0.75rem;
  box-shadow: 0 0 0 10px #fff;
  inline-size: 0.75rem;
  inset-block-start: 0;
  inset-inline-start: -0.38rem;
  outline: 3px solid var(--bs-timeline-point-indicator-bg);
  border-radius: 50%;
}

.timeline .timeline-item.timeline-item-transparent .timeline-event {
  position: relative;
  inset-block-start: -0.3rem;
  padding-inline: 0;
}

/* Backgroud */

.bg-color-red {
  background-color: #df0a1f !important;
}

.bg-green-clear {
  background-color: #ddf6e8 !important;
  color: #008c1c;
}

.bg-red-clear {
  background-color: #ffe2e3 !important;
  color: #ff4c51;
}

.bg-orange-clear {
  background-color: #fff0e1 !important;
  color: #ff9f43;
}

.bg-blue-clear {
  background-color: #cfe2ff !important;
  color: #0d6efd;
}

.bg-purple-clear {
  background-color: #e9e7fd !important;
  color: #7367f0;
}

/* Colores */
.color-custom {
  color: var(--color-enfasis);
}

.color-red {
  color: #ff4c51;
}

.color-purple {
  color: #8b5cf6;
}

.color-orange {
  color: #f97316;
}

.color-green {
  color: #43b581;
}

.color-blue {
  color: #3b82f6;
}

.color-grey-500 {
  color: #adb5bd;
}

.color-grey-600 {
  color: #6c757d;
}

.color-grey-700 {
  color: #495057;
}

/* tabla profile */

.tbl_home_profile {
  padding: 10px;
  display: grid;
  grid-template-columns: auto auto;
  width: 100%;
  gap: 5px 15px;
  margin: auto;
  font-size: 13px;
}

.cell_thp {
  white-space: nowrap;
  padding: 5px;
}

.size-14 {
  height: 14px;
  width: 14px;
}

.size-26 {
  height: 26px;
  width: 26px;
}

.size-30 {
  height: 30px;
  width: 30px;
}

/* =====================
   Comentarios y timeline
   Usados en módulos de seguimiento, historial, comentarios de clientes.
====================== */
.activity-line {
  padding: 0 0 0 82px;
  position: relative;
  margin-left: -15px;
}

.activity-line:before {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  border-left: solid 1px #c5d6de;
  position: absolute;
  left: 41px;
  top: 0;
}

.activity-line-item {
  margin: 0 0 18px;
  font-size: 1rem;
  position: relative;
}

.activity-line-item .activity-line-date {
  width: 80px;
  text-align: center;
  position: absolute;
  left: -80px;
  color: #6c7a86;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 10px 0;
  background: #eceff4;
}

.activity-line-item .activity-line-item-header {
  border-bottom: solid 1px #d8e2e7;
  padding: 0.5rem;
}

.activity-line-item .activity-line-action {
  padding: 15px;
  zoom: 1;
  position: relative;
}

.activity-line-item .activity-line-action:nth-child(odd) {
  background: #fbfcfd;
}

.activity-line-item .activity-line-action .time {
  float: left;
  width: 90px;
  color: #6c7a86;
  position: relative;
}

.activity-line-item .activity-line-action .cont {
  float: right;
  width: 100%;
  margin-left: -90px;
}

.activity-line-item .activity-line-action .cont-in {
  margin-left: 90px;
}

.activity-line-item .activity-line-action .meta {
  zoom: 1;
  color: #6c7a86;
  padding: 5px 0 0;
}

.activity-line-item .activity-line-action .previews:after,
.activity-line-item .activity-line-action .previews:before,
.activity-line-item .activity-line-action:after,
.activity-line-item .activity-line-action:before {
  display: table;
  content: " ";
}

.activity-line-item .activity-line-action .meta:after,
.activity-line-item .activity-line-action .previews:after,
.activity-line-item .activity-line-action:after {
  clear: both;
}

.brd-color-green {
  border-left: solid 3px #28c76f;
}

.brd-color-red {
  border-left: solid 3px #ff4c51;
}

.brd-color-orange {
  border-left: solid 3px #ff9f43;
}

.brd-color-blue {
  border-left: solid 3px #0d6efd;
}

.brd-color-purple {
  border-left: solid 3px #7367f0;
}

/* =====================
   Cards y grids personalizados
   Usados para mostrar información en formato grid y tarjetas de ventas.
====================== */
.card-custom-sales {
  border: solid 1px #ddd;
  border-radius: 0%;
  box-shadow: none;
}

.operation-info {
  display: grid;
  grid-template-columns: 1fr 3fr;
  column-gap: 0.5rem;
  align-content: center;
}

.operation-info .tittle {
  font-size: 0.8rem;
  font-weight: 600;
}

.operation-info .info {
  font-size: 0.8rem;
}

/* =====================
   Fichas de operaciones en cliente
   Tarjetas para mostrar operaciones asociadas a un cliente.
====================== */
.operation-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 0.1875rem 0.75rem 0 rgba(47, 43, 61, 0.14);
  background-color: #fff;
  border-left: solid 3px #46c35f;
  display: block;
  position: relative;
}

.operation-content {
  padding: 12px 50px 12px 15px;
  display: flex;
}

.operation-content-header {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 5px 0;
  height: 100%;
  flex-direction: column;
}

.operation-content-body {
  display: flex;
  flex-direction: row;
  height: 100%;
  justify-content: space-evenly;
  gap: 0.5rem;
}

.operation-content p {
  font-size: 0.8rem;
  margin: 0;
  font-weight: 500;
}

.operation-content h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.operation-card .actions {
  display: flex;
  position: absolute;
  height: 100%;
  top: 0;
  right: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 1.3rem;
}

.btn-operation {
  background-color: #46c35f;
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-operation:hover {
  background-color: #3eae54;
}

/* Estilos responsivos para pantallas pequeñas */
@media (max-width: 768px) {
  .operation-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .operation-content-body {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .operation-content-body {
    flex-direction: column;
    gap: 0;
  }
}

.fw-500 {
  font-weight: 500;
}

.fs-12 {
  font-size: var(--fs-12);
}

.fs-13 {
  font-size: var(--fs-13);
}

.fs-14 {
  font-size: var(--fs-14);
}

.communicate-item {
  position: relative;
  border: #a6abaf solid 1px;
  border-radius: 5px;
  height: 80px;
  padding: 10px;
  margin-bottom: 10px;
}

.communicate-item:hover {
  background: #f4f4f4;
}

/* Campañas */
.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 40%;
  font-size: 14px;
  background-color: var(--bs-gray-600);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.active .step-circle {
  background-color: var(--color-enfasis);
}

.step-label {
  font-size: 14px;
  font-weight: 600;
  margin: 0.25rem;
  margin-left: 1rem;
  color: var(--bs-gray-700);
}

.min-width-200 {
  min-width: 200px;
}

.card-home-size {
  min-height: 100%;
  height: 100%;
}

@media (min-width: 1200px) {
  .row.same-height {
    display: flex;
    align-items: stretch;
  }
  .row.same-height > .col-xl-6.mb-3 {
    display: flex;
    flex-direction: column;
  }
  .row.same-height > .col-xl-6.mb-3 > section.card-home-size {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    height: 100%;
  }
  .row.same-height > .col-xl-6.mb-3 > section.card-home-size .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
    padding: 1.25rem !important;
    box-sizing: border-box;
    overflow: auto !important;
  }
}

.bg-custom {
  background-color: var(--color-enfasis);
}

/* =====================
   Cards de tareas y comunicaciones
   Usados para tarjetas de tareas y comunicaciones, con hover y colores de énfasis.
====================== */
.task-card {
  transition: all 0.2s ease-in-out;
  border: #a6abaf solid 1px;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.task-card:hover {
  background: #f4f4f4;
}

/* =====================
   Navegación de enlaces
   Usados en tabs, menús y navegación secundaria.
====================== */
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bs-gray-700);  
}

/* Estilo de títulos de grupo en Select2 */
.select2-results__group {
  font-weight: bold;
  padding: 6px 10px;
  border-bottom: 1px solid #ddd;
}