/*==========================================================
  IMPORTACIÓN DE FUENTES
==========================================================*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/*==========================================================
  SINGLE PRODUCTO
  (Estilos para la vista de producto individual)
==========================================================*/

/*----------------------------------------------------------
  Documentos Relacionados - Grid y Documentos
----------------------------------------------------------*/
/* Grid para los documentos relacionados */
.gsl-documentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Caja individual del documento */
.gsl-documento-box {
  border-radius: 10px;
  border: 3px solid #b3b3b3;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.gsl-documento-box:hover {
  transform: translateY(-5px);
  border: 3px solid #565c6b;
}

.gsl-documento-box .documento-icono {
  display: block;
  margin: 0 auto;
}

/* Enlace completo del documento (sin decoración y con herencia de color) */

.documento-link {
  text-decoration: none;
  color: inherit;
  display: block;
  outline: none; /* Evita el recuadro */
}

/* Título del documento */
.documento-titulo {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Meta información del documento */
.documento-meta span {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

/*----------------------------------------------------------
    Modelos Producto
----------------------------------------------------------*/

.gsl-modelos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gsl-modelo-box {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
  width: calc(33.333% - 14px);
  box-sizing: border-box;
  padding: 15px;
  transition: all 0.3s ease;
}

.gsl-modelo-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gsl-modelo-texto {
  margin: 10px;
  line-height: 1.4;
}

.gsl-modelo-codigo {
  display: block;
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

/* Regla para un solo elemento */
.gsl-modelos-grid:has(.gsl-modelo-box:nth-child(1):nth-last-child(1))
  .gsl-modelo-box {
  width: 33.333%;
}

/* Responsivo */
@media (max-width: 1024px) {
  .gsl-modelo-box {
    width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .gsl-modelo-box {
    width: 100%;
  }

  .gsl-modelo-codigo {
    font-size: 0.85em;
  }
}

@media (max-width: 480px) {
  .gsl-modelo-texto {
    font-size: 0.95em;
  }
}

/*Edicion modelos y codigo modelo*/
/* Contenedor principal */
#gsl-modelos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

/* Cada campo de modelo */
.gsl-modelo-field {
  background: #f8f9fa;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 15px;
  position: relative;
  transition: all 0.2s ease;
}

.gsl-modelo-field:hover {
  border-color: #c3c4c7;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Contenedores de inputs */
.modelo-input,
.codigo-input {
  margin-bottom: 12px;
}

/* Labels */
.gsl-modelo-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 13px;
  color: #1d2327;
}

/* Inputs */
.gsl-modelo-field input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}

.gsl-modelo-field input[type="text"]:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

/* Botón de eliminar */
.remove-modelo {
  position: absolute;
  top: 15px;
  right: 15px;
  text-decoration: none;
}

.remove-modelo .dashicons {
  font-size: 20px;
  transition: color 0.2s ease;
}

.remove-modelo:hover .dashicons {
  color: #d63638 !important;
}

/* Área de carga masiva */
#gsl-modelos-mass {
  margin-bottom: 25px;
  padding: 15px;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 6px;
}

#gsl-modelos-mass label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

#gsl-modelos-textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-family: monospace;
}

#mass-add-modelos {
  margin-top: 10px;
  padding: 8px 16px;
  background: #2271b1;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

#mass-add-modelos:hover {
  background: #135e96;
}

/* Responsive */
@media (max-width: 782px) {
  #gsl-modelos-container {
    grid-template-columns: 1fr;
  }
}
/*----------------------------------------------------------
  Datos del Producto y Vista Previa del QR
----------------------------------------------------------*/
/* Texto de datos del producto */
.gsl-datos-producto-texto {
  font-size: 18px;
}

/* Contenedor para la vista previa del QR y datos */
.single-product_col-datos-producto {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 20px;
}

/* Columna específica para el QR */
.single-product_col-qr {
  font-size: 18px;
  text-align: center;
}

/*===============================================
  CONTENEDOR PRINCIPAL DEL QR
===============================================*/
#gsl-qr-container {
  scale: 0.9;
  text-align: center;
  width: 300px;
  height: 410px;
  margin: 0 auto;
  padding: 0;
  border: 2px solid #000000;
  border-radius: 20px;
}

.gsl-qr-code img {
  width: 100% !important;
}

/* Sección Inferior del QR (dos columnas) */
.gsl-qr-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  margin-top: -4em;
}

.gsl-qr-text-column {
  width: 100%;
}

p.gsl-qr-text {
  font-family: "Montserrat";
  font-size: 100px;
  font-weight: 600;
  margin: 0;
  color: black;
}

.gsl-qr-image-column img {
  max-width: 80%;
  height: auto;
  margin-left: -2em;
}

/*===============================================
  SECCIÓN DE DESCARGAS
===============================================*/
.gsl-qr-download-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 0;
  margin-top: 20px; /* Un poco de separación respecto al QR */
}

/* Título "DESCARGAS" */
.gsl-downloads-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1em;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Fila de los 3 botones: PDF, PNG, SOLO QR */
.gsl-qr-download-types {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/*-----------------------------------------------
  Botones (PDF, PNG, SOLO QR)
-----------------------------------------------*/
.gsl-generate-pdf-btn,
.gsl-generate-png-btn,
.gsl-download-qr-solo-btn {
  /*flex: 1;*/
  transition: all 0.3s ease;
  padding: 10px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8em;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* PDF -> rojo */
.gsl-generate-pdf-btn {
  background-color: #ec1616;
}
.gsl-generate-pdf-btn:hover {
  background-color: rgba(119, 0, 0, 0.7);
}

/* PNG -> azul oscuro */
.gsl-generate-png-btn {
  background-color: #1b449c;
}
.gsl-generate-png-btn:hover {
  background-color: #1b449cbe;
}

/* SOLO QR -> celeste */
.gsl-download-qr-solo-btn {
  background-color: #2eb2ff;
}
.gsl-download-qr-solo-btn:hover {
  background-color: #2eb2ffbd;
}

/*-----------------------------------------------
  Enlace "Ver medidas de ejemplo"
-----------------------------------------------*/
.gsl-qr-medidas-link {
  margin-top: 5px;
  font-weight: 400;
}

.gsl-download-qr-ejemplo {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9em;
  color: #333;
  text-decoration: underline;
}
.gsl-download-qr-ejemplo:hover {
  color: #0073aa;
}

/* Ajuste de margen en pantallas muy anchas (desktop grande) */
@media screen and (min-width: 1600px) {
  .gsl-qr-download-container {
    margin: 0;
  }
}

/*==========================================================
  SINGLE DOCUMENTO
  (Estilos para documentos individuales)
==========================================================*/
.gsl-documento-relacionado {
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  text-align: center;
}

/* Botón general para documentos */
.gsl-boton {
  display: inline-block;
  padding: 10px 20px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}
.gsl-boton:hover {
  background: #005177;
}

/*==========================================================
  SHORTCODE: PRODUCTOS RELACIONADOS A CLIENTE
==========================================================*/

/* Contenedor para cajas de productos relacionados */
.gsl-productos-relacionados-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 10px !important;
}

/* Caja individual de producto */
.gsl-producto-box {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  width: calc(50% - 20px);
  box-sizing: border-box;
}

/* Imagen del producto */
.gsl-producto-imagen img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

/* Botón para ver el producto */
.gsl-ver-producto {
  display: inline-block;
  padding: 8px 12px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
}
.gsl-ver-producto:hover {
  background: #005177;
}

/*==========================================================
  DOCUMENTOS RELACIONADOS (Dual List)
==========================================================*/

/*----------------------------------------------------------
  Contenedor principal para listas duales
----------------------------------------------------------*/
#dual-list-container {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

/* Cada recuadro de lista */
.list-box {
  flex: 1;
  border: 1px solid #ccc;
  background: #f9f9f9;
  border-radius: 4px;
  padding: 10px;
}

/* Títulos de cada lista */
.list-box h4 {
  margin-top: 0;
  text-align: center;
  font-size: 1.1em;
  color: #333;
}

/* Input de búsqueda en la lista "unassigned" */
#unassigned-box input[type="text"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Lista sin estilo (sin bullets) */
.list-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  min-height: 200px;
}

/* Elementos individuales de la lista */
.list-box li {
  background: #fff;
  padding: 8px 10px;
  margin-bottom: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: move;
  transition: background 0.3s;
}

.list-box li:hover {
  background: #f0f0f0;
}

/*----------------------------------------------------------
  Controles de paginación para las listas
----------------------------------------------------------*/
#pagination-controls {
  text-align: center;
  margin-top: 10px;
}

#pagination-controls button {
  padding: 5px 10px;
  border: none;
  background: #0073aa;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
}

#pagination-controls button:disabled {
  background: #ccc;
  cursor: default;
}

#pagination-controls span {
  padding: 0 10px;
  font-weight: bold;
}

/*----------------------------------------------------------
    Mis Productos
----------------------------------------------------------*/
.gsl-productos-search-form {
  margin-bottom: 20px;
  text-align: center;
}

.gsl-productos-search-form input[type="text"] {
  padding: 8px;
  width: 250px;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 10px;
  font-size: 14px;
}

.gsl-productos-search-form button {
  padding: 8px 15px;
  border: none;
  background-color: #0073aa;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.gsl-productos-search-form button:hover {
  background-color: #006799;
}

.gsl-productos-search-form a {
  margin-left: 10px;
  color: #0073aa;
  text-decoration: none;
  font-size: 14px;
}

.gsl-productos-search-form a:hover {
  text-decoration: underline;
}

.gsl-productos-relacionados-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gsl-producto-box {
  border: 1px solid #ddd;
  padding: 15px;
  width: 300px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.gsl-producto-box:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.gsl-producto-imagen {
  margin-bottom: 10px;
  text-align: center;
}

.gsl-producto-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.gsl-producto-detalle p {
  margin: 5px 0;
  font-size: 18px;
  color: #333;
}

.gsl-producto-detalle a.button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
}

.gsl-producto-detalle a.button:hover {
  background-color: #006799;
}

.gsl-productos-relacionados-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px;
}

.gsl-producto-box {
  width: calc(33.333% - 14px); /* 3 por fila considerando el gap */
  box-sizing: border-box;
}

/* Responsivo */
@media (max-width: 1024px) {
  .gsl-producto-box {
    width: calc(50% - 10px); /* 2 por fila */
  }
}

@media (max-width: 768px) {
  .gsl-producto-box {
    width: 100%; /* 1 por fila */
  }
}

.gsl-pagination {
  margin-top: 20px;
  text-align: center;
}

.gsl-pagination ul {
  list-style: none;
  padding: 0;
  display: inline-block;
}

.gsl-pagination li {
  display: inline-block;
  margin: 0 5px;
}

.gsl-pagination a,
.gsl-pagination span {
  display: block;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #0073aa;
  text-decoration: none;
  font-size: 14px;
}

.gsl-pagination a:hover {
  background-color: #f0f0f0;
}

/*----------------------------------------------------------
    Documentos bulk import
----------------------------------------------------------*/

div#drop-area {
  max-width: 70%;
}

#gsl-file-list {
  list-style-type: auto; /* Removes bullets */
  padding-left: 0;
  color: #333;
  max-width: 70%;
  border: 1px solid #c1c1c1;
  padding: 2em 2em 1em 4em;
  border-radius: 5px;
}

#gsl-file-list li:nth-child(odd) {
  background-color: #ffffff; /* White for odd rows */
}

#gsl-file-list li:nth-child(even) {
  background-color: #f9f9f9; /* Light gray for even rows */
}

#gsl-file-list li {
  padding: 2px; /* Space between rows */
  border-bottom: 1px solid #ddd; /* Optional: adds a light border for separation */
}

#gsl-file-list li {
  position: relative; /* So we can position the trash icon */
  padding: 2px;
  border-bottom: 1px solid #ddd;
}

.trash-icon {
  position: absolute;
  right: 10px; /* Align it to the right end */
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #b40000 !important; /* Change to whatever color you like */
  font-size: 12px; /* Adjust the size of the icon */
}

.trash-icon:hover {
  color: darkred !important; /* Hover effect */
}

/*----------------------------------------------------------
   Productos Cliente Particular 
----------------------------------------------------------*/
div#col-productos_cliente_particular {
  margin: 2em auto;
  max-width: 85%;
}
.gslp-search-form {
  margin-bottom: 20px;
  text-align: center;
}

.gslp-search-form .gslp-search-input,
.gslp-search-form input[type="text"] {
  padding: 8px;
  width: 250px;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 10px;
  font-size: 14px;
}

.gslp-search-form .gslp-filter-btn,
.gslp-search-form button {
  padding: 8px 15px;
  border: none;
  background-color: #1b449c;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.gslp-search-form .gslp-filter-btn:hover,
.gslp-search-form button:hover {
  background-color: #006799;
}

.gslp-search-form .gslp-clear-link,
.gslp-search-form a {
  margin-left: 10px;
  color: #0073aa;
  text-decoration: none;
  font-size: 14px;
}

.gslp-search-form .gslp-clear-link:hover,
.gslp-search-form a:hover {
  text-decoration: underline;
}

.gslp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gslp-card {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  width: calc(50% - 20px);
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.gslp-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.gslp-thumb {
  margin-bottom: 10px;
  text-align: center;
}

.gslp-thumb img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.gslp-card-body p {
  margin: 4px 0;
  font-size: 16px;
  color: #5a5963;
}

.gslp-view-btn,
.gslp-card-body a.button {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  background: #1b449c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.gslp-view-btn:hover,
.gslp-card-body a.button:hover {
  background: #006799;
}

/* segunda definición de contenedor (mismo estilo que arriba) */
.gslp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px;
}

/* ancho de tarjeta por fila */
.gslp-card {
  width: calc(33.333% - 14px); /* 3 por fila considerando el gap */
  box-sizing: border-box;
}

.gslp-pagination {
  margin-top: 20px;
  text-align: center;
}

.gslp-pagination ul {
  list-style: none;
  padding: 0;
  display: inline-block;
}

.gslp-pagination li {
  display: inline-block;
  margin: 0 5px;
}

.gslp-pagination a,
.gslp-pagination span {
  display: block;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #0073aa;
  text-decoration: none;
  font-size: 14px;
}

.gslp-pagination a:hover {
  background-color: #f0f0f0;
}
/* Select de marca */
.gslp-search-form .gslp-brand-select {
  padding: 8px 36px 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  min-width: 180px;
  max-width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin-right: 10px;

  /* flecha personalizada (SVG inline) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath fill='%230073aa' d='M7 8L0 0h14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 8px;
}

/* enfoque y hover coherente con botones e inputs */
.gslp-search-form .gslp-brand-select:focus,
.gslp-search-form .gslp-brand-select:hover {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.06);
}

/* Opciones legibles */
.gslp-search-form .gslp-brand-select option {
  padding: 8px;
  color: #333;
  background: #fff;
}

/* Si necesitás que el select se comporte como "pill" en pantallas amplias */
.gslp-search-form .gslp-brand-select.gslp-pill {
  border-radius: 999px;
  padding-left: 16px;
  padding-right: 44px;
}

/* Responsivo */
@media (max-width: 1024px) {
  .gslp-card {
    width: calc(50% - 10px); /* 2 por fila */
  }
}

@media (max-width: 768px) {
  .gslp-card {
    width: 100%; /* 1 por fila */
  }
}
/* En móvil: ocupar ancho completo (si input ya está full-width) */
@media (max-width: 820px) {
  .gslp-search-form .gslp-brand-select {
    flex-basis: 100%;
    min-width: 0;
  }
}
