/* ============================================== Reset básico =============================================== */
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: #f5f6f8;
  color: #333;
  margin: 0;
}

/* ===== Título ===== */
h1 {
  margin-bottom: 16px;
  font-size: 24px;
}

h2 {
  margin: 15px 0px 10px;
}

.h1-container,
.cinta-container {
  width: 80%;
  margin: 0 auto;
}

/* ===== Contenedor de la tabla ===== */
.table-container {
  /* ALTO DEFINIDO */
  margin: 0 auto;
  background: lightgrey;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: auto;
}

.table-container thead th {
  position: sticky;
  top: 0;
}

.table-flexible {
  width: 80%;
  height: 400px;
  font-size: 14px;
}

.table-modal {
  height: 300px;
}

table {
  border-collapse: collapse;
  table-layout: fixed;
}

/* ===== Tabla ===== */

.limitada {
  width: 100%;
}

table.flexible {
  width: max-content;
}

/* ===== Celdas ===== */
th,
td {
  white-space: nowrap;
}

/* ===== Encabezado ===== */
th {
  text-align: center;
  background-color: #000;
  color: #fff;
}

/* ===== Filas ===== */
.tabla tbody tr {
  cursor: pointer;
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
}

.tabla tbody tr:hover {
  background: #eaeaea !important;
}


/* ===== Texto truncado ===== */
.cell {
  padding: 6px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Remito */
.w_350 {
  width: 350px;
  max-width: 350px;
}

.w_300 {
  width: 300px;
  max-width: 300px;
}

.w_280 {
  width: 280px;
  max-width: 280px;
}

.w_250 {
  width: 250px;
  max-width: 250px;
}

.w_230 {
  width: 230px;
  max-width: 230px;
}

.w_200 {
  width: 200px;
  max-width: 200px;
}

.w_160 {
  width: 160px;
  max-width: 160px;
}

.w_140 {
  width: 140px;
  max-width: 140px;
}

.w_120 {
  width: 120px;
  max-width: 120px;
}

.w_100 {
  width: 100px;
  max-width: 100px;
}

.w_40 {
  width: 40px;
  max-width: 40px;
}

.w_p_10 {
  width: 10%;
}

.w_p_20 {
  width: 20%;
}

.w_p_30 {
  width: 30%;
}

.w_p_40 {
  width: 40%;
}

.w_p_50 {
  width: 50%;
}

.auto {
  width: auto;
}

.right {
  text-align: right;
}

.center {
  text-align: center;
}


/* ===== Botón inferior ===== */
.table-actions {
  padding: 12px 0;
  text-align: right;
}

.table-actions button {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

.table-actions button:hover {
  background: #1e4fd8;
}


/* ===== OVERLAY ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.solidgray{
  background: grey;
}

.overlay.active {
  display: flex;
}

/* ===== MODAL ===== */
.modal {
  background: #fff;
  width: 50%;
  max-height: 85%;
  overflow: auto;
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal h2 {
  text-align: center;
  margin: 0 0 15px;
  font-size: 20px;
  font-weight: bold;
}

/* ===== FORM ===== */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
}

.form-group {
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.big {
  flex: 3;
}

.form-group.medium {
  flex: 2;
}

.radio-form {
  display: flex;
  gap: 10px;
}

.form-group .label-form {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 4px;
}

.form-group .form-input,
.form-group .form-select {
  width: 100%;
  max-width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid black;
  border-radius: 5px;
  font-size: 14px;
}

/* ===== BUTTONS ===== */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-cancel {
  background: #d0d0d0;
  color: #000;
}

.btn-conf {
  background: #7F7F7F;
}

.btn-save {
  background: #4caf50;
  color: #fff;
}

.btn-export {
  background: #2c582e;
  color: #fff;
}

.btn-masive {
  background: #4d8eb9;
  color: #fff;
}

.btn-import {
  background: #a3a243;
  color: #fff;
}

.btn-table {
  background: #083475;
  color: #fff;
}

.btn-save:hover {
  background: #43a047;
}

/* ===== DEMO BUTTON ===== */
.open-btn {
  margin: 40px;
  padding: 10px 20px;
  font-size: 15px;
}

.money {
  position: relative;
}

.money input {
  text-align: end;
}

.money span {
  user-select: none;
  position: absolute;
  height: 0px;
  margin: 5px 8px;
  color: black;
}

.total-group {
  align-items: flex-end;
  text-align: right;
}

.calc {
  font-weight: bold;
  background-color: #92D050;
  color: black;
}

.search {
  width: 50%;
  position: relative;
}

.searcher {
  width: 100%;
  height: 36px;
  padding: 0 75px 0 10px;
  font-size: 14px;
  box-sizing: border-box;
}

.check-content {
  position: absolute;
  right: 10px;
  font-size: 13px;
  gap: 2px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  cursor: pointer;
  display: flex;
}

.spacer {
  height: 12px;
}

.operations {
  display: flex;
  gap: 10px;
}

.action_btn,
.mi_extra {
  width: 36px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}


.action_btn:not(:disabled):hover,
mi_extra:not(:disabled):hover {
  transform: scale(1.1);
}

.icon_btn {
  width: 24px;
  object-fit: contain;
}

.create {
  background: #1ED053;
}

.edit {
  background: #f0ad4e;
}

.delete {
  background: #dc3545;
}

.restore {
  background: #20afa3 !important;
}

.view {
  background: #007bff;
}

.table {
  background: #1ac260;
}

.addToTable {
  background: #20afa3;
}

.actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.action_btn:disabled,
.mi_extra:disabled {
  background: #b5b5b5;
  cursor: auto;
  opacity: 0.6;
}

.btn-save:disabled {
  background: #b5b5b5;
  color: black;
  cursor: auto;
  opacity: 0.6;
}

.selected-row {
  background-color: #d0e7ff !important;
}

.spinner {
  border: 8px solid #f3f3f3;
  /* Fondo del spinner */
  border-top: 8px solid #3498db;
  /* Color de la parte giratoria */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* Ocultar spinner */
.hidden {
  display: none !important;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#spinner-over {
  z-index: 1000;
  display: block;
}

.checker {
  cursor: pointer;
}

.deteler {
  max-width: 450px;
}

hr {
  border: none;
  height: 1px;
  background-color: #ddd;
  margin: 20px 0;
}

.del-tittle {
  font-weight: bold;
  font-size: 1.2em;
  text-align: left;
  color: #333;
}

.tabla tbody tr.hidden-row {
  background-color: #FFE6E6;
}

.tabla tbody tr.hidden-row:hover {
  background: #FFCCCC !important;
}

.hidden-row.selected-row {
  background-color: #febcbc !important;
}

.form-col {
  display: flex;
  gap: 20px;
}

.form-col>.form-group {
  flex: 1;
  min-width: 0;
}

.limit_txt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.limit_space {
  width: 100%;
  max-width: 100%;
  font-size: 14px;
  display: flex;
  gap: 10px;
}

.feature-container {
  height: 200px;
  background-color: lightgrey;
  border-radius: 8px;
}

.mis_detalles {
  font-size: 14px;
  margin-bottom: 6px;
}

.limiter {
  min-width: 0;
  max-width: 100%;
}

.calc_cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order_btn {
  padding: 6px 3px;
  cursor: pointer;
}

.order-menu {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.order-menu .option {
  padding: 8px 12px;
  cursor: pointer;
}

.order-menu .option:hover {
  background: #eee;
}

.form-bottom {
  display: flex;
  gap: 12px;
}


/* ESTOS SON LOS NUEVO ESTILOS PERO DEL BUSCADOR*/

.el_modal_img {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.contener_div {
  max-width: 80%;
  position: relative;
  background: rgb(255, 255, 255);
  padding: 10px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px;
}

.imagen_final {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  border-radius: 8px;
}

.la_x_img {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 20px;
  border: 2px solid white;
  background: black;
  cursor: pointer;
  color: white;
  padding: 1px 10px 5px;
  border-radius: 25px;
}

.nav {
  position: fixed;
  /* Siempre visibles en pantalla */
  z-index: 9999;
  /* Por encima de todo */
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  border: none;
  font-size: 6em;
  padding: 10px 10px 22px 10px;
  cursor: pointer;
}

.nav.prev {
  left: 15%;
}

.nav.next {
  right: 15%;
}

image-visor::part(container) {
  border-radius: 0%;
  max-height: 250px;
  background: white;
}

image-visor::part(info) {
  top: 10px;
  right: 10px;
  left: auto;
  bottom: auto;
}

feature-table::part(th) {
  background-color: black;
  color: white;
}

feature-table::part(table) {
  font-size: 14px;
  text-align: center;
  border-collapse: collapse;
}
feature-table::part(tr) {
  cursor: pointer;
  background: white;
  border-bottom: 1px solid #e0e0e0;
}
#mass_prices::part(td-0) {
    text-align: center;
}
#mass_prices::part(td-2), #mass_prices::part(td-3) {
    text-align: right;
}

#_variantes::part(table) {
  width: max-content;
}

#ml_precios::part(th-1),
#ml_precios::part(td-1),
#ml_precios::part(th-3),
#ml_precios::part(td-3) {
  display: none;
}

.prod-feature {
  flex: 1;
  overflow-x: auto;
  border-radius: 8px;
  height: 160px;
  background-color: lightgrey;
}

.the_left {
  left: 0;
}

.the_left_2 {
  padding: 0px 10px 0px 25px !important;
}

.sin-flechas::-webkit-outer-spin-button,
.sin-flechas::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sin-flechas {
  -moz-appearance: textfield;
}

@media screen and (max-width: 980px) {
  .modal {
    width: 70%;
  }
}