/* style.css */
@page {
    /* Defines the margin for every printed page */
    margin: 0.25in;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
}

.qr-code-tape {
    width: 2.4in;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px dashed #d1d5db;
    /* FIX: Add padding here so it applies to BOTH preview and print */
    padding: 1rem;
    box-sizing: border-box; /* Ensures padding is included in the 2.4in width */
}

/* FIX: Unified layout for both preview and print sheet */
#labelsContainer, #print-sheet {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.qr-code-item {
    width: fit-content;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.price-tag-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    color: white;
    font-weight: 900;
}

.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white; padding: 2rem; border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#preview-area {
    position: relative;
}

.editable-container {
    position: absolute; display: flex; justify-content: center; align-items: center;
    text-align: center; word-break: break-word; overflow: hidden;
    font-family: 'Inter', sans-serif; padding: 2px;
}

/* --- PRINT-SPECIFIC STYLES --- */
@media print {
    body { background-color: white; margin: 0; }
    .no-print, body > *:not(#print-sheet) {
        display: none !important;
    }
    #print-sheet {
        display: flex !important; /* Use flex to match the preview */
        border: none;
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}