/* V17.7.4.157 — AR labels: guide lines run from QR edges to label border */
body.v17-labels-constrained{
  --st-labels-context-reserve:360px;
  overflow:hidden!important;
  background:#0B1723!important;
}
body.v17-labels-constrained .shell,
body.v17-labels-constrained .content,
body.v17-labels-constrained #view-labels-qr{background:#0B1723!important}
body.v17-labels-constrained .content{
  position:fixed!important;top:var(--top)!important;right:0!important;bottom:0!important;left:0!important;
  width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important
}
body.v17-labels-constrained #view-labels-qr{
  display:flex!important;flex-direction:column!important;position:fixed!important;top:var(--top)!important;
  right:var(--st-labels-context-reserve)!important;bottom:0!important;left:var(--side)!important;
  width:auto!important;height:auto!important;min-width:0!important;max-width:none!important;min-height:0!important;
  margin:0!important;padding:0 0 16px!important;overflow:hidden!important;color:#eef5fb!important;z-index:20!important
}
body.v17-labels-constrained #view-labels-qr > :not(.v17-uphb-host){width:100%;max-width:none;margin-left:0;margin-right:0}
body.v17-labels-constrained > .v17-right-handle,
body.v17-labels-constrained > .v17-edge-handle.v17-right-handle,
body.v17-labels-constrained button.v17-right-handle{display:none!important;visibility:hidden!important;pointer-events:none!important}
.labels-tabs{display:flex;gap:0;margin:66px 0 12px;border:1px solid #30475b;border-radius:7px;width:max-content!important;overflow:hidden}
.labels-tab{height:36px;padding:0 20px;border:0;border-right:1px solid #30475b;background:#102536;color:#aebdcc;font-weight:800;font-size:11px;cursor:pointer}
.labels-tab:last-child{border-right:0}.labels-tab.active{background:#1596e5;color:#fff}.labels-tab:hover:not(.active){background:#163149;color:#fff}
.labels-tab-panel{display:none;flex:1 1 auto;min-height:0;flex-direction:column}.labels-tab-panel.active{display:flex}
.labels-toolbar{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(4,minmax(110px,.7fr));gap:8px;margin:0 0 8px}
.labels-toolbar input,.labels-toolbar select{height:38px;width:100%;min-width:0;border:1px solid #36516a;border-radius:7px;background:#132f43;color:#eef5fb;padding:0 12px;font-size:11px;outline:none}
.labels-toolbar input:focus,.labels-toolbar select:focus{border-color:#1596e5;box-shadow:0 0 0 2px rgba(21,150,229,.08)}
.labels-toolbar .optional-filter[hidden]{display:none!important}
.labels-selection-row{display:flex;align-items:center;gap:8px;min-height:38px;margin:0 0 8px;flex-wrap:wrap}
.labels-selection-count{margin-right:auto;color:#88a5bd;font-size:11px}.labels-selection-count b{color:#eef5fb}
.labels-btn{height:34px;border:1px solid #355069;border-radius:6px;background:#102536;color:#eef5fb;padding:0 12px;font-size:10px;font-weight:800;cursor:pointer}.labels-btn:hover{border-color:#1596e5}.labels-btn.primary{background:#0877ef;border-color:#0877ef;color:#fff}.labels-btn:disabled{opacity:.45;cursor:not-allowed}
.labels-table-panel{position:relative;flex:1 1 auto;min-height:0;overflow:auto;isolation:isolate;padding:0!important;border:1px solid #d7e0e8!important;border-radius:8px!important;background:#fff!important}
.labels-table{width:100%!important;min-width:980px!important;border-collapse:separate!important;border-spacing:0!important;overflow:visible!important;border:0!important;border-radius:0!important}
.labels-table thead{position:sticky!important;top:0!important;z-index:40!important}.labels-table thead th{position:sticky!important;top:0!important;z-index:41!important;background:#f6f8fa!important;background-clip:padding-box!important;box-shadow:0 1px 0 #d7e0e8!important;font-size:8px!important;padding:9px 10px!important}.labels-table td{padding:9px 10px!important;font-size:10px!important}.labels-table tbody td{position:relative;z-index:1}.labels-table tbody tr{cursor:default}.labels-check{width:16px;height:16px;accent-color:#0877ef;cursor:pointer;vertical-align:middle}
.labels-ar-output-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 10px}
.labels-output-card{border:1px solid #31506a;border-radius:8px;background:#102536;padding:12px 14px;display:flex;align-items:center;gap:14px}.labels-output-card .copy{flex:1}.labels-output-card h3{margin:0 0 3px;font-size:12px;color:#eef5fb}.labels-output-card p{margin:0;color:#7f9ab0;font-size:10px;line-height:1.4}.labels-output-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.labels-empty{padding:24px;text-align:center;color:#627286;background:#fff}
/* Print preview modal */
/* V17.7.4.214 — Print preview dialog fills the real available screen between the open left drawer, reserved right zone, fixed top header, and fixed bottom footer. */
.labels-print-modal{display:none;position:fixed;top:var(--top);right:var(--st-labels-context-reserve);bottom:45px;left:var(--side);z-index:5000;background:rgba(2,14,24,.82);align-items:stretch;justify-content:stretch;padding:0}.labels-print-modal.show{display:flex}
.labels-print-dialog{width:100%;height:100%;display:flex;flex-direction:column;background:#0B1723;border:1px solid #36516a;border-radius:0;overflow:hidden;box-shadow:none}
.labels-print-head{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #273d50}.labels-print-head .copy{flex:1}.labels-print-head h3{margin:0;color:#eef5fb;font-size:15px}.labels-print-head p{margin:3px 0 0;color:#86a2b9;font-size:10px}.labels-print-head button{height:34px}
.labels-preview-shell{flex:1;min-height:0;overflow:auto;padding:18px;display:grid;place-items:start center;background:#07131d}
.labels-preview-nav{display:flex;align-items:center;justify-content:center;gap:12px;padding:9px;border-top:1px solid #273d50;color:#9db3c5;font-size:11px}.labels-preview-nav button{height:30px}
.labels-preview-page{width:min(620px,80vw);aspect-ratio:210/297;background:#fff;color:#111;box-shadow:0 8px 30px rgba(0,0,0,.38);overflow:hidden;position:relative}
.labels-preview-page.landscape{width:min(860px,92vw);aspect-ratio:297/210}
.labels-preview-page.portrait{width:min(620px,80vw);aspect-ratio:210/297}
.labels-preview-page .print-a4{min-height:0!important;box-sizing:border-box!important;transform-origin:top left!important}
.labels-preview-page.landscape .print-a4{width:297mm!important;height:210mm!important;zoom:.765}
.labels-preview-page.portrait .print-a4{width:210mm!important;height:297mm!important;zoom:.78}
#labelsPrintStage{display:none}
/* Physical print layouts */
/* V17.7.4.239 — Assembly tag card redesigned to match the approved tag sample while keeping 9 tags per A4 landscape sheet. */
.print-a4{width:210mm;height:297mm;box-sizing:border-box;background:#fff;color:#111;page-break-after:always;break-after:page;overflow:hidden;font-family:Arial,Helvetica,sans-serif}
.print-a4:last-child{page-break-after:auto;break-after:auto}
.tag-sheet{page:tag-sheet-landscape;width:297mm;height:210mm;padding:7mm;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:3mm;position:relative;overflow:hidden;background:#fff;isolation:isolate}
.assembly-tag{position:relative;z-index:2;border:.42mm solid #181818;border-radius:4.5mm;padding:4.25mm 4.5mm;display:grid;grid-template-columns:minmax(0,1fr) 35mm;gap:4mm;overflow:hidden;background:#fff;box-sizing:border-box;height:100%}
.tag-main{min-width:0;display:flex;flex-direction:column;gap:1.6mm}
.tag-mark{font-size:14mm;line-height:.9;font-weight:900;letter-spacing:.15mm;color:#000;margin:0}
.tag-info{display:flex;flex-direction:column;min-width:0}
.tag-line,.tag-data-cell{font-size:3.05mm;line-height:1.22;color:#111;font-weight:700;min-width:0}
.tag-line-label,.tag-data-label{font-weight:800;color:#111}
.tag-line-value,.tag-data-value{font-weight:900;color:#000}
.tag-line.project-number{font-size:2.95mm}
.tag-line.project-name{font-size:2.85mm;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
.tag-divider{height:0;border-top:.3mm solid #9d9d9d;margin:1.5mm 0 1.3mm}
.tag-data-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:5mm;row-gap:1mm;align-items:start}
.tag-data-row.single{grid-template-columns:minmax(0,1fr)}
.tag-data-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tag-qr{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2.4mm;min-width:0}
.tag-qr-code{display:flex;align-items:center;justify-content:center;width:100%}
.tag-qr svg,.tag-qr canvas,.tag-qr img{width:28.5mm!important;height:28.5mm!important;display:block}
.tag-qr small{font-size:2.5mm;font-weight:900;text-align:center;line-height:1.15;letter-spacing:.02mm;max-width:32mm;white-space:normal}

/* V17.7.4.241 — Assembly Tags 3 × 3 cutting guides.
   Lines run through the 3 mm gutters only; tag cards remain untouched. */
.tag-empty{position:relative;z-index:2;background:#fff}
.tag-cut-guide{
  position:absolute;
  z-index:8;
  pointer-events:none;
  color:#111;
  -webkit-print-color-adjust:exact;
  print-color-adjust:exact;
}
.tag-cut-v{
  top:0;
  bottom:0;
  width:.36mm;
  background:repeating-linear-gradient(to bottom,#111 0 1.8mm,transparent 1.8mm 3.6mm);
}
/* Centres of the two 3 mm vertical gutters in the current 297 × 210 mm tag sheet. */
.tag-cut-v1{left:100.833mm}
.tag-cut-v2{left:196.167mm}
.tag-cut-h{
  left:0;
  right:0;
  height:.36mm;
  background:repeating-linear-gradient(to right,#111 0 1.8mm,transparent 1.8mm 3.6mm);
}
/* Centres of the two 3 mm horizontal gutters. */
.tag-cut-h1{top:71.833mm}
.tag-cut-h2{top:138.167mm}
.tag-cut-guide span{
  position:absolute;
  z-index:9;
  display:block;
  padding:.45mm .85mm;
  background:#fff;
  color:#111;
  font-family:Arial,Helvetica,sans-serif;
  font-size:6mm;
  line-height:1;
  font-weight:400;
}
.tag-cut-v span{
  left:0;
  top:50%;
  transform:translate(-50%,-50%) rotate(90deg);
}
.tag-cut-h span{
  left:50%;
  top:0;
  transform:translate(-50%,-50%);
}
.ar-label-sheet{
  page:ar-label-sheet-landscape;
  width:297mm;
  height:210mm;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-template-rows:repeat(2,1fr);
  gap:0;
  position:relative;
  overflow:hidden;
  background:#fff;
  isolation:isolate;
}
.ar-label-card{
  --ar-qr-size:68mm;
  --ar-guide-thickness:.48mm;
  --ar-guide-color:#ff1c18;
  position:relative;
  z-index:2;
  min-width:0;
  min-height:0;
  padding:3.2mm 5.8mm 3.0mm;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
  background:#fff;
  overflow:hidden;
  isolation:isolate;
  -webkit-print-color-adjust:exact;
  print-color-adjust:exact;
}
/* Red AR alignment cross. It sits behind the QR/text so it never crosses content. */
.ar-label-card .ar-guide{
  position:absolute;
  z-index:0;
  pointer-events:none;
  display:block;
  background:var(--ar-guide-color);
  -webkit-print-color-adjust:exact;
  print-color-adjust:exact;
}
.ar-label-card .ar-guide-v{
  left:50%;
  top:2mm;
  bottom:2mm;
  width:var(--ar-guide-thickness);
  transform:translateX(-50%);
}
.ar-label-card .ar-guide-h{
  left:7mm;
  right:7mm;
  top:45.2mm;
  height:var(--ar-guide-thickness);
  transform:translateY(-50%);
}
/* All printed content masks the red line beneath it. */
.ar-label-card .ar-brand,
.ar-label-card .ar-qr-wrap,
.ar-label-card .ar-mark,
.ar-label-card .ar-project,
.ar-label-card .ar-caption,
.ar-label-card .ar-meta{
  position:relative;
  z-index:5;
  background:#fff;
}
.ar-label-card .ar-brand{
  min-height:5.1mm;
  padding:0 2.2mm;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:3.85mm;
  line-height:1;
  font-weight:900;
  letter-spacing:.62mm;
  margin:0 0 2.2mm;
  white-space:nowrap;
}
.ar-label-card .ar-qr-wrap{
  width:68mm;
  height:68mm;
  flex:0 0 68mm;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.ar-label-card .ar-qr-wrap svg,
.ar-label-card .ar-qr-wrap canvas,
.ar-label-card .ar-qr-wrap img{
  width:68mm!important;
  height:68mm!important;
  display:block;
  flex:0 0 68mm;
}
.ar-label-card .ar-mark{
  padding:0 2.4mm;
  font-size:7.8mm;
  line-height:.9;
  font-weight:900;
  letter-spacing:.08mm;
  margin:2.0mm 0 0;
  white-space:nowrap;
}
.ar-label-card .ar-project{
  padding:0 2mm;
  font-size:2.35mm;
  line-height:1.05;
  font-weight:800;
  margin:.75mm 0 0;
  white-space:nowrap;
}
.ar-label-card .ar-caption{
  padding:0 2mm;
  font-size:2.75mm;
  line-height:1.05;
  font-weight:900;
  margin:.75mm 0 0;
  white-space:nowrap;
}
.ar-label-card .ar-meta{
  padding:0 1.8mm;
  font-size:1.72mm;
  line-height:1.05;
  color:#555;
  margin:.65mm 0 0;
  white-space:nowrap;
}
/* 2 vertical + 1 horizontal cut lines, as in the approved reference. */
.ar-cut-guide{
  position:absolute;
  z-index:20;
  pointer-events:none;
  color:#111;
  -webkit-print-color-adjust:exact;
  print-color-adjust:exact;
}
.ar-cut-v{
  top:2.5mm;
  bottom:2.5mm;
  width:.38mm;
  background:repeating-linear-gradient(to bottom,#111 0 1.8mm,transparent 1.8mm 3.6mm);
}
.ar-cut-v1{left:33.333333%}
.ar-cut-v2{left:66.666667%}
.ar-cut-h{
  left:7mm;
  right:7mm;
  top:50%;
  height:.38mm;
  background:repeating-linear-gradient(to right,#111 0 1.8mm,transparent 1.8mm 3.6mm);
}
.ar-cut-guide span{
  position:absolute;
  z-index:21;
  display:block;
  padding:.4mm .8mm;
  background:#fff;
  color:#111;
  font-family:Arial,Helvetica,sans-serif;
  font-size:6.2mm;
  line-height:1;
  font-weight:400;
}
.ar-cut-v span{
  left:0;
  top:50%;
  transform:translate(-50%,-50%) rotate(90deg);
}
.ar-cut-h span{
  left:0;
  top:0;
  transform:translate(-50%,-50%);
}
.ar-label-empty{background:#fff;position:relative;z-index:2}
/* V17.7.4.228 — Full A4 Site QR true landscape composition. */
.site-a4{page:site-sheet-landscape;width:297mm;height:210mm;padding:8mm;display:grid;grid-template-columns:170mm 105mm;grid-template-rows:194mm;column-gap:6mm;align-items:stretch;background:#fff;color:#111;box-sizing:border-box;overflow:hidden;text-align:center}
.site-qr-wrap{grid-column:1;grid-row:1;width:170mm;height:194mm;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff}
.site-qr-wrap svg{width:170mm;height:170mm;display:block;flex:0 0 170mm}
.site-info{grid-column:2;grid-row:1;width:105mm;height:194mm;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;padding:4mm 2mm 3mm;overflow:hidden}
.site-brand{font-size:7mm;font-weight:900;letter-spacing:.75mm;line-height:1.05;margin:0;white-space:nowrap}
.site-project{font-size:4.2mm;font-weight:800;line-height:1.15;margin:6mm 0 0;white-space:nowrap}
.site-mark{font-size:20mm;font-weight:900;line-height:.95;margin:18mm 0 0;white-space:nowrap;letter-spacing:.3mm}
.site-caption{font-size:5mm;font-weight:900;line-height:1.1;margin:5mm 0 0;white-space:nowrap}
.site-scan-note{font-size:3mm;font-weight:700;line-height:1.25;margin:3mm 0 0;color:#333;white-space:nowrap}
.site-cal{margin:auto auto 0;width:100mm;border-top:.5mm solid #111;font-size:2.8mm;line-height:1.2;padding-top:1.5mm;box-sizing:border-box}
.site-meta{font-size:2.35mm;line-height:1.25;color:#555;margin:3mm 0 0;white-space:nowrap}
@media print{
  @page{size:A4 portrait;margin:0}
  @page tag-sheet-landscape{size:A4 landscape;margin:0}
  @page ar-label-sheet-landscape{size:A4 landscape;margin:0}
  @page label-sheet-portrait{size:A4 portrait;margin:0}
  @page site-sheet-landscape{size:A4 landscape;margin:0}
  html,body{width:auto!important;height:auto!important;overflow:visible!important;background:#fff!important}
  body.labels-printing > *:not(#labelsPrintStage){display:none!important}
  body.labels-printing #labelsPrintStage{display:block!important;position:static!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;background:#fff!important}
}
@media(max-width:1100px){.labels-toolbar{grid-template-columns:1fr 1fr 1fr}.labels-ar-output-grid{grid-template-columns:1fr}}


/* V17.7.4.148 — Set AR Marker */
.labels-marker-btn{height:28px;min-width:92px;padding:0 9px;border:1px solid #2f6f9f;border-radius:5px;background:#0e2d43;color:#dcedf9;font-size:9px;font-weight:850;cursor:pointer;white-space:nowrap}
.labels-marker-btn:hover{border-color:#1596e5;background:#123a55;color:#fff}.labels-marker-btn.saved{border-color:#2d8a58;color:#bff0d2;background:#123526}
.ar-marker-modal{display:none;position:fixed;inset:0;z-index:5200;background:rgba(2,14,24,.86);align-items:center;justify-content:center;padding:16px}.ar-marker-modal.show{display:flex}
.ar-marker-dialog{width:min(1320px,97vw);height:min(850px,95vh);display:flex;flex-direction:column;background:#0B1723;border:1px solid #36516a;border-radius:10px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.5)}
.ar-marker-head{height:58px;flex:0 0 58px;display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid #273d50}.ar-marker-head .copy{flex:1}.ar-marker-head h3{margin:0;color:#eef5fb;font-size:15px}.ar-marker-head p{margin:3px 0 0;color:#86a2b9;font-size:10px}
.ar-marker-body{display:grid;grid-template-columns:minmax(0,1fr) 320px;flex:1;min-height:0}.ar-marker-viewer-wrap{position:relative;min-width:0;min-height:0;background:#0B1723;border-right:1px solid #273d50}.ar-marker-viewer-wrap iframe{display:block;width:100%;height:100%;border:0;background:#0B1723}
.ar-marker-help{position:absolute;left:14px;top:14px;z-index:3;pointer-events:none;display:flex;flex-direction:column;gap:3px;padding:9px 11px;border:1px solid rgba(255,255,255,.14);border-radius:6px;background:rgba(6,24,38,.86);color:#fff;box-shadow:0 5px 18px rgba(0,0,0,.25)}.ar-marker-help b{font-size:10px;letter-spacing:.04em;color:#43b8ff}.ar-marker-help span{font-size:10px;color:#c6d7e4}
.ar-marker-info{min-width:0;overflow:auto;padding:15px;background:#0B1723;color:#e7eef5}.ar-marker-info h4{margin:0 0 10px;font-size:11px;letter-spacing:.05em;color:#9db3c5}.ar-marker-info-row{display:grid;grid-template-columns:112px minmax(0,1fr);gap:10px;align-items:center;padding:9px 0;border-top:1px solid rgba(255,255,255,.09);font-size:10px}.ar-marker-info-row span{color:#8199ad}.ar-marker-info-row strong{min-width:0;text-align:right;color:#eef5fb;font-size:10px;overflow-wrap:anywhere}.ar-marker-rotate{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}.ar-marker-status{min-height:42px;margin:8px 0 10px;padding:9px 10px;border:1px solid #31506a;border-radius:6px;background:#102536;color:#a9bdcc;font-size:10px;line-height:1.45}.ar-marker-status.good{border-color:#2c7650;color:#bff0d2;background:#103020}.ar-marker-status.bad{border-color:#8d4d4d;color:#ffd1d1;background:#341b1b}.ar-marker-save{width:100%;height:38px}.ar-marker-note{margin:10px 0 0;color:#728ca1;font-size:9px;line-height:1.45}
@media(max-width:850px){.ar-marker-body{grid-template-columns:1fr}.ar-marker-info{display:none}.ar-marker-viewer-wrap{border-right:0}.ar-marker-dialog{height:94vh}}


@media print{.ar-label-card .ar-guide{display:block!important;visibility:visible!important;opacity:1!important;background:var(--ar-guide-color)!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}

/* V17.7.4.219 — Assembly Tags A4 preview fills the full Available Viewport width.
   This affects on-screen preview only; physical print remains A4 landscape at 100%. */
.labels-preview-shell.labels-tags-viewport-width{
  padding:0!important;
  display:grid!important;
  place-items:start stretch!important;
  overflow-x:hidden!important;
}
.labels-preview-page.landscape.labels-tags-viewport-width{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  aspect-ratio:297/210!important;
  box-shadow:none!important;
}
.labels-preview-page.landscape.labels-tags-viewport-width .print-a4{
  width:297mm!important;
  height:210mm!important;
  transform-origin:top left!important;
}


/* V17.7.4.221 — Compact Assembly Tags print-preview controls.
   Keep title and summary on single lines, PRINT/CLOSE on one row,
   and reclaim vertical space so a full-width A4 landscape preview fits. */
.labels-print-head{
  height:30px!important;
  min-height:30px!important;
  padding:2px 8px!important;
  gap:8px!important;
  flex:0 0 30px!important;
  overflow:hidden!important;
}
.labels-print-head .copy{
  flex:0 0 300px!important;
  min-width:300px!important;
  max-width:300px!important;
  overflow:hidden!important;
}
.labels-print-head h3{
  margin:0!important;
  font-size:12px!important;
  line-height:12px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.labels-print-head p{
  margin:1px 0 0!important;
  font-size:8.5px!important;
  line-height:9px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.labels-print-head button{
  height:26px!important;
  min-height:26px!important;
  padding:0 12px!important;
}
#labelsPreviewPrint{
  flex:1 1 auto!important;
  min-width:0!important;
}
#labelsPrintClose{
  flex:0 0 auto!important;
}
.labels-preview-nav.v17-preview-one-page{
  display:none!important;
}
.labels-preview-shell.labels-tags-viewport-width{
  overflow-y:hidden!important;
}


/* V17.7.4.222 — Assembly Tags preview: full-width A4 with all preview controls in one compact bottom row. */
.labels-print-dialog{
  display:flex!important;
  flex-direction:column!important;
}
.labels-print-meta{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.labels-print-head{
  display:none!important;
}
.labels-preview-shell{
  flex:1 1 auto!important;
  min-height:0!important;
}
.labels-preview-shell.labels-tags-viewport-width{
  padding:0!important;
  overflow:hidden!important;
  display:grid!important;
  place-items:start stretch!important;
}
.labels-preview-page.landscape.labels-tags-viewport-width{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  aspect-ratio:297/210!important;
  box-shadow:none!important;
}
.labels-preview-nav{
  flex:0 0 30px!important;
  min-height:30px!important;
  height:30px!important;
  padding:0 8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border-top:1px solid #273d50!important;
  background:#0B1723!important;
  color:#9db3c5!important;
  font-size:10px!important;
  line-height:1!important;
}
.labels-preview-nav.v17-preview-one-page{
  display:flex!important;
}
.labels-preview-nav .labels-btn{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:58px!important;
  height:24px!important;
  min-height:24px!important;
  padding:0 10px!important;
  font-size:9px!important;
}
#labelsPreviewPrint{
  flex:0 0 auto!important;
  width:74px!important;
  min-width:74px!important;
}
#labelsPrintClose{
  flex:0 0 auto!important;
  width:66px!important;
  min-width:66px!important;
}
#labelsPreviewCounter{
  min-width:72px!important;
  text-align:center!important;
  white-space:nowrap!important;
}


/* V17.7.4.223 — Assembly Tags preview vertical positioning polish.
   Move the A4 sheet slightly down while moving the bottom control row up by the same amount. */
.labels-print-modal.labels-tags-preview .labels-preview-shell.labels-tags-viewport-width{
  padding-top:12px!important;
  box-sizing:border-box!important;
}
.labels-print-modal.labels-tags-preview .labels-preview-nav{
  margin-top:-12px!important;
  position:relative!important;
  z-index:5!important;
}


/* V17.7.4.224 — Assembly Tags preview final layout from approved screenshot.
   One compact TOP strip: title/summary at left and Previous/Page/Next/Print/Close at right.
   Full-width A4 landscape preview starts immediately underneath. No bottom control bar. */
.labels-print-modal.labels-tags-preview .labels-print-dialog{
  display:grid!important;
  grid-template-columns:minmax(280px,330px) minmax(0,1fr)!important;
  grid-template-rows:52px minmax(0,1fr)!important;
  width:100%!important;
  height:100%!important;
  overflow:hidden!important;
}
.labels-print-modal.labels-tags-preview .labels-print-meta{
  position:static!important;
  grid-column:1!important;
  grid-row:1!important;
  width:auto!important;
  height:52px!important;
  min-width:0!important;
  margin:0!important;
  padding:5px 10px 4px!important;
  overflow:hidden!important;
  clip:auto!important;
  white-space:normal!important;
  border:0!important;
  border-bottom:1px solid #273d50!important;
  background:#0B1723!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  box-sizing:border-box!important;
}
.labels-print-modal.labels-tags-preview .labels-print-meta h3{
  margin:0!important;
  color:#eef5fb!important;
  font-size:18px!important;
  font-weight:800!important;
  line-height:20px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.labels-print-modal.labels-tags-preview .labels-print-meta p{
  margin:2px 0 0!important;
  color:#8fb4ce!important;
  font-size:9px!important;
  font-weight:500!important;
  line-height:11px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.labels-print-modal.labels-tags-preview .labels-preview-nav{
  grid-column:2!important;
  grid-row:1!important;
  position:static!important;
  margin:0!important;
  width:100%!important;
  height:52px!important;
  min-height:52px!important;
  padding:0 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  border:0!important;
  border-bottom:1px solid #273d50!important;
  background:#0B1723!important;
  box-sizing:border-box!important;
  z-index:auto!important;
}
.labels-print-modal.labels-tags-preview .labels-preview-nav .labels-btn{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:58px!important;
  height:26px!important;
  min-height:26px!important;
  padding:0 10px!important;
  font-size:9px!important;
  line-height:1!important;
}
.labels-print-modal.labels-tags-preview #labelsPreviewCounter{
  flex:0 0 auto!important;
  min-width:74px!important;
  text-align:center!important;
  white-space:nowrap!important;
  color:#9db3c5!important;
  font-size:10px!important;
}
.labels-print-modal.labels-tags-preview #labelsPreviewPrint{
  flex:0 0 78px!important;
  width:78px!important;
  min-width:78px!important;
}
.labels-print-modal.labels-tags-preview #labelsPrintClose{
  flex:0 0 62px!important;
  width:62px!important;
  min-width:62px!important;
}
.labels-print-modal.labels-tags-preview .labels-preview-shell.labels-tags-viewport-width{
  grid-column:1 / -1!important;
  grid-row:2!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  overflow:hidden!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
.labels-print-modal.labels-tags-preview .labels-preview-page.landscape.labels-tags-viewport-width{
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  margin:0!important;
  aspect-ratio:297/210!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.labels-print-modal.labels-tags-preview .labels-preview-page.landscape.labels-tags-viewport-width .print-a4{
  transform-origin:top left!important;
}


/* V17.7.4.225 — Assembly Tags preview control alignment.
   Pager is centred across the full Available Viewport; Print/Close stay right. */
.labels-print-modal.labels-tags-preview .labels-print-dialog{
  grid-template-columns:1fr!important;
}
.labels-print-modal.labels-tags-preview .labels-print-meta{
  grid-column:1!important;
  grid-row:1!important;
  width:330px!important;
  max-width:330px!important;
  z-index:3!important;
  pointer-events:none!important;
}
.labels-print-modal.labels-tags-preview .labels-preview-nav{
  grid-column:1!important;
  grid-row:1!important;
  position:relative!important;
  width:100%!important;
  height:52px!important;
  min-height:52px!important;
  padding:0 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  border-bottom:1px solid #273d50!important;
  box-sizing:border-box!important;
  z-index:2!important;
}
.labels-print-modal.labels-tags-preview .labels-preview-pager{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  white-space:nowrap!important;
}
.labels-print-modal.labels-tags-preview .labels-preview-actions{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
}
.labels-print-modal.labels-tags-preview .labels-preview-nav .labels-btn,
.labels-print-modal.labels-tags-preview #labelsPreviewPrint,
.labels-print-modal.labels-tags-preview #labelsPrintClose{
  height:26px!important;
  min-height:26px!important;
  line-height:24px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  align-self:center!important;
}
.labels-print-modal.labels-tags-preview #labelsPreviewPrint{
  width:78px!important;
  min-width:78px!important;
}
.labels-print-modal.labels-tags-preview #labelsPrintClose{
  width:62px!important;
  min-width:62px!important;
}
.labels-print-modal.labels-tags-preview #labelsPreviewCounter{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:26px!important;
  min-width:74px!important;
  margin:0!important;
}


/* V17.7.4.227 — UPPZ applies to Assembly Tags, Standard AR Labels, and Full A4 Site QR. */

.labels-print-modal.labels-uppz-preview .labels-print-dialog{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:46px minmax(0,1fr)!important;
  width:100%!important;
  height:100%!important;
  overflow:hidden!important;
}
.labels-print-modal.labels-uppz-preview .labels-print-meta{
  position:static!important;
  grid-column:1!important;
  grid-row:1!important;
  width:330px!important;
  max-width:330px!important;
  height:46px!important;
  min-width:0!important;
  margin:0!important;
  padding:4px 10px!important;
  overflow:hidden!important;
  clip:auto!important;
  white-space:normal!important;
  border:0!important;
  border-bottom:1px solid #273d50!important;
  background:#0B1723!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  z-index:3!important;
  pointer-events:none!important;
}
.labels-print-modal.labels-uppz-preview .labels-print-meta h3{
  margin:0!important;
  color:#eef5fb!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:14px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.labels-print-modal.labels-uppz-preview .labels-print-meta p{
  margin:2px 0 0!important;
  color:#8fb4ce!important;
  font-size:8.5px!important;
  font-weight:500!important;
  line-height:10px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.labels-print-modal.labels-uppz-preview .labels-preview-nav{
  grid-column:1!important;
  grid-row:1!important;
  position:relative!important;
  width:100%!important;
  height:46px!important;
  min-height:46px!important;
  padding:0 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  border:0!important;
  border-bottom:1px solid #273d50!important;
  background:#0B1723!important;
  box-sizing:border-box!important;
  z-index:2!important;
}
.labels-print-modal.labels-uppz-preview .labels-preview-pager{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  white-space:nowrap!important;
}
.labels-print-modal.labels-uppz-preview .labels-preview-actions{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
}
.labels-print-modal.labels-uppz-preview .labels-preview-nav .labels-btn,
.labels-print-modal.labels-uppz-preview #labelsPreviewPrint,
.labels-print-modal.labels-uppz-preview #labelsPrintClose{
  height:26px!important;
  min-height:26px!important;
  line-height:24px!important;
  padding:0 10px!important;
  margin:0!important;
  box-sizing:border-box!important;
  align-self:center!important;
}
.labels-print-modal.labels-uppz-preview .labels-preview-nav .labels-btn{min-width:58px!important;font-size:9px!important}
.labels-print-modal.labels-uppz-preview #labelsPreviewCounter{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:26px!important;
  min-width:74px!important;
  margin:0!important;
  color:#9db3c5!important;
  font-size:10px!important;
}
.labels-print-modal.labels-uppz-preview #labelsPreviewPrint{width:74px!important;min-width:74px!important}
.labels-print-modal.labels-uppz-preview #labelsPrintClose{width:62px!important;min-width:62px!important}
.labels-print-modal.labels-uppz-preview .labels-preview-shell{
  grid-column:1!important;
  grid-row:2!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  overflow:hidden!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
.labels-print-modal.labels-uppz-preview .labels-preview-page{
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  margin:0!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.labels-print-modal.labels-uppz-preview .labels-preview-page.landscape{aspect-ratio:297/210!important}
.labels-print-modal.labels-uppz-preview .labels-preview-page.portrait{aspect-ratio:210/297!important}
.labels-print-modal.labels-uppz-preview .labels-preview-page .print-a4{transform-origin:top left!important}


/* V17.7.4.229 — Assembly Instance identification on printed tags. */

/* V17.7.4.231 — quantity verification is visible instead of silently blocking Preview/Print. */
.labels-print-modal.labels-uppz-preview #labelsPreviewPrint:disabled{opacity:.45!important;cursor:wait!important}


/* V17.7.4.233 — Compact Assembly Tags Print Action Panel.
   Match approved compact reference: thinner panel, one-line actions, reclaimed vertical space. */
#labelsTagPanel .labels-tag-print-card{
  min-height:66px!important;
  height:66px!important;
  padding:8px 12px!important;
  gap:16px!important;
  align-items:center!important;
  box-sizing:border-box!important;
}
#labelsTagPanel .labels-tag-print-card .copy{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
#labelsTagPanel .labels-tag-print-card h3{
  margin:0 0 2px!important;
  font-size:12px!important;
  line-height:14px!important;
}
#labelsTagPanel .labels-tag-print-card p{
  margin:0!important;
  font-size:9.5px!important;
  line-height:12px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#labelsTagPanel .labels-tag-print-card .labels-output-actions{
  flex:0 0 auto!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
}
#labelsTagPanel .labels-tag-print-card .labels-output-actions .labels-btn{
  width:auto!important;
  min-width:72px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0 14px!important;
  margin:0!important;
  white-space:nowrap!important;
}
#labelsTagPanel .labels-tag-print-card #labelsPrintTagSelected{
  min-width:74px!important;
}
#labelsTagPanel .labels-tag-print-card #labelsPreviewTagSelected{
  min-width:74px!important;
}
@media(max-width:850px){
  #labelsTagPanel .labels-tag-print-card{height:auto!important;min-height:66px!important;flex-wrap:wrap!important}
  #labelsTagPanel .labels-tag-print-card p{white-space:normal!important}
}
