@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/open-sans-v34-latin/open-sans-v34-latin-regular.eot"); /* IE9 Compat Modes */
  src: local(""), url("../fonts/open-sans-v34-latin/open-sans-v34-latin-regular.eot?#iefix") format("embedded-opentype"),
    /* IE6-IE8 */ url("../fonts/open-sans-v34-latin/open-sans-v34-latin-regular.woff2") format("woff2"),
    /* Super Modern Browsers */ url("../fonts/open-sans-v34-latin/open-sans-v34-latin-regular.woff") format("woff"),
    /* Modern Browsers */ url("../fonts/open-sans-v34-latin/open-sans-v34-latin-regular.ttf") format("truetype"),
    /* Safari, Android, iOS */ url("../fonts/open-sans-v34-latin/open-sans-v34-latin-regular.svg#OpenSans")
      format("svg"); /* Legacy iOS */
}

/* encode-sans-regular - latin */
@font-face {
  font-family: "Encode Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/encode-sans-v15-latin/encode-sans-v15-latin-regular.eot"); /* IE9 Compat Modes */
  src: local(""),
    url("../fonts/encode-sans-v15-latin/encode-sans-v15-latin-regular.eot?#iefix") format("embedded-opentype"),
    /* IE6-IE8 */ url("../fonts/encode-sans-v15-latin/encode-sans-v15-latin-regular.woff2") format("woff2"),
    /* Super Modern Browsers */ url("../fonts/encode-sans-v15-latin/encode-sans-v15-latin-regular.woff") format("woff"),
    /* Modern Browsers */ url("../fonts/encode-sans-v15-latin/encode-sans-v15-latin-regular.ttf") format("truetype"),
    /* Safari, Android, iOS */ url("../fonts/encode-sans-v15-latin/encode-sans-v15-latin-regular.svg#EncodeSans")
      format("svg"); /* Legacy iOS */
}

body {
  font-family: "Roboto", sans-serif;
  padding-top: 78px;
}
#menuTop.navbar {
  background-color: var(--bs-primary);
}
#menuTop .navbar-brand img {
  max-height: 40px;
}
#menuTop.nav-link {
  color: white !important;
  transition: all 0.3s ease;
}
#menuTop .nav-link:hover {
  color: var(--bs-accent) !important;
}

.navbar-top {
  min-height: 50px;
}
.btn-accent {
  background-color: #d4b24d;
  border-color: #cdc4a8;
  color: #000000;
}
.btn-accent:hover {
  background-color: #e0a800;
  border-color: #e0a800;
}
.hero-section {
  background: linear-gradient(rgba(0, 86, 179, 0.1), rgba(0, 86, 179, 0.1));
  background-size: cover;
  color: white;
  padding: 100px 0;
  overflow: hidden;
  position: relative;
}

.hero-section::before {
  content: "";
  background: url("/reten/img/importacion.jpg") center -500px no-repeat;
  background-size: 110%; /* Slightly larger for zoom effect */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  animation: zoom 20s infinite alternate;
}

@keyframes zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}
.feature-icon {
  font-size: 3rem;
  color: var(--bs-primary);
}
.footer {
  background-color: var(--bs-primary);
  color: white;
}

body {
  font-family: "Open Sans", sans-serif;
  color: rgb(68, 68, 68);
}
.tabla_productos.tabla_compacta tr td {
  padding: 1px;
}
.tabla_compacta1 tbody {
  display: block;
  height: 300px;
  overflow: auto;
}
.tabla_compacta1 thead,
.tabla_compacta1 tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed; /* even columns width , fix width of table too*/
}
.tabla_compacta1 thead {
  width: calc(100% - 1.2em); /* scrollbar is average 1em/16px width, remove it from thead width */
}
.tabla_productos .columna1 {
  width: 2%;
  text-align: center;
  align-content: center;
}

.table.tabla_productos tbody > tr > td.columna1:first-of-type {
  padding-left: 3px;
}
.tabla_productos .columna2 {
  width: 5%;
}
.tabla_productos .columna3 {
  width: 10%;
}
.tabla_productos .columna4 {
  width: 10%;
}
.tabla_productos .columna5 {
  width: 55%;
}
.tabla_productos.columna6 {
  width: 2%;
}
.tabla_productos .columna7 {
  width: 2%;
}
.tabla_productos .columna8 {
  width: 2%;
}
.tabla_productos .columna9 {
  width: 3%;
}
.stock_rojo,
.stock_amarillo,
.stock_verde,
.stock_azul {
  width: 10px;
  height: 10px;
  display: inline-block;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}
.stock_rojo,
.mh_rojo,
.stock_rojo_chico,
.btn-stock_rojo {
  background-color: rgba(255, 0, 4, 1);
}
.stock_amarillo,
.mh_amarillo,
.stock_amarillo_chico,
.btn-stock_amarillo {
  background-color: rgba(224, 255, 0, 1);
}
.stock_verde,
.mh_verde,
.stock_verde_chico,
.btn-stock_verde {
  background-color: rgba(0, 255, 29, 1);
}
.stock_azul,
.mh_azul,
.stock_azul_chico,
.btn-stock_azul {
  background-color: rgba(0, 21, 255, 1);
  color: rgba(255, 255, 255, 1);
}

.stock_text_rojo {
  color: rgba(255, 104, 104, 1);
}
.stock_text_amarillo {
  color: rgba(255, 255, 104, 1);
}
.stock_text_naranja {
  color: rgba(255, 179, 104, 1);
}
.stock_text_verde {
  color: rgb(129, 219, 78);
}
.stock_text_azul {
  color: rgba(104, 148, 255);
}
.stock_text_celeste {
  color: rgba(159, 187, 255, 1);
}
.stock-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.btn-stock_naranja {
  /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#fac695+0,f5ab66+47,ef8d31+100;Orange+3D+%232 */
  background: #fac695; /* Old browsers */
  background: -moz-linear-gradient(top, #fac695 0%, #f5ab66 47%, #ef8d31 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, #fac695 0%, #f5ab66 47%, #ef8d31 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(
    to bottom,
    #fac695 0%,
    #f5ab66 47%,
    #ef8d31 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fac695', endColorstr='#ef8d31',GradientType=0 ); /* IE6-9 */
  color: #0e171c;
}
.highlight {
  background-color: #08c !important;
}
/*
Extra small devices (portrait phones, less than 544px)
No media query since this is the default in Bootstrap because it is "mobile first"
*/
.text-responsive {
  font-size: 1rem;
} /*1rem = 16px*/
/*
####################################################
M E D I A  Q U E R I E S
####################################################
*/

/*
::::::::::::::::::::::::::::::::::::::::::::::::::::
Bootstrap 4 breakpoints
*/
/* Small devices (landscape phones, 544px and up) */
@media (min-width: 544px) {
  .card-body.p-0 .table.tabla_adaptable tbody > tr > td:first-of-type {
    padding-left: 0.15rem;
  }
  .card-body.p-0 .table.tabla_adaptable tbody > tr > td:last-of-type {
    padding-right: 0.15rem;
  }
  .tabla_adaptable th {
    font-size: 0.575rem;
    padding: 0.15rem;
  }
  .tabla_adaptable td {
    font-size: 0.575rem;
    padding: 0.15rem;
  }
  .tabla_adaptable .columna1 {
    width: 1%;
  }
  .tabla_adaptable .columna2 {
    width: 10%;
  }
  .tabla_adaptable .columna3 {
    width: 10%;
  }
  .tabla_adaptable .columna4 {
    width: 10%;
  }
  .tabla_adaptable .columna5 {
    width: auto;
  }
  .tabla_adaptable .columna6 {
    width: 10%;
    text-align: right;
  }
  .tabla_adaptable .columna7 {
    width: 10%;
    text-align: right;
  }
  .tabla_adaptable .columna8 {
    width: 10%;
    text-align: right;
  }
  .tabla_adaptable .custom-select-sm {
    height: calc(1.8125rem + 2px);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    font-size: 75%;
  }
  .text-responsive {
    font-size: 1.5rem;
  } /*1rem = 16px*/
}

/* Medium devices (tablets, 768px and up) The navbar toggle appears at this breakpoint */
@media (min-width: 768px) {
  .card-body.p-0 .table.tabla_adaptable tbody > tr > td:first-of-type {
    padding-left: 0.15rem;
  }
  .card-body.p-0 .table.tabla_adaptable tbody > tr > td:last-of-type {
    padding-right: 0.15rem;
  }
  .tabla_adaptable th {
    font-size: 0.675rem;
    padding: 0.15rem;
  }
  .tabla_adaptable td {
    font-size: 0.675rem;
    padding: 0.15rem;
  }
  .tabla_adaptable .columna1 {
    width: 1%;
  }
  .tabla_adaptable .columna2 {
    width: 10%;
  }
  .tabla_adaptable .columna3 {
    width: 10%;
  }
  .tabla_adaptable .columna4 {
    width: 10%;
  }
  .tabla_adaptable .columna5 {
    width: auto;
  }
  .tabla_adaptable .columna6 {
    width: 8%;
    text-align: right;
  }
  .tabla_adaptable .columna7 {
    width: 8%;
    text-align: right;
  }
  .tabla_adaptable .columna8 {
    width: 8%;
    text-align: right;
  }
  .tabla_adaptable .custom-select-sm {
    height: calc(1.8125rem + 2px);
    padding-top: 0rem;
    padding-bottom: 0rem;
    padding-left: 0rem;
    font-size: 100%;
    height: 20px;
  }
  .text-responsive {
    font-size: 2rem;
  } /*1rem = 16px*/
  .asociado_a_tabla_adaptable {
    font-size: 0.675rem;
  }
  .asociado_a_tabla_adaptable .pagination-sm .page-link {
    font-size: 0.675rem;
    padding: 0.25rem 0.3rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .card-body.p-0 .table.tabla_adaptable tbody > tr > td:first-of-type {
    padding-left: 0.15rem;
  }
  .card-body.p-0 .table.tabla_adaptable tbody > tr > td:last-of-type {
    padding-right: 0.15rem;
  }
  .tabla_adaptable th {
    font-size: 0.775rem;
    padding: 0.15rem;
  }
  .tabla_adaptable td {
    font-size: 0.775rem;
    padding: 0.15rem;
  }
  .tabla_adaptable .columna1 {
    width: 1%;
  }
  .tabla_adaptable .columna2 {
    width: 10%;
  }
  .tabla_adaptable .columna3 {
    width: 10%;
  }
  .tabla_adaptable .columna4 {
    width: 10%;
  }
  .tabla_adaptable .columna5 {
    width: auto;
  }
  .tabla_adaptable .columna6 {
    width: 9%;
    text-align: right;
  }
  .tabla_adaptable .columna7 {
    width: 9%;
    text-align: right;
  }
  .tabla_adaptable .columna8 {
    width: 9%;
    text-align: right;
  }
  .text-responsive {
    font-size: 2.5rem;
  } /*1rem = 16px*/
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .card-body.p-0 .table.tabla_adaptable tbody > tr > td:first-of-type {
    padding-left: 0.15rem;
  }
  .card-body.p-0 .table.tabla_adaptable tbody > tr > td:last-of-type {
    padding-right: 0.15rem;
  }
  .tabla_adaptable th {
    font-size: 0.875rem;
    padding: 0.1rem;
  }
  .tabla_adaptable td {
    font-size: 0.75rem;
    padding: 0.1rem;
  }
  .tabla_adaptable .columna1 {
    width: 2%;
    text-align: center;
    align-content: center;
  }
  .tabla_adaptable .columna2 {
    width: 9%;
  }
  .tabla_adaptable .columna3 {
    width: 10%;
  }
  .tabla_adaptable .columna4 {
    width: 10%;
  }
  .tabla_adaptable .columna5 {
    width: auto;
  }
  .tabla_adaptable .columna6 {
    width: 7%;
    text-align: right;
  }
  .tabla_adaptable .columna7 {
    width: 7%;
    text-align: right;
  }
  .tabla_adaptable .columna8 {
    width: 7%;
    text-align: right;
  }
  .tabla_adaptable .columna9 {
    width: 1%;
    text-align: center;
  }
  /*.tabla_adaptable .custom-select-sm {
        height: calc(1.8125rem + 2px);
        padding-top: 0rem;
        padding-bottom: 0rem;
        padding-left: 0rem;
        font-size: 100%;
        height: 20px;
    }
    .tabla_adaptable .orden {
        padding-top: 0rem;
        padding-bottom: 0rem;
        padding-left: 0rem;
        font-size: 100%;
    }*/
  .text-responsive {
    font-size: 2rem;
  } /*1rem = 16px*/
  .asociado_a_tabla_adaptable {
    font-size: 0.75rem;
  }
  .asociado_a_tabla_adaptable .pagination-sm .page-link {
    font-size: 0.75rem;
    padding: 0.1rem 0.1rem;
  }
}

/*
::::::::::::::::::::::::::::::::::::::::::::::::::::
Custom media queries
*/

/* Set width to make card deck cards 100% width */
@media (min-width: 950px) and (max-width: 1100px) {
  h1 {
    font-size: 2.75rem;
    color: red;
  }
}
.degradeazul {
  background: #dfdef7 !important;
  background: -moz-linear-gradient(top, #dfdef7 0%, #b6b5f2 100%) !important;
  background: -webkit-linear-gradient(top, #dfdef7 0%, #b6b5f2 100%) !important;
  background: linear-gradient(to bottom, #dfdef7 0%, #b6b5f2 100%) !important;
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dfdef7', endColorstr='#b6b5f2',GradientType=0 ) !important;
}

.degradeazul .btn-tool,
.bg_title_verde .btn-tool {
  color: rgb(68, 68, 68);
  font-size: 0.875rem;
}
.bg_footer_azul {
  background-color: #dfdef7;
}

.bg_footer_azul .page-link {
  background-color: #bdbbfb;
  color: rgb(68, 68, 68);
}
.bg_footer_azul .page-link:hover {
  background-color: #a39ff8;
  font-weight: bold;
}
.bg_footer_azul .page-item.disabled .page-link {
  background-color: #efeffc;
}
.bg_title_verde {
  background: #e6f2e8 !important;
  background: -moz-linear-gradient(top, #e6f2e8 0%, #95e091 100%) !important;
  background: -webkit-linear-gradient(top, #e6f2e8 0%, #95e091 100%) !important;
  background: linear-gradient(to bottom, #e6f2e8 0%, #95e091 100%) !important;
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e6f2e8', endColorstr='#95e091',GradientType=0 ) !important;
}
.recuadro_pequeño {
  .bg_title_naranja {
    background: #ffe6cc !important;
    background: -moz-linear-gradient(top, #ffe6cc 0%, #ffb366 100%) !important;
    background: -webkit-linear-gradient(top, #ffe6cc 0%, #ffb366 100%) !important;
    background: linear-gradient(to bottom, #ffe6cc 0%, #ffb366 100%) !important;
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffe6cc', endColorstr='#ffb366',GradientType=0 ) !important;
  }
  .nav-link {
    padding: 0.2rem 0.4rem;
  }
  .nav-link.active {
    color: #ffb366 !important;
  }
  .card-header a.active {
    border-top: 3px solid #ffb366 !important;
  }
}

.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}
.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background-color: var(--primary-color);
}
.timeline > li {
  position: relative;
  margin-bottom: 50px;
}
.timeline > li:before,
.timeline > li:after {
  content: " ";
  display: table;
}
.timeline > li:after {
  clear: both;
}
.timeline > li .timeline-panel {
  float: left;
  position: relative;
  width: 46%;
  padding: 20px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
}
.timeline > li .timeline-panel:before {
  position: absolute;
  top: 26px;
  right: -15px;
  display: inline-block;
  border-top: 15px solid transparent;
  border-left: 15px solid #ccc;
  border-right: 0 solid #ccc;
  border-bottom: 15px solid transparent;
  content: " ";
}
.timeline > li .timeline-panel:after {
  position: absolute;
  top: 27px;
  right: -14px;
  display: inline-block;
  border-top: 14px solid transparent;
  border-left: 14px solid #fff;
  border-right: 0 solid #fff;
  border-bottom: 14px solid transparent;
  content: " ";
}
.timeline > li .timeline-badge {
  color: #fff;
  width: 50px;
  height: 50px;
  line-height: 50px;
  font-size: 1.4em;
  text-align: center;
  position: absolute;
  top: 16px;
  left: 50%;
  margin-left: -25px;
  background-color: var(--primary-color);
  z-index: 100;
  border-top-right-radius: 50%;
  border-top-left-radius: 50%;
  border-bottom-right-radius: 50%;
  border-bottom-left-radius: 50%;
}
.timeline > li.timeline-inverted > .timeline-panel {
  float: right;
}
.timeline > li.timeline-inverted > .timeline-panel:before {
  border-left-width: 0;
  border-right-width: 15px;
  left: -15px;
  right: auto;
}
.timeline > li.timeline-inverted > .timeline-panel:after {
  border-left-width: 0;
  border-right-width: 14px;
  left: -14px;
  right: auto;
}
.map-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.modal_stock_rojo {
  background: linear-gradient(to bottom, rgba(255, 0, 4, 1), #ffffff);
}
.modal_stock_verde {
  background: linear-gradient(to bottom, rgba(0, 255, 0, 1), #ffffff);
}
.modal_stock_amarillo {
  background: linear-gradient(to bottom, rgba(255, 255, 0, 1), #ffffff);
}
.modal_stock_azul {
  background: linear-gradient(to bottom, rgba(0, 0, 255, 1), #ffffff);
}
#custom-tabs-four-tab .nav-item {
  width: 25%;
  text-align: center;
}
#tab-1,
#tab-2,
#tab-3,
#tab-4 {
  color: rgb(108, 117, 125);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#pedido_pendiente .card-footer {
  font-size: 0.875rem;
}
#tab-1:hover,
#tab-2:hover,
#tab-3:hover,
#tab-4:hover {
  color: rgb(33, 37, 41);
}
.descripcion-celda-historial,
.descripcion-celda-pedidos {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#Tabla_productos.table-hover tbody tr:hover,
#Tabla_productos.table-hover tbody tr:focus,
#Tabla_productos.table-hover tbody tr:active {
  background-color: #b6b5f2;
  color: #000000;
}
#Tabla_productos.table-hover > tbody > tr:hover > * {
  --bs-table-color-state: #b6b5f2;
  --bs-table-bg-state: #b6b5f2;
  color: #000000;
}

#Tabla_pedidos.table-hover tbody tr:hover {
  background-color: #95e091 !important;
}
#Tabla_pedidos.table-hover > tbody > tr:hover > * {
  --bs-table-color-state: #95e091;
  --bs-table-bg-state: #95e091;
  color: #000000;
}
@media (min-width: 992px) {
  .descripcion-celda-historial {
    max-width: 110px;
  }
}
@media (min-width: 992px) {
  .descripcion-celda-pedidos {
    max-width: 210px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .descripcion-celda-pedidos {
    max-width: 100px;
  }
}
.tr_de_pedidos.active {
  background-color: #95e091;
  color: #000000;
}
.tr_de_pedidos.active td a {
  color: #000000 !important;
}
/*@media (max-width: 991.98px) {
  .modal-lg-custom {
    max-width: 90% !important; 
  }
}*/

@media (max-width: 992px) {
  #masdatos .modal-lg-custom {
    max-width: 600px !important; /* ejemplo más ancho */
  }
}
#masdatos .card-body {
  font-size: 11px;
}

/* Primera línea del navbar */

/* Segunda línea del navbar */

/* Estilos específicos para el segundo navbar */
#menuTop2 {
  position: fixed;
  top: 49px;
  /* Debajo del primer navbar */
  left: 0;
  right: 0;
  z-index: 1033;
  /* Un nivel menos que el primer navbar */
}

/* Asegurar que ambos navbars estén fijos en la parte superior */
#menuTop {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1034;
}
.navbar-bottom {
  min-height: 27px;
  background-color: var(--bs-primary);
  backdrop-filter: blur(10px);
}
/* Contenedor de publicidad centrado - Solo para navbar específico */
#menuTop .publicidad-superior-container {
  position: relative;
  height: 50px;
  min-height: 50px;
  width: 50% !important;
  flex-shrink: 0;
}

#menuTop .publicidad-superior-container .carousel {
  height: 100%;
  width: 100%;
}

#menuTop .publicidad-superior-container .carousel-inner {
  height: 100%;
  width: 100%;
}

#menuTop .publicidad-superior-container .carousel-item {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Iconos del navbar siempre visibles - Solo para navbars específicos */
#menuTop .navbar-nav.d-flex.flex-row .nav-item {
  margin: 0 0.25rem;
}

#menuTop .navbar-nav.d-flex.flex-row .nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
}

#menuTop .navbar-nav.d-flex.flex-row .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Información del usuario en la segunda línea (siempre visible) - Solo para navbar específico */
#menuTop2 .user-info {
  flex-shrink: 0;
  /* No se comprime */
}

#menuTop2 .user-info .nav-link {
  padding: 0rem 0rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
  font-size: 0.95rem;
  white-space: nowrap;
  /* Evita que se rompa en múltiples líneas */
}

#menuTop2 .user-info .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#menuTop2 .user-info .fw-bold {
  font-weight: 600 !important;
}

/* Menú colapsable alineado a la derecha - Solo para navbar específico */
#menuTop2 .navbar-bottom .d-flex.align-items-center {
  flex-shrink: 0;
}

#menuTop2 .navbar-bottom .navbar-collapse {
  flex-grow: 0;
  /* No crece para ocupar espacio extra */
}

#menuTop2 .navbar-bottom .navbar-nav.ms-auto {
  margin-left: auto !important;
}

/* Separador entre líneas - Solo para navbar específico */
#menuTop2 .navbar-bottom .border-top {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Mejoras responsivas - Solo para navbars específicos */
@media (max-width: 991.98px) {
  #menuTop .publicidad-superior-container {
    display: none !important;
  }

  #menuTop .navbar-nav.d-flex.flex-row .nav-link span {
    display: none !important;
  }

  /* En móviles, mantener la segunda línea pero ajustar el layout */
  #menuTop2 .navbar-bottom {
    flex-direction: column;
    align-items: stretch !important;
  }

  #menuTop2 .navbar-bottom .user-info {
    margin-bottom: 0.5rem;
    text-align: center;
  }

  #menuTop2 .navbar-bottom .d-flex.align-items-center {
    justify-content: center;
  }

  #menuTop2 .navbar-bottom .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bs-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
  }
}

@media (max-width: 575.98px) {
  #menuTop .navbar-nav.d-flex.flex-row .nav-item {
    margin: 0 0.125rem;
  }

  #menuTop .navbar-nav.d-flex.flex-row .nav-link {
    padding: 0.375rem 0.5rem;
  }

  #menuTop .navbar-top {
    min-height: 60px;
  }
}

/* Mejoras para el badge de notificaciones - Solo para navbars específicos */
#menuTop .cantidad_notificaciones {
  font-size: 0.75rem;
  min-width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1px;
}

/* Transiciones suaves para el navbar - Solo para navbars específicos */
#menuTop .navbar-collapse,
#menuTop2 .navbar-collapse {
  transition: all 0.3s ease-in-out;
}

/* Mejoras para el logo - Solo para navbar específico */
#menuTop .navbar-brand img {
  transition: transform 0.2s ease-in-out;
}

#menuTop .navbar-brand:hover img {
  transform: scale(1.05);
}

/* Ajuste del body para el navbar de dos líneas */
body {
  padding-top: 81px;
  /* 65px (primer navbar) + 50px (segundo navbar) */
}

@media (max-width: 991.98px) {
  body {
    padding-top: 84px;
    /* Mantener ambos navbars en móviles */
  }
}

@media (max-width: 575.98px) {
  body {
    padding-top: 84px;
    /* Un poco más de espacio en móviles pequeños */
  }
}

/* Asegurar que el contenido no se oculte detrás de los navbars */
.main-content {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

/* ===========================================
   ESTILOS MINIMALISTAS PARA MENÚ DE ADMINISTRACIÓN
   =========================================== */

/* Contenedor principal del dropdown de administración */
.modern-admin-dropdown {
  position: relative;
}

/* Toggle del menú principal - Minimalista */
.modern-admin-toggle {
  display: flex;
  align-items: center;
  /*padding: 0.5rem 0.75rem !important;*/
  /*background: rgba(255, 255, 255, 0.08);*/
  /*  border-radius: 0.375rem;*/
  transition: all 0.2s ease;
  /*border: 1px solid rgba(255, 255, 255, 0.1);*/
  position: relative;
  color: #ffffff;
}
.modern-admin-toggle::after {
  content: none;
}
.modern-admin-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-admin-toggle .admin-text {
  font-weight: 500;
  /*font-size: 0.9rem;*/
  font-size: var(--bs-nav-link-font-size);
  letter-spacing: 0.01em;
}

.modern-admin-toggle .admin-arrow {
  transition: transform 0.2s ease;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

.modern-admin-dropdown.show .admin-arrow {
  transform: rotate(180deg);
}

/* Menú principal de administración - Compacto */
.modern-admin-menu {
  min-width: 260px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  margin-top: 0.25rem;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Headers de sección - Minimalistas */
.modern-dropdown-header {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0.5rem 0.25rem;
  border-bottom: 1px solid #f1f3f4;
}

/* Items del dropdown principal - Compactos */
.modern-dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: #495057;
  transition: all 0.15s ease;
  border-radius: 0.25rem;
  margin: 0 0.5rem 0.125rem;
  display: flex;
  align-items: center;
  position: relative;
}

.modern-dropdown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--bs-primary);
  transform: scaleY(0);
  transition: transform 0.15s ease;
}

.modern-dropdown-item:hover {
  background: rgba(13, 110, 253, 0.08);
  color: var(--bs-primary);
  transform: translateX(2px);
}

.modern-dropdown-item:hover::before {
  transform: scaleY(1);
}

.modern-dropdown-item i {
  color: var(--bs-primary);
  width: 16px;
  text-align: center;
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

/* Divisores - Sutiles */
.modern-divider {
  margin: 0.5rem 0.5rem;
  border-color: #f1f3f4;
  border-width: 1px;
  opacity: 0.8;
}

/* Submenús - Compactos */
.modern-submenu {
  position: relative;
}

.modern-submenu-toggle {
  position: relative;
}

.modern-submenu-toggle .fa-chevron-right {
  transition: transform 0.2s ease;
  font-size: 0.65rem;
  color: #6c757d;
  margin-left: auto;
}

.modern-submenu.show .fa-chevron-right {
  transform: rotate(90deg);
}

/* Rotación para flecha hacia abajo en submenú de importaciones */
.modern-import-submenu.show .fa-chevron-down {
  transform: rotate(180deg);
}

/* Menús de submenú - Minimalistas */
.modern-submenu-menu {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  margin-left: 0.25rem;
  animation: slideInRight 0.2s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Items de submenú - Compactos */
.modern-submenu-item {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: #495057;
  transition: all 0.15s ease;
  border-radius: 0.25rem;
  margin: 0 0.5rem 0.1rem;
  display: flex;
  align-items: center;
}

.modern-submenu-item:hover {
  background: rgba(13, 110, 253, 0.06);
  color: var(--bs-primary);
  transform: translateX(2px);
}

.modern-submenu-item i {
  color: var(--bs-primary);
  width: 14px;
  text-align: center;
  margin-right: 0.5rem;
  font-size: 0.75rem;
}

/* Divisores de submenú - Sutiles */
.modern-submenu-divider {
  margin: 0.375rem 0.5rem;
  border-color: #f1f3f4;
  border-width: 1px;
  opacity: 0.6;
}

/* Estilos específicos para el menú de importaciones - Compacto */
.modern-import-menu {
  min-width: 280px;
}

/* Submenú de importaciones que se abre hacia la izquierda */
.modern-import-submenu .modern-import-left {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 0.25rem;
}

/* Ajuste para el submenú de importaciones en pantallas pequeñas */
@media (max-width: 991.98px) {
  .modern-import-submenu .modern-import-left {
    position: static;
    margin-right: 0;
    margin-top: 0.125rem;
  }
}

/* Alternativa: Submenú de importaciones que se expande hacia abajo */
.modern-import-submenu .modern-import-down {
  position: absolute;
  left: 0;
  top: 100%;
  right: 0;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0.25rem;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1050;
}

/* Scroll personalizado para el submenú de importaciones */
.modern-import-down::-webkit-scrollbar {
  width: 4px;
}

.modern-import-down::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.modern-import-down::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.modern-import-down::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.modern-import-section {
  margin-bottom: 0.25rem;
}

.modern-import-header {
  padding: 0.375rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8f9fa;
  border-radius: 0.25rem;
  margin: 0 0.5rem 0.125rem;
  display: flex;
  align-items: center;
}

.modern-import-item {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  margin: 0 0.5rem 0.1rem;
}

.modern-import-sync {
  background: rgba(40, 167, 69, 0.08);
  border: 1px solid rgba(40, 167, 69, 0.15);
  color: #28a745 !important;
  font-weight: 500;
}

.modern-import-sync:hover {
  background: rgba(40, 167, 69, 0.12);
  color: #1e7e34 !important;
  transform: translateX(2px);
}

.modern-import-sync i {
  color: #28a745 !important;
}

/* Responsive design para el menú minimalista */
@media (max-width: 991.98px) {
  .modern-admin-menu {
    min-width: 240px;
    margin-top: 0.125rem;
  }

  .modern-submenu-menu {
    position: static;
    box-shadow: none;
    background: #f8f9fa;
    margin-left: 0;
    margin-top: 0.125rem;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
  }

  .modern-import-menu {
    min-width: 240px;
  }
}

@media (max-width: 575.98px) {
  .modern-admin-menu {
    min-width: 220px;
  }

  .modern-dropdown-item,
  .modern-submenu-item {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .modern-import-menu {
    min-width: 220px;
  }
}

/* Animaciones suaves */
.modern-admin-dropdown .dropdown-menu {
  transform-origin: top center;
}

.modern-submenu .dropdown-menu {
  transform-origin: left center;
}

/* Efectos de hover sutiles */
.modern-dropdown-item:active,
.modern-submenu-item:active {
  transform: translateX(1px) scale(0.99);
}

/* Mejoras de accesibilidad */
.modern-dropdown-item:focus,
.modern-submenu-item:focus {
  outline: 1px solid var(--bs-primary);
  outline-offset: 1px;
}

/* Transiciones suaves */
.modern-admin-dropdown * {
  transition: all 0.15s ease;
}
