/* Receipt Modal */
.receipt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.receipt-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.receipt-header h2 {
    margin: 0;
    color: white;
    font-size: 24px;
}

.receipt-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    line-height: 1;
    padding: 0;
}

.receipt-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.receipt-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.receipt-text {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    color: #333;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.receipt-actions {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 2px solid #e0e0e0;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
}

.receipt-actions .btn {
    flex: 1;
    min-width: 0;
}

/* Mobile Receipt Modal */
@media (max-width: 768px) {
    .receipt-modal {
        padding: 10px;
    }
    
    .receipt-modal-content {
        max-height: 95vh;
    }
    
    .receipt-header {
        padding: 15px;
    }
    
    .receipt-header h2 {
        font-size: 20px;
    }
    
    .receipt-content {
        padding: 15px;
    }
    
    .receipt-text {
        font-size: 11px;
        padding: 15px;
    }
    
    .receipt-actions {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .receipt-actions .btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
}

