
#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

.snackbar-error {
  background-color:  #F89406;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
    visibility: visible !important;
    z-index: 999999 !important;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}


/*
.box-link { overflow:hidden; position:relative; }
.box-link a { height:100%; left:0; position:absolute; top:0; width:100%;
*/



 .tooltips{
      display: inline;
      position: relative;
  }
  
  .tooltips:hover:after{

      background: #333;
      background: rgba(0,0,0,.8);
      border-radius: 5px;
      bottom: 26px;
      color: #fff;
      content: attr(title);
      left: 20%;
      padding: 5px 15px;
      position: absolute;
      z-index: 98;
      width: 220px;

  }
  
  .tooltips:hover:before{

      border: solid;
      border-color: #333 transparent;
      border-width: 6px 6px 0 6px;
      bottom: 20px;
      content: "";
      left: 50%;
      position: absolute;
      z-index: 99;
  }





 .tooltipstop{
      display: inline;
      position: relative;
  }

.tooltipstop:hover:after{

      background: #333;
      background: rgba(0,0,0,.8);
      border-radius: 5px;
      top: 26px;
      color: #fff;
      content: attr(title);
      left: 20%;
      padding: 5px 15px;
      position: absolute;
      z-index: 98;
      width: 220px;

  }
  
  .tooltipstop:hover:before{

      
      border: solid;
      /*border-color: #333 transparent;*/
      border-color:  #333 transparent  ;
      border-width: 0 6px 6px 6px;
      top: 20px;
      content: "";
      left: 50%;
      position: absolute;
      z-index: 99;
   /*
    height: 1px;
    width: 1px;
*/

  }

*{
    box-sizing: border-box;
}

.zoom {
    /*padding: 50px;*/
    /*background-color: green;*/
    transition: transform .2s;
    /*width: 200px;*/
    /*height: 200px;*/
    margin: 0 auto;
}

.zoom:hover {
    background-color:  #f2f2f2;
    -ms-transform: scale(1.5); /* IE 9 */
    -webkit-transform: scale(1.5); /* Safari 3-8 */
    transform: scale(1.5); 
}

/**cambiar color del señalador del link*/
li a:hover, .dropdown:hover .dropbtn {
    
  border-bottom: 2px solid red;
  border-radius: 0%;
  text-decoration: none;
  

}



/**cambiar color del link ACTIVO*/
.navbar-dark .navbar-nav .show > .nav-link,
.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .nav-link.show,
.navbar-dark .navbar-nav .nav-link.active {
  border-bottom:  2px solid #00e600;
  border-radius: 0%;
}







.notification {
  text-decoration: none;
  position: relative;
}

.notification:hover {
  background: gray;
}

.notification .badge {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 5px 10px;
  border-radius: 50%;
  background-color: red;
  color: white;
}



/*
.sidebar {
  margin: 0;
  width: 180px;
  height: 100%;
  position: fixed;
  z-index: 1;
  top: 20px;
  left: 10px;
  background: #eee;
  overflow-x: hidden;
  overflow: auto;
  padding: 8px 0;
}

*/



.sidebar {
  margin: 0;
  padding: 0;
  width: 10%;
  background-color: #f1f1f1;
  position: fixed; 
  height: 100%;
  overflow: auto;
}

.sidebar a {
  display: block;
  color: black;
  padding: 16px;
  text-decoration: none;
  
}
 
.sidebar a.active {
  border-right: 3px solid #00e600;
  
 /* background-color: #4CAF50;*/
  /*border-right: 3px solid red ;*/
  /*color: white;*/
}

.sidebar a:hover:not(.active) {
  border-right: 3px solid #00e600;
  background-color: #555;
  color: white;
}


@media screen and (max-width: 700px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .sidebar a {float: left;}
  div.content {margin-left: 0;}
}

@media screen and (max-width: 400px) {
  .sidebar a {
    text-align: center;
    float: none;
  }
}


/* mostrar spinner de carga
.loader {
  border: 2px solid #f3f3f3;
  border-radius: 50%;
  border-top: 2px solid #3498db;
  width: 15px;
  height: 15px;
  -webkit-animation: spin 2s linear infinite; 
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
*/
/**
*agrega las flechitasde ordenamiento en las tablas
*/
table tr th {
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.sorting {
  background-color: #D4D4D4;
}

.asc:after {
  content: ' ↑';
}

.desc:after {
  content: " ↓";
}



/* PRELOADER BÚSQUEDA CARRITO */


/* PRELOADER CARRITO - LIGHT / DARK */

body.carrito-buscando::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99998;
}

body.carrito-buscando::after {
    content: "Buscando productos...";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: #fff;
    color: #212529;

    padding: 25px 35px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);

    font-size: 16px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    z-index: 99999;
}

/* MODO OSCURO */

html[data-bs-theme="dark"] body.carrito-buscando::before {
    background: rgba(0, 0, 0, 0.70);
}

html[data-bs-theme="dark"] body.carrito-buscando::after {
    background: #30363c;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
}


/* =========================================
   PRODUCTOS MOBILE - 1, 2 Y 3 COLUMNAS
   ========================================= */

@media (max-width: 767.98px) {

    .productos-grid {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    .productos-grid > .producto-col {
        flex: 0 0 auto;
        width: var(--ancho-productos-mobile, 50%);
        min-width: 0;
        margin-bottom: 0 !important;
    }

    .productos-grid .card {
        min-width: 0;
        overflow: hidden;
    }

    .productos-grid .card-img-top {
        height: auto !important;
        aspect-ratio: 1 / 1;
        padding: 0.25rem !important;
    }

    .productos-grid .product-modal-img {
        width: 100%;
        height: 100%;
        max-height: 100% !important;
        object-fit: contain;
    }

    .productos-grid .card-body {
        min-width: 0;
        padding: 0.5rem !important;
    }

    .productos-grid .producto-acciones {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.4rem !important;
    }

    .productos-grid .producto-acciones > * {
        min-width: 0;
        max-width: 100%;
    }

    .productos-grid .producto-acciones .input-group-text {
        display: flex;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
        padding: 0.35rem;
        font-size: 0.8rem;
    }

    .productos-grid .producto-acciones select {
        width: auto !important;
        min-width: 0;
        max-width: 65%;
        font-size: 0.85rem;
    }

    .productos-grid .producto-acciones button[type="submit"] {
        width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .productos-grid .producto-precio {
        display: block;
        font-size: 1.05rem !important;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .productos-grid .producto-descripcion {
        min-height: 0;
        line-height: 1.3 !important;
        overflow-wrap: anywhere;
    }

    .productos-grid .producto-ampliar {
        font-size: 0.65rem;
        overflow-wrap: anywhere;
    }

    .productos-grid .producto-stock {
        font-size: 0.75rem !important;
        overflow-wrap: anywhere;
    }

    /* DOS COLUMNAS */

    html[data-columnas-productos="2"] .productos-grid .producto-ampliar {
        display: none;
    }

    html[data-columnas-productos="2"] .productos-grid .producto-descripcion {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
    }

    /* TRES COLUMNAS */

    html[data-columnas-productos="3"] .productos-grid .card-body {
        padding: 0.25rem !important;
    }

    html[data-columnas-productos="3"] .productos-grid .producto-ampliar {
        display: none;
    }

    html[data-columnas-productos="3"] .productos-grid .producto-precio {
        font-size: 0.75rem !important;
    }

    html[data-columnas-productos="3"] .productos-grid .producto-descripcion {
        font-size: 0.65rem !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
    }

    html[data-columnas-productos="3"] .productos-grid .producto-stock {
        font-size: 0.6rem !important;
    }

    html[data-columnas-productos="3"] .productos-grid .producto-acciones {
        gap: 0.25rem !important;
    }

    html[data-columnas-productos="3"] .productos-grid .producto-acciones .input-group-text {
        font-size: 0.65rem;
        padding: 0.2rem;
    }

    html[data-columnas-productos="3"] .productos-grid .producto-acciones select {
        font-size: 0.7rem;
        padding: 0.15rem 1rem 0.15rem 0.2rem;
    }

    html[data-columnas-productos="3"] .productos-grid .producto-acciones button[type="submit"] {
        font-size: 0.7rem;
        padding: 0.3rem 0.15rem;
    }
}
