/* Estilos para el modal del ticket */
.ticket-modal {
    max-width: 400px !important;
    width: 90% !important;
    max-height: 80vh !important;
}

.ticket-body {
    max-height: 60vh !important;
    overflow-y: auto !important;
    padding: 0 !important;
}

.ticket-content {
    padding: 15px !important;
    font-family: 'Courier New', monospace !important;
    background: white !important;
    border: 2px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    position: relative !important;
}

/* Simular papel térmico con bordes dentados */
.ticket-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 4px,
        #000 4px,
        #000 6px
    );
    z-index: -1;
}

.ticket-header h2 {
    text-align: center !important;
    margin: 0 0 10px 0 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #000 !important;
}

.ticket-info {
    margin-bottom: 10px !important;
}

.info-row {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 3px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

.info-row .label {
    font-weight: normal;
    margin-right: 5px;
}

.info-row .value {
    text-align: right;
    font-weight: normal;
}

/* Estilo específico para la fila del cajero - alineado a la izquierda */
.info-row.cajero-row {
    justify-content: flex-start;
}

.info-row.cajero-row .label {
    margin-right: 5px;
}

.info-row.cajero-row .value {
    text-align: left;
    margin-left: 5px;
}

.ticket-divider {
    border-top: 1px dashed #000;
    margin: 8px 0;
    height: 0;
}

.ticket-items {
    margin-bottom: 10px;
}

.items-header {
    display: flex !important;
    justify-content: space-between !important;
    font-weight: bold !important;
    font-size: 11px !important;
    margin-bottom: 5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #000 !important;
}

.items-list {
    max-height: 300px !important;
    overflow-y: auto !important;
}

.item-row {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 11px !important;
    margin-bottom: 2px !important;
    padding: 1px 0 !important;
    line-height: 1.2 !important;
    color: #000 !important;
}

.col-pers {
    width: 30px !important;
    text-align: left !important;
}

.col-desc {
    flex: 1 !important;
    text-align: left !important;
    margin: 0 5px !important;
    word-wrap: break-word !important;
}

.col-cant {
    width: 30px !important;
    text-align: right !important;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    color: #333;
}

/* Escritorio: centrar botón Cerrar en el modal de ticket */
@media (min-width: 769px) {
    .ticket-modal .modal-footer {
        display: flex;
        justify-content: center;
    }
}
