/* DTG Table: the few parts the Separation Table's bench.css has no style for. Everything else is bench.css, so the two
   tables look and work the same. 369: spacing in 3s, 1px rules, no radius. */
/* six views (Art, Proof, Colour, White, Highlight, Knockout): bench.css sets three. Phones: two rows of three. */
#view.seg{grid-template-columns:repeat(6,minmax(0,1fr))}
#view.seg button{padding:0;letter-spacing:.02em}
@media (max-width:960px){
  #view.seg{grid-template-columns:repeat(3,minmax(0,1fr))}
  #view.seg button:nth-child(3n){border-right:0}
  #view.seg button:nth-child(-n+3){border-bottom:1px solid var(--line)}
  /* no job tabs: the workspace pins at the top of the screen, not under a tab strip */
  .pane.work > .square{top:var(--pin,0px)}
}
/* the platen picture (Proof with Show guides) is drawn at its shown size, labels and all: it is not scaled to the
   padded box as the art is */
.square .canvasbox canvas.platen{max-width:none;max-height:none}
/* a zoomed picture is dragged to move it */
.square .canvasbox canvas.zoomed{cursor:grab;touch-action:none}
.links{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:13px}
.links a{color:var(--fg)}
.machines{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.machines li{display:flex;justify-content:space-between;align-items:center;gap:9px;border:1px solid var(--line);padding:6px 9px;font-size:13px}
ul.plain{margin:0;padding-left:18px;font-size:13px}
#printerSrc a{color:var(--fg)}
/* Framed in an ADN page the frame is as tall as the table, so a panel centred in the frame can open off the screen. It
   opens at the top of the part of the frame in view, and is no taller than that part (--pin, --pvh: the page script). */
body.framed dialog#shopPanel,body.framed dialog#helpPanel{margin-top:calc(var(--pin,0px) + 12px);margin-bottom:auto;max-height:calc(var(--pvh,100vh) - 69px)}
/* ───── the tool strip and rulers: the Embroidery Table's look and keys (its page.css), on the DTG workspace ───── */
/* Rulers run along the workspace's top and left edges (18 px); the strip sits just inside them. No shadow (369). */
.toolstrip{position:absolute;z-index:5;left:27px;top:27px;display:flex;flex-direction:column;gap:2px;padding:3px;background:var(--surface);border:1px solid var(--line)}
.toolstrip[hidden]{display:none}
.toolstrip .tool{width:33px;height:33px;padding:0;display:grid;place-items:center;border:0;background:transparent;color:var(--fg)}
.toolstrip .tool:hover{background:var(--hover)}
.toolstrip .tool[aria-pressed=true]{background:var(--fg);color:var(--surface)}
.toolstrip .tool:disabled{opacity:.35}
.toolstrip .sep{display:block;height:1px;margin:2px 3px;background:var(--line)}
/* the overlay: rulers, grid and the measure line, over the picture; it takes the pointer only while measuring */
.square .aids{position:absolute;inset:0;z-index:4;width:100%;height:100%;pointer-events:none}
.square .aids.measuring{pointer-events:auto;cursor:crosshair;touch-action:none}
.square .canvasbox canvas.hand{cursor:grab}
/* the art clear of the strip and the rulers: room on the left and top only */
.square{--dtgpad:39px 27px 27px 81px}
.square .canvasbox:not(:has(canvas.zoomed)){padding:var(--dtgpad)}
.square .sizebadge{left:81px}
#zoomBox .units{display:inline-flex;align-items:center;gap:6px;margin-left:9px}
#zoomBox .units .lab{margin:0}
#zoomBox .units select{height:27px;width:auto;padding:0 6px}
/* phones: the strip is one row along the top, under the top ruler */
@media (max-width:960px){
  .toolstrip{flex-direction:row;flex-wrap:nowrap;left:24px;right:6px;top:24px;justify-content:flex-start;overflow-x:auto;scrollbar-width:none}
  .toolstrip .sep{width:1px;height:auto;margin:3px 2px}
  .toolstrip .tool{width:36px;height:36px;flex:none}
  .square{--dtgpad:75px 9px 9px 27px}
  .square .sizebadge{left:27px}
}
