﻿@font-face {
	font-family : 'Quicksand-Regular';
	src: url('/assets/fonts/Quicksand-Regular.ttf');
}

html,body {
  height: 100%;
  width:100%;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #1e293b;
}

#app {
  min-height: 0;
  width:100%;
}

.company-page-footer-logo {
  display: none;
  margin-top: 12px;
  margin-bottom: 32px;
  padding-bottom: 12px;
  color: #5f6368;
  font-size: 12px;
  line-height: 1.35;
}

/* Solo visible al imprimir reportes: en pantalla permanece oculto */
@media print {
  .company-page-footer-logo.has-logo {
    display: block;
  }
}

.company-page-footer-logo img {
  display: block;
  width: 150px;
  height: auto;
  max-height: 95px;
  margin-bottom: 8px;
  object-fit: contain;
}

.company-page-footer-logo p {
  margin: 1px 0;
}


.heading {
   display: flex;
   flex-direction: row;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 1rem;
 
 }

.heading.asientos-heading {
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem 1rem;
}

.asientos-heading-actions {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

.asientos-heading-actions .btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .heading.asientos-heading {
    flex-direction: row;
  }

  .asientos-heading-actions {
    justify-content: flex-end;
    width: auto;
  }
}

.mainContainer {
  background-color: white;
  font-weight: 500;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

h1 {
  margin-bottom: 0px;
}


/* Personalizaciones SwalAlert */

.swal2-popup
{
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
}

.swal2-confirm
{
  background-color: #2563EB;
  padding: 4px 0;
  width: 200px;
}

/* Personalizaciones bootstrap */

/* General Navbar Styles */
.navbar {
    background-color: #fff; /* White background */
    border-bottom: 1px solid #eee; /* Light gray border bottom */
    padding: 10px 20px; /* Adjust padding as needed */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow (optional) */
}

.navbar-brand {
    padding: 10px 0; /* Adjust padding */
    font-weight: 600; /* Slightly bolder brand text */
    color: #333; /* Darker brand color */
}

.navbar-toggler {
    border: none; /* Remove default border */
    padding: 0.25rem 0.5rem; /* Adjust padding */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51, 51, 51, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); /* Custom toggle icon (dark gray) */
}


.navbar-nav .nav-link {
    color: #6c757d; /* Muted text color */
    font-weight: 500; /* Slightly bolder font-weight */
    transition: color 0.3s ease; /* Smooth color transition */
    padding: 0.5rem 1rem; /* Adjust padding */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #333; /* Darker hover color */
}

.navbar-nav .nav-link.active {
    color: #000 !important; /* Black active color */
    font-weight: 600; /* Bolder active text */
}

.dropdown-menu {
    border: none; /* Remove default border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a shadow to the dropdown */
}

.dropdown-item {
    color: #333; /* Darker dropdown item text */
}

.dropdown-item:hover {
    background-color: #f5f5f5; /* Light gray background on hover */
}

/* Optional: Add a subtle border to the dropdown items */
.dropdown-item {
    border-bottom: 1px solid #eee; /* Light gray border */
}

.dropdown-item:last-child {
    border-bottom: none; /* Remove border from the last item */
}




/* EXTRA */




.navbar {
  margin-bottom: 1rem;
  --bs-navbar-brand-margin-end: 1rem;
}

.perfil-card{
  width: 500px;
}

.back-btn{
  border: none;
  border: 1px solid gray;
  border-radius:100%;
  padding: .5rem;
  background-color: #282828;
  height: 40px;
  width:40px;
  text-align: center;
  margin-right: .5rem;
}
.back-btn:hover{
  border: 1px solid gray;
  background-color: #424242;
}
.back-btn i {
  color:white;
}

.tooltip-pointer {
  cursor: pointer;
}

.tooltip-lg .tooltip-inner {
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
}



.bo-table
{
  border-top: solid 1pt #dee2e67d;
}

.line-45px
{
  line-height: 45px;
}

/*.line-40px
{
  line-height: 45px;
} */



.btn-blue
{
  background-color: #095892;
  border: #095892;
  margin-right: 1px;
}

.btn-opac
{
  padding: 7px 15px;
  background: #F5F5F5;
  border: 1px solid #ABABAB;
  margin-top: -3px;
}

.btn-out-blue
{
  border-color: #095892;
  color: #095892;
  font-weight:bold;
  padding: 0px 1rem;
  margin-right: 3px;
}

.btn-simple
{
  color:black !important;
}

.changeSearchBtn
{
  position: absolute;
  top: calc(50% - 16px);
  right: 9px;
  font-size: 22px;
  cursor: pointer;
}

/* Editor */

.editTool
{
  position: absolute;
  width: 100%;
  height: 100%;
  border: solid 1px #66ff66;
  border-style: dashed;
  display: none;
}

.etTitle
{
  background: #66ff66;
  position: absolute;
  border-radius: 5px 5px 0 0;
  padding: 0px 10px 0px 5px;
  font-size: 12px;
  top: -19px;
  z-index: 2000;
}

.relElement
{
  position: relative;
}

.boEle
{
  border-top: solid 1pt #eff1f3;
  padding: 10px 0;
}

.separator
{
  border-top: solid 1pt #dbdbdb;
  margin: 20px 0;
}


/* Facturas  */
.text_info
{
  font-size: 13px; 
  margin: 0px; 
  padding: 0px;
}
.colum-izquierda
{
  background-color: #F9F9F9;
  
}
.item-lista
{
  box-sizing: border-box;
  
  padding-top: 34px;
  padding-left: 31px;
  padding-bottom: 19px;
  padding-right: 11px;
  
  background: #FFFFFF;
  border: 1px solid #EDEDED;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  
  margin-bottom: 10px;
}

.item-lista:hover
{
  box-sizing: border-box;
  
  padding-top: 34px;
  padding-left: 31px;
  padding-bottom: 19px;
  padding-right: 11px;
  
  background: #FFFFFF;
  border: 3px solid #0A87E2;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  
  margin-bottom: 10px;
  cursor: pointer;
}
.selector-fac
{
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 25px;
  border-bottom: 2px solid black;
  padding-bottom:2px;
  margin-right: 10px;
}
.selector-fac-dis
{
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 25px;
  color: #9d9d9d;
  margin-right: 10px;
}
.monto-fac
{
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-size: 30px;
  align-self: flex-end;
}
.titulo-fac
{
  font-family: 'Allerta' !important;
  font-size:20px;
}
.circle-btn
{
  border-radius: 50% !important;
  width: 40px;
  height: 40px;
  
}

.item-fac
{
  box-sizing: border-box;
  background: rgba(10, 226, 96, 0.09);
  border: 1px solid #ABABAB;
  border-radius: 10px 10px 0px 0px;
  padding: 15px;
}

.icon-estado-fac
{
  font-size: 20px;
  margin-right: 15px;
}

.item-pago
{
  box-sizing: border-box;
  background: white;
  border: 1px solid #ABABAB;
  padding: 15px;
}

.link-text
{
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300;
  line-height: 25px;

  color: #0A87E2;
  cursor: pointer;
}

.estado-item-fac
{
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-size: 23px;
  line-height: 29px;
  color: rgba(10, 226, 96, 0.72);
}

.text-resaltado-item-fac
{
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-size: 25px;
  line-height: 31px;

  color: rgba(0, 0, 0, 0.8);
}

.text-item-fac
{
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300;
  font-size: 20px;
  line-height: 25px;
  color: #818181;
}

.contenido-fac
{
  position: absolute;
  top: 0px;
  left: 72px;
  width: calc(100vw - 72px - 1px - 20px - 20px);
  height: calc(100vh - 72px - 20px);
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 20px;
  margin-top: 73px;
  padding: 20px;
}

.docum
{
  background-color: #e7e7e7;
  border-radius: 10px;
}

.add-pdf
{
  padding-top: 50%;
  text-align: center;
  color: gray;
  font-weight: 500;
  cursor: pointer;
}

input[readonly] {
  background-color: #f0f0f0;
}
input[readonly]:focus {
  background-color: #f0f0f0;
}

.corte-index
{
  font-size: small;
  padding: 0px;
  line-height: normal;
}

#tabla_amortizacion tbody tr td, #tabla_amortizacion thead tr th
{
  text-align: right;
}

.contenidosaa
{
  display: none;
}

/*.contenidosab
{
  display: none;
} */

.contenidosab > .nombre
{
  display: none;
}

.contenidosab > .dni
{
  display: none;
}

.contenidosab > .elementosFinancieros
{
  padding: 20px 50px 0px 50px;
}

.nombre
{
  padding: 40px 50px 0px 50px;
  color: white;
  font-size: 35px;
  font-family: "Allerta";
}

.dni
{
  padding: 0px 50px 40px 50px;
  color: white;
  font-size: 15px;
  font-family: "Allerta";
  height: 70px;
}

.elementosFinancieros
{
  padding: 100px 50px 0px 50px;
  background: white;
}
.underline{margin-bottom: 5px;}
.upline{margin-top: 20px;}
.grisA{background-color: #ebebeb; font-family: "Allerta";}
.grisAD{background-color: #dddddd; font-family: "Allerta";}
.azulD{background-color: #0a303d; color: white;}
.goldD{background-color: #d6be6f; font-family: "Allerta";}
.divisor{border-left: solid 4px #fffefe;}

.goldGrid
{
  border: solid 1px #afb123;
  padding: 4px 16px;
  margin: 10px -12px;
}

.containerForPrint
{
  font-size: 12px;
  background: white;
}

@media print
{    
  .no-print, .no-print *
  {
      display: none !important;
  }
  body
  {
    padding-top: 0rem;
  }
  
  .contenidosaa
  {
    display: block;
    background:url(../img/interfaz.png) no-repeat;
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important; 
    height: 500px;
    background-size: cover;
  }
  
  .contenidosab
  {
    display: block;
    background:url(../img/interfaz.png) no-repeat;
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important;
    height: 550px;
    background-size: cover;
  }
  
  .contenidosab > .nombre
  {
    display: block;
  }

  .contenidosab > .dni
  {
    display: block;
  }

  .contenidosab > .elementosFinancieros
  {
    padding: 100px 50px 0px 50px;
  }
  
  .container
  {
    margin: 0px;
    padding: 0px;
    width: 100%;
    max-width: 100%;
  }
  
  .containerForPrint
  {
    padding: 0px 40px;
  }
  
}


.fCabin
{
  font-family: 'Allerta', sans-serif;
  font-family: 'Cabin Condensed', sans-serif;
}

.nav-link, .dropdown-item, .dropdown-toggle {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.dropdown.item:hover {
  color: #6c757d;
}

.nav-item {
  color: black;
}

.aclaration
{
  font-size: 12px;
  padding: 5px 10px 0px 10px;
  background: #ebebeb;
  margin: 5px 10px 0px 10px;
  border: solid 1px #ced4da;
  border-bottom: none !important;
  border-radius: 10px 10px 0px 0px;
}

.sectionTitle
{
  width: fit-content;
  background: #ffffff59;
  border-radius: 15px;
  padding: 0px 10px;
  box-shadow: 0px 10px 10px #858181;
}

.botonNaranja
{
  background-color: #c18e32;
  border: #FF9800;
}

.botonNaranja:hover
{
  background-color: #FF9800 !important;
  border-color: #FFC107 !important;
}


/* XS styling */
@media (max-width: 500px) {
  .container {
    max-width: inherit;
  }
}

/* SM styling */
@media (min-width: 500px) and (max-width: 767px) {
  .container {
    max-width: inherit;
  }
}

.fondoFormato
{
  background: white;
  padding:10px;
}

.containerCarColor {
  border: 1px solid #333;
  background-color: #cccdca;
}

.containerCar {
  border: 1px solid #333;
}

.borderedDiv {
  box-sizing: border-box;
  border-left: 1px solid #888;
}

.fs12px
{
  font-size: 12px;
}

.fs80px
{
  font-size: 80px;
}
.fs20px
{
  font-size: 20px;
}

.floatCricle
{
  position: absolute;
  top: 95px;
  left: calc(50% + 18px);
}
.floatCruz
{
    position: absolute;
    top: 1px;
    left: calc(50% + 40px);
}
.bordeX
{
  background-color:white;
  border-width: 0px;
}

.persongray
{
  color: #d3d3d3;
}

.circleGreen
{
  color: #a5eb53;
}
.cruzRed
{
  color: #f23333;
}
.posicionRetroceder
{
  position: absolute;
  top: 0px;
  left: -40px;
}

.vacio
{
  background-color:gray;
  color:white;
  padding: 3px;
}

.pendiente
{
  background-color:yellow;
  padding: 3px;
}

.rechazado
{
  background-color:red;
  color:white;
  padding: 3px;
}

.aceptado
{
  background-color:green;
  color:white;
  padding: 3px;
}

.rechazoCss
{
  display: block;
}

.estado-chip
{
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  line-height: 1.2;
}

.estado-error
{
  color: #b02a37;
  max-width: 520px;
  text-align: right;
}

#tablaExpedientes tbody tr td:nth-child(3)
{
  text-align:right;
}

#tablaExpedientes td:nth-child(2) {
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selectorPais
{
  background-color: #c18e32 !important;
  color: white !important;
  border: none !important;
  width: 130px;
  margin-bottom: 5px;
  margin-right: 5px;
  display: inline-block;
  padding: 3px 10px;
}

.format-bg
{
  background: white;
  padding: 10px;
}

.nombre-cliente-azul
{
  text-decoration: underline;
  color: blue;
  cursor: pointer;
}

.superpos1
{
  position: absolute;
}

.superpos2
{
  position: absolute;
  opacity: 0.7;
}

.fc-event {
  display: flex;
  align-items: center;
  padding: 5px;
  background: #3788d8;
  color: white;
  margin-bottom: 5px;
  cursor: default;
}

.drag-handle {
  cursor: move; /* Cambia el cursor solo para el área del manejador */
}



 


/* generar-boletos */



.form-label{
  margin-bottom: .4rem;
  font-size: 14px;
}
/*
.modal {
  position: fixed;
  color: white;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-dialog {
  width: 400px;
  max-width: 90%;
}

.modal-content {
  border-radius: 8px;
}

*/
.titulo{
  text-align: center;
  font-size: 1.3rem;
}





/* CLIENTES */

.heading {
   display: flex;
   flex-direction: row;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 1rem;
 
 }

.heading {
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.heading > h1 {
  flex: 0 0 auto;
}

.heading > div:not(.row) {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

.heading .btn {
  white-space: nowrap;
}

.heading .btn.me-3 {
  margin-right: 0 !important;
}

@media (max-width: 768px) {
  .heading {
    flex-direction: row;
  }

  .heading > div:not(.row) {
    justify-content: flex-end;
    width: auto;
  }
}
.box-shadow{
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}



.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2563EB;
    --bs-btn-border-color: #2563EB;
    --bs-btn-hover-color: #fff;
    --bs-btn-focus-shadow-rgb: 37, 99, 235;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1d4ed8;
    --bs-btn-active-border-color: #1d4ed8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #b6b7b7eb;
    --bs-btn-disabled-border-color: #b6b7b7eb;
    transition: all 0.3s ease;
    overflow: hidden; /* For pseudo-element positioning */
    position: relative; /* For pseudo-element positioning */
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.35);
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-primary:before { /* "Shine" effect (subtle) */
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)); /* Very subtle shine */
    transform: skewX(-25deg);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-primary:hover:before {
    left: 150%;
}

.btn-primary:active {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(2px);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* Optional: Add a subtle border transition */
.btn-primary {
    border: 1px solid #2563EB;
    transition: border-color 0.3s ease;
}

.btn-primary:disabled,
.btn-primary.disabled { /* For older Bootstrap versions */
    opacity: 0.65; /* Reduce opacity */
    cursor: not-allowed; /* Change cursor */
    background-color: #6c757d; /* Gray background */
    border-color: #6c757d; /* Gray border */
    box-shadow: none; /* Remove shadow */
}

/* Optional: Style the disabled state of the "shine" effect */
.btn-primary:disabled:before,
.btn-primary.disabled:before {
    background: none; /* Remove shine */
}

.btn-success {
     --bs-btn-color: #fff;
    --bs-btn-bg: #2563EB;
    --bs-btn-border-color: #2563EB;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1d4ed8;
    --bs-btn-hover-border-color: #1d4ed8;
    --bs-btn-focus-shadow-rgb: 37,99,235;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1d4ed8;
    --bs-btn-active-border-color: #1d4ed8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #b6b7b7eb;
    --bs-btn-disabled-border-color: #b6b7b7eb;
}

.copy-icon,
.bell-icon {
  cursor:pointer;
  color:  white;
}

.copy-icon:hover,
.bell-icon:hover{
  color: #D9D9D9;
  border-color: #D9D9D9;
}

.bell-icon {
  border-radius: 50%;
  border: 1px solid white;
}

.pagination{
  --bs-pagination-padding-x: 0.75rem;
  --bs-pagination-padding-y: 0.375rem;
  --bs-pagination-font-size: 1rem;
  --bs-pagination-color: #343a40;;
  --bs-pagination-bg: var(--bs-body-bg);
  --bs-pagination-border-width: var(--bs-border-width);
  --bs-pagination-border-color: var(--bs-border-color);
  --bs-pagination-border-radius: var(--bs-border-radius);
  --bs-pagination-hover-color: #343a40;
  --bs-pagination-hover-bg: var(--bs-tertiary-bg);
  --bs-pagination-hover-border-color: var(--bs-border-color);
  --bs-pagination-focus-color: #343a40;
  --bs-pagination-focus-bg: var(--bs-secondary-bg);
  --bs-pagination-focus-box-shadow: 0 0 0.1rem 0.25rem #52de2d7d;
  --bs-pagination-active-color: #fff;
  --bs-pagination-active-bg: #343a40;;
  --bs-pagination-active-border-color: #343a40;
  --bs-pagination-disabled-color: var(--bs-secondary-color);
  --bs-pagination-disabled-bg: var(--bs-secondary-bg);
  --bs-pagination-disabled-border-color: var(--bs-border-color);
  display: flex;
  padding-left: 0;
  list-style: none;
} 


.tree-node {
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  position: relative;
}

/* Style for node headers */
.node-header {
  border-radius: 4px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

/* Hover effect just for the node header, not children */
.node-header:hover {
  background-color: #e9ecef !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

/* Style for when a node is being dragged */
.tree-node.dragging > .node-header {
  opacity: 0.5;
  background-color: #f8f9fa !important;
}

/* Style for highlighting valid drop targets */
.node-header.drag-over {
  background-color: #cfe2ff !important;
  border: 2px dashed #0d6efd;
}

/* More visible drop indicator */
.node-header.drag-over::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #0d6efd;
  z-index: 1;
}

/* Indicators for drop position */
.node-header.drag-over[data-position="before"]::before {
  top: -1px;
}

.node-header.drag-over[data-position="after"]::before {
  bottom: -1px;
}

/* Animation for node actions */
.node-actions button {
  transition: transform 0.15s ease;
}

.node-actions button:hover {
  transform: scale(1.1);
}

/* Make child nodes visually distinct */
.child-nodes {
  border-left: 1px dashed #dee2e6;
  padding-left: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.child-nodes.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0 !important;
}

/* Add transition to the chevron icon rotation */
.collapse-toggle-icon {
  transition: transform 0.3s ease;
}

.collapse-toggle-icon.down {
  transform: rotate(0deg);
}

.collapse-toggle-icon.up {
  transform: rotate(180deg);
}

/* Add hover effect to the collapse toggle */
.collapse-toggle {
  cursor: pointer;
  opacity: 0.7;
}

.collapse-toggle:hover {
  opacity: 1;
}


/* EDITOR STYLES */

/* MODAL PARA CAROUSEL */


/* ═══════════════════════════════════════════════════════
   SAC DESIGN SYSTEM — Layout, Sidebar, Topbar
   ═══════════════════════════════════════════════════════ */

:root {
  --sac-sidebar-width: 240px;
  --sac-sidebar-collapsed-width: 64px;
  --sac-topbar-height: 56px;

  /* Sidebar */
  --sac-sidebar-bg: #1e293b;
  --sac-sidebar-border: rgba(255,255,255,0.07);
  --sac-sidebar-text: #94a3b8;
  --sac-sidebar-text-muted: #475569;
  --sac-sidebar-hover-bg: rgba(255,255,255,0.06);
  --sac-sidebar-active-bg: rgba(37,99,235,0.15);
  --sac-sidebar-active-text: #60a5fa;
  --sac-sidebar-accent: #2563eb;

  /* Topbar */
  --sac-topbar-bg: #ffffff;
  --sac-topbar-border: #e2e8f0;

  /* Content */
  --sac-content-bg: #f8fafc;

  /* Transition */
  --sac-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Design tokens — Data Dashboard */
  --grid-gap: 8px;
  --card-padding: 16px;
  --card-radius: 10px;
  --table-row-height: 36px;
  --positive-color: #22c55e;
  --negative-color: #ef4444;
  --neutral-color: #6b7280;
  --font-size-small: 12px;
}

/* ── #app wrapper ─────────────────────────────────────── */
#app {
  min-height: 100vh;
}

/* ── Main layout container ────────────────────────────── */
.sac-layout {
  display: flex;
  min-height: 100vh;
  background: var(--sac-content-bg);
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════ */
.sac-sidebar {
  width: var(--sac-sidebar-width);
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--sac-sidebar-bg);
  border-right: 1px solid var(--sac-sidebar-border);
  display: flex;
  flex-direction: column;
  transition: width var(--sac-transition);
  overflow: hidden;
  z-index: 200;
}

.sac-sidebar--collapsed {
  width: var(--sac-sidebar-collapsed-width);
}

/* ── Sidebar header/brand ─── */
.sac-sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  min-height: var(--sac-topbar-height);
  border-bottom: 1px solid var(--sac-sidebar-border);
  flex-shrink: 0;
  overflow: hidden;
  gap: 8px;
  position: relative;
}

.sac-sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.sac-brand-logo {
  width: 100%;
  max-width: 150px;
  height: auto;
  transition: max-width 0.2s ease;
}

.sac-sidebar--collapsed .sac-brand-logo {
  max-width: 34px;
}

.sac-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(37,99,235,0.12);
  color: #2563eb;
  font-size: 17px;
  flex-shrink: 0;
}

.sac-brand-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
  opacity: 1;
  transition: opacity var(--sac-transition);
}

.sac-brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.sac-brand-sub {
  font-size: 10px;
  color: var(--sac-sidebar-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.sac-collapse-btn {
  position: absolute;
  top: 10px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--sac-sidebar-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--sac-transition), color var(--sac-transition), opacity var(--sac-transition);
  padding: 0;
}

.sac-collapse-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
}

/* ── Collapsed state: hide text labels ─── */
.sac-sidebar--collapsed .sac-brand-text {
  display: none;
}

.sac-sidebar--collapsed .sac-collapse-btn {
  opacity: 0;
  pointer-events: none;
}

.sac-sidebar--collapsed .sac-nav-group-label {
  opacity: 0;
  pointer-events: none;
}

.sac-sidebar--collapsed .sac-nav-item span {
  opacity: 0;
  pointer-events: none;
  width: 0;
  overflow: hidden;
}

.sac-sidebar--collapsed .sac-nav-item {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

/* Tooltip on collapsed items */
.sac-sidebar--collapsed .sac-nav-item {
  position: relative;
}

.sac-sidebar--collapsed .sac-nav-item:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(var(--sac-sidebar-collapsed-width) + 6px);
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 300;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

/* ── Sidebar navigation ─── */
.sac-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 16px;
}

.sac-sidebar-nav::-webkit-scrollbar {
  width: 3px;
}
.sac-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

.sac-nav-group {
  padding: 0 8px;
  margin-bottom: 2px;
}

.sac-nav-group-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sac-sidebar-text-muted);
  padding: 10px 8px 3px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--sac-transition);
}

.sac-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--sac-sidebar-text);
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--sac-transition), color var(--sac-transition);
  margin-bottom: 1px;
  overflow: hidden;
  position: relative;
}

.sac-nav-item i {
  font-size: 15px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  line-height: 1;
}

.sac-nav-item:hover {
  background: var(--sac-sidebar-hover-bg);
  color: #cbd5e1;
  text-decoration: none !important;
}

.sac-nav-item.active {
  background: var(--sac-sidebar-active-bg);
  color: var(--sac-sidebar-active-text);
  font-weight: 600;
}

.sac-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sac-sidebar-accent);
}

/* ── Mobile overlay ─── */
.sac-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  backdrop-filter: blur(2px);
}

.sac-sidebar-overlay.active {
  display: block;
}

/* ═══════════════════════════════════════════════════════
   MAIN AREA
   ═══════════════════════════════════════════════════════ */
.sac-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════════════════════ */
.sac-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--sac-topbar-height);
  background: var(--sac-topbar-bg);
  border-bottom: 1px solid var(--sac-topbar-border);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px 0 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.sac-topbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
  padding: 0;
}

.sac-topbar-toggle:hover {
  background: #f1f5f9;
  color: #334155;
}

.sac-company-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sac-company-badge i {
  font-size: 12px;
  flex-shrink: 0;
}

.sac-year-label {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

.sac-year-select-input.form-select {
  width: auto;
  min-width: 78px;
  font-size: 12.5px;
  border-radius: 7px;
  border-color: #e2e8f0;
  color: #334155;
  padding-top: 4px;
  padding-bottom: 4px;
  background-color: #fff;
}

.sac-topbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  transition: background 0.18s, color 0.18s;
  padding: 0;
}

.sac-topbar-btn:hover {
  background: #f1f5f9;
  color: #334155;
}

.sac-notif-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  background: #ef4444;
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.sac-notif-dropdown {
  width: 310px;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px 0;
}

/* User button */
.sac-user-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s;
  color: #334155;
  white-space: nowrap;
}

.sac-user-btn:hover {
  background: #f1f5f9;
}

.sac-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sac-sidebar-bg);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.sac-user-name {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}

.sac-user-chevron {
  font-size: 10px;
  color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════
   PAGE CONTENT
   ═══════════════════════════════════════════════════════ */
.sac-content {
  flex: 1;
  padding: 24px;
  min-height: 0;
}

/* ═══════════════════════════════════════════════════════
   PUBLIC LAYOUT (login, etc.)
   ═══════════════════════════════════════════════════════ */
.sac-layout--public {
  display: block;
  background: #f8fafc;
}

.sac-main--public {
  min-height: 100vh;
}

.sac-content--public {
  min-height: 100vh;
  padding: 0;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 992px) {
  .sac-sidebar {
    position: fixed;
    height: 100vh;
    width: var(--sac-sidebar-width) !important;
    transform: translateX(-100%);
    transition: transform var(--sac-transition);
  }

  .sac-sidebar--mobile-open {
    transform: translateX(0);
  }

  .sac-topbar {
    padding: 0 16px;
  }

  .sac-content {
    padding: 16px;
  }
}

@media (min-width: 993px) {
  .sac-sidebar {
    transform: none !important;
  }
}
/* ── END SAC DESIGN SYSTEM ──────────────────────────── */

/* ═══════════════════════════════════════════════════════
   PAGE TOOLBAR — Barra de herramientas estándar
   ═══════════════════════════════════════════════════════ */
.page-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
}

.page-toolbar-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.page-toolbar-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
}

.page-toolbar-search-input {
  padding-left: 32px;
  border-radius: 7px;
  border-color: #e2e8f0;
  font-size: 13.5px;
  height: 36px;
  background: #f8fafc;
}

.page-toolbar-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: #fff;
}

/* ── TABLE AVATAR ─────────────────────────────────────── */
.table-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}



/* ═══════════════════════════════════════════════════════
   KPI CARDS — Dashboard
   ═══════════════════════════════════════════════════════ */
.kpi-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  height: 100%;
}

.kpi-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  font-size: 22px;
  flex-shrink: 0;
}

.kpi-icon--blue  { background: #eff6ff; color: #3b82f6; }
.kpi-icon--red   { background: #fef2f2; color: #ef4444; }
.kpi-icon--green { background: #f0fdf4; color: #22c55e; }
.kpi-icon--amber { background: #fffbeb; color: #f59e0b; }

.kpi-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.kpi-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════
   PAGE HEADER — Títulos de página consistentes
   ═══════════════════════════════════════════════════════ */
.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1,
.page-header .page-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 2px;
}

.page-header .page-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

/* ── Card refinements ─────────────────────────────────── */
.card {
  border-color: #e2e8f0;
  border-radius: var(--card-radius);
}

.card-header {
  background-color: #fff;
  border-bottom-color: #e2e8f0;
  font-weight: 600;
  font-size: 13.5px;
  color: #334155;
  border-radius: var(--card-radius) var(--card-radius) 0 0 !important;
}

/* ═══════════════════════════════════════════════════════
   LOADING STATES — Skeleton + Spinner (HIGH severity UX)
   ═══════════════════════════════════════════════════════ */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: #e2e8f0;
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 3px;
}

.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-text.w-33 { width: 33%; }

.skeleton-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--card-radius);
  padding: var(--card-padding);
}

.skeleton-kpi {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--card-radius);
}

.skeleton-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  flex-shrink: 0;
}

.spinner-sac {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

.spinner-sac--sm {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

/* Overlay de carga sobre contenedor */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  z-index: 10;
  backdrop-filter: blur(1px);
}

/* ═══════════════════════════════════════════════════════
   FOCUS STATES — Keyboard navigation (CRITICAL a11y)
   ═══════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

.sac-nav-item:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

/* ═══════════════════════════════════════════════════════
   CURSOR POINTER — Checklist del plugin
   ═══════════════════════════════════════════════════════ */
.sac-nav-item,
.sac-topbar-btn,
.sac-topbar-toggle,
.sac-collapse-btn,
.sac-user-btn,
.kpi-card[data-href],
[role="button"],
label[for],
.dropdown-toggle,
.btn,
select {
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════
   TABLES — Consistent row height + hover
   ═══════════════════════════════════════════════════════ */
.table > tbody > tr > td,
.table > thead > tr > th {
  height: var(--table-row-height);
  vertical-align: middle;
  font-size: 13.5px;
  padding: 6px 12px;
}

.table > thead > tr > th {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.table > tbody > tr:hover > td {
  background-color: #f8fafc;
}

.table-bordered {
  border-color: #e2e8f0;
}

/* ═══════════════════════════════════════════════════════
   DELTA INDICATORS — Positive / Negative values
   ═══════════════════════════════════════════════════════ */
.delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

.delta--up {
  color: var(--positive-color);
  background: rgba(34,197,94,0.1);
}

.delta--down {
  color: var(--negative-color);
  background: rgba(239,68,68,0.1);
}

.delta--neutral {
  color: var(--neutral-color);
  background: rgba(107,114,128,0.1);
}

/* ═══════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION — Plugin checklist
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Drawer de gestión de empresa (panel Super Admin) ── */
.emp-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 60, 0.28);
  z-index: 1030; /* por debajo del modal de Bootstrap (1055) y su backdrop (1050) */
  display: flex;
  justify-content: flex-end;
}
.emp-drawer {
  width: 60%;
  max-width: 720px;
  height: 100%;
  background: #fff;
  box-shadow: -14px 0 40px rgba(20, 30, 60, 0.12);
  display: flex;
  flex-direction: column;
  animation: emp-drawer-in 0.18s ease-out;
}
@keyframes emp-drawer-in {
  from { transform: translateX(24px); opacity: 0.6; }
  to   { transform: translateX(0);    opacity: 1; }
}
.emp-drawer__head {
  padding: 18px 22px;
  border-bottom: 1px solid #eef1f6;
}
.emp-drawer__tabs {
  border-bottom: 1px solid #eef1f6;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.emp-drawer__body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1 1 auto;
}
@media (max-width: 768px) {
  .emp-drawer { width: 100%; max-width: none; }
}


