/* Label sheet — screen preview */
.label-sheet {
    display: grid;
    grid-template-columns: repeat(3, 2.625in);
    gap: 0;
    margin: 1rem auto;
    width: fit-content;
}

.label {
    width: 2.625in;
    height: 1in;
    padding: 3pt 4pt;
    display: flex;
    align-items: center;
    gap: 6pt;
    overflow: hidden;
    box-sizing: border-box;
    border: 0.5pt solid #ddd;
}

.label-qr svg {
    width: 0.7in;
    height: 0.7in;
    display: block;
    flex-shrink: 0;
}

.label-text {
    display: flex;
    flex-direction: column;
    gap: 2pt;
    min-width: 0;
}

.label-id {
    font-family: 'Courier New', monospace;
    font-size: 9pt;
    font-weight: bold;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.label-url {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 7pt;
    color: #666;
    white-space: nowrap;
}

.sheet-controls {
    margin-bottom: 1.5rem;
}

.sheet-controls form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sheet-controls label {
    font-weight: 500;
}

.sheet-controls input[type="number"] {
    width: 5rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.sheet-controls button {
    padding: 0.4rem 1rem;
    border: 1px solid #999;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.sheet-controls button[type="submit"] {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.hint {
    font-size: 0.875rem;
    color: #666;
    width: 100%;
    margin: 0.5rem 0 0;
}

/* Print overrides */
@media print {
    .no-print { display: none !important; }

    body { margin: 0; padding: 0; }

    .label-sheet {
        margin: 0;
        grid-template-columns: repeat(3, 2.625in);
    }

    .label {
        border: 0.5pt solid #ccc;
        break-inside: avoid;
    }

    .label-url { color: #444; }
}
