/* CSS/recibos.css */
/* ================================================================= */
/* 🧾 ESTILOS ESTRUCTURALES PARA TICKETS DE COMPRA (INVISIBLE EN APP) */
/* ================================================================= */

#crm-ticket-render-zone {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 360px; /* Ancho estándar exacto de un ticket térmico móvil */
    box-sizing: border-box;
}

.whatsapp-ticket-card {
    background: #ffffff;
    color: #1e293b;
    font-family: 'Arial', sans-serif;
    padding: 24px;
    border-radius: 0px; /* Simula corte de papel continuo */
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
}

.ticket-header {
    text-align: center;
    margin-bottom: 15px;
}

.ticket-brand {
    font-size: 1.4rem;
    font-weight: 900;
    color: rgb(0, 150, 136); /* Color azul verdoso corporativo */
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.ticket-header h3 {
    font-size: 0.95rem;
    color: #64748b;
    margin: 4px 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.ticket-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}

.ticket-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 15px 0;
}

.ticket-divider.dashed {
    background: transparent;
    border-top: 1px dashed #cbd5e1;
}

.ticket-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.ticket-row .label {
    color: #64748b;
    font-weight: 500;
}

.ticket-row .value {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

.ticket-row.total-row {
    font-size: 1.1rem;
    padding: 4px 0;
}

.ticket-row.total-row .label {
    color: #0f172a;
    font-weight: 700;
}

.ticket-row .highlight-positive {
    color: #16a34a !important; /* Verde Esmeralda operativo */
    font-weight: 800;
}

.ticket-row .highlight-negative {
    color: #dc2626 !important;
    font-weight: 800;
}

.ticket-footer {
    text-align: center;
    margin-top: 25px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 15px;
}

.ticket-footer p {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.ticket-footer small {
    font-size: 0.75rem;
    color: #94a3b8;
}
