/* Barcode generator. Builds on the shared generator styles in qr-code.css (fqrc-* classes). */
.barcode-page .bc-preview {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.barcode-page .bc-preview svg {
    display: block;
    width: 100%;
    max-width: 460px;
    height: auto;
}
.barcode-page .bc-note:empty { display: none; }
.barcode-page .bc-scan-status[data-state="verified"] { color: #15803d; }
.barcode-page .bc-scan-status[data-state="warning"] { color: #b45309; }
.barcode-page .bc-scan-status[data-state="pending"] { color: #6b7280; }
.barcode-page .bc-warnings[hidden] { display: none; }
.barcode-page .bc-warnings li { color: #b45309; }
.barcode-page [hidden] { display: none !important; }
.barcode-page .bc-pdf-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    align-items: end;
    margin-top: 14px;
}
.barcode-page .bc-pdf-row label { grid-column: 1 / -1; margin: 0; }
.barcode-page .bc-pdf-row button { margin: 0; white-space: nowrap; }
.barcode-page .bc-table-wrap { overflow-x: auto; }
.barcode-page .bc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.barcode-page .bc-table th,
.barcode-page .bc-table td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid #e5e7eb; }
.barcode-page .bc-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
@media (max-width: 560px) {
    .barcode-page .bc-pdf-row { grid-template-columns: 1fr; }
}

/* Number tools */
.barcode-page .bc-tool-notes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.barcode-page .bc-tool-notes:empty { display: none; }
.barcode-page .bc-tool-notes li { padding: 8px 10px; border-radius: 8px; background: #f3f4f6; }
.barcode-page .bc-tool-notes li.ok { background: #ecfdf5; color: #166534; }
.barcode-page .bc-tool-notes li.bad { background: #fff7ed; color: #9a3412; }
.barcode-page .bc-tool-results { margin-top: 10px; display: grid; gap: 8px; }
.barcode-page .bc-tool-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; }
.barcode-page .bc-tool-row small { grid-column: 1 / -1; color: #6b7280; font-size: 12px; }
.barcode-page .bc-tool-row span { font-size: 13px; color: #374151; }
.barcode-page .bc-tool-row code { display: block; font: 600 16px/1.3 Consolas, "Courier New", monospace; letter-spacing: .03em; }
.barcode-page .bc-tool-row .bc-tool-actions { display: flex; gap: 6px; }
.barcode-page .bc-tool-row button { margin: 0; padding: 6px 10px; font-size: 13px; }
/* Sequence */
.barcode-page .bc-seq { border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px 12px; margin: 0 0 6px; }
.barcode-page .bc-seq legend { font-weight: 600; font-size: 14px; padding: 0 4px; }
.barcode-page .bc-seq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }

/* Label sheets */
.barcode-page .bc-radio-row { display: grid; gap: 4px; margin: 10px 0; }
.barcode-page .bc-lbl-preview { margin: 12px 0; background: #e5e7eb; border-radius: 10px; padding: 12px; }
.barcode-page .bc-lbl-preview > svg { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); background: #fff; }
/* Camera check */
.barcode-page .bc-cam { border-top: 1px solid #e5e7eb; margin-top: 14px; padding-top: 14px; }
.barcode-page .bc-cam-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.barcode-page .bc-cam-actions button { margin: 0; }
.barcode-page .bc-cam-upload { font-size: 14px; color: #6b7280; cursor: pointer; }
.barcode-page .bc-cam-upload span { text-decoration: underline; color: #1d4ed8; }
.barcode-page .bc-cam-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.barcode-page .bc-cam-panel { margin-top: 12px; }
.barcode-page .bc-cam-view { position: relative; border-radius: 10px; overflow: hidden; background: #111; }
.barcode-page .bc-cam-view:has(video[hidden]) { display: none; }
.barcode-page .bc-cam-view video { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.barcode-page .bc-cam-view::after { content: ""; position: absolute; left: 10%; right: 10%; top: 30%; bottom: 30%; border: 2px solid rgba(255, 255, 255, .85); border-radius: 8px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); pointer-events: none; }
.barcode-page .bc-cam-status { font-weight: 600; margin: 10px 0 4px; }
.barcode-page .bc-cam-status[data-state="verified"] { color: #15803d; }
.barcode-page .bc-cam-status[data-state="warning"] { color: #b45309; }
.barcode-page .bc-cam-status[data-state="pending"] { color: #374151; }
