/* Pedidos — capa sobre sale-list */
body.order-module-page .page-content { background: #dfe7ef; }

.order-module .od-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .55rem;
  margin: 0 0 12px;
}
.order-module .od-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: #fff;
  border: 1px solid #d7e1ea;
  border-radius: 12px;
  padding: .55rem .7rem;
  text-decoration: none;
  color: #14202c;
  min-width: 0;
}
.order-module .od-kpi:hover { border-color: #2a86d6; }
.order-module .od-kpi.is-active {
  border-color: #1f6fb2;
  box-shadow: 0 0 0 2px rgba(31, 111, 178, .15);
}
.order-module .od-kpi__n {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: #123047;
}
.order-module .od-kpi__l {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5b6b7a;
}

.order-module .od-badge {
  padding: .28rem .55rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.order-module .od-date { font-size: .82rem; font-weight: 600; white-space: nowrap; }
.order-module .od-muted { color: #5b6b7a; font-size: .82rem; }
.order-module .od-ok { color: #1a7f4b; font-weight: 700; font-size: .8rem; }
.order-module .od-late { color: #c0392b; font-weight: 700; font-size: .8rem; }
.order-module .od-wait { color: #1f6fb2; font-weight: 600; font-size: .8rem; }
.order-module .od-canal {
  display: inline-block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .12rem .4rem;
  border-radius: 999px;
  margin: 0 0 4px;
  background: #e8f1fb;
  color: #1f6fb2;
}
.order-module .od-canal--whatsapp { background: #e7f8ee; color: #128c7e; }
.order-module .od-canal--portal { background: #f3e8fb; color: #6d28d9; }

.order-module td { vertical-align: top; }
.order-module .pedido-destacado {
  display: inline-block;
  vertical-align: top;
  border: 1px solid #e6e6e6;
  padding: 7px 9px;
  border-radius: 10px;
  color: #1a1a1a;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-size: .8rem;
  line-height: 1.3;
  width: 100%;
  max-width: 260px;
}
.order-module .pedido-destacado:hover {
  border-color: #c8c8c8;
  background: #fafafa;
}
.order-module .od-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.order-module .od-item {
  display: block;
  color: #2a2a2a;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-module .od-item--empty { color: #8a8a8a; font-weight: 500; }
.order-module .od-item-more {
  font-size: .72rem;
  font-weight: 650;
  color: #6b6b6b;
}

/* Formulario alta — misma ficha que clientes */
body.order-form-page .page-content {
  background:
    radial-gradient(110% 70% at 0% 0%, rgba(31, 111, 178, 0.08), transparent 55%),
    radial-gradient(80% 50% at 100% 0%, rgba(18, 48, 71, 0.05), transparent 45%),
    #dfe7ef;
}
.order-new-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: start;
}
.order-new-grid--form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.order-new-grid--form .order-new-card--products {
  grid-column: 1 / -1;
}

/* Alta rápida de pedidos */
.od-fast-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(268px, 312px);
  gap: 16px;
  align-items: start;
}
.od-fast .order-new-card {
  border: 1px solid rgba(18, 48, 71, .08);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .7) inset,
    0 10px 28px rgba(18, 48, 71, .07);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}
.od-fast-main {
  position: relative;
  overflow: hidden;
}
.od-fast-main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #1f6fb2, #2a9d8f 70%, transparent);
  border-radius: 18px 0 0 18px;
  pointer-events: none;
}
.od-fast-side {
  position: sticky;
  top: 12px;
}
.od-fast .order-new-card.od-fast-side {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  color: #123047;
  border: 1px solid rgba(18, 48, 71, .08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .7) inset,
    0 10px 28px rgba(18, 48, 71, .07);
}
.od-fast-side .order-new-card__title {
  margin: 0 0 14px;
  color: #123047;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 1;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}
.od-fast-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: .8rem .75rem;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}
.od-fast-top .od-ac-wrap { grid-column: 1 / 2; }
.od-fast .od-field label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #4d5f70;
  margin-bottom: 6px;
}
.od-fast .od-field .form-control,
.od-fast .order-new-card .form-control {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #c8d5e2;
  background: #fff;
  font-size: .9rem;
  color: #123047;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.od-fast .od-field .form-control:hover {
  border-color: #b8c9d8;
  background: #fff;
}
.od-fast .od-field .form-control:focus {
  border-color: #1f6fb2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 111, 178, .14);
  outline: 0;
}
.od-fast select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5b6b7a 50%),
    linear-gradient(135deg, #5b6b7a 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.od-add-row--fast {
  grid-template-columns: minmax(0, 1fr) 88px auto;
  margin-top: 2px;
  padding: 12px;
  border-radius: 14px;
  background: #f3f7fb;
  border: 1px dashed #c9d7e4;
  gap: .65rem;
}
.od-add-row--fast .btn {
  min-width: 118px;
  height: 42px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  border: 0;
  background: linear-gradient(180deg, #2580c7, #1f6fb2);
  color: #fff;
  box-shadow: 0 6px 14px rgba(31, 111, 178, .28);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.od-add-row--fast .btn:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff;
}
.od-add-row--fast .btn:disabled {
  background: #c5d0db;
  box-shadow: none;
  color: #fff;
  opacity: 1;
}
.od-fast .od-hint {
  margin: 8px 2px 0;
  font-size: .74rem;
  color: #7a8b9a;
}
.od-ac-wrap { position: relative; }
.od-suggest {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(18, 48, 71, .1);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(18, 48, 71, .16);
  padding: 6px;
}
.od-suggest__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: #123047;
  transition: background .12s ease;
}
.od-suggest__item strong { font-size: .88rem; font-weight: 750; }
.od-suggest__item span { font-size: .75rem; color: #5b6b7a; }
.od-suggest__item:hover,
.od-suggest__item.is-active { background: #eef5fb; }
.od-suggest__empty {
  padding: 12px;
  font-size: .8rem;
  color: #5b6b7a;
  text-align: center;
}
.od-picked {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #e7f8ef, #f2fbf6);
  border: 1px solid #c8ead6;
  color: #177a48;
  font-size: .82rem;
  font-weight: 700;
}
.od-picked i { opacity: .85; }
.od-picked__clear {
  margin-left: auto;
  border: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(26, 127, 75, .1);
  color: #1a7f4b;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background .12s ease;
}
.od-picked__clear:hover { background: rgba(26, 127, 75, .2); }
.od-lines {
  min-height: 150px;
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid #e8eef4;
  overflow: hidden;
  background: #fff;
}
.od-fast .order-new-card .table {
  margin: 0;
  font-size: .86rem;
}
.od-fast .order-new-card .table thead th {
  background: #f5f8fb;
  border-top: 0;
  border-bottom: 1px solid #e8eef4;
  color: #6b7c8d;
  font-size: .66rem;
  letter-spacing: .06em;
  padding: 10px 12px;
}
.od-fast .order-new-card .table td {
  padding: 11px 12px;
  vertical-align: middle;
  border-color: #eef2f7;
}
.od-fast .order-new-card .table .cantidad-input {
  max-width: 86px;
  min-width: 64px;
  height: 36px;
  margin: 0 auto;
  text-align: center;
  padding: 4px 6px;
}
.od-fast .order-new-card .btn-outline-danger {
  border-radius: 9px;
  border-color: #f0c9c9;
  color: #c0392b;
  background: #fff7f7;
}
.od-fast .order-new-card .btn-outline-danger:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}
.od-empty {
  margin: 28px 16px;
  text-align: center;
  color: #7a8b9a;
  font-size: .86rem;
  padding: 18px 14px;
  border-radius: 12px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(31, 111, 178, .06), transparent 60%),
    #f8fafc;
  border: 1px dashed #d5e0ea;
}
.od-totals--side {
  grid-template-columns: 1fr;
  gap: .55rem;
}
.od-totals--side .od-span-2 { grid-column: 1 / -1; }
.od-fast-side .od-tot {
  background: #f5f8fb;
  border: 1px solid #e6eef5;
  border-radius: 12px;
  padding: .6rem .75rem;
}
.od-fast-side .od-tot label {
  color: #6b7c8d;
  font-size: .66rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.od-fast-side .od-tot span,
.od-fast-side .od-tot strong {
  color: #123047;
  font-size: 1.02rem;
  font-weight: 800;
}
.od-fast-side .od-tot .form-control {
  height: 36px;
  background: #fff;
  border-color: #c8d5e2;
  color: #123047;
}
.od-fast-side .od-tot .form-control:focus {
  background: #fff;
  border-color: #1f6fb2;
  box-shadow: 0 0 0 3px rgba(31, 111, 178, .14);
}
.od-fast-side .od-tot select.form-control option { color: #123047; }
.od-fast-side .od-tot--ok {
  background: #eaf8f0;
  border-color: #cfead9;
}
.od-fast-side .od-tot--ok span { color: #1a7f4b; font-size: 1.2rem; }
.od-actions--stack {
  flex-direction: column;
  margin-top: 16px;
  gap: .55rem;
}
.od-actions--stack .btn {
  width: 100%;
  min-width: 0;
  height: 44px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  border: 0;
}
.od-actions--stack #btnGuardar {
  background: linear-gradient(180deg, #2580c7, #1f6fb2);
  color: #fff;
  box-shadow: 0 6px 14px rgba(31, 111, 178, .22);
}
.od-actions--stack #btnGuardar:hover:not(:disabled) {
  filter: brightness(1.05);
  color: #fff;
}
.od-actions--stack #btnGuardar:disabled {
  background: #d5dde6;
  color: #8a97a6;
  box-shadow: none;
}
.od-actions--stack #btnLimpiar {
  background: #fff;
  color: #5b6b7a;
  border: 1px solid #d5e0ea;
}
.od-actions--stack #btnLimpiar:hover:not(:disabled) {
  background: #f5f8fb;
  color: #123047;
}
.od-actions--stack #btnLimpiar:disabled {
  opacity: .45;
}
.od-more {
  margin-top: 14px;
  border: 1px solid #e6eef5;
  border-radius: 12px;
  padding: 8px 12px;
  background: #f8fafc;
}
.od-more summary {
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
  color: #123047;
  outline: none;
  list-style: none;
}
.od-more summary::-webkit-details-marker { display: none; }
.od-more summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  transition: transform .15s ease;
}
.od-more[open] summary::before { transform: rotate(90deg); }
.od-more[open] summary { margin-bottom: 10px; }
.od-more .od-fields { margin-top: 4px; }
.od-fast-side .od-more .od-field label { color: #6b7c8d; }
.od-fast-side .od-more .form-control {
  background: #fff;
  border-color: #c8d5e2;
  color: #123047;
}
.od-fast-side .od-more textarea.form-control {
  min-height: 64px;
}
.od-fast .od-credit-note {
  margin: 0 0 12px;
  border: 1px solid #f0d7a8;
  background: linear-gradient(90deg, #fff8ec, #fff3dc);
}
.order-new-stack {
  display: grid;
  gap: 14px;
}
.order-new-card {
  background: #fff;
  border: 1px solid #d7e1ea;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(18, 48, 71, .06);
  min-width: 0;
  height: 100%;
}
.order-new-card .bmd-label-floating,
.order-new-card label.bmd-label-floating,
.order-new-card .bmd-help {
  display: none !important;
}
.order-new-card h2,
.order-new-card__title {
  margin: 0;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: none;
  color: #123047;
}
.order-new-card h2 i { color: #1f6fb2; margin-right: 4px; }
.order-new-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}
.order-new-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(31, 111, 178, .1);
  color: #1f6fb2;
  flex: 0 0 auto;
}
.order-new-card__icon--pay { background: rgba(26, 127, 75, .1); color: #1a7f4b; }
.order-new-card__hint {
  margin: 2px 0 0;
  font-size: .78rem;
  color: #5b6b7a;
  font-weight: 500;
}
.order-new-card.is-credit {
  border-color: #e0b56a;
  box-shadow: 0 8px 24px rgba(196, 123, 18, .08);
}
.order-new-card.is-credit .order-new-card__icon--pay {
  background: rgba(196, 123, 18, .12);
  color: #c47b12;
}
.od-credit-note {
  margin: 0;
  padding: .55rem .7rem;
  border-radius: 10px;
  background: #fff6e8;
  color: #8a5a10;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
}
.order-module .od-badge--credito {
  background: #fff6e8;
  color: #c47b12;
}
.order-module .od-btn-credito {
  background: #c47b12;
  border-color: #c47b12;
  color: #fff;
}
.order-module .od-btn-credito:hover { color: #fff; filter: brightness(1.05); }
.od-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem .75rem;
}
.od-fields .od-span-2 { grid-column: 1 / -1; }
.od-field label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  color: #5b6b7a;
  margin-bottom: 4px;
  letter-spacing: .02em;
}
.od-field .form-control,
.order-new-card .form-control {
  height: 38px;
  border-radius: 10px;
  border: 1px solid #d7e1ea;
  font-size: .88rem;
}
.od-field textarea.form-control { height: auto; min-height: 72px; }
.od-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px auto;
  gap: .5rem;
  align-items: end;
  margin-bottom: .75rem;
}
.od-add-row .btn { height: 38px; border-radius: 10px; font-weight: 700; }
.order-new-card .table { font-size: .84rem; margin-bottom: 0; }
.order-new-card .table th {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-top: 0;
  color: #5b6b7a;
}
.od-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: 12px;
}
.od-tot {
  background: #f3f7fb;
  border-radius: 10px;
  padding: .5rem .7rem;
}
.od-tot label { display: block; font-size: .68rem; color: #5b6b7a; font-weight: 700; margin-bottom: 2px; }
.od-tot strong, .od-tot span { font-weight: 800; color: #123047; }
.od-tot--ok { background: #e8f8ef; }
.od-tot--ok span { color: #1a7f4b; }
.od-actions {
  display: flex;
  gap: .7rem;
  justify-content: flex-end;
  margin-top: 14px;
}
.od-actions .btn {
  min-width: 140px;
  height: 42px;
  border-radius: 11px;
  font-weight: 800;
  letter-spacing: .03em;
}
.od-hint { font-size: .75rem; color: #5b6b7a; margin: 0 0 10px; }

@media (max-width: 1100px) {
  .order-new-grid,
  .order-new-grid--form { grid-template-columns: 1fr 1fr; }
  .order-new-grid--form .order-new-card--products { grid-column: 1 / -1; }
  .od-fast-layout { grid-template-columns: 1fr; }
  .od-fast-top { grid-template-columns: 1fr 1fr; }
  .od-fast-top .od-ac-wrap { grid-column: 1 / -1; }
  .order-module .od-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .order-new-grid,
  .order-new-grid--form { grid-template-columns: 1fr; }
  .od-fields, .od-add-row, .od-totals { grid-template-columns: 1fr; }
  .od-fast-top { grid-template-columns: 1fr; }
  .od-add-row--fast { grid-template-columns: 1fr; }
  .order-module .od-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Portal público */
.portal-pedidos {
  min-height: 100vh;
  background: linear-gradient(180deg, #e8eef5 0%, #f4f7fb 40%, #eef3f8 100%);
  color: #14202c;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
.portal-pedidos__bar {
  background: #123047;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}
.portal-pedidos__bar a { color: #fff; text-decoration: none; font-weight: 700; }
.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.portal-brand img {
  width: auto;
  height: 40px;
  max-width: 120px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
  display: block;
}
.portal-brand span {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 320px);
}
.portal-user { font-size: .88rem; opacity: .95; white-space: nowrap; }
.portal-pedidos__meta { display: flex; align-items: center; gap: 12px; }
.portal-pedidos__wrap { max-width: 1360px; margin: 0 auto; padding: 18px 16px 48px; }
.portal-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(18,48,71,.08);
  border: 1px solid rgba(215,225,234,.8);
}
.portal-card h1 { font-size: 1.35rem; margin: 0 0 6px; color: #123047; font-weight: 800; }
.portal-card .btn-primary { background: #1f6fb2; border: 0; border-radius: 12px; font-weight: 700; }
.portal-card .btn-outline-primary { border-radius: 10px; font-weight: 700; }
.portal-nav { display: flex; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.portal-nav a {
  padding: 8px 14px; border-radius: 999px; background: #fff;
  text-decoration: none; color: #123047; font-weight: 700; font-size: .85rem;
  border: 1px solid #d7e1ea;
}
.portal-nav a.is-on { background: #1f6fb2; color: #fff; border-color: #1f6fb2; }

.pc-sub { color: #5b6b7a; margin: 0 0 14px; font-size: .92rem; }
.pc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 18px;
  align-items: start;
}
.pc-side { position: sticky; top: 72px; display: grid; gap: 12px; align-self: start; }
.pc-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  flex-wrap: wrap; margin-bottom: 12px;
}
.pc-head--simple { margin-bottom: 18px; }
.pc-search { min-width: min(100%, 260px); }
.pc-search .form-control { border-radius: 12px; height: 42px; }

.pc-recent { margin: 0 0 14px; }
.pc-recent__title {
  font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #5b6b7a; margin-bottom: 8px;
}
.pc-recent__list { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-recent__btn {
  border: 1px solid #d7e1ea; background: #f7fbfe; border-radius: 12px;
  padding: 8px 10px; text-align: left; cursor: pointer; max-width: 100%;
  display: grid; gap: 2px;
}
.pc-recent__btn:hover { border-color: #2a86d6; }
.pc-recent__btn strong { font-size: .82rem; color: #123047; }
.pc-recent__btn span { font-size: .75rem; color: #5b6b7a; }
.pc-recent__btn em { font-style: normal; font-weight: 800; color: #1f6fb2; font-size: .8rem; }

.pc-catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pc-prod {
  border: 1px solid #e2eaf1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.pc-prod.is-in { border-color: #1f6fb2; box-shadow: 0 0 0 2px rgba(31,111,178,.12); }
.pc-prod:hover { box-shadow: 0 8px 20px rgba(18,48,71,.08); }
.pc-prod__img {
  aspect-ratio: 1 / 1;
  background: #f3f7fb;
  overflow: hidden;
}
.pc-prod__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .28s ease;
  will-change: transform;
}
.pc-prod:hover .pc-prod__img img {
  transform: scale(1.08);
}
.pc-prod__body { padding: 10px; display: grid; gap: 6px; flex: 1; }
.pc-prod__body h3 {
  margin: 0; font-size: .86rem; line-height: 1.25; color: #123047;
  font-weight: 700; min-height: 2.4em;
}
.pc-prod__body p { margin: 0; font-weight: 800; color: #1f6fb2; font-size: .92rem; }
.pc-prod__body small { color: #5b6b7a; font-weight: 600; }
.pc-prod__add {
  margin-top: auto; border: 0; border-radius: 10px; background: #123047; color: #fff;
  font-weight: 700; font-size: .8rem; padding: 8px 10px; cursor: pointer;
  text-align: center; text-decoration: none; display: block;
}
.pc-prod__add:hover, a.pc-prod__add:hover { background: #1f6fb2; color: #fff; text-decoration: none; }
.pc-empty, .pc-empty-state { text-align: center; color: #5b6b7a; padding: 24px 8px; }

.pc-cart h2 { font-size: 1.05rem; margin: 0 0 10px; font-weight: 800; color: #123047; }
.pc-cart__list { display: grid; gap: 8px; margin-bottom: 12px; max-height: min(340px, 42vh); overflow: auto; }
.pc-cart__empty { color: #5b6b7a; font-size: .88rem; margin: 0; padding: 10px 0; }
.pc-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 8px; align-items: center;
  padding: 8px; border-radius: 12px; background: #f7fbfe; border: 1px solid #e8eef5;
}
.pc-line img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.pc-line__info { min-width: 0; }
.pc-line__info strong { display: block; font-size: .8rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-line__info span { font-size: .75rem; color: #5b6b7a; }
.pc-line__qty {
  display: inline-flex; align-items: stretch; height: 28px;
  border: 1px solid #d7e1ea; border-radius: 8px; overflow: hidden; background: #fff;
}
.pc-line__qty button {
  width: 22px; height: 28px; border: 0; border-radius: 0;
  background: #f4f7fa; font-weight: 800; cursor: pointer; font-size: .82rem; padding: 0; line-height: 1;
}
.pc-line__qty button:hover { background: #e8eef5; }
.pc-line__qty input {
  width: 34px; height: 28px; text-align: center; border: 0;
  border-left: 1px solid #d7e1ea; border-right: 1px solid #d7e1ea;
  border-radius: 0; font-weight: 700; font-size: .82rem; padding: 0;
  -moz-appearance: textfield;
}
.pc-line__qty input::-webkit-outer-spin-button,
.pc-line__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pc-line__del {
  width: 32px; height: 32px; border: 0; border-radius: 9px;
  background: #fdecea; color: #c0392b; font-size: .95rem;
  line-height: 1; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.pc-line__del:hover { background: #c0392b; color: #fff; }
.pc-fields { display: grid; gap: 10px; margin-bottom: 12px; }
.pc-fields label { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: #5b6b7a; }
.pc-fields .form-control { border-radius: 10px; }
.pc-summary {
  display: grid;
  gap: 8px;
  margin: 4px 0 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e8eef5;
  background: #f8fafc;
}
.pc-summary__meta {
  font-size: .82rem;
  color: #5b6b7a;
  font-weight: 600;
}
.pc-summary__meta strong { color: #123047; font-weight: 800; }
.pc-summary__rows { display: grid; gap: 4px; }
.pc-summary__row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: .84rem; color: #5b6b7a; font-weight: 600;
}
.pc-summary__row.is-off { opacity: .55; text-decoration: line-through; }
.pc-summary__total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .9rem; color: #5b6b7a; font-weight: 600;
  padding-top: 6px; border-top: 1px dashed #d7e1ea; margin-top: 2px;
}
.pc-summary__total strong {
  color: #123047;
  font-size: 1.2rem;
  font-weight: 800;
}
.pc-submit { height: 46px; font-size: .95rem; }
.pc-notice {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f7fb;
  border: 1px solid #e2eaf1;
  color: #3d4f5f;
  font-size: .78rem;
  line-height: 1.4;
}
.pc-hint { font-size: .75rem; color: #5b6b7a; margin: 8px 0 0; }
.pc-help strong { display: block; margin-bottom: 4px; color: #123047; }
.pc-help p { margin: 0; font-size: .85rem; color: #5b6b7a; }
.pc-help a { color: #1f6fb2; font-weight: 700; }
.pc-help__meta { margin-top: 8px !important; font-size: .8rem !important; }

.pc-menu__actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  min-width: min(100%, 320px);
}
.pc-menu__actions .form-control { flex: 1; min-width: 160px; border-radius: 12px; height: 42px; }
.pc-menu__actions .btn { white-space: nowrap; border-radius: 12px; font-weight: 700; height: 42px; display: inline-flex; align-items: center; }

.pc-modal[hidden] { display: none !important; }
.pc-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.pc-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pc-modal.is-open[hidden] { display: flex !important; }
.pc-modal__backdrop {
  position: absolute; inset: 0; background: rgba(18, 48, 71, .55);
  opacity: 0;
  transition: opacity .28s ease;
}
.pc-modal.is-open .pc-modal__backdrop { opacity: 1; }
.pc-modal__dialog {
  position: relative; z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(18,48,71,.25);
  transform: translateY(18px) scale(.96);
  opacity: 0;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .28s ease;
}
.pc-modal.is-open .pc-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.pc-modal__dialog--form {
  width: min(400px, 100%);
  max-height: min(92vh, 640px);
}
.pc-modal__close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #123047;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.pc-modal__media {
  aspect-ratio: 1 / 1; background: #f3f7fb; overflow: hidden;
}
.pc-modal__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-modal__body { padding: 16px 18px 20px; }
.pc-modal__body h2 {
  margin: 0 0 6px; font-size: 1.15rem; color: #123047; font-weight: 800;
}
.pc-modal__price {
  margin: 0 0 12px; color: #1f6fb2; font-weight: 800; font-size: 1.05rem;
}
.pc-modal__desc {
  margin: 0 0 16px; color: #3d4f5f; font-size: .92rem; line-height: 1.45;
  white-space: normal;
}
.pc-modal__desc em { color: #5b6b7a; }
.pc-modal--login .pc-modal__body .form-group { margin-bottom: 12px; }
.pc-modal--login .pc-modal__body label {
  display: block; font-size: .78rem; font-weight: 700; color: #5b6b7a; margin-bottom: 4px;
}
.pc-modal--login .pc-modal__body .form-control { border-radius: 10px; }
.pc-prod { cursor: pointer; }
.pc-prod__img[data-info], .pc-prod__body h3[data-info] { cursor: zoom-in; }

.pc-home-kpis {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px;
}
.pc-home-kpis > div {
  background: #f3f7fb; border-radius: 14px; padding: 14px; text-align: center;
}
.pc-home-kpis strong { display: block; font-size: 1.4rem; color: #123047; }
.pc-home-kpis span { font-size: .75rem; color: #5b6b7a; font-weight: 700; text-transform: uppercase; }
.pc-home-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pc-orders { display: grid; gap: 12px; }
.pc-order {
  border: 1px solid #e2eaf1; border-radius: 14px; padding: 14px; background: #fbfdff;
}
.pc-order__top {
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px;
}
.pc-order__top strong { display: block; color: #123047; }
.pc-order__meta { display: block; font-size: .78rem; color: #5b6b7a; margin-top: 2px; }
.pc-st {
  display: inline-block; padding: .25rem .6rem; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
}
.pc-st--wait { background: #e8f1fb; color: #1f6fb2; }
.pc-st--run { background: #fff4e5; color: #b45309; }
.pc-st--ready { background: #e7f8ee; color: #1a7f4b; }
.pc-st--done { background: #eef2f6; color: #475569; }
.pc-st--pending { background: #fff1e8; color: #c2410c; }
.pc-st--reject { background: #fff1f2; color: #be123c; }
.pc-order__note--reject {
  background: #fff7f7;
  border-left: 3px solid #e11d48;
  color: #9f1239;
}
.pc-order__items { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pc-order__item {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #e8eef5; border-radius: 999px; padding: 4px 10px 4px 4px;
  font-size: .78rem; font-weight: 600;
}
.pc-order__item img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.pc-order__note { font-size: .82rem; color: #5b6b7a; margin: 0 0 8px; }
.pc-order__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
}
.pc-order__foot strong { font-size: 1.05rem; color: #123047; }
.pc-order__totals { display: grid; gap: 2px; }
.pc-order__totals small { color: #5b6b7a; font-size: .75rem; }
.pc-order__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Campana portal */
.pc-bell { position: relative; }
.pc-bell__btn {
  width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.pc-bell__btn:hover { background: rgba(255,255,255,.2); }
.pc-bell__dot {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px; background: #e07a3d; color: #fff;
  font-size: .65rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.pc-bell__panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, 88vw);
  background: #fff; color: #123047; border-radius: 14px;
  box-shadow: 0 16px 40px rgba(18,48,71,.2); border: 1px solid #e2eaf1; z-index: 50;
  overflow: hidden;
}
.pc-bell__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid #eef2f6; background: #f8fafc;
}
.pc-bell__head strong { font-size: .9rem; }
.pc-bell__mark {
  border: 0; background: 0; color: #1f6fb2; font-weight: 700; font-size: .75rem; cursor: pointer;
}
.pc-bell__list { max-height: 320px; overflow: auto; }
.pc-bell__empty { margin: 0; padding: 18px; text-align: center; color: #5b6b7a; font-size: .85rem; }
.pc-bell__item {
  display: grid; gap: 2px; padding: 12px 14px; text-decoration: none; color: inherit;
  border-bottom: 1px solid #f1f5f9;
}
.pc-bell__item:hover { background: #f7fbfe; }
.pc-bell__item.is-new { background: #f0f7ff; }
.pc-bell__item strong { font-size: .84rem; color: #123047; }
.pc-bell__item span { font-size: .78rem; color: #5b6b7a; line-height: 1.35; }
.pc-bell__item em { font-style: normal; font-size: .7rem; color: #94a3b8; }

@media (max-width: 1200px) {
  .pc-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pc-layout { grid-template-columns: 1fr; }
  .pc-side { position: static; }
  .pc-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .pc-home-kpis { grid-template-columns: 1fr; }
  .pc-catalog { grid-template-columns: 1fr 1fr; }
  .pc-line { grid-template-columns: 40px minmax(0, 1fr); }
  .pc-line__qty, .pc-line__del { grid-column: 2; justify-self: start; }
}
