.cc-pn__entrada { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.cc-pn__entrada:empty { display: none; }
.cc-hoja--nuevo .cc-hoja__panel { max-height: 92vh; outline: none; padding-bottom: 0; }
@media (min-width: 900px) {
  .cc-hoja--nuevo .cc-hoja__panel { left: max(16px, calc(50% - 360px)); right: max(16px, calc(50% - 360px)); }
}
.cc-pn { padding: 4px 8px 0; }
.cc-pn__cab { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.cc-pn__cab .cc-confirmar__titulo { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.cc-pn__btn {
  flex: none; min-height: 56px; padding: 0 18px;
  border: 1px solid var(--pos-v3-linea, var(--mrj-sand)); border-radius: var(--pos-r-control, 14px);
  background: var(--pos-card, #fff); color: var(--mrj-ink);
  font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
}
.cc-pn__btn--principal { background: var(--mrj-orange, #F59800); border-color: var(--mrj-orange, #F59800); color: #24160F; }
.cc-pn__btn:disabled { opacity: .5; cursor: default; }
.cc-pn__buscar {
  box-sizing: border-box; width: 100%; min-height: 56px; margin: 0 0 10px; padding: 0 16px;
  border: 1px solid var(--pos-v3-linea, var(--mrj-sand)); border-radius: var(--pos-r-control, 14px);
  background: var(--pos-card, #fff); color: var(--mrj-ink); font: inherit; font-size: 17px;
}
.cc-pn__provs, .cc-pn__prods { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
@media (min-width: 640px) { .cc-pn__provs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-pn__prov {
  width: 100%; min-height: 56px; padding: 10px 16px; text-align: left;
  border: 1px solid var(--pos-v3-linea, var(--mrj-sand)); border-radius: var(--pos-r-control, 14px);
  background: var(--pos-card, #fff); color: var(--mrj-ink);
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; overflow-wrap: anywhere;
}
.cc-pn__prov:active, .cc-pn__mas:active { background: var(--cc-acento-suave, rgba(245, 152, 0, .16)); }
.cc-pn__vacio { margin: 8px 0 16px; font-size: 16px; color: var(--pos-v3-suave, #66574B); }
.cc-pn__prod {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px; border: 1px solid var(--pos-v3-linea, var(--mrj-sand)); border-radius: 16px; background: var(--pos-card, #fff);
}
.cc-pn__prod.is-elegido { border-color: var(--mrj-orange, #F59800); box-shadow: inset 0 0 0 1px var(--mrj-orange, #F59800); }
.cc-pn__info { display: grid; gap: 3px; flex: 1 1 200px; min-width: 0; justify-items: start; }
.cc-pn__nombre { font-size: 16px; overflow-wrap: anywhere; }
.cc-pn__precio { font-size: 14.5px; color: var(--pos-v3-suave, #66574B); }
.cc-pn__stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.cc-pn__mas {
  width: 56px; height: 56px; padding: 0;
  border: 1px solid var(--pos-v3-linea, var(--mrj-sand)); border-radius: 14px;
  background: var(--pos-v3-hundido, #F7F2EC); color: var(--mrj-ink);
  font: inherit; font-size: 26px; font-weight: 700; line-height: 1; cursor: pointer;
}
.cc-pn__cant {
  box-sizing: border-box; width: 84px; height: 56px; padding: 0 6px; text-align: center;
  border: 1px solid var(--pos-v3-linea, var(--mrj-sand)); border-radius: 14px;
  background: var(--pos-card, #fff); color: var(--mrj-ink); font: inherit; font-size: 18px; font-weight: 800;
}
.cc-pn__cant.is-malo { border-color: var(--bad-text, #B3261E); }
.cc-pn__uni { min-width: 2em; font-size: 15px; font-weight: 700; color: var(--pos-v3-suave, #66574B); }
.cc-pn__pie {
  position: sticky; bottom: 0; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 -8px; padding: 12px 8px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--cc-lienzo, var(--pos-card, #fff)); border-top: 1px solid var(--pos-v3-linea, var(--mrj-sand));
}
.cc-pn__pie .cc-confirmar__error { flex-basis: 100%; margin: 0; }
.cc-pn__res { margin: 0; font-size: 17px; font-weight: 800; }
.cc-pn__pie .cc-pn__btn--principal { flex: 1 1 180px; }
.cc-pn__texto {
  margin: 0 0 12px; padding: 14px; max-height: 40vh; overflow: auto;
  border: 1px solid var(--pos-v3-linea, var(--mrj-sand)); border-radius: 14px; background: var(--pos-v3-hundido, #F7F2EC);
  font: inherit; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.cc-pn__acciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding-bottom: 16px; }
