﻿/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLmNzcyIsInNvdXJjZXMiOlsiY3VzdG9tLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9 */

/*# sourceMappingURL=custom.css.map */


#previewImagen {
  border-radius: 50%;
  position: absolute;
  float: inline-start;
}

.login-page {
  overflow: hidden; /* Evita el scroll */
  width: 100%;  
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
  background: linear-gradient(135deg, #ff5623 0%, #ff8e24 80%) !important;
}


.login-form {
  background-color: rgba(255, 255, 255, 0.9);
  /* Fondo del formulario con opacidad */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);  
  /* Sombra para dar profundidad al formulario */
  max-width: 400px;
  width: 90%;
  top: 60%;
  left: 50%;
  position: absolute;

  transform: translate(-50%, -50%);
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilo para el resto del contenido del formulario */
.login-form input[type="text"],
.login-form input[type="password"],
.login-form button {
  width: 100%;
  padding: 10px;
  margin-bottom: 30px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.login-form button {
  background-color: #353c48;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-form button:hover {
  background-color: #1b1c1f;
}

.logo-container {
  perspective: 1000px; /* Agrega perspectiva para el efecto 3D */
}

.logo-container {
  perspective: 1000px; /* Agrega perspectiva para el efecto 3D */
}

.logo {
  position: absolute;
  top: -175px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  background: url("../img/logo_empresa.png") no-repeat center;
  background-size: cover;
  border-radius: 50%;
  
  animation: swing 10s ease-in-out infinite; /* Agrega la animaciÃ³n aquÃ­ */
  backface-visibility: hidden; /* Oculta la parte trasera durante la rotaciÃ³n */
}
/*
@keyframes swing {
  0% {
    transform: translateX(-50%) rotateY(0deg); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }
  25% {
    transform: translateX(-50%) rotateY(-25deg); 
    box-shadow: -10px 2px 15px rgba(0, 0, 0, 0.5), 10px 2px 15px rgba(255, 255, 255, 0.3); 
  }
  75% {
    transform: translateX(-50%) rotateY(25deg); 
    box-shadow: 10px 2px 15px rgba(0, 0, 0, 0.5), -10px 2px 15px rgba(255, 255, 255, 0.3);
  }
}*/

.login-form h2 {
  text-align: center;
  margin-bottom: 30px;
}

.tagline {
  text-align: center;
  font-size: 10px;
  color: #777;
}

/* Estilos para pantallas pequeÃ±as (mÃ³viles) */
@media screen and (max-width: 768px) {
  .login-page {

    width: 100%;  
    min-height: 100vh;
    display: -webkit-flex;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #000000;
    background: -webkit-linear-gradient(to right, #ffffff, #999999, #424242, #000000, #000000);
    background: linear-gradient(to right, #ffffff, #999999, #424242, #000000, #000000);
    /* Cambia la imagen de fondo para pantallas pequeÃ±as 
    background: linear-gradient(
      to bottom,
      rgba(212, 214, 211, 0.8),
      rgba(0, 35, 51, 0.8)
    );
    background-image: url("../img/fondo-celular.jpg");
    min-height: 100vh;
    margin: 0;
    padding: 0 20px 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;

    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;*/
    
  }
  .login-form {
    background-color: rgba(255, 255, 255, 0.9);
    /* Fondo del formulario con opacidad */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);  
    /* Sombra para dar profundidad al formulario */
    max-width: 400px;
    width: 70%;
    top: 60%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
  }
}

/* ESTILOS PROPIOS */
/* SelecciÃ³n - Forma de pago */
#num_transac:disabled {
  background-color: #e9ecef; /* Color gris */
  cursor: not-allowed;
}
/*Login*/
.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 30%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 1.2em; /* Ajusta el tamaÃ±o del icono */
  color: #cafcca;
}

.badge-warning {
  background-color: #ffc107; /* Amarillo */
  color: #212529;
}

.badge-danger {
  background-color: #dc3545; /* Rojo */
  color: #fff;
}

/*Deuda Vencida - NotificaciÃ³n*//* ðŸ”¹ Contenedor principal de la lista */
.dropdown-menu.dropdown-list {
  margin-left: -380px;
  width: 430px;
  max-height: unset;
  padding: 0;
  overflow: hidden;
  font-size: 12px;
  border: 1px solid #ddd;
}

/* ðŸ”¹ Encabezado */
.dropdown-menu .dropdown-header {
  font-weight: bold;
  background: #f8f9fa;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

/* ðŸ”¹ Scroll solo en los items */
.notificaciones-scroll {
  max-height: 250px;
  overflow-y: auto;
}

/* ðŸ”¹ Footer fijo */
.dropdown-footer-fixed {
  padding: 8px;
  border-top: 1px solid #ddd;
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.dropdown-footer-fixed a.text-primary {
  color: #007bff !important; /* azul Bootstrap */
}

.dropdown-footer-fixed a.text-primary:hover {
  color: #0056b3 !important;
  text-decoration: underline;
}


/* Notificaciones interactivas â€” hover + cursor */
.notificaciones-scroll .dropdown-item {
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease, border-left-color 0.15s ease;
}
.notificaciones-scroll .dropdown-item:hover {
    background-color: #fff3e0;
    border-left-color: #e67e22;
    text-decoration: none;
}
/* Ãtem de deuda: borde rojo al hover */
.notif-deuda-item:hover {
    background-color: #fdecea !important;
    border-left-color: #dc3545 !important;
}

.notif-deuda-item {
  gap: 10px;
  align-items: flex-start !important;
}

.notif-deuda-item.notif-unread {
  background-color: #fff9f9;
  border-left-color: #dc3545;
}

.notif-deuda-item.notif-read {
  opacity: 0.88;
}

.notif-deuda-marker {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: #c7d3df;
  flex: 0 0 10px;
}

.notif-deuda-marker.notif-unread {
  background: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.notif-deuda-content {
  line-height: 1.2;
}

.notif-resumen {
  font-size: 12px;
}

/*DASHBOARD - ESTILO MANUAL*/
#tventahoy,
#tcomprahoy,
#tdeudatotal {
  font-size: 1.40rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-page .dashboard-kpi-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dashboard-page .dashboard-kpi-card .card-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.dashboard-page .dashboard-kpi-card .card-wrap .padding-20 {
  width: 100%;
}

.dashboard-page .dashboard-kpi-card > a {
  display: block;
  margin-top: auto;
}

.dashboard-page .dashboard-block-start {
  margin-top: 18px;
}

.dashboard-page .dashboard-chart-body {
  height: 380px;
}

.dashboard-page .dashboard-chart-canvas {
  width: 100% !important;
  height: 100% !important;
}

.card-icon {
  width: 45px !important;
  height: 45px !important;
  font-size: 18px !important; /* TamaÃ±o del Ã­cono */
  line-height: 45px !important;
  text-align: center;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cabecera de la sub-tabla (pagos) con fondo gris claro y texto oscuro */
#salesTable thead th {
  background-color: #002247;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Cursor pointer para el icono + */
#salesTable td.details-control i {
  cursor: pointer;
}

/* TransiciÃ³n y cursor para el icono */
td.details-control i.toggle-icon {
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Al colapsar, lo giramos y cambiamos el color */
tr.shown td.details-control i.toggle-icon {
  transform: rotate(180deg);
  color: #dc3545; /* rojo suave cuando estÃ¡ abierto */
}

/* Hover para ambos estados */
td.details-control i.toggle-icon:hover {
  color: #0056b3; /* azul mÃ¡s oscuro al pasar */
}



/* ðŸ“Œ Ajuste en pantallas menores a 768px (tablets y mÃ³viles grandes) */
@media (max-width: 1024px) {
  .dropdown-menu.dropdown-list {
    width: 600px !important; /* Un poco mÃ¡s de ancho */
    max-height: 450px !important; /* Mayor altura */
  }
  .notificaciones-container table {
    font-size: 14px; /* Texto mÃ¡s visible */
  }
  .notificaciones-container th, 
  .notificaciones-container td {
    padding: 3px 6px; /* Espaciado mÃ¡s cÃ³modo */
  }
  /*Deuda Vencida - NotificaciÃ³n*/
.notificaciones-container {
  max-height: 250px; /* Mantiene un tamaÃ±o visible */
  overflow-y: auto; /* ðŸ”¹ Permite el scroll dentro de la tabla */
  position: relative;
}

/* ðŸ”¹ Fijar el encabezado */
  .notificaciones-container thead {
  position: sticky;
  top: 0; /* ðŸ”¹ Se mantiene arriba al hacer scroll */
  background: white; /* ðŸ”¹ Asegura que el fondo no sea transparente */
  z-index: 10; /* ðŸ”¹ Se mantiene sobre las filas */
}
}

@media (max-width: 991.98px) {
  .dashboard-page .dashboard-chart-body {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .dropdown-menu.dropdown-list div {
    padding: 0px;
  }
  .dropdown-menu.dropdown-list {
    width: 420px !important; /* Reduce el ancho */
    margin-left: -250px;
  }
  .notificaciones-container table {
    font-size: 12px; /* Reduce aún más el texto */
  }

  .notificaciones-container th,
  .notificaciones-container td {
    padding: 1px 2px; /* Reduce aún más los espacios */
  }
  /*Deuda Vencida - Notificación*/
  .notificaciones-container {
    max-height: 250px; /* Mantiene un tamaño visible */
    overflow-y: auto; /* Permite el scroll dentro de la tabla */
    position: relative;
  }

  /* Fijar el encabezado */
  .notificaciones-container thead {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
  }
}

/* Panel de Configuracion */
.settings-hero {
  border: 1px solid #e9edf4;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6f9ff 0%, #ffffff 65%);
  padding: 16px 18px;
}

.settings-card-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.settings-card {
  border: 1px solid #e9edf4;
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.settings-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18, 38, 63, 0.12);
  border-color: #d7e3f8;
}

.settings-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}

.settings-card-title {
  margin-bottom: 6px;
  font-weight: 700;
  color: #2b3445;
}

.settings-card-text {
  color: #5b6577;
  font-size: 13px;
  line-height: 1.4;
}

/* Datos Generales - Layout en dos columnas */
.generalsetting-card {
  border: 1px solid #e6ecf5;
  border-radius: 14px;
  overflow: hidden;
}

.generalsetting-card .card-header {
  border-bottom: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
}

.generalsetting-card--business .card-header {
  background: linear-gradient(135deg, #1827f1 0%, #0b16a6 100%);
}

.generalsetting-card--config .card-header {
  background: linear-gradient(135deg, #3aa9b7 0%, #2c8e9b 100%);
}

.generalsetting-card .form-group label {
  font-weight: 600;
  font-size: 13px;
  color: #2f3a4f;
}

.generalsetting-card .input-group-text {
  background: #f3f6fb;
  border-color: #dbe4f0;
  color: #566075;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.25rem 0.5rem;
  min-width: 38px;
  justify-content: center;
}

.generalsetting-card .input-group .form-control.form-control-sm:not(textarea),
.generalsetting-card .input-group .input-group-text {
  height: calc(1.8125rem + 2px);
}

.generalsetting-note {
  background: #fbfdff;
}

.generalsetting-logo-preview {
  position: relative;
  display: inline-block;
}

.generalsetting-logo-preview #previewImagen {
  position: absolute;
  top: 6px;
  right: 6px;
  border-radius: 50%;
  line-height: 1;
  padding: 2px 6px;
}

.generalsetting-logo-preview .generalsetting-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  border-radius: 50%;
  line-height: 1;
  padding: 2px 6px;
  display: none;
}

@media (max-width: 768px) {
  .settings-hero {
    padding: 14px;
    border-radius: 12px;
  }
  .settings-card {
    border-radius: 12px;
  }
  .generalsetting-card {
    border-radius: 12px;
  }
}
/* ðŸ“Œ Ajuste en pantallas menores a 576px (mÃ³viles pequeÃ±os) */
@media (max-width: 576px) {
  .dropdown-menu.dropdown-list {
    width: 320px !important;
    overflow-y: auto !important;
    font-size: 12px;
    margin-left: -140px;
}
  .notificaciones-container table {
    font-size: 12px; /* Reduce aÃºn mÃ¡s el texto */
  }
  .dropdown-list-toggle:first-child .dropdown-list{
    right: -168px!important;
  }

  .max-screen{
    display: none;
  }

  .notificaciones-container th, 
  .notificaciones-container td {
    padding: 1px 2px; /* Reduce aÃºn mÃ¡s los espacios */
  }
  /*Deuda Vencida - NotificaciÃ³n*/
.notificaciones-container {
  max-height: 250px; /* Mantiene un tamaÃ±o visible */
  overflow-y: auto; /* ðŸ”¹ Permite el scroll dentro de la tabla */
  position: relative;
}

/* ðŸ”¹ Fijar el encabezado */
.notificaciones-container thead {
  position: sticky;
  top: 0; /* ðŸ”¹ Se mantiene arriba al hacer scroll */
  background: white; /* ðŸ”¹ Asegura que el fondo no sea transparente */
  z-index: 10; /* ðŸ”¹ Se mantiene sobre las filas */
}
}

/* ðŸ“Œ Ajuste en pantallas menores a 400px (mÃ³viles muy pequeÃ±os) */
@media (max-width: 400px) {
  .dropdown-menu.dropdown-list {
    width: 300px!important; /* Un poco mÃ¡s de margen */
    overflow-y: auto!important; /* Permite desplazamiento vertical */
    font-size: 12px;
    margin-left: -110px;
  }
  .notificaciones-container table {
    font-size: 12px; /* Reduce aÃºn mÃ¡s el texto */
  }

  .notificaciones-container th, 
  .notificaciones-container td {
    padding: 1px 2px; /* Reduce aÃºn mÃ¡s los espacios */
  }
  /*Deuda Vencida - NotificaciÃ³n*/
.notificaciones-container {
  max-height: 250px; /* Mantiene un tamaÃ±o visible */
  overflow-y: auto; /* ðŸ”¹ Permite el scroll dentro de la tabla */
  position: relative;
}

/* ðŸ”¹ Fijar el encabezado */
.notificaciones-container thead {
  position: sticky;
  top: 0; /* ðŸ”¹ Se mantiene arriba al hacer scroll */
  background: white; /* ðŸ”¹ Asegura que el fondo no sea transparente */
  z-index: 10; /* ðŸ”¹ Se mantiene sobre las filas */
}
}


/* ðŸ“Œ Ajuste en mÃ³viles extremadamente pequeÃ±os (320px) */
@media (max-width: 320px) {
  .dropdown-menu.dropdown-list {
    width: 280px !important;
    overflow-y: auto!important; /* Permite desplazamiento vertical */
    font-size: 12px;
  }
  .notificaciones-container table {
    font-size: 9px;
  }
  .notificaciones-container th, 
  .notificaciones-container td {
    padding: 1px 1px; /* Espaciado ultra reducido */
  }
  /*Deuda Vencida - NotificaciÃ³n*/
.notificaciones-container {
  max-height: 250px; /* Mantiene un tamaÃ±o visible */
  overflow-y: auto; /* ðŸ”¹ Permite el scroll dentro de la tabla */
  position: relative;
}

/* ðŸ”¹ Fijar el encabezado */
.notificaciones-container thead {
  position: sticky;
  top: 0; /* ðŸ”¹ Se mantiene arriba al hacer scroll */
  background: white; /* ðŸ”¹ Asegura que el fondo no sea transparente */
  z-index: 10; /* ðŸ”¹ Se mantiene sobre las filas */
}
}

/* Sidebar scroll fallback (native scrollbar) */
#sidebar-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #8fa1b8 transparent;
}

#sidebar-wrapper::-webkit-scrollbar {
  width: 8px;
}

#sidebar-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

#sidebar-wrapper::-webkit-scrollbar-thumb {
  background-color: #8fa1b8;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

#sidebar-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #6f84a0;
}
