/* Etiketten (design: Etiketten.dc.html, the rules after "End of the shared parts"),
   scoped under .etk: the screen's root and the print container (a child of <body>). */
.page.scr-etiketten{gap:28px}
.etk .ewrap{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start}
.etk .eopts{flex:1 1 360px;max-width:460px;min-width:0;display:flex;flex-direction:column;gap:18px}
.etk .eprev{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:16px}
.etk .opts{display:flex;flex-wrap:wrap;gap:8px}
.etk .opt{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1.5px solid #D9D7D0;border-radius:999px;background:#FFFFFF;color:#121212;font-size:15px;font-weight:700;cursor:pointer}
.etk .opt:hover{border-color:#121212}
.etk .opt-on,.etk .opt-on:hover{border-color:#121212;background:#121212;color:#FAFAF7}
.etk .brow{display:flex;align-items:center;gap:12px;min-height:54px;padding:4px 0;border-top:1px solid #ECEAE4;cursor:pointer}
.etk .brow input{width:20px;height:20px;margin:0;accent-color:#121212;flex:none}
.etk .popt{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1.5px solid #D9D7D0;border-radius:12px;cursor:pointer;background:#FFFFFF}
.etk .popt:hover{border-color:#121212}
.etk .popt-on,.etk .popt-on:hover{border-color:#121212;background:#FFF1E9}
.etk .popt input{width:20px;height:20px;margin:2px 0 0;accent-color:#121212;flex:none}
/* The sheet as it comes out of the printer */
.etk .paper{background:#FFFFFF;border:1px solid #D9D7D0;box-shadow:0 24px 60px -30px rgba(18,18,18,.55);width:100%;max-width:620px;aspect-ratio:210/297;padding:4.4% 3.3%;display:grid}
.etk .paper-24{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr))}
.etk .paper-8{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr))}
.etk .paper-roll{max-width:330px;aspect-ratio:auto;padding:0;grid-template-columns:minmax(0,1fr)}
.etk .paper-roll .lab{aspect-ratio:62/29}
.etk .lab{container-type:inline-size;border:1px dashed #C9C6BD;display:flex;align-items:center;gap:5%;padding:0 6%;min-width:0;overflow:hidden;color:#121212}
.etk .lab svg{flex:none;width:30%;height:auto;display:block}
.etk .lab-tx{min-width:0;display:flex;flex-direction:column;line-height:1.15}
.etk .lab-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:800;font-size:17cqw;letter-spacing:-.03em;white-space:nowrap}
.etk .lab-name{font-size:6.6cqw;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.etk .lab-sub{font-size:5.6cqw;color:#2B2A27;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---- Added for the real app. */
/* A box named other than by its code ("Jazz") is cut off rather than pushed out of the label. */
.etk .lab-code{overflow:hidden;text-overflow:ellipsis}
/* On a computer the preview stays put (HANDOFF §3: top 89px), so it must fit under the top bar. */
@container (min-width:901px){
  .etk .eprev{position:sticky;top:89px}
  .etk .eprev .paper{max-width:min(620px,calc((100vh - 200px) * 210 / 297))}
  .etk .eprev .paper-roll{max-width:330px;max-height:calc(100vh - 200px);overflow-y:auto}
}

/* Print: only the sheets, at real size. The page size and margins come with the
   container (<style>@page{…}</style>, per paper). A4 label sheets: 3 × 70 mm by
   8 × 37 mm, or 2 × 105 mm by 4 × 74 mm, 0.5 mm top and bottom; a roll label is
   one 62 × 29 mm page. */
.lprint{display:none}
@media print{
  html,body{height:auto !important;background:#FFFFFF !important}
  body>*:not(.lprint){display:none !important}
  .lprint{display:block;color:#121212;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .lprint .lsheet{display:grid;width:210mm;height:297mm;padding:.5mm 0;overflow:hidden;break-after:page;page-break-after:always}
  .lprint .lsheet:last-child{break-after:auto;page-break-after:auto}
  .lprint-a24 .lsheet{grid-template-columns:repeat(3,70mm);grid-template-rows:repeat(8,37mm)}
  .lprint-a8 .lsheet{grid-template-columns:repeat(2,105mm);grid-template-rows:repeat(4,74mm)}
  .lprint-roll .lsheet{width:62mm;height:29mm;padding:0;grid-template-columns:62mm;grid-template-rows:29mm}
  .lprint .lab{border:0;width:100%;height:100%}
}
