[class*="sidebar-dark-"] {
  background-color: #34495e !important;
}

/* table.dataTable tbody td {
  white-space: wrap !important;
  font-size: 15px !important;
} */

/* #tbl_productos thead th {
  white-space: nowrap !important;
} */

.addNewRecord {
  background-color: #34495e !important;
  color: white !important;
}

.buttons-excel {
  background-color: #0d6efd !important;
  color: white !important;
}

.buttons-print {
  background-color: #ffc107 !important;
  color: white !important;
}

.dt-button {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

#tbl_productos tbody tr td {
  padding: 3px !important;
}

.transparentbar {
  background-repeat: no-repeat;
  cursor: pointer;
  outline: none;
  border: none;
  box-shadow: none;
  background-image: none;
  background-color: transparent;
}

.btn-check:focus+.btn-primary,
.btn-primary:focus {
  color: #fff;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.transparentbar:hover {
  color: #fff;
  background-color: transparent !important;
  border-color: transparent !important;
}

/* div.dataTables_wrapper {
  width: 100%;
  margin: 0 auto;
} */

.card-gray {
  border: 1px solid gray;
}

.card-header {
  border-bottom: 1px solid gray;
}

.card-gray:not(.card-outline)>.card-header {
  background-color: #34495e !important;
}

#tbl_productos_mas_vendidos tbody tr td,
#tbl_productos_poco_stock tbody tr td {
  padding: 3px !important;
}

.small-box {
  border: 1px solid gray !important;
}

/* .card-header {
  padding: 0.4rem 1.25rem !important;
} */

.form-control,
select {
  border: 1px solid #34495e !important;
}

.input-group>.input-group-append>.btn,
.input-group>.input-group-append>.input-group-text,
.input-group>.input-group-prepend:first-child>.btn:not(:first-child),
.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),
.input-group>.input-group-prepend:not(:first-child)>.btn,
.input-group>.input-group-prepend:not(:first-child)>.input-group-text {
  border: 1px solid gray !important;
}

#tbl_productos.dataTable tbody td {
  vertical-align: middle;
  align-content: center;
}

.zoom:hover {
  transform: scale(3.2);
}

.tabledit-toolbar {
  width: 80px !important;
  text-align: center;
}

.select2-container--default .select2-selection--single {
  height: calc(1.9rem + 2px) !important;
  border: 1px solid #34495e !important;
  border-radius: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  margin-top: -7px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single {
  border: 1px solid gray !important;
}

#tbl_categorias .tabledit-toolbar {
  width: 100px !important;
  text-align: center;
}

.toggle.btn {
  min-width: 8.7rem !important;
  height: 35px !important;
}

.bg-main {
  background-color: #34495e !important;
  color: white !important;
}

.card-primary.card-outline-tabs>.card-header a.active {
  border-top: 3px solid #34495e;
}

/* select[readonly].select2 + .select2-container {
  pointer-events: none;
  touch-action: none;
} */

.readonly {
  pointer-events: none;
  touch-action: none;
  background-color: #e9ecef !important;
}

select[readonly] {
  pointer-events: none;
  touch-action: none;
  background-color: #e9ecef;
}

/* #tbl_series .tabledit-toolbar {
  width: 100px !important;
  text-align: center;
} */

.table td,
.table th {
  border-top: 0px solid #dee2e6;
}

.nav-link {
  color: gray;
}

.card-primary.card-outline-tabs>.card-header a.active {
  background: #34495e !important;
  color: white !important;
}

td {
  padding: 5px !important;
}

.content-header h2 {
  font-size: 27px !important;
}

.content-header {
  padding-top: 10px !important;
  padding-bottom: 5px !important;
}

.login-box,
.register-box {
  width: 350px !important;
}

/* .tabledit-span {
  text-wrap: pretty !important;
} */

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: white !important;
  background-color: #34495e !important;
}

/* #tbl_productos tbody td {
  text-wrap: pretty !important;
} */

/* .dropdown-toggle::after {
  visibility: hidden !important;
} */

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}



.my-bg {
  background: #34495e !important;
}

.my-color {
  color: #34495e !important;
}

.btn-info {
  color: #fff !important;
  border-color: #34495e !important;
  background-color: #34495e !important;
}

.btn-info:hover {
  color: #fff !important;
  background-color: #34495e;
  border-color: #17a2b8;
}

.info {
  color: #34495e !important;
}

/* .btn {
  border-radius: 50rem !important;
} */

.icon-btn-success {
  width: 41px;
  height: 30px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateX(3%) translateY(-51%);
  background-color: #1e7e34;
  border-color: #1e7e34;
  color: white;
}

.icon-btn-danger {
  width: 41px;
  height: 30px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateX(3%) translateY(-51%);
  background-color: #c82333;
  border-color: #bd2130;
  color: white;
}

.icon-btn-primary {
  width: 41px;
  height: 30px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateX(3%) translateY(-51%);
  background-color: #34495e;
  border-color: #34495e;
  color: white;
}

.icon-btn-warning {
  width: 41px;
  height: 30px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateX(3%) translateY(-51%);
  background-color: #ffc107;
  border-color: #ffc107;
  color: white;
}

.icon-btn-secondary {
  width: 41px;
  height: 30px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateX(3%) translateY(-51%);
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

.icon-btn-custom {
  width: 41px;
  height: 30px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateX(3%) translateY(-51%);
  background-color: #34495e !important;
  border-color: #34495e !important;
  color: white;
}

.icon-btn-danger:hover {
  background-color: #c82333 !important;
  border-color: #c82333 !important;
  color: white;
}

.icon-btn-success:hover {
  background-color: #1e7e34 !important;
  border-color: #1e7e34 !important;
  color: white;
  |
}

.icon-btn-custom:hover {
  background-color: #34495e !important;
  border-color: #34495e !important;
  color: white;
}

.btn-info:hover {
  background-color: #34495e !important;
}

.text-button {
  margin-right: 30px !important;
}


table.dataTable thead tr>.dtfc-fixed-left,
table.dataTable thead tr>.dtfc-fixed-right,
table.dataTable tfoot tr>.dtfc-fixed-left,
table.dataTable tfoot tr>.dtfc-fixed-right {
  background-color: #34495e;
  color: yellow;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  color: #fff !important;
  background: #34495e;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.2em 1em !important;
  border-radius: 8px !important;
}


.input-group-text {
  /* border-top-left-radius: 20px !important;
  border-bottom-left-radius: 20px !important; */

  border: 1px solid black !important;
  background-color: #34495e !important;
  color: white !important;
}

.input-group {
  margin-bottom: 0px !important;
}

.form-control-sm {
  padding: 0.25rem 0.9rem !important;
  line-height: 3.5 !important;
  border-radius: 10px !important;
}

.my-text-color {
  color: #34495e !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: -1px !important;
}

/* .select2-selection__rendered{
  font-size: smaller !important;
} */

/* *, ::after, ::before {
  font-size: small !important;
} */

.form-select {
  height: 31px !important;
  font-size: 13px !important;
  line-height: 0.8;
  border-radius: 10px !important;
}

input[type=search] {
  border-radius: 8px !important;
  padding: 0.25rem 0.9rem !important;
  background-color: white !important;
}

/* .buttons-page-length,
.buttons-excel,
.buttons-print {
  border-radius: 8px !important;
} */

.dt-button.bg-danger {
  border-radius: 8px !important;
}

/* .addNewRecord {
  border-radius: 8px !important;
} */

input[type="file"] {
  /* padding: 0.10rem 0.5rem !important ;
  line-height: 1.5px; */
  /* border-radius: 8px; */
  /* line-height: 3.5px;  */
  padding-top: 4px;
  font-size: 13px;
  height: calc(1.8125rem + 2px);
}

.invalid-feedback {
  margin-top: 0px !important;
}

td {
  white-space: nowrap !important;
}

.dropdown-toggle::after {
  margin: 0 !important;
}

.dropdown-menu {
  overflow: overlay !important;
  overflow-x: overlay !important;
  overflow-y: overlay !important;
}


/* table.dataTable thead th {
    white-space: nowrap !important
  } */



.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333333;
  transition: opacity 0.75s, visibility 0.75s;
}


.checkbox-resumenes {
  width: 20px;
  height: 20px;
}

.text-cell-wrap {
  color: #bd2130 !important;
}

/* #tbl_boletas_wrapper .dataTables_scrollBody {
    overflow: visible !important;
    text-wrap: wrap !important;
 } */


/* 


 .table-responsive,
 .dataTables_scrollBody {
     overflow: visible !important;
 }
 
 .table-responsive-disabled .dataTables_scrollBody {
   overflow: hidden !important; 
  } */

/* .table-scrollable {
    width: 100%;
  
    border: 1px solid #dddddd;
    margin: 10px 0 !important;
  } */

/* .table-scrollable { 
    overflow-x: visible; 
    overflow-y: visible; 
} */

/* .dataTables_scrollHead{
  overflow: visible !important;
} */

/* table .dropdown-menu {
  position: fixed !important;
  top: 20% !important;
  left: 32% !important;
  transform: translate(-92%, -50%) !important;
} */

/* .dataTables_scrollHead{
  position: static !important;
} */
/* 
div.dataTables_scrollHead {
  height: 250px;
}
div.dataTables_scrollBody {
margin-top: -190px;
} */

/* .dataTables_scrollBody{
  position: static !important;
} */
/* 
.ui-autocomplete{
  width: 75% !important;
} */

.ui-autocomplete {
  z-index: 2147483647;
}

.dataTables_scrollBody thead tr {
  visibility: collapse !important;
}

/* Absolute Center Spinner */
.loading {
  position: fixed;
  z-index: 999;
  height: 2em;
  width: 2em;
  overflow: show;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.loading:before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));
  background: -webkit-radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
  /* hide "loading..." text */
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.loading:not(:required):after {
  content: '';
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  -webkit-animation: spinner 150ms infinite linear;
  -moz-animation: spinner 150ms infinite linear;
  -ms-animation: spinner 150ms infinite linear;
  -o-animation: spinner 150ms infinite linear;
  animation: spinner 150ms infinite linear;
  border-radius: 0.5em;
  -webkit-box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
  box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
}

/* Animation */

@-webkit-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-moz-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-o-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

#loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.spinner {
  border: 8px solid #f3f3f3;
  /* Gris claro */
  border-top: 8px solid #3498db;
  /* Azul */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.my-disabled {
  background-color: rgba(1, 3, 19, 0.315);
  pointer-events: none;
}


.select2-selection--multiple {
  border: 1px solid black !important;
  border-radius: 8px !important;
  height: 30px !important;
}

.select2-search__field {
  margin: 0 !important;
}

.mdlVentaPos {
  max-width: 100%;
  margin: 0;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100vh;
  display: flex;
}

.my-wrapper {
  max-height: 65px;
  display: flex;
  overflow-y: hidden;
}

.my-wrapper .item {
  width: auto !important;
  height: 30px;
  /* line-height: 40px; */
  text-align: center;

  /* overflow-y: hidden; */
  /* margin: 0 auto;
  display: flex; */
}

/* .my-wrapper::-webkit-scrollbar{
  width: 0;
} */

@media (width < 1200px) {
  .my-wrapper::-webkit-scrollbar {
    width: 0;
  }
}

.scrolly {
  padding: 0 !important;
}

.scrolly::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}


.scrolly-productos::-webkit-scrollbar {
  width: 5px;
}

.scrolly-productos::-webkit-scrollbar-track {
  background-color: #34495e;
}

.scrolly-productos::-webkit-scrollbar-thumb {
  background-color: orange;
}


.scrolly-categorias::-webkit-scrollbar {
  height: 7px;
}

.scrolly-categorias::-webkit-scrollbar-track {
  background-color: #34495e;
}

.scrolly-categorias::-webkit-scrollbar-thumb {
  background-color: orange;
}



.form-check-input:checked {
  background-color: #34495e;
  border-color: #34495e;
}

/* .div-carrito-pos{
    transform: translate3d(-315px, 40px, 0px) !important;
} */

.dropdown-menu-lg {
  min-width: 348px !important;
}

.control-sidebar {
  top: 0px !important;
}


@media (max-width: 576px) {

  .w-carrito-pos {
    width: 85% !important;
  }

  .h-categorias-pos {
    height: 75vh !important;
  }

  .h-productos-pos {
    height: 70vh !important;
  }

}

@media (min-width: 768px) {
  .w-carrito-pos {
    width: 50% !important;
  }

  .h-categorias-pos {
    height: 82vh !important;
  }

  .h-productos-pos {
    height: 82vh !important;
  }

}

@media (min-width: 992px) {

  .w-carrito-pos {
    width: 50% !important;
  }

  .h-categorias-pos {
    height: 85vh !important;
  }

  .h-productos-pos {
    height: 84vh !important;
  }

  .h-listado-productos {
    height: 96vh !important;
  }

}

@media (min-width: 1200px) {

  .h-categorias-pos {
    height: 85vh !important;
  }

  .h-productos-pos {
    height: calc(100vh - 185px) !important;
  }

  .h-listado-productos {
    height: 96vh !important;
  }

}

@media (min-width: 1400px) {
  .h-categorias-pos {
    height: 86vh !important;
  }

  .h-productos-pos {
    height: 70vh !important;
  }

  .h-listado-productos {
    height: 96vh !important;
  }

}

.w-10 {
  width: 150px !important;
}

.cursor-pointer {
  cursor: pointer !important;
}


hr {
  height: 2px;
  background-color: #ff0000;
  border: none;
}

.w-10 {
  width: 20% !important;
}

.b-radius-20 {
  border-radius: 8px !important;
}

.myFont {
  font-size: 13px;
}

.brand-link .brand-image {
  max-height: 80px;
}

.btn-outline-secondary:hover {
  color: #fff !important;
  background-color: #34495e !important;
  border-color: #2C7BE5 !important;
}

.div-card-option-modulo:hover {
  transform: scale(1.05);
  /* Aumenta tamaño al 105% */
}

.scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 20px;
  border: 1px solid #ccc;
  width: 100%;
}

.dropdown-toggle::after {
  display: none !important;
}

.toast {
  opacity: 1 !important;
  /* Controla la opacidad */
  transition: opacity 0.3s ease-in-out;
  /* Transición suave */
}

.fs-7 {
  font-size: 10px !important;
}

/* Fullscreen para Bootstrap 4 */
.modal-dialog.modal-fullscreen {
  width: 100% !important;
  max-width: 100% !important;
  height: 100vh;
  margin: 0;
}

.modal-content {
  height: 100%;
  border-radius: 0;
  border: 0;
}

/* El modal no scrollea; lo hacen los card-body marcados */
.modal-body {
  overflow: hidden;
}

/* Hacer que columnas y cards rellenen el alto disponible */
.row.h-100>[class*="col-"] {
  height: 100%;
}

.card.h-100 {
  height: 100%;
}

/* Scroll SOLO dentro de estos card-body */
.cb-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

/* (Opcional) Evitar que tab-panes internos generen scroll doble */
.scrolly-productos,
.h-productos-pos {
  overflow: visible !important;
}


#vert-tabs-tabContent-prods {
  max-height: 500px;
  /* ajusta a la altura que necesites */
  overflow-y: auto;
  overflow-x: hidden;
}

.card-producto {
  border: 1px solid #34495e;
  /* Azul */
  border-radius: 10px;
}

#mdlPos .modal-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#mdlPos .modal-body .flex-grow-1 {
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* <- muy importante para que flex calcule bien */
}

#vert-tabs-tabContent-prods {
  flex: 1;
  /* ocupa todo el alto disponible */
  overflow-y: auto;
  /* scroll solo si hace falta */
  overflow-x: hidden;
  min-height: 0;
  /* evita que empuje al footer */
}

/* Pantalla grande */
@media (min-width: 992px) {
  #vert-tabs-tabContent-prods {
    max-height: calc(90vh - 220px);
    /* ajusta según tu footer y otros elementos */
  }
}

.w-carrito-pos {
  position: fixed;
  top: 0;
  right: 0;
  width: 85% !important;
  height: 100vh !important;
  /* 100% de la pantalla */
  background-color: #343a40;
  z-index: 1050;
  display: none;
  /* Oculto por defecto */
  flex-direction: column;
}

.w-carrito-pos .tab-content {
  display: flex;
  flex-direction: column;
  height: 100% !important;
  /* Ocupa todo el alto del aside */
}

.w-carrito-pos .tab-pane {
  display: flex;
  flex-direction: column;
  height: 100% !important;
}

.w-carrito-pos .tab-pane .card.flex-grow-1 {
  flex-grow: 1;
  overflow-y: auto;
  /* Scroll vertical para la tabla */
}

.w-carrito-pos .mt-auto {
  flex-shrink: 0;
  /* RESUMEN + botón pegados abajo */
}




.div-categorias {
  display: flex;
  flex-wrap: nowrap;
  /* evitar que los botones se vayan a otra línea */
  overflow-x: auto;
  /* scroll horizontal */
  -webkit-overflow-scrolling: touch;
  /* para suavizar el scroll en móviles */
  gap: 10px;
  /* espacio entre botones */
  padding: 5px;
  /* opcional */
}

table.dataTable thead th,
table.dataTable thead td {
  padding: 2px 18px !important;
}

.btn-num {
  border-radius: 0 !important;
  margin: 0 !important;
  border: 1px solid white !important;
}

/* .btn-block {
  width: 100%;
  height: 60px;

} */


/* .modal.right .modal-dialog {
    position: fixed;
    margin: auto;    
    height: 100%;
    right: 0;
    top: 0;
    bottom: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.modal.right.show .modal-dialog {
    transform: translateX(0);
}

.modal.right .modal-content {
    height: 100%;
    overflow-y: auto;
    border-radius: 0;    
}

.modal-custom-width {
    width: 100%;
    max-width: 800px;
    margin: 0;
} */

@media (max-width: 576px) {
  .modal-custom-width {
    max-width: 100%;
    margin: 0;
  }
}



@media (max-width: 1366px) {
  .w-md-35 {
    width: 35% !important;
  }
}

@media (max-width: 1024px) {
  .w-md-35 {
    width: 50% !important;
  }
}

@media (max-width: 920px) {
  .w-md-35 {
    width: 50% !important;
  }
}

@media (max-width: 580px) {
  .w-md-35 {
    width: 100% !important;
  }
}



@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Entrada */
.modal.fade.right .modal-dialog {
  animation: slideInRight 0.5s forwards;
}

/* Salida (se agrega dinámicamente) */
.modal.fade.right.closing .modal-dialog {
  animation: slideOutRight 0.8s forwards;
}

/* 1. Modal dialog ocupa la altura real del viewport calculada */
.modal-fullscreen .modal-dialog {
  height: calc(var(--vh, 1vh) * 100); /* usa --vh si existe, fallback a 1vh */
  margin: 0;
}

/* 2. Asegurar que modal-content ocupa todo y es columna flex */
.modal-fullscreen .modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 3. modal-body: que el contenido sea scrollable y el footer quede fijo abajo */
.modal-fullscreen .modal-body {
  flex: 1 1 auto; /* ocupa el espacio entre header y footer */
  min-height: 0; /* importante para que overflow funcione en flex */
  overflow: auto;
}

/* 4. Footer fijo y visible: añade altura y aplica safe-area-inset para iOS */
.modal-fullscreen .modal-footer,
.modal-fullscreen .p-2.bg-light {
  flex: 0 0 auto;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
}

/* 5. Opcional: si tu modal-header usa bg-main y ocupa espacio, asegúrate que no se superponga */
.modal-fullscreen .modal-header {
  z-index: 2;
}

/* 6. Ajuste final para evitar que el contenido se "pegue" al fondo en iOS */
.modal-fullscreen .modal-body > * {
  box-sizing: border-box;
}


/* SOLO afecta al formulario dentro de .pos-wrapper */
.pos-wrapper {
  position: relative;
  height: calc(100vh - var(--header-height, 0px));
  display: flex;
  flex-direction: column;
  overflow: hidden; /* sin scroll global */
}

/* Las secciones internas pueden scrollear */
.pos-wrapper .flex-grow-1 {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pos-wrapper .col-12.col-xl-7,
.pos-wrapper .col-12.col-xl-5,
.pos-wrapper .card.h-100,
.pos-wrapper .card-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Scroll interno solo dentro de productos y tabla */
.pos-wrapper .overflow-auto {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Footer local */
.pos-wrapper > .p-2.bg-light {
  flex-shrink: 0;
  z-index: 5;
}


.titulo-fieldset{
  background-color: #17202a !important; 
  position: absolute;
  top:-13px;
  left: 10px;
  border-radius: 15px;
  padding: 0 10px;
  color: white;
  font-size: 12px;  
  font-weight: bold;
  letter-spacing: 3px;
  text-decoration: solid underline white 1px;
  text-underline-offset: 3px;
}

.dt-icon {
    width: 25px !important;
    height: 25px !important;
    object-fit: cover;
    cursor: pointer;
}