/* Los planos y las fotos de un renglón del pedido.
   Va aparte del CSS de cada pantalla porque lo comparten tres: "Pedir a
   compras", el detalle del pedido en el tablero, y "Pedir" en el Pañol. */

/* El + que abre el selector. Es del alto de un renglón para que quede alineado
   con la cantidad y la descripción, no flotando en el medio. */
.adj-mas {
  border: 1px dashed var(--border-soft);
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  width: 32px; height: 38px;
  font-size: 17px; line-height: 1;
  cursor: pointer; font-family: inherit;
  display: grid; place-items: center;
  transition: border-color .12s, color .12s, background .12s;
}
.adj-mas:hover {
  border-color: var(--naranja); color: var(--naranja);
  background: color-mix(in srgb, var(--naranja) 8%, transparent);
  border-style: solid;
}
/* Con algo cargado deja de ser una invitación y pasa a ser un contador. El
   clip más el número no entran en 32 px de ancho: se le da lugar. */
.adj-mas.tiene {
  border-style: solid; border-color: var(--naranja);
  color: var(--naranja); font-weight: 800; font-size: 12px;
  width: auto; min-width: 42px; padding: 0 7px;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  white-space: nowrap;
}

.adj-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }

.adj-chip {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--border-soft); border-radius: 9px;
  background: var(--bg-card); padding: 4px 8px 4px 4px;
  max-width: 230px; cursor: pointer;
}
.adj-chip:hover { border-color: var(--naranja); }
.adj-chip img {
  width: 34px; height: 34px; object-fit: cover;
  border-radius: 6px; display: block; background: var(--bg-subtle, #f0ece7);
}
.adj-chip .adj-pdf {
  width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center;
  background: color-mix(in srgb, #c0392b 12%, transparent);
  color: #c0392b; font-size: 9px; font-weight: 800; letter-spacing: .04em;
}
.adj-chip .adj-nom {
  font-size: 11.5px; color: var(--text-strong); line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.adj-chip .adj-nom span {
  display: block; font-size: 10px; color: var(--text-muted); font-weight: 400;
}
.adj-chip .adj-x {
  border: 0; background: none; color: var(--text-muted); cursor: pointer;
  font-size: 12px; padding: 2px 3px; line-height: 1; flex: 0 0 auto;
}
.adj-chip .adj-x:hover { color: #c0392b; }

/* El visor de una foto a pantalla completa. */
.adj-visor {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(20, 16, 11, .88);
  display: grid; place-items: center; padding: 34px 20px 54px;
  cursor: zoom-out;
}
.adj-visor img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 8px; box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}
.adj-visor .adj-cerrar {
  position: absolute; top: 14px; right: 16px;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12);
  color: #fff; border-radius: 8px; width: 34px; height: 34px;
  font-size: 15px; cursor: pointer; font-family: inherit;
}
.adj-visor .adj-cerrar:hover { background: rgba(255, 255, 255, .24); }
.adj-visor .adj-pie {
  position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
  color: rgba(255, 255, 255, .82); font-size: 12.5px; padding: 0 20px;
}
