/* PUIG skin: batch pages. Loaded after puig.css; visual only. */

/* --- Batch detail ---
   Each reference: name and data on top, large 3:4 views on #EFEFEF, then a discreet step line.
   Done steps are a line check; colour only for pending or error states. */
html body .skus { gap: 14px; }
html body .sku { grid-template-columns: minmax(0, 1fr) 220px; grid-template-areas: "name acts" "steps acts";
  align-items: start; gap: 16px 32px; padding: 20px 22px; }
html body .sku-name { grid-area: name; display: flex; flex-direction: column; gap: 4px; }
html body .sku-name > b { order: 0; }
html body .sku-name > .sub { order: 1; }
html body .sku-name > .sku-thumbs, html body .sku-name > .scan-frame { order: 2; margin-top: 10px; align-self: flex-start; }
html body .sku-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
html body .sku-thumbs img { width: 140px; height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: #EFEFEF;
  border-radius: 2px; border: 0; transition: transform .15s ease, box-shadow .15s ease; }
html body .sku-thumbs img:hover { transform: scale(1.03); box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .45); position: relative; z-index: 1; }
html body .sku-thumbs img.pend { filter: grayscale(1); opacity: .55; outline: 1px solid #000; outline-offset: -1px; }
html body .sku-warn { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
html body .sku-warn::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #F1C488; flex: none; }

html body .sku-steps { grid-area: steps; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
html body .sku-step { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
html body .sku-step .k { font-size: 12px; color: var(--ds-fg-subtle); }
html body .sku-step .sub { font-size: 12px; }
html body .sku-acts { grid-area: acts; min-width: 0; }

/* Row states without boxes: OK = line check, attention = amber dot, waiting = outlined dot, error = red dot */
html body .skus .sku .sku-steps .sku-step .badge:not(.st-live), html body .card .rep-table td .badge.badge:not(.st-live),
html body:has(.skus) main h1 > .badge:not(.st-live) {
  background: transparent; border: 0; padding: 0; border-radius: 0; color: var(--ink); font-weight: 400; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; min-height: 0; box-shadow: none; }
html body .skus .sku .sku-steps .sku-step .badge:not(.st-live)::before, html body .card .rep-table td .badge.badge:not(.st-live)::before,
html body:has(.skus) main h1 > .badge:not(.st-live)::before {
  content: ''; position: static; display: block; width: 8px; height: 8px; border-radius: 50%; border: 1px solid #000; background: transparent;
  flex: none; transform: none; margin: 0; }
html body .skus .sku .sku-steps .sku-step .badge.b-needs_retouch::before, html body .card .rep-table td .badge.badge.b-review::before { background: #F1C488; border-color: transparent; }
html body .skus .sku .sku-steps .sku-step .badge.b-warn::before, html body .card .rep-table td .badge.badge.b-warn::before { background: #C8102E; border-color: transparent; }
html body .skus .sku .sku-steps .sku-step .badge.b-review { color: var(--ds-fg-subtle); }
html body .skus .sku .sku-steps .sku-step .badge.b-ok { font-size: 0; gap: 0; }   /* text kept for screen readers */
html body .skus .sku .sku-steps .sku-step .badge.b-ok::before, html body .card .rep-table td .badge.badge.b-done::before {
  width: 14px; height: 14px; border: 0; border-radius: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
html body:has(.skus) main h1 > .badge:not(.st-live) { font-size: 14px; color: var(--ds-fg-subtle); vertical-align: middle; margin-left: 8px; }

@media (max-width: 980px) {
  html body .sku { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "steps" "acts"; gap: 14px; padding: 16px; }
}
@media (max-width: 640px) {
  html body .sku-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  html body .sku-name > .sku-thumbs, html body .sku-name > .scan-frame { align-self: stretch; }
  html body .sku-thumbs img { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html body .sku-thumbs img { transition: none; } html body .sku-thumbs img:hover { transform: none; } }

/* --- Batch report --- */
html body .rep-kpis { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0 28px; margin: 22px 0 30px; }
html body .rep-kpis .card { background: transparent; border: 0; border-top: 1px solid #000; border-radius: 0; box-shadow: none;
  padding: 10px 0 0; margin: 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
html body .rep-kpis b { font-size: 34px; line-height: 1; font-weight: 300; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
html body .rep-kpis .card .sub { font-size: 12px; }
html body .rep-table td.n, html body .rep-table th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
html body .rep-table th { white-space: nowrap; font-weight: 400; font-size: 12px; color: var(--ds-fg-subtle); }
html body .rep-th img { object-fit: contain; background: #EFEFEF; border: 0; width: 60px; height: 80px; }
html body .rep-who { white-space: nowrap; }
html body .rep-who > span { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; cursor: default; }
html body .rep-who .ico { width: 14px; height: 14px; vertical-align: 0; }
html body .ico.ico-swap { fill: none; width: 14px; height: 14px; vertical-align: -2px; }
html body .rep-ret .sub { font-size: 12px; }
html body .rep-table td > b { white-space: nowrap; }
