/* Estilos para el formulario y botones */
.moliday-label-form {
    margin-bottom: 20px;
}

.moliday-label-form label {
    font-weight: bold;
}

.moliday-label-form input {
    padding: 5px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.moliday-label-form .button {
    background-color: #0073aa;
    color: #fff;
    padding: 5px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.print-button {
    margin-top: 20px;
    background-color: #0073aa;
    color: #fff;
    padding: 6px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Contenedor principal: dos columnas (Shipping Label y Product Card) */
.moliday-labels-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: #f5f5f5;
}

/* Tarjeta de envío (izquierda) */
.shipping-label {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

/* Cabecera con logo, título y QR */
.company-info {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.company-logo {
    width: 70px;
    height: auto;
}

.company-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.4em;
    color: #333;
}

.qr-code {
    width: 60px;
    justify-self: end;
}

/* Info del destinatario */
.recipient-info h3 {
    color: #91d3c2 !important; 
    margin: 15px 0 10px;
    font-size: 1.1em;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
}

.recipient-info p {
    margin: 6px 0;
    color: #34495e;
    font-size: 0.95em;
}

.recipient-info strong {
    color: #7f8c8d;
    min-width: 80px;
    display: inline-block;
}

/* Tarjeta de productos (derecha) */
.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

.product-card h3 {
    color: #91d3c2;
    margin-bottom: 10px;
    font-size: 1.1em;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
}

/* Tabla de productos */
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.product-table thead th {
    text-align: left;
    border-bottom: 2px solid #000;
    padding: 8px 0;
}

.product-table td {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

/* Totales */
.totals {
    text-align: right;
}

.totals p {
    margin: 5px 0;
    color: #34495e;
    font-size: 0.95em;
    font-weight: bold;
}

/* Estilos para impresión */
@media print {
    /* Ocultar formulario y botón de imprimir al imprimir */
    .moliday-label-form,
    .print-button {
        display: none !important;
    }

    /* Mostrar una sola columna en impresión */
    .moliday-labels-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        background: white;
    }
    .shipping-label, .product-card {
        page-break-inside: avoid;
        margin: 10px 0;
        box-shadow: none;
    }
}
