/* Administrar Lotes (#m-lotes-vista) — SERIO / NEW MODAL / PEBBLE */
#m-lotes-vista.lotes-vista-modal.bitacora-serio-v2{
  --lotes-vista-gap: 9px;
}
#m-lotes-vista.lotes-vista-modal .bitacora-mbox{
  padding: 0;
  gap: 0;
  border-radius: 14px;
  border: 1px solid #d1d9e2;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  max-width: 520px;
  width: min(96vw, 520px);
}
#m-lotes-vista.lotes-vista-modal .modal-serio-body.lotes-vista-body{
  background: #f8fafc;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 10px;
  gap: 9px !important;
  row-gap: 9px !important;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(72vh, 640px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Toolbar */
#m-lotes-vista .lotes-vista-toolbar{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
}
#m-lotes-vista .lotes-vista-toolbar__hint{
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--texto-suave, #64748b);
}

/* Botones — misma piel que Tools «Ver detalle» (.tools-sync-strip__detail) */
#m-lotes-vista .lotes-vista-btn-nuevo,
#m-lotes-vista .lotes-vista-btn,
#m-lotes-vista button.btn.bitacora-btn.btn-gris-ok.lotes-vista-btn-nuevo,
#m-lotes-vista button.btn.bitacora-btn.btn-gris-ok.lotes-vista-btn,
#m-lotes-vista button.btn.bitacora-btn.lotes-vista-btn{
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  border: var(--manto-btn-gris-ok-border) !important;
  background: var(--manto-btn-gris-ok-bg) !important;
  background-image: var(--manto-btn-gris-ok-bg) !important;
  color: var(--manto-btn-gris-ok-color) !important;
  -webkit-text-fill-color: var(--manto-btn-gris-ok-color) !important;
  box-shadow: var(--manto-btn-gris-ok-shadow) !important;
}
#m-lotes-vista .lotes-vista-btn-nuevo:hover,
#m-lotes-vista .lotes-vista-btn:hover,
#m-lotes-vista button.btn.lotes-vista-btn-nuevo:hover,
#m-lotes-vista button.btn.lotes-vista-btn:hover{
  border: var(--manto-btn-gris-ok-border-hover) !important;
  box-shadow: var(--manto-btn-gris-ok-shadow-hover) !important;
}
#m-lotes-vista .lotes-vista-btn-nuevo:active,
#m-lotes-vista .lotes-vista-btn:active{
  opacity: 0.94;
}
#m-lotes-vista .lotes-vista-btn-nuevo-ico,
#m-lotes-vista .lotes-vista-btn-ico{
  width: 22px !important;
  height: 22px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  margin: 0 !important;
}
#m-lotes-vista .lotes-vista-btn:disabled,
#m-lotes-vista .lotes-vista-btn-nuevo:disabled{
  opacity: 0.55;
  cursor: not-allowed;
}
#m-lotes-vista .lotes-vista-btn--ghost,
#m-lotes-vista button.btn.bitacora-btn.lotes-vista-btn--ghost{
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 1px solid #cbd5e1 !important;
  color: var(--texto-base, #334155) !important;
  -webkit-text-fill-color: var(--texto-base, #334155) !important;
}
#m-lotes-vista .lotes-vista-btn--ghost:hover,
#m-lotes-vista button.btn.lotes-vista-btn--ghost:hover{
  border-color: #94a3b8 !important;
  box-shadow: none !important;
}
#m-lotes-vista .lotes-vista-btn--sm{
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
}

/* Cards / forms */
#m-lotes-vista .lotes-vista-form.ani-serio-v2-card,
#m-lotes-vista .lotes-vista-membresia.ani-serio-v2-card,
#m-lotes-vista .lotes-vista-card.ani-serio-v2-card{
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
#m-lotes-vista .lotes-vista-form__tit,
#m-lotes-vista .lotes-vista-membresia__tit{
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--texto-fuerte, #0f172a);
}
#m-lotes-vista .lotes-vista-form .flbl,
#m-lotes-vista .lotes-vista-membresia .flbl{
  display: block;
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--texto-base, #334155);
}
#m-lotes-vista .lotes-vista-form .fi,
#m-lotes-vista .lotes-vista-membresia .fi{
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--texto-fuerte, #0f172a);
  font-family: inherit;
}
#m-lotes-vista .lotes-vista-form .fi:focus,
#m-lotes-vista .lotes-vista-membresia .fi:focus{
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.28);
}
#m-lotes-vista .lotes-vista-form .fr{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
#m-lotes-vista .lotes-vista-form .fg{
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}
#m-lotes-vista .lotes-vista-form .fg--full{
  flex: 1 1 100%;
  margin-bottom: 10px;
}
#m-lotes-vista .lotes-vista-form__foot,
#m-lotes-vista .lotes-vista-membresia__foot{
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: flex-end;
}
#m-lotes-vista .lotes-vista-form__foot .lotes-vista-btn,
#m-lotes-vista .lotes-vista-membresia__foot .lotes-vista-btn{
  flex: 0 0 auto !important;
  min-width: 110px;
}
#m-lotes-vista .lotes-vista-form input[type="color"].fi{
  height: 40px;
  padding: 3px;
}

/* Lista de lotes */
#m-lotes-vista .lotes-vista-card.is-archivado{
  opacity: 0.72;
}
#m-lotes-vista .lotes-vista-card__top{
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
#m-lotes-vista .lotes-vista-card__dot{
  width: 12px;
  height: 12px;
  margin-top: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent);
}
#m-lotes-vista .lotes-vista-card__main{
  flex: 1;
  min-width: 0;
}
#m-lotes-vista .lotes-vista-card__nombre{
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  color: var(--texto-fuerte, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#m-lotes-vista .lotes-vista-card__meta{
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--texto-suave, #64748b);
}
#m-lotes-vista .lotes-vista-card__count{
  text-align: right;
  flex: 0 0 auto;
  padding-left: 6px;
}
#m-lotes-vista .lotes-vista-card__count strong{
  display: block;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  color: var(--texto-fuerte, #0f172a);
  font-variant-numeric: tabular-nums;
}
#m-lotes-vista .lotes-vista-card__count span{
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--texto-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
#m-lotes-vista .lotes-vista-card__foot{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
#m-lotes-vista .lotes-vista-card__acts{
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#m-lotes-vista .lotes-vista-chip{
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
  border: 1px solid transparent;
}
#m-lotes-vista .lotes-vista-chip--ok{
  background: #ecfdf5;
  color: #166534;
  border-color: #bbf7d0;
}
#m-lotes-vista .lotes-vista-chip--off{
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
#m-lotes-vista .lotes-vista-chip--legacy{
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}
#m-lotes-vista .lotes-vista-chip--arch{
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
}
#m-lotes-vista .lotes-vista-empty{
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--texto-suave, #64748b);
}
#m-lotes-vista .lotes-vista-sin-asignar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-style: dashed;
}
#m-lotes-vista .lotes-vista-membresia__sub{
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--texto-suave, #64748b);
}
#m-lotes-vista .lotes-vista-miembros{
  max-height: 310px;
  overflow: auto;
  border: 1px solid var(--gris-200, #e2e8f0);
  border-radius: 10px;
  background: #ffffff;
}
#m-lotes-vista .lotes-vista-miembro{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-bottom: 1px solid #f1f5f9;
  margin: 0;
  cursor: pointer;
}
#m-lotes-vista .lotes-vista-miembro:last-child{
  border-bottom: none;
}
#m-lotes-vista .lotes-vista-miembro input{
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
#m-lotes-vista .lotes-vista-miembro__txt{
  flex: 1;
  min-width: 0;
}
#m-lotes-vista .lotes-vista-miembro__txt strong{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--texto-fuerte, #0f172a);
}
#m-lotes-vista .lotes-vista-miembro__txt small{
  color: var(--texto-suave, #64748b);
}
#m-lotes-vista .lotes-vista-miembros-empty{
  margin: 0;
  padding: 16px;
  text-align: center;
  color: var(--texto-suave, #64748b);
}
