/* Name Badge Sheets - uses the shop's colour variables from /static/styles.css */
.nb h2 { margin-top: 0; font-size: 1.15rem; }
.nb h3 { margin-top: 14px; }
.nb-cols { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 16px 0; }
@media (min-width: 720px) { .nb-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.nb-controls { display: grid; gap: 16px; min-width: 0; }
.nb-output { min-width: 0; }
.nb-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; margin-bottom: 16px; }
.nb-controls .nb-panel, .nb-output .nb-panel { margin-bottom: 0; }
@media (min-width: 720px) { .nb-sticky { position: sticky; top: 12px; } }
.nb-label { display: block; font-size: 0.9rem; font-weight: 600; margin: 8px 0 4px; }
.nb-label .nb-input { margin-top: 4px; font-weight: 400; }
.nb-input { display: block; width: 100%; min-width: 0; padding: 9px 10px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.nb-input:focus-visible, .nb .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nb-textarea { font-family: ui-monospace, Consolas, monospace; font-size: 14px; resize: vertical; white-space: pre; overflow: auto; }
.nb-color { padding: 2px; height: 42px; }
.nb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.nb-grow { flex: 1 1 160px; width: auto; }
.nb-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 12px; align-items: end; }
.nb-span2 { grid-column: 1 / -1; }
.nb-hint { color: var(--muted); font-size: 0.88rem; margin: 6px 0; }
.nb-error { color: #b3261e; font-size: 0.92rem; margin: 8px 0; white-space: pre-line; }
.nb-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 0.95rem; }
.nb-check input { width: 20px; height: 20px; flex: none; }
.nb-check-inline { align-self: end; padding-bottom: 8px; }
.nb .nb-btn-quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 9px 14px; font-size: 0.95rem; font-weight: 600; }
.nb .btn:disabled { background: var(--line); color: var(--muted); cursor: default; filter: none; }
.nb-file { position: relative; overflow: hidden; }
.nb-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.nb-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.nb-paid { border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 12px 12px; margin: 16px 0 0; min-width: 0; }
.nb-paid legend { font-weight: 650; padding: 0 6px; }
.nb-paid:disabled { opacity: 0.6; }
.nb-canvas-wrap { background: #8d948f; border-radius: 8px; padding: 10px; display: flex; justify-content: center; }
.nb-canvas-wrap canvas { display: block; max-width: 100%; height: auto; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.nb-pager { justify-content: center; }
.nb-download { width: 100%; margin-top: 8px; }
.nb-warn { background: var(--note); border-left: 4px solid #b3771e; border-radius: 6px; padding: 8px 12px; font-size: 0.92rem; margin: 8px 0; overflow-wrap: anywhere; }
.nb-warn.nb-bad { border-left-color: #b3261e; }
