/* assets/css/ticket.css */

/* Contenedor del modal para que el ticket flote */
#ticket-visual-container {
    padding: 30px 15px;
    background-color: #f0f2f5;
    /* Fondo gris claro para resaltar el ticket */
    display: flex;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
}

/* Caja principal del Ticket - Estilo Cupón de Referencia */
.ticket-box {
    width: 100%;
    max-width: 380px;
    background: white;
    border-radius: 8px;
    /* Bordes ligeramente redondeados */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
    border: 1px solid #e1e8ed;
}

/* Efecto de cortes circulares laterales de la imagen de referencia */
.ticket-box::before,
.ticket-box::after {
    content: '';
    position: absolute;
    top: 50%;
    /* Centrado verticalmente */
    width: 24px;
    height: 24px;
    background-color: #f0f2f5;
    /* Mismo color que el fondo del contenedor */
    border-radius: 50%;
    transform: translateY(-50%);
    border: 1px solid #e1e8ed;
    z-index: 5;
}

/* Ajuste de posición para que muerdan el borde */
.ticket-box::before {
    left: -13px;
    box-shadow: inset -3px 0 5px rgba(0, 0, 0, 0.03);
}

.ticket-box::after {
    right: -13px;
    box-shadow: inset 3px 0 5px rgba(0, 0, 0, 0.03);
}

/* Encabezado del Ticket */
.ticket-header {
    background-color: #1a365d;
    /* Azul corporativo */
    color: white;
    padding: 20px 15px;
    text-align: center;
    border-bottom: 3px dashed #e1e8ed;
    /* Línea de corte punteada de la imagen de referencia */
    position: relative;
}

.ticket-header .logo-placeholder {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.ticket-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Cuerpo del Ticket */
.ticket-body {
    padding: 25px 20px;
    color: #333;
}

.ticket-info-group {
    margin-bottom: 18px;
}

.ticket-label {
    font-size: 11px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    font-weight: 400;
}

.ticket-value {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.ticket-value.asistente {
    font-size: 16px;
    text-transform: uppercase;
    color: #1a365d;
}

/* Mensaje de Estado Temporal (Clave UX y Legal) */
.ticket-status-msg {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3cd;
    /* Amarillo de advertencia suave */
    border: 1px solid #ffeeba;
    border-radius: 5px;
    color: #856404;
    font-size: 12px;
    text-align: center;
    font-weight: 600;
}

/* Pie del Ticket */
.ticket-footer {
    padding: 15px 20px 20px;
    background-color: #fbfcfd;
    border-top: 3px dashed #e1e8ed;
    /* Línea de corte punteada */
    text-align: center;
}

.ticket-ref-group {
    margin-bottom: 5px;
}



.ticket-footer {
    padding: 15px 20px;
    background-color: #fbfcfd;
    border-top: 3px dashed #e1e8ed;
    text-align: left;
    /* Cambiamos de center a left */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Contenedor de la información de referencia */
.ticket-ref-data {
    flex: 1;
}

.ticket-ref-label {
    font-size: 9px!important;
    color: #95a5a6;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.ticket-ref-value {
    font-size: 8px!important;
    font-weight: 700;
    color: #555;
    font-family: monospace;
    letter-spacing: 0.5px;
    margin: 0;
    word-break: break-all;    
}


.ticket-footer-msg {
    font-size: 10px;
    color: #b2bec3;
    margin-top: 10px;
}

/* Contenedor del logo */
.ticket-logo-mini {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.ticket-logo-mini img {
    max-height: 40px;
    /* Tamaño controlado */
    width: auto;
    /* Evita que html2canvas suavice demasiado la imagen y se vea borrosa */
    image-rendering: -webkit-optimize-contrast;
}


/* Datos de empresa dentro del bloque de asistente */
#t-empresa-container {
    border-left: 2px solid #1a365d; /* Una línea azul delgada a la izquierda */
    padding-left: 10px;
    margin-top: 10px !important;
}

#t-asistente-empresa {
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.2;
}

#t-asistente-cargo {
    margin-top: 2px;
    display: block;
}