 /* ************** SISTEMA PRELOAD INICIO ********************* */
 
 /* #preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .loader-container {
    text-align: center;
    width: 250px;
  }
  
  .logo-preload {
    width: 180px;
    margin-bottom: 25px;
    animation: fadeLogo 2s ease-in-out infinite;
  }
  
  .progress-text {
    font-size: 16px;
    margin-bottom: 8px;
    color: #c5001e; 
    font-weight: bold;
  }
  
  .progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f1f1f1;
    border-radius: 5px;
    overflow: hidden;
  }
  
  .progress-fill {
    height: 100%;
    width: 0%;
    background-color: #c5001e;
    border-radius: 5px;
    transition: width 0.2s ease;
  }
  
  @keyframes fadeLogo {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
  }
   */

 /* ************** SISTEMA PRELOAD FIN ********************* */

/* Botón estilo ventana */
.styled-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 5px 10px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.styled-close:hover {
  color: #fff;
}

/*CURSOR EN VENTANA EMPRESA*/
.my-custom-scrollbar {
position: relative;
height: 200px;
overflow: auto;
}

/*.tbl_data{

}*/
.tbl_data thead{
	background: linear-gradient(to bottom, #47A7DE 0%, #3c8dbc 87%, #2F6F94 91%, #2F6F94 100%);
	color: #FFF;	
}
.tbl_FondoCabecera thead{
	background: linear-gradient(to bottom, #47A7DE 0%, #3c8dbc 87%, #2F6F94 91%, #2F6F94 100%);
	color: #FFF;
	width: auto;	
}

.btn_texto{
	color: #FFF;
}
.tbl_fila_fondo{
	background: #f4f4f4;
	font-size: 8px;
	margin: 15px 0px;
	padding: 5px;
}

table.dataTable tbody tr.selected {
    /*    background-color: #B0BED9 !important;*/
    background-color: #3c8dbc !important;
    color: white;
}

table.dataTable tbody tr:hover td {
    /*    background-color: #B0BED9 !important;*/
    background-color: #3c8dbc  !important;
    color: white;
}


label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: normal !important;
}

.success:focus{
	border:1px solid #00a65a !important;
	box-shadow:0 0 3px #00a65a;
}
/* .error:focus{
	border:1px solid #dd4b39 !important;
	box-shadow:0 0 3px #dd4b39;
} */
.input-money{
	text-align: right;
}
td.highlight {
	color: rgb(199, 0, 0);
}

.tblComprobanteItem > tbody > tr > td{
	padding: 1px;
}

.tblComprobanteItem input{
	padding: 0px 6px;
	height: 32px !important;
}

.table th, table td {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Estilo los titulos de la tabla */
.table > thead > tr > th{
	font-size: 12px;
}

.table > tbody > tr > td{
	padding: 2px 2px;
	/* color: dimgrey;  */
	font-size: 12px;
}

.fila-activa {
    background-color: #c9f7ff !important; /* Azul claro */
    transition: background-color 0.3s ease;
}

/* Estilo para la fila seleccionada */
.tblComprobanteItem tr.selected {
	background-color: #c9f7ff;
}

/* Estilo para la fila seleccionada */
.tblComprobanteItemSalida tr.selected {
	background-color: #c9f7ff;
}

/* Estilo para la fila seleccionada */
.tblOrdenVentaItemSalida tr.selected {
	background-color: #c9f7ff;
}

.colBonificacion {
	display: none;
}

form, 
form input, 
form select, 
form textarea, 
form button {
    font-size: 12px; /* Ajusta el tamaño */
}
.select2-container .select2-selection--single {
    font-size: 12px; /* Ajusta el tamaño del texto */
}
.select2-container .select2-selection--single {
    height: 28px; /* Ajusta la altura */
    line-height: 28px; /* Centrar el texto */
}

.select2-container .select2-selection__rendered {
    line-height: 28px !important; /* Centrar el texto */
}

.select2-container .select2-selection__arrow {
    height: 26px !important; /* Ajusta el tamaño del ícono de flecha */
}

.select2-container--default .select2-selection--single,
.select2-container--classic .select2-selection--single {
    position: relative;
}

.select2-container--default .select2-selection--single .select2-selection__clear,
.select2-container--classic .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    right: 18px !important;
    top: 0 !important;
    float: none !important;
    margin: 0 !important;
    height: 26px;
    width: 16px;
    line-height: 26px;
    font-size: 14px;
    text-align: center;
    z-index: 1;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--classic .select2-selection--single .select2-selection__rendered {
    padding-right: 36px !important;
}

.select2-dropdown{
    font-size: 12px; /* Ajusta el tamaño de texto en el dropdown */
}

/* Clase para resaltar el <td> cuando hay error */
.td-error{
    background-color: rgba(255, 196, 0, 0.61) !important; /* Rojo suave */
    transition: background-color 0.3s ease-in-out;
}

/* Clase para indicar error en los selects */
.input-error{
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.65);
    transition: box-shadow 0.3s ease-in-out;
}

.select2-container.input-error .select2-selection,
.select2-container--default.input-error .select2-selection--single,
.select2-container--default.input-error .select2-selection--multiple {
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.65);
}

#tblCuerpo select{
    height: 28px !important;
    padding: 2px 5px !important;
    font-size: 12px !important;	
}

input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"], 
input[type="tel"], 
input[type="date"], 
input[type="submit"], 
input[type="search"] {
    height: 28px !important;
    padding: 2px 5px !important;
    font-size: 12px !important;
}
.input-group-addon, textarea{
    font-size: 12px !important; /* Ajusta el tamaño label del form */
}

.modal-header{	
	height: 40px !important; /* Ajusta el tamaño header del model */
}
.modal-title{
	line-height: 0.5 !important;
	font-size: 16px !important; /* Ajusta el tamaño header del model */
}



/* CONFIGURACIONES TABLAS CATALOGO PRECIOS  */
.my-custom-scrollbar {
  position: relative;
  height: 200px;
  overflow-y: auto;
}

.table-wrapper-scroll-y {
  display: block;
}

.table-fixed-header {
  border-collapse: collapse;
  width: 100%;
}

.table-fixed-header thead {
  position: sticky;
  top: 0;
  background: #f9f9f9;
  z-index: 2;
}

/* Aumenta la altura de las filas */
.tbl_seleccion tbody tr {
  height: 27px;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

/* Centra horizontalmente el texto */
.tbl_seleccion tbody td {
  vertical-align: middle;
}

/* Color de fondo al hacer clic (fila seleccionada) */
.tbl_seleccion tbody tr.fila-seleccionada {
  background-color: #d1ecf1;
}

/* Centrar Modal de Facturación */
/* PRELOAD Facturación */
#preloadModal .modal-dialog {
  margin: 0 auto;        /* centrar horizontal */
  margin-top: 30vh;      /* 30% de la altura de la pantalla */
  max-width: 400px;      /* ancho máximo */
}

#preloadModal .modal-content {
  border-radius: 12px;
  width: 100%;
  max-width: 400px; /* ancho fijo elegante */
}


/* CSS (para que se vea como POS / sistema de ventas) */
#puntoDeVentaBoton .btn-panel {
  padding: 5px;
}

#puntoDeVentaBoton .btn-app {
  width: 100%;
  height: 70px;
  margin: 2px 0;
  font-size: 13px;
  line-height: 1.2;
}

#puntoDeVentaBoton .btn-app i {
  font-size: 26px;
  margin-bottom: 5px;
}

/* CLASIFICACIÓN */
#treeview_json .node-selected {
    background-color: #1f6f9f !important;
    color: #ffffff !important;
}

#treeview_json .node-selected span,
#treeview_json .node-selected i {
    color: #ffffff !important;
}



/* CODIGO TABLA PUNTO DE VENTA  */
#tblComprobanteItem{
    width:100%;
    table-layout:fixed;
    margin:0;
}

#tblComprobanteItem th,
#tblComprobanteItem td{
    padding:2px;
    vertical-align:middle;
    overflow:hidden;
}

#tblComprobanteItem input,
#tblComprobanteItem select{
    width:100% !important;
}

#tblComprobanteItem .select2-container{
    width:100% !important;
}

#tblComprobanteItem td:nth-child(2){
    white-space:nowrap;
}






.cardVendedor{

    border:1px solid #e4e4e4;

    border-radius:8px;

    padding:10px;

    margin-bottom:12px;

    transition:.2s;

    cursor:pointer;

}

.cardVendedor:hover{

    transform:scale(1.02);

    box-shadow:0 3px 12px rgba(0,0,0,.15);

}

.cardVendedor img{

    width:70px;

    height:70px;

    border-radius:50%;

    border:3px solid #ddd;

}

.cardVendedor h4{

    margin-top:0;

    margin-bottom:4px;

}

.modal.erp-solo-lectura .modal-body input:not([type=hidden]),
.modal.erp-solo-lectura .modal-body select,
.modal.erp-solo-lectura .modal-body textarea,
.modal.erp-solo-lectura .modal-body .btn:not([data-dismiss]),
.modal.erp-solo-lectura .modal-body button:not([data-dismiss]),
.modal.erp-solo-lectura .modal-body .select2-container {
  pointer-events: none;
}

.modal.erp-solo-lectura .pv-modal-actions,
.modal.erp-solo-lectura button[type=submit],
.modal.erp-solo-lectura input[type=submit],
.modal.erp-solo-lectura button[name^="btnGuardar"],
.modal.erp-solo-lectura button[name="btnModificar"] {
  display: none !important;
}

.erp-btn-sin-permiso {
  opacity: 0.45 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

.erp-solo-lectura-tag {
  color: #8a9aa8;
  font-weight: normal;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- Mensajes de error / aviso (#mensajeError) ---------- */
.cv-msg,
#mensajeError.cv-msg {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 11px 12px 11px 14px;
  border-radius: 8px;
  line-height: 1.35;
  box-shadow: none;
}

.cv-msg.is-open,
#mensajeError.cv-msg.is-open {
  display: flex;
  animation: cvMsgIn 0.18s ease-out;
}

@keyframes cvMsgIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.cv-msg-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.cv-msg-body {
  flex: 1 1 auto;
  min-width: 0;
}

.cv-msg-title,
.cv-msg h4.cv-msg-title,
#mensajeError h4.cv-msg-title {
  display: block;
  margin: 0 0 2px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.cv-msg p,
#mensajeError.cv-msg p {
  margin: 0;
  font-size: 13px;
}

.cv-msg-close {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 2px -2px 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cv-msg-close:hover,
.cv-msg-close:focus {
  opacity: 1;
  outline: none;
}

#mensajeError.cv-msg-error,
.cv-msg-error,
.cv-msg.alert-danger {
  background: #fdf4f4;
  border: 1px solid #e3a3a3;
  border-left: 3px solid #c94a4a;
  box-shadow: 0 1px 2px rgba(201, 74, 74, 0.16);
  color: #6b2a2a;
}

.cv-msg-error .cv-msg-icon,
.cv-msg.alert-danger .cv-msg-icon {
  background: #f8dede;
  color: #c94a4a;
}

.cv-msg-error .cv-msg-title,
.cv-msg.alert-danger .cv-msg-title {
  color: #8a3030;
}

/* Éxito: mismos tonos que “caja abierta” (gana a AdminLTE .alert-success !important) */
.cv-msg.alert-success,
#mensajeError.cv-msg.alert-success {
  background: #e8f6ee !important;
  border: 1px solid #c3e6cb !important;
  border-left: 3px solid #1e7e34 !important;
  box-shadow: none;
  color: #1e7e34 !important;
}

.cv-msg.alert-success .cv-msg-icon {
  background: #c8ebd6 !important;
  color: #1e7e34 !important;
}

.cv-msg.alert-success .cv-msg-title,
.cv-msg.alert-success .cv-msg-body,
.cv-msg.alert-success .cv-msg-body p,
.cv-msg.alert-success h4,
#mensajeError.cv-msg.alert-success h4,
#mensajeError.cv-msg.alert-success p {
  color: #1e7e34 !important;
}

.cv-msg.alert-success .cv-msg-close {
  color: #1e7e34 !important;
}

.cv-msg.alert-success .cv-msg-icon i:before {
  content: "\f058";
}

.cv-msg.alert-warning,
#mensajeError.cv-msg.alert-warning {
  background: #fdf8ee;
  border: 1px solid #e3c48a;
  border-left: 3px solid #c9890f;
  box-shadow: 0 1px 2px rgba(201, 137, 15, 0.16);
  color: #6b4e12;
}

.cv-msg.alert-warning .cv-msg-icon {
  background: #f6e7c8;
  color: #c9890f;
}

.cv-msg.alert-warning .cv-msg-title {
  color: #6b4e12;
}

.cv-msg.alert-warning .cv-msg-icon i:before {
  content: "\f071";
}

.cv-msg.alert-info,
#mensajeError.cv-msg.alert-info {
  background: #eef5fa;
  border: 1px solid #9dc0d6;
  border-left: 3px solid #1f6f9f;
  box-shadow: 0 1px 2px rgba(31, 111, 159, 0.16);
  color: #1b4d6b;
}

.cv-msg.alert-info .cv-msg-icon {
  background: #d7e8f3;
  color: #1f6f9f;
}

.cv-msg.alert-info .cv-msg-title {
  color: #165a82;
}

.cv-msg.alert-info .cv-msg-icon i:before {
  content: "\f05a";
}

.cv-alert-wrap .cv-msg,
.pv-alert-wrap .cv-msg,
.box-footer .cv-msg {
  margin-top: 0;
}

/* ---------- Alertify confirm / alert ---------- */
.alertify,
.alertify .ajs-dimmer,
.alertify .ajs-modal {
  z-index: 20000 !important;
}

.alertify .ajs-dialog {
  border-radius: 8px;
  overflow: hidden;
}

.alertify .ajs-header {
  padding: 12px 16px;
  font-size: 16px;
}

.alertify .ajs-body .ajs-content {
  padding: 14px 8px 8px;
}

.ajs-confirm-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  line-height: 1.45;
}

.ajs-confirm-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.ajs-confirm-danger .ajs-confirm-icon {
  background: #f8dede;
  color: #c94a4a;
}

.ajs-confirm-warning .ajs-confirm-icon {
  background: #fff3cd;
  color: #c79100;
}

.ajs-confirm-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  color: #333;
  text-align: left;
}

.ajs-confirm-text p {
  margin: 0 0 8px;
}

.ajs-confirm-text ul {
  margin: 0 0 8px;
  padding-left: 18px;
}

.ajs-confirm-lead {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
  color: #6b2a2a;
}

.ajs-confirm-warning .ajs-confirm-lead {
  color: #7a5b00;
}

.ajs-stock-table {
  width: 100%;
  margin: 4px 0 10px;
  border-collapse: collapse;
  font-size: 13px;
}

.ajs-stock-table th,
.ajs-stock-table td {
  padding: 5px 8px 5px 0;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.ajs-stock-table th:last-child,
.ajs-stock-table td:last-child,
.ajs-stock-table th:nth-child(2),
.ajs-stock-table td:nth-child(2) {
  text-align: right;
  white-space: nowrap;
  padding-right: 0;
}

.ajs-stock-note {
  margin: 0 !important;
  color: #666;
  font-size: 13px;
}

.alertify .ajs-footer .ajs-buttons .ajs-button {
  min-width: 96px;
  padding: 7px 16px;
  margin-left: 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  outline: none !important;
  box-shadow: none !important;
  text-transform: none;
  font-weight: 600;
}

.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok {
  background: #3c8dbc;
  color: #fff;
  border-color: #3c8dbc;
}

.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok:hover {
  background: #367fa9;
  border-color: #367fa9;
  color: #fff;
}

.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-cancel {
  background: #fff;
  color: #444;
  border-color: #d0d5dd;
}

.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-cancel:hover {
  background: #f5f6f8;
  color: #222;
}

.pv-cc-pedidos-grid table.dataTable tbody tr.cv-row-parcial td,
.pv-cc-pedidos-grid table.dataTable tbody tr.cv-row-parcial:hover td,
.pv-cc-pedidos-grid table.dataTable tbody tr.cv-row-parcial.selected td,
.pv-cc-pedidos-grid table.dataTable tbody tr.cv-row-parcial.selected:hover td {
  color: #b23a6a !important;
}

