/* Метки для группы: голый лист, сетка в настоящих миллиметрах (крупные 3 × 60 × 45, компактные 4 × 40 × 30, зазор 2 мм) —
   184 × 233 и 166 × 254 мм, влезают и в A4, и в Letter; имя — до двух строк, ужимается в app.js. */
.panel .check { display: block; margin: 4px 0; font-weight: 600; }
#cl-names { width: 100%; font: inherit; padding: 8px 10px; border: 1.5px solid #ddd3c2; border-radius: 10px; resize: vertical; }
.cl-msg { color: #c0392b !important; }
.cl-assign { display: grid; gap: 4px; margin-top: 6px; max-height: 340px; overflow: auto; }
.cl-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px 150px; gap: 6px; align-items: center; font-size: 14px; }
.cl-rn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-row img { width: 34px; height: 26px; object-fit: contain; }
.cl-row select { font: inherit; font-size: 14px; padding: 3px; border: 1.5px solid #ddd3c2; border-radius: 8px; min-width: 0; }
.cl-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px; }
.cl-pics label { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border: 2px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 600; text-align: center; cursor: pointer; }
.cl-pics input { position: absolute; opacity: 0; pointer-events: none; }
.cl-pics label:has(input:checked) { border-color: var(--ink); background: #fff7e8; }
.cl-pics img { width: 48px; height: 36px; object-fit: contain; }
.cl-copies { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px 22px; font-size: 14px; }
.cl-copies .chips span { padding: 3px 10px; font-size: 13px; }
.cl-empty { font-size: 14pt; text-align: center; color: #777; }

.cl-wrap { width: 100%; height: 100%; padding: 8mm 0 0; display: flex; flex-direction: column; align-items: center; }
.cl-meta { flex: none; width: 184mm; display: flex; justify-content: space-between; font: 8.5pt/1 var(--body); color: #888; margin-bottom: 3mm; }
.cl-grid { flex: none; display: grid; gap: 2mm; }
.cl-large { grid-template-columns: repeat(3, 60mm); grid-auto-rows: 45mm; }
.cl-small { grid-template-columns: repeat(4, 40mm); grid-auto-rows: 30mm; }
.cl-label { border: 1px solid #b6ae8c; border-radius: 3mm; background: #f5f3e8; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2mm; gap: 1mm; overflow: hidden; }
.cl-large img { width: 45mm; height: 27mm; object-fit: contain; }
.cl-small img { width: 28mm; height: 14mm; object-fit: contain; }
.cl-name { flex: none; width: 100%; height: 7mm; text-align: center; color: #334a29; overflow: hidden; display: flex; align-items: center; justify-content: flex-start; }
.cl-large .cl-name { height: 9mm; }
.cl-name span { display: block; width: 100%; font-family: var(--head); font-weight: 600; line-height: 1.08; overflow-wrap: normal; word-break: keep-all; transform-origin: left center; }
.cl-name i { margin: 0 auto; width: 80%; height: 70%; border-bottom: 1.2px solid #999; }
.cl-bw .cl-label { border-color: #000; background: #fff; }
.cl-bw .cl-name { color: #000; }
