/* Пиктограммы ERP WETVEL (09.10.2026) — app/icons.py, templates/_icons.html.
   Плашка — семейство: заготовка / мехобработка / сборка и контроль / материалы.
   Рисунок — stroke currentColor. Светофор (.tl) — отдельно, не трогать. */
:root {
  --pic-blank-bg: #F3E6D4; --pic-blank-fg: #7A4E17;
  --pic-mach-bg:  #E3EBF2; --pic-mach-fg:  #24425A;
  --pic-asm-bg:   #E1EEE7; --pic-asm-fg:   #255A43;
  --pic-mat-bg:   #ECEAE6; --pic-mat-fg:   #46413B;
  --pic-flag-fg:  #4F575B;
}
.pic { display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; border-radius: 7px; vertical-align: middle;
  background: var(--pic-mat-bg); color: var(--pic-mat-fg); }
.pic svg { width: 62%; height: 62%; display: block; }
.pic-sm { width: 20px; height: 20px; border-radius: 5px; }
.pic-lg { width: 40px; height: 40px; border-radius: 10px; }
.pic-xl { width: 60px; height: 60px; border-radius: 15px; }
.pic-blank { background: var(--pic-blank-bg); color: var(--pic-blank-fg); }
.pic-mach  { background: var(--pic-mach-bg);  color: var(--pic-mach-fg); }
.pic-asm   { background: var(--pic-asm-bg);   color: var(--pic-asm-fg); }
.pic-mat   { background: var(--pic-mat-bg);   color: var(--pic-mat-fg); }
/* признак — без плашки, мелким серым значком у строки */
.pic-flag  { background: transparent; color: var(--pic-flag-fg); width: 20px; height: 20px; }
.pic-flag svg { width: 80%; height: 80%; }
/* пиктограмма + подпись в одну строку */
.pic-row { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.pic-row .pic-txt { font-size: .85em; color: inherit; white-space: nowrap; }
/* тёмные экраны цеха (планшет): плашки те же, подпись светлая */
.shop-screen .pic-row .pic-txt { color: var(--muted, #9aa6b8); }

/* ── Фото детали: миниатюра в строке, полный экран по нажатию ─────────── */
.ph-thumb { display: inline-block; flex: none; object-fit: cover; border-radius: 6px;
  background: #e9ecef; border: 1px solid rgba(0,0,0,.08); vertical-align: middle; cursor: zoom-in; }
.ph-thumb.sm { width: 32px; height: 32px; }
.ph-thumb.md { width: 48px; height: 48px; }
.ph-thumb.lg { width: 88px; height: 88px; border-radius: 10px; }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border-radius: 10px; border: 2px solid currentColor;
  background: transparent; color: inherit; font-weight: 800; font-size: 1rem; text-decoration: none;
  touch-action: manipulation; }
.ph-btn:hover { text-decoration: none; color: inherit; opacity: .9; }
.ph-btn svg { width: 22px; height: 22px; }
.ph-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92); display: none;
  align-items: center; justify-content: center; }
.ph-modal.on { display: flex; }
.ph-modal img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.ph-modal .ph-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 70px 14px 16px;
  color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.ph-modal .ph-x { position: absolute; top: 10px; right: 10px; width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(0,0,0,.5); color: #fff; font-size: 1.8rem; line-height: 1; }
