:root{
  --main-color: #FF007F;
  --secondary-color: #00CCFF;
  --loltec-dark: #0f172a;
  --loltec-border: #e2e8f0;
  --loltec-radius: 12px;
}

@font-face{
  font-family: 'BARCODE_NUMERIC';
  src: url('LibreBarcodeEAN13Text-Regular.ttf');
}

@font-face{
  font-family: 'BARCODE_ALFANUMERIC';
  src: url('CODE3-9.ttf');
}

.barcode_numeric{
  font-family: 'BARCODE_NUMERIC';
}

.barcode_alfanumeric{
  font-family: 'BARCODE_ALFANUMERIC';
}

* {
  padding: 0px;
  margin: 0px;
}

.shadow-1{
  box-shadow: 0 0 20px 0 rgba(0,0,0,0.05) !important;
}

.shadow-2{
  box-shadow: 0 2px 15px -3px rgba(0,0,0,0.07),
           0 10px 20px -2px rgba(0,0,0,0.04) !important;
}

html,
body {  
  font-size: 13px;
  height: 100%;
  padding: 0px;
  margin: 0px;
  /*EVITAR QUE AL HACER SCROLL CON LA TABLET SE ACTUALICE LA PAGINA*/
  overscroll-behavior: contain;
}

table td,table th{
  font-size: 10px !important;
}

.table-xs td,.table-xs th{
  font-size: 9px !important;
}

.table-hover tbody tr{
  cursor: pointer;
}

input,select,textarea{
  font-size: 13px;
}

/* Ejemplo con azul corporativo del logo */
.modal-backdrop.show {
  background-color: rgba(0, 102, 204, 0.22); /* azul tech */
  box-shadow: none !important;
}

.modal-body > div{
  background-color: #fff !important;
}

.nav-tabs .nav-link{
  font-size: 10px !important;
  padding:10px 10px;
  margin-bottom: 2px;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, rgba(0, 204, 255, 0.12), rgba(255, 0, 127, 0.08));
  border-color: var(--loltec-border) var(--loltec-border) #fff;
  color: var(--loltec-dark);
  font-weight: 600;
}

.nav-tabs .nav-link:hover:not(.active) {
  border-color: transparent;
  background: rgba(0, 204, 255, 0.06);
}

.bootstrap-tagsinput{
  width:100% !important;
}

.ck.ck-editor__editable_inline {
    height: 400px !important;
}

.obligado{
  color: #EE4436;
}

.note-editable { 
  background-color: white !important;   
}

.note-btn{
  color: #000 !important;
  background-color: #FFF !important;
}

.arrow-select{
  position: absolute;
  right:-1px;
  top:0px;
  bottom:0px;
  pointer-events: none;
  background-color: #FFF;
}

table th{
  font-weight: bolder !important;
  font-weight: bold !important;
}

.table{
  background-color:#FFF;
}

.thead-sticky{	
	overflow-y:auto;
}

.thead-sticky table{
	border-collapse: collapse;
}

.thead-sticky table thead{
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 0;
	z-index: 1;
	background-color:#FAFAFA;
	border-bottom:1px solid #E9EFFA;
}

.thead-sticky table thead th{
	border-top:1px solid #E9EFFA;
	border-left:0px;
	border-right:0px;
}

.btn-success:not(table *){
  cursor: pointer;
  background: var(--main-color);
  color: #FFF;
  border: 1px solid var(--main-color);
}

.btn-success:not(table *):hover,
.btn-success:not(table *):focus,
.btn-success:not(table *):active{
  background: var(--main-color);
  border: 1px solid var(--main-color);
  box-shadow: 0 4px 14px rgba(255, 0, 127, 0.35);
}

.btn-info:not(table *) {
  background: linear-gradient(135deg, var(--secondary-color), #00a8d4);
  border: 1px solid var(--secondary-color);
  color: #fff;
}

.btn-info:not(table *):hover,
.btn-info:not(table *):focus,
.btn-info:not(table *):active {
  background: #00a8d4;
  border-color: #00a8d4;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 204, 255, 0.35);
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 204, 255, 0.15);
}

.btn-xs{  
  padding:1px 8px;
  font-size: 11px !important;
}

.input-group-prepend{
  z-index: 0;
}

.input-group-prepend .btn{
  padding-left:15px;
  padding-right:15px;
}

.input-group-prepend .btn,
.input-group-prepend select{
  height:100%;
  box-shadow:0px 0px 0px !important;
}

.responsive-iframe{
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.responsive-iframe iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hashtags{
  margin:1px;
  color:#666;
  background-color:#EEE;
  padding:2px 5px;
  border:1px solid #CCC;
}

.bg-success,
.bg-danger,
.bg-primary,
.bg-info{
  color:#FFF;
}

.tab-pane {
  padding: 15px 0px;
}

.fa-asterisk {
  color: red;
  font-size: 8px;
}

.consecutivo {  
  color: red;
  background-color: #E9EFFA;
}

.table{
  font-size:13px;
}

.table thead th {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  color: var(--loltec-dark);
  border-bottom: 2px solid var(--loltec-border) !important;
  font-weight: 600;
}

.links {
  color: var(--secondary-color);
  cursor: pointer;
  font-weight: 500;
}

.links:hover {
  text-decoration: underline;
}

.btn {
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:not(table *):hover {
  transform: translateY(-1px);
}

.busqueda_grilla .btn-new {
  /*box-shadow: 0px 0px 5px #666;*/
}

.btn-new {
  cursor: pointer;
  background: var(--main-color);
  color: #FFF;
  border: 1px solid var(--main-color);
}

.btn-new:hover {  
  color: #FFF;  
  opacity:0.8;
}

.grilla {
  margin-top: 10px;
  min-height: 200px;
}

label {
  margin: 0px;
  padding: 0px;
  display: inline-block;
}

select {
  color: #000;
}

textarea {
  resize: none;
}

.contenedor {
  max-width: 1200px;
  margin: auto;
  padding:0px 10px;
}

#contenedor {
  min-height: 100%;
  margin-bottom: -80px;
}

#contenedor:after {
  content: "";
  display: block;
  height: 80px;
}

footer {
  height: 80px;
}

.form-s {
  width: 100%;
  max-width: 400px;
}

.form-m {  
  width: 100%;
  max-width: 600px;
}

.form-l {  
  width: 100%;
  max-width: 800px;
}

.form-xl {  
  width: 100%;
  max-width: 950px;
}

.form-xxl {  
  width: 100%;
  max-width: 1200px;
}

/*ANCHO PARA EL SELECT2 Y SU DROPDOWN*/
.select2-container{
  width:100% !important;
}

.dropdown-s {
  width: 100% !important;
  max-width: 400px !important;
  font-size:12px;
}

.dropdown-m {  
  width: 100% !important;
  max-width: 600px !important;
  font-size:12px;
}

.dropdown-l {  
  width: 100% !important;
  max-width: 800px !important;
  font-size:12px;
}

.dropdown-xl {  
  width: 100% !important;
  max-width: 950px !important;
  font-size:12px;
}

.dropdown-xxl {  
  width: 100% !important;
  max-width: 1200px !important;
  font-size:12px;
}

.modal-dialog{
  border-radius: var(--loltec-radius);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12) !important;
}

.modal-content {
  border-radius: var(--loltec-radius);
  border: 1px solid var(--loltec-border);
  overflow: hidden;
}

.titulos-form {
  border-radius: 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--loltec-dark) 0%, #1e3a5f 50%, rgba(0, 204, 255, 0.85) 100%);
  color: #fff;
  border-bottom: none;
}

.titulos-form .modal-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.contenido-form {
  padding: 16px 18px;
}

.footer-form {
  margin-top: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--loltec-border);
  background: #f8fafc;
}

.dropdown ul {
  margin: 0px;
  padding: 0px;
}

.dropdown li {
  cursor: pointer;
  padding: 3px 8px;
  border-bottom: 1px solid #CCC;
}

.dropdown li:hover {
  background: rgba(57, 192, 237, 0.1);  
}

.dropdown-danger{
  color: #FFF;
  background-color: #F93154;
}

.dropdown-danger:hover{
  background-color: #F93154 !important;
}

.inline-block {
  font-size: 0px;
}

.inline-block > .inline-block {
  font-size: 0px;
  padding: 0px;
}

.inline-block > div,
.inline-block > li {
  font-size: 13px;
  display: inline-block;
}

.vertical-align-top > div,
.vertical-align-top > li {
  vertical-align: top;
}

.vertical-align-middle > div,
.vertical-align-middle > li {
  vertical-align: middle;
}

.vertical-align-bottom > div,
.vertical-align-bottom > li {
  vertical-align: bottom;
}

.tr-td-1,
.tr-td-2,
.tr-td-3 {
  padding: 5px;
}

.tr-td-1 {
  width: 100%;
}

.tr-td-2 {
  width: 50%;
}

.tr-td-3 {
  width: 33.33%;
}

form .col-md-12,
form .col-md-11,
form .col-md-10,
form .col-md-9,
form .col-md-8,
form .col-md-7,
form .col-md-6,
form .col-md-5,
form .col-md-4,
form .col-md-3,
form .col-md-2{
  margin-bottom: 10px;
}

[data-toggle="money"]{
  text-align: right;
}

#msj_php {
  display: none;
  z-index: 99999;
  position: fixed;
  top: 0px;
  right: 0px;
  width: 300px;
  padding: 8px 10px;
  box-shadow: 0px 0px 10px #666;
}

#msj_php i {
  margin-right: 3px;
}

.success {
  border: 1px solid #009E37;
  background-color: #009E37;
  color: #FFF;
}

.info {
  border: 1px solid #00A8EF;
  background-color: #00A8EF;
  color: #FFF;
}

.error {
  border: 1px solid #DD0024;
  background-color: #DD0024;
  color: #FFF;
}

#cargando,
#cargando_fact_elect {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

#cargando.loltec-loading-active,
#cargando_fact_elect.loltec-loading-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.loltec-loading-card {
  padding: 32px 40px;
  min-width: 200px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 24px 64px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(0, 204, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  transform: scale(0.92);
  animation: loltec-loading-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes loltec-loading-pop {
  to {
    transform: scale(1);
  }
}

.loltec-loading-spinner {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
}

.loltec-spinner-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(0, 204, 255, 0.12);
  border-top-color: #00CCFF;
  border-right-color: #FF007F;
  animation: loltec-spin 0.9s linear infinite;
}

.loltec-spinner-orbit-delay {
  inset: 10px;
  border-top-color: #FF007F;
  border-right-color: #00CCFF;
  animation: loltec-spin 0.7s linear infinite reverse;
}

.loltec-spinner-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00CCFF, #FF007F);
  box-shadow: 0 0 16px rgba(0, 204, 255, 0.55);
  animation: loltec-pulse 1.2s ease-in-out infinite;
}

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

@keyframes loltec-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.75;
  }
}

.loltec-loading-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #1e293b;
  text-transform: uppercase;
}

.paginado {
  display: block;
  width: 100%;
  text-align: center;
}

.pestanas {
  margin-bottom: 10px;
}

.pestanas > div {
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--loltec-border);
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.pestanas > div:hover {
  background: rgba(0, 204, 255, 0.08);
  border-color: var(--secondary-color);
}

.img_productos {
  height: 100px;
  width: 100px;
  margin-bottom: 2px;
  border: 1px solid #2A86BB;
}

/* Nuevos estilos */

.hide-if-no-ver-totales {
  display: none !important;
}