/* TVS LP 46 Neo Barcode Printer - Full Space Centered Design */
/* Label dimensions: 35mm width x 22mm height - Compact Layout */

@media print {
    @page {
        margin: 0;
        size: 4.5in auto;
    }
    
    body {
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
        font-weight: bold;
    }
    
    .tvs-label-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .tvs-label-row {
        display: flex !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        page-break-inside: avoid;
    }
    
    .tvs-label {
        height: 22mm !important;
        width: 35mm !important;
        margin: 0 1mm 1mm 0 !important;
        padding: 1mm !important;
        border: none !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        background: white !important;
    }
    
    .tvs-store-name {
        font-size: 6px !important;
        font-weight: bold !important;
        line-height: 1 !important;
        margin-bottom: 1mm !important;
        text-transform: uppercase !important;
        color: #000 !important;
        letter-spacing: 0.2px !important;
        width: 100% !important;
    }
    
    .tvs-item-name {
        font-size: 8px !important;
        font-weight: bold !important;
        line-height: 1.1 !important;
        margin-bottom: 1.5mm !important;
        color: #000 !important;
        word-wrap: break-word !important;
        text-transform: uppercase !important;
        width: 100% !important;
    }
    
    .tvs-price-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 1.5mm !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .tvs-price-row {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2mm !important;
        width: 100% !important;
    }
    
    .tvs-mrp {
        font-size: 5px !important;
        color: #000 !important;
        line-height: 1 !important;
        font-weight: bold !important;
        white-space: nowrap !important;
    }
    
    .tvs-price {
        font-size: 8px !important;
        font-weight: bold !important;
        color: #000 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
    
    .tvs-bottom-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .tvs-code {
        font-size: 5px !important;
        font-weight: bold !important;
        color: #000 !important;
        letter-spacing: 0.3px !important;
        font-family: monospace !important;
    }
    
    .tvs-qrcode {
        width: 8mm !important;
        height: 8mm !important;
        border: none !important;
        display: block !important;
    }
    
    .strikethrough {
        text-decoration: line-through !important;
        text-decoration-thickness: 1px !important;
    }
}

/* Screen preview styles */
.tvs-label-container {
    width: 100%;
    font-family: Arial, sans-serif;
    background: white;
    padding: 10px;
    font-weight: bold;
}

.tvs-label-row {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
    align-items: flex-start;
}

.tvs-label {
    height: 0.866in;  /* 22mm */
    width: 1.378in;   /* 35mm */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px solid #333;
    margin-right: 10px;
    padding: 3px;
    box-sizing: border-box;
    overflow: hidden;
    background: white;
    font-weight: bold;
}

.tvs-store-name {
    font-size: 8px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 3px;
    text-transform: uppercase;
    color: #333;
    letter-spacing: 0.2px;
    width: 100%;
}

.tvs-item-name {
    font-size: 10px;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 5px;
    color: #000;
    word-wrap: break-word;
    text-transform: uppercase;
    width: 100%;
}

.tvs-price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
    width: 100%;
    justify-content: center;
}

.tvs-price-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.tvs-mrp {
    font-size: 6px;
    color: #666;
    line-height: 1;
    font-weight: bold;
    white-space: nowrap;
}

.tvs-price {
    font-size: 10px;
    font-weight: bold;
    color: #000;
    line-height: 1;
    white-space: nowrap;
}

.tvs-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.tvs-code {
    font-size: 7px;
    font-weight: bold;
    color: #333;
    letter-spacing: 0.3px;
    font-family: monospace;
}

.tvs-qrcode {
    width: 35px;
    height: 35px;
    border: none;
    display: block;
}

.strikethrough {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .tvs-label {
        width: 30%;
        height: auto;
        min-height: 80px;
        margin-bottom: 15px;
    }
    
    .tvs-label-row {
        flex-wrap: wrap;
        justify-content: space-around;
    }
}
