/* Consulta de inventario (app móvil). Identidad CTI: Navy #0B1B4B, Lima #C4E000, Poppins. */

.inv-lead {
  margin-top: 0;
}

.inv-dock label {
  color: #fff;
}

.inv-field {
  position: relative;
}

.inv-dock #inv-q {
  min-height: 3.9rem;
  font-family: inherit;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.inv-dock #inv-q::placeholder {
  text-transform: none;
  font-size: 1rem;
  font-weight: 500;
  color: #8fa0b8;
}

.inv-dock .scan-actions .btn {
  flex: 1 1 0;
  min-height: 3rem;
}

.inv-dock .feedback.ok {
  background: #e7f6d4;
  color: var(--ok);
}

.inv-dock .feedback.warn {
  background: #fff6d8;
  color: var(--warn);
}

.inv-suggest .inv-hit-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.inv-history {
  margin: -0.2rem 0 0.8rem;
}

.inv-history-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.inv-history-list {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.inv-hist {
  flex: 0 0 auto;
  display: grid;
  gap: 0.05rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.inv-hist small {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Resultados: espacio abajo para que el FAB de Don Pepe nunca tape un botón. */
.inv-results {
  padding-bottom: 5.5rem;
}

.inv-hero {
  border: 0;
  background: var(--navy);
  color: #fff;
  box-shadow: inset 0 -4px 0 var(--lime);
}

.inv-hero .inv-meta,
.inv-hero .inv-desc {
  color: #d5dbe6;
}

.inv-hero .inv-meta strong {
  color: #fff;
}

.inv-hero a {
  color: var(--lime);
}

.inv-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  color: #d5dbe6;
}

.inv-code {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  word-break: break-all;
}

.inv-desc {
  margin: 0.15rem 0 0.35rem;
  font-weight: 500;
}

.inv-meta {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #5c6b86;
}

.inv-kind {
  display: inline-flex;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--lime);
  color: var(--navy);
}

.inv-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.75rem 0 0.2rem;
}

.inv-stat {
  display: grid;
  gap: 0.05rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.inv-stat span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d5dbe6;
}

.inv-stat strong {
  font-size: 1.45rem;
  line-height: 1.1;
  color: #fff;
}

.inv-stat-disponible strong {
  color: var(--lime);
}

.inv-stat-held:not(.is-zero) {
  background: rgba(253, 230, 234, 0.2);
}

.inv-stat.is-zero strong {
  color: #8fa0b8;
}

.inv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.inv-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eef1f6;
  color: var(--navy);
}

.inv-chip-disponible {
  background: #e7f6d4;
  color: var(--ok);
}

.inv-chip-reservado {
  background: #fff6d8;
  color: var(--warn);
}

.inv-chip-held {
  background: #fde6ea;
  color: var(--err);
}

.inv-chip-recibo {
  background: #e3ecff;
  color: #1f3e8c;
}

.inv-chip-face,
.inv-chip-type {
  background: var(--lime);
  color: var(--navy);
}

.inv-line-head,
.inv-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.inv-row-head {
  align-items: center;
}

.inv-row-head strong {
  margin-right: auto;
}

.inv-qty {
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.inv-qty small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.inv-open {
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  appearance: none;
}

.inv-line-title {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
}

.inv-line-title strong {
  font-size: 1.05rem;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.inv-line-title span {
  color: #5c6b86;
  font-size: 0.9rem;
}

.inv-row {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  min-height: 3.25rem;
  border-left: 4px solid var(--navy);
}

.inv-row > span:not(.inv-row-head) {
  color: #5c6b86;
  font-size: 0.88rem;
}

.inv-option {
  border-left-color: var(--lime);
}

.inv-match {
  font-size: 0.78rem !important;
  font-weight: 600;
}

.inv-where {
  display: grid;
  gap: 0.05rem;
  width: 100%;
  margin: 0.7rem 0 0.2rem;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--lime);
  border-radius: 10px;
  background: rgba(196, 224, 0, 0.12);
  color: #fff;
}

.inv-where span {
  font-size: 0.78rem;
  color: #d5dbe6;
}

.inv-where strong {
  font-size: 1.3rem;
}

.inv-kardex {
  /* Alineado a la izquierda y más angosto que la tarjeta: la esquina derecha
     queda libre para el FAB de Don Pepe. */
  width: auto;
  min-width: 11rem;
  max-width: calc(100% - 7.5rem);
  margin-top: 0.7rem;
}

.inv-hero .inv-kardex {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--navy);
}

.inv-bar {
  position: relative;
  height: 0.7rem;
  margin: 0.55rem 0 0.2rem;
  border-radius: 999px;
  background: #eef1f6;
  overflow: hidden;
}

.inv-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--navy);
  border-radius: 999px;
}

.inv-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--err);
}

.inv-face-bajo_minimo .inv-bar span,
.inv-face-vacio .inv-bar span {
  background: var(--err);
}

.inv-noface {
  margin: 0.2rem 0 0.4rem;
}

/* Inventario por lote (061): saldo separado por lote + caducidad. */
.inv-lots {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
.inv-lot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border: 1px solid #d5dbe6;
  border-left: 3px solid #c4e000;
  border-radius: 8px;
  background: #f8f9fb;
  font-size: 0.86rem;
}
.inv-lot-code strong {
  color: #0b1b4b;
}
.inv-lot-code {
  min-width: 0;
  overflow-wrap: anywhere;
}
.inv-lot-exp {
  color: #5b6b84;
  white-space: nowrap;
}
.inv-lot-qty {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.inv-lot-free {
  font-weight: 500;
  color: #5b6b84;
}
@media (max-width: 380px) {
  .inv-lot {
    grid-template-columns: 1fr auto;
  }
  .inv-lot-exp {
    grid-column: 1 / 2;
    grid-row: 2;
  }
}
